Commit 9cc1b989 by 程默

jj test

parent f056857c
...@@ -2,7 +2,7 @@ var merge = require('webpack-merge') ...@@ -2,7 +2,7 @@ var merge = require('webpack-merge')
var prodEnv = require('./prod.env') var prodEnv = require('./prod.env')
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {//zjgyl
SHOP_MIXID:"'zjgyl'", SHOP_MIXID:"'zjgyl'",
NODE_ENV: '"development"', NODE_ENV: '"development"',
BASE_URL:"'https://shop.mayi888.com'", BASE_URL:"'https://shop.mayi888.com'",
......
<template> <template>
<div class="domain"> <div class="domain">
获取微信地址 获取微信地址{{address}}--111
</div> </div>
</template> </template>
...@@ -10,6 +10,7 @@ import addres from "@/api/userAddress"; ...@@ -10,6 +10,7 @@ import addres from "@/api/userAddress";
export default { export default {
data() { data() {
return { return {
address: wx.getStorageSync('sessionid'),
options: "", options: "",
weChatInfo: "", weChatInfo: "",
userAddressReq: { userAddressReq: {
...@@ -36,6 +37,7 @@ export default { ...@@ -36,6 +37,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
Object.assign(this.$data, this.$options.data()); Object.assign(this.$data, this.$options.data());
console.log('token',this.address);
this.options = options; this.options = options;
let that = this; let that = this;
wx.chooseAddress({ wx.chooseAddress({
...@@ -110,8 +112,11 @@ export default { ...@@ -110,8 +112,11 @@ export default {
}); });
}, 200); }, 200);
} else { } else {
wx.showToast({ title: res.data.msg, icon: "none" });
} }
}); });
}else{
wx.showToast({ title: res.data.msg, icon: "none" });
} }
}); });
} }
......
...@@ -17,6 +17,7 @@ export default { ...@@ -17,6 +17,7 @@ export default {
link: this.baseUrl, link: this.baseUrl,
page: "/", page: "/",
params: "?mixid=" + this.shopId, params: "?mixid=" + this.shopId,
userInfo: { userInfo: {
nickName: "mpvue", nickName: "mpvue",
avatarUrl: "http://mpvue.com/assets/logo.png" avatarUrl: "http://mpvue.com/assets/logo.png"
......
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