Commit da3d95df da3d95df3326ba4b48041bb16b89509172d6bb34 by zhanghao

commit

1 parent 546cb5bd
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 <el-form ref="form" :model="deleteClues" label-width="0px"> 5 <el-form ref="form" :model="deleteClues" label-width="0px">
6 <el-card class="yellowgreen" shadow="always"> 6 <el-card class="yellowgreen" shadow="always">
7 <div slot="header" class="clearfix"> 7 <div slot="header" class="clearfix">
8 <span>删除指定UID的线索</span> 8 <span>删除线索</span>
9 </div> 9 </div>
10 <div class="text item"> 10 <div class="text item">
11 <el-form-item> 11 <el-form-item>
...@@ -74,15 +74,29 @@ ...@@ -74,15 +74,29 @@
74 </el-row> 74 </el-row>
75 <el-row> 75 <el-row>
76 <el-col> 76 <el-col>
77 <el-form ref="form" :model="createCluesYoubaoe" label-width="0px">
77 <el-card class="aquamarine" shadow="always"> 78 <el-card class="aquamarine" shadow="always">
78 <div slot="header" class="clearfix"> 79 <div slot="header" class="clearfix">
79 <span>正在开发中</span> 80 <span>生成线索-活动类型-有预约保额</span>
80 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
81 </div> 81 </div>
82 <div v-for="o in 4" :key="o" class="text item"> 82 <div class="text item">
83 {{'正在开发中 ' + o }} 83 <el-form-item>
84 <el-input placeholder="代理人UID" v-model="createCluesYoubaoe.agentUid" clearable></el-input>
85 </el-form-item>
86 <div style="margin: 15px 0;"></div>
87 <el-form-item>
88 <el-input placeholder="该代理人名下的健康坊用户UID" v-model="createCluesYoubaoe.customUid" clearable></el-input>
89 </el-form-item>
90 <el-form-item>
91 <el-input placeholder="正在进行中的活动ID" v-model="createCluesYoubaoe.actId" clearable></el-input>
92 </el-form-item>
93 <div style="margin: 15px 0;"></div>
94 <el-form-item>
95 <el-button round @click="createCluesYoubaoeSubmit">生成线索</el-button>
96 </el-form-item>
84 </div> 97 </div>
85 </el-card> 98 </el-card>
99 </el-form>
86 </el-col> 100 </el-col>
87 </el-row> 101 </el-row>
88 </div> 102 </div>
...@@ -146,6 +160,11 @@ ...@@ -146,6 +160,11 @@
146 smsCode: { 160 smsCode: {
147 phone: '', 161 phone: '',
148 code: '' 162 code: ''
163 },
164 createCluesYoubaoe: {
165 agentUid: '',
166 customUid: '',
167 actId: ''
149 } 168 }
150 } 169 }
151 }, 170 },
...@@ -236,7 +255,41 @@ ...@@ -236,7 +255,41 @@
236 type: 'error' 255 type: 'error'
237 }); 256 });
238 }) 257 })
258 },
259 createCluesYoubaoeSubmit() {
260 let config = {
261 headers: {
262 'Content-Type': 'application/x-www-form-urlencoded'
263 }
239 } 264 }
265 this.$http.get('/tool/money/activity/youbaoe?'+this.$qs.stringify({
266 uid: this.createCluesYoubaoe.agentUid,
267 ref_id: this.createCluesYoubaoe.customUid,
268 act_id: this.createCluesYoubaoe.actId
269 }),config).then((res)=>{
270 console.log(res);
271 if(res.data=='success') {
272 this.$message({
273 showClose: true,
274 message: '生成线索成功',
275 type: 'success'
276 });
277 } else {
278 this.$message({
279 showClose: true,
280 message: '生成线索失败',
281 type: 'error'
282 });
283 }
284 }).catch(error=>{
285 console.log(error);
286 this.$message({
287 showClose: true,
288 message: '服务器处理失败,请核对参数!',
289 type: 'error'
290 });
291 })
292 },
240 } 293 }
241 } 294 }
242 </script> 295 </script>
......