Commit aa9d537f authored by 王's avatar

关注自动回复删除bug

parent 1a2b6fec
......@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置
proxyTable: {
'/api': {
target: 'http://local.base-api.sing.com', // 接口的域名
// target: 'http://wechat.test.singsingenglish.com/',
// target: 'http://local.base-api.sing.com', // 接口的域名
target: 'http://wechat.test.singsingenglish.com/',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
}
},
......
......@@ -135,7 +135,8 @@
type:0,
qr:'',
alias:'',
status:0
status:0,
media_id:''
},
rules:{
name:[
......@@ -161,6 +162,7 @@
qr:this.form.qr,
alias:this.form.alias,
status:this.form.status,
media_id: this.form.media_id
};
switch(this.dialogObj.type){
case 2:
......@@ -207,7 +209,8 @@
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid;
uploadFileApi({file:a.file,type:'all'}).then(res=>{
this.imageList = [{name:res.url,url:process.env.IMAGE_URL_HEAD + res.url}]
this.form.media_id = res.wechat_info ? res.wechat_info.media_id : '';
this.imageList = [{name:res.url,url:process.env.IMAGE_URL_HEAD + res.url}];
this.uploadShow = false;
this.loading = false;
this.$message({
......@@ -232,6 +235,7 @@
this.imageList = [];
this.loading = false;
this.uploadShow = true;
this.form.media_id = '';
break;
case 1:
this.title = '教师详情';
......@@ -254,9 +258,10 @@
this.form.qr = res.qr;
this.form.type = res.type;
this.form.status = res.status;
this.form.media_id = res.media_id ? res.media_id : '';
this.imageList = [{name:res.qr,url:res.qr}];
this.uploadShow = !res.qr;
this.loading = false
this.loading = false;
});
break
}
......
......@@ -52,10 +52,6 @@
{{scope.row.status === 0 ? '正常' : '禁用'}}
</template>
</el-table-column>
<el-table-column
prop="invite_code"
label="邀请码">
</el-table-column>
<el-table-column
label="二维码">
<template slot-scope="scope">
......
......@@ -8,17 +8,12 @@
<el-col :span="6">
<label>微信号:</label> {{detail.alias}}
</el-col>
<el-col :span="6">
<label>邀请码:</label>{{detail.invite_code}}
</el-col>
<el-col :span="6">
<label>二维码:</label>
<a :href="detail.qr">
<img class="avatar" :src="detail.qr"/>
</a>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<label>老师状态:</label>{{detail.status === 0 ? '正常' : '禁用'}}
</el-col>
......
......@@ -42,10 +42,6 @@
<img class="avatar" :src="scope.row.avatar">
</template>
</el-table-column>
<el-table-column
prop="invite_code"
label="邀请码">
</el-table-column>
<el-table-column
prop="mobile"
label="手机号">
......
......@@ -35,13 +35,10 @@
<label>邀请人ID:</label>{{detail.invite_user_id}}
</el-col>
<el-col :span="6">
<label>邀请码:</label>{{detail.invite_code}}
<label>注册时间:</label>{{detail.created_at}}
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<label>注册时间:</label>{{detail.created_at}}
</el-col>
<el-col :span="6">
<label>最后登录:</label>{{detail.last_login_at}}
</el-col>
......@@ -198,7 +195,8 @@
let json = {
user_id: this.id,
limit: this.limit,
page: this.nowPage
page: this.nowPage,
status: 1
}
getOrderListApi(json).then(res=>{
this.userList = res.list;
......
......@@ -271,18 +271,18 @@
}
},
deleteRow(index , list){
let desc = list;
desc.splice(index,1);
let json = {
key: this.form.key,
value: this.form.value
}
json.desc = JSON.stringify(desc)
this.$confirm('此操作将删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let desc = list;
desc.splice(index,1);
let json = {
key: this.form.key,
value: this.form.value
}
json.desc = JSON.stringify(desc)
updateConfigApi(this.id,json).then(res=>{
this.$message({
type: 'success',
......
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