feature/v-xuexi
xuyu 9 months ago
parent 3886709bfa
commit 51ba0af8b6
  1. 19
      .idea/php.xml
  2. 2
      manifest.json
  3. 3
      pages/special/order.vue
  4. 18
      utils/utils.js

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>

@ -1,6 +1,6 @@
{
"name" : "梦航学习宝",
"appid" : "__UNI__640EC10",
"appid" : "__UNI__411F00F",
"description" : "1.1.5",
"versionName" : "1.0.15",
"versionCode" : 115,

@ -350,7 +350,8 @@
this.extendOrder(data.msg);
break;
case "WECHAT_PAY":
this.wechatPay(data.data.result.jsConfig);
// this.wechatPay(data.data.result.jsConfig);
this.$util.weixinAppPay(data.data.result.jsConfig,this);
break;
case "WECHAT_ROUTINE_PAY":
this.$util.wechatRoutinePay(data.data.result.jsConfig, this);

@ -529,6 +529,24 @@ export default {
}, 1000);
},
weixinAppPay(jsConfig, vm) {
uni.showLoading({
title: '支付中'
});
uni.requestPayment({
provider: 'wxpay',
orderInfo: jsConfig,
success: function (res) {
vm.successOrder();
},
fail: function (err) {
vm.extendOrder()
},
complete: () => {
uni.hideLoading();
},
})
},
weixinpay(config, vm) {
WeixinJSBridge.invoke(
'getBrandWCPayRequest', config,

Loading…
Cancel
Save