Browse Source

平安榆山页面样式修改

feature/style
liushaowen 5 years ago
parent
commit
5984870001
  1. 1
      epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss
  2. 10
      epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.js
  3. 9
      epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxml
  4. 12
      epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxss
  5. BIN
      epdc-resident-mp-yushan/subpages/safety/images/consult.png
  6. BIN
      epdc-resident-mp-yushan/subpages/safety/images/minjing-arrow.png
  7. BIN
      epdc-resident-mp-yushan/subpages/safety/images/minjing.png
  8. BIN
      epdc-resident-mp-yushan/subpages/safety/images/pingan-arrow.png
  9. BIN
      epdc-resident-mp-yushan/subpages/safety/images/pingan.png
  10. BIN
      epdc-resident-mp-yushan/subpages/safety/images/tongbao-arrow.png
  11. BIN
      epdc-resident-mp-yushan/subpages/safety/images/tongbao.png

1
epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss

@ -1,6 +1,5 @@
.sudoku { .sudoku {
background:#fff; background:#fff;
margin-top: 20rpx;
} }
.content { .content {
width: 100%; width: 100%;

10
epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.js

@ -9,15 +9,25 @@ Component({
}, },
}, },
data:{ data:{
currentIndex:0
}, },
methods: { methods: {
showMyPolice(){ showMyPolice(){
this.setData({
currentIndex:0
})
this.triggerEvent('showMyPolice') this.triggerEvent('showMyPolice')
}, },
showPrecaution(){ showPrecaution(){
this.setData({
currentIndex:1
})
this.triggerEvent('showPrecaution') this.triggerEvent('showPrecaution')
}, },
showAnnouncement(){ showAnnouncement(){
this.setData({
currentIndex:2
})
this.triggerEvent('showAnnouncement') this.triggerEvent('showAnnouncement')
} }
} }

9
epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxml

@ -2,13 +2,16 @@
<view class="sudoku"> <view class="sudoku">
<view class="content"> <view class="content">
<view class="item" hover-stay-time="150" bindtap="showMyPolice"> <view class="item" hover-stay-time="150" bindtap="showMyPolice">
<image src="../../images/minjing.png" /> <image src="../../images/minjing.png" class="image" />
<image src="../../images/minjing-arrow.png" class="arrow" wx:if="{{currentIndex===0}}"></image>
</view> </view>
<view class="item" hover-stay-time="150" bindtap="showPrecaution"> <view class="item" hover-stay-time="150" bindtap="showPrecaution">
<image src="../../images/pingan.png" /> <image src="../../images/pingan.png" class="image"/>
<image src="../../images/pingan-arrow.png" class="arrow" wx:if="{{currentIndex===1}}"></image>
</view> </view>
<view class="item" hover-stay-time="150" bindtap="showAnnouncement"> <view class="item" hover-stay-time="150" bindtap="showAnnouncement">
<image src="../../images/tongbao.png" /> <image src="../../images/tongbao.png" class="image"/>
<image src="../../images/tongbao-arrow.png" class="arrow" wx:if="{{currentIndex===2}}"></image>
</view> </view>
</view> </view>
</view> </view>

12
epdc-resident-mp-yushan/subpages/safety/components/sudoku/sudoku.wxss

@ -7,7 +7,7 @@
width: 100%; width: 100%;
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 215rpx; grid-template-rows: 150rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.item { .item {
@ -16,9 +16,9 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.item image { .item .image {
width:220rpx; width:220rpx;
height:130rpx; height:90rpx;
} }
.item .name { .item .name {
font-size: 28rpx; font-size: 28rpx;
@ -109,3 +109,9 @@
margin-top: 200rpx; margin-top: 200rpx;
text-align: center; text-align: center;
} }
.arrow{
width: 32rpx;
height: 14rpx;
margin-top: 50rpx;
position: absolute;
}

BIN
epdc-resident-mp-yushan/subpages/safety/images/consult.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 78 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/minjing-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

BIN
epdc-resident-mp-yushan/subpages/safety/images/minjing.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 17 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/pingan-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

BIN
epdc-resident-mp-yushan/subpages/safety/images/pingan.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 18 KiB

BIN
epdc-resident-mp-yushan/subpages/safety/images/tongbao-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

BIN
epdc-resident-mp-yushan/subpages/safety/images/tongbao.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Loading…
Cancel
Save