forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-09 2e4d56e2ed95cb0f336522216fedc37167fb446d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!-- 首页 -->
<wxs module="wxs" src="../../utils/wxs/util.wxs" />
 
<page-meta page-style="{{ popupMsg.show ? 'overflow: hidden;' : '' }}" />
 
 
<!-- 幻灯片 -->
<view class="homePage-main">
  <swiper autoplay="{{ true }}" class="swiper" indicator-dots="{{ true }}">
    <swiper-item wx:for="{{ banner }}" wx:key="index">
      <image class="swiper-item" src="{{ item }}" />
    </swiper-item>
  </swiper>
  <view class="main">
    <view class="mediate">
      <view>你好,{{userInfo.trueName||'游客'}}</view>
      <view bindtap="_handleGoPage" data-url="../../pages/me/index" wx:if="{{userInfo.realStatus===1}}" class="public-color">个人中心</view>
      <view wx:else bindtap="handleNavigateTo" data-url="../../pages/realNameAuthentication/index" data-type="register" class="public-color">实名认证</view>
    </view>
    <!-- 服务申请 -->
    <view>
      <view class="main_title">服务申请</view>
      <view class="flex">
        <view bindtap="handleNavigateTo" data-url="../../pages/register/index" data-type="register" class="flex_1 flex_blue">
          <view>
            <view class="main_subTitle">反映诉求</view>
            <!-- <view>轻松来访</view> -->
          </view>
          <image class="home-image" src="{{imgUrl}}home_3.png" mode="" />
        </view>
        <view bindtap="handleNavigateTo" data-url="../../pages/myRegisterList/index" data-type="register" class="flex_1 flex_orange">
          <view>
            <view class="main_subTitle">进度查询</view>
            <!-- <view>申请进度查询</view> -->
          </view>
          <image class="home-image" src="{{imgUrl}}home_4.png" mode="" />
        </view>
      </view>
      <!-- <view class="flex marginTop_12">
        <view class="flex_1 flex_green">
          <view class="main_subTitle">事项咨询</view>
          <view>解决您身边的问题</view>
        </view>
      </view> -->
    </view>
    <!-- 化解资源 -->
    <view>
      <view class="main_title">化解资源</view>
      <view class="flex" style="gap:16rpx">
        <view class="flex_2" bindtap="_handleGoPage" data-url="../../pages/ssimList/index">
          <image class="flex_2_image" src="{{imgUrl}}home_1.png" mode="" />
          <view>
            <view class="flex_zy_title">综治中心</view>
            <view class="flex_num">{{countUnitData.zzUnitNum||0}}</view>
          </view>
        </view>
        <view class="flex_2" bindtap="_handleGoPage" data-url="../../pages/organizeList/index">
          <image class="flex_2_image1" src="{{imgUrl}}home_2.png" mode="" />
          <view>
            <view class="flex_zy_title">调解组织</view>
            <view class="flex_num">{{countUnitData.tzUnitNum||0}}</view>
          </view>
        </view>
      </view>
    </view>
 
    <!-- 咨询动态 -->
    <view>
      <view class="flex_dt">
        <view class="main_title">咨询动态</view>
        <view bindtap="handleGetMore" data-type="newMsg" wx:if="{{ newMessageMore }}" class=" flex_dt_more">
          <text>查看更多</text>
          <van-icon name="arrow" size="16" />
        </view>
      </view>
      <view class="dt_card" bindtap="goSeeMessage" wx:for="{{ newMessage }}" style="margin-top:{{index===0?0:'8px'}}" wx:key="index">
        <view class="dt_card_l">
          <view class="dt_card_title">{{item.title}}</view>
          <view class="dt_card_time">
            <time-format format="YYYY-MM-DD" value="{{ item.pushTime }}" /> {{item.playNum}}人阅读
          </view>
        </view>
        <view class="dt_card_r">
          <image src="{{item.showUrl}}" mode="" />
        </view>
      </view>
    </view>
  </view>
 
</view>
 
 
<!-- 底部弹窗 -->
<block wx:for="{{ popupMsg }}" wx:key="index">
  <van-popup bind:close="handleClosePopupMsg" closeable data-index="{{ index }}" position="bottom" round show="{{ item.show }}" title="{{ item.title || '' }}" zIndex="1000">
    <view class="homePage-popupMsg">
      <view class="homePage-popupMsg-subTitle" wx:if="{{ item.subTitle }}">{{ item.subTitle }}</view>
      <image class="homePage-popupMsg-realNamePng" src="{{ imgUrl }}msg-realName.png" wx:if="{{ item.type === 1 }}" />
      <scroll-view scroll-y="{{true}}" style="max-height:600rpx" wx:elif="{{ item.type === 3 }}">
        <view bind:tap="handleClickPopupMsg" class="homePage-popupMsg-content-item" data-index="{{ index }}" data-item="{{ item }}" data-t="{{ t }}" data-type="more" wx:for="{{ item.content }}" wx:for-index="t" wx:for-item="x" wx:key="t">
          <image class="homePage-popupMsg-content-itemImg" src="{{ imgUrl }}msg-order.png" />
          <view class="homePage-popupMsg-content-itemTitle second-font">
            <view>
              预约事项:{{ x.meetWayName }}
              <text class="tag tag-green-border" style="margin-left:16rpx">{{x.meetTypeName}}</text>
            </view>
            <view>
              预约时间:今天
              <time-format format="HH:mm" value="{{ x.orderStartTime }}" />
              <text>~</text>
              <time-format format="HH:mm" value="{{ x.orderEndTime }}" />
            </view>
            <view>预约地点:{{ x.meetAddr || '-' }}</view>
          </view>
          <van-icon name="arrow" size="16" wx:if="{{ item.content.length > 1 }}" />
        </view>
      </scroll-view>
      <scroll-view scroll-y="{{true}}" style="max-height:600rpx" wx:else>
        <view bind:tap="handleClickPopupMsg" class="homePage-popupMsg-content-item" data-index="{{ index }}" data-item="{{ item }}" data-t="{{ t }}" data-type="more" wx:for="{{ item.content }}" wx:for-index="t" wx:for-item="x" wx:key="t">
          <image class="homePage-popupMsg-content-itemImg" src="{{ imgUrl }}msg-mediate-ing.png" />
          <view class="homePage-popupMsg-content-itemTitle">
            <view>{{ x[ item.type === 2 ? 'caseTitle' : 'judicTitle' ] || '-' }}</view>
            <text class="tag tag-orange">进行中</text>
          </view>
          <van-icon name="arrow" size="16" wx:if="{{ item.content.length > 1 }}" />
        </view>
      </scroll-view>
    </view>
    <view class="homePage-popupMsg-button" wx:if="{{ item.type === 1 || item.content.length === 1 }}">
      <van-button bind:click="handleClickPopupMsg" block data-index="{{ index }}" data-t="0" data-item="{{ item }}" type="primary">{{ item.buttonText }}</van-button>
    </view>
  </van-popup>
</block>