2023-3-4
支付宝支付
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import store from '../store/index';
|
||||
export default {
|
||||
// qq 237524947 wx15d4269d3210863d
|
||||
// BASEURI: 'http://2wsiyd.natappfree.cc/api/',
|
||||
// BASEURI: 'http://5rygzr.natappfree.cc/api/',
|
||||
BASEURI: 'http://mall.yyundong.com/portalapi/api/',
|
||||
// BASEURI: 'http://192.168.31.52:8083/api/',
|
||||
ADMINURI: 'http://mall.yyundong.com/adminapi/',
|
||||
|
||||
@@ -121,16 +121,16 @@
|
||||
orderInfo: res,
|
||||
success: function(data) {
|
||||
console.log("aliAppPay_data》》》", data);
|
||||
let rawdataResult = JSON.parse(data.rawdata).result;
|
||||
let r = rawdataResult.split(';')[0];
|
||||
let r1 = rawdataResult.split(';')[0].length - 1;
|
||||
let r2 = rawdataResult.split(';')[0].length - 2;
|
||||
let alipayTradeAppPayResponse = JSON.parse(r.substr(0, r1))
|
||||
.alipay_trade_app_pay_response;
|
||||
let out_trade_no = alipayTradeAppPayResponse.out_trade_no;
|
||||
let rawdataResult1 = data.rawdata;
|
||||
console.log("rawdataResult1》》》", rawdataResult1);
|
||||
let rawdataResult2 = JSON.parse(rawdataResult1);
|
||||
console.log("rawdataResult2》》》", rawdataResult2);
|
||||
let rawdataResult3 = JSON.parse(rawdataResult2.result);
|
||||
console.log("rawdataResult3》》》", rawdataResult3);
|
||||
|
||||
_this.$common.successToShow('支付成功', () => {
|
||||
//_this.redirectHandler(res.data.payment_id)
|
||||
_this.redirectHandler(out_trade_no);
|
||||
_this.redirectHandler(rawdataResult3.out_trade_no);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "汇融云链",
|
||||
"appid" : "__UNI__FB2C9C4",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0.5",
|
||||
"versionCode" : 1005,
|
||||
"versionName" : "1.0.0.7",
|
||||
"versionCode" : 1007,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
|
||||
@@ -350,6 +350,27 @@
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
});
|
||||
|
||||
/* let data = {
|
||||
"channel": {
|
||||
"id": "alipay",
|
||||
"description": "支付宝",
|
||||
"serviceReady": true
|
||||
},
|
||||
"description": "处理成功",
|
||||
"signature": "heRUjOSHc4w2J+m99Id5x42Q/K7ZD3NUMtDsYmO67ILJAEbDGAR5FMP6M7nRiZz5zpXytL1YRPP2J63YeecPVW/tA7ZB0mfjyA5BerR/W6LOV/BH0KotZvGfwgNWq3GuC9BpCSv7YoLwKNW+acaPh+Fg7wE4zFw5am7DAWlje+midCd60gU7+KrclQ3M7v519lMoVz56sDnzRd0wDhvlrTnJz19H8rn722EPbv60zQNdMc8QMjq8kwh8Yu8q1+tpy0hTy8AHx4qUuhwngRKW7TNmfgjogd4yNZe67QtNmos1u4gGx4zWJGqBnodxm9nsURmCXv6QV8NSHdBcrmxDUg==",
|
||||
"tradeno": "2023030422001417821451126952",
|
||||
"rawdata": "{\"resultStatus\":\"9000\",\"memo\":\"处理成功\",\"result\":\"{\\\"alipay_trade_app_pay_response\\\":{\\\"code\\\":\\\"10000\\\",\\\"msg\\\":\\\"Success\\\",\\\"app_id\\\":\\\"2018082761134635\\\",\\\"auth_app_id\\\":\\\"2018082761134635\\\",\\\"charset\\\":\\\"utf-8\\\",\\\"timestamp\\\":\\\"2023-03-04 15:26:17\\\",\\\"out_trade_no\\\":\\\"16779147527370101341\\\",\\\"total_amount\\\":\\\"0.01\\\",\\\"trade_no\\\":\\\"2023030422001417821451126952\\\",\\\"seller_id\\\":\\\"2088202217235266\\\"},\\\"sign\\\":\\\"heRUjOSHc4w2J+m99Id5x42Q\\/K7ZD3NUMtDsYmO67ILJAEbDGAR5FMP6M7nRiZz5zpXytL1YRPP2J63YeecPVW\\/tA7ZB0mfjyA5BerR\\/W6LOV\\/BH0KotZvGfwgNWq3GuC9BpCSv7YoLwKNW+acaPh+Fg7wE4zFw5am7DAWlje+midCd60gU7+KrclQ3M7v519lMoVz56sDnzRd0wDhvlrTnJz19H8rn722EPbv60zQNdMc8QMjq8kwh8Yu8q1+tpy0hTy8AHx4qUuhwngRKW7TNmfgjogd4yNZe67QtNmos1u4gGx4zWJGqBnodxm9nsURmCXv6QV8NSHdBcrmxDUg==\\\",\\\"sign_type\\\":\\\"RSA2\\\"}\"}",
|
||||
"errMsg": "requestPayment:ok"
|
||||
}
|
||||
|
||||
console.log("aliAppPay_data》》》", data);
|
||||
let rawdataResult1 = data.rawdata;
|
||||
console.log("rawdataResult1》》》", rawdataResult1);
|
||||
let rawdataResult2 = JSON.parse(rawdataResult1);
|
||||
console.log("rawdataResult2》》》", rawdataResult2);
|
||||
let rawdataResult3 = JSON.parse(rawdataResult2.result);
|
||||
console.log("rawdataResult3》》》", rawdataResult3); */
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<view class="content">
|
||||
<text class="success-icon yticon icon-xuanzhong2"></text>
|
||||
<text class="tit">支付成功</text>
|
||||
<view class="result-mid red-price">
|
||||
{{ paymentInfo.payAmount }}
|
||||
</view>
|
||||
<!-- <view class="result-mid red-price">
|
||||
¥ {{ paymentInfo.payAmount }}
|
||||
</view> -->
|
||||
<view class="btn-group">
|
||||
<navigator url="/pages/order/order?status=0" open-type="redirect" class="mix-btn">查看订单</navigator>
|
||||
<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
|
||||
@@ -25,11 +25,11 @@ import Api from '@/common/api';
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.order) {
|
||||
let order = JSON.parse(options.order)
|
||||
this.orderId = order.id
|
||||
this.paymentInfo = order
|
||||
}
|
||||
// if (options.order) {
|
||||
// let order = JSON.parse(options.order)
|
||||
// this.orderId = order.id
|
||||
// this.paymentInfo = order
|
||||
// }
|
||||
|
||||
},
|
||||
methods: {}
|
||||
|
||||
Reference in New Issue
Block a user