7.10 增加登录页面,事件详情接口对接,我的点赞,关注收藏页面搭建,接口对接
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../../../common/vendor.js"),e=require("../../../request/api.js"),o=require("../../../common/assets.js"),r={data:()=>({navH:t.inject("navHeight"),eventId:"",contentTop:"",categoryList:["背景","推演","实际","相关股票","相关概念"],selectCategory:0,stockCategoryList:[{title:"全部股票",bgColor:"#C00000",color:"white"},{title:"大周期",bgColor:"#305496",color:"white"},{title:"TMT板块",bgColor:"#FFBF00",color:"white"},{title:"大金融地产",bgColor:"#FFF4D3"},{title:"大消费",bgColor:"#CDEEEE"},{title:"公共产业板块",bgColor:"#DEEBF7"}]}),onLoad(){this.contentTop=this.navH+104/750*t.inject("windowWidth")},methods:{clickCategoryItem(t){this.selectCategory!=t&&(this.selectCategory=t)},getEventDetailsData(){e.investEventDetails(this.eventId).then((t=>{})).catch((t=>{}))}}};if(!Array){t.resolveComponent("navBar")()}Math;const c=t._export_sfc(r,[["render",function(e,r,c,s,a,i){return t.e({a:t.p({leftText:"详情"}),b:o._imports_0,c:t.f(a.categoryList,((e,o,r)=>t.e({a:t.t(e),b:a.selectCategory==o},(a.selectCategory,{}),{c:t.n("item relative "+(a.selectCategory==o?"select":"")),d:o,e:t.o((t=>i.clickCategoryItem(o)),o)}))),d:t.s("top:"+a.navH+"px;"),e:3==a.selectCategory},3==a.selectCategory?{f:t.f(a.stockCategoryList,((e,o,r)=>({a:t.t(e.title),b:t.s("background-color:"+e.bgColor+";color:"+e.color+";"),c:o})))}:{},{g:t.s("top:"+a.contentTop+"px;")})}]]);wx.createPage(c);
|
||||
6
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"nav-bar": "../../../components/navBar/navBar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="b7e6c0fc-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="categoryC fixed" style="{{d}}"><view wx:for="{{c}}" 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="contentC fixed" style="{{g}}"><view wx:if="{{e}}" class="stockC"><view class="stockCategoryList flexWrap"><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="item flexColumnCenter" style="{{item.b}}"><view class="num">23</view><view class="title">{{item.a}}</view></view></view><view class="stockList"><view class="item"><view class="titleCorrelationC flex"><view class="title flex1">000065.SZ 北方国际</view><view class="correlation">相关度: 98%</view></view><view class="category">石油石化</view><view class="content"> 海外订单占比70%-80%,在俄语区矿产资源开发(蒙古矿山)、电力运营经验丰富,是乌克兰重建核心受益标的。公司在俄语区的深厚积累使其直接获益于区域经济复苏和能源合作深化。 </view></view></view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/investDetails/investDetails.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.topBg{top:0;left:0;width:100%;height:auto}.categoryC{background-color:#fff;margin-top:10rpx;padding-top:20rpx;left:0;right:0;border-radius:20rpx 20rpx 0 0}.categoryC .item{display:inline-block;padding:0 30rpx;line-height:75rpx;font-size:32rpx;font-weight:500;color:#42485b}.categoryC .item.select{font-weight:700;color:#f97316}.categoryC .item.select .line{background-color:#f97316;left:calc((100% - 50rpx)/2);bottom:0;width:50rpx;height:2rpx}.contentC{background-color:#fff;left:0;right:0;bottom:0;overflow-y:scroll}.contentC .stockCategoryList{margin-top:18rpx;padding:0 24rpx}.contentC .stockCategoryList .item{margin:0 20rpx 20rpx 0;width:calc((100% - 40rpx)/3);height:100rpx;border-radius:10rpx}.contentC .stockCategoryList .item .num{font-size:36rpx;font-weight:700}.contentC .stockCategoryList .item .title{font-size:24rpx;font-weight:500}.contentC .stockCategoryList .item:nth-child(3n){margin-right:0}.contentC .stockList{padding:22rpx 25rpx 30rpx;border-bottom:solid 1rpx #E4E4E4}.contentC .stockList .item .title{font-size:30rpx;font-weight:700;color:#222}.contentC .stockList .item .correlation{background-color:rgba(249,115,22,.1);padding:0 13rpx;line-height:40rpx;border-radius:5rpx;font-size:24rpx;font-weight:500;color:#f97316}.contentC .stockList .item .category{display:inline-block;padding:0 10rpx;line-height:28rpx;border:solid 1rpx #F6604A;font-size:20rpx;font-weight:500;color:#f6604a;border-radius:5rpx}.contentC .stockList .item .content{margin-top:18rpx;font-size:24rpx;font-weight:500;color:#666;line-height:1.2rem}
|
||||
Reference in New Issue
Block a user