generated from linheng/yaofang
68 lines
3.5 KiB
Plaintext
68 lines
3.5 KiB
Plaintext
<view class="bg">
|
|
|
|
<view class="bg_t"></view>
|
|
<view class="box">
|
|
<view class="inner">
|
|
<view class="dt">
|
|
<image class="dt_img" src="https://m.xzw.com/static/public/images/prot_icon/sx/a/{{id}}.png"></image>
|
|
</view>
|
|
<view bindtap="showModal" class="sxname">{{infodata.name}}</view>
|
|
<view class="dd_text">
|
|
<text class="label">出生年份</text>
|
|
<text bindtap="onChangeYear" class="item {{select==0?'active':''}}" data-index="0">综合</text>
|
|
<text bindtap="onChangeYear" class="item {{select==index+1?'active':''}}" data-index="{{index+1}}" wx:if="{{index<6}}" wx:for="{{infodata.year}}">{{item}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="title">{{curryear}}年</view>
|
|
<view class="m_title">指数</view>
|
|
<view class="star1">
|
|
<view class="star_on" style="width:{{infodata.star/5*100}}%"></view>
|
|
</view>
|
|
<view class="box_main">
|
|
<view class="monthys">
|
|
<view class="title">每月</view>
|
|
<view class="month_box">
|
|
<scroll-view scrollX class="month">
|
|
<view bindtap="viewMonth" class="item {{currMon==index+1?'active':''}}" data-index="{{index+1}}" wx:for="{{infodata.month}}">{{item.date[0]}}</view>
|
|
</scroll-view>
|
|
</view>
|
|
<swiper autoHeight="true" bindchange="handleChange" class="month_swiper" current="{{currMon-1}}" displayMultipleItems="1" style="height:{{swiperHeight}}px" wx:if="{{monthCon}}">
|
|
<swiper-item data-index="{{index}}" wx:for="{{infodata.month}}">
|
|
<view class="item {{currMon-1==index?'cur':''}}">
|
|
<text class="h3">公历:{{infodata.month[currMon-1].date[1]}}</text>
|
|
<view class="month_con">{{infodata.month[currMon-1].desc}}</view>
|
|
</view>
|
|
</swiper-item>
|
|
</swiper>
|
|
<view bindtap="hideMonth" class="fold" wx:if="{{foldShow}}">
|
|
<text class="fold_txt">收起</text>
|
|
</view>
|
|
</view>
|
|
<view class="ysinfo">
|
|
<block wx:for="{{infodata.index}}">
|
|
<view class="f_title">{{item.title||item[0]}}星运<view class="p_title">{{infodata.year[select-1]?infodata.year[select-1]+'年出生':''}}属{{infodata.name}}的人{{curryear}}年</view>
|
|
</view>
|
|
<view class="desc">{{item.cont||item[1]}}</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="b_cloud"></view>
|
|
<view bindtap="hideModal" catchtouchmove="true" class="layer" wx:if="{{mengshow}}"></view>
|
|
<view catchtouchmove="true" class="float_box {{showModalStatus?'slideup':'slidedown'}}" wx:if="{{modalHidden}}">
|
|
<view class="f_title">
|
|
<image class="f_titleimg" src="../../image/sel_sx.png"></image>
|
|
</view>
|
|
<view class="f_main">
|
|
<view class="f_ul clear">
|
|
<view bindtap="clicksx" class="f_li" data-index="{{index+1}}" wx:for="{{list}}" wx:key="index">
|
|
<view class="f_libg">
|
|
<image class="f_liimg" src="https://m.xzw.com/static/public/images/prot_icon/sx/a/{{index+1}}.png"></image>
|
|
</view>
|
|
<view class="f_litxt">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|