|
@@ -21,6 +21,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import authorize from '@/common/config/authorize.js'
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
|
+ import wxLogin from "@/common/config/wxLogin.js"
|
|
import {mapState,mapMutations } from 'vuex';
|
|
import {mapState,mapMutations } from 'vuex';
|
|
import { invitationCodeLogin } from '@/api/use.js'
|
|
import { invitationCodeLogin } from '@/api/use.js'
|
|
export default{
|
|
export default{
|
|
@@ -31,6 +32,9 @@
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['isWxAuthorize','isLoginType','isLoginProductId','isLoginOrderId'])
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
...mapMutations(['login']),
|
|
...mapMutations(['login']),
|
|
@@ -50,6 +54,7 @@
|
|
}
|
|
}
|
|
invitationCodeLogin(params).then(response =>{
|
|
invitationCodeLogin(params).then(response =>{
|
|
this.login(response.data)
|
|
this.login(response.data)
|
|
|
|
+ wxLogin.wxLoginAuthorize()
|
|
switch(this.isLoginType){
|
|
switch(this.isLoginType){
|
|
case 9:
|
|
case 9:
|
|
this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
|
|
this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
|
|
@@ -57,6 +62,9 @@
|
|
case 8:
|
|
case 8:
|
|
this.$api.navigateTo(`/pages/goods/product?id=${this.isLoginProductId}`)
|
|
this.$api.navigateTo(`/pages/goods/product?id=${this.isLoginProductId}`)
|
|
break;
|
|
break;
|
|
|
|
+ case 7:
|
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-details?type=share&orderID=${this.isLoginOrderId}`)
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
this.$api.switchTabTo('/pages/tabBar/user/user')
|
|
this.$api.switchTabTo('/pages/tabBar/user/user')
|
|
}
|
|
}
|