purchase-let/unpackage/dist/dev/mp-weixin/pagesOrder/detail/detail.js

105 lines
3.8 KiB
JavaScript
Raw Normal View History

2024-04-26 18:04:56 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2024-04-27 18:02:43 +08:00
const common_assets = require("../../common/assets.js");
const dict_cancelDict = require("../../dict/cancelDict.js");
2024-04-26 18:04:56 +08:00
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
2024-04-27 18:02:43 +08:00
const _easycom_up_copy2 = common_vendor.resolveComponent("up-copy");
2024-04-26 18:04:56 +08:00
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
2024-04-27 18:02:43 +08:00
(_easycom_up_icon2 + _easycom_up_button2 + _easycom_up_copy2 + _easycom_up_popup2)();
2024-04-26 18:04:56 +08:00
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
2024-04-27 18:02:43 +08:00
const _easycom_up_copy = () => "../../uni_modules/uview-plus/components/u-copy/u-copy.js";
2024-04-26 18:04:56 +08:00
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
2024-04-27 18:02:43 +08:00
(_easycom_up_icon + _easycom_up_button + _easycom_up_copy + _easycom_up_popup + addressPopup + modal)();
2024-04-26 18:04:56 +08:00
}
2024-04-27 18:02:43 +08:00
const addressPopup = () => "../../components/addressPopup.js";
const modal = () => "../../components/modal.js";
2024-04-26 18:04:56 +08:00
const _sfc_main = {
__name: "detail",
setup(__props) {
const showCancel = common_vendor.ref(false);
2024-04-27 18:02:43 +08:00
const showAddress = common_vendor.ref(false);
const cancelType = common_vendor.ref(-1);
const submitCancel = () => {
showCancel.value = false;
console.log(cancelType.value);
common_vendor.index.showToast({
title: "取消成功",
icon: "none"
});
};
const changeAddress = (e) => {
showAddress.value = false;
console.log(e);
};
2024-04-26 18:04:56 +08:00
common_vendor.onLoad((option) => {
common_vendor.index.setNavigationBarTitle({
title: option.type == 1 ? "等待付款" : "订单详情"
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "map"
}),
2024-04-27 18:02:43 +08:00
b: common_vendor.o(($event) => showAddress.value = true),
c: common_vendor.p({
2024-04-26 18:04:56 +08:00
size: "small",
shape: "circle",
color: "#f6f6f6",
customStyle: {
color: "#666666"
}
}),
d: common_vendor.p({
2024-04-27 18:02:43 +08:00
content: "wxo13546486484784555"
}),
e: common_vendor.o(($event) => showCancel.value = true),
f: common_vendor.p({
2024-04-26 18:04:56 +08:00
color: "#20B128",
shape: "circle"
}),
2024-04-27 18:02:43 +08:00
g: common_vendor.f(common_vendor.unref(dict_cancelDict.list), (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: cancelType.value == item.value
}, cancelType.value == item.value ? {
2024-04-29 10:44:50 +08:00
c: common_assets._imports_0$1
2024-04-27 18:02:43 +08:00
} : {
2024-04-29 10:44:50 +08:00
d: common_assets._imports_1$1
2024-04-27 18:02:43 +08:00
}, {
e: item.value,
f: common_vendor.o(($event) => cancelType.value = item.value, item.value)
});
}),
h: common_vendor.o(submitCancel),
i: common_vendor.p({
color: "#20B128",
shape: "circle"
}),
j: common_vendor.o(($event) => showCancel.value = false),
k: common_vendor.p({
2024-04-26 18:04:56 +08:00
show: showCancel.value,
closeable: true,
round: "10"
2024-04-27 18:02:43 +08:00
}),
l: common_vendor.o(($event) => showAddress.value = false),
m: common_vendor.o(changeAddress),
n: common_vendor.p({
show: showAddress.value
}),
o: common_vendor.p({
show: false,
content: "您还没有添加收货地址,请点击添加"
2024-04-26 18:04:56 +08:00
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/里海数字乡村/purchase-let/pagesOrder/detail/detail.vue"]]);
wx.createPage(MiniProgramPage);