|
@@ -48,11 +48,11 @@
|
|
|
let [error, loginRes] = await uni.login({
|
|
|
provider: 'weixin'
|
|
|
});
|
|
|
+ let access_token = uni.getStorageSync('access_token');
|
|
|
+ let res = await this.$api.request('/poster/poster', 'POST',{access_token:access_token});
|
|
|
|
|
|
- let res = await this.$api.request('/poster/poster', 'POST',{code:loginRes.code});
|
|
|
- console.log(res)
|
|
|
-
|
|
|
- this.bgUrl = res.base64
|
|
|
+ this.bgUrl = res.base64;
|
|
|
+ console.log(this.bgUrl);
|
|
|
},
|
|
|
...mapMutations(['logout']),
|
|
|
show_share () {
|