对接支付宝小程序
This commit is contained in:
@@ -507,7 +507,7 @@
|
||||
params: params,
|
||||
is_realstore_model: (params.realstore_id || null) != null,
|
||||
plugins_points_status: app.globalData.get_config('plugins_base.points.data.is_default_use_points', null) == 1,
|
||||
// pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
// pay_url: app.globalData.get_request_url('getpayment', 'xo'),
|
||||
qrcode_url: app.globalData.get_request_url('paycheck', 'order'),
|
||||
});
|
||||
@@ -664,15 +664,19 @@
|
||||
console.log('直接走支付流程');
|
||||
this.$refs.payment.pay_handle(order_id, payment_id, payment_list);
|
||||
}
|
||||
}
|
||||
|
||||
if (payment == 'IEPayPoli') {
|
||||
} else if (payment == 'WalletPay') {
|
||||
// 支付宝支付 改装钱包余额支付
|
||||
console.log('支付宝支付===', order_id);
|
||||
} else if (payment == 'IEPayPoli') {
|
||||
console.log('开始无忧支付===', order_id);
|
||||
|
||||
this.pay_url = app.globalData.get_request_url('wuYouPay', 'xo');
|
||||
this.$nextTick(() => {
|
||||
this.$refs.payment.pay_handle(order_id, payment_id, payment_list);
|
||||
});
|
||||
} else {
|
||||
// 直接走支付流程
|
||||
console.log('直接走支付流程');
|
||||
this.$refs.payment.pay_handle(order_id, payment_id, payment_list);
|
||||
}
|
||||
},
|
||||
// 初始化配置
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="container" :class="[themeConfigData.layout]">
|
||||
<status-bar-height></status-bar-height>
|
||||
<view class="page-bg2" v-if="themeConfigData.layout == 'layout3'">
|
||||
<view class="status" style="background-color: #fb1723">
|
||||
<status-bar-height></status-bar-height>
|
||||
</view>
|
||||
<image class="img" :src="themeConfigData.layoutData.search.backgroundImage" mode="widthFix"></image>
|
||||
<view class="page-tab">
|
||||
<view class="item active">
|
||||
@@ -548,6 +550,7 @@
|
||||
url: app.globalData.get_request_url('pageConfigCurrent', 'common'),
|
||||
method: 'GET',
|
||||
success: (res) => {
|
||||
console.log('getThemeConfig.res===', res);
|
||||
console.log('getThemeConfig===', JSON.parse(res.data.data.json_data));
|
||||
if (res.data.code == 0) {
|
||||
this.themeConfigData = JSON.parse(res.data.data.json_data);
|
||||
@@ -983,6 +986,9 @@
|
||||
.container {
|
||||
&.layout3 {
|
||||
padding-top: 174upx;
|
||||
/* #ifdef MP-ALIPAY */
|
||||
padding-top: 254upx;
|
||||
/* #endif */
|
||||
}
|
||||
}
|
||||
.layout3-category {
|
||||
@@ -1118,9 +1124,14 @@
|
||||
.page-tab {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
/* #ifdef MP-ALIPAY */
|
||||
top: calc(var(--status-bar-height) + 40upx);
|
||||
left: 50upx;
|
||||
/* #endif */
|
||||
display: flex;
|
||||
padding: 0 29upx;
|
||||
padding: 0 30upx;
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
this.init_config();
|
||||
|
||||
// 数据加载
|
||||
// this.init();
|
||||
this.init();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@@ -232,10 +232,15 @@
|
||||
// 获取数据
|
||||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
console.log('user===', user);
|
||||
if (user != false) {
|
||||
this.setData({
|
||||
// pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
// #ifdef MP-ALIPAY
|
||||
pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
pay_url: app.globalData.get_request_url('getpayment', 'xo'),
|
||||
// #endif
|
||||
qrcode_url: app.globalData.get_request_url('paycheck', 'order'),
|
||||
});
|
||||
|
||||
@@ -258,6 +263,8 @@
|
||||
|
||||
// 获取数据
|
||||
get_data_list(is_mandatory) {
|
||||
console.log('is_mandatory===', is_mandatory);
|
||||
|
||||
// 分页是否还有数据
|
||||
if ((is_mandatory || 0) == 0) {
|
||||
if (this.data_bottom_line_status == true) {
|
||||
|
||||
Reference in New Issue
Block a user