Преглед на файлове

功能优化

guessPrice
sui преди 5 години
родител
ревизия
04d0fe9ebe
променени са 4 файла, в които са добавени 63 реда и са изтрити 10 реда
  1. +9
    -6
      496_dongfengqichen/pages/index/index.js
  2. +11
    -0
      496_dongfengqichen/pages/myCenter/myCenter.js
  3. +14
    -2
      496_dongfengqichen/pages/myCenter/myCenter.wxml
  4. +29
    -2
      496_dongfengqichen/pages/myCenter/myCenter.wxss

+ 9
- 6
496_dongfengqichen/pages/index/index.js Целия файл

} }
app.wxRequest(app.globalData.urlRoot + "userInfo/submitOrderInfo", this.data.subscribeData, res => { app.wxRequest(app.globalData.urlRoot + "userInfo/submitOrderInfo", this.data.subscribeData, res => {
if (res.code == 200) { if (res.code == 200) {
wx.showToast({
title: '预约成功'
})
this.setData({
isRegister:true
})
// wx.showToast({
// title: '预约成功'
// })
// this.setData({
// isRegister:true
// })
app.globalData.isRegister = true; app.globalData.isRegister = true;
app.globalData.userMobile = this.data.subscribeData.mobile; app.globalData.userMobile = this.data.subscribeData.mobile;
wx.redirectTo({
url: "../myCenter/myCenter?sourcePage='home'"
})
} else { } else {
wx.showToast({ wx.showToast({
title: res.msg, title: res.msg,

+ 11
- 0
496_dongfengqichen/pages/myCenter/myCenter.js Целия файл

count:20 count:20
}, },
noData:false, noData:false,
optionsData:null
}, },


/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
if (options.sourcePage){
this.data.optionsData = options.sourcePage;
}
if (app.globalData.openid) { if (app.globalData.openid) {
this.loadFun(); this.loadFun();
} else { } else {
this.getUserLocation(); this.getUserLocation();
this.getOrderInfo(); this.getOrderInfo();
} }
if (this.data.optionsData){
if (this.data.optionsData == "home") {
this.setData({
selectNow: 2
})
}
}
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成

+ 14
- 2
496_dongfengqichen/pages/myCenter/myCenter.wxml Целия файл

<view class="cashNum">500</view> <view class="cashNum">500</view>
<view class="cashCompany">元</view> <view class="cashCompany">元</view>
</view> </view>
<view class="rewardCashText">现金</view>
<view class="rewardCashText">购车红包</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<service></service> <service></service>
<view class="prizeDesc" catchtouchmove="ture" wx:if="{{descFrameShow}}"> <view class="prizeDesc" catchtouchmove="ture" wx:if="{{descFrameShow}}">
<view class="prizeImgGroup">
<view class="prizeImgGroup" wx:if="{{false}}">
<image class="prizeImg" src="http://www.jiyou-tech.com/2020/496_qichen/static/images/indexBg.jpg"></image> <image class="prizeImg" src="http://www.jiyou-tech.com/2020/496_qichen/static/images/indexBg.jpg"></image>
<image bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image> <image bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image>
</view> </view>
<view class="prizeCustomGroup">
<view class="prizeCustom">
<view class="prizeTitle">500元购车券</view>
<view class="prizeDescText">恭喜您!</view>
<view class="prizeDescText">500元购车券,已放入您个人中心</view>
<view class="prizeDescText">此购车券仅限</view>
<view class="prizeDescText">全国东风启辰专营店购买启辰星使用</view>
<view class="prizeDescText">同时,您也可以加入星探计划,</view>
<view class="prizeDescText">获取更多好礼</view>
</view>
<image bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image>
</view>
</view> </view>
<view class="prizeDesc" catchtouchmove="ture" style="background-color:'rgba(000,000,000,0.8)';" wx:if="{{ruleShow}}"> <view class="prizeDesc" catchtouchmove="ture" style="background-color:'rgba(000,000,000,0.8)';" wx:if="{{ruleShow}}">
<view class="ruleImgGroup"> <view class="ruleImgGroup">

+ 29
- 2
496_dongfengqichen/pages/myCenter/myCenter.wxss Целия файл

.rewardCash{ .rewardCash{
position: relative; position: relative;
border-radius: 10rpx; border-radius: 10rpx;
background-color: #0095FF;
background-color: #F15443;
overflow: hidden; overflow: hidden;
} }
.rewardCashText{ .rewardCashText{
width: 100%; width: 100%;
background-color: #003CF8;
background-color: #D6BF95;
color: white; color: white;
font-size: 16rpx; font-size: 16rpx;
height: 22rpx; height: 22rpx;
.ruleImg{ .ruleImg{
width: 100%; width: 100%;
height: 100%; height: 100%;
}
.prizeCustomGroup{
width:453rpx;
height:503rpx;
position: relative;
}
.prizeCustom{
border-radius: 10rpx;
overflow: hidden;
width:100%;
height:100%;
background-color: white;
}
.prizeTitle{
height: 63rpx;
background-color: #005EFD;
color: white;
line-height: 63rpx;
text-align: center;
font-size: 26rpx;
margin-bottom: 67rpx;
}
.prizeDescText{
font-size: 26rpx;
line-height: 26rpx;
margin-bottom: 26rpx;
text-align: center;
} }

Loading…
Отказ
Запис