|
|
@@ -91,9 +91,7 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
onLoad(props) {
|
|
|
- console.log(encodeURIComponent("adminId=18533&shopId=15680"));
|
|
|
const scene = decodeURIComponent(props.scene);
|
|
|
- console.log(scene);
|
|
|
var sceneItem = scene.split("&");
|
|
|
var arr, name, value;
|
|
|
var sceneArray = new Array();
|
|
|
@@ -111,8 +109,7 @@ export default {
|
|
|
generateAdmin(this.form).then(res => {
|
|
|
this.showBindArea = false
|
|
|
this.showSuccessArea = true
|
|
|
- uni.setStorageSync('shopId', res.data.shopId)
|
|
|
- //this.$msg("添加成功!");
|
|
|
+ uni.setStorageSync('shopId', res.data.shopId);
|
|
|
});
|
|
|
},
|
|
|
// 表单验证
|
|
|
@@ -142,7 +139,6 @@ export default {
|
|
|
];
|
|
|
// 进行表单检查
|
|
|
let formData = this.form;
|
|
|
- console.log(formData);
|
|
|
let checkRes = form.validation(formData, rules);
|
|
|
// 验证通过!
|
|
|
if (!checkRes) {
|
|
|
@@ -153,7 +149,6 @@ export default {
|
|
|
},
|
|
|
// 获取微信手机号
|
|
|
getWxMobile(e) {
|
|
|
- console.log(e);
|
|
|
if (e.detail.errMsg === "getPhoneNumber:ok") {
|
|
|
getWxPhone({
|
|
|
iv: e.detail.iv,
|
|
|
@@ -173,8 +168,6 @@ export default {
|
|
|
uni.getUserInfo({
|
|
|
provider: "weixin",
|
|
|
success: res => {
|
|
|
- console.log("res", res);
|
|
|
- // this.popupShow = true
|
|
|
getWxInfo({ iv: res.iv, encryptedData: res.encryptedData }).then(
|
|
|
subRes => {
|
|
|
this.form.adminId = subRes.data.id;
|