blessing.wxml 4.85 KB
<view class="page">
  <view class="app__bgc bgc" style="background-color: {{detailData.background}};"></view>
  <!-- <view class="app__bg bg " style="background: url('{{detailData.backgroundImage}}')"></view> -->
  <image mode="scaleToFill" class="ebg" src="{{detailData.backgroundImage}}" />
  <view class="app__content main">
    <!-- 顶部背景 -->
    <image class="top-bg" mode="widthFix" src="{{detailData.headImage}}" />
    <!-- <view class="top-bg"></view> -->
    <view class="top-space"></view>
    <view class="content">
      <view class="title">{{detailData.lunarCalendar}}</view>
      <!-- 用户 -->
      <view class="user">
        <!-- 用户头像 -->
        <view class="portrait">
          <!-- <image class="portrait-inner" mode="widthFix" src="../../image/blessing/portrait.png" /> -->
          <!-- <image class="portrait-border" mode="widthFix" src="../../image/blessing/portrait-border.png" /> -->
          <image class="portrait-inner" mode="scaleToFill" src="{{ownerMember.memberHead}}" />
          <image class="portrait-border" mode="scaleToFill" src="{{detailData.headFrame}}" />
        </view>
        <!-- 用户名称 -->
        <view class="name">
          <view class="tt">{{detailData.familyName}}</view>
          <image class="name-edit" mode="widthFix" src="../../image/blessing/icon-edit.png" />
        </view>
        <!-- 编辑 -->
        <view class="edit">
          <view class="tt t1">{{detailData.sentence}}</view>
          <image class="name-edit" mode="widthFix" src="../../image/blessing/icon-edit.png" />
          <view class="tt t2">{{detailData.count}}人</view>
        </view>
        <!-- 用户组 -->
        <view class="group">
          <view wx:for="{{memberList}}" wx:key="{{index}}" class="group-item">
            <view class="group-item-portrait"></view>
            <view class="group-item-name">
              <view class="t1">李四</view>
              <image class="name-edit" mode="widthFix" src="../../image/blessing/icon-edit.png" />
            </view>
          </view>
        </view>
        <!-- 更多 -->
        <view class="more">
          查看更多
          <image class="icon-down" mode="widthFix" src="../../image/blessing/icon-down-arrow.png" />
        </view>
        <!-- 自定义句子 -->
        <view class="sentence">{{detailData.sentence}}</view>
      </view>
      <!-- 尾部内容 -->
      <view class="tail">
        <!-- 尾部头像 -->
        <view class="portrait">
          <!-- <image class="portrait-inner" mode="widthFix" src="../../image/blessing/portrait.png" />
          <image class="portrait-border" mode="widthFix" src="../../image/blessing/portrait-border.png" /> -->
          <image class="portrait-inner" mode="scaleToFill" src="{{ownerMember.memberHead}}" />
          <image class="portrait-border" mode="scaleToFill" src="{{detailData.headFrame}}" />
        </view>
        <view class="name">
          <view class="tt t1">{{ownerMember.memberName}}</view>
          <view class="tt t2">{{detailData.blessTitle}}</view>
        </view>
        <!-- 按钮组 -->
        <view class="tail-btn-wrap">
          <!-- 分享团队图片 -->
          <!-- <view class="share"></view> -->
          <image wx:if="{{detailData.type == 1}}" mode="widthFix" class="tail-btn-wrap-item blessing-share-group-btn" src="../../image/blessing/blessing-share-group-btn.png" />
          <view wx:if="{{detailData.type == 0}}" bindtap="toReward" class="tail-btn-wrap-item more-template">
            <span class="t1">赞赏祝福</span>
            >>
          </view>
          <!-- 选择更多祝福模板 -->
          <view bindtap="onMoreTemplateHandler" class="tail-btn-wrap-item more-template">
            <span class="t1">选择更多祝福模版</span>
            >>
          </view>
        </view>
      </view>
    </view>
    <!-- fix底部 -->
    <view class="bottom">
      <image class="bottom-bg" mode="scaleToFill" src="{{detailData.tailImage}}" />
      <!-- 分情况显示btn-wrap -->
      <!-- 单人 -->
      <block wx:if="{{detailData.type == 0}}">
        <view class="btn-wrap">
          <view class="btn btn1">分享图片祝福</view>
          <view class="btn btn2">祝福送朋友</view>
          <!-- <view wx:if="{{detailData.customMade == 0}}" class="btn btn2">祝福送朋友</view>
          <view wx:if="{{detailData.customMade == 1}}" class="btn btn2">祝福送朋友</view> -->
        </view>
      </block>
      <!-- 组队 -->
      <block wx:if="{{detailData.type == 1}}">
        <view class="btn-wrap">
          <view class="btn btn1">定制我的祝福</view>
          <view class="btn btn2">祝福送朋友</view>
        </view>
      </block>
      <!-- <view class="btn-wrap">
        <view class="btn btn1">定制我的祝福</view>
        <view class="btn btn2">祝福送朋友</view>
      </view> -->
    </view>
  </view>
</view>
<van-dialog id="van-dialog" />