Przeglądaj źródła

功能优化

guessPrice
suizhijia 5 lat temu
rodzic
commit
1d796fe13d
6 zmienionych plików z 73 dodań i 24 usunięć
  1. +1
    -1
      496_dongfengqichen/pages/configure/configure.wxml
  2. +2
    -2
      496_dongfengqichen/pages/index/index.wxml
  3. +1
    -1
      496_dongfengqichen/pages/lookPrizeDetail/lookPrizeDetail.wxml
  4. +17
    -9
      496_dongfengqichen/pages/myCenter/myCenter.js
  5. +14
    -6
      496_dongfengqichen/pages/myCenter/myCenter.wxml
  6. +38
    -5
      496_dongfengqichen/pages/myCenter/myCenter.wxss

+ 1
- 1
496_dongfengqichen/pages/configure/configure.wxml Wyświetl plik

<image class="newImages2-82" src="{{imgUrl+'/newImages2/82.png'}}"></image> <image class="newImages2-82" src="{{imgUrl+'/newImages2/82.png'}}"></image>
</view> </view>
<view class="carTitle"> <view class="carTitle">
<view>车型价格 xxxxxx万元</view>
<view>敬请期待</view>
<view class="selectTypeGroup" bindtap="carTypeControl"> <view class="selectTypeGroup" bindtap="carTypeControl">
<view class="selectType"> <view class="selectType">
<view>{{carTypeData[chooseType].name+carTypeData[chooseType].edition}}</view> <view>{{carTypeData[chooseType].name+carTypeData[chooseType].edition}}</view>

+ 2
- 2
496_dongfengqichen/pages/index/index.wxml Wyświetl plik

<view class="dotGroup3"> <view class="dotGroup3">
<image class="{{swiperGroup.three.current!=index?'newImages2-80':'newImages2-81'}}" wx:for="{{swiperGroup.three.nums}}" wx:key="index" src="{{imgUrl+'/newImages2/'+(swiperGroup.three.current!=index?'80':'81')+'.png'}}"></image> <image class="{{swiperGroup.three.current!=index?'newImages2-80':'newImages2-81'}}" wx:for="{{swiperGroup.three.nums}}" wx:key="index" src="{{imgUrl+'/newImages2/'+(swiperGroup.three.current!=index?'80':'81')+'.png'}}"></image>
</view> </view>
<image class="testText3" src="{{imgUrl+'/newImages2/testImg/3/'+(swiperGroup.three.current+1)+'_2.png?v=004'}}"></image>
<image class="testText3" src="{{imgUrl+'/newImages2/testImg/3/'+(swiperGroup.three.current+1)+'_2.png?v=005'}}"></image>
<swiper class="swiper4" bindchange="swiperChange" data-num="4" current="{{swiperGroup.four.current}}"> <swiper class="swiper4" bindchange="swiperChange" data-num="4" current="{{swiperGroup.four.current}}">
<swiper-item wx:for="{{swiperGroup.four.nums}}" wx:key="index"> <swiper-item wx:for="{{swiperGroup.four.nums}}" wx:key="index">
<image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/testImg/4/'+(index+1)+'_1.png?v=003'}}"></image> <image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/testImg/4/'+(index+1)+'_1.png?v=003'}}"></image>
<view class="dotGroup4"> <view class="dotGroup4">
<image class="{{swiperGroup.four.current!=index?'newImages2-80':'newImages2-81'}}" wx:for="{{swiperGroup.four.nums}}" wx:key="index" src="{{imgUrl+'/newImages2/'+(swiperGroup.four.current!=index?'80':'81')+'.png'}}"></image> <image class="{{swiperGroup.four.current!=index?'newImages2-80':'newImages2-81'}}" wx:for="{{swiperGroup.four.nums}}" wx:key="index" src="{{imgUrl+'/newImages2/'+(swiperGroup.four.current!=index?'80':'81')+'.png'}}"></image>
</view> </view>
<image class="testText4" src="{{imgUrl+'/newImages2/testImg/4/'+(swiperGroup.four.current+1)+'_2.png?v=004'}}"></image>
<image class="testText4" src="{{imgUrl+'/newImages2/testImg/4/'+(swiperGroup.four.current+1)+'_2.png?v=005'}}"></image>
<view class="lookMoreCar" style="padding-bottom:190rpx;"> <view class="lookMoreCar" style="padding-bottom:190rpx;">
<image class="newImages2-14" bindtap="lookMore" src="{{imgUrl+'/newImages2/100.png'}}"></image> <image class="newImages2-14" bindtap="lookMore" src="{{imgUrl+'/newImages2/100.png'}}"></image>
</view> </view>

