3
0
Fork 0

fix(regiest): bug-4 fix pkCountry undefined

This commit is contained in:
ywk 2025-04-09 12:48:05 +08:00
parent 188527c872
commit d6d6f9f362
2 changed files with 13 additions and 11 deletions

View File

@ -358,32 +358,32 @@
<view class="footer_f"> <view class="footer_f">
<view class="footer"> <view class="footer">
<view class="footer_l"> <view class="footer_l">
<u-checkbox-group <!-- <u-checkbox-group
v-model="agreementShow" v-model="agreementShow"
shape="circle" shape="circle"
activeColor="#FB3024" activeColor="#FB3024"
@change="checkboxChange" @change="checkboxChange"
> >
<u-checkbox :name="1"> </u-checkbox> <u-checkbox :name="1"> </u-checkbox>
</u-checkbox-group> </u-checkbox-group> -->
<view class="tit3">{{ '请阅读并同意' }}</view> <!-- <view class="tit3">{{ '请阅读并同意' }}</view> -->
<view class="tit2" @click="toAgree" v-if="specialArea != 30"> <!-- <view class="tit2" @click="toAgree" v-if="specialArea != 30">
{{ '购买协议' }}</view {{ '购买协议' }}</view
> > -->
<view <!-- <view
class="tit2" class="tit2"
@click="toAgree" @click="toAgree"
v-if="specialArea == 30 && userInfo.isDealer == 1" v-if="specialArea == 30 && userInfo.isDealer == 1"
> >
推广人员服务协议</view 推广人员服务协议</view
> > -->
<view <!-- <view
class="tit2" class="tit2"
@click="toAgree" @click="toAgree"
v-if="specialArea == 30 && userInfo.isDealer == 0" v-if="specialArea == 30 && userInfo.isDealer == 0"
> >
经销商合同</view 经销商合同</view
> > -->
</view> </view>
<view class="tit2 cen" v-if="specialArea == 30" <view class="tit2 cen" v-if="specialArea == 30"
>该礼包一旦购买不能退换</view >该礼包一旦购买不能退换</view
@ -545,7 +545,7 @@ export default {
diqu: '', diqu: '',
allData: [], allData: [],
goodsNum: 1, goodsNum: 1,
agreementShow: [], agreementShow: [1],
priceAmount: 0, // priceAmount: 0, //
achiveAmount: 0, // achiveAmount: 0, //
totalAmont: 0, totalAmont: 0,

View File

@ -744,7 +744,9 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
this.pkCountry = uni.getStorageSync("pkCountry"); const user = uni.getStorageSync("User");
this.pkCountry = user.pkSettleCountry;
console.log(this.pkCountry, '....pkCountry')
this.specialArea = options.specialArea; this.specialArea = options.specialArea;
this.shoppingArr = JSON.parse(options.shoppArr); this.shoppingArr = JSON.parse(options.shoppArr);
if (options.selTable) { if (options.selTable) {