From e421621155caeab0913d88996f1bae08fd6dc73b Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Wed, 18 Sep 2024 15:42:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=BB=93=E7=AE=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/baseUrl.js | 4 ++--
pages/bookShop/orderLCont.vue | 16 ++++++++++++++--
pages/goods/order/index.vue | 13 +++++++------
3 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/config/baseUrl.js b/config/baseUrl.js
index 501662f..d4197fa 100644
--- a/config/baseUrl.js
+++ b/config/baseUrl.js
@@ -7,8 +7,8 @@ if (process.env.NODE_ENV === 'development') {
// baseUrl = "https://twin-ui.com/demo/";
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
- baseUrl = "http://192.168.110.110:9200/pb/"; // 磊哥
- // baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
+ // baseUrl = "http://192.168.110.110:9200/pb/"; // 磊哥
+ baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
// baseUrl = "http://59.110.212.44:9200/pb/";
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
// baseUrl = "http://192.168.110.110:9200/pb/";
diff --git a/pages/bookShop/orderLCont.vue b/pages/bookShop/orderLCont.vue
index 4deac51..b6a2e31 100644
--- a/pages/bookShop/orderLCont.vue
+++ b/pages/bookShop/orderLCont.vue
@@ -1088,10 +1088,22 @@ export default {
// 商品内容跳转
goDetail(id, data) {
- console.log("data at line 1277:", data);
+ console.log("data at line 1277:订单详情参数", data);
if (data.delFlag == -1) {
this.$commonJS.showToast("商品已下架");
- } else {
+ }else if(data.goodsType == '05'){
+ if(data.courseIds && data.courseIds.length > 0){
+ uni.navigateTo({
+ url: `/pages/course/courseDetail?id=${data.courseIds[0].courseId}`,
+ });
+ }else{
+ uni.showToast({
+ title: "课程数据出错",
+ icon: "none"
+ });
+ }
+
+ } else {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/goods/index/index?navTitle=''&title=''&id=${id}`,
diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue
index 9daf62a..287fdbe 100644
--- a/pages/goods/order/index.vue
+++ b/pages/goods/order/index.vue
@@ -55,7 +55,7 @@
{{ v.productName }}
- ¥{{ v.price }}
+ ¥{{ v.activityPrice && v.activityPrice > 0 ? v.activityPrice : v.price}}
@@ -81,7 +81,7 @@
+ v-for="(v, i) in orderInfoList" :key="i">
{{ v.text }}
@@ -114,7 +114,7 @@
价格明细
-
+
支付方式
+
@@ -191,7 +192,7 @@
-
+
@@ -866,7 +867,7 @@
var s = 0;
var that = this;
for (var i = this.goodsDataList.length - 1; i >= 0; i--) {
- s += this.goodsDataList[i].price ? this.goodsDataList[i].price : 0;
+ s += this.goodsDataList[i].activityPrice && this.goodsDataList[i].activityPrice > 0 ? this.goodsDataList[i].activityPrice : this.goodsDataList[i].price;
}
that.totalPrice = s;
// !
@@ -1013,7 +1014,7 @@
})
.then(async (res) => {
this.buyingFlag = false
- console.log("res at line 598:", res);
+ console.log("res at line 598系统下单返回结果:", res);
if (res.code == 0) {
if (res.orderSn == null) {
uni.showToast({