|
@@ -38,45 +38,45 @@
|
|
imagePath:'https://img.caimei365.com/group1/M00/03/83/Cmis214FbbCAQhKoAAKWfqqSIds292.png',
|
|
imagePath:'https://img.caimei365.com/group1/M00/03/83/Cmis214FbbCAQhKoAAKWfqqSIds292.png',
|
|
shareCode:'', //获取用户登录的邀请码
|
|
shareCode:'', //获取用户登录的邀请码
|
|
isUserInfo:false, //控制显示授权弹窗
|
|
isUserInfo:false, //控制显示授权弹窗
|
|
- nickName:'', //存储用户名
|
|
|
|
- userInfo:'', //存储微信用户授权信息
|
|
|
|
- orderId:0, //订单ID
|
|
|
|
- userId:0, //分享人的用户ID
|
|
|
|
isShareStatus:false,
|
|
isShareStatus:false,
|
|
- serviceProviderId:'',
|
|
|
|
- productList:[]
|
|
|
|
|
|
+ productList:[],
|
|
|
|
+ params:{
|
|
|
|
+ code:'',
|
|
|
|
+ iv:'',
|
|
|
|
+ encryptedData:'',
|
|
|
|
+ shareCode:'',
|
|
|
|
+ orderId:0, //订单ID
|
|
|
|
+ userId:0, //机构用户ID
|
|
|
|
+ serviceProviderId:0,//协销ID
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
- this.orderId = e.orderId
|
|
|
|
- this.userId = e.userId
|
|
|
|
|
|
+ this.params.orderId = e.orderId
|
|
|
|
+ this.params.userId = e.userId
|
|
if(e.serviceProviderId){
|
|
if(e.serviceProviderId){
|
|
- this.serviceProviderId = e.serviceProviderId
|
|
|
|
|
|
+ this.params.serviceProviderId = e.serviceProviderId
|
|
}
|
|
}
|
|
this.initQueryUser()
|
|
this.initQueryUser()
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
async initQueryUser(){
|
|
async initQueryUser(){
|
|
- const code = await authorize.getCode('weixin')
|
|
|
|
- this.OrderService.OrderShareCode(
|
|
|
|
- {
|
|
|
|
- code:code,
|
|
|
|
- orderId:this.orderId,
|
|
|
|
- userId:this.userId,
|
|
|
|
- shareCode:this.shareCode,
|
|
|
|
- serviceProviderId:this.serviceProviderId
|
|
|
|
- }
|
|
|
|
- ).then(response =>{
|
|
|
|
|
|
+ const getUserInfo = await authorize.getUserInfo('weixin');
|
|
|
|
+ this.params.code = await authorize.getCode('weixin')
|
|
|
|
+ this.params.iv = getUserInfo.iv
|
|
|
|
+ this.params.encryptedData = getUserInfo.encryptedData
|
|
|
|
+ this.OrderService.OrderShareCode(this.params).then(response =>{
|
|
console.log(response.code)
|
|
console.log(response.code)
|
|
if(response.code === 2){
|
|
if(response.code === 2){
|
|
- this.$api.navigateTo(`/pages/seller/order/order-details?type=share&orderId=${this.orderId}`)
|
|
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/order/order-details?type=share&orderId=${this.params.orderId}`)
|
|
}else if(response.code === 0) {
|
|
}else if(response.code === 0) {
|
|
console.log(response.data)
|
|
console.log(response.data)
|
|
if(response.data == true){//同为会所运营人员查看订单详情
|
|
if(response.data == true){//同为会所运营人员查看订单详情
|
|
- this.$api.navigateTo(`/pages/user/order/order-details?type=share&orderId=${this.orderId}`)
|
|
|
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-details?type=share&orderId=${this.params.orderId}`)
|
|
}else{//游客第二次查看订单详情
|
|
}else{//游客第二次查看订单详情
|
|
- this.$api.redirectTo(`/pages/user/order/order-sharedetails?orderId=${this.orderId}&userId=${this.userId}`)
|
|
|
|
|
|
+ this.$api.redirectTo(`/pages/user/order/order-sharedetails?orderId=${this.params.orderId}&userId=${this.params.userId}`)
|
|
}
|
|
}
|
|
}else if(response.code === -2){
|
|
}else if(response.code === -2){
|
|
this.$util.modal('提示',response.msg,'确定','',false,() =>{})
|
|
this.$util.modal('提示',response.msg,'确定','',false,() =>{})
|
|
@@ -87,7 +87,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getOrderCommodityData(){//查询订单商品信息s
|
|
getOrderCommodityData(){//查询订单商品信息s
|
|
- this.OrderService.OrderCommodityData({orderId:this.orderId}).then(response =>{
|
|
|
|
|
|
+ this.OrderService.OrderCommodityData({orderId:this.params.orderId}).then(response =>{
|
|
this.productList = response.data
|
|
this.productList = response.data
|
|
this.isShareStatus = true
|
|
this.isShareStatus = true
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
@@ -98,11 +98,11 @@
|
|
switch(index){
|
|
switch(index){
|
|
case 1:
|
|
case 1:
|
|
this.$store.commit('setLoginType',7)
|
|
this.$store.commit('setLoginType',7)
|
|
- this.$store.commit('setLoginOrderId',this.orderId)
|
|
|
|
|
|
+ this.$store.commit('setLoginOrderId',this.params.orderId)
|
|
this.$api.navigateTo('/pages/login/login')
|
|
this.$api.navigateTo('/pages/login/login')
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- this.$api.navigateTo(`/pages/user/order/orderShareLogin?orderId=${this.orderId}&userId=${this.userId}`)
|
|
|
|
|
|
+ this.$api.navigateTo(`/pages/user/order/orderShareLogin?orderId=${this.params.orderId}&userId=${this.params.userId}`)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -200,7 +200,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.login-btn{
|
|
.login-btn{
|
|
- width: 702rpx;
|
|
|
|
|
|
+ width: 600rpx;
|
|
height: 88rpx;
|
|
height: 88rpx;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
line-height: 88rpx;
|
|
line-height: 88rpx;
|
|
@@ -209,7 +209,7 @@
|
|
margin-bottom: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background: $btn-confirm;
|
|
background: $btn-confirm;
|
|
- border-radius: 14rpx;
|
|
|
|
|
|
+ border-radius: 50rpx;
|
|
}
|
|
}
|
|
.container-footer{
|
|
.container-footer{
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|