瀏覽代碼

卡转赠bug问题修改

tags/富茂链客4.1.0
刘晖 6 年之前
父節點
當前提交
c1cc30b818
共有 8 個檔案被更改,包括 48 行新增30 行删除
  1. +17
    -10
      pages/ConsumeDetail/ConsumeDetail.js
  2. +2
    -2
      pages/cardorder/index/index.wxml
  3. +1
    -1
      pages/coupon/detail/index.js
  4. +1
    -0
      pages/discountCardList/discountCardList.js
  5. +1
    -0
      pages/discountCardList/discountCardList.wxml
  6. +7
    -0
      pages/discountCardList/discountCardList.wxss
  7. +18
    -16
      pages/order/detail/index.js
  8. +1
    -1
      pages/order/detail/index.wxml

+ 17
- 10
pages/ConsumeDetail/ConsumeDetail.js 查看文件

@@ -75,17 +75,23 @@ Page({
// })
},
onShareAppMessage: function (res) {
let _this = this;
return {
title: '领取卡',
path: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.ownerId + '&couponId=' + this.data.cardDetail.couponId + '&coverImg=' + this.data.cardDetail.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.cardDetail.id + '&updateDate=' + this.data.cardDetail.updateDate,
imageUrl: this.data.cardDetail.coverImg,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
if (res.from === 'button') {
console.log(res,3333333333333333333333)
// 来自页面内转发按钮
let _this = this;
return {
title: '领取卡',
path: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.ownerId + '&couponId=' + this.data.cardDetail.couponId + '&coverImg=' + this.data.cardDetail.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.cardDetail.id + '&updateDate=' + this.data.cardDetail.updateDate,
imageUrl: this.data.cardDetail.coverImg,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
}
}
}else{
console.log(res, 444444444444444444)
}
},
// 点击查看更多
@@ -118,6 +124,7 @@ Page({
showIndexReuturn:true
})
}
wx.hideShareMenu()
},
cardpayList: function(cardId) {
let that = this;


+ 2
- 2
pages/cardorder/index/index.wxml 查看文件

@@ -15,10 +15,10 @@

<view class='section' wx:for='{{list}}' wx:key='{{index}}'>
<view class='mms' style='background:{{item.background}}'>
<image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1}}' class='cantransferred' mode="aspectFill"/>
<image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1&&!item.showImg}}' class='cantransferred' mode="aspectFill"/>
<view class='detail_msg'>
<view class='info'>
<view class='clearfix' data-id='{{item.id}}' bindtap='gotoConsumeDetail' data-id='{{item.id}}'>
<view class='clearfix' data-id='{{item.id}}' bindtap='{{!item.showImg?"gotoConsumeDetail":""}}' data-id='{{item.id}}'>
<view class='title fl'>
<text class='yue'><text class='yu'>余</text>{{item.remainingAmount/100}}<text class='yu'>元</text></text>
<text class="txt2" style='margin-top:9rpx!important;' wx:if="{{item.couponOrderStatus == 5 || item.couponOrderStatus == 6 || item.couponOrderStatus == 7|| item.couponOrderStatus == 8}}">{{item.expiredTime}}到期</text>


+ 1
- 1
pages/coupon/detail/index.js 查看文件

@@ -126,7 +126,7 @@ Page({
duration: 2000,
mask: false
});
wx.navigateTo({
wx.reLaunch({
url: '/pages/complete/index?couponOrderId=' + this.data.cardData.couponOrderId,
})
})


+ 1
- 0
pages/discountCardList/discountCardList.js 查看文件

@@ -7,6 +7,7 @@ Page({
data: {
couponUrl: imgurl.coupon.url,
loadingUrl: imgurl.loading.url,
canTransferred: imgurl.canTransferred.url,
tabs: [],
list: [],
current: "0",


+ 1
- 0
pages/discountCardList/discountCardList.wxml 查看文件

@@ -15,6 +15,7 @@
</view>
<view class='section' wx:for='{{list}}' wx:key='{{index}}' bindtap="gotouse" data-couponId='{{item.couponId}}' data-type="{{item.type}}" data-quancode="{{item.id}}">
<view class='mms'>
<image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1}}' class='cantransferred' mode="aspectFill"/>
<view class='detail_msg'>
<image mode="aspectFill" src='{{item.coverImg}}' mode='widthFix'></image>
<text>{{item.title}}</text>


+ 7
- 0
pages/discountCardList/discountCardList.wxss 查看文件

@@ -230,3 +230,10 @@ button::after{ border: none; }
margin-top: 30rpx;
padding: 0 40rpx;
}
.cantransferred{
position: absolute;
right: 0;
top: 0;
width: 60rpx;
height: 60rpx;
}

+ 18
- 16
pages/order/detail/index.js 查看文件

@@ -24,7 +24,8 @@ Page({
showIf: false,
showPage:false,
showButton:false,
cardDetail:null
cardDetail:null,
supportTransfer:''
},

phone: function (e) {
@@ -53,20 +54,20 @@ Page({
})
})
},
onShareAppMessage: function (res) {
let _this = this;
return {
title: '领取卡',
path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + '111' + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate,
imageUrl: this.data.order.coverImg,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
}
}
},
// onShareAppMessage: function (res) {
// let _this = this;
// return {
// title: '领取卡',
// path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate,
// imageUrl: this.data.order.coverImg,
// success: function (res) {
// // 转发成功
// },
// fail: function (res) {
// // 转发失败
// }
// }
// },
powerDrawer: function (e) {
let that = this;
console.log(e)
@@ -159,7 +160,8 @@ Page({
})
}
that.setData({
order: res.data
order: res.data,
supportTransfer: res.data.supportTransfer
});
that.getStaticGame()
//createDate 创建时间


+ 1
- 1
pages/order/detail/index.wxml 查看文件

@@ -79,5 +79,5 @@
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
</view>
</view>
<button type="primary" open-type="share" wx:if="{{order.type == 100}}" class='support-tansfer'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button>
<!-- <button type="primary" open-type="share" wx:if="{{order.type == 100 && supportTransfer==1}}" class='support-tansfer'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> -->
</view>

Loading…
取消
儲存