|
@@ -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('请先填写手机号')
|