diff --git a/api/order.js b/api/order.js
index 05760be..f07bc52 100644
--- a/api/order.js
+++ b/api/order.js
@@ -134,7 +134,7 @@ export function afterSaleDetail(data) {
export function cancelAfterSale(data) {
return request({
url: "/order/cancelAfterApply",
- method: "post",
+ method: "post",
data,
});
}
@@ -142,8 +142,8 @@ export function cancelAfterSale(data) {
// 寄回商品反馈
export function returnGoodsFeedback(data) {
return request({
- url: "/order/sendGoodsBack",
- method: "post",
+ url: "/order/sendGoodsBack",
+ method: "post",
data,
});
}
@@ -161,7 +161,7 @@ export function getExpressCompany() {
export function cancelOrder(data) {
return request({
url: "/order/cancelOrder",
- method: "post",
+ method: "post",
data,
});
}
@@ -170,7 +170,25 @@ export function cancelOrder(data) {
export function deleteOrderQuery(data) {
return request({
url: "/order/deleteOrder",
- method: "post",
+ method: "post",
+ data,
+ });
+}
+
+// 修改订单地址
+export function updateOrderAddress(data) {
+ return request({
+ url: "/order/updateAddress",
+ method: "post",
+ data,
+ });
+}
+
+// 待发货订单申请修改地址
+export function applyUpdateAddress(data) {
+ return request({
+ url: "/order/applyModifyShippingAddress",
+ method: "post",
data,
});
}
\ No newline at end of file
diff --git a/components/shop/parity-product-item.vue b/components/shop/parity-product-item.vue
index 25be627..a474fb4 100644
--- a/components/shop/parity-product-item.vue
+++ b/components/shop/parity-product-item.vue
@@ -1,22 +1,69 @@
-
-
-
-
- {{ obj.title }}
-
-
-
-
- {{ obj.buyDeductionValue }}数字积分
- +{{ obj.price }}元
+
+
+
+
+
+
+
+ {{ tagName || obj.tagName }}
+
+ {{ obj.title }}
+
+
+
+
+
+
+ {{ obj.buyDeductionValue }}积分
+
+
+ +{{ obj.price }}元
+
+
+ 兑换
+
+
+
+
+
+
+ ¥
+ {{ obj.price }}
+
+
+
+ ¥{{ getOrigPrice }}
+
+ |
+ 全网销量{{ limit999(obj.sales) }}
+
+
+ 购买
- 兑换
-
-
- ¥{{ obj.price }}
- 全网销量{{ limit999(obj.sales) }}件
+
+
+
+
+
+
+
+ {{ obj.title }}
+
+
+
+
+ {{ obj.buyDeductionValue }}数字积分
+ +{{ obj.price }}元
+
+ 兑换
+
+
+
+ ¥{{ obj.price }}
+ 全网销量{{ limit999(obj.sales) }}件
+
@@ -29,6 +76,41 @@ export default {
obj: {
type: Object,
default: () => ({})
+ },
+ type: {
+ type: [Number, String],
+ default: 2
+ },
+ tagName: {
+ type: String,
+ default: ''
+ },
+ tagColor: {
+ type: String,
+ default: ''
+ }
+ },
+ computed: {
+ getOrigPrice() {
+ if (this.obj && this.obj.aa !== undefined && this.obj.aa !== null && this.obj.aa !== '') {
+ return this.obj.aa;
+ }
+ return this.obj ? (this.obj.originalPrice || this.obj.marketPrice || this.obj.linePrice || this.obj.oldPrice || '') : '';
+ },
+ hasOrigPrice() {
+ return !!this.getOrigPrice;
+ },
+ hasSales() {
+ return this.obj && this.obj.sales !== undefined && this.obj.sales !== null && this.obj.sales !== '';
+ },
+ effectiveTagColor() {
+ if (this.tagColor) return this.tagColor;
+ const tag = this.tagName || (this.obj && this.obj.tagName) || '';
+ if (tag.includes('信任')) return '#7A35F6';
+ if (tag.includes('爆款')) return '#FF2A2A';
+ if (tag.includes('低价') || tag.includes('好物')) return '#FF9800';
+ if (tag.includes('品牌') || tag.includes('特卖')) return '#333333';
+ return '#7A35F6';
}
},
methods: {
@@ -47,39 +129,156 @@ export default {
+
diff --git a/pages/mine_package/mine_order/mine_order.vue b/pages/mine_package/mine_order/mine_order.vue
index d203243..20b3ed2 100644
--- a/pages/mine_package/mine_order/mine_order.vue
+++ b/pages/mine_package/mine_order/mine_order.vue
@@ -99,7 +99,7 @@
共{{ item.buyNum }}件,合计¥{{ item.sumAmount }}
-->
共{{ item.buyNum }}件,合计数字积分{{ item.buyDeductionValue
- }}
+ }}
+¥{{ item.sumAmount }}
运费:¥{{ item.postage }},商品总价:¥{{ item.sumAmount }}
@@ -133,6 +133,14 @@
查看售后
+
+
+ 修改地址
+
+
{{
- form.type === MINE_ORDER_TYPE.UNPAID ? "取消支付" : "去售后"
+ form.type === MINE_ORDER_TYPE.UNPAID ? "取消支付" : "申请售后"
}}
@@ -306,7 +314,9 @@ import {
afterSaleDetail,
cancelOrder,
orderLogistics,
- deleteOrderQuery
+ deleteOrderQuery,
+ updateOrderAddress,
+ applyUpdateAddress
} from "@/api/order.js";
import dayjs from "dayjs";
import { formatDate1, copyData } from "@/utils/index.js";
@@ -318,6 +328,16 @@ import { RETURN_REASON_LIST } from "@/pages/mine_package/mine_order/emun/index.j
export default {
components: { DownPopup, afterSales, refundPopup },
+ created() {
+ uni.$on('selectAddress', this.onSelectAddressForOrder);
+ },
+ beforeUnmount() {
+ uni.$off('selectAddress', this.onSelectAddressForOrder);
+ },
+ beforeDestroy() {
+ uni.$off('selectAddress', this.onSelectAddressForOrder);
+ },
+
computed: {
MINE_ORDER_TYPE() {
return MINE_ORDER_TYPE;
@@ -346,6 +366,7 @@ export default {
},
data() {
return {
+ changingOrder: null,
salesServer: 1, //为1展示申请售后 2:选择退货原因 3.退货退款申请,4.退款申请失败
orderTypeList: [
{
@@ -479,6 +500,54 @@ export default {
url: "/pages/rwa_package/kefu/kefu?scene=order",
});
},
+ // 修改订单地址:跳转至 mine_address 页面 (moduleType=2)
+ changeOrderAddress(item) {
+ this.changingOrder = item;
+ const originalId = item.addressId || item.address?.id || (item.address && item.address.id) || '';
+ let url = `/pages/mine_package/mine_address/mine_address?moduleType=2`;
+ if (originalId) {
+ url += `&originalId=${originalId}`;
+ }
+ if (item.address) {
+ try {
+ url += `&originalAddress=${encodeURIComponent(JSON.stringify(item.address))}`;
+ } catch (e) { }
+ }
+ uni.navigateTo({ url });
+ },
+ // 选择新地址后的回调处理,选择后直接返回此页面并触发接口修改
+ async onSelectAddressForOrder(addressObj) {
+ if (!this.changingOrder || !addressObj) return;
+ const order = this.changingOrder;
+ this.changingOrder = null;
+
+ try {
+ const params = {
+ orderId: order.id, // 订单ID
+ addrId: addressObj.id // 选中地址ID
+ };
+ console.log("选择新地址后的回调处理,选择后直接返回此页面并触发接口修改", params)
+ const res = await applyUpdateAddress(params);
+ if (res && res.bizcode === 100) {
+ if (this.$refs.uToastRef) {
+ this.$refs.uToastRef.show({
+ type: 'success',
+ message: '地址修改成功'
+ });
+ } else {
+ uni.showToast({
+ title: '地址修改成功',
+ icon: 'success'
+ });
+ }
+ }
+ } catch (e) {
+ console.error('updateOrderAddress error:', e);
+ }
+
+ this.form.page = 1;
+ this.loadData();
+ },
// 售后
onSaleAfter(item) {
console.log("售后---1", item, this.form.type);
diff --git a/pages/mine_package/mine_order_info/mine_order_info.vue b/pages/mine_package/mine_order_info/mine_order_info.vue
index 0c049dd..0f49725 100644
--- a/pages/mine_package/mine_order_info/mine_order_info.vue
+++ b/pages/mine_package/mine_order_info/mine_order_info.vue
@@ -19,11 +19,11 @@
需付款:
¥
{{
- orderInfo.sumAmount
- }}
+ orderInfo.sumAmount
+ }}
订单
- {{ formatDate1(orderInfo.expireTime) }}
+ {{
+ formatDate1(orderInfo.expireTime) }}
自动取消
@@ -37,8 +37,8 @@
bgColor="#f1f6ff00">
订单编号:
{{
- orderInfo.orderNum
- }}
+ orderInfo.orderNum
+ }}
@@ -53,7 +53,8 @@
{{ orderInfo.name }}
{{ orderInfo.phone }}
-
+ {{ getValue(LOGISTICS_STATUS_UPDATE,
+ orderInfo.modifyShippingAddressStatus) }}
{{ assembleAddress(orderInfo).names }} {{ orderInfo.address }}
@@ -151,21 +152,22 @@
{{
- `https://chaininsight.antdigital.com/search?unionId=2647&projectName=VBGAKNJB&content=${orderInfo.antChainHash}`
- }}
+ `https://chaininsight.antdigital.com/search?unionId=2647&projectName=VBGAKNJB&content=${orderInfo.antChainHash}`
+ }}
-
+
+ previewQrcode(
+ `https://chaininsight.antdigital.com/search?unionId=2647&projectName=VBGAKNJB&content=${orderInfo.antChainHash}`
+ )
+ ">
@@ -182,8 +184,8 @@
+ [ORDER_TYPE.UNPAID, ORDER_TYPE.NOT_RECEIVE].includes(orderInfo.status)
+ ">
去付款
@@ -208,7 +210,7 @@
{{ item.name
- }} (¥{{ item.balance }})
+ }} (¥{{ item.balance }})
@@ -226,502 +228,508 @@
\ No newline at end of file
diff --git a/pages/mine_package/mine_settings/mine_settings.vue b/pages/mine_package/mine_settings/mine_settings.vue
index 881c08c..858d657 100644
--- a/pages/mine_package/mine_settings/mine_settings.vue
+++ b/pages/mine_package/mine_settings/mine_settings.vue
@@ -122,7 +122,7 @@ export default {
// 地址
if (type === "address") {
uni.navigateTo({
- url: '/pages/mine_package/mine_address/mine_address'
+ url: '/pages/mine_package/mine_address/mine_address?moduleType=1'
})
} else if (type === "aboutUs") {
uni.navigateTo({
diff --git a/pages/rwa_package/insights/search.vue b/pages/rwa_package/insights/search.vue
index 3f7e999..8b329be 100644
--- a/pages/rwa_package/insights/search.vue
+++ b/pages/rwa_package/insights/search.vue
@@ -1,276 +1,371 @@
-
-
-
-
-
-
-
-
-
-
- 搜索
-
-
-
-
-
-
- 搜索历史
-
-
-
-
- {{ item }}
-
-
-
-
- 暂无历史记录
-
-
-
-
- 商品展示
-
-
-
-
-
- 暂无数据
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 商品搜索
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ 暂无搜索内容
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/sort/sort copy.vue b/pages/sort/sort copy.vue
new file mode 100644
index 0000000..870b1f5
--- /dev/null
+++ b/pages/sort/sort copy.vue
@@ -0,0 +1,454 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/sort/sort.vue b/pages/sort/sort.vue
index 870b1f5..4bcb394 100644
--- a/pages/sort/sort.vue
+++ b/pages/sort/sort.vue
@@ -1,454 +1,857 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentCategory ? currentCategory.name : '' }}
+
+
+ 综合 ⇅
+
+
+ 销量 ⇅
+
+
+ 价格 ⇅
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name || item.title }}
+
+
+ {{ item.tags[0] }}
+ {{ item.tags[1] }}
+ 专业检测
+ 生态有机
+
+
+
+
+ ¥
+ {{ item.price }}
+
+ 全网销量{{ limit999(item.sales) }}
+
+
+
+
+
+
+ 暂无商品数据
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/supply_chain/1.vue b/pages/supply_chain/1.vue
new file mode 100644
index 0000000..705d2e3
--- /dev/null
+++ b/pages/supply_chain/1.vue
@@ -0,0 +1,406 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/supply_chain/supply_chain.vue b/pages/supply_chain/supply_chain.vue
index d42123c..42eb454 100644
--- a/pages/supply_chain/supply_chain.vue
+++ b/pages/supply_chain/supply_chain.vue
@@ -14,7 +14,8 @@
{{ item.name }}
@@ -23,15 +24,19 @@
@up="upCallback" :up="upOption" :down="downOption" @init="mescrollInit">
-
-
+
+
+
+
+
-
+
-
+
@@ -58,6 +63,15 @@ export default {
mixins: [MescrollMixin],
components: { Header, TopSafe, MyBtn, ParityProductItem, CustomTabBar, MescrollUni },
computed: {
+ curTabItem() {
+ return this.tabArr.find(item => item.id == this.curTab) || this.tabArr[0] || {};
+ },
+ curTabName() {
+ return this.curTabItem.name || '信任精选';
+ },
+ curTabColor() {
+ return this.getTabColor(this.curTabItem);
+ },
isApp() {
// #ifdef APP-PLUS
return true;
@@ -89,26 +103,31 @@ export default {
},
data() {
return {
+ itemType: 1, // 1: 图2样式, 2: 图1样式
dataList: [],
tabArr: [
{
id: 7,
- name: '信任专享',
+ name: '信任精选',
+ color: '#7A35F6',
icon: 'https://static.tbmall.xin/static/new-home/xinren.png',
iconActive: 'https://static.tbmall.xin/static/new-home/xinren_active.png',
}, {
id: 15,
name: '全网爆款',
+ color: '#FF2A2A',
icon: 'https://static.tbmall.xin/static/new-home/baokuan.png',
iconActive: 'https://static.tbmall.xin/static/new-home/baokuan_active.png',
}, {
id: 16,
name: '低价好物',
+ color: '#FF9800',
icon: 'https://static.tbmall.xin/static/new-home/cart.png',
iconActive: 'https://static.tbmall.xin/static/new-home/cart_active.png',
}, {
id: 6,
name: '品牌特卖',
+ color: '#333333',
icon: 'https://static.tbmall.xin/static/new-home/huiyuan.png',
iconActive: 'https://static.tbmall.xin/static/new-home/huiyuan_active.png',
},
@@ -160,12 +179,21 @@ export default {
this.downCallback();
}
} else {
-
- this.getSearchList()
+ this.getSearchList();
}
}
},
methods: {
+ getTabColor(item) {
+ if (!item) return '#7A35F6';
+ if (item.color) return item.color;
+ const name = item.name || '';
+ if (name.includes('信任')) return '#7A35F6';
+ if (name.includes('爆款')) return '#FF2A2A';
+ if (name.includes('低价') || name.includes('好物')) return '#FF9800';
+ if (name.includes('品牌') || name.includes('特卖')) return '#333333';
+ return '#7A35F6';
+ },
/**
* 查询分类列表
*/
@@ -278,7 +306,7 @@ export default {