zhanghaojie преди 5 години
родител
ревизия
cfcc84632d
променени са 4 файла, в които са добавени 22 реда и са изтрити 6 реда
  1. +8
    -3
      496_dongfengqichen/pages/index/index.js
  2. +8
    -2
      496_dongfengqichen/pages/myCenter/myCenter.js
  3. +5
    -0
      496_dongfengqichen/pages/prizes/prizes.js
  4. +1
    -1
      496_dongfengqichen/pages/prizes/prizes.wxml

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

@@ -202,8 +202,9 @@ Page({
if (!this.data.sendCode){
return;
}
app.wxRequest(app.globalData.urlRoot + "captcha/sendCaptcha", { mobile:this.data.subscribeData.mobile},res=>{
console.log(res);
this.data.sendCode = false;
app.wxRequest(app.globalData.urlRoot + "captcha/sendCaptcha", { mobile: this.data.subscribeData.mobile }, res => {
this.data.sendCode = true;
if (res.code == 200) {
this.countDown();
wx.showToast({
@@ -213,7 +214,6 @@ Page({
this.setData({
verificationCode:60
})
this.data.sendCode = false;
}else{
wx.showToast({
title: res.msg,
@@ -268,7 +268,12 @@ Page({
})
return;
}
if (!this.data.sendCode) {
return;
}
this.data.sendCode = false;
app.wxRequest(app.globalData.urlRoot + "userInfo/submitOrderInfo", this.data.subscribeData, res => {
this.data.sendCode = true;
if (res.code == 200) {
wx.showToast({
title: '预约成功'

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

@@ -238,7 +238,9 @@ Page({
if (!this.data.sendCode) {
return;
}
app.wxRequest(app.globalData.urlRoot + "captcha/sendCaptcha", { mobile: this.data.subscribeData.mobile}, res => {
this.data.sendCode = false;
app.wxRequest(app.globalData.urlRoot + "captcha/sendCaptcha", { mobile: this.data.subscribeData.mobile }, res => {
this.data.sendCode = true;
if (res.code == 200) {
this.countDown();
wx.showToast({
@@ -248,7 +250,6 @@ Page({
this.setData({
verificationCode: 60
})
this.data.sendCode = false;
} else {
wx.showToast({
title: res.msg,
@@ -303,7 +304,12 @@ Page({
})
return;
}
if (!this.data.sendCode) {
return;
}
this.data.sendCode = false;
app.wxRequest(app.globalData.urlRoot + "userInfo/submitOrderInfo", this.data.subscribeData, res => {
this.data.sendCode = true;
if (res.code == 200) {
wx.showToast({
title: '预约成功'

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

@@ -63,5 +63,10 @@ Page({
*/
onShareAppMessage: function () {
return app.sharePack();
},
backPage: function () {
wx.navigateBack({
delta:1
})
}
})

+ 1
- 1
496_dongfengqichen/pages/prizes/prizes.wxml Целия файл

@@ -68,7 +68,7 @@
</view>
</view>
<view class="immediateFetching">
<view class="prizeTitle" style="margin-top:0;">立即抓取</view>
<view class="prizeTitle" bindtap="backPage" style="margin-top:0;">立即抓取</view>
</view>
</view>
<tabBar></tabBar>

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