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

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

Yannay месяцев назад: 2
Родитель
Сommit
49d7f42457
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      pages/orderDetailNew/index.vue

+ 2 - 2
pages/orderDetailNew/index.vue

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