فهرست منبع

绿植 花束 管理

shish 8 ماه پیش
والد
کامیت
edb1b16f25
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 3 3
      hdApp/src/admin/goods/add.vue
  2. 3 3
      hdApp/src/admin/goods/detail.vue

+ 3 - 3
hdApp/src/admin/goods/add.vue

@@ -47,8 +47,8 @@
         <tui-list-cell class="line-cell" :hover="false">
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">价格类型</view>
           <view class="tui-title">价格类型</view>
           <view class="btn-group">
           <view class="btn-group">
-            <button class="admin-button-com middle" :class="[form.priceType === '0' ? '' : 'default']" @click="setPriceType('0')">无价</button>
-            <button class="admin-button-com middle" :class="[form.priceType === '1' ? '' : 'default']" @click="setPriceType('1')">有价</button>
+            <button class="admin-button-com middle" :class="[form.priceType === '1' ? '' : 'default']" @click="setPriceType('1')">有价格</button>
+            <button class="admin-button-com middle" :class="[form.priceType === '0' ? '' : 'default']" @click="setPriceType('0')">无价格</button>
           </view>
           </view>
         </tui-list-cell>
         </tui-list-cell>
 
 
@@ -151,7 +151,7 @@ export default {
         sold: "",
         sold: "",
         stock: 0,
         stock: 0,
         stockSet: '0', // 默认库存充足
         stockSet: '0', // 默认库存充足
-        priceType: '0', // 默认没价格
+        priceType: '1',
         flowerNum: 0,
         flowerNum: 0,
         weight: 1,
         weight: 1,
         catIds: [],
         catIds: [],

+ 3 - 3
hdApp/src/admin/goods/detail.vue

@@ -51,8 +51,8 @@
         <tui-list-cell class="line-cell" :hover="false">
         <tui-list-cell class="line-cell" :hover="false">
           <view class="tui-title">价格类型</view>
           <view class="tui-title">价格类型</view>
           <view class="btn-group">
           <view class="btn-group">
-            <button class="admin-button-com middle" :class="[form.priceType === '0' ? '' : 'default']" @click="setPriceType('0')">无价</button>
-            <button class="admin-button-com middle" :class="[form.priceType === '1' ? '' : 'default']" @click="setPriceType('1')">有价</button>
+            <button class="admin-button-com middle" :class="[form.priceType === '1' ? '' : 'default']" @click="setPriceType('1')">有价格</button>
+            <button class="admin-button-com middle" :class="[form.priceType === '0' ? '' : 'default']" @click="setPriceType('0')">无价格</button>
             <text v-if="sn && Number(sn)>0" style="margin-left:10upx;font-size:50upx;color:#CCCCCC;font-weight: normal;">#{{ sn }}</text>
             <text v-if="sn && Number(sn)>0" style="margin-left:10upx;font-size:50upx;color:#CCCCCC;font-weight: normal;">#{{ sn }}</text>
           </view>
           </view>
         </tui-list-cell>
         </tui-list-cell>
@@ -166,7 +166,7 @@ export default {
         name: "",
         name: "",
         price: "",
         price: "",
         sold: "",
         sold: "",
-        priceType: "1", // 默认有价格
+        priceType: "1",
         stockSet: "0", // 默认库存充足
         stockSet: "0", // 默认库存充足
         categoryIdList: [],
         categoryIdList: [],
         autoRise: "1",
         autoRise: "1",