feature/v-xuexi
xuyu 8 months ago
parent 3886709bfa
commit 51ba0af8b6
  1. 19
      .idea/php.xml
  2. 2
      manifest.json
  3. 9
      pages/special/order.vue
  4. 34
      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);
@ -433,7 +434,7 @@
.showNavBg {
background: #fff!important;
}
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
.base-container {
background: transparent!important;
padding-bottom: calc(0rpx + var(--safe-top))!important;
@ -571,7 +572,7 @@
font-size: 26rpx;
color: #868686;
}
.order-detail .section.goods {
width: 690rpx;
margin: 20rpx auto 0;
@ -827,4 +828,4 @@
.footer-btn+.footer-btn {
margin-left: 8rpx;
}
</style>
</style>

@ -171,10 +171,10 @@ export default {
});
},
/**
*
*
* @param {int} support_type 咨询内容类型
* @param {int} id 商品/订单ID
* @param {int} type 商品/订单类型
* @param {int} type 商品/订单类型
*/
goSupport(support_type = 0, type = 0, id = 0 ,mer_id = 0) {
this.checkLogin(() => {
@ -262,7 +262,7 @@ export default {
// #ifdef MP-TOUTIAO
setTimeout(() => {
this.showMsg("请点击头像登录")
}, 1000);
}, 1000);
return uni.switchTab({
url: "/pages/mine/index"
});
@ -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,
@ -601,7 +619,7 @@ export default {
userInfo.code = code;
userInfo.spread_spid = app.globalData.spid || 0; //获取推广人ID
userInfo.currentAvatar = currentAvatar || '';
userInfo.username = username || '';
userInfo.username = username || '';
userInfo.agent_id=app.globalData.agent_id || 0
console.log(userInfo)
Routine.authUserInfo(userInfo).then(res => {
@ -616,7 +634,7 @@ export default {
vm.tipIsVisable = true
}
})
})
.catch(res => {
uni.hideLoading();
@ -765,7 +783,7 @@ export default {
userInfo.code = loginRes.code;
userInfo.spread_spid = app.globalData.spid || 0; //获取推广人ID
userInfo.agent_id=app.globalData.agent_id || 0;
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
userInfo.type = 'weixin'
// #endif
// #ifndef MP-WEIXIN
@ -824,7 +842,7 @@ export default {
/*#ifdef MP-KUAISHOU */
return this.getKSUserProfile(vm)
/* #endif */
// #ifdef APP-PLUS
// #ifdef APP-PLUS
console.log('APP-PLUS');
// vm.loginShow = true;
uni.navigateTo({
@ -855,4 +873,4 @@ export default {
let u = navigator.userAgent;
return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
}
}
}

Loading…
Cancel
Save