This commit is contained in:
2026-01-05 12:47:14 +08:00
commit 1fc846fae3
1614 changed files with 162035 additions and 0 deletions

View File

@@ -0,0 +1,128 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_order = require("../../../api/order.js");
const utils_helper = require("../../../utils/helper.js");
const api_config = require("../../../api/config.js");
if (!Array) {
const _easycom_nut_step2 = common_vendor.resolveComponent("nut-step");
const _easycom_nut_steps2 = common_vendor.resolveComponent("nut-steps");
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
(_easycom_nut_step2 + _easycom_nut_steps2 + _easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_tag2 + _easycom_nut_price2)();
}
const _easycom_nut_step = () => "../../../uni_modules/nutui-uni/components/step/step.js";
const _easycom_nut_steps = () => "../../../uni_modules/nutui-uni/components/steps/steps.js";
const _easycom_nut_cell = () => "../../../uni_modules/nutui-uni/components/cell/cell.js";
const _easycom_nut_cell_group = () => "../../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
const _easycom_nut_tag = () => "../../../uni_modules/nutui-uni/components/tag/tag.js";
const _easycom_nut_price = () => "../../../uni_modules/nutui-uni/components/price/price.js";
if (!Math) {
(_easycom_nut_step + _easycom_nut_steps + _easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price)();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
const audit = common_vendor.ref(true);
const id = common_vendor.ref(0);
const detail = common_vendor.reactive({});
const images = common_vendor.ref([]);
common_vendor.onLoad((options) => {
id.value = options.id;
});
common_vendor.onShow(() => {
getConfig();
api_order.fetchOrderDetail(id.value).then((res) => {
Object.assign(detail, res);
});
});
const getConfig = () => {
api_config.fetchGetConfig().then((res) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/detail.vue:126", "getConfig=====>", res);
audit.value = res.appConfig.is_audit == 1;
common_vendor.index.__f__("log", "at pages/config/shopOrder/detail.vue:128", res.appConfig.pay_imgs);
let pay_imgs = JSON.parse(res.appConfig.pay_imgs) || [];
let wechat_imgs = JSON.parse(res.appConfig.wechat_imgs) || [];
let pay_imgs_arr = pay_imgs.map((item) => item.file_path) || [];
let wechat_imgs_arr = wechat_imgs.map((item) => item.file_path) || [];
const merged_imgs_arr = pay_imgs_arr.concat(wechat_imgs_arr);
images.value = merged_imgs_arr;
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
title: "待付款"
}),
b: common_vendor.p({
title: "待发货"
}),
c: common_vendor.p({
title: "待收货"
}),
d: common_vendor.p({
title: "已完成"
}),
e: common_vendor.p({
current: detail.progress
}),
f: detail.address_info
}, detail.address_info ? {
g: common_vendor.t(detail.address_info.user_name),
h: common_vendor.t(detail.address_info.tel_number),
i: common_vendor.t(detail.address_info.province_name + detail.address_info.city_name + detail.address_info.county_name + detail.address_info.street_name + detail.address_info.detail_info_new)
} : {}, {
j: common_vendor.f(detail.goods, (goods, index, i0) => {
return {
a: common_vendor.t(goods.snapshot_info.degree.degree_name),
b: "4bf0d63e-9-" + i0 + "," + ("4bf0d63e-8-" + i0),
c: common_vendor.t(goods.goods_name),
d: common_vendor.t(goods.goods_no),
e: "4bf0d63e-10-" + i0 + "," + ("4bf0d63e-8-" + i0),
f: common_vendor.p({
price: goods.goods_price,
size: "small",
["need-symbol"]: true
}),
g: index,
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/detail?id=" + goods.goods_id), index),
i: "4bf0d63e-8-" + i0 + ",4bf0d63e-7"
};
}),
k: common_vendor.p({
["custom-color"]: "#1a1a1a"
}),
l: common_vendor.p({
center: true
}),
m: common_vendor.p({
price: detail.pay_price,
size: "normal",
["need-symbol"]: true
}),
n: common_vendor.p({
title: "订单编号",
desc: detail.order_no
}),
o: common_vendor.p({
title: "下单时间",
desc: detail.create_time
}),
p: detail.progress >= 3
}, detail.progress >= 3 ? {
q: common_vendor.p({
title: "物流公司",
desc: detail.express_company
}),
r: common_vendor.p({
title: "物流单号",
desc: detail.express_no
})
} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4bf0d63e"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/config/shopOrder/detail.js.map

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "店铺订单-详情",
"usingComponents": {
"nut-step": "../../../uni_modules/nutui-uni/components/step/step",
"nut-steps": "../../../uni_modules/nutui-uni/components/steps/steps",
"nut-cell": "../../../uni_modules/nutui-uni/components/cell/cell",
"nut-cell-group": "../../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
"nut-tag": "../../../uni_modules/nutui-uni/components/tag/tag",
"nut-price": "../../../uni_modules/nutui-uni/components/price/price"
}
}

