Commit da3d95df da3d95df3326ba4b48041bb16b89509172d6bb34 by zhanghao

commit

1 parent 546cb5bd
......@@ -5,7 +5,7 @@
<el-form ref="form" :model="deleteClues" label-width="0px">
<el-card class="yellowgreen" shadow="always">
<div slot="header" class="clearfix">
<span>删除指定UID的线索</span>
<span>删除线索</span>
</div>
<div class="text item">
<el-form-item>
......@@ -74,15 +74,29 @@
</el-row>
<el-row>
<el-col>
<el-card class="aquamarine" shadow="always">
<div slot="header" class="clearfix">
<span>正在开发中</span>
<el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
</div>
<div v-for="o in 4" :key="o" class="text item">
{{'正在开发中 ' + o }}
</div>
</el-card>
<el-form ref="form" :model="createCluesYoubaoe" label-width="0px">
<el-card class="aquamarine" shadow="always">
<div slot="header" class="clearfix">
<span>生成线索-活动类型-有预约保额</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="代理人UID" v-model="createCluesYoubaoe.agentUid" clearable></el-input>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-input placeholder="该代理人名下的健康坊用户UID" v-model="createCluesYoubaoe.customUid" clearable></el-input>
</el-form-item>
<el-form-item>
<el-input placeholder="正在进行中的活动ID" v-model="createCluesYoubaoe.actId" clearable></el-input>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="createCluesYoubaoeSubmit">生成线索</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
</el-row>
</div>
......@@ -146,6 +160,11 @@
smsCode: {
phone: '',
code: ''
},
createCluesYoubaoe: {
agentUid: '',
customUid: '',
actId: ''
}
}
},
......@@ -236,7 +255,41 @@
type: 'error'
});
})
}
},
createCluesYoubaoeSubmit() {
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/money/activity/youbaoe?'+this.$qs.stringify({
uid: this.createCluesYoubaoe.agentUid,
ref_id: this.createCluesYoubaoe.customUid,
act_id: this.createCluesYoubaoe.actId
}),config).then((res)=>{
console.log(res);
if(res.data=='success') {
this.$message({
showClose: true,
message: '生成线索成功',
type: 'success'
});
} else {
this.$message({
showClose: true,
message: '生成线索失败',
type: 'error'
});
}
}).catch(error=>{
console.log(error);
this.$message({
showClose: true,
message: '服务器处理失败,请核对参数!',
type: 'error'
});
})
},
}
}
</script>
......