去掉微信支付
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
"type" : "uni-app:app-ios"
|
||||
},
|
||||
{
|
||||
"playground" : "standard",
|
||||
"playground" : "custom",
|
||||
"type" : "uni-app:app-android"
|
||||
}
|
||||
]
|
||||
|
||||
2
App.vue
2
App.vue
@@ -150,7 +150,7 @@
|
||||
|
||||
.commonPage,
|
||||
.commonPageBox {
|
||||
height: 100vh;
|
||||
height: calc(100vh - 50px);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ if (process.env.NODE_ENV === 'development') {
|
||||
} else if (process.env.NODE_ENV === 'production') {
|
||||
// 生产环境11
|
||||
// baseUrl = "http://59.110.212.44:9100/pb/";
|
||||
// baseUrl = "https://testapi.nuttyreading.com/";
|
||||
baseUrl = "https://api.nuttyreading.com/"; //1
|
||||
baseUrl = "https://testapi.nuttyreading.com/";
|
||||
// baseUrl = "https://api.nuttyreading.com/"; //1
|
||||
// baseUrl = "ws://twin-ui.com:6001/";
|
||||
// socketUrl = "ws://twin-ui.com:6001/";
|
||||
}
|
||||
|
||||
@@ -263,20 +263,30 @@ export const checkBookRight = function(data,callback) {
|
||||
|
||||
// 单独微信支付
|
||||
export const setWXPay = function(payInfo, callback) {
|
||||
console.log('都走这个接口', payInfo)
|
||||
// payInfo = {
|
||||
// "orderSn": "20240524123456789101112131415167",
|
||||
// "buyOrderId": 15,
|
||||
// "totalAmount": "38"
|
||||
// }
|
||||
$http.request({
|
||||
url: "/pay/placeAnOrder/shoppingPay",
|
||||
url: "pay/placeAnOrder/shoppingPay",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data:payInfo,
|
||||
data: {
|
||||
...payInfo,
|
||||
appName: 'medicine'
|
||||
},
|
||||
header: { //默认 无 说明:请求头1
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
}).then(res => {
|
||||
console.log(res,'resshoppingPay')
|
||||
if(res.code === 0){
|
||||
console.log(res, 'resshoppingPay')
|
||||
if (res.code === 0) {
|
||||
console.log('接下来走微信接口啦')
|
||||
let payData = {
|
||||
provider : 'wxpay',
|
||||
provider: 'wxpay',
|
||||
orderInfo: {
|
||||
"appid": res.paramMap.appid , // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
|
||||
"appid": res.paramMap.appid, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
|
||||
"noncestr": res.Map.noncestr, // 随机字符串
|
||||
"package": res.Map.package, // 固定值
|
||||
"partnerid": res.paramMap.mchid, // 微信支付商户号
|
||||
@@ -297,12 +307,12 @@ export const setWXPay = function(payInfo, callback) {
|
||||
success: false,
|
||||
data: err
|
||||
});
|
||||
console.log('fail:' + JSON.stringify(err));
|
||||
console.log('微信错误fail:' + JSON.stringify(err));
|
||||
|
||||
}
|
||||
}
|
||||
// console.log(payData)
|
||||
if(payData.orderInfo.prepayid != '' && payData.orderInfo.prepayid != undefined){
|
||||
if (payData.orderInfo.prepayid != '' && payData.orderInfo.prepayid != undefined) {
|
||||
uni.requestPayment(payData);
|
||||
}
|
||||
}
|
||||
|
||||
14
pages.json
14
pages.json
@@ -8,6 +8,12 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页"
|
||||
}
|
||||
},{
|
||||
"path": "pages/user/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"enablePullDownRefresh": false // 禁止下拉刷新
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mine/vip/index",
|
||||
@@ -102,13 +108,7 @@
|
||||
"navigationBarTitleText": "注册"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"enablePullDownRefresh": false // 禁止下拉刷新
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/user/healthLog",
|
||||
"style": {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view
|
||||
class="container commonPageBox commonDetailPage" style="background-color: #f6f7fb"
|
||||
class="container commonPageBox commonDetailPage"
|
||||
style="background-color: #f6f7fb"
|
||||
>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
@@ -1580,4 +1581,9 @@ export default {
|
||||
color: #9b9b9b;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
/deep/.commonDetailPage{
|
||||
.uni-app--showtabbar uni-page-wrapper::after {
|
||||
height: 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -165,9 +165,9 @@
|
||||
|
||||
<text class="total">¥{{ dataInfo.lastFee }}</text>
|
||||
</text>
|
||||
<text style="color: #333; margin-left: 10rpx"
|
||||
<!-- <text style="color: #333; margin-left: 10rpx"
|
||||
>原价{{ dataInfo.fee }}</text
|
||||
>
|
||||
> -->
|
||||
</view>
|
||||
</template>
|
||||
</common-goods-nav>
|
||||
@@ -240,12 +240,12 @@ export default {
|
||||
type: 2,
|
||||
value: "0",
|
||||
},
|
||||
{
|
||||
text: "微信",
|
||||
imgUrl: require("@/static/icon/pay_2.png"),
|
||||
type: 1,
|
||||
value: "1",
|
||||
},
|
||||
// {
|
||||
// text: "微信",
|
||||
// imgUrl: require("@/static/icon/pay_2.png"),
|
||||
// type: 1,
|
||||
// value: "1",
|
||||
// },
|
||||
{
|
||||
text: "天医币",
|
||||
imgUrl: require("@/static/icon/pay_3.png"),
|
||||
@@ -560,7 +560,7 @@ export default {
|
||||
|
||||
let data = {
|
||||
paymentMethod: this.payType, //1微信2支付宝3苹果支付4虚拟币
|
||||
orderMoney: this.dataInfo.fee, //订单金额
|
||||
orderMoney: this.dataInfo.lastFee, //订单金额
|
||||
realMoney: this.dataInfo.lastFee, //实际金额
|
||||
shippingMoney: 0, //运费
|
||||
jfDeduction: 0, //积分抵扣
|
||||
|
||||
BIN
static/customicons.ttf
Normal file
BIN
static/customicons.ttf
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user