yunshangxie/unpackage/dist/dev/mp-weixin/pages/index/home.wxml

1 line
9.2 KiB
Plaintext

<view style="background-color:#EBF4F7;letter-spacing:1rpx;" class="data-v-14a6ab35"><tn-nav-bar vue-id="ffa1871e-1" isBack="{{false}}" bottomShadow="{{true}}" backgroundColor="#FFFFFF" class="data-v-14a6ab35" bind:__l="__l" vue-slots="{{['default']}}"><view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left data-v-14a6ab35"><view style="text-shadow:1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width:100%;" class="data-v-14a6ab35"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="text-align:center;font-size:36rpx;" bindtap="__e" class="data-v-14a6ab35"><text class="data-v-14a6ab35">{{HomeTitle}}</text></view></view></view></tn-nav-bar><view style="{{'padding-top:'+(vuex_custom_bar_height+'px')+';'}}" class="data-v-14a6ab35"><view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between data-v-14a6ab35" style="padding-top:30rpx;"><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/search/search']]]]]}}" class="tn-color-gray--dark data-v-14a6ab35" style="width:100%;margin:0rpx 30rpx 0 30rpx;border-radius:100rpx;padding-left:6rpx;background-color:#ffffff;" bindtap="__e"><tn-notice-bar vue-id="ffa1871e-2" list="{{searlist}}" mode="vertical" leftIconName="search" duration="{{6000}}" class="data-v-14a6ab35" bind:__l="__l"></tn-notice-bar></view><view class="tn-flex data-v-14a6ab35" style="margin:0px 30rpx;"><image style="width:35rpx;height:35rpx;" src="/static/t1.png" data-event-opts="{{[['tap',[['openUrl',['/pages/index/my_assist']]]]]}}" bindtap="__e" class="data-v-14a6ab35"></image><view style="position:relative;" class="data-v-14a6ab35"><image style="width:35rpx;height:35rpx;margin-left:40rpx;" src="/static/t2.png" data-event-opts="{{[['tap',[['openUrl',['/pages/index/my_msg']]]]]}}" bindtap="__e" class="data-v-14a6ab35"></image><tn-badge style="position:absolute;top:-20rpx;right:-20rpx;" vue-id="ffa1871e-3" backgroundColor="#E83A30" fontColor="#ffffff" class="data-v-14a6ab35" bind:__l="__l" vue-slots="{{['default']}}">9</tn-badge></view></view></view><swiper class="card-swiper data-v-14a6ab35" current="0" circular="{{true}}" duration="500" interval="8000" data-event-opts="{{[['change',[['cardSwiper',['$event']]]]]}}" bindchange="__e"><block wx:for="{{carousel_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="{{['data-v-14a6ab35',cardCur==index?'cur':'']}}"><block wx:if="{{item.type==2}}"><video style="width:100%;border-radius:15rpx;height:100%;" id="myVideo" src="{{apiImgUrl+item.image}}" controls="{{false}}" loop="{{true}}" autoplay="{{true}}" object-fit="contain" data-event-opts="{{[['error',[['videoErrorCallback',['$event']]]]]}}" binderror="__e" class="data-v-14a6ab35"></video></block><block wx:if="{{item.type==1}}"><image style="width:100%;height:100%;border-radius:15rpx;" src="{{apiImgUrl+item.image}}" mode="aspectFit" class="data-v-14a6ab35"></image></block></swiper-item></block></swiper><view class="indication data-v-14a6ab35"><block wx:for="{{carousel_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-14a6ab35"><view class="{{['spot','data-v-14a6ab35',cardCur==index?'active':'']}}"></view></block></block></view></view><view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center data-v-14a6ab35" style="padding:0px 30rpx 0rpx 30rpx;text-align:center;font-size:28rpx;"><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/tissue']]]]]}}" style="width:33%;background:linear-gradient(270deg, #3CBAEA, #6BC7F0);border-radius:16rpx;padding:25rpx 20rpx;" bindtap="__e" class="data-v-14a6ab35"><view class="data-v-14a6ab35"><image style="width:35rpx;height:35rpx;vertical-align:middle;" src="/static/c3.png" class="data-v-14a6ab35"></image></view><view style="margin-top:10rpx;" class="data-v-14a6ab35"><text style="color:#FFF;" class="data-v-14a6ab35">组织架构</text></view></view><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/service']]]]]}}" style="width:33%;background:linear-gradient(270deg, #EE7E45, #EE9657);border-radius:16rpx;padding:25rpx 20rpx;margin-left:10rpx;" bindtap="__e" class="data-v-14a6ab35"><view class="data-v-14a6ab35"><image style="width:35rpx;height:35rpx;vertical-align:middle;" src="/static/c2.png" class="data-v-14a6ab35"></image></view><view style="margin-top:10rpx;" class="data-v-14a6ab35"><text style="color:#FFF;" class="data-v-14a6ab35">协会活动</text></view></view><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/directory']]]]]}}" style="width:33%;background:linear-gradient(270deg, #45B335, #89C33D);border-radius:16rpx;padding:25rpx 20rpx;margin-left:10rpx;" bindtap="__e" class="data-v-14a6ab35"><view class="data-v-14a6ab35"><image style="width:35rpx;height:35rpx;vertical-align:middle;" src="/static/c1.png" class="data-v-14a6ab35"></image></view><view style="margin-top:10rpx;" class="data-v-14a6ab35"><text style="color:#FFF;" class="data-v-14a6ab35">通讯录</text></view></view></view><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/service']]]]]}}" class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center data-v-14a6ab35" style="padding:30rpx;" catchtap="__e"><view style="font-size:36rpx;" class="data-v-14a6ab35">协会活动</view><view style="color:#808080;" class="data-v-14a6ab35"><text class="data-v-14a6ab35">更多</text><text class="tn-icon-right data-v-14a6ab35"></text></view></view><view style="padding-bottom:30rpx;" class="data-v-14a6ab35"><block wx:if="{{$root.g0>0}}"><scroll-view style="padding:0rpx 30rpx;white-space:nowrap;" scroll-x="{{true}}" class="data-v-14a6ab35"><block wx:for="{{actList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/event_info?id='+item.id]]]]]}}" style="position:relative;display:inline-block;width:300rpx;text-align:center;background-color:#FFF;border-radius:20rpx;overflow:hidden;margin-right:20rpx;" bindtap="__e" class="data-v-14a6ab35"><view class="data-v-14a6ab35"><image style="width:350rpx;height:170rpx;" src="{{apiImgUrl+item.activity_image}}" class="data-v-14a6ab35"></image></view><view style="padding:10rpx 20rpx;font-weight:400;min-height:100rpx;" class="data-v-14a6ab35"><view class="tn-text-ellipsis-2 data-v-14a6ab35" style="text-align:left;"><text class="data-v-14a6ab35">{{item.activity_name}}</text></view></view><view style="position:absolute;top:10rpx;left:10rpx;" class="data-v-14a6ab35"><block wx:if="{{item.type=='进行中'}}"><tn-button vue-id="{{'ffa1871e-4-'+index}}" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 " fontColor="tn-color-white" class="data-v-14a6ab35" bind:__l="__l" vue-slots="{{['default']}}">进行中</tn-button></block><block wx:if="{{item.type=='未开始'}}"><tn-button vue-id="{{'ffa1871e-5-'+index}}" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 " fontColor="tn-color-white" class="data-v-14a6ab35" bind:__l="__l" vue-slots="{{['default']}}">预告</tn-button></block><block wx:if="{{item.type=='已结束'}}"><tn-button vue-id="{{'ffa1871e-6-'+index}}" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 " fontColor="tn-color-white" class="data-v-14a6ab35" bind:__l="__l" vue-slots="{{['default']}}">已结束</tn-button></block></view></view></block></scroll-view></block><block wx:if="{{$root.g1==0}}"><view style="background-color:#ffffff;padding:20rpx;text-align:center;" class="data-v-14a6ab35">暂无活动</view></block></view><view style="background-color:#ffffff;" class="data-v-14a6ab35"><tn-tabs vue-id="ffa1871e-7" list="{{goryList}}" isScroll="{{true}}" activeItemStyle="{{({fontSize:'35rpx',fontWeight:'600'})}}" activeColor="#000000" current="{{current}}" name="name" fontSize="{{28}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" class="data-v-14a6ab35" bind:__l="__l"></tn-tabs></view><view style="padding:10px 30rpx;padding-bottom:100rpx;" class="data-v-14a6ab35"><block wx:for="{{news_list}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['openUrl',['/pages/index/new_info?id='+item.news_id]]]]]}}" class="tn-flex tn-flex-row-between data-v-14a6ab35" style="background-color:#ffffff;padding:20rpx;border-radius:10rpx;margin-bottom:10rpx;" bindtap="__e"><view style="position:relative;" class="data-v-14a6ab35"><view class="tn-text-ellipsis-2 data-v-14a6ab35" style="font-size:28rpx;">{{item.news_title+''}}</view><view class="tn-flex tn-flex-row-between data-v-14a6ab35" style="width:100%;color:#808080;position:absolute;bottom:0rpx;min-width:380rpx;overflow:hidden;"><view class="data-v-14a6ab35">{{item.name}}</view><view class="data-v-14a6ab35"><text class="tn-icon-eye data-v-14a6ab35" style="vertical-align:middle;"></text><text style="vertical-align:middle;" class="data-v-14a6ab35">{{item.news_hits}}</text></view></view></view><block wx:if="{{item.news_image}}"><view style="margin-left:20rpx;" class="data-v-14a6ab35"><image style="width:240rpx;height:160rpx;border-radius:10rpx;" src="{{apiImgUrl+item.news_image}}" mode="aspectFill" class="data-v-14a6ab35"></image></view></block></view></block></view><tn-select vue-id="ffa1871e-8" mode="single" list="{{selectList}}" value="{{selectShow}}" data-event-opts="{{[['^confirm',[['confirm']]],['^input',[['__set_model',['','selectShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-14a6ab35" bind:__l="__l"></tn-select></view>