View File

@@ -0,0 +1 @@
<view class="page-content data-v-4bf0d63e"><nut-steps wx:if="{{e}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-1,4bf0d63e-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-2,4bf0d63e-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-3,4bf0d63e-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-4,4bf0d63e-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-5" bind:__l="__l"><nut-cell class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-6,4bf0d63e-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-4bf0d63e"><text class="data-v-4bf0d63e">{{g}} - {{h}}</text><text class="data-v-4bf0d63e">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-4bf0d63e" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-4bf0d63e" slot="title"><view class="left-text data-v-4bf0d63e"><view class="goods-name data-v-4bf0d63e"><nut-tag wx:if="{{k}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-4bf0d63e" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-4bf0d63e">串号:{{goods.d}}</text></view></view><nut-price class="data-v-4bf0d63e" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-11" bind:__l="__l"><nut-cell class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-12,4bf0d63e-11" bind:__l="__l"><view class="total-price-inner data-v-4bf0d63e"><text class="data-v-4bf0d63e">商品总额</text><nut-price wx:if="{{m}}" class="data-v-4bf0d63e" u-i="4bf0d63e-13,4bf0d63e-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-4bf0d63e" u-i="4bf0d63e-15,4bf0d63e-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-4bf0d63e" u-i="4bf0d63e-16,4bf0d63e-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-4bf0d63e" u-s="{{['d']}}" u-i="4bf0d63e-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-4bf0d63e" u-i="4bf0d63e-18,4bf0d63e-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-4bf0d63e" u-i="4bf0d63e-19,4bf0d63e-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group></view>

View File

@@ -0,0 +1,77 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page-content.data-v-4bf0d63e {
min-height: 100vh;
background-color: #f2f3f5;
padding: 20rpx;
}
.address-inner.data-v-4bf0d63e {
display: flex;
flex-direction: column;
justify-content: center;
}
.total-price-inner.data-v-4bf0d63e {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.total-price-inner view.data-v-4bf0d63e:nth-child(2) {
color: #fa2c19;
}
.wechat-img-inner.data-v-4bf0d63e {
margin-top: 60rpx;
padding: 0rpx 80rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

View File

@@ -0,0 +1,407 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_order = require("../../../api/order.js");
const api_config = require("../../../api/config.js");
if (!Array) {
const _easycom_nut_dialog2 = common_vendor.resolveComponent("nut-dialog");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
const _easycom_nut_searchbar2 = common_vendor.resolveComponent("nut-searchbar");
const _easycom_nut_tabs2 = common_vendor.resolveComponent("nut-tabs");
const _easycom_nut_sticky2 = common_vendor.resolveComponent("nut-sticky");
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
const _easycom_nut_input2 = common_vendor.resolveComponent("nut-input");
const _easycom_nut_form_item2 = common_vendor.resolveComponent("nut-form-item");
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
const _easycom_nut_popup2 = common_vendor.resolveComponent("nut-popup");
(_easycom_nut_dialog2 + _easycom_nut_button2 + _easycom_nut_searchbar2 + _easycom_nut_tabs2 + _easycom_nut_sticky2 + _easycom_nut_tag2 + _easycom_nut_price2 + _easycom_z_paging2 + _easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_input2 + _easycom_nut_form_item2 + _easycom_nut_form2 + _easycom_nut_popup2)();
}
const _easycom_nut_dialog = () => "../../../uni_modules/nutui-uni/components/dialog/dialog.js";
const _easycom_nut_button = () => "../../../uni_modules/nutui-uni/components/button/button.js";
const _easycom_nut_searchbar = () => "../../../uni_modules/nutui-uni/components/searchbar/searchbar.js";
const _easycom_nut_tabs = () => "../../../uni_modules/nutui-uni/components/tabs/tabs.js";
const _easycom_nut_sticky = () => "../../../uni_modules/nutui-uni/components/sticky/sticky.js";
const _easycom_nut_tag = () => "../../../uni_modules/nutui-uni/components/tag/tag.js";
const _easycom_nut_price = () => "../../../uni_modules/nutui-uni/components/price/price.js";
const _easycom_z_paging = () => "../../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_nut_cell = () => "../../../uni_modules/nutui-uni/components/cell/cell.js";
const _easycom_nut_cell_group = () => "../../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
const _easycom_nut_input = () => "../../../uni_modules/nutui-uni/components/input/input.js";
const _easycom_nut_form_item = () => "../../../uni_modules/nutui-uni/components/formitem/formitem.js";
const _easycom_nut_form = () => "../../../uni_modules/nutui-uni/components/form/form.js";
const _easycom_nut_popup = () => "../../../uni_modules/nutui-uni/components/popup/popup.js";
if (!Math) {
(_easycom_nut_dialog + _easycom_nut_button + _easycom_nut_searchbar + _easycom_nut_tabs + _easycom_nut_sticky + _easycom_nut_tag + _easycom_nut_price + _easycom_z_paging + _easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_input + _easycom_nut_form_item + _easycom_nut_form + _easycom_nut_popup)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const audit = common_vendor.ref(true);
const images = common_vendor.ref([]);
const openDeliveryPopup = common_vendor.ref(false);
const orderDetail = common_vendor.reactive({});
const form = common_vendor.reactive({
order_id: 0,
express_company: "",
express_no: ""
});
const deliveryOrder = () => {
form.order_id = orderDetail.order_id;
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:233", "form===>", form);
api_order.fetchDeliveryOrder(form).then((res) => {
common_vendor.index.showToast({
icon: "none",
title: "发货成功"
});
onCloseDeliveryPopup();
paging.value.reload();
});
};
const onClickDeliveryOrder = (order) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:246", order);
Object.assign(orderDetail, order);
openDeliveryPopup.value = true;
};
const onCloseDeliveryPopup = () => {
Object.assign(orderDetail, {});
Object.assign(form, {
order_id: 0,
express_company: "",
express_no: ""
});
openDeliveryPopup.value = false;
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:262", "关闭");
};
const current_tab_idx = common_vendor.ref(0);
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
const tabs_config = [
{
title: "全部",
status: "all"
},
{
title: "待付款",
status: "payment"
},
{
title: "待发货",
status: "delivery"
},
{
title: "待收货",
status: "received"
},
{
title: "已完成",
status: "finish"
}
];
const visibleCancelOrderDialog = common_vendor.ref(false);
const current_cancel_order_id = common_vendor.ref(0);
const visiblePayOrderDialog = common_vendor.ref(false);
const current_pay_order_id = common_vendor.ref(0);
const search_val = common_vendor.ref("");
const onChangeTab = (item, idx) => {
current_tab_idx.value = idx;
paging.value.reload();
};
const getConfig = () => {
api_config.fetchGetConfig().then((res) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:326", "getConfig=====>", res);
audit.value = res.appConfig.is_audit == 1;
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:328", res.appConfig.pay_imgs);
let pay_imgs = JSON.parse(res.appConfig.pay_imgs) || [];
let wechat_imgs = JSON.parse(res.appConfig.wechat_imgs) || [];
let pay_imgs_arr = pay_imgs.map((item) => item.file_path) || [];
let wechat_imgs_arr = wechat_imgs.map((item) => item.file_path) || [];
const merged_imgs_arr = pay_imgs_arr.concat(wechat_imgs_arr);
images.value = merged_imgs_arr;
});
};
const navigateToDetail = (id) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:355", id);
if (!id) {
common_vendor.index.__f__("warn", "at pages/config/shopOrder/index.vue:357", "导航ID不能为空");
return;
}
common_vendor.index.navigateTo({
url: `/pages/config/shopOrder/detail?id=${encodeURIComponent(id)}`
});
};
const onClickCancelOrder = () => {
api_order.fetchCancelOrder(current_cancel_order_id.value).then((res) => {
common_vendor.index.showToast({
title: "取消成功",
icon: "none"
});
paging.value.reload();
});
};
const onClickPayOrder = () => {
api_order.fetchPayOrder(current_pay_order_id.value).then((res) => {
common_vendor.index.showToast({
title: "标记付款成功",
icon: "none"
});
paging.value.reload();
});
};
const apiFetchOrderList = (pageNo = 1, pageSize = 10) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:395", tabs_config[current_tab_idx.value]["status"]);
const params = {
page: pageNo,
pageSize: 10,
status: tabs_config[current_tab_idx.value]["status"],
goods_no: search_val.value
};
api_order.fetchOrderList(params).then((res) => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:403", res);
paging.value.complete(res.list);
}).catch((res) => {
paging.value.complete(false);
});
};
common_vendor.onLoad((options) => {
current_tab_idx.value = parseInt(options.tab);
});
common_vendor.onShow(() => {
getConfig();
if (paging.value) {
paging.value.refresh();
}
});
const onSearch = () => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:433", "搜索:", search_val.value);
paging.value.reload();
};
const onClear = () => {
common_vendor.index.__f__("log", "at pages/config/shopOrder/index.vue:439", "搜索:", search_val.value);
paging.value.reload();
};
const getStatusText = (order) => {
if (order.order_status.value == 20) {
return order.order_status.text;
} else if (order.order_status.value == 30) {
return order.order_status.text;
} else if (order.order_status.value == 10) {
if (order.pay_status.value == 10) {
return order.pay_status.text;
} else if (order.pay_status.value == 20) {
if (order.delivery_status.value == 10) {
return order.delivery_status.text;
} else if (order.delivery_status.value == 20) {
return order.receipt_status.text;
}
}
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => visibleCancelOrderDialog.value = false),
b: common_vendor.o(onClickCancelOrder),
c: common_vendor.o(($event) => visibleCancelOrderDialog.value = $event),
d: common_vendor.p({
title: "取消订单",
content: "确认取消吗?此操作不可恢复!",
visible: visibleCancelOrderDialog.value
}),
e: common_vendor.o(($event) => visiblePayOrderDialog.value = false),
f: common_vendor.o(onClickPayOrder),
g: common_vendor.o(($event) => visiblePayOrderDialog.value = $event),
h: common_vendor.p({
title: "标记付款",
content: "确认标记吗?此操作不可恢复!",
visible: visiblePayOrderDialog.value
}),
i: common_vendor.o(onSearch),
j: common_vendor.p({
size: "small",
type: "primary"
}),
k: common_vendor.o(onSearch),
l: common_vendor.o(onClear),
m: common_vendor.o(($event) => search_val.value = $event),
n: common_vendor.p({
placeholder: "请输入商品串号",
clearable: true,
["input-background"]: "#eee",
modelValue: search_val.value
}),
o: common_vendor.f(tabs_config, (item, idx, i0) => {
return {
a: common_vendor.t(item.title),
b: idx,
c: idx === current_tab_idx.value ? 1 : "",
d: common_vendor.o(($event) => onChangeTab(item, idx), idx)
};
}),
p: common_vendor.o(($event) => current_tab_idx.value = $event),
q: common_vendor.p({
background: "#fff",
modelValue: current_tab_idx.value
}),
r: common_vendor.f(dataList.value, (order, index, i0) => {
return common_vendor.e({
a: common_vendor.t(order.create_time),
b: common_vendor.t(getStatusText(order)),
c: "c1fe0406-7-" + i0 + ",c1fe0406-6",
d: common_vendor.f(order.goods, (goods, iidx, i1) => {
return {
a: common_vendor.t(goods.snapshot_info.degree.degree_name),
b: "c1fe0406-8-" + i0 + "-" + i1 + ",c1fe0406-6",
c: common_vendor.t(goods.goods_name),
d: common_vendor.t(goods.goods_no),
e: "c1fe0406-9-" + i0 + "-" + i1 + ",c1fe0406-6",
f: common_vendor.p({
price: goods.goods_price,
size: "small",
["need-symbol"]: true
}),
g: iidx,
h: common_vendor.o(($event) => navigateToDetail(order.order_id), iidx)
};
}),
e: "c1fe0406-10-" + i0 + ",c1fe0406-6",
f: common_vendor.p({
price: order.total_price,
size: "normal",
["need-symbol"]: true
}),
g: order.order_status.value === 10
}, order.order_status.value === 10 ? common_vendor.e({
h: order.delivery_status.value !== 20
}, order.delivery_status.value !== 20 ? {
i: common_vendor.o(($event) => {
visibleCancelOrderDialog.value = true;
current_cancel_order_id.value = order.order_id;
}, index),
j: "c1fe0406-11-" + i0 + ",c1fe0406-6",
k: common_vendor.p({
plain: true,
size: "small"
})
} : {}, {
l: order.pay_status.value === 10 && !audit.value
}, order.pay_status.value === 10 && !audit.value ? {
m: common_vendor.o(($event) => {
visiblePayOrderDialog.value = true;
current_pay_order_id.value = order.order_id;
}, index),
n: "c1fe0406-12-" + i0 + ",c1fe0406-6",
o: common_vendor.p({
type: "primary",
size: "small"
})
} : {}, {
p: order.pay_status.value === 20 && order.delivery_status.value === 10
}, order.pay_status.value === 20 && order.delivery_status.value === 10 ? {
q: common_vendor.o(($event) => onClickDeliveryOrder(order), index),
r: "c1fe0406-13-" + i0 + ",c1fe0406-6",
s: common_vendor.p({
type: "primary",
size: "small"
})
} : {}) : {}, {
t: index
});
}),
s: common_vendor.p({
["custom-color"]: "#1a1a1a"
}),
t: common_vendor.p({
["custom-color"]: "#1a1a1a"
}),
v: common_vendor.sr(paging, "c1fe0406-6", {
"k": "paging"
}),
w: common_vendor.o(apiFetchOrderList),
x: common_vendor.o(($event) => dataList.value = $event),
y: common_vendor.p({
fixed: false,
modelValue: dataList.value
}),
z: orderDetail.address_info
}, orderDetail.address_info ? {
A: common_vendor.t(orderDetail.address_info.user_name),
B: common_vendor.t(orderDetail.address_info.tel_number),
C: common_vendor.t(orderDetail.address_info.province_name + orderDetail.address_info.city_name + orderDetail.address_info.county_name + orderDetail.address_info.street_name + orderDetail.address_info.detail_info_new)
} : {}, {
D: common_vendor.f(orderDetail.goods, (goods, index, i0) => {
return {
a: common_vendor.t(goods.snapshot_info.degree.degree_name),
b: "c1fe0406-19-" + i0 + "," + ("c1fe0406-18-" + i0),
c: common_vendor.t(goods.goods_name),
d: common_vendor.t(goods.goods_no),
e: "c1fe0406-20-" + i0 + "," + ("c1fe0406-18-" + i0),
f: common_vendor.p({
price: goods.goods_price,
size: "small",
["need-symbol"]: true
}),
g: index,
h: "c1fe0406-18-" + i0 + ",c1fe0406-17"
};
}),
E: common_vendor.p({
["custom-color"]: "#1a1a1a"
}),
F: common_vendor.p({
center: true
}),
G: common_vendor.p({
price: orderDetail.pay_price,
size: "normal",
["need-symbol"]: true
}),
H: common_vendor.p({
title: "订单编号",
desc: orderDetail.order_no
}),
I: common_vendor.p({
title: "下单时间",
desc: orderDetail.create_time
}),
J: common_vendor.o(($event) => form.express_company = $event),
K: common_vendor.p({
placeholder: "请输入物流公司",
type: "text",
modelValue: form.express_company
}),
L: common_vendor.p({
label: "物流公司名称"
}),
M: common_vendor.o(($event) => form.express_no = $event),
N: common_vendor.p({
placeholder: "请输入物流单号",
type: "text",
modelValue: form.express_no
}),
O: common_vendor.p({
label: "物流单号"
}),
P: common_vendor.o(deliveryOrder),
Q: common_vendor.p({
type: "primary",
block: true
}),
R: common_vendor.o(onCloseDeliveryPopup),
S: common_vendor.o(($event) => openDeliveryPopup.value = $event),
T: common_vendor.p({
["custom-style"]: {
height: "65%"
},
position: "bottom",
["safe-area-inset-bottom"]: true,
visible: openDeliveryPopup.value
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c1fe0406"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/config/shopOrder/index.js.map

View File

@@ -0,0 +1,19 @@
{
"navigationBarTitleText": "店铺订单",
"usingComponents": {
"nut-dialog": "../../../uni_modules/nutui-uni/components/dialog/dialog",
"nut-button": "../../../uni_modules/nutui-uni/components/button/button",
"nut-searchbar": "../../../uni_modules/nutui-uni/components/searchbar/searchbar",
"nut-tabs": "../../../uni_modules/nutui-uni/components/tabs/tabs",
"nut-sticky": "../../../uni_modules/nutui-uni/components/sticky/sticky",
"nut-tag": "../../../uni_modules/nutui-uni/components/tag/tag",
"nut-price": "../../../uni_modules/nutui-uni/components/price/price",
"z-paging": "../../../uni_modules/z-paging/components/z-paging/z-paging",
"nut-cell": "../../../uni_modules/nutui-uni/components/cell/cell",
"nut-cell-group": "../../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
"nut-input": "../../../uni_modules/nutui-uni/components/input/input",
"nut-form-item": "../../../uni_modules/nutui-uni/components/formitem/formitem",
"nut-form": "../../../uni_modules/nutui-uni/components/form/form",
"nut-popup": "../../../uni_modules/nutui-uni/components/popup/popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,181 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page-content.data-v-c1fe0406 {
min-height: 100vh;
background-color: #f2f3f5;
}
.order-popup .address-inner.data-v-c1fe0406 {
display: flex;
flex-direction: column;
justify-content: center;
}
.order-popup .total-price-inner.data-v-c1fe0406 {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.order-popup .total-price-inner view.data-v-c1fe0406:nth-child(2) {
color: #fa2c19;
}
.wechat-img-inner.data-v-c1fe0406 {
margin-top: 60rpx;
padding: 0rpx 80rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.order-list.data-v-c1fe0406 {
display: flex;
flex-direction: column;
width: 100%;
}
.order-inner.data-v-c1fe0406 {
display: flex;
flex-direction: column;
background: #fff;
border-radius: 15rpx;
overflow: hidden;
margin: 20rpx;
/* 信息行布局 */
}
.order-inner .order-inner-header.data-v-c1fe0406 {
display: flex;
align-items: center;
background-color: #dcdcdc;
color: rgba(0, 0, 0, 0.5);
font-size: 24rpx;
justify-content: space-between;
line-height: 45rpx;
padding: 15rpx 20rpx;
}
.order-inner .goods-info-row.data-v-c1fe0406 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx;
border-bottom: 2rpx solid #f2f3f5;
/* 左侧文字样式 */
/* 右侧价格样式 */
}
.order-inner .goods-info-row .left-text.data-v-c1fe0406 {
flex: 1;
}
.order-inner .goods-info-row .goods-name.data-v-c1fe0406 {
font-size: 30rpx;
color: #000000;
display: block;
margin-bottom: 8rpx;
}
.order-inner .goods-info-row .goods-no.data-v-c1fe0406 {
font-size: 26rpx;
color: #000000;
display: block;
}
.order-inner .goods-info-row .price.data-v-c1fe0406 {
margin-left: 20rpx;
align-self: center;
/* 垂直居中在两行文字之间 */
}
.order-inner .footer.data-v-c1fe0406 {
display: flex;
flex-direction: column;
}
.order-inner .footer .order-inner-price.data-v-c1fe0406 {
display: flex;
justify-content: flex-end;
padding-top: 10rpx;
padding-right: 20rpx;
padding-bottom: 20rpx;
font-size: 24rpx;
align-items: center;
}
.order-inner .footer .order-inner-action.data-v-c1fe0406 {
display: flex;
padding-top: 10rpx;
padding-bottom: 30rpx;
align-items: center;
justify-content: flex-end;
}
.title-list.data-v-c1fe0406 {
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
}
.title-list .title-item.data-v-c1fe0406 {
display: flex;
justify-content: space-around;
align-items: center;
position: relative;
}
.title-list .tabs-active.data-v-c1fe0406 {
font-weight: bold;
color: var(--nut-tabs-titles-item-active-color, var(--nut-title-color, #1a1a1a));
opacity: var(--nut-tabs-titles-item-line-opacity, 1);
transition: width 0.3s ease;
}
.title-list .tabs-active .item__line.data-v-c1fe0406 {
position: absolute;
bottom: -10%;
left: 50%;
overflow: hidden;
content: " ";
border-radius: var(--nut-tabs-titles-item-line-border-radius, 0);
opacity: var(--nut-tabs-titles-item-line-opacity, 1);
transition: width 0.3s ease;
transform: translate(-50%, 0);
width: var(--nut-tabs-horizontal-titles-item-active-line-width, 40px);
height: 3px;
content: " ";
background: var(--nut-tabs-horizontal-tab-line-color, linear-gradient(90deg, var(--nut-primary-color, #fa2c19) 0%, rgba(250, 44, 25, 0.15) 100%));
}