yuantianjiao 6 gadus atpakaļ
vecāks
revīzija
6a3519f488

+ 56
- 50
src/pages/user/bindMobile/bindMobile.vue Parādīt failu

@@ -10,7 +10,7 @@
10 10
           <input type="tel" maxlength="11" placeholder="手机号" v-model="postData.phone">
11 11
         </div>
12 12
 
13
-        <div class="recommend">
13
+        <!-- <div class="recommend">
14 14
           <span>推荐人</span>
15 15
           <div @click="selectCase">
16 16
             <span>{{caseName}}</span>
@@ -20,7 +20,7 @@
20 20
             <span>{{salesName}}</span>
21 21
             <i class="iconfont icon-triangle-bottom"></i>
22 22
           </div>
23
-        </div>
23
+        </div> -->
24 24
 
25 25
         <div class="sms">
26 26
           <i class="iconfont icon-mima"></i>
@@ -29,11 +29,16 @@
29 29
           <div class="sand" v-else>{{seconds}}后可重发</div>
30 30
         </div>
31 31
 
32
+        <div class="mobile">
33
+          <i class="iconfont icon-mima"></i>
34
+          <input type="tel" maxlength="11" placeholder="推荐码" v-model="postData.recommend">
35
+        </div>
36
+
32 37
         <div class="submit" @click="submit">
33 38
           <div>提交</div>
34 39
         </div>
35 40
       </div>
36
-      <transition name="slide">
41
+      <!-- <transition name="slide">
37 42
         <div class="select" v-if="showCase">
38 43
           <van-picker
39 44
             show-toolbar
@@ -56,7 +61,7 @@
56 61
             @confirm="onConfirmS"
57 62
           />
58 63
         </div>
59
-      </transition>
64
+      </transition> -->
60 65
     </div>
61 66
   </div>
62 67
 </template>
@@ -81,7 +86,8 @@ export default {
81 86
         phone: '',
82 87
         case: '',
83 88
         sales: '',
84
-        captcha: ''
89
+        captcha: '',
90
+        recommend: ''
85 91
       }
86 92
     }
87 93
   },
