Commit 49dfd2b7 by 张立顺

取消键盘收起

1 parent 53c31841
......@@ -188,9 +188,9 @@ Page({
},
// 隐藏键盘
handleHiddenKey() {
this.setData({
keyHidden: true
})
// this.setData({
// keyHidden: true
// })
},
// 显示键盘
handleShowKey() {
......@@ -266,7 +266,7 @@ Page({
res => {
util.hideLoading()
// console.log(res)
let { returnCode, data,message } = res
let { returnCode, data, message } = res
if (returnCode == 0) {
let jsapiPayInfo = data.jsapiPayInfo ? JSON.parse(data.jsapiPayInfo) : {}
......@@ -275,10 +275,10 @@ Page({
outTradeNo: data.outTradeNo
})
_this.wxPayment(jsapiPayInfo)
} else if(returnCode == -1){
} else {
wx.showToast({
title: message || '发起支付失败',
icon:'error'
title: message || returnCode == -1 ? '发起支付失败' : '支付请求失败',
icon: 'error'
})
}
// console.log(JSON.parse(res.data))
......@@ -365,9 +365,9 @@ Page({
// )
// },
getOrderScreenShot() {
let { merchantName,shopMerchantName, dataTime, outTradeNo,payMoney,isYqType } = this.data
let params = JSON.stringify({ merchantName:isYqType?merchantName:shopMerchantName, formatAccountDate: dataTime, selectPayType: 1, outTradeNo, payMoney })
console.log(params,'params');
let { merchantName, shopMerchantName, dataTime, outTradeNo, payMoney, isYqType } = this.data
let params = JSON.stringify({ merchantName: isYqType ? merchantName : shopMerchantName, formatAccountDate: dataTime, selectPayType: 1, outTradeNo, payMoney })
console.log(params, 'params')
api
.orderScreenShot({ url: orderPosterImgUrl + 'orderInfo=' + params })
.then(result => {
......
......@@ -36,11 +36,11 @@ Page({
// console.log('隐藏成功!')
}
})
// options.orderCode = 'S2307141727472187'
// 是别的小程序 跳转过来的
if (options.orderCode) {
this.setData({
orderCode: options.orderCode
otherOrderCode: options.orderCode
})
}
// 开发用
......@@ -87,7 +87,7 @@ Page({
},
gteOpenId() {
let that = this
let { orderCode } = this.data
let { otherOrderCode } = this.data
// debugger
// 登录
wx.login({
......@@ -110,9 +110,9 @@ Page({
self.setData({
openId: data.openId
})
orderCode
otherOrderCode
? that.getOrderDetail({
orderCode
orderCode: otherOrderCode
})
: that.getScenInfo()
}
......@@ -156,9 +156,9 @@ Page({
o
})
_this.wxPayment(o)
} else if (returnCode == -1) {
} else {
wx.showToast({
title: message || '发起支付失败',
title: message || returnCode == -1 ? '发起支付失败' : '订单支付失败',
icon: 'error'
})
}
......@@ -168,7 +168,7 @@ Page({
// 调用微信支付
wxPayment: function (row) {
let _this = this
let { orderCode } = this.data
let { otherOrderCode } = this.data
if (this.data.ajaxing) {
return false
}
......@@ -190,7 +190,7 @@ Page({
wx.setNavigationBarTitle({
title: '支付成功'
})
if (orderCode) {
if (otherOrderCode) {
// 跳转回对应的小程序
return wx.navigateToMiniProgram({
appId: 'wxe10067a63c1856ac',
......@@ -200,7 +200,8 @@ Page({
extraData: {
// foo: 'bar'
},
envVersion: envName,
// envVersion: envName,
envVersion: 'trial',
success(res) {
// 打开成功
}
......@@ -273,7 +274,7 @@ Page({
})
.then(res => {
console.log(res, 'res')
let { code, data, errId } = res
let { code, data, errId, message } = res
// console.log(data, 'data')
// console.log(data.sceneType == 1);
// debugger
......@@ -292,7 +293,7 @@ Page({
}
} else if (errId == '-5003') {
wx.showToast({
title: '订单已失效',
title: message || '订单已失效',
icon: 'error'
})
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!