+ 1
- 1
496_dongfengqichen/pages/lookPrizeDetail/lookPrizeDetail.wxml Wyświetl plik

</view> </view>
</view> </view>
<view wx:if="{{lookIndex.awardId == 9 || lookIndex.awardId == 11}}"> <view wx:if="{{lookIndex.awardId == 9 || lookIndex.awardId == 11}}">
<image src="{{imgUrl+'/newImages3/prizeDetail2/'+lookIndex.awardId+'_1.png'}}" style="width:750rpx;" mode="widthFix"></image>
<image src="{{imgUrl+'/newImages3/prizeDetail2/'+lookIndex.awardId+'_1.png?v=002'}}" style="width:750rpx;" mode="widthFix"></image>
<view style="position: relative;"> <view style="position: relative;">
<image src="{{imgUrl+'/newImages3/prizeDetail2/'+lookIndex.awardId+'_2_'+showType+'.png?v=004'}}" style="width:750rpx;" mode="widthFix"></image> <image src="{{imgUrl+'/newImages3/prizeDetail2/'+lookIndex.awardId+'_2_'+showType+'.png?v=004'}}" style="width:750rpx;" mode="widthFix"></image>
<view class="image6Btn3" wx:if="{{showType!=1}}" bindtap="showTypeControl" data-type="1"></view> <view class="image6Btn3" wx:if="{{showType!=1}}" bindtap="showTypeControl" data-type="1"></view>

+ 17
- 9
496_dongfengqichen/pages/myCenter/myCenter.js Wyświetl plik

couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 4 awardId: 4
}, },
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 5 awardId: 5
}, },
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 6, awardId: 6,
productId:2501 productId:2501
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 7 awardId: 7
}, },
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 8 awardId: 8
}, },
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 9 awardId: 9
}, },
couponCode: "我是卡号",//卡号 couponCode: "我是卡号",//卡号
couponSecret:"我是卡密",//卡密 couponSecret:"我是卡密",//卡密
dead_date:"我是有效期",//有效期 dead_date:"我是有效期",//有效期
awardState: 0,
awardState: 1,
cdate: "2020-03-23", cdate: "2020-03-23",
awardId: 11 awardId: 11
}, },
this.setData({ this.setData({
mycenterTipWindow:1, mycenterTipWindow:1,
}) })
} else {
} else if(this.data.recordList[index].awardState == 0 && this.data.isAddress){
wx.showToast({
title:"购车成功后可用",
icon:"none"
})
}else {
this.setData({ this.setData({
lookIndex: (index || index == 0) ? this.data.recordList[index] : null, lookIndex: (index || index == 0) ? this.data.recordList[index] : null,
lookPrizeDetail: !this.data.lookPrizeDetail lookPrizeDetail: !this.data.lookPrizeDetail
this.setData({ this.setData({
addressShow:!this.data.addressShow addressShow:!this.data.addressShow
}) })
if (this.data.isAddress== false){
if (!this.data.isAddress){
this.getAddress(); this.getAddress();
} }
if(this.data.selectNow==2 && this.data.recordNow == 1 && !this.data.addressShow){
this.getMyAwardList();
}
}, },
agreementState: function () {//协议 agreementState: function () {//协议
this.setData({ this.setData({

+ 14
- 6
496_dongfengqichen/pages/myCenter/myCenter.wxml Wyświetl plik

</view> </view>
<view class="placingOrder" wx:if="{{selectNow==4 && buyState}}"> <view class="placingOrder" wx:if="{{selectNow==4 && buyState}}">
<view style="display:flex;align-items:center;"> <view style="display:flex;align-items:center;">
<image class="orderHead" src="{{userData.avatarUrl}}"></image>
<image class="orderHead" src="{{imgUrl+'/newImages3/47.png'}}"></image>
<view style="margin-left:15rpx;margin-right:101rpx;"> <view style="margin-left:15rpx;margin-right:101rpx;">
<view class="cardTitle">启辰星VIP预定卡</view> <view class="cardTitle">启辰星VIP预定卡</view>
<view class="cardCtime">{{buyStateTime}}</view> <view class="cardCtime">{{buyStateTime}}</view>
</view> </view>
</view> </view>
<view style="display:flex;align-items:center;">
<image class="orderCard" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/48.png'}}"></image>
<!-- <view style="display:flex;align-items:center;">
<image class="recordTip" bindtap="vipDetailControl" style="margin-right:25rpx;" src="{{imgUrl+'/images/recordTip.png'}}"></image> <image class="recordTip" bindtap="vipDetailControl" style="margin-right:25rpx;" src="{{imgUrl+'/images/recordTip.png'}}"></image>
<image class="orderCard" src="{{imgUrl+'/newImages2/67.png'}}"></image> <image class="orderCard" src="{{imgUrl+'/newImages2/67.png'}}"></image>
</view>
</view> -->
</view> </view>
<service></service> <service></service>
<view class="prizeDesc" catchtouchmove="ture" wx:if="{{mycenterTipWindow==1}}"> <view class="prizeDesc" catchtouchmove="ture" wx:if="{{mycenterTipWindow==1}}">
<image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="lookRule" data-value="{{false}}"></image> <image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="lookRule" data-value="{{false}}"></image>
</view> </view>
</view> </view>
<view class="prizeDesc" wx:if="{{vipDetailShow}}">
<view class="vipDetail">
<view class="prizeDesc" style="background-color:white;display:block;overflow:auto;" wx:if="{{vipDetailShow}}">
<view class="titleText">查看详情</view>
<view class="lineSty"></view>
<image class="closeXieyi" bindtap="vipDetailControl" src="{{imgUrl+'/images/closeXieyi.png'}}"></image>
<view style="position:relative;">
<image style="width:750rpx;height:1900rpx;" src="{{imgUrl+'/newImages3/46.png'}}"></image>
<image class="newImages3-45" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/45.png'}}"></image>
</view>
<!-- <view class="vipDetail">
<image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/46.png?v=001'}}"></image> <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> <image class="vipDetailY" bindtap="vipDetailControl" src="{{imgUrl+'/newImages2/45.png'}}"></image>
</view>
</view> -->
</view> </view>
</view> </view>
<agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> <agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement>

+ 38
- 5
496_dongfengqichen/pages/myCenter/myCenter.wxss Wyświetl plik

padding-bottom: 11rpx; padding-bottom: 11rpx;
} }
.orderHead{ .orderHead{
width: 80rpx;
height: 80rpx;
border-radius: 50%;
width: 163rpx;
height: 105rpx;
} }
.orderCard{ .orderCard{
width: 181rpx;
height: 117rpx;
width: 98rpx;
height: 39rpx;
} }
.cardTitle{ .cardTitle{
line-height: 18rpx; line-height: 18rpx;
.lookDetail{ .lookDetail{
width: 98rpx; width: 98rpx;
height: 39rpx; height: 39rpx;
}

.titleText{
width: 682rpx;
margin: 0 auto;
margin-top: 78rpx;
margin-bottom: 28rpx;
line-height: 39rpx;
font-size:39rpx;
font-family:PingFangSC;
font-weight:bold;
color:rgba(0,77,149,1);
}
.lineSty{
width: 682rpx;
height:2rpx;
background-color: #B6B6B6;
margin: 0 auto;
margin-bottom: 45rpx;
}
.closeXieyi{
position: absolute;
right: 48rpx;
top: 38rpx;
width: 42rpx;
height: 42rpx;
}
.newImages3-45{
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 70rpx;
width:276rpx;
height: 50rpx;
} }

Ładowanie…
Anuluj
Zapisz