191 lines
6.2 KiB
JavaScript
191 lines
6.2 KiB
JavaScript
"use strict";
|
||
const common_vendor = require("../../../common/vendor.js");
|
||
const common_assets = require("../../../common/assets.js");
|
||
const components_public_eventBus = require("../../../components/public/event-bus.js");
|
||
if (!Array) {
|
||
const _easycom_uni_file_picker2 = common_vendor.resolveComponent("uni-file-picker");
|
||
const _easycom_uni_forms_item2 = common_vendor.resolveComponent("uni-forms-item");
|
||
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
|
||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||
const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
|
||
(_easycom_uni_file_picker2 + _easycom_uni_forms_item2 + _easycom_uni_easyinput2 + _easycom_uni_icons2 + _easycom_uni_forms2)();
|
||
}
|
||
const _easycom_uni_file_picker = () => "../../../uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js";
|
||
const _easycom_uni_forms_item = () => "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.js";
|
||
const _easycom_uni_easyinput = () => "../../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
||
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||
const _easycom_uni_forms = () => "../../../uni_modules/uni-forms/components/uni-forms/uni-forms.js";
|
||
if (!Math) {
|
||
(_easycom_uni_file_picker + _easycom_uni_forms_item + _easycom_uni_easyinput + _easycom_uni_icons + common_vendor.unref(JyPopup) + _easycom_uni_forms + common_vendor.unref(JyBottomBtn))();
|
||
}
|
||
const JyBottomBtn = () => "../../../components/public/jy-bottom-button/index.js";
|
||
const JyPopup = () => "../../../components/public/jy-popup/index.js";
|
||
const _sfc_main = {
|
||
__name: "index",
|
||
setup(__props) {
|
||
const { checkLink } = common_vendor.inject("util");
|
||
common_vendor.onMounted(() => {
|
||
components_public_eventBus.eventBus.on("business-operator", businessOperator);
|
||
});
|
||
common_vendor.onUnmounted(() => {
|
||
components_public_eventBus.eventBus.off("business-operator");
|
||
});
|
||
const businessOperator = (value) => {
|
||
console.log("====================================");
|
||
console.log(value);
|
||
console.log("====================================");
|
||
};
|
||
const category = common_vendor.ref(null);
|
||
const paramsData = common_vendor.reactive({
|
||
name: ""
|
||
});
|
||
const paramsDeliveryData = common_vendor.reactive({
|
||
name: ""
|
||
});
|
||
const postApi = () => {
|
||
common_vendor.index.showToast({
|
||
title: "发布成功",
|
||
icon: "none"
|
||
});
|
||
};
|
||
const addSpecifications = () => {
|
||
checkLink("pages/merchant/specifications/index");
|
||
};
|
||
return (_ctx, _cache) => {
|
||
return {
|
||
a: common_assets.shopUploadImage,
|
||
b: common_vendor.p({
|
||
imageStyles: {
|
||
width: "150rpx",
|
||
height: "150rpx"
|
||
},
|
||
limit: "9"
|
||
}),
|
||
c: common_vendor.p({
|
||
label: "商品图片",
|
||
name: "name"
|
||
}),
|
||
d: common_vendor.p({
|
||
type: "textarea",
|
||
autoHeight: true,
|
||
inputBorder: false,
|
||
maxlength: "30",
|
||
placeholder: "最多输入60字符(30个汉字)"
|
||
}),
|
||
e: common_vendor.p({
|
||
labelPosition: "top",
|
||
label: "商品标题",
|
||
name: "name"
|
||
}),
|
||
f: common_vendor.p({
|
||
color: "#d8d8d8",
|
||
type: "arrowright",
|
||
size: "18"
|
||
}),
|
||
g: common_vendor.o$1(($event) => category.value.open()),
|
||
h: common_vendor.f(10, (item, k0, i0) => {
|
||
return {
|
||
a: common_vendor.t(item),
|
||
b: common_vendor.o$1(($event) => _ctx.selectReason(item))
|
||
};
|
||
}),
|
||
i: common_vendor.sr(category, "eb0dc272-7,eb0dc272-5", {
|
||
"k": "category"
|
||
}),
|
||
j: common_vendor.p({
|
||
title: "请选择申请原因",
|
||
showSave: false
|
||
}),
|
||
k: common_vendor.p({
|
||
label: "类目",
|
||
name: "name"
|
||
}),
|
||
l: common_vendor.o$1(addSpecifications),
|
||
m: common_vendor.p({
|
||
label: "规格",
|
||
name: "name"
|
||
}),
|
||
n: common_vendor.p({
|
||
type: "number",
|
||
inputBorder: false,
|
||
placeholder: "¥0.00"
|
||
}),
|
||
o: common_vendor.p({
|
||
label: "价格",
|
||
name: "name"
|
||
}),
|
||
p: common_vendor.p({
|
||
type: "number",
|
||
inputBorder: false,
|
||
placeholder: "输入库存"
|
||
}),
|
||
q: common_vendor.p({
|
||
label: "库存",
|
||
name: "name"
|
||
}),
|
||
r: common_vendor.p({
|
||
color: "#d8d8d8",
|
||
type: "arrowright",
|
||
size: "18"
|
||
}),
|
||
s: common_vendor.p({
|
||
type: "text",
|
||
inputBorder: false,
|
||
placeholder: "输入时间"
|
||
}),
|
||
t: common_vendor.p({
|
||
label: "发货时间",
|
||
name: "name"
|
||
}),
|
||
v: common_vendor.p({
|
||
type: "text",
|
||
inputBorder: false,
|
||
placeholder: "输入运费"
|
||
}),
|
||
w: common_vendor.p({
|
||
label: "运费",
|
||
name: "name"
|
||
}),
|
||
x: common_vendor.p({
|
||
type: "text",
|
||
inputBorder: false,
|
||
placeholder: "输入省,市,区"
|
||
}),
|
||
y: common_vendor.p({
|
||
label: "所在地",
|
||
name: "name"
|
||
}),
|
||
z: common_vendor.p({
|
||
modelValue: paramsDeliveryData
|
||
}),
|
||
A: common_vendor.sr(category, "eb0dc272-15,eb0dc272-13", {
|
||
"k": "category"
|
||
}),
|
||
B: common_vendor.p({
|
||
title: "发货",
|
||
showSave: false
|
||
}),
|
||
C: common_vendor.p({
|
||
label: "发货",
|
||
name: "name"
|
||
}),
|
||
D: common_assets._imports_1,
|
||
E: common_vendor.p({
|
||
color: "#d8d8d8",
|
||
type: "arrowright",
|
||
size: "18"
|
||
}),
|
||
F: common_vendor.p({
|
||
name: "name"
|
||
}),
|
||
G: common_vendor.p({
|
||
modelValue: paramsData
|
||
}),
|
||
H: common_vendor.o$1(postApi)
|
||
};
|
||
};
|
||
}
|
||
};
|
||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eb0dc272"]]);
|
||
wx.createPage(MiniProgramPage);
|