main
123456 3 weeks ago
parent 2c2e219491
commit 1a5ac214c4
  1. 42
      pages/peiwan/confirm.vue
  2. 28
      pages/users/recharge/index.vue
  3. 6
      unpackage/cache/certdataios
  4. 6
      unpackage/dist/build/app-plus/app-service.js
  5. 6
      unpackage/dist/build/app-plus/app-view.js
  6. 211
      unpackage/dist/dev/app-plus/app-service.js
  7. 216
      unpackage/dist/dev/app-plus/app-view.js

@ -86,16 +86,30 @@
<view class="title">支付方式</view>
<view class="pay" v-if="payInfo && payInfo.length >= 1">
<template v-for="(a,i) in payInfo">
<template v-if="platform == 'ios'">
<view class="item" v-if="a=='wx-1' || a=='ali-1' || a=='integral-1'" :key="i" :class="tabIndex == i?'item-on':''" @click="tabItem(i,a)">
<view class="a" v-if="a=='wx-1'"><image src="@/static/wxpay.png"></image>微信支付</view>
<view class="a" v-if="a=='ali-1'"><image src="@/static/zfb.png"></image>支付宝支付</view>
<view class="a" v-if="a=='integral-1'"><image src="@/static/yue.png"></image>余额支付<text>账户余额{{userInfo.money}}</text></view>
<!-- <view class="a" v-if="a=='ios-1'"><image src="@/static/pgzf.png"></image>苹果支付</view> -->
<view class="b">
<image class="img1" src="@/static/icon-check.png"></image>
<image class="img2" src="@/static/icon-check-on.png"></image>
</view>
</view>
</template>
<template v-else>
<view class="item" v-if="a=='wx-1' || a=='ali-1' || a=='integral-1'" :key="i" :class="tabIndex == i?'item-on':''" @click="tabItem(i,a)">
<view class="a" v-if="a=='wx-1'"><image src="@/static/wxpay.png"></image>微信支付</view>
<view class="a" v-if="a=='ali-1'"><image src="@/static/zfb.png"></image>支付宝支付</view>
<view class="a" v-if="a=='integral-1'"><image src="@/static/yue.png"></image>余额支付<text>账户余额{{userInfo.money}}</text></view>
<view class="b">
<image class="img1" src="@/static/icon-check.png"></image>
<image class="img2" src="@/static/icon-check-on.png"></image>
</view>
</view>
</template>
</template>
</view>
</view>
<view class="peiwan-fd">
@ -109,6 +123,7 @@
</template>
<script>
const systemInfo = uni.getSystemInfoSync();
export default {
data() {
return {
@ -140,11 +155,13 @@
second: true
},
lufei: 0,
total: 0
total: 0,
platform: 'ios'
};
},
onLoad(o) {
this.id = o.id;
this.platform = systemInfo.platform;
this.userSellerServiceList();
this.getConfigData();
this.getUserInfo();
@ -324,6 +341,16 @@
})
return ;
}
if(this.payType == 'integral-1'){
if(this.total > this.userInfo.money){
uni.showToast({
icon: "none",
position: "bottom",
title: "账户余额不足"
})
return ;
}
}
uni.showLoading({
title: "正在支付"
})
@ -356,11 +383,22 @@
async toPay(outTradeNo) {
const that = this;
const {code, data, msg} = await that.$api.paymentOrder({
payType: that.payType =='wx-1'?1:2,
payType: that.payType =='wx-1'?1:(that.payType=='ali-1'?2:3),
outTradeNo
})
if(code == 200){
uni.hideLoading()
if(that.payType == 'integral-1'){
uni.showToast({
title: "支付成功"
})
setTimeout(()=>{
uni.redirectTo({
url: "/pages/users/order/index"
})
},2000)
return ;
}
uni.requestPayment({
provider: that.payType == 'ali-1'?'alipay':'wxpay',
orderInfo: that.payType == 'ali-1'?data.orderInfo:JSON.parse(data.orderInfo), //

@ -121,6 +121,33 @@
return ;
}
}
if(this.platform == 'ios'){
if(this.payType == 'ios-1'){
plus.payment.getChannels((channels) => {
console.log(channels);
for (var i in channels) {
var channel = channels[i];
if (channel.id == 'appleiap'){
console.log("苹果")
let iap = channel;
//
iap.requestOrder(['chunwanProPackage'], function(orderList){
// iap
console.log('requestOrder success: ' + JSON.stringify(orderList))
// that.applePay(orderList[0])
},function(e){
console.log('requestOrder failed: ' + JSON.stringify(e));
// console.log(' iap ')
});
}
}
}, function(e) {
console.log("获取iap支付通道失败:" + e.message);
});
return ;
}
}
that.show = false;
that.tabIndex = -1;
uni.showLoading({
@ -198,6 +225,7 @@
let res1 = await that.$api.getConfigData({dictType: 'CONFIG_PAY_STATUS'});
if(res1.data.content){
this.payInfo = res1.data.content.split(",");
console.log(this.payInfo)
}
},
//

@ -1,3 +1,3 @@
iosProfile=D:/仁周项目/2024-09-06 陪玩陪俩(纯玩)项目/chunwan/N8FALQ8QPS-ios_app_development.mobileprovision
ioscertFile=D:/仁周项目/2024-09-06 陪玩陪俩(纯玩)项目/chunwan/DGY4Q7WK66-ios_development-p12/DGY4Q7WK66-ios_development.p12
ioscertPassword=kh1D8MIbg8iTKvf3WkYKvw==
iosProfile=D:/仁周项目/2024-09-06 陪玩陪俩(纯玩)项目/chunwan/发布-ios_app_store.mobileprovision
ioscertFile=D:/仁周项目/2024-09-06 陪玩陪俩(纯玩)项目/chunwan/发布-ios_distribution-p12/CXG3W4G273-ios_distribution.p12
ioscertPassword=ffGC+00MkDTQ00zBfErOag==

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -24893,13 +24893,15 @@ var render = function () {
_vm._l(_vm._$g(58, "f"), function (a, i, $21, $31) {
return [
_vm._$g("59-" + $31, "i")
? [
_vm._$g("60-" + $31, "i")
? _c(
"uni-view",
{
key: a["k0"],
staticClass: _vm._$g("59-" + $31, "sc"),
class: _vm._$g("59-" + $31, "c"),
attrs: { _i: "59-" + $31 },
key: _vm._$g("60-" + $31, "a-key"),
staticClass: _vm._$g("60-" + $31, "sc"),
class: _vm._$g("60-" + $31, "c"),
attrs: { _i: "60-" + $31 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -24907,18 +24909,21 @@ var render = function () {
},
},
[
_vm._$g("60-" + $31, "i")
_vm._$g("61-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g("60-" + $31, "sc"),
attrs: { _i: "60-" + $31 },
staticClass: _vm._$g(
"61-" + $31,
"sc"
),
attrs: { _i: "61-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/wxpay.png",
_i: "61-" + $31,
_i: "62-" + $31,
},
}),
_vm._v("微信支付"),
@ -24926,18 +24931,21 @@ var render = function () {
1
)
: _vm._e(),
_vm._$g("62-" + $31, "i")
_vm._$g("63-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g("62-" + $31, "sc"),
attrs: { _i: "62-" + $31 },
staticClass: _vm._$g(
"63-" + $31,
"sc"
),
attrs: { _i: "63-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/zfb.png",
_i: "63-" + $31,
_i: "64-" + $31,
},
}),
_vm._v("支付宝支付"),
@ -24945,28 +24953,34 @@ var render = function () {
1
)
: _vm._e(),
_vm._$g("64-" + $31, "i")
_vm._$g("65-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g("64-" + $31, "sc"),
attrs: { _i: "64-" + $31 },
staticClass: _vm._$g(
"65-" + $31,
"sc"
),
attrs: { _i: "65-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/yue.png",
_i: "65-" + $31,
_i: "66-" + $31,
},
}),
_vm._v("余额支付"),
_c(
"v-uni-text",
{ attrs: { _i: "66-" + $31 } },
{ attrs: { _i: "67-" + $31 } },
[
_vm._v(
"(账户余额" +
_vm._$g("66-" + $31, "t0-0") +
_vm._$g(
"67-" + $31,
"t0-0"
) +
"元)"
),
]
@ -24978,31 +24992,169 @@ var render = function () {
_c(
"uni-view",
{
staticClass: _vm._$g("67-" + $31, "sc"),
attrs: { _i: "67-" + $31 },
staticClass: _vm._$g("68-" + $31, "sc"),
attrs: { _i: "68-" + $31 },
},
[
_c("v-uni-image", {
staticClass: _vm._$g("68-" + $31, "sc"),
staticClass: _vm._$g(
"69-" + $31,
"sc"
),
attrs: {
src: "/static/icon-check.png",
_i: "68-" + $31,
_i: "69-" + $31,
},
}),
_c("v-uni-image", {
staticClass: _vm._$g("69-" + $31, "sc"),
staticClass: _vm._$g(
"70-" + $31,
"sc"
),
attrs: {
src: "/static/icon-check-on.png",
_i: "69-" + $31,
_i: "70-" + $31,
},
}),
],
1
),
],
1
)
: _vm._e(),
]
: [
_vm._$g("72-" + $31, "i")
? _c(
"uni-view",
{
key: _vm._$g("72-" + $31, "a-key"),
staticClass: _vm._$g("72-" + $31, "sc"),
class: _vm._$g("72-" + $31, "c"),
attrs: { _i: "72-" + $31 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
},
},
},
[
_vm._$g("73-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g(
"73-" + $31,
"sc"
),
attrs: { _i: "73-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/wxpay.png",
_i: "74-" + $31,
},
}),
_vm._v("微信支付"),
],
1
)
: _vm._e(),
_vm._$g("75-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g(
"75-" + $31,
"sc"
),
attrs: { _i: "75-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/zfb.png",
_i: "76-" + $31,
},
}),
_vm._v("支付宝支付"),
],
1
)
: _vm._e(),
_vm._$g("77-" + $31, "i")
? _c(
"uni-view",
{
staticClass: _vm._$g(
"77-" + $31,
"sc"
),
attrs: { _i: "77-" + $31 },
},
[
_c("v-uni-image", {
attrs: {
src: "/static/yue.png",
_i: "78-" + $31,
},
}),
_vm._v("余额支付"),
_c(
"v-uni-text",
{ attrs: { _i: "79-" + $31 } },
[
_vm._v(
"(账户余额" +
_vm._$g(
"79-" + $31,
"t0-0"
) +
"元)"
),
]
),
],
1
)
: _vm._e(),
_c(
"uni-view",
{
staticClass: _vm._$g("80-" + $31, "sc"),
attrs: { _i: "80-" + $31 },
},
[
_c("v-uni-image", {
staticClass: _vm._$g(
"81-" + $31,
"sc"
),
attrs: {
src: "/static/icon-check.png",
_i: "81-" + $31,
},
}),
_c("v-uni-image", {
staticClass: _vm._$g(
"82-" + $31,
"sc"
),
attrs: {
src: "/static/icon-check-on.png",
_i: "82-" + $31,
},
}),
],
1
),
],
1
)
: _vm._e(),
],
]
}),
],
@ -25014,14 +25166,14 @@ var render = function () {
),
_c(
"uni-view",
{ staticClass: _vm._$g(70, "sc"), attrs: { _i: 70 } },
{ staticClass: _vm._$g(83, "sc"), attrs: { _i: 83 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(71, "sc"), attrs: { _i: 71 } },
{ staticClass: _vm._$g(84, "sc"), attrs: { _i: 84 } },
[
_vm._v("合计:¥" + _vm._$g(71, "t0-0")),
_c("v-uni-text", { attrs: { _i: 72 } }, [
_vm._v("合计:¥" + _vm._$g(84, "t0-0")),
_c("v-uni-text", { attrs: { _i: 85 } }, [
_vm._v("通过阿里云提供计算服务"),
]),
],
@ -25030,8 +25182,8 @@ var render = function () {
_c(
"uni-view",
{
staticClass: _vm._$g(73, "sc"),
attrs: { _i: 73 },
staticClass: _vm._$g(86, "sc"),
attrs: { _i: 86 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -25044,7 +25196,7 @@ var render = function () {
1
),
_c("u-picker", {
attrs: { _i: 74 },
attrs: { _i: 87 },
on: {
cancel: function ($event) {
return _vm.$handleViewEvent($event)
@ -25054,7 +25206,7 @@ var render = function () {
},
},
model: {
value: _vm._$g(74, "v-model"),
value: _vm._$g(87, "v-model"),
callback: function () {},
expression: "show",
},

Loading…
Cancel
Save