修改订单问题
This commit is contained in:
1
main.js
1
main.js
@@ -19,6 +19,7 @@ Vue.prototype.$getHours = nowHour
|
|||||||
// 地址
|
// 地址
|
||||||
//Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
//Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||||
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
|
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
|
||||||
|
|
||||||
// 安卓安卓包下载地址
|
// 安卓安卓包下载地址
|
||||||
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
|
// Vue.prototype.$apkUrl = "https://www.nuttyreading.com/nuttyreading.apk" // 本地地址
|
||||||
Vue.prototype.$apkUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.cn.medicine" // 应用宝
|
Vue.prototype.$apkUrl = "https://a.app.qq.com/o/simple.jsp?pkgname=com.cn.medicine" // 应用宝
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
style="width: 100rpx; height: 100rpx"
|
style="width: 100rpx; height: 100rpx"
|
||||||
></image>
|
></image>
|
||||||
<view class="itemJian">
|
<view class="itemJian">
|
||||||
<view class="orderTitle" style="line-height: 100rpx">
|
<view class="orderTitle" style="line-height: 44rpx">
|
||||||
<text>{{ orderContet.remark }}</text>
|
<text>{{ orderContet.remark }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="orderPrice">
|
<view class="orderPrice">
|
||||||
@@ -198,6 +198,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<br clear="both" />
|
<br clear="both" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="orderContent" v-if="orderContet.orderType == 'vip'">
|
<view class="orderContent" v-if="orderContet.orderType == 'vip'">
|
||||||
<image
|
<image
|
||||||
src="/static/icon/vip.png"
|
src="/static/icon/vip.png"
|
||||||
@@ -215,6 +216,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<br clear="both" />
|
<br clear="both" />
|
||||||
</view>
|
</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
|
<view
|
||||||
class="orderContent"
|
class="orderContent"
|
||||||
v-else-if="orderContet.orderType == 'point'"
|
v-else-if="orderContet.orderType == 'point'"
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
validateFunction: (rule, value, data, callback) => {
|
validateFunction: (rule, value, data, callback) => {
|
||||||
// 异步需要返回 Promise 对象
|
// 异步需要返回 Promise 对象
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!this.$base.phoneRegular.test(value)) {
|
if (!/^\d{5,15}$/.test(value)) {
|
||||||
reject(new Error("手机号格式不正确"));
|
reject(new Error("手机号格式不正确"));
|
||||||
} else {
|
} else {
|
||||||
resolve();
|
resolve();
|
||||||
|
|||||||
@@ -1007,7 +1007,7 @@
|
|||||||
if (value.indexOf(".") !== -1) {
|
if (value.indexOf(".") !== -1) {
|
||||||
value = value.split(".")[0]; // 截取小数点前的部分
|
value = value.split(".")[0]; // 截取小数点前的部分
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果输入为0,强制设置为0并显示为 "0"
|
// 如果输入为0,强制设置为0并显示为 "0"
|
||||||
if (val == 0) {
|
if (val == 0) {
|
||||||
this.jfNumber = 0;
|
this.jfNumber = 0;
|
||||||
@@ -1034,6 +1034,7 @@
|
|||||||
if (this.curCouponId && this.curCoupon.couponEntity.id) {
|
if (this.curCouponId && this.curCoupon.couponEntity.id) {
|
||||||
couponAmount = this.curCoupon.couponEntity.couponAmount;
|
couponAmount = this.curCoupon.couponEntity.couponAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.actualPayment =
|
this.actualPayment =
|
||||||
this.totalPrice -
|
this.totalPrice -
|
||||||
couponAmount -
|
couponAmount -
|
||||||
@@ -1291,6 +1292,7 @@
|
|||||||
that.freightNum -
|
that.freightNum -
|
||||||
that.districtAmount -
|
that.districtAmount -
|
||||||
that.vipPrice;
|
that.vipPrice;
|
||||||
|
console.log(that.actualPayment)
|
||||||
} else {
|
} else {
|
||||||
that.actualPayment =
|
that.actualPayment =
|
||||||
that.totalPrice +
|
that.totalPrice +
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
<view class="container commonPageBox">
|
<view class="container commonPageBox">
|
||||||
<!-- 公共组件-每个页面必须引入 -->
|
<!-- 公共组件-每个页面必须引入 -->
|
||||||
<public-module></public-module>
|
<public-module></public-module>
|
||||||
<z-nav-bar title="充值" bgColor="#258feb" fontColor="#fff" :homeState="options.source == 'order' ? 1000 : 2000"
|
<z-nav-bar title="充值" bgColor="#258feb" fontColor="#fff"></z-nav-bar>
|
||||||
:backState="options.source == 'order' ? 2000 : 1000" @click-home="handleHomeClick"></z-nav-bar>
|
|
||||||
|
|
||||||
<view>
|
<view>
|
||||||
<view class="cha_jine">
|
<view class="cha_jine">
|
||||||
@@ -234,12 +233,6 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//回到首页
|
|
||||||
handleHomeClick(){
|
|
||||||
uni.switchTab({
|
|
||||||
url: '/pages/peanut/home'
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 关闭交易订单
|
// 关闭交易订单
|
||||||
finishTransaction(trans) {
|
finishTransaction(trans) {
|
||||||
this.iapChannel.finishTransaction(
|
this.iapChannel.finishTransaction(
|
||||||
@@ -641,8 +634,8 @@
|
|||||||
title: "支付成功",
|
title: "支付成功",
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: "/pages/mine/wallet/index/index?source=recharge",
|
url: "/pages/mine/mine/index",
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
} else {
|
||||||
@@ -673,8 +666,8 @@
|
|||||||
title: "支付成功",
|
title: "支付成功",
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.switchTab({
|
||||||
url: "/pages/mine/wallet/index/index?source=recharge",
|
url: "/pages/mine/mine/index",
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -392,20 +392,17 @@ export default {
|
|||||||
},
|
},
|
||||||
//下单
|
//下单
|
||||||
async goBuyJie() {
|
async goBuyJie() {
|
||||||
|
|
||||||
debounce(async () => {
|
debounce(async () => {
|
||||||
uni.showLoading({
|
|
||||||
title: '加载中'
|
|
||||||
});
|
|
||||||
if(!this.name){
|
if(!this.name){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "培训姓名不能为空",
|
title: "培训姓名不能为空",
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
uni.hideLoading()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中'
|
||||||
|
});
|
||||||
var that = this;
|
var that = this;
|
||||||
let data = {
|
let data = {
|
||||||
paymentMethod: that.payType,
|
paymentMethod: that.payType,
|
||||||
|
|||||||
BIN
static/icon/order_vip.png
Normal file
BIN
static/icon/order_vip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
14
unpackage/dist/build/app-plus/app-service.js
vendored
14
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/app-plus/app-view.js
vendored
6
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
840
unpackage/dist/dev/app-plus/app-service.js
vendored
840
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
900
unpackage/dist/dev/app-plus/app-view.js
vendored
900
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user