Bladeren bron

获取验证码页面修复

dev
HolyKnightIX 2 jaren geleden
bovenliggende
commit
7acafdbcc2
7 gewijzigde bestanden met toevoegingen van 118 en 31 verwijderingen
  1. +11
    -20
      ext.json
  2. +2
    -1
      index/index.js
  3. +2
    -2
      index/user.js
  4. +50
    -6
      pages/coupon/confirmation/confirmation.js
  5. +1
    -1
      pages/coupon/confirmation/confirmation.json
  6. +1
    -0
      pages/coupon/confirmation/confirmation.ttml
  7. +51
    -1
      project.config.json

+ 11
- 20
ext.json Bestand weergeven

@@ -1,30 +1,21 @@
{ {
"extEnable": true,
"extAppid": "ttef6599d8705b49b101",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
},
"ttPlugins": {
"dependencies": {
"microapp-trade-plugin": {
"version": "1.1.2",
"isDynamic": true
}
}
},
"ext": { "ext": {
"weappId": "ttef6599d8705b49b101",
"name": "富茂券模板",
"attr": { "attr": {
"configUrl": "https://ctest.malls.iformall.com/C/api"
}
"configUrl": "https://c.malls.iformall.com/C/api"
},
"name": "精选常德",
"weappId": "tt1e4668fb8178581401"
}, },
"window": {
"backgroundTextStyle": "light",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#fff"
},
"extAppid": "tt1e4668fb8178581401",
"extEnable": true,
"directCommit": false, "directCommit": false,
"networkTimeout": { "networkTimeout": {
"request": 30000, "request": 30000,
"downloadFile": 10000 "downloadFile": 10000
} }
} }

+ 2
- 1
index/index.js Bestand weergeven

