浏览代码

功能优化

guessPrice
suizhijia 5 年前
父节点
当前提交
011207e5f5
共有 4 个文件被更改,包括 29 次插入2 次删除
  1. +8
    -2
      496_dongfengqichen/pages/myCenter/myCenter.js
  2. +1
    -0
      496_dongfengqichen/pages/myCenter/myCenter.wxml
  3. +19
    -0
      496_dongfengqichen/pages/myCenter/myCenter.wxss
  4. +1
    -0
      496_dongfengqichen/pages/placingOrder/placingOrder.js

+ 8
- 2
496_dongfengqichen/pages/myCenter/myCenter.js 查看文件

@@ -62,6 +62,7 @@ Page({
vipDetailShow:false,
lookPrizeDetail:false,
lookIndex:null,
buyStateCouponCode:"",
testData:[
{
awardDetailPicContentHeight:0,
@@ -306,7 +307,8 @@ Page({
getBuyStates: function () {
this.setData({
buyState: app.globalData.getBuyState.success,
buyStateTime: app.globalData.getBuyState.cdate
buyStateTime: app.globalData.getBuyState.cdate,
buyStateCouponCode: app.globalData.getBuyState.coupon_code
})
},
/**
@@ -820,7 +822,8 @@ Page({
if (app.globalData.getBuyState.success != this.data.buyState) {
this.setData({
buyState: app.globalData.getBuyState.success,
buyStateTime: app.globalData.getBuyState.cdate
buyStateTime: app.globalData.getBuyState.cdate,
buyStateCouponCode: app.globalData.getBuyState.coupon_code
})
}
this.setData({
@@ -885,5 +888,8 @@ Page({
this.setData({
vipDetailShow:!this.data.vipDetailShow
})
},
cardCodeCopy:function(){
this.contentCopy(this.data.buyStateCouponCode);
}
})

+ 1
- 0
496_dongfengqichen/pages/myCenter/myCenter.wxml 查看文件

@@ -291,6 +291,7 @@
<image style="width:750rpx;height:1900rpx;" src="{{imgUrl+'/newImages3/53.png'}}"></image>
<image class="newImages3-45" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/45.png'}}"></image>
</view>
<view class="cardCode">{{buyStateCouponCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy">复制</view></view>
<!-- <view class="vipDetail">
<image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/46.png?v=001'}}"></image>
<image class="vipDetailY" bindtap="vipDetailControl" src="{{imgUrl+'/newImages2/45.png'}}"></image>

+ 19
- 0
496_dongfengqichen/pages/myCenter/myCenter.wxss 查看文件

@@ -935,4 +935,23 @@ view{
bottom: 70rpx;
width:276rpx;
height: 50rpx;
}
.cardCode{
position: absolute;
left: 200rpx;
top: 450rpx;
font-size: 30rpx;
color: #f9ca80;
display: flex;
align-items: center;
}
.cardCodeCopy{
padding: 0 15rpx;
background-color: gainsboro;
height: 30rpx;
font-size: 24rpx;
line-height: 30rpx;
color: white;
margin-left: 20rpx;
border-radius: 15rpx;
}

+ 1
- 0
496_dongfengqichen/pages/placingOrder/placingOrder.js 查看文件

@@ -301,6 +301,7 @@ Component({
app.globalData.getBuyState = {};
app.globalData.getBuyState.success = true;
app.globalData.getBuyState.cdate = res.data.cdate;
app.globalData.getBuyState.coupon_code = res.data.coupon_code;
// setTimeout(()=>{
// this.closeXieyi();
// },1500)

正在加载...
取消
保存