12.12 页面风格改版,增加事件详情相关概念网页跳转,增加绑定手机号功能
This commit is contained in:
@@ -35,7 +35,7 @@ const _sfc_main = {
|
||||
type: "cross"
|
||||
},
|
||||
formatter: function(params) {
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:74", params);
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:77", params);
|
||||
let res = "日期:" + params[0].name + "\n开盘价:" + params[0].data[1] + "\n收盘价:" + params[0].data[2] + "\n最低价:" + params[0].data[3] + "\n最高价:" + params[0].data[4];
|
||||
return res;
|
||||
}
|
||||
@@ -159,7 +159,7 @@ const _sfc_main = {
|
||||
if (e.code) {
|
||||
this.type = e.type;
|
||||
if (e.type == 1) {
|
||||
this.contentTop = this.navH + (60 + 8) / 750 * common_vendor.inject("windowWidth");
|
||||
this.contentTop = this.navH + 20 / 750 * common_vendor.inject("windowWidth");
|
||||
this.eventId = e.id;
|
||||
this.stockCode = e.code;
|
||||
this.getStockDetailsData();
|
||||
@@ -343,7 +343,8 @@ if (!Math) {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: $data.navTitle
|
||||
leftText: $data.navTitle,
|
||||
hideNavBg: true
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: $data.type == 1
|
||||
@@ -357,21 +358,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: index,
|
||||
e: common_vendor.o(($event) => $options.clickCategoryItem(index), index)
|
||||
});
|
||||
}),
|
||||
e: common_vendor.s("top:" + $data.navH + "px;")
|
||||
})
|
||||
} : {}, {
|
||||
f: $data.type == 1 && $data.tradeData
|
||||
e: $data.type == 1 && $data.tradeData
|
||||
}, $data.type == 1 && $data.tradeData ? {
|
||||
g: common_vendor.t($data.tradeData.volume),
|
||||
h: common_vendor.t($data.tradeData.amount)
|
||||
f: common_vendor.t($data.tradeData.volume),
|
||||
g: common_vendor.t($data.tradeData.amount)
|
||||
} : {}, {
|
||||
i: $data.type == 1
|
||||
h: $data.type == 1
|
||||
}, $data.type == 1 ? {
|
||||
j: common_vendor.sr("chartRef", "42054871-1")
|
||||
i: common_vendor.sr("chartRef", "42054871-1")
|
||||
} : {}, {
|
||||
k: common_vendor.t($data.relatedDesc),
|
||||
j: common_vendor.t($data.relatedDesc),
|
||||
k: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
|
||||
l: $data.type == 1 && $data.sourceList.length > 0
|
||||
}, $data.type == 1 && $data.sourceList.length > 0 ? {} : {}, {
|
||||
}, $data.type == 1 && $data.sourceList.length > 0 ? {
|
||||
m: common_vendor.f($data.sourceList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.sentences),
|
||||
@@ -380,10 +381,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.t($data.getLocalDate(item.declare_date)),
|
||||
e: index
|
||||
};
|
||||
}),
|
||||
n: common_vendor.n("contentC fixed " + ($data.type == 2 ? "radius" : "")),
|
||||
o: common_vendor.s("top:" + $data.contentTop + "px;")
|
||||
});
|
||||
})
|
||||
} : {});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="tabC fixed" style="{{e}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view class="{{n}}" style="{{o}}"><view wx:if="{{f}}" class="volumeAmountC flex"><text class="volume">成交量:{{g}}</text><text class="amount">成交金额:{{h}}</text></view><view wx:if="{{i}}" style="width:750rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{k}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view><view wx:if="{{l}}" class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{k}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><text class="volume">成交量:{{f}}</text><text class="amount">成交金额:{{g}}</text></view><view wx:if="{{h}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{j}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{l}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
@@ -1,103 +1,105 @@
|
||||
page {
|
||||
background-color: #070707;
|
||||
}
|
||||
.topBg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.tabC {
|
||||
background-color: white;
|
||||
margin-top: 10rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
.chartDesC {
|
||||
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
|
||||
margin: 0 25rpx;
|
||||
padding-top: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.tabC .item {
|
||||
.chartDesC .tabC .item {
|
||||
display: inline-block;
|
||||
padding: 0 30rpx;
|
||||
padding: 0 25rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #42485B;
|
||||
}
|
||||
.tabC .item.select {
|
||||
.chartDesC .tabC .item.select {
|
||||
font-weight: bold;
|
||||
color: #F97316;
|
||||
color: #F3C368;
|
||||
}
|
||||
.tabC .item.select .line {
|
||||
background-color: #F97316;
|
||||
.chartDesC .tabC .item.select .line {
|
||||
background-color: #F3C368;
|
||||
left: calc((100% - 50rpx)/2);
|
||||
bottom: 0;
|
||||
width: 50rpx;
|
||||
height: 2rpx;
|
||||
}
|
||||
.contentC {
|
||||
background-color: white;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow-y: scroll;
|
||||
.chartDesC .volumeAmountC {
|
||||
padding: 25rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
.contentC .volumeAmountC {
|
||||
padding: 20rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
.chartDesC .volumeAmountC .volume {
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.contentC .volumeAmountC .volume {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.contentC .section {
|
||||
padding: 0 28rpx;
|
||||
.chartDesC .section {
|
||||
padding: 0 25rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #222;
|
||||
}
|
||||
.contentC .des {
|
||||
.chartDesC .des {
|
||||
margin: 0 25rpx;
|
||||
line-height: 1.4rem;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.contentC .des .ai {
|
||||
color: #C00000;
|
||||
.chartDesC .des .ai {
|
||||
color: #EC3440;
|
||||
}
|
||||
.contentC .riskTips {
|
||||
.chartDesC .riskTips {
|
||||
margin: 20rpx 25rpx 0;
|
||||
padding-bottom: 30rpx;
|
||||
line-height: 1.4rem;
|
||||
font-size: 20rpx;
|
||||
color: #999;
|
||||
border-bottom: solid 1rpx #E4E4E4;
|
||||
line-height: 1.2rem;
|
||||
font-size: 22rpx;
|
||||
color: #A2A2A1;
|
||||
}
|
||||
.contentC .list {
|
||||
.infoSourceC .section {
|
||||
padding: 0 25rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 27rpx;
|
||||
font-weight: bold;
|
||||
color: #F3C368;
|
||||
}
|
||||
.infoSourceC .list {
|
||||
padding: 0 25rpx;
|
||||
}
|
||||
.contentC .list .item {
|
||||
background-color: #F8F8F8;
|
||||
.infoSourceC .list .item {
|
||||
background: linear-gradient(-30deg, #FFF6F0 0%, #FEFEFE 100%);
|
||||
margin-bottom: 20rpx;
|
||||
padding: 30rpx 26rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.contentC .list .item .content {
|
||||
.infoSourceC .list .item .content {
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #222;
|
||||
}
|
||||
.contentC .list .item .article {
|
||||
.infoSourceC .list .item .article {
|
||||
margin-top: 10rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
text-align: right;
|
||||
}
|
||||
.contentC .list .item .authorDateC {
|
||||
.infoSourceC .list .item .authorDateC {
|
||||
margin-top: 30rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #AAA;
|
||||
}
|
||||
.contentC .list .item .authorDateC .author {
|
||||
.infoSourceC .list .item .authorDateC .author {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.contentC.radius {
|
||||
|
||||
Reference in New Issue
Block a user