@@ -1008,7 +1008,8 @@ Page({
url: config.api.bannerlist, url: config.api.bannerlist,
data: { data: {
pageNum: 1, pageNum: 1,
pageSize: 7
pageSize: 7,
plat:3
} }
}).then(res => { }).then(res => {
that.getmemberId(app.globalData.token); that.getmemberId(app.globalData.token);


+ 2
- 2
index/user.js Bestand weergeven

@@ -48,7 +48,8 @@ Page({




}, },
setPhone(paramData) {//子组件调用这个方法说明手机号已经授权成功
setPhone(paramData) {
//子组件调用这个方法说明手机号已经授权成功
this.setData({ this.setData({
showPhoem: paramData.detail, showPhoem: paramData.detail,
}) })
@@ -124,7 +125,6 @@ Page({
}).then(res => { }).then(res => {
Http.get({ Http.get({
url: config.api.checkPhoneStatus, url: config.api.checkPhoneStatus,

}).then(res => { }).then(res => {
this.setData({ this.setData({
text:res.data.phone text:res.data.phone


+ 50
- 6
pages/coupon/confirmation/confirmation.js Bestand weergeven

@@ -7,6 +7,7 @@ const imgurl = require("../../../utils/imgurl");
Page({ Page({
data: { data: {
couponIds: "", couponIds: "",
showPhoem: false,
couponChannelId: "", couponChannelId: "",
showPage: false, showPage: false,
data: {}, data: {},
@@ -70,6 +71,49 @@ Page({
}) })
}, },


setPhone(paramData) {
//子组件调用这个方法说明手机号已经授权成功
this.setData({
showPhoem: paramData.detail,
})
tt.showToast({
title: '授权成功', // 内容
icon: 'none', // 图标
success: (res) => {

},
fail: (res) => {

},
});
},

setBox(paramData) {
this.setData({
showPhoem: paramData.detail
})
tt.showToast({
title: '取消授权', // 内容
icon: 'none', // 图标
success: (res) => {
tt.reLaunch({
url: "/index/index",
success(res) {
console.log(`${res}`);
app.globalData.selected = 0
},
fail(err) {
console.log(`navigateTo调用失败`,err);
},
});
},
fail: (res) => {

},
});
},

getCouponPriceAndStock(couponChannelId) {//获取券价格与库存 getCouponPriceAndStock(couponChannelId) {//获取券价格与库存
Http.get({ Http.get({
url: config.api.couponPriceAndStock, url: config.api.couponPriceAndStock,
@@ -809,9 +853,12 @@ Page({
* 将值传到用户手机号授权的页面 * 将值传到用户手机号授权的页面
* *
*/ */
tt.navigateTo({
url: `/pages/getPhone/getPhone?couponChannelId=${that.data.couponChannelId}&path=qr`
});
// tt.navigateTo({
// url: `/pages/getPhone/getPhone?couponChannelId=${that.data.couponChannelId}&path=qr`
// });
this.setData({
showPhoem:true
})
} else if (err.code == 11006) { } else if (err.code == 11006) {
// 用户手机已加密 // 用户手机已加密
tt.navigateTo({ tt.navigateTo({
@@ -837,7 +884,6 @@ Page({
url: `/pages/getuserinfo/getuserinfo?fromflag=confirmation&confirmationFlag=${that.data.couponChannelId}`, url: `/pages/getuserinfo/getuserinfo?fromflag=confirmation&confirmationFlag=${that.data.couponChannelId}`,
}) })
} else { } else {

tt.showToast({ tt.showToast({
title: err.message, title: err.message,
icon: "none", icon: "none",
@@ -846,6 +892,4 @@ Page({
} }
}) })
}, },


}) })

+ 1
- 1
pages/coupon/confirmation/confirmation.json Bestand weergeven

@@ -3,7 +3,7 @@
"navbar": "../../../components/navbar/navbar", "navbar": "../../../components/navbar/navbar",
"store": "../../../components/store/index", "store": "../../../components/store/index",
"c-coupons": "../../../components/coupons/index", "c-coupons": "../../../components/coupons/index",
"phoen":"../../../components/getPhoen/getPhoen"
"phoem":"../../../components/getPhoen/getPhoen"
}, },
"navigationBarTitleText": "确认订单", "navigationBarTitleText": "确认订单",
"backgroundColor":"#f4f4f4", "backgroundColor":"#f4f4f4",


+ 1
- 0
pages/coupon/confirmation/confirmation.ttml Bestand weergeven

@@ -16,6 +16,7 @@
<view class="price">{{data.type==50?priceAndStockObj.creditPrice+'积分':priceAndStockObj.salePrice/100}}</view> <view class="price">{{data.type==50?priceAndStockObj.creditPrice+'积分':priceAndStockObj.salePrice/100}}</view>
<view class="buyX" bindtap="orderFunc">{{data.type==50?'立即换购':'提交订单'}}</view> <view class="buyX" bindtap="orderFunc">{{data.type==50?'立即换购':'提交订单'}}</view>
</view> </view>
<phoem showBox="{{showPhoem}}" bind:hiePhoen="setPhone" bind:heiBox="setBox"></phoem>
</view> </view>
<view class="go" bindtap="goInstructions"> <view class="go" bindtap="goInstructions">
<view class="goTitle">使用须知</view> <view class="goTitle">使用须知</view>


+ 51
- 1
project.config.json Bestand weergeven

@@ -1 +1,51 @@
{"setting":{"urlCheck":false,"es6":true,"newFeature":false,"postcss":false,"mockUpdate":true,"minified":false,"autoPush":false,"scripts":false,"mockLogin":false,"autoCompile":true,"localPlugins":false},"appid":"ttde7ca8c141425a2301","projectname":"tt富茂C","condition":{"miniprogram":{"current":-1,"list":[{"id":1650610427387,"name":"华莱士","pathName":"pages/main/index?type=cd&couponChannelId=123467","query":"couponChannelId=676951389111508992","scene":"990001","launchFrom":"scan","location":"qr_code"},{"id":1649905362371,"name":"add","pathName":"pages/main/index","query":"couponChannelId=702061614111186944&type=orderAffirm","scene":"990001","launchFrom":"scan","location":"qr_code"},{"id":1657681080086,"name":"手机号授权","pathName":"pages/main/index","query":"couponChannelId=710372266050117632&type=cd","scene":"990001","launchFrom":"scan","location":"qr_code"}]}}}
{
"setting": {
"urlCheck": true,
"es6": true,
"newFeature": false,
"postcss": false,
"mockUpdate": true,
"minified": false,
"autoPush": false,
"scripts": false,
"mockLogin": false,
"autoCompile": true,
"localPlugins": false
},
"appid": "ttde7ca8c141425a2301",
"projectname": "tt富茂C",
"condition": {
"miniprogram": {
"current": -1,
"list": [
{
"id": 1650610427387,
"name": "华莱士",
"pathName": "pages/main/index?type=cd&couponChannelId=123467",
"query": "couponChannelId=676951389111508992",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
},
{
"id": 1649905362371,
"name": "add",
"pathName": "pages/main/index",
"query": "couponChannelId=702061614111186944&type=orderAffirm",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
},
{
"id": 1657681080086,
"name": "手机号授权",
"pathName": "pages/main/index",
"query": "couponChannelId=710372266050117632&type=cd",
"scene": "990001",
"launchFrom": "scan",
"location": "qr_code"
}
]
}
}
}

Laden…
Annuleren
Opslaan