处理订单列表
This commit is contained in:
7
unpackage/dist/dev/mp-weixin/api/config.js
vendored
7
unpackage/dist/dev/mp-weixin/api/config.js
vendored
@@ -6,12 +6,5 @@ function fetchGetConfig() {
|
||||
// id : number
|
||||
});
|
||||
}
|
||||
function fetchGetPriceRules() {
|
||||
return api_request.request({
|
||||
url: "/config/getPriceRules"
|
||||
// id : number
|
||||
});
|
||||
}
|
||||
exports.fetchGetConfig = fetchGetConfig;
|
||||
exports.fetchGetPriceRules = fetchGetPriceRules;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/config.js.map
|
||||
|
||||
8
unpackage/dist/dev/mp-weixin/api/index.js
vendored
8
unpackage/dist/dev/mp-weixin/api/index.js
vendored
@@ -81,6 +81,13 @@ function fetchAddTodo(data) {
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchOrderList(data) {
|
||||
return api_request.request({
|
||||
url: "/index/orders",
|
||||
data,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
exports.fetchAddOrder = fetchAddOrder;
|
||||
exports.fetchAddTodo = fetchAddTodo;
|
||||
exports.fetchBooking = fetchBooking;
|
||||
@@ -89,6 +96,7 @@ exports.fetchEditOrder = fetchEditOrder;
|
||||
exports.fetchEditTodo = fetchEditTodo;
|
||||
exports.fetchGoods = fetchGoods;
|
||||
exports.fetchLogin = fetchLogin;
|
||||
exports.fetchOrderList = fetchOrderList;
|
||||
exports.fetchRoomOrder = fetchRoomOrder;
|
||||
exports.fetchRooms = fetchRooms;
|
||||
exports.fetchTodoList = fetchTodoList;
|
||||
|
||||
55
unpackage/dist/dev/mp-weixin/api/order.js
vendored
55
unpackage/dist/dev/mp-weixin/api/order.js
vendored
@@ -1,65 +1,10 @@
|
||||
"use strict";
|
||||
const api_request = require("./request.js");
|
||||
function fetchOrderPreview(form) {
|
||||
return api_request.request({
|
||||
url: "/order/preview",
|
||||
data: form,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchOrderbuyNow(data) {
|
||||
return api_request.request({
|
||||
url: "/order/buyNow",
|
||||
data,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchOrderDetail(id) {
|
||||
return api_request.request({
|
||||
url: "/order/detail",
|
||||
data: { id }
|
||||
});
|
||||
}
|
||||
function fetchOrderTotalCount() {
|
||||
return api_request.request({
|
||||
url: "/order/totalCount"
|
||||
});
|
||||
}
|
||||
function fetchOrderList(params = {}) {
|
||||
const defaultParams = {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
status: "all",
|
||||
goods_no: ""
|
||||
};
|
||||
const requestParams = {
|
||||
...defaultParams,
|
||||
...params
|
||||
};
|
||||
return api_request.request({
|
||||
url: "/order/getList",
|
||||
method: "GET",
|
||||
// 或 'POST' 根据实际需求
|
||||
data: requestParams
|
||||
});
|
||||
}
|
||||
function fetchCancelOrder(id) {
|
||||
return api_request.request({
|
||||
url: "/order/cancel",
|
||||
data: { id }
|
||||
});
|
||||
}
|
||||
function fetchReceiptOrder(id) {
|
||||
return api_request.request({
|
||||
url: "/order/receipt",
|
||||
data: { id }
|
||||
});
|
||||
}
|
||||
exports.fetchCancelOrder = fetchCancelOrder;
|
||||
exports.fetchOrderDetail = fetchOrderDetail;
|
||||
exports.fetchOrderList = fetchOrderList;
|
||||
exports.fetchOrderPreview = fetchOrderPreview;
|
||||
exports.fetchOrderTotalCount = fetchOrderTotalCount;
|
||||
exports.fetchOrderbuyNow = fetchOrderbuyNow;
|
||||
exports.fetchReceiptOrder = fetchReceiptOrder;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/order.js.map
|
||||
|
||||
8
unpackage/dist/dev/mp-weixin/api/user.js
vendored
8
unpackage/dist/dev/mp-weixin/api/user.js
vendored
@@ -1,9 +1,3 @@
|
||||
"use strict";
|
||||
const api_request = require("./request.js");
|
||||
function fetchUserInfo() {
|
||||
return api_request.request({
|
||||
url: "/user/info"
|
||||
});
|
||||
}
|
||||
exports.fetchUserInfo = fetchUserInfo;
|
||||
require("../common/vendor.js");
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/user.js.map
|
||||
|
||||
4
unpackage/dist/dev/mp-weixin/app.js
vendored
4
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -10,10 +10,6 @@ if (!Math) {
|
||||
"./pages/index/orderEdit.js";
|
||||
"./pages/index/goodsOrderAdd.js";
|
||||
"./pages/mine/index.js";
|
||||
"./pages/mall/detail.js";
|
||||
"./pages/mall/houseDetail.js";
|
||||
"./pages/order/preview.js";
|
||||
"./pages/order/housePreview.js";
|
||||
"./pages/order/index.js";
|
||||
"./pages/order/detail.js";
|
||||
}
|
||||
|
||||
4
unpackage/dist/dev/mp-weixin/app.json
vendored
4
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -8,10 +8,6 @@
|
||||
"pages/index/orderEdit",
|
||||
"pages/index/goodsOrderAdd",
|
||||
"pages/mine/index",
|
||||
"pages/mall/detail",
|
||||
"pages/mall/houseDetail",
|
||||
"pages/order/preview",
|
||||
"pages/order/housePreview",
|
||||
"pages/order/index",
|
||||
"pages/order/detail"
|
||||
],
|
||||
|
||||
19
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
19
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -8357,26 +8357,11 @@ const onShow = /* @__PURE__ */ createLifeCycleHook(
|
||||
1 | 2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onHide = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_HIDE,
|
||||
1 | 2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onLoad = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_LOAD,
|
||||
2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onShareTimeline = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_SHARE_TIMELINE,
|
||||
2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
const onShareAppMessage = /* @__PURE__ */ createLifeCycleHook(
|
||||
ON_SHARE_APP_MESSAGE,
|
||||
2
|
||||
/* HookFlags.PAGE */
|
||||
);
|
||||
exports._export_sfc = _export_sfc;
|
||||
exports.computed = computed;
|
||||
exports.createSSRApp = createSSRApp;
|
||||
@@ -8387,17 +8372,13 @@ exports.getCurrentInstance = getCurrentInstance;
|
||||
exports.index = index;
|
||||
exports.initVueI18n = initVueI18n;
|
||||
exports.inject = inject;
|
||||
exports.isRef = isRef;
|
||||
exports.markRaw = markRaw;
|
||||
exports.n = n;
|
||||
exports.nextTick$1 = nextTick$1;
|
||||
exports.o = o;
|
||||
exports.onActivated = onActivated;
|
||||
exports.onHide = onHide;
|
||||
exports.onLoad = onLoad;
|
||||
exports.onMounted = onMounted;
|
||||
exports.onShareAppMessage = onShareAppMessage;
|
||||
exports.onShareTimeline = onShareTimeline;
|
||||
exports.onShow = onShow;
|
||||
exports.onUnmounted = onUnmounted;
|
||||
exports.p = p;
|
||||
|
||||
@@ -48,7 +48,8 @@ const _sfc_main = {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:151", res);
|
||||
common_vendor.index.setStorageSync("token", res.token);
|
||||
common_vendor.index.setStorageSync("uid", res.user.user_id);
|
||||
common_vendor.index.setStorageSync("username", res.user.user_name);
|
||||
common_vendor.index.setStorageSync("user_name", res.user.user_name);
|
||||
common_vendor.index.setStorageSync("staff_name", res.user.staff_name);
|
||||
common_vendor.index.setStorageSync("role", res.user.role.value);
|
||||
isLoggedIn.value = true;
|
||||
common_vendor.index.showTabBar();
|
||||
@@ -85,19 +86,19 @@ const _sfc_main = {
|
||||
};
|
||||
const visibleInfoPopup = common_vendor.ref(false);
|
||||
const onShowInfoPopup = (room) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:205", "----", room);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:206", "----", room);
|
||||
Object.assign(tempRoom, room);
|
||||
visibleInfoPopup.value = true;
|
||||
};
|
||||
const onCloseInfoPopup = () => {
|
||||
Object.assign(tempRoom, {});
|
||||
visibleInfoPopup.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:212", "关闭");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:213", "关闭");
|
||||
};
|
||||
const visiblePopup = common_vendor.ref(false);
|
||||
const tempRoom = common_vendor.reactive({});
|
||||
const onBooking = (room) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:219", "----", room);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:220", "----", room);
|
||||
Object.assign(tempRoom, room);
|
||||
form.room_id = room.id;
|
||||
visiblePopup.value = true;
|
||||
@@ -110,18 +111,18 @@ const _sfc_main = {
|
||||
remarks: ""
|
||||
});
|
||||
visiblePopup.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:232", "关闭");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:233", "关闭");
|
||||
};
|
||||
const getRooms = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:239", "房间");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:240", "房间");
|
||||
api_index.fetchRooms().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:241", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:242", res);
|
||||
rooms.value = res;
|
||||
});
|
||||
};
|
||||
const onSubmit = () => {
|
||||
api_index.fetchBooking(form).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:249", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:250", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "预约成功"
|
||||
@@ -134,7 +135,7 @@ const _sfc_main = {
|
||||
api_index.fetchUnBooking({
|
||||
id: room.id
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:263", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:264", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "取消预约成功"
|
||||
@@ -143,26 +144,26 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const init = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:273", "init");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:274", "init");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:280", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:281", "onshow---");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:286", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:287", "onshow---");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
});
|
||||
const checkLogin = () => {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:295", "token", token);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:296", "token", token);
|
||||
if (token) {
|
||||
common_vendor.index.showTabBar();
|
||||
isLoggedIn.value = true;
|
||||
|
||||
145
unpackage/dist/dev/mp-weixin/pages/mine/index.js
vendored
145
unpackage/dist/dev/mp-weixin/pages/mine/index.js
vendored
@@ -1,77 +1,42 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_user = require("../../api/user.js");
|
||||
const utils_helper = require("../../utils/helper.js");
|
||||
const api_order = require("../../api/order.js");
|
||||
const api_config = require("../../api/config.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_avatar2 = common_vendor.resolveComponent("nut-avatar");
|
||||
const _easycom_nut_icon2 = common_vendor.resolveComponent("nut-icon");
|
||||
const _easycom_nut_grid_item2 = common_vendor.resolveComponent("nut-grid-item");
|
||||
const _easycom_nut_grid2 = common_vendor.resolveComponent("nut-grid");
|
||||
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
|
||||
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
|
||||
(_easycom_nut_avatar2 + _easycom_nut_icon2 + _easycom_nut_grid_item2 + _easycom_nut_grid2 + _easycom_nut_cell_group2 + _easycom_nut_cell2)();
|
||||
(_easycom_nut_avatar2 + _easycom_nut_icon2 + _easycom_nut_grid_item2 + _easycom_nut_grid2 + _easycom_nut_cell_group2)();
|
||||
}
|
||||
const _easycom_nut_avatar = () => "../../uni_modules/nutui-uni/components/avatar/avatar.js";
|
||||
const _easycom_nut_icon = () => "../../uni_modules/nutui-uni/components/icon/icon.js";
|
||||
const _easycom_nut_grid_item = () => "../../uni_modules/nutui-uni/components/griditem/griditem.js";
|
||||
const _easycom_nut_grid = () => "../../uni_modules/nutui-uni/components/grid/grid.js";
|
||||
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
|
||||
const _easycom_nut_cell = () => "../../uni_modules/nutui-uni/components/cell/cell.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_avatar + _easycom_nut_icon + _easycom_nut_grid_item + _easycom_nut_grid + _easycom_nut_cell_group + _easycom_nut_cell)();
|
||||
(_easycom_nut_avatar + _easycom_nut_icon + _easycom_nut_grid_item + _easycom_nut_grid + _easycom_nut_cell_group)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const audit = common_vendor.ref(true);
|
||||
const showMyOrder = common_vendor.ref(false);
|
||||
const phone = common_vendor.ref("");
|
||||
const uid = common_vendor.ref(0);
|
||||
const userInfo = common_vendor.reactive({});
|
||||
const countInfo = common_vendor.reactive({
|
||||
all: 0,
|
||||
payment: 0,
|
||||
delivery: 0,
|
||||
received: 0
|
||||
});
|
||||
const staffName = common_vendor.ref("");
|
||||
common_vendor.onLoad((options) => {
|
||||
init();
|
||||
});
|
||||
const makePhoneCall = (phoneNumber) => {
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:163", 123);
|
||||
common_vendor.index.makePhoneCall({
|
||||
phoneNumber,
|
||||
success: () => {
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:167", "拨打电话成功");
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/mine/index.vue:170", "拨打电话失败:", err);
|
||||
}
|
||||
});
|
||||
};
|
||||
const getConfig = () => {
|
||||
api_config.fetchGetConfig().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:179", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
phone.value = res.appConfig.shop_phone;
|
||||
});
|
||||
const init = () => {
|
||||
common_vendor.index.getStorageSync("user_name");
|
||||
let staff_name = common_vendor.index.getStorageSync("staff_name");
|
||||
common_vendor.index.getStorageSync("role");
|
||||
let user_id = common_vendor.index.getStorageSync("uid");
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:188", "staff_name", staff_name);
|
||||
uid.value = user_id;
|
||||
staffName.value = staff_name;
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:190", "init");
|
||||
let userId = common_vendor.index.getStorageSync("uid");
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:193", "userId", userId);
|
||||
uid.value = userId;
|
||||
getConfig();
|
||||
if (uid.value > 0) {
|
||||
api_user.fetchUserInfo().then((res) => {
|
||||
Object.assign(userInfo, res);
|
||||
showMyOrder.value = true;
|
||||
api_order.fetchOrderTotalCount().then((res2) => {
|
||||
Object.assign(countInfo, res2);
|
||||
});
|
||||
});
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/mine/index.vue:203", "init");
|
||||
init();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
@@ -80,81 +45,25 @@ const _sfc_main = {
|
||||
b: common_vendor.p({
|
||||
size: "large"
|
||||
}),
|
||||
c: common_vendor.t(userInfo.nickName),
|
||||
d: common_vendor.t(userInfo.user_id)
|
||||
} : {
|
||||
c: common_vendor.t(staffName.value),
|
||||
d: common_vendor.t(uid.value)
|
||||
} : {}, {
|
||||
e: common_vendor.p({
|
||||
name: "my"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
size: "large"
|
||||
}),
|
||||
g: common_vendor.o(($event) => common_vendor.unref(utils_helper.goToLoginPage)()),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.goToLoginPage)())
|
||||
}, {
|
||||
i: common_vendor.p({
|
||||
name: "people"
|
||||
}),
|
||||
j: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/store")),
|
||||
k: common_vendor.p({
|
||||
text: "商城配置"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
name: "refresh"
|
||||
}),
|
||||
m: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/price")),
|
||||
n: common_vendor.p({
|
||||
text: "价格调整"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
name: "shop"
|
||||
}),
|
||||
p: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsList")),
|
||||
q: common_vendor.p({
|
||||
text: "商品管理"
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
name: "order"
|
||||
}),
|
||||
s: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/shopOrder/index?tab=0")),
|
||||
t: common_vendor.p({
|
||||
text: "店铺订单"
|
||||
f: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=0")),
|
||||
g: common_vendor.p({
|
||||
text: "订单管理"
|
||||
}),
|
||||
v: common_vendor.p({
|
||||
title: "店铺管理"
|
||||
h: common_vendor.p({
|
||||
name: "eye"
|
||||
}),
|
||||
w: showMyOrder.value && !audit.value
|
||||
}, showMyOrder.value && !audit.value ? {
|
||||
x: common_vendor.t(countInfo.all),
|
||||
y: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=0")),
|
||||
z: common_vendor.p({
|
||||
text: "全部"
|
||||
i: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/shopOrder/index?tab=0")),
|
||||
j: common_vendor.p({
|
||||
text: "运营数据"
|
||||
}),
|
||||
A: common_vendor.t(countInfo.payment),
|
||||
B: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=1")),
|
||||
C: common_vendor.p({
|
||||
text: "待付款"
|
||||
}),
|
||||
D: common_vendor.t(countInfo.delivery),
|
||||
E: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=2")),
|
||||
F: common_vendor.p({
|
||||
text: "待发货"
|
||||
}),
|
||||
G: common_vendor.t(countInfo.received),
|
||||
H: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/index?tab=3")),
|
||||
I: common_vendor.p({
|
||||
text: "待收货"
|
||||
}),
|
||||
J: common_vendor.p({
|
||||
title: "我的订单"
|
||||
})
|
||||
} : {}, {
|
||||
K: common_vendor.o(($event) => makePhoneCall(phone.value)),
|
||||
L: common_vendor.p({
|
||||
title: phone.value
|
||||
}),
|
||||
M: common_vendor.p({
|
||||
title: "联系我们"
|
||||
k: common_vendor.p({
|
||||
title: ""
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-avatar": "../../uni_modules/nutui-uni/components/avatar/avatar",
|
||||
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
|
||||
"nut-grid-item": "../../uni_modules/nutui-uni/components/griditem/griditem",
|
||||
"nut-grid": "../../uni_modules/nutui-uni/components/grid/grid",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell"
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-569e925a"><view wx:if="{{a}}" class="user-inner data-v-569e925a"><view class="data-v-569e925a"><nut-avatar wx:if="{{b}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-0" bind:__l="__l" u-p="{{b}}">用户</nut-avatar></view><view class="user-info-style data-v-569e925a"><text class="nickname data-v-569e925a">{{c}}</text><text class="user-id data-v-569e925a">UID:{{d}}</text></view></view><view wx:else class="user-inner data-v-569e925a"><view class="data-v-569e925a" bindtap="{{g}}"><nut-avatar wx:if="{{f}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-1" bind:__l="__l" u-p="{{f}}"><nut-icon wx:if="{{e}}" class="data-v-569e925a" u-i="569e925a-2,569e925a-1" bind:__l="__l" u-p="{{e}}"/></nut-avatar></view><view class="data-v-569e925a" bindtap="{{h}}"><text class="data-v-569e925a">点击登录</text></view></view><view class="content data-v-569e925a"><nut-cell-group wx:if="{{v}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-3" bind:__l="__l" u-p="{{v}}"><nut-grid class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-4,569e925a-3" bind:__l="__l"><nut-grid-item wx:if="{{k}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{j}}" u-i="569e925a-5,569e925a-4" bind:__l="__l" u-p="{{k}}"><nut-icon wx:if="{{i}}" class="data-v-569e925a" u-i="569e925a-6,569e925a-5" bind:__l="__l" u-p="{{i}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{n}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{m}}" u-i="569e925a-7,569e925a-4" bind:__l="__l" u-p="{{n}}"><nut-icon wx:if="{{l}}" class="data-v-569e925a" u-i="569e925a-8,569e925a-7" bind:__l="__l" u-p="{{l}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{q}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{p}}" u-i="569e925a-9,569e925a-4" bind:__l="__l" u-p="{{q}}"><nut-icon wx:if="{{o}}" class="data-v-569e925a" u-i="569e925a-10,569e925a-9" bind:__l="__l" u-p="{{o}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{t}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{s}}" u-i="569e925a-11,569e925a-4" bind:__l="__l" u-p="{{t}}"><nut-icon wx:if="{{r}}" class="data-v-569e925a" u-i="569e925a-12,569e925a-11" bind:__l="__l" u-p="{{r}}"></nut-icon></nut-grid-item></nut-grid></nut-cell-group><nut-cell-group wx:if="{{w}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-13" bind:__l="__l" u-p="{{J}}"><nut-grid class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-14,569e925a-13" bind:__l="__l"><nut-grid-item wx:if="{{z}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{y}}" u-i="569e925a-15,569e925a-14" bind:__l="__l" u-p="{{z}}">{{x}}</nut-grid-item><nut-grid-item wx:if="{{C}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{B}}" u-i="569e925a-16,569e925a-14" bind:__l="__l" u-p="{{C}}">{{A}}</nut-grid-item><nut-grid-item wx:if="{{F}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{E}}" u-i="569e925a-17,569e925a-14" bind:__l="__l" u-p="{{F}}">{{D}}</nut-grid-item><nut-grid-item wx:if="{{I}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{H}}" u-i="569e925a-18,569e925a-14" bind:__l="__l" u-p="{{I}}">{{G}}</nut-grid-item></nut-grid></nut-cell-group><nut-cell-group wx:if="{{M}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-19" bind:__l="__l" u-p="{{M}}"><nut-cell wx:if="{{L}}" class="data-v-569e925a" bindclick="{{K}}" u-i="569e925a-20,569e925a-19" bind:__l="__l" u-p="{{L}}"></nut-cell></nut-cell-group></view></view>
|
||||
<view class="page-content data-v-569e925a"><view wx:if="{{a}}" class="user-inner data-v-569e925a"><view class="data-v-569e925a"><nut-avatar wx:if="{{b}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-0" bind:__l="__l" u-p="{{b}}">用户</nut-avatar></view><view class="user-info-style data-v-569e925a"><text class="nickname data-v-569e925a">{{c}}</text><text class="user-id data-v-569e925a">UID:{{d}}</text></view></view><view class="content data-v-569e925a"><nut-cell-group wx:if="{{k}}" class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-1" bind:__l="__l" u-p="{{k}}"><nut-grid class="data-v-569e925a" u-s="{{['d']}}" u-i="569e925a-2,569e925a-1" bind:__l="__l"><nut-grid-item wx:if="{{g}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{f}}" u-i="569e925a-3,569e925a-2" bind:__l="__l" u-p="{{g}}"><nut-icon wx:if="{{e}}" class="data-v-569e925a" u-i="569e925a-4,569e925a-3" bind:__l="__l" u-p="{{e}}"></nut-icon></nut-grid-item><nut-grid-item wx:if="{{j}}" class="data-v-569e925a" u-s="{{['d']}}" bindclick="{{i}}" u-i="569e925a-5,569e925a-2" bind:__l="__l" u-p="{{j}}"><nut-icon wx:if="{{h}}" class="data-v-569e925a" u-i="569e925a-6,569e925a-5" bind:__l="__l" u-p="{{h}}"></nut-icon></nut-grid-item></nut-grid></nut-cell-group></view></view>
|
||||
@@ -54,12 +54,12 @@
|
||||
}
|
||||
.user-inner.data-v-569e925a {
|
||||
background: linear-gradient(30deg, rgba(198, 77, 255, 0.99), rgba(102, 204, 255, 0.99));
|
||||
height: 150px;
|
||||
width: calc(100% - 20px);
|
||||
height: 300rpx;
|
||||
width: calc(100% - 40rpx);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0px 10px;
|
||||
gap: 15px;
|
||||
padding: 0px 20rpx;
|
||||
gap: 30rpx;
|
||||
}
|
||||
.user-info-style.data-v-569e925a {
|
||||
display: flex;
|
||||
@@ -67,25 +67,17 @@
|
||||
align-items: flex-start;
|
||||
}
|
||||
.nickname.data-v-569e925a {
|
||||
font-size: 20px;
|
||||
/* 大字体 */
|
||||
font-weight: bold;
|
||||
/* 加粗 */
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
/* 深色文字 */
|
||||
margin-bottom: 5px;
|
||||
/* 与UID的间距 */
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.user-id.data-v-569e925a {
|
||||
font-size: 14px;
|
||||
/* 小字体 */
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
/* 浅色文字 */
|
||||
}
|
||||
.content.data-v-569e925a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* align-items: center; */
|
||||
background-color: #f2f3f5;
|
||||
padding: 0px 10px;
|
||||
padding: 0px 20rpx;
|
||||
}
|
||||
@@ -10,8 +10,7 @@ if (!Array) {
|
||||
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");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
(_easycom_nut_step2 + _easycom_nut_steps2 + _easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_tag2 + _easycom_nut_price2 + _easycom_nut_button2)();
|
||||
(_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";
|
||||
@@ -19,9 +18,8 @@ const _easycom_nut_cell = () => "../../uni_modules/nutui-uni/components/cell/cel
|
||||
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";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_step + _easycom_nut_steps + _easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price + _easycom_nut_button)();
|
||||
(_easycom_nut_step + _easycom_nut_steps + _easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "detail",
|
||||
@@ -41,9 +39,9 @@ const _sfc_main = {
|
||||
});
|
||||
const getConfig = () => {
|
||||
api_config.fetchGetConfig().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:149", "getConfig=====>", res);
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:126", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:151", res.appConfig.pay_imgs);
|
||||
common_vendor.index.__f__("log", "at pages/order/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) || [];
|
||||
@@ -52,19 +50,6 @@ const _sfc_main = {
|
||||
images.value = merged_imgs_arr;
|
||||
});
|
||||
};
|
||||
const showPayImgs = () => {
|
||||
if (images.value.length === 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "暂无图片",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:170", "preview images:", images);
|
||||
common_vendor.index.previewImage({
|
||||
urls: images.value
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
@@ -134,14 +119,6 @@ const _sfc_main = {
|
||||
title: "物流单号",
|
||||
desc: detail.express_no
|
||||
})
|
||||
} : {}, {
|
||||
s: detail.progress === 1 && !audit.value
|
||||
}, detail.progress === 1 && !audit.value ? {
|
||||
t: common_vendor.o(($event) => showPayImgs()),
|
||||
v: common_vendor.p({
|
||||
type: "primary",
|
||||
block: true
|
||||
})
|
||||
} : {});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"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",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-6b23c96c"><nut-steps wx:if="{{e}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-1,6b23c96c-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-2,6b23c96c-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-3,6b23c96c-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-4,6b23c96c-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-5" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-6,6b23c96c-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-6b23c96c"><text class="data-v-6b23c96c">{{g}} - {{h}}</text><text class="data-v-6b23c96c">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-6b23c96c" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-6b23c96c" slot="title"><view class="left-text data-v-6b23c96c"><view class="goods-name data-v-6b23c96c"><nut-tag wx:if="{{k}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-6b23c96c" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-6b23c96c">串号:{{goods.d}}</text></view></view><nut-price class="data-v-6b23c96c" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-11" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-12,6b23c96c-11" bind:__l="__l"><view class="total-price-inner data-v-6b23c96c"><text class="data-v-6b23c96c">商品总额</text><nut-price wx:if="{{m}}" class="data-v-6b23c96c" u-i="6b23c96c-13,6b23c96c-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-6b23c96c" u-i="6b23c96c-15,6b23c96c-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-6b23c96c" u-i="6b23c96c-16,6b23c96c-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-6b23c96c" u-i="6b23c96c-18,6b23c96c-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-6b23c96c" u-i="6b23c96c-19,6b23c96c-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group><view wx:if="{{s}}" class="wechat-img-inner data-v-6b23c96c"><nut-button wx:if="{{v}}" class="data-v-6b23c96c" u-s="{{['d']}}" bindclick="{{t}}" u-i="6b23c96c-20" bind:__l="__l" u-p="{{v}}"> 点我付款 </nut-button></view></view>
|
||||
<view class="page-content data-v-6b23c96c"><nut-steps wx:if="{{e}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-1,6b23c96c-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-2,6b23c96c-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-3,6b23c96c-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-4,6b23c96c-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-5" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-6,6b23c96c-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-6b23c96c"><text class="data-v-6b23c96c">{{g}} - {{h}}</text><text class="data-v-6b23c96c">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-6b23c96c" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-6b23c96c" slot="title"><view class="left-text data-v-6b23c96c"><view class="goods-name data-v-6b23c96c"><nut-tag wx:if="{{k}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-6b23c96c" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-6b23c96c">串号:{{goods.d}}</text></view></view><nut-price class="data-v-6b23c96c" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-11" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-12,6b23c96c-11" bind:__l="__l"><view class="total-price-inner data-v-6b23c96c"><text class="data-v-6b23c96c">商品总额</text><nut-price wx:if="{{m}}" class="data-v-6b23c96c" u-i="6b23c96c-13,6b23c96c-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-6b23c96c" u-i="6b23c96c-15,6b23c96c-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-6b23c96c" u-i="6b23c96c-16,6b23c96c-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-6b23c96c" u-i="6b23c96c-18,6b23c96c-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-6b23c96c" u-i="6b23c96c-19,6b23c96c-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group></view>
|
||||
256
unpackage/dist/dev/mp-weixin/pages/order/index.js
vendored
256
unpackage/dist/dev/mp-weixin/pages/order/index.js
vendored
@@ -1,130 +1,72 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_order = require("../../api/order.js");
|
||||
const api_config = require("../../api/config.js");
|
||||
const api_index = require("../../api/index.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");
|
||||
(_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_tabs2 + _easycom_nut_sticky2 + _easycom_nut_tag2 + _easycom_z_paging2)();
|
||||
}
|
||||
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";
|
||||
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_tabs + _easycom_nut_sticky + _easycom_nut_tag + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const audit = common_vendor.ref(true);
|
||||
const images = common_vendor.ref([]);
|
||||
const current_tab_idx = common_vendor.ref(0);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const paging = common_vendor.ref(null);
|
||||
const tabs_config = [
|
||||
{
|
||||
title: "今日",
|
||||
status: "today"
|
||||
},
|
||||
{
|
||||
title: "昨日",
|
||||
status: "yesterday"
|
||||
},
|
||||
{
|
||||
title: "当月",
|
||||
status: "month"
|
||||
},
|
||||
{
|
||||
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 search_val = common_vendor.ref("");
|
||||
const dataList = common_vendor.ref([]);
|
||||
const paging = common_vendor.ref(null);
|
||||
common_vendor.ref(false);
|
||||
common_vendor.ref(0);
|
||||
common_vendor.ref(false);
|
||||
common_vendor.ref(0);
|
||||
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/order/index.vue:165", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:167", 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 showPayImgs = () => {
|
||||
if (images.value.length === 0) {
|
||||
common_vendor.index.showToast({
|
||||
title: "暂无图片",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:186", "preview images:", images);
|
||||
common_vendor.index.previewImage({
|
||||
urls: images.value
|
||||
});
|
||||
};
|
||||
const navigateToDetail = (id) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:194", id);
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:277", id);
|
||||
if (!id) {
|
||||
common_vendor.index.__f__("warn", "at pages/order/index.vue:196", "导航ID不能为空");
|
||||
common_vendor.index.__f__("warn", "at pages/order/index.vue:279", "导航ID不能为空");
|
||||
return;
|
||||
}
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/order/detail?id=${encodeURIComponent(id)}`
|
||||
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 onClickReceiptOrder = (id) => {
|
||||
api_order.fetchReceiptOrder(id).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/order/index.vue:229", tabs_config[current_tab_idx.value]["status"]);
|
||||
const queryList = (pageNo = 1, pageSize = 10) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:317", 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
|
||||
status: tabs_config[current_tab_idx.value]["status"]
|
||||
};
|
||||
api_order.fetchOrderList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:237", res);
|
||||
api_index.fetchOrderList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:324", res);
|
||||
paging.value.complete(res.list);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
@@ -134,58 +76,13 @@ const _sfc_main = {
|
||||
current_tab_idx.value = parseInt(options.tab);
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
getConfig();
|
||||
});
|
||||
const onSearch = () => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:261", "搜索:", search_val.value);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onClear = () => {
|
||||
common_vendor.index.__f__("log", "at pages/order/index.vue:267", "搜索:", 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;
|
||||
}
|
||||
}
|
||||
if (paging.value) {
|
||||
paging.value.refresh();
|
||||
}
|
||||
};
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
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(onSearch),
|
||||
f: common_vendor.p({
|
||||
size: "small",
|
||||
type: "primary"
|
||||
}),
|
||||
g: common_vendor.o(onSearch),
|
||||
h: common_vendor.o(onClear),
|
||||
i: common_vendor.o(($event) => search_val.value = $event),
|
||||
j: common_vendor.p({
|
||||
placeholder: "请输入商品串号",
|
||||
clearable: true,
|
||||
["input-background"]: "#eee",
|
||||
modelValue: search_val.value
|
||||
}),
|
||||
k: common_vendor.f(tabs_config, (item, idx, i0) => {
|
||||
a: common_vendor.f(tabs_config, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: idx,
|
||||
@@ -193,85 +90,44 @@ const _sfc_main = {
|
||||
d: common_vendor.o(($event) => onChangeTab(item, idx), idx)
|
||||
};
|
||||
}),
|
||||
l: common_vendor.o(($event) => current_tab_idx.value = $event),
|
||||
m: common_vendor.p({
|
||||
b: common_vendor.o(($event) => current_tab_idx.value = $event),
|
||||
c: common_vendor.p({
|
||||
background: "#fff",
|
||||
modelValue: current_tab_idx.value
|
||||
}),
|
||||
n: common_vendor.f(dataList.value, (order, index, i0) => {
|
||||
return common_vendor.e({
|
||||
d: common_vendor.f(dataList.value, (order, index, i0) => {
|
||||
var _a;
|
||||
return {
|
||||
a: common_vendor.t(order.create_time),
|
||||
b: common_vendor.t(getStatusText(order)),
|
||||
c: "17a44f9d-6-" + i0 + ",17a44f9d-5",
|
||||
b: common_vendor.t((_a = order == null ? void 0 : order.status) == null ? void 0 : _a.text),
|
||||
c: "17a44f9d-3-" + i0 + ",17a44f9d-2",
|
||||
d: common_vendor.f(order.goods, (goods, iidx, i1) => {
|
||||
var _a2;
|
||||
return {
|
||||
a: common_vendor.t(goods.snapshot_info.degree.degree_name),
|
||||
b: "17a44f9d-7-" + i0 + "-" + i1 + ",17a44f9d-5",
|
||||
a: common_vendor.t(goods.goods_type_name),
|
||||
b: "17a44f9d-4-" + i0 + "-" + i1 + ",17a44f9d-2",
|
||||
c: common_vendor.t(goods.goods_name),
|
||||
d: common_vendor.t(goods.goods_no),
|
||||
e: "17a44f9d-8-" + i0 + "-" + i1 + ",17a44f9d-5",
|
||||
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)
|
||||
d: common_vendor.t(goods == null ? void 0 : goods.goods_price),
|
||||
e: common_vendor.t((_a2 = goods == null ? void 0 : goods.goods_pay_status) == null ? void 0 : _a2.text),
|
||||
f: iidx,
|
||||
g: common_vendor.o(($event) => navigateToDetail(order.order_id), iidx)
|
||||
};
|
||||
}),
|
||||
e: "17a44f9d-9-" + i0 + ",17a44f9d-5",
|
||||
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.pay_status.value === 10
|
||||
}, order.pay_status.value === 10 ? {
|
||||
i: common_vendor.o(($event) => {
|
||||
visibleCancelOrderDialog.value = true;
|
||||
current_cancel_order_id.value = order.order_id;
|
||||
}, index),
|
||||
j: "17a44f9d-10-" + i0 + ",17a44f9d-5",
|
||||
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) => showPayImgs(), index),
|
||||
n: "17a44f9d-11-" + i0 + ",17a44f9d-5",
|
||||
o: common_vendor.p({
|
||||
type: "primary",
|
||||
size: "small"
|
||||
})
|
||||
} : {}, {
|
||||
p: order.pay_status.value === 20 && order.delivery_status.value === 20 && order.receipt_status.value === 10
|
||||
}, order.pay_status.value === 20 && order.delivery_status.value === 20 && order.receipt_status.value === 10 ? {
|
||||
q: common_vendor.o(($event) => onClickReceiptOrder(order.order_id), index),
|
||||
r: "17a44f9d-12-" + i0 + ",17a44f9d-5",
|
||||
s: common_vendor.p({
|
||||
type: "primary",
|
||||
size: "small"
|
||||
})
|
||||
} : {}) : {}, {
|
||||
t: index
|
||||
});
|
||||
e: index
|
||||
};
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
e: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
f: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
q: common_vendor.sr(paging, "17a44f9d-5", {
|
||||
g: common_vendor.sr(paging, "17a44f9d-2", {
|
||||
"k": "paging"
|
||||
}),
|
||||
r: common_vendor.o(apiFetchOrderList),
|
||||
s: common_vendor.o(($event) => dataList.value = $event),
|
||||
t: common_vendor.p({
|
||||
h: common_vendor.o(queryList),
|
||||
i: common_vendor.o(($event) => dataList.value = $event),
|
||||
j: common_vendor.p({
|
||||
fixed: false,
|
||||
modelValue: dataList.value
|
||||
})
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarTitleText": "订单管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page-content data-v-17a44f9d"><nut-dialog wx:if="{{d}}" class="data-v-17a44f9d" bindcancel="{{a}}" bindok="{{b}}" u-i="17a44f9d-0" bind:__l="__l" bindupdateVisible="{{c}}" u-p="{{d}}"/><nut-sticky class="data-v-17a44f9d" u-s="{{['d']}}" u-i="17a44f9d-1" bind:__l="__l"><nut-searchbar wx:if="{{j}}" class="data-v-17a44f9d" u-s="{{['rightout']}}" bindsearch="{{g}}" bindclear="{{h}}" u-i="17a44f9d-2,17a44f9d-1" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><nut-button class="data-v-17a44f9d" u-s="{{['d']}}" bindclick="{{e}}" u-i="17a44f9d-3,17a44f9d-2" bind:__l="__l" u-p="{{f}}" slot="rightout">搜索</nut-button></nut-searchbar><nut-tabs wx:if="{{m}}" class="data-v-17a44f9d" u-s="{{['titles']}}" u-i="17a44f9d-4,17a44f9d-1" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"><view class="title-list data-v-17a44f9d" slot="titles"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="{{['title-item', 'data-v-17a44f9d', item.c && 'tabs-active']}}" bindtap="{{item.d}}"><view class="nut-tabs__titles-item__text data-v-17a44f9d">{{item.a}}</view><view class="item__line data-v-17a44f9d"/></view></view></nut-tabs></nut-sticky><z-paging wx:if="{{t}}" u-s="{{['d']}}" u-r="paging" style="height:88vh" class="order-list r data-v-17a44f9d" bindquery="{{r}}" u-i="17a44f9d-5" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"><view wx:for="{{n}}" wx:for-item="order" wx:key="t" class="order-inner data-v-17a44f9d"><view class="order-inner-header data-v-17a44f9d"><text class="data-v-17a44f9d">{{order.a}}</text><nut-tag wx:if="{{o}}" class="data-v-17a44f9d" u-s="{{['d']}}" u-i="{{order.c}}" bind:__l="__l" u-p="{{o}}">{{order.b}}</nut-tag></view><view wx:for="{{order.d}}" wx:for-item="goods" wx:key="g" class="goods-info-row data-v-17a44f9d" bindtap="{{goods.h}}"><view class="left-text data-v-17a44f9d"><view class="goods-name data-v-17a44f9d"><nut-tag wx:if="{{p}}" class="data-v-17a44f9d" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{p}}">{{goods.a}}</nut-tag><text class="data-v-17a44f9d" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-17a44f9d">串号:{{goods.d}}</text></view><view class="price data-v-17a44f9d"><nut-price wx:if="{{goods.f}}" class="data-v-17a44f9d" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}"/></view></view><view class="footer data-v-17a44f9d"><view class="order-inner-price data-v-17a44f9d"> 总计:<nut-price wx:if="{{order.f}}" class="data-v-17a44f9d" u-i="{{order.e}}" bind:__l="__l" u-p="{{order.f}}"/></view><view wx:if="{{order.g}}" class="order-inner-action data-v-17a44f9d"><view class="data-v-17a44f9d" style="margin-left:10rpx"><nut-button wx:if="{{order.h}}" class="data-v-17a44f9d" u-s="{{['d']}}" bindclick="{{order.i}}" u-i="{{order.j}}" bind:__l="__l" u-p="{{order.k}}"> 取消订单 </nut-button></view><view class="data-v-17a44f9d" style="margin-left:10rpx"><nut-button wx:if="{{order.l}}" class="data-v-17a44f9d" u-s="{{['d']}}" bindclick="{{order.m}}" u-i="{{order.n}}" bind:__l="__l" u-p="{{order.o}}"> 点我付款 </nut-button></view><view class="data-v-17a44f9d" style="margin-left:10rpx"><nut-button wx:if="{{order.p}}" class="data-v-17a44f9d" u-s="{{['d']}}" bindclick="{{order.q}}" u-i="{{order.r}}" bind:__l="__l" u-p="{{order.s}}"> 确认收货 </nut-button></view></view></view></view></z-paging></view>
|
||||
<view class="page-content data-v-17a44f9d"><nut-sticky class="data-v-17a44f9d" u-s="{{['d']}}" u-i="17a44f9d-0" bind:__l="__l"><nut-tabs wx:if="{{c}}" class="data-v-17a44f9d" u-s="{{['titles']}}" u-i="17a44f9d-1,17a44f9d-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><view class="title-list data-v-17a44f9d" slot="titles"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="{{['title-item', 'data-v-17a44f9d', item.c && 'tabs-active']}}" bindtap="{{item.d}}"><view class="nut-tabs__titles-item__text data-v-17a44f9d">{{item.a}}</view><view class="item__line data-v-17a44f9d"/></view></view></nut-tabs></nut-sticky><z-paging wx:if="{{j}}" u-s="{{['d']}}" u-r="paging" style="height:88vh" class="order-list r data-v-17a44f9d" bindquery="{{h}}" u-i="17a44f9d-2" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view wx:for="{{d}}" wx:for-item="order" wx:key="e" class="order-inner data-v-17a44f9d"><view class="order-inner-header data-v-17a44f9d"><text class="data-v-17a44f9d">{{order.a}}</text><nut-tag wx:if="{{e}}" class="data-v-17a44f9d" u-s="{{['d']}}" u-i="{{order.c}}" bind:__l="__l" u-p="{{e}}">{{order.b}}</nut-tag></view><view wx:for="{{order.d}}" wx:for-item="goods" wx:key="f" class="goods-info-row data-v-17a44f9d" bindtap="{{goods.g}}"><view class="left-text data-v-17a44f9d"><view class="goods-name data-v-17a44f9d"><nut-tag wx:if="{{f}}" class="data-v-17a44f9d" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{f}}">{{goods.a}}</nut-tag><text class="data-v-17a44f9d" style="margin-left:10rpx">{{goods.c}}</text></view></view><view class="price data-v-17a44f9d">{{goods.d}}</view><view class="goods-pay-status data-v-17a44f9d">{{goods.e}}</view></view><view class="footer data-v-17a44f9d"><view class="order-inner-action data-v-17a44f9d"><view class="data-v-17a44f9d" style="margin-left:10rpx"></view><view class="data-v-17a44f9d" style="margin-left:10rpx"></view><view class="data-v-17a44f9d" style="margin-left:10rpx"></view></view></view></view></z-paging></view>
|
||||
@@ -52,6 +52,28 @@
|
||||
min-height: 100vh;
|
||||
background-color: #f2f3f5;
|
||||
}
|
||||
.order-popup .address-inner.data-v-17a44f9d {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.order-popup .total-price-inner.data-v-17a44f9d {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.order-popup .total-price-inner view.data-v-17a44f9d:nth-child(2) {
|
||||
color: #fa2c19;
|
||||
}
|
||||
.wechat-img-inner.data-v-17a44f9d {
|
||||
margin-top: 60rpx;
|
||||
padding: 0rpx 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.order-list.data-v-17a44f9d {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -89,21 +111,22 @@
|
||||
flex: 1;
|
||||
}
|
||||
.order-inner .goods-info-row .goods-name.data-v-17a44f9d {
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.order-inner .goods-info-row .goods-no.data-v-17a44f9d {
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
}
|
||||
.order-inner .goods-info-row .price.data-v-17a44f9d {
|
||||
font-size: 26rpx;
|
||||
margin-left: 20rpx;
|
||||
align-self: center;
|
||||
color: #fa2c19;
|
||||
/* 垂直居中在两行文字之间 */
|
||||
}
|
||||
.order-inner .goods-info-row .goods-pay-status.data-v-17a44f9d {
|
||||
font-size: 26rpx;
|
||||
margin-left: 20rpx;
|
||||
align-self: center;
|
||||
}
|
||||
.order-inner .footer.data-v-17a44f9d {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -11,7 +11,6 @@ const CLOSED_EVENT = "closed";
|
||||
const FOCUS_EVENT = "focus";
|
||||
const BLUR_EVENT = "blur";
|
||||
const CONFIRM_EVENT = "confirm";
|
||||
const SEARCH_EVENT = "search";
|
||||
const CLEAR_EVENT = "clear";
|
||||
const CANCEL_EVENT = "cancel";
|
||||
exports.BLUR_EVENT = BLUR_EVENT;
|
||||
@@ -26,7 +25,6 @@ exports.FOCUS_EVENT = FOCUS_EVENT;
|
||||
exports.INPUT_EVENT = INPUT_EVENT;
|
||||
exports.OPENED_EVENT = OPENED_EVENT;
|
||||
exports.OPEN_EVENT = OPEN_EVENT;
|
||||
exports.SEARCH_EVENT = SEARCH_EVENT;
|
||||
exports.UPDATE_MODEL_EVENT = UPDATE_MODEL_EVENT;
|
||||
exports.UPDATE_VISIBLE_EVENT = UPDATE_VISIBLE_EVENT;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/nutui-uni/components/_constants/event.js.map
|
||||
|
||||
@@ -1,28 +1,2 @@
|
||||
"use strict";
|
||||
const uni_modules_nutuiUni_components__utils_is = require("./is.js");
|
||||
function funInterceptor(interceptor, {
|
||||
args = [],
|
||||
done,
|
||||
canceled
|
||||
}) {
|
||||
if (interceptor) {
|
||||
const returnVal = interceptor(null, ...args);
|
||||
if (uni_modules_nutuiUni_components__utils_is.isPromise(returnVal)) {
|
||||
returnVal.then((value) => {
|
||||
if (value)
|
||||
done(value);
|
||||
else if (canceled)
|
||||
canceled();
|
||||
}).catch(() => {
|
||||
});
|
||||
} else if (returnVal) {
|
||||
done();
|
||||
} else if (canceled) {
|
||||
canceled();
|
||||
}
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
}
|
||||
exports.funInterceptor = funInterceptor;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/nutui-uni/components/_utils/interceptor.js.map
|
||||
|
||||
@@ -8,12 +8,6 @@ const nullableBooleanProp = {
|
||||
type: Boolean,
|
||||
default: void 0
|
||||
};
|
||||
function makeRequiredProp(type) {
|
||||
return {
|
||||
type,
|
||||
required: true
|
||||
};
|
||||
}
|
||||
function makeArrayProp(defaultVal = []) {
|
||||
return {
|
||||
type: Array,
|
||||
@@ -65,9 +59,7 @@ exports.makeArrayProp = makeArrayProp;
|
||||
exports.makeNumberProp = makeNumberProp;
|
||||
exports.makeNumericProp = makeNumericProp;
|
||||
exports.makeObjectProp = makeObjectProp;
|
||||
exports.makeRequiredProp = makeRequiredProp;
|
||||
exports.makeStringProp = makeStringProp;
|
||||
exports.nullableBooleanProp = nullableBooleanProp;
|
||||
exports.numericProp = numericProp;
|
||||
exports.truthProp = truthProp;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/nutui-uni/components/_utils/props.js.map
|
||||
|
||||
Reference in New Issue
Block a user