@@ -1,4 +1,5 @@
module.exports = {
USER_TOKEN: 'vuex_user_token',
USER_DATA: 'vuex_user_data',
+ USER_SCENE: 'vuex_user_scene',
}
@@ -75,6 +75,7 @@
onLoad(options){
this.scene = options.scene;
if(this.scene){
+ this.$u.vuex(this.$const.USER_SCENE,this.scene);
this.handleBind()
@@ -27,6 +27,8 @@
},
methods: {
login(){
+ console.log('-->data',this.vuex_user_secne)
+ return
let _this = this;
uni.showLoading({title: '登录中...'})
uni.login({
@@ -88,6 +90,11 @@
uni.reLaunch({
url: this.redirect
});
+ },
+ handleBind(){
+ this.$u.api.userBind({scene:this.scene}).then(res => {
+
+ })
onLoad(options) {