Commit 103a3163 by liangjianmin

css

parent 6b56de7b
...@@ -59,7 +59,14 @@ export default { ...@@ -59,7 +59,14 @@ export default {
}); });
}, },
toLogin() { toLogin() {
this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {}); this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {
if (res.err_code === 0) {
uni.setStorageSync('openid', '122');
uni.navigateTo({
url: '/pages/mine/login'
});
}
});
} }
} }
}; };
......
...@@ -191,7 +191,14 @@ var _default = { data: function data() {return { code: '' };}, onLoad: function ...@@ -191,7 +191,14 @@ var _default = { data: function data() {return { code: '' };}, onLoad: function
}, },
toLogin: function toLogin() { toLogin: function toLogin() {
this.request(_api.API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(function (res) {}); this.request(_api.API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(function (res) {
if (res.err_code === 0) {
uni.setStorageSync('openid', '122');
uni.navigateTo({
url: '/pages/mine/login' });
}
});
} } };exports.default = _default; } } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
......
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 sign in to comment