Commit e8064663 authored by chenfenglei's avatar chenfenglei

微信群发消息 添加type=4, 指定用户手机号发送

parent e754a0bf
...@@ -118,8 +118,16 @@ ...@@ -118,8 +118,16 @@
<el-radio :label="1">48时内关注但未购课用户</el-radio> <el-radio :label="1">48时内关注但未购课用户</el-radio>
<el-radio :label="2">有体验课但没有正式课用户</el-radio> <el-radio :label="2">有体验课但没有正式课用户</el-radio>
<el-radio :label="3">未试听用户</el-radio> <el-radio :label="3">未试听用户</el-radio>
<el-radio :label="4">指定用户手机号发送</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-row v-if="searchFrom.type === 4">
<el-col :span="16">
<el-form-item label="用户手机号">
<el-input v-model="searchFrom.mobiles" placeholder="提示:多个手机号逗号隔开"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="用户ID"> <el-form-item label="用户ID">
...@@ -476,6 +484,7 @@ export default { ...@@ -476,6 +484,7 @@ export default {
if (val === 1) return "48时内关注但未购课用户"; if (val === 1) return "48时内关注但未购课用户";
if (val === 2) return "有体验课但没有正式课用户"; if (val === 2) return "有体验课但没有正式课用户";
if (val === 3) return "未试听用户"; if (val === 3) return "未试听用户";
if (val === 4) return "指定用户手机号";
} }
}, },
methods: { methods: {
...@@ -598,11 +607,18 @@ export default { ...@@ -598,11 +607,18 @@ export default {
msgTips += "有体验课但没有正式课用户,"; msgTips += "有体验课但没有正式课用户,";
} else if (this.searchFrom.type === 3) { } else if (this.searchFrom.type === 3) {
msgTips += "未试听用户,"; msgTips += "未试听用户,";
} else if (this.searchFrom.type === 4) {
if(!this.searchFrom.mobiles){
this.searchFrom.mobiles="";
}
json.mobiles = this.searchFrom.mobiles;
msgTips += "指定手机号用户("+json.mobiles+"),";
} }
if (this.searchFrom.user_ids) { if (this.searchFrom.user_ids) {
json.user_ids = this.searchFrom.user_ids; json.user_ids = this.searchFrom.user_ids;
console.log(json)
msgTips += "用户ID:" + json.user_ids; msgTips += "用户ID:" + json.user_ids;
} else { }else {
this.$message({ this.$message({
type: "error", type: "error",
message: "请加入内部人员!" message: "请加入内部人员!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment