Kaynağa Gözat

功能优化

guessPrice
sui 5 yıl önce
ebeveyn
işleme
04d0fe9ebe
4 değiştirilmiş dosya ile 63 ekleme ve 10 silme
  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 Dosyayı Görüntüle

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

+ 11
- 0
496_dongfengqichen/pages/myCenter/myCenter.js Dosyayı Görüntüle

@@ -41,12 +41,16 @@ Page({
count:20
},
noData:false,
optionsData:null
},

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

+ 14
- 2
496_dongfengqichen/pages/myCenter/myCenter.wxml Dosyayı Görüntüle

@@ -111,7 +111,7 @@
<view class="cashNum">500</view>
<view class="cashCompany">元</view>
</view>
<view class="rewardCashText">现金</view>
<view class="rewardCashText">购车红包</view>
</view>
</view>
</view>
@@ -164,10 +164,22 @@
</view>
<service></service>
<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 bindtap="lookDesc" data-value="{{false}}" class="closeDescIcon" src="{{imgUrl+'/images/closeDescIcon.png'}}"></image>
</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 class="prizeDesc" catchtouchmove="ture" style="background-color:'rgba(000,000,000,0.8)';" wx:if="{{ruleShow}}">
<view class="ruleImgGroup">

+ 29
- 2
496_dongfengqichen/pages/myCenter/myCenter.wxss Dosyayı Görüntüle

@@ -216,12 +216,12 @@ image{
.rewardCash{
position: relative;
border-radius: 10rpx;
background-color: #0095FF;
background-color: #F15443;
overflow: hidden;
}
.rewardCashText{
width: 100%;
background-color: #003CF8;
background-color: #D6BF95;
color: white;
font-size: 16rpx;
height: 22rpx;
@@ -541,4 +541,31 @@ image{
.ruleImg{
width: 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;
}

Yükleniyor…
İptal
Kaydet