xuqiang 4 tahun lalu
induk
melakukan
26a9cc93e4

+ 17 - 14
src/pages/Apply.vue

@@ -9,18 +9,19 @@
         <van-cell-group :border="false">
             <van-field
                 label="退款原因"
-                :value="reason"
+                :value="form.reason"
                 placeholder="请选择退款原因"
                 is-link
                 readonly
                 @click="show = true"
             >
             </van-field>
-            <van-field label="退款金额" :value="price" @input="price = $event.detail" placeholder="¥970"> </van-field>
+            <van-field label="退款金额" :value="form.price" @input="form.price = $event.detail" placeholder="¥970">
+            </van-field>
             <van-field
                 label="补充说明"
-                :value="message"
-                @input="message = $event.detail"
+                :value="form.message"
+                @input="form.message = $event.detail"
                 rows="1"
                 autosize
                 type="textarea"
@@ -74,9 +75,11 @@ export default {
     name: 'apply',
     data() {
         return {
-            reason: '',
-            message: '',
-            price: '',
+            form: {
+                reason: '',
+                message: '',
+                price: ''
+            },
             show: false,
             max: 100,
             showdialog: false,
@@ -98,7 +101,7 @@ export default {
     },
     computed: {
         canSubmit() {
-            if (this.reason && this.price) {
+            if (this.form.reason && this.form.price) {
                 return true;
             } else {
                 return false;
@@ -108,27 +111,27 @@ export default {
     created() {},
     methods: {
         select(action) {
-            this.reason = action.detail.name;
+            this.form.reason = action.detail.name;
             this.show = false;
         },
         submit() {
-            if (!this.reason) {
+            if (!this.form.reason) {
                 wx.showToast({
                     icon: 'none',
                     title: '退货原因不能为空'
                 });
                 return;
             }
-            if (!this.price) {
+            if (!this.form.price) {
                 wx.showToast({
                     icon: 'none',
                     title: '退货价格不能为空'
                 });
                 return;
             }
-            console.log(this.reason);
-            console.log(this.price);
-            console.log(this.message);
+            console.log(this.form.reason);
+            console.log(this.form.price);
+            console.log(this.form.message);
             wx.showToast({
                 title: '提交成功'
             });

+ 20 - 2
src/pages/Applydetails.vue

@@ -29,7 +29,7 @@
             </div>
             <div class="box-con">
                 <div class="box-con-Cards">
-                    <img src="../native/imgs/marker.png" alt="" />
+                    <img src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/info_top_bg.png" alt="" />
                     <div class="box-con-right">
                         <p class="box-con-tit">1105皇权破晓</p>
                         <div class="box-con-today">
@@ -71,7 +71,25 @@
 </template>
 <script>
 export default {
-    data() {}
+    data() {
+        return {};
+    },
+    methods: {
+        // orderCopy() {
+        //     wx.setClipboardData({
+        //         data: this.status.transactionId + '',
+        //         success(res) {
+        //             wx.getClipboardData({
+        //                 success(res) {
+        //                     wx.showToast({
+        //                         title: '订单单号复制成功'
+        //                     });
+        //                 }
+        //             });
+        //         }
+        //     });
+        // }
+    }
 };
 </script>
 <style lang="less" scoped>

+ 1 - 2
src/pages/store/administration.vue

@@ -118,7 +118,6 @@
                 :max-date="maxDate"
             />
         </van-popup>
-        <slot></slot>
     </div>
 </template>
 <script>
@@ -309,7 +308,7 @@ export default {
                 return;
             }
             wx.showToast({
-                title: '提交成功'
+                title: '商品上架成功'
             });
         }
     }

+ 2 - 3
src/pages/store/productEdit.vue

@@ -102,7 +102,7 @@
             description="卡牌名称"
             cancel-text="取消"
             :actions="actions"
-            @click-overlay="cancel"
+            @overlay="overlay = false"
             @select="select"
             @cancel="cancel"
         >
@@ -118,7 +118,6 @@
                 :max-date="maxDate"
             />
         </van-popup>
-        <slot></slot>
     </div>
 </template>
 <script>
@@ -323,7 +322,7 @@ export default {
                 return;
             }
             wx.showToast({
-                title: '提交成功'
+                title: '商品上架成功'
             });
         }
     }