1.7 去掉事件详情输入框,个股中心部分模块页面搭建
This commit is contained in:
@@ -1,7 +1,70 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {};
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
navH: common_vendor.inject("navHeight"),
|
||||
keywords: "",
|
||||
contentTop: "",
|
||||
tabList: [
|
||||
{
|
||||
title: "公司档案"
|
||||
},
|
||||
{
|
||||
title: "深度分析"
|
||||
},
|
||||
{
|
||||
title: "股票行情"
|
||||
},
|
||||
{
|
||||
title: "财务全景"
|
||||
},
|
||||
{
|
||||
title: "盈利预测"
|
||||
}
|
||||
],
|
||||
selectTab: 0,
|
||||
companyFilesList: [
|
||||
{
|
||||
title: "股权结构"
|
||||
},
|
||||
{
|
||||
title: "管理团队"
|
||||
},
|
||||
{
|
||||
title: "分支机构"
|
||||
},
|
||||
{
|
||||
title: "工商信息"
|
||||
}
|
||||
],
|
||||
selectCompanyFiles: 0
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.contentTop = this.navH + (20 + 70 + 30) / 750 * common_vendor.inject("windowWidth");
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickTabItem(index) {
|
||||
if (this.selectTab != index) {
|
||||
this.selectTab = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击选择公司档案
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickCompanyFilesItem(index) {
|
||||
if (this.selectCompanyFiles != index) {
|
||||
this.selectCompanyFiles = index;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
|
||||
_easycom_navBar2();
|
||||
@@ -10,14 +73,54 @@ const _easycom_navBar = () => "../../components/navBar/navBar.js";
|
||||
if (!Math) {
|
||||
_easycom_navBar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "平安银行(000001)",
|
||||
hideNavBg: true
|
||||
}),
|
||||
b: common_assets._imports_0
|
||||
};
|
||||
b: common_assets._imports_0,
|
||||
c: common_assets._imports_1,
|
||||
d: common_vendor.o(($event) => _ctx.clickSearch()),
|
||||
e: $data.keywords,
|
||||
f: common_vendor.o(($event) => $data.keywords = $event.detail.value),
|
||||
g: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
h: common_assets._imports_2$9,
|
||||
i: common_assets._imports_3$9,
|
||||
j: common_assets._imports_4$9,
|
||||
k: common_assets._imports_5$6,
|
||||
l: common_vendor.f($data.tabList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.n("item " + ($data.selectTab == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickTabItem(index), index)
|
||||
};
|
||||
}),
|
||||
m: $data.selectTab == 0
|
||||
}, $data.selectTab == 0 ? common_vendor.e({
|
||||
n: common_vendor.f($data.companyFilesList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.n("item " + ($data.selectCompanyFiles == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickCompanyFilesItem(index), index)
|
||||
};
|
||||
}),
|
||||
o: $data.selectCompanyFiles == 2
|
||||
}, $data.selectCompanyFiles == 2 ? {} : {}, {
|
||||
p: $data.selectCompanyFiles == 3
|
||||
}, $data.selectCompanyFiles == 3 ? {} : {}) : {}, {
|
||||
q: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
r: common_vendor.o(($event) => _ctx.sendEventComment()),
|
||||
s: _ctx.eventComment,
|
||||
t: common_vendor.o(($event) => _ctx.eventComment = $event.detail.value),
|
||||
v: common_assets._imports_6$2,
|
||||
w: common_assets._imports_7$2,
|
||||
x: common_vendor.o(($event) => _ctx.clickComment()),
|
||||
y: common_assets._imports_8$5,
|
||||
z: common_vendor.o(($event) => _ctx.clickFollow())
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
Reference in New Issue
Block a user