|
@@ -80,7 +80,7 @@ Page({
|
|
|
this.getBannerList()
|
|
|
if(getMobileCache() != ''){
|
|
|
Integralinfo.getBalance({
|
|
|
- mobile: '13816922995',
|
|
|
+ mobile: getMobileCache(),
|
|
|
callbackUrl: '../integral/integral.wxml',
|
|
|
fingerprint: '',
|
|
|
sessionid: '',
|
|
@@ -287,9 +287,9 @@ getPhoneNumber(e) {
|
|
|
var reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
this.setData({
|
|
|
isLogin: true,
|
|
|
- setPhone: '13816922995',
|
|
|
- mobile: '13816922995',
|
|
|
- phone: '13816922995'.replace(reg, "$1****$2")
|
|
|
+ setPhone: getMobileCache(),
|
|
|
+ mobile: getMobileCache(),
|
|
|
+ phone: getMobileCache().replace(reg, "$1****$2")
|
|
|
})
|
|
|
// console.log(this.data.setPhone)
|
|
|
// console.log(this.data.mobile)
|
|
@@ -322,7 +322,7 @@ getphoneClick() {
|
|
|
// title: '加载中'
|
|
|
// });
|
|
|
Integralinfo.getBalance({
|
|
|
- mobile: '13816922995',
|
|
|
+ mobile: getMobileCache(),
|
|
|
callbackUrl: '../integral/integral.wxml',
|
|
|
fingerprint: '',
|
|
|
sessionid: '',
|
|
@@ -335,8 +335,8 @@ getphoneClick() {
|
|
|
var reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
this.setData({
|
|
|
integralNum: arr.data,
|
|
|
- setPhone: '13816922995',
|
|
|
- phone: this.data.setPhone.replace(reg, "$1****$2"),
|
|
|
+ setPhone: getMobileCache(),
|
|
|
+ phone: getMobileCache().replace(reg, "$1****$2"),
|
|
|
})
|
|
|
// this.data.integralNum = arr.data
|
|
|
// var reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
@@ -476,7 +476,7 @@ addClick(e) {
|
|
|
/** 刷新 */
|
|
|
shuaxinClick() {
|
|
|
Integralinfo.getBalance({
|
|
|
- mobile: '13816922995',
|
|
|
+ mobile: getMobileCache(),
|
|
|
callbackUrl: '../integral/integral.wxml',
|
|
|
fingerprint: '',
|
|
|
sessionid: '',
|
|
@@ -494,8 +494,8 @@ shuaxinClick() {
|
|
|
var reg = /^(\d{3})\d{4}(\d{4})$/;
|
|
|
this.setData({
|
|
|
integralNum: arr.data,
|
|
|
- setPhone: '13816922995',
|
|
|
- phone: this.data.setPhone.replace(reg, "$1****$2"),
|
|
|
+ setPhone: getMobileCache(),
|
|
|
+ phone: getMobileCache().replace(reg, "$1****$2"),
|
|
|
})
|
|
|
|
|
|
}
|
|
@@ -542,7 +542,7 @@ paymentClick() {
|
|
|
Integralinfo.getOrder({
|
|
|
fingerprint:'',
|
|
|
list: data,
|
|
|
- mobile: this.data.setPhone,
|
|
|
+ mobile: getMobileCache(),
|
|
|
tgid: this.data.tgid,
|
|
|
sessionid:'',
|
|
|
shopid: this.data.shopid
|
|
@@ -560,7 +560,7 @@ paymentClick() {
|
|
|
order_no: res.data.order_no,
|
|
|
step: res.data.step,
|
|
|
date: Math.round(new Date().getTime() / 1000).toString(),
|
|
|
- mobile: this.data.mobile
|
|
|
+ mobile: getMobileCache()
|
|
|
},
|
|
|
})
|
|
|
wx.setStorageSync('orderDetails', JSON.stringify(this.data.active1obj))
|
|
@@ -616,7 +616,7 @@ paymentClick() {
|
|
|
// #endif
|
|
|
Integralinfo.getPayOnce({
|
|
|
fingerprint: '',
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
optCode: this.data.active2code,
|
|
|
order_no: this.data.active1obj.order_no,
|
|
|
orderId: this.data.active1obj.orderId,
|
|
@@ -648,7 +648,7 @@ paymentClick() {
|
|
|
wx.setStorageSync('orderDetails', null)
|
|
|
wx.hideLoading();
|
|
|
wx.navigateTo({
|
|
|
- url: '../success/success?row=' + JSON.stringify(obj)
|
|
|
+ url: '../integral/success?row=' + JSON.stringify(obj)
|
|
|
})
|
|
|
} else {
|
|
|
wx.hideLoading();
|
|
@@ -673,7 +673,7 @@ paymentClick() {
|
|
|
} else if (this.data.activeNum === 0 && this.data.active1code !== '') {
|
|
|
Integralinfo.getPayOnce({
|
|
|
fingerprint: '',
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
optCode: this.data.active1code,
|
|
|
orderId: this.data.active1obj.orderId,
|
|
|
order_no: this.data.active1obj.order_no,
|
|
@@ -738,7 +738,7 @@ paymentClick() {
|
|
|
console.log('发送短信')
|
|
|
Integralinfo.getPaySend({
|
|
|
order_no: this.data.active1obj.order_no,
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
shopid: this.data.shopid,
|
|
|
}).then(res => {
|
|
|
if (res.code === '0000') {
|
|
@@ -774,7 +774,7 @@ paymentClick() {
|
|
|
if ((this.data.activeNum === 1 && this.data.codeName === '重新获取验证码') && this.data.active1obj.step === 1) {
|
|
|
Integralinfo.getSendCmccSms({
|
|
|
orderId: this.data.active1obj.orderId,
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
shopid: this.data.shopid
|
|
|
}).then(res => {
|
|
|
if (res.code === '0000') {
|
|
@@ -808,7 +808,7 @@ paymentClick() {
|
|
|
if (this.data.activeNum === 0 && this.data.codeName === '重新获取验证码') {
|
|
|
Integralinfo.getSendCmccSms({
|
|
|
orderId: this.data.active1obj.orderId,
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
shopid: this.data.shopid
|
|
|
}).then(res => {
|
|
|
if (res.code === '0000') {
|
|
@@ -837,7 +837,7 @@ paymentClick() {
|
|
|
console.log('短信')
|
|
|
Integralinfo.getPaySend({
|
|
|
order_no: this.data.active1obj.order_no,
|
|
|
- mobile: this.data.mobile,
|
|
|
+ mobile: getMobileCache(),
|
|
|
shopid: this.data.shopid,
|
|
|
}).then(res => {
|
|
|
if (res.code === '0000') {
|