Просмотр исходного кода

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

ylong 9 месяцев назад
Родитель
Сommit
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"
                                 style="width: 22rpx; height: 16rpx; margin-left: 6rpx"
                             />
                             />
                         </view>
                         </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>
                 </view>
                 <view v-if="isReturn" class="book-price">退回信息</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
       uni.$u.http
         .post(`/token/order/inviteHelpQuery?upsellCode=${upsellCode}`)
         .post(`/token/order/inviteHelpQuery?upsellCode=${upsellCode}`)
         .then((res) => {
         .then((res) => {
+          console.log(res, 'res')
           if (res.code == 200) {
           if (res.code == 200) {
             this.avatarUrl = res.data.imgPath;
             this.avatarUrl = res.data.imgPath;
             this.username = res.data.nickName;
             this.username = res.data.nickName;