佣金展示条件增加

This commit is contained in:
donqi 2023-02-11 11:30:56 +08:00
parent 6a46951dc3
commit 64a3531227
1 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,7 @@
</view> </view>
</view> </view>
<view id="pageAnchor0" class="flex justify-between align-end"> <view id="pageAnchor0" class="flex justify-between align-end">
<view class="text-df"> <view class="text-df" v-if="curUserInfo.placeStatus === 2">
佣金<text class="text-price margin-right-sm">{{curProductSpecs.finalPrice}}</text> 佣金<text class="text-price margin-right-sm">{{curProductSpecs.finalPrice}}</text>
<!-- <text class="cuIcon-share"></text> --> <!-- <text class="cuIcon-share"></text> -->
</view> </view>
@ -227,7 +227,8 @@
orderNow: false, orderNow: false,
totalPickCount: 0, totalPickCount: 0,
ifHasCsMsg: true, ifHasCsMsg: true,
picUrls: [] picUrls: [],
curUserInfo: {}
} }
}, },
onLoad(options) { onLoad(options) {
@ -247,7 +248,9 @@
this.changeSwiperHeight = e.scrollTop > 50 ? true: false; this.changeSwiperHeight = e.scrollTop > 50 ? true: false;
}, },
methods: { methods: {
async loadData() { async loadData() {
await this.$request.refreshCurUserCache();
this.curUserInfo = this.$request.getCurUserInfo();
let productDetailMock = await this.$api.data('productDetail'); let productDetailMock = await this.$api.data('productDetail');
this.productDetail = await this.$request.getGoodsDetail({ this.productDetail = await this.$request.getGoodsDetail({
goodsId: this.inParam.goodsId goodsId: this.inParam.goodsId