105 lines
3.4 KiB
JavaScript
105 lines
3.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
scenes: [
|
|
{
|
|
id: "meeting",
|
|
title: "会议场景",
|
|
desc: "会议总结",
|
|
icon: "calendar",
|
|
color: "#2A68FF",
|
|
navItems: [
|
|
{ title: "总结", path: "/pages/meeting_summary/meeting_summary" }
|
|
]
|
|
},
|
|
{
|
|
id: "general_sales",
|
|
title: "通用销售场景",
|
|
desc: "通用销售场景功能",
|
|
icon: "grid",
|
|
color: "#4ECDC4",
|
|
navItems: [
|
|
{ title: "销售准备", path: "/pages/general_sales/prepare/prepare" },
|
|
{ title: "销售过程", path: "/pages/general_sales/process/process" },
|
|
{ title: "销售总结", path: "/pages/general_sales/summary/summary" }
|
|
]
|
|
},
|
|
{
|
|
id: "furniture_sales",
|
|
title: "家具销售场景",
|
|
desc: "家具销售场景功能",
|
|
icon: "list",
|
|
color: "#FFA07A",
|
|
navItems: [
|
|
{ title: "销售准备", path: "/pages/furniture_sales/prepare/prepare" },
|
|
{ title: "销售过程", path: "/pages/furniture_sales/process/process" },
|
|
{ title: "销售总结", path: "/pages/furniture_sales/summary/summary" }
|
|
]
|
|
},
|
|
{
|
|
id: "car_sales",
|
|
title: "汽车销售场景",
|
|
desc: "汽车销售场景功能",
|
|
icon: "settings",
|
|
color: "#95E1D3",
|
|
navItems: [
|
|
{ title: "销售准备", path: "/pages/car_sales/prepare/prepare" },
|
|
{ title: "销售过程", path: "/pages/car_sales/process/process" },
|
|
{ title: "销售总结", path: "/pages/car_sales/summary/summary" }
|
|
]
|
|
}
|
|
]
|
|
};
|
|
},
|
|
onLoad() {
|
|
},
|
|
methods: {
|
|
navigateToScene(scene) {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages-subpackage/workspace/scene-detail?scene=${encodeURIComponent(JSON.stringify(scene))}`
|
|
});
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar");
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
(_easycom_uni_nav_bar2 + _easycom_uni_icons2)();
|
|
}
|
|
const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";
|
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
if (!Math) {
|
|
(_easycom_uni_nav_bar + _easycom_uni_icons)();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.p({
|
|
fixed: true,
|
|
statusBar: true,
|
|
border: false,
|
|
title: "工作台",
|
|
color: "#333",
|
|
backgroundColor: "#FFFFFF"
|
|
}),
|
|
b: common_vendor.f($data.scenes, (scene, k0, i0) => {
|
|
return {
|
|
a: "9fd0b295-1-" + i0,
|
|
b: common_vendor.p({
|
|
type: scene.icon,
|
|
size: "40",
|
|
color: scene.color
|
|
}),
|
|
c: common_vendor.t(scene.title),
|
|
d: common_vendor.t(scene.desc),
|
|
e: scene.id,
|
|
f: common_vendor.o(($event) => $options.navigateToScene(scene), scene.id)
|
|
};
|
|
})
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9fd0b295"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages-subpackage/workspace/workspace.js.map
|