146 lines
3.6 KiB
JavaScript
146 lines
3.6 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
navH: common_vendor.inject("navHeight"),
|
|
contentTop: "",
|
|
activeIndex: 0,
|
|
bkList: [
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
},
|
|
{
|
|
title: "存储芯片",
|
|
count: 8
|
|
}
|
|
],
|
|
bkFilters: [
|
|
"按涨幅",
|
|
"按连板数",
|
|
"只看龙头"
|
|
],
|
|
filterIndex: 0
|
|
};
|
|
},
|
|
onLoad(e) {
|
|
this.activeIndex = e.index;
|
|
this.contentTop = this.navH + 20 / 750 * common_vendor.inject("windowWidth");
|
|
},
|
|
methods: {}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
|
|
_easycom_navBar2();
|
|
}
|
|
const _easycom_navBar = () => "../../components/navBar/navBar.js";
|
|
if (!Math) {
|
|
_easycom_navBar();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.p({
|
|
leftText: "板块异动明细",
|
|
hideNavBg: true
|
|
}),
|
|
b: common_assets._imports_0,
|
|
c: common_vendor.f($data.bkList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item.title),
|
|
b: "tab-" + index,
|
|
c: common_vendor.o(($event) => $data.activeIndex = index, index),
|
|
d: index,
|
|
e: $data.activeIndex == index ? "#2B2B2B" : "#999999",
|
|
f: $data.activeIndex == index ? "1rpx solid #F2C369" : "none",
|
|
g: $data.activeIndex == index ? "28rpx" : "26rpx"
|
|
};
|
|
}),
|
|
d: "tab-" + $data.activeIndex,
|
|
e: common_vendor.f($data.bkFilters, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item),
|
|
b: common_vendor.o(($event) => $data.filterIndex = index, index),
|
|
c: $data.filterIndex == index ? "#070707" : "#939393",
|
|
d: $data.filterIndex == index ? "1rpx solid #F2C369" : "1rpx solid #E5E5E5",
|
|
e: $data.filterIndex == index ? "#F2C369" : "#fff",
|
|
f: index
|
|
};
|
|
}),
|
|
f: common_vendor.f(["名称", "涨幅", "连板", "板块"], (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item),
|
|
b: index,
|
|
c: index == 0 ? "left" : "center"
|
|
};
|
|
}),
|
|
g: common_vendor.f(30, (item, index, i0) => {
|
|
return {
|
|
a: index % 2 == 0 ? "#fff" : "#FAFAFC"
|
|
};
|
|
}),
|
|
h: common_assets._imports_1$10,
|
|
i: common_vendor.s("top:" + $data.contentTop + "px;")
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesStock/stockCenterDetails/bkydmx.js.map
|