Browse Source

(*) 近七天发现问题跳转&banner增加标题展示

master
liujiangyong 12 months ago
parent
commit
d3eb99a82e
  1. 5
      weapp/pages/home/home.js
  2. 3
      weapp/pages/home/home.wxml
  3. 10
      weapp/pages/home/home.wxss

5
weapp/pages/home/home.js

@ -10,6 +10,11 @@ Page({
url: `/package/subSystem/subSystem?key=${key}`, url: `/package/subSystem/subSystem?key=${key}`,
}) })
}, },
jumpToRiskCalendar () {
wx.navigateTo({
url: `/package/riskManagement/riskCalendar/riskCalendar`,
})
},
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */

3
weapp/pages/home/home.wxml

@ -3,6 +3,7 @@
<view style="overflow: auto; padding: 0 15px;"> <view style="overflow: auto; padding: 0 15px;">
<!--轮播图--> <!--轮播图-->
<view class="card"> <view class="card">
<view class="absolute-header">河州路智慧管廊 数字化智能运维</view>
<swiper indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}"> <swiper indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
<block wx:for-items="{{swiperData}}" wx:key="*this"> <block wx:for-items="{{swiperData}}" wx:key="*this">
<swiper-item> <swiper-item>
@ -32,7 +33,7 @@
</view> </view>
</view> </view>
<view style="display: flex; justify-content: space-around;"> <view style="display: flex; justify-content: space-around;">
<view class="flex" style="padding-left:10px ;"> <view class="flex" style="padding-left:10px;" bindtap="jumpToRiskCalendar">
<view style="margin:10px 0px;" class="only">发现问题个数</view> <view style="margin:10px 0px;" class="only">发现问题个数</view>
<view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysQuestionCount}}</text></view> <view style="margin:10px 0px;"><text class="fontStyle">{{sevenDaysQuestionCount}}</text></view>
<view style="margin:10px 0px;" class="only">个</view> <view style="margin:10px 0px;" class="only">个</view>

10
weapp/pages/home/home.wxss

@ -15,7 +15,17 @@
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 12px; margin-top: 12px;
margin-bottom: 12px; margin-bottom: 12px;
position: relative;
}
.absolute-header {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
color: #fff;
text-align: center;
} }
.card2 { .card2 {

Loading…
Cancel
Save