|
|
|
@ -222,8 +222,10 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="amount"> |
|
|
|
|
<view class="share"> |
|
|
|
|
<image src="/static/order/share.png" mode=""></image> |
|
|
|
|
分享 |
|
|
|
|
<button open-type="share"> |
|
|
|
|
<image src="/static/order/share.png" mode=""></image> |
|
|
|
|
分享 |
|
|
|
|
</button> |
|
|
|
|
</view> |
|
|
|
|
<view class="sp"> |
|
|
|
|
|
|
|
|
@ -401,6 +403,7 @@ |
|
|
|
|
canReset: false, |
|
|
|
|
cdDia: false, |
|
|
|
|
menushow: false, |
|
|
|
|
Store:'' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
@ -413,6 +416,7 @@ |
|
|
|
|
this.orderId = orderId |
|
|
|
|
// 获取当前订单信息 |
|
|
|
|
this.getOrderDetail() |
|
|
|
|
this.Store=uni.getStorageSync('Store') |
|
|
|
|
// 注册全局事件订阅: 是否刷新当前订单数据 |
|
|
|
|
uni.$on('syncRefresh', (val, isCur) => { |
|
|
|
|
if (!isCur) { |
|
|
|
@ -428,7 +432,27 @@ |
|
|
|
|
this.canReset && this.getOrderDetail() |
|
|
|
|
this.canReset = false |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
onShareAppMessage(res) { |
|
|
|
|
return { |
|
|
|
|
title: this.Store.storeInfo.store_name, |
|
|
|
|
path: "pages/order/detail?orderId="+this.orderId, //这是打开后的跳转路径 |
|
|
|
|
imageUrl:this.Store.storeInfo.image_url, |
|
|
|
|
success: function(res){ |
|
|
|
|
// 转发成功之后的回调 |
|
|
|
|
if(res.errMsg == 'shareAppMessage:ok'){ |
|
|
|
|
this.$toast('分享成功') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
fail: function(){ |
|
|
|
|
// 转发失败之后的回调 |
|
|
|
|
if(res.errMsg == 'shareAppMessage:fail cancel'){ |
|
|
|
|
this.$toast('取消分享') |
|
|
|
|
}else if(res.errMsg == 'shareAppMessage:fail'){ |
|
|
|
|
this.$toast('分享失败') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 联系商家 |
|
|
|
|
callStore(phone) { |
|
|
|
@ -1125,6 +1149,23 @@ |
|
|
|
|
margin-right: 14rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
button { |
|
|
|
|
background: none !important; |
|
|
|
|
border: none !important; |
|
|
|
|
padding: 0; |
|
|
|
|
line-height: 34rpx; |
|
|
|
|
height: 34rpx; |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-family: PingFang SC, |
|
|
|
|
PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
button:after { |
|
|
|
|
border: none !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
height: 34rpx; |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-family: PingFang SC, |
|
|
|
|