Преглед изворни кода

修改订单详情中展示的数据

ylong пре 9 месеци
родитељ
комит
7700b70738
2 измењених фајлова са 10 додато и 0 уклоњено
  1. 9 0
      pages-mine/components/detail-book-item.vue
  2. 1 0
      pages/home/components/upsell-share.vue

+ 9 - 0
pages-mine/components/detail-book-item.vue

@@ -30,6 +30,15 @@
                                 style="width: 22rpx; height: 16rpx; margin-left: 6rpx"
                             />
                         </view>
+
+                        <view class="has-upsell" v-if="!book.upsellFinalMoney && book.currUpsellMoney">
+                            已加价 {{ book.currUpsellMoney }} 元
+                            <image
+                                src="/static/img/activity/up3.png"
+                                mode="aspectFill"
+                                style="width: 22rpx; height: 16rpx; margin-left: 6rpx"
+                            />
+                        </view>
                     </view>
                 </view>
                 <view v-if="isReturn" class="book-price">退回信息</view>

+ 1 - 0
pages/home/components/upsell-share.vue

@@ -86,6 +86,7 @@ export default {
       uni.$u.http
         .post(`/token/order/inviteHelpQuery?upsellCode=${upsellCode}`)
         .then((res) => {
+          console.log(res, 'res')
           if (res.code == 200) {
             this.avatarUrl = res.data.imgPath;
             this.username = res.data.nickName;