准备上传
This commit is contained in:
@@ -250,6 +250,7 @@ if (uni.restoreGlobal) {
|
||||
monthProfit: "本月利润",
|
||||
stockCount: "库存量"
|
||||
};
|
||||
const _imports_0$5 = "/static/icons/product.png";
|
||||
const _export_sfc = (sfc, props) => {
|
||||
const target = sfc.__vccOpts || sfc;
|
||||
for (const [key, val] of props) {
|
||||
@@ -443,7 +444,7 @@ if (uni.restoreGlobal) {
|
||||
},
|
||||
goDetail() {
|
||||
try {
|
||||
formatAppLog("log", "at pages/index/index.vue:259", "[index] goDetail → /pages/detail/index");
|
||||
formatAppLog("log", "at pages/index/index.vue:265", "[index] goDetail → /pages/detail/index");
|
||||
} catch (e) {
|
||||
}
|
||||
uni.switchTab({ url: "/pages/detail/index" });
|
||||
@@ -458,6 +459,17 @@ if (uni.restoreGlobal) {
|
||||
showCancel: false
|
||||
});
|
||||
},
|
||||
onPartsSearchTap() {
|
||||
try {
|
||||
uni.setStorageSync("PRODUCT_SEARCH_CONFIG", JSON.stringify({
|
||||
openTab: "search",
|
||||
mode: "template"
|
||||
}));
|
||||
} catch (e) {
|
||||
formatAppLog("error", "at pages/index/index.vue:285", "[index] 设置存储标志失败:", e);
|
||||
}
|
||||
uni.switchTab({ url: "/pages/product/list" });
|
||||
},
|
||||
onIconError(item) {
|
||||
item.img = "";
|
||||
}
|
||||
@@ -686,6 +698,20 @@ if (uni.restoreGlobal) {
|
||||
))
|
||||
]))
|
||||
]),
|
||||
vue.createCommentVNode(" 配件查询按钮 "),
|
||||
vue.createElementVNode("view", {
|
||||
class: "parts-search-btn",
|
||||
onClick: _cache[6] || (_cache[6] = (...args) => $options.onPartsSearchTap && $options.onPartsSearchTap(...args)),
|
||||
"hover-class": "parts-search-btn-active",
|
||||
"hover-stay-time": "80"
|
||||
}, [
|
||||
vue.createElementVNode("image", {
|
||||
src: _imports_0$5,
|
||||
class: "parts-search-icon",
|
||||
mode: "aspectFit"
|
||||
}),
|
||||
vue.createElementVNode("text", { class: "parts-search-text" }, "配件查询")
|
||||
]),
|
||||
vue.createCommentVNode(" 分割标题:产品与功能 "),
|
||||
vue.createElementVNode("view", { class: "section-title" }, [
|
||||
vue.createElementVNode("text", { class: "section-text" }, "常用功能")
|
||||
@@ -1790,6 +1816,21 @@ if (uni.restoreGlobal) {
|
||||
})();
|
||||
if (!hasToken)
|
||||
return;
|
||||
try {
|
||||
const configStr = uni.getStorageSync("PRODUCT_SEARCH_CONFIG");
|
||||
if (configStr) {
|
||||
const config = JSON.parse(configStr);
|
||||
if (config.openTab) {
|
||||
this.tab = config.openTab;
|
||||
}
|
||||
if (config.mode) {
|
||||
this.query.mode = config.mode;
|
||||
}
|
||||
uni.removeStorageSync("PRODUCT_SEARCH_CONFIG");
|
||||
}
|
||||
} catch (e) {
|
||||
formatAppLog("error", "at pages/product/list.vue:121", "[list] 处理查询配置失败:", e);
|
||||
}
|
||||
this.reload();
|
||||
},
|
||||
computed: {
|
||||
@@ -1924,6 +1965,9 @@ if (uni.restoreGlobal) {
|
||||
} catch (e) {
|
||||
uni.showToast({ title: "删除失败", icon: "none" });
|
||||
}
|
||||
},
|
||||
goSubmit() {
|
||||
uni.navigateTo({ url: "/pages/product/submit" });
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -2214,7 +2258,11 @@ if (uni.restoreGlobal) {
|
||||
32
|
||||
/* NEED_HYDRATION */
|
||||
),
|
||||
vue.createCommentVNode(" 保留“我的提交”页的+,此处不显示 ")
|
||||
vue.createCommentVNode(' 右下角的"+"按钮 '),
|
||||
vue.createElementVNode("view", {
|
||||
class: "fab",
|
||||
onClick: _cache[10] || (_cache[10] = (...args) => $options.goSubmit && $options.goSubmit(...args))
|
||||
}, "+")
|
||||
]);
|
||||
}
|
||||
const PagesProductList = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$q], ["__file", "C:/Users/21826/Desktop/Wj/PartsInquiry/frontend/pages/product/list.vue"]]);
|
||||
@@ -2646,10 +2694,6 @@ if (uni.restoreGlobal) {
|
||||
"scroll-y": "",
|
||||
class: "page"
|
||||
}, [
|
||||
vue.createElementVNode("view", { class: "hero" }, [
|
||||
vue.createElementVNode("text", { class: "title" }, "提交配件"),
|
||||
vue.createElementVNode("text", { class: "desc" }, "填写型号、名称、参数与图片,提交后进入待审核状态")
|
||||
]),
|
||||
vue.createElementVNode("view", { class: "section" }, [
|
||||
vue.createElementVNode("view", { class: "row required" }, [
|
||||
vue.createElementVNode("text", { class: "label" }, "型号"),
|
||||
@@ -7212,6 +7256,15 @@ if (uni.restoreGlobal) {
|
||||
this.shopName = storeName;
|
||||
const phone = (profile == null ? void 0 : profile.phone) || uni.getStorageSync("USER_MOBILE") || "";
|
||||
this.mobile = phone;
|
||||
const email = (profile == null ? void 0 : profile.email) || "";
|
||||
try {
|
||||
if (email) {
|
||||
uni.setStorageSync("USER_EMAIL", email);
|
||||
} else {
|
||||
uni.removeStorageSync("USER_EMAIL");
|
||||
}
|
||||
} catch (_) {
|
||||
}
|
||||
} catch (e) {
|
||||
try {
|
||||
const storeName = uni.getStorageSync("SHOP_NAME") || "";
|
||||
|
||||
Reference in New Issue
Block a user