shish 3 лет назад
Родитель
Сommit
37de406311
3 измененных файлов с 15 добавлено и 16 удалено
  1. 2 2
      ghsApp/src/admin/home/apply.vue
  2. 11 12
      ghsApp/src/admin/order/bookSet.vue
  3. 2 2
      ghsApp/src/pages.json

+ 2 - 2
ghsApp/src/admin/home/apply.vue

@@ -61,8 +61,8 @@ export default {
                 {
                     title:'订单与销售',
                     list:[
-                        {name: "预订单",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/order/statBook"},
-                        {name: "预订单设置",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/order/bookSet"},
+                        {name: "预",img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`,url: "/admin/order/statBook"},
+                        {name: "预设置",img: `${this.$constant.imgUrl}/ghs/home/shop.png`,url: "/admin/order/bookSet"},
                     ]
                 },
                 {

+ 11 - 12
ghsApp/src/admin/order/bookSet.vue

@@ -3,15 +3,13 @@
     <view>
       <form @submit="formSubmit">
         <view class="module-com input-line-wrap">
-          <tui-list-cell class="line-cell" :hover="false">
-            <view class="tui-title">起订公斤数</view>
-            <input v-model="form.miniKilo" placeholder-class="phcolor" class="tui-input" name="miniKilo" placeholder="预订的最少公斤数" maxlength="50" type="number" />
-          </tui-list-cell>
 
-          <tui-list-cell class="line-cell" :hover="false">
-            <view class="tui-title">每公斤服务费</view>
-            <input v-model="form.kiloFee" placeholder-class="phcolor" class="tui-input" name="kiloFee" placeholder="请填写" maxlength="50" type="digit" />
-          </tui-list-cell>
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">预售</view>
+					<view>
+						<switch style="transform:scale(0.7,0.7)" :checked="form.presell == 0 ? false : true" @change="presellChange" /> {{form.presell==0 ? '关闭' : '开启'}}
+					</view>
+				</tui-list-cell>
 
         </view>
         <view class="confirm-btn">
@@ -34,8 +32,7 @@ export default {
   data() {
     return {
       form: {
-        kiloFee: "",
-        miniKilo: ""
+        presell:0,
       }
     };
   },
@@ -44,10 +41,12 @@ export default {
   onShow() {
   },
   methods: {
+		presellChange(e){
+			this.form.presell = e.target.value ? 1 : 0
+		},
     async init() {
       const { data } = await getInfo()
-      this.form.kiloFee = parseFloat(data.kiloFee)
-      this.form.miniKilo = parseFloat(data.miniKilo)
+      this.form.presell = data.presell
       this.$forceUpdate()
     },
     confirmFn() {

+ 2 - 2
ghsApp/src/pages.json

@@ -379,8 +379,8 @@
 			"root": "admin/order",
 			"pages": [
 				{"path": "itemOrder","style": {"navigationBarTitleText": "订单列表"}},
-				{"path": "bookSet","style": {"navigationBarTitleText": "预订单设置"}},
-				{"path": "statBook","style": {"navigationBarTitleText": "预订单"}},
+				{"path": "bookSet","style": {"navigationBarTitleText": "预设置"}},
+				{"path": "statBook","style": {"navigationBarTitleText": "预"}},
 				{"path": "statKhBook","style": {"navigationBarTitleText": "详情"}}
 			]
 		},