Commit aa9d537f authored by 王's avatar

关注自动回复删除bug

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