Commit 5261c97c83f553002691010f6797a21feba895f9

Authored by pengye
1 parent edb89d9d

优惠券代金券菜品券、充值活动分享

... ... @@ -215,6 +215,26 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage() {
let data=this.data.opt;
let use=this.data.use;
let detail=this.data.detail
let imageUrl,title;
if(use.is_cash=='1' || use.is_cash){
imageUrl='https://nosqn.colorcun.com/share_money.png';
title=detail.price == '0'?`免费获取${data.name}${use.cash}元代金券,点击查看详情。`:`仅需${detail.price}元,获取${data.name}${use.cash}元代金券,点击查看详情。`
}
if(use.is_discount=='1' || use.is_discount){
imageUrl='https://nosqn.colorcun.com/share_discount.png';
title=detail.price == '0'?`免费获取${data.name}${use.discount}折折扣券,点击查看详情。`:`仅需${detail.price}元,获取${data.name}${use.discount}折折扣券,点击查看详情。`
}
if(use.is_dish=='1' || use.is_dish){
imageUrl='https://nosqn.colorcun.com/share_dish.png';
title=detail.price == '0'?`免费获取${data.name}${detail.aname},点击查看详情。`:`仅需${detail.price}元,获取${data.name}${detail.aname},点击查看详情。`
}
return {
title,
path:`/pack-activity/pack/buyCoupon?id=${data.id}&name=${data.name}&oid=${data.oid}&rid=${data.rid}&sid=${data.sid}&types=1`,
imageUrl,
}
}
})
\ No newline at end of file
... ...
... ... @@ -25,7 +25,7 @@ page {
}
.info_left {
width:200rpx ;
width:40% ;
color: #515151;
font-family: PingFang SC;
}
... ... @@ -38,7 +38,7 @@ page {
.preferential {
color: #0143a3;
margin-right: 50rpx;
margin-right: 10rpx;
}
.preferential text {
... ...
... ... @@ -385,11 +385,4 @@ Page({
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
... ...
... ... @@ -135,6 +135,12 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage() {
let data=this.data.opt;
let detail=this.data.detail
return {
title:`${data.name}诚邀您参加${detail.rname},点击查看详情。`,
path:`/pack-activity/pack/vipRecharge?id=${data.id}&name=${data.name}&oid=${data.oid}&rid=${data.rid}&sid=${data.sid}&types=1`,
imageUrl:'https://nosqn.colorcun.com/share_recharge.png',
}
}
})
\ No newline at end of file
... ...
... ... @@ -51,7 +51,7 @@
<block wx:if="{{item.amount>0}}">
<view class="normsBox">
<view class="content">
<view class="single" style="color: rgba({{textColor}});">{{item.name}}<text wx:if="{{item.practiceName}}">({{item.practiceName}})</text></view>
<view class="single" wx:if="{{item.name}}" style="color: rgba({{textColor}});">{{item.name}}</view>
<view wx:if="{{is_show_price!='0'}}" class="onwBoxWrap">
<view class="oneBox" style="color: rgba({{textColor}});" wx:for="{{item.specArr}}" wx:key="id">
<view wx:if="{{item.str}}">{{item.str}}</view>
... ... @@ -86,7 +86,7 @@
<block wx:if="{{item.norms.length>0}}">
<view wx:for="{{item.norms}}" wx:for-index="idx" wx:key="id" class="normsBox">
<view class="content">
<view class="single" style="color: rgba({{textColor}});">{{item.cookName}}<text wx:if="{{item.name}}">({{item.name}})</text></view>
<view class="single" wx:if="{{item.cookName}}" style="color: rgba({{textColor}});">{{item.cookName}}</view>
<view wx:if="{{is_show_price!='0'}}" class="onwBoxWrap">
<view class="oneBox" style="color: rgba({{textColor}});" wx:for="{{item.specArr}}" wx:key="id">
<view wx:if="{{item.str}}">{{item.str}}</view>
... ...