Parcourir la source

修复加一单显示不了的问题

Yannay il y a 2 mois
Parent
commit
49d7f42457
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      pages/orderDetailNew/index.vue

+ 2 - 2
pages/orderDetailNew/index.vue

@@ -2,7 +2,7 @@
2 2
     <view>
3 3
         <!-- 正确使用 u-navbar 的具名插槽 -->
4 4
         <u-navbar :autoBack="true" :placeholder="true" v-hideNav>
5
-            <template v-slot:center>
5
+            <template slot="center">
6 6
                 <view class="slot-wrap">
7 7
                     <text @click="handleBrandClick" class="brand">{{ topInfo.brand }}</text>
8 8
                     <text class="divider">|</text>
@@ -11,7 +11,7 @@
11 11
                     <text @click="handlePriceClick" class="price">¥{{ topInfo.price }}</text>
12 12
                 </view>
13 13
             </template>
14
-            <template v-slot:right>
14
+            <template slot="right">
15 15
                 <view class="slot-right" @click="handleAddClick">
16 16
                     <image src="/static/icons/plus.png" mode="scaleToFill" />
17 17
                     <text>加一单</text>