|
@@ -317,6 +317,7 @@ export default {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
userId: null,
|
|
userId: null,
|
|
},
|
|
},
|
|
|
|
+ personal: null,
|
|
// 固定个人模板页
|
|
// 固定个人模板页
|
|
templateRoute: "/template/t",
|
|
templateRoute: "/template/t",
|
|
// 默认页模板
|
|
// 默认页模板
|
|
@@ -439,7 +440,7 @@ export default {
|
|
const id = row.userId || this.ids;
|
|
const id = row.userId || this.ids;
|
|
getUser(id).then(response => {
|
|
getUser(id).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
- this.getQrcodeImg(id);
|
|
|
|
|
|
+ this.getPersonal(id);
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改会员";
|
|
this.title = "修改会员";
|
|
});
|
|
});
|
|
@@ -495,21 +496,22 @@ export default {
|
|
}).then(response => {
|
|
}).then(response => {
|
|
this.download(response.msg);
|
|
this.download(response.msg);
|
|
}).catch(function() {});
|
|
}).catch(function() {});
|
|
|
|
+ },
|
|
|
|
+ getPersonal(uid){
|
|
|
|
+ getPersonalByUid(uid).then(res => {
|
|
|
|
+ this.personal = res.data;
|
|
|
|
+ this.getQrcodeImg(uid);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
,
|
|
,
|
|
getQrcodeImg(id) {
|
|
getQrcodeImg(id) {
|
|
debugger
|
|
debugger
|
|
const uid = id;
|
|
const uid = id;
|
|
- var personal = {};
|
|
|
|
// 是否有个人生平数据
|
|
// 是否有个人生平数据
|
|
- getPersonalByUid(uid).then(res => {
|
|
|
|
- personal = res.data;
|
|
|
|
- });
|
|
|
|
var url = null;
|
|
var url = null;
|
|
-
|
|
|
|
// 如果有则生成个人生平页,否则生成默认页
|
|
// 如果有则生成个人生平页,否则生成默认页
|
|
- if(personal != null) {
|
|
|
|
- url = window.location.origin + this.templateRoute+'/' + personal.id
|
|
|
|
|
|
+ if(this.personal != null) {
|
|
|
|
+ url = window.location.origin + this.templateRoute+'/' + this.personal.id
|
|
}else {
|
|
}else {
|
|
url = window.location.origin + this.defaultRoute+'/' + uid
|
|
url = window.location.origin + this.defaultRoute+'/' + uid
|
|
}
|
|
}
|