@@ -100,51 +106,51 @@ export default {
100 106
     ...actions(['getCaseInfo']),
101 107
     ...actions(['getCaptcha']),
102 108
     ...actions(['submitData']),
103
-    onConfirmC (value, index) {
104
-      this.caseName = value.CaseName
105
-      this.postData.case = value.CaseId
106
-      this.columnsS = []
107
-      this.salesName = '选择销售'
108
-      if (this.caseInfo.sales) {
109
-        for (let i = 0; i < this.caseInfo.sales.length; i++) {
110
-          if (this.caseInfo.sales[i].CaseId === this.postData.case) {
111
-            this.columnsS.push(this.caseInfo.sales[i])
112
-          }
113
-        }
114
-      }
115
-      if (this.caseInfo.manager) {
116
-        for (let i = 0; i < this.caseInfo.manager.length; i++) {
117
-          if (this.caseInfo.manager[i].CaseId === this.postData.case) {
118
-            this.columnsS.push(this.caseInfo.manager[i])
119
-          }
120
-        }
121
-      }
122
-      this.showCase = false
123
-    },
124
-    onCancelC () {
125
-      this.showCase = false
126
-    },
127
-    onConfirmS (value, index) {
128
-      this.salesName = value.UserName
129
-      this.postData.sales = value.UserId
130
-      this.showSales = false
131
-    },
132
-    onCancelS () {
133
-      this.showSales = false
134
-    },
135
-    selectCase () {
136
-      this.showCase = true
137
-    },
138
-    selectSales () {
139
-      if (!this.postData.case) {
140
-        this.$toast('请先选择案场')
141
-        return
142
-      } else if (this.columnsS.length <= 0) {
143
-        this.$toast('此案场无销售')
144
-        return
145
-      }
146
-      this.showSales = true
147
-    },
109
+    // onConfirmC (value, index) {
110
+    //   this.caseName = value.CaseName
111
+    //   this.postData.case = value.CaseId
112
+    //   this.columnsS = []
113
+    //   this.salesName = '选择销售'
114
+    //   if (this.caseInfo.sales) {
115
+    //     for (let i = 0; i < this.caseInfo.sales.length; i++) {
116
+    //       if (this.caseInfo.sales[i].CaseId === this.postData.case) {
117
+    //         this.columnsS.push(this.caseInfo.sales[i])
118
+    //       }
119
+    //     }
120
+    //   }
121
+    //   if (this.caseInfo.manager) {
122
+    //     for (let i = 0; i < this.caseInfo.manager.length; i++) {
123
+    //       if (this.caseInfo.manager[i].CaseId === this.postData.case) {
124
+    //         this.columnsS.push(this.caseInfo.manager[i])
125
+    //       }
126
+    //     }
127
+    //   }
128
+    //   this.showCase = false
129
+    // },
130
+    // onCancelC () {
131
+    //   this.showCase = false
132
+    // },
133
+    // onConfirmS (value, index) {
134
+    //   this.salesName = value.UserName
135
+    //   this.postData.sales = value.UserId
136
+    //   this.showSales = false
137
+    // },
138
+    // onCancelS () {
139
+    //   this.showSales = false
140
+    // },
141
+    // selectCase () {
142
+    //   this.showCase = true
143
+    // },
144
+    // selectSales () {
145
+    //   if (!this.postData.case) {
146
+    //     this.$toast('请先选择案场')
147
+    //     return
148
+    //   } else if (this.columnsS.length <= 0) {
149
+    //     this.$toast('此案场无销售')
150
+    //     return
151
+    //   }
152
+    //   this.showSales = true
153
+    // },
148 154
     sandMsg () {
149 155
       if (!this.postData.phone) {
150 156
         this.$toast('请先填写手机号')

+ 4
- 3
src/pages/user/orderList/index.vue Parādīt failu

@@ -82,7 +82,7 @@ export default {
82 82
       from: this.$route.query.from || ''
83 83
     }).then((res) => {
84 84
       // console.log(JSON.stringify(res))
85
-      if(res.list === null){
85
+      if (res.list === null) {
86 86
         this.noData = true
87 87
       }
88 88
     })
@@ -96,11 +96,12 @@ export default {
96 96
       Math.ceil(this.orders.pagenum / this.orders.pagesize) > this.page ? this.hasMore = true : this.hasMore = false
97 97
       // this.list.length <= 8 ? this.hasMore = true : this.hasMore = false
98 98
       if (this.hasMore) {
99
-        this.page = this.page+1
99
+        this.page = this.page + 1
100 100
         setTimeout(() => {
101 101
           _that.getCustomerGoodsOrder({
102 102
             page: _that.page,
103 103
             pagesize: _that.pagesize,
104
+            from: this.$route.query.from || ''
104 105
           })
105 106
         }, 1000)
106 107
       } else {
@@ -114,5 +115,5 @@ export default {
114 115
 
115 116
 <!-- Add "scoped" attribute to limit CSS to this component only -->
116 117
 <style lang="scss" scoped>
117
-@import "page.scss";
118
+@import 'page.scss';
118 119
 </style>

+ 1
- 1
src/pages/user/placeOrder/index.vue Parādīt failu

@@ -319,7 +319,7 @@ export default {
319 319
 
320 320
           // })
321 321
         }).catch(() => {
322
-          this.ajaxoff = true
322
+          this.ajaxOff = true
323 323
         })
324 324
       }
325 325
     },

+ 1
- 1
src/pages/user/placeOrderDetail/index.vue Parādīt failu

@@ -247,7 +247,7 @@ export default {
247 247
           //   window.history.go(-2)
248 248
           // })
249 249
         }).catch(() => {
250
-          this.ajaxoff = true
250
+          this.ajaxOff = true
251 251
         })
252 252
       }
253 253
     },