diff --git a/pages.json b/pages.json
index d380eaf..0514302 100644
--- a/pages.json
+++ b/pages.json
@@ -254,6 +254,30 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
+ },
+ {
+ "path": "afterSale/list",
+ "style": {
+ "navigationBarTitleText": "售后列表",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
+ },
+ {
+ "path": "afterSale/add",
+ "style": {
+ "navigationBarTitleText": "发起售后",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
+ },
+ {
+ "path": "afterSale/detail",
+ "style": {
+ "navigationBarTitleText": "售后详情",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
}
]
},
diff --git a/pages/index/iSoul.vue b/pages/index/iSoul.vue
index 043fce7..475324e 100644
--- a/pages/index/iSoul.vue
+++ b/pages/index/iSoul.vue
@@ -197,7 +197,7 @@
diff --git a/subPackages/afterSale/add.vue b/subPackages/afterSale/add.vue
new file mode 100644
index 0000000..c274cfa
--- /dev/null
+++ b/subPackages/afterSale/add.vue
@@ -0,0 +1,612 @@
+
+
+
+
+
+
+
+
+ {{
+ productInfo.title || "IP文创公仔"
+ }}
+ {{
+ productInfo.subtitle || "这里是文创公仔的副标题"
+ }}
+ {{
+ productInfo.description || "介绍"
+ }}
+
+
+
+
+
+
+
+
+
+
+ 售后类型
+
+ {{ afterSaleForm.type }}
+
+
+
+
+
+
+ 售后原因
+
+ {{ afterSaleForm.reason }}
+
+
+
+
+
+
+ 理由说明
+
+ {{ afterSaleForm.description.length }}/500
+
+
+
+
+ 问题图片 *
+ 最多可上传9张图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/subPackages/afterSale/detail.vue b/subPackages/afterSale/detail.vue
new file mode 100644
index 0000000..33a9439
--- /dev/null
+++ b/subPackages/afterSale/detail.vue
@@ -0,0 +1,632 @@
+
+
+
+
+
+
+
+ 商品信息
+
+
+
+ {{ afterSaleDetail.productTitle }}
+ {{ afterSaleDetail.productSpec }}
+ 订单号:{{ afterSaleDetail.orderNumber }}
+
+
+
+
+
+
+ 售后信息
+
+
+ 售后类型
+ {{ afterSaleDetail.type }}
+
+
+ 售后原因
+ {{ afterSaleDetail.reason }}
+
+
+ 申请时间
+ {{
+ formatTime(afterSaleDetail.createTime)
+ }}
+
+
+ 售后单号
+ {{ afterSaleDetail.afterSaleNumber }}
+
+
+
+
+
+
+ 问题描述
+
+ {{ afterSaleDetail.description }}
+
+
+
+
+
+ 问题图片
+
+
+
+
+
+
+
+ 处理进度
+
+
+
+
+
+
+ {{ progress.title }}
+ {{ formatTime(progress.time) }}
+ {{
+ progress.description
+ }}
+
+
+
+
+
+
+
+ 客服回复
+
+ {{ afterSaleDetail.reply.content }}
+ {{
+ formatTime(afterSaleDetail.reply.time)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/subPackages/afterSale/list.vue b/subPackages/afterSale/list.vue
new file mode 100644
index 0000000..8f178f1
--- /dev/null
+++ b/subPackages/afterSale/list.vue
@@ -0,0 +1,530 @@
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.productTitle }}
+ {{ item.productSpec }}
+
+ 订单号:{{ item.orderNumber }}
+ {{
+ formatTime(item.createTime)
+ }}
+
+
+
+
+
+
+
+ 售后类型:
+ {{ item.type }}
+
+
+ 售后原因:
+ {{ item.reason }}
+
+
+ 申请时间:
+ {{ formatTime(item.createTime) }}
+
+
+
+
+
+
+ {{ getStatusText(item.status) }}
+
+
+
+
+
+
+
+
+
+
+ 加载中...
+
+
+ 没有更多数据了
+
+
+
+
+
+ 暂无售后记录
+
+
+
+
+
+
+
+
+
diff --git a/subPackages/equityGoods/detail.vue b/subPackages/equityGoods/detail.vue
index 157200c..ca22bdc 100644
--- a/subPackages/equityGoods/detail.vue
+++ b/subPackages/equityGoods/detail.vue
@@ -279,11 +279,19 @@ export default {
},
// 处理购买点击
handlePurchase() {
- console.log("立即购买");
- uni.showToast({
- title: "(暂未开放)为您跳转到君道苏州下单~",
- icon: "none",
- });
+ let id = this.goodsInfo.sku&&this.goodsInfo.sku.product.sceneId
+ wx.navigateToMiniProgram({
+ appId: 'wx4bb7b6050831f585',
+ path: 'pages/info/sceneProductInfo/index?id='+id,
+ envVersion: process.env.NODE_ENV === 'development'?'trial':'release',
+ success(res) {
+ // 打开成功
+ },
+ fail(e){
+ console.log(e)
+ }
+ })
+
// 这里可以添加购买逻辑
},
diff --git a/subPackages/orderQy/detail.vue b/subPackages/orderQy/detail.vue
index 0cd5bbc..b3c9aa4 100644
--- a/subPackages/orderQy/detail.vue
+++ b/subPackages/orderQy/detail.vue
@@ -79,7 +79,7 @@
-
-
-
- {{ getActionBtnTexted(goods.type) }}
-
-
-
+
+
+ {{ getActionBtnTexted(goods.type) }}
+
+
@@ -258,7 +275,7 @@ export default {
).then((res) => {
if (res.code == 200) {
this.orderList.push(...res.rows);
- console.log(this.orderList)
+ console.log(this.orderList);
this.hasMore = res.rows.length === this.pageSize;
this.currentPage++;
} else {
@@ -402,23 +419,22 @@ export default {
icon: "none",
});
uni.navigateTo({
- url: "/subPackages/memorialAlbum/detail?id="+goods.childId,
+ url: "/subPackages/memorialAlbum/detail?id=" + goods.childId,
});
},
// 预约发货
reserveDelivery(goods) {
// 跳转到确认订单页面
- if(goods.status==1){
- uni.navigateTo({
- url: `/subPackages/orderQy/confrim?goodsId=${goods.goodsId}&orderChildId=${goods.childId}`,
- });
- }else{
- uni.navigateTo({
- url: `/subPackages/orderQy/detail?id=${goods.orderId}`,
- });
- }
-
+ if (goods.status == 1) {
+ uni.navigateTo({
+ url: `/subPackages/orderQy/confrim?goodsId=${goods.goodsId}&orderChildId=${goods.childId}`,
+ });
+ } else {
+ uni.navigateTo({
+ url: `/subPackages/orderQy/detail?id=${goods.orderId}`,
+ });
+ }
},
// 使用门票
@@ -463,7 +479,6 @@ export default {
},
});
},
-
},
};
@@ -719,27 +734,27 @@ $bg-light: #f7fafc;
color: #fff;
font-weight: 500;
z-index: 10;
-
+
&.goods-status-waiting {
background-color: #007aff;
}
-
+
&.goods-status-pending {
background-color: #ff9500;
}
-
+
&.goods-status-shipping {
background-color: #34c759;
}
-
+
&.goods-status-completed {
background-color: #666;
}
-
+
&.goods-status-refund {
background-color: #ff3b30;
}
-
+
&.goods-status-default {
background-color: #999;
}
@@ -798,8 +813,6 @@ $bg-light: #f7fafc;
font-weight: 500;
}
-
-
.goods-quantity {
font-size: 22rpx;
color: $text-muted;