Authored by 王水玲

微信群控软件

const config = {
axiosBaseUrl: '',
yohoApi: '/yohoApi',
axiosResponseType: 'json'
};
... ...
import config from '../common/config';
import api from '../common/create-api';
module.exports = {
getWechatShareCode(params) {
return api.get('', Object.assign({
method: 'app.passport.getWechatShareCode'
}, params), {
defaults: {
baseURL: config.yohoApi
}
// return api.get('/erp/wechatCs/getWechatShareCode', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": "db1a9ef9f609c0cd70",
"md5": "3f4552cccfaefc99e16847cc63b5402e",
"message": "操作成功"
});
})
},
getWechatConsultant(params) {
// api.get('/erp/wechatCs/getWechatConsultant', params);
// return api.get('/erp/wechatCs/getWechatConsultant', params);
return new Promise(function(resolve, reject) {
return resolve({
... ... @@ -34,7 +37,7 @@ module.exports = {
});
},
getUserInfo(params) {
// api.get('/erp/wechatCs/getUserInfo', params);
// return api.get('/erp/wechatCs/getUserInfo', params);
return new Promise(function(resolve, reject) {
return resolve({
... ... @@ -55,7 +58,7 @@ module.exports = {
});
},
bindWechatCSAndUser(params) {
// api.get('/erp/wechatCs/bindWechatCSAndUser', params);
// return api.get('/erp/wechatCs/bindWechatCSAndUser', params);
return new Promise(function(resolve, reject) {
return resolve({
... ... @@ -68,7 +71,7 @@ module.exports = {
});
},
updateUserReminder(params) {
// api.get('/erp/wechatCs/updateUserReminder', params);
// return api.get('/erp/wechatCs/updateUserReminder', params);
return new Promise(function(resolve, reject) {
return resolve({
... ... @@ -81,7 +84,7 @@ module.exports = {
});
},
getUserUid(params) {
// api.get('/erp/wechatCs/getUserUid', params);
// return api.get('/erp/wechatCs/getUserUid', params);
return new Promise(function(resolve, reject) {
return resolve({
... ...
... ... @@ -118,7 +118,7 @@ export default {
}
});
} else {
alert('手机号输入不正确');
console.log('手机号输入不正确');
}
}
},
... ... @@ -253,4 +253,3 @@ input:-ms-input-placeholder {
}
}
</style>
... ...
... ... @@ -72,7 +72,7 @@ export default {
this.serviceInfo[item].value = data[item];
});
this.getWechatShareCode(data.wechatUid || '');
this.getWechatShareCode(data.wechatUid);
}
});
},
... ... @@ -89,10 +89,8 @@ export default {
return vars;
},
getWechatShareCode(wechatUid) {
wechatUid = 500031262;
homeModel.getWechatShareCode({
uid: wechatUid
wechat_uid: wechatUid || ''
}).then(ret => {
console.log(ret)
});
... ...