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

View File

@ -744,7 +744,9 @@ export default {
};
},
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.shoppingArr = JSON.parse(options.shoppArr);
if (options.selTable) {