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 1/3] =?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({
From 54a69954dd496fccdfd43860cb8a0aa80875a3f0 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Thu, 19 Sep 2024 11:35:36 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=9B=B8=E5=85=B3?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 2 +-
.../commonComponents/selectGoods.vue | 17 ++-
pages/goods/index/index.vue | 3 +-
pages/goods/order/index.vue | 133 ++++++++++++++----
4 files changed, 116 insertions(+), 39 deletions(-)
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index b5014f6..5be1b72 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -24,7 +24,7 @@
"type" : "uni-app:app-ios"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
},
{
diff --git a/pages/component/commonComponents/selectGoods.vue b/pages/component/commonComponents/selectGoods.vue
index c8c32f9..8d206c2 100644
--- a/pages/component/commonComponents/selectGoods.vue
+++ b/pages/component/commonComponents/selectGoods.vue
@@ -50,7 +50,7 @@
: ''
}`"
>
-
+
-
+
{{ slotProps.row.productName }}
- ¥{{ slotProps.row.activityPrice?slotProps.row.activityPrice:slotProps.row.price }}
+
+ ¥{{slotProps.row.price}}
+ ¥{{ slotProps.row.activityPrice?slotProps.row.activityPrice:slotProps.row.price }}
+
+
diff --git a/pages/goods/index/index.vue b/pages/goods/index/index.vue
index a166865..4471507 100644
--- a/pages/goods/index/index.vue
+++ b/pages/goods/index/index.vue
@@ -877,7 +877,8 @@ export default {
productImages: this.selectGoodsData.productImages,
productId: this.selectGoodsData.productId,
productName: this.selectGoodsData.productName,
- price: this.selectGoodsData.activityPrice?this.selectGoodsData.activityPrice:this.selectGoodsData.price,
+ activityPrice:this.selectGoodsData.activityPrice,
+ price: this.selectGoodsData.price,
goodsType: this.selectGoodsData.goodsType,
},
],
diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue
index 287fdbe..f2ba75e 100644
--- a/pages/goods/order/index.vue
+++ b/pages/goods/order/index.vue
@@ -53,15 +53,25 @@
{{ v.productName }}
-
+
-
-
- x 1
+
+
+
+
+ 原价:¥{{v.price}}
+
+ ¥{{ v.activityPrice && v.activityPrice > 0 ? v.activityPrice : v.price}}
+
+ x 1
+
+
+