ownerDetail.js
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_navbar2 = common_vendor.resolveComponent("up-navbar");
_easycom_up_navbar2();
}
const _easycom_up_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_up_navbar + navTop + ownerInfo + commentCard)();
}
const navTop = () => "../../components/navTop.js";
const ownerInfo = () => "../../components/ownerInfo.js";
const commentCard = () => "../../components/commentCard.js";
const _sfc_main = {
__name: "ownerDetail",
setup(__props) {
common_vendor.useCssVars((_ctx) => ({
"43345472": leftWidth.value
}));
const current = common_vendor.ref(0);
const navList = common_vendor.ref([
{ id: 1, title: "进度汇报" },
{ id: 2, title: "转单" },
{ id: 3, title: "办结" }
]);
const titleStyle = {
fontSize: "36rpx",
color: "#fff",
fontWeight: 500
};
const leftWidth = common_vendor.ref(0);
const toggle = (index) => {
leftWidth.value = `${index * 230}rpx`;
current.value = index;
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
placeholder: true,
title: "车主详情",
autoBack: true,
leftIconColor: "#fff",
titleStyle,
bgColor: "transparent"
}),
b: common_vendor.f(navList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: item.id,
c: current.value === index ? 1 : "",
d: common_vendor.o(($event) => toggle(index), item.id)
};
}),
c: common_vendor.f(10, (scheduleItem, k0, i0) => {
return {
a: "d7b5c730-3-" + i0,
b: scheduleItem
};
}),
d: common_vendor.s(_ctx.__cssVars())
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d7b5c730"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/ownerDetail/ownerDetail.js.map