修改订单问题

This commit is contained in:
liuyuan
2025-07-01 16:34:25 +08:00
parent e0556ef0fd
commit c7bab5afb4
12 changed files with 1065 additions and 743 deletions

View File

@@ -19,6 +19,7 @@ Vue.prototype.$getHours = nowHour
// 地址
//Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
// 安卓安卓包下载地址
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
Vue.prototype.$apkUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.cn.medicine" // 应用宝

View File

@@ -188,7 +188,7 @@
style="width: 100rpx; height: 100rpx"
></image>
<view class="itemJian">
<view class="orderTitle" style="line-height: 100rpx">
<view class="orderTitle" style="line-height: 44rpx">
<text>{{ orderContet.remark }}</text>
</view>
<view class="orderPrice">
@@ -198,6 +198,7 @@
</view>
<br clear="both" />
</view>
<view class="orderContent" v-if="orderContet.orderType == 'vip'">
<image
src="/static/icon/vip.png"
@@ -215,6 +216,16 @@
</view>
<br clear="both" />
</view>
<view class="orderContent" v-if="orderContet.orderType == 'aiVip'||orderContet.orderType == 'upgradeAiVip'" style=" display: flex; align-items: center; justify-content: center;">
<image src="/static/icon/order_vip.png" mode="aspectFill" style="width: 100rpx; height: 100rpx; flex-shrink: 0;"></image>
<view class="itemJian">
<view class="orderTitle" style="line-height: 46rpx; margin-bottom: 0;">
{{ orderContet.aiBuyConfig.title }}<span style=" color: red;">{{ orderContet.aiBuyConfig.count }}次)<span v-if="orderContet.orderType=='upgradeAiVip'">VIP升级</span></span>
</view>
</view>
</view>
<view
class="orderContent"
v-else-if="orderContet.orderType == 'point'"

View File

@@ -222,7 +222,7 @@
validateFunction: (rule, value, data, callback) => {
// 异步需要返回 Promise 对象
return new Promise((resolve, reject) => {
if (!this.$base.phoneRegular.test(value)) {
if (!/^\d{5,15}$/.test(value)) {
reject(new Error("手机号格式不正确"));
} else {
resolve();

View File

@@ -1034,6 +1034,7 @@
if (this.curCouponId && this.curCoupon.couponEntity.id) {
couponAmount = this.curCoupon.couponEntity.couponAmount;
}
this.actualPayment =
this.totalPrice -
couponAmount -
@@ -1291,6 +1292,7 @@
that.freightNum -
that.districtAmount -
that.vipPrice;
console.log(that.actualPayment)
} else {
that.actualPayment =
that.totalPrice +

View File

@@ -2,8 +2,7 @@
<view class="container commonPageBox">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar title="充值" bgColor="#258feb" fontColor="#fff" :homeState="options.source == 'order' ? 1000 : 2000"
:backState="options.source == 'order' ? 2000 : 1000" @click-home="handleHomeClick"></z-nav-bar>
<z-nav-bar title="充值" bgColor="#258feb" fontColor="#fff"></z-nav-bar>
<view>
<view class="cha_jine">
@@ -234,12 +233,6 @@
});
},
//回到首页
handleHomeClick(){
uni.switchTab({
url: '/pages/peanut/home'
});
},
// 关闭交易订单
finishTransaction(trans) {
this.iapChannel.finishTransaction(
@@ -641,8 +634,8 @@
title: "支付成功",
});
setTimeout(() => {
uni.navigateTo({
url: "/pages/mine/wallet/index/index?source=recharge",
uni.switchTab({
url: "/pages/mine/mine/index",
});
}, 2000);
} else {
@@ -673,8 +666,8 @@
title: "支付成功",
});
setTimeout(() => {
uni.navigateTo({
url: "/pages/mine/wallet/index/index?source=recharge",
uni.switchTab({
url: "/pages/mine/mine/index",
});
}, 2000);
} else {

View File

@@ -392,20 +392,17 @@ export default {
},
//下单
async goBuyJie() {
debounce(async () => {
uni.showLoading({
title: '加载中'
});
if(!this.name){
uni.showToast({
title: "培训姓名不能为空",
icon: 'none'
});
uni.hideLoading()
return
}
uni.showLoading({
title: '加载中'
});
var that = this;
let data = {
paymentMethod: that.payType,

BIN
static/icon/order_vip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long