7.10 增加登录页面,事件详情接口对接,我的点赞,关注收藏页面搭建,接口对接
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/invest/invest.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/invest.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/mp-weixin/pages/invest/invest.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/pages/invest/invest.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"zui-progress-circle": "../../uni_modules/zui-progress-circle/components/zui-progress-circle/zui-progress-circle"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/invest/invest.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/invest.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">投资</view><view class="searchC fixed flex" style="{{d}}"><image class="icon" src="{{c}}" mode="widthFix"></image><input class="flex1" type="text" placeholder="搜索话题/股票名称" placeholder-style="color:#94989A"/><view class="line"></view><view class="search">搜索</view></view><view class="contentC fixed" style="{{A}}"><view class=""><view class="todayC flex"><view class="todayDateC flex" bindtap="{{g}}"><view class="date">{{e}}</view><image class="icon" src="{{f}}" mode="widthFix"></image></view><view class="flex1"></view><view class="today" bindtap="{{h}}">今</view></view><view class="weekList flex"><view wx:for="{{i}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view wx:if="{{j}}" class="monthDateList flexWrap"><view wx:for="{{k}}" wx:for-item="item" wx:key="o" class="item flexColumnCenter" bindtap="{{item.p}}"><block wx:if="{{l}}"><view wx:if="{{item.a}}" class="date today">{{item.b}}</view><view wx:else class="date">{{item.c}}</view></block><block wx:else><view class="{{item.e}}">{{item.d}}</view></block><block wx:if="{{item.f}}"><view wx:if="{{item.g}}" class="eventNum danger">{{item.h}}</view><view wx:if="{{item.i}}" class="eventNum warning">{{item.j}}</view><view wx:if="{{item.k}}" class="eventNum info">{{item.l}}</view><view wx:if="{{item.m}}" class="eventNum success">{{item.n}}</view></block><block wx:else><view class="eventNum"></view></block></view></view><view wx:else class="weekDateList flex"><view wx:for="{{m}}" wx:for-item="item" wx:key="p" class="item flex1 flexColumnCenter" bindtap="{{item.o}}"><block wx:if="{{n}}"><view wx:if="{{item.a}}" class="date today">{{item.b}}</view><view wx:else class="date">{{item.c}}</view></block><block wx:else><view class="{{item.e}}">{{item.d}}</view></block><block wx:if="{{item.f}}"><view wx:if="{{item.g}}" class="eventNum danger">{{item.h}}</view><view wx:if="{{item.i}}" class="eventNum warning">{{item.j}}</view><view wx:if="{{item.k}}" class="eventNum info">{{item.l}}</view><view wx:if="{{item.m}}" class="eventNum success">{{item.n}}</view></block><block wx:else><view class="eventNum"></view></block></view></view><view class="expandBgC flexCenter"><view class="expandC flex" bindtap="{{q}}"><text>{{o}}</text><image class="arrow" src="{{p}}" mode="widthFix"></image></view></view></view><view class="tabC"><view wx:for="{{r}}" wx:for-item="item" wx:key="c" class="{{item.b}}" bindtap="{{item.d}}">{{item.a}}</view></view><scroll-view scroll-x class="topCategoryC"><view wx:for="{{s}}" 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></scroll-view><view wx:if="{{t}}" class="eventList"><view wx:for="{{v}}" wx:for-item="item" wx:key="h" class="item" bindtap="{{item.i}}"><view class="flex"><view class="time flex1">{{item.a}}</view><view class="starC relative"><view class="starList flex"><image wx:for="{{item.b}}" wx:for-item="sitem" wx:key="c" class="icon" src="{{sitem.a}}" mode="widthFix"></image></view></view></view><view class="categoryTitleC flex"><view class="category">宏观政策</view><view class="title flex1">{{item.d}}</view></view><view class="labelC"><view class="label"></view></view><view class="content"><text>{{item.e}}</text></view><scroll-view wx:if="{{item.f}}" scroll-x class="percentList"><view wx:for="{{item.g}}" wx:for-item="citem" wx:key="e" class="percentItem">{{citem.a}} <zui-progress-circle wx:if="{{citem.d}}" u-s="{{['d']}}" u-i="{{citem.c}}" bind:__l="__l" u-p="{{citem.d}}"><view class="num">{{citem.b}}%</view></zui-progress-circle></view></scroll-view></view></view><view wx:if="{{w}}" class="dataList"><view wx:for="{{x}}" wx:for-item="item" wx:key="e" class="item"><view class="flex"><view class="time flex1">{{item.a}}</view><view class="starC relative"><view class="starBgList flex"><image wx:for="{{item.b}}" wx:for-item="item" wx:key="a" class="icon" src="{{y}}" mode="widthFix"></image></view><view class="starList absolute flex"><image wx:for="{{item.c}}" wx:for-item="item" wx:key="a" class="icon" src="{{z}}" mode="widthFix"></image></view></view></view><view class="title">{{item.d}}</view><view class="valueList flex between"><view class="pre">前值 -7.1</view><view class="prediction">预测 93</view><view class="actual">实际 ————</view></view></view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/invest/invest.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/invest/invest.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
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