适配小程序代码结构
This commit is contained in:
121
unpackage/dist/dev/mp-weixin/pages/workspace/workspace.js
vendored
Normal file
121
unpackage/dist/dev/mp-weixin/pages/workspace/workspace.js
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
"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_prepare/meeting_prepare" },
|
||||
{ title: "开会", path: "/pages/meeting_meeting/meeting_meeting" },
|
||||
{ title: "总结", path: "/pages/meeting_summary/meeting_summary" }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "speaking_training",
|
||||
title: "口才培训",
|
||||
desc: "语音、表达、记录、作业",
|
||||
icon: "mic",
|
||||
color: "#FF6B6B",
|
||||
navItems: [
|
||||
{ title: "语音训练", path: "/pages/speaking_training_voice/speaking_training_voice" },
|
||||
{ title: "表达训练", path: "/pages/speaking_training_expression/speaking_training_expression" },
|
||||
{ title: "训练记录", path: "/pages/speaking_training_record/speaking_training_record" },
|
||||
{ title: "作业", path: "/pages/speaking_training_homework/speaking_training_homework" },
|
||||
{ title: "教务", path: "/pages/speaking_training_edu/speaking_training_edu" },
|
||||
{ title: "蓝牙录音设备", path: "/pages/bluetooth-recorder/bluetooth-recorder" }
|
||||
]
|
||||
},
|
||||
{
|
||||
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/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: "245b3c15-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-245b3c15"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/workspace/workspace.js.map
|
||||
Reference in New Issue
Block a user