coop.wxml 5.08 KB
<view class="page">
  <view wx:if="{{animationPassVisible}}" class="ani">
    <view class="mask"></view>
    <image class="gif" mode="widthFix" src="../../image/oss/ani/pass.gif" />
  </view>
  <view class="app__bgc bgc"></view>
  <image class="bg" src="../../image/oss/coop/coop-bg-1.png" mode="scaleToFill" />
  <view class="decoration">
    <image class="d1" mode="widthFix" src="../../image/oss/coop/coop-d1.png" />
  </view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <!-- 摇一摇 -->
      <!-- bindtap="queryWishbillAssist" -->
      <!-- 点自己链接未助力 -->
      <view bindtap="queryWishbillAssistTest" wx:if="{{wishInfo.isSelfWishBill == 1 ||  wishInfo.isAssistThisBill == 0}}" class="shake">
        <image class="ebg" mode="widthFix" src="../../image/oss/coop/coop-c2.png" />
        <image class="coop-shake animated infinite {{animationPassVisible || !initComplete ?'':'tada'}}" mode="widthFix" src="../../image/oss/coop/coop-shake.png" />
        <view class="space1"></view>
        <view class="cont">
          <view class="tips">
            <!-- 你的好友
            <span class="t1">{{wishInfo.member.nickname}}</span>
            的心愿单需要你的帮助哦!拿起手机摇一摇,即可为ta贡献弹力值! -->
            亲爱的好友,
            <span class="t1">{{wishInfo.member.nickname}}</span>
            的丸美心愿单需要你的帮助,拿手机摇一摇,为TA的心愿注入弹力值~
          </view>
          <view class="wish">
            <view wx:for="{{wishList}}" wx:key="{{index}}" class="wish-item">
              <view class="display">
                <image class="prod" mode="aspectFit" src="../../image/prize/prize-{{item.tag}}.png" />
              </view>
              <view class="name">{{item.prizeName}}</view>
            </view>
          </view>
        </view>
        <!-- <view bindtap="onPlayTooHandler" class="play-too-btn">我也要玩</view> -->
      </view>
      <!-- 摇后结果 -->
      <view wx:else class="result-wrap">
        <view class="result">
          <image class="ebg" mode="widthFix" src="../../image/oss/coop/coop-c3.png" />
          <view class="space1"></view>
          <view class="cont">
            <!-- <view class="user">
              <image class="portrait" mode="widthFix" src="{{wishInfo.member.avatar}}" />
              <view class="nickname">
                你的好友{{wishInfo.member.nickname}}的心愿单需要你的帮助哦!拿起手机摇一摇,即可为ta贡献弹力值!
              </view>
            </view> -->
            <view class="portrait-wrap">
              <image class="connect" mode="widthFix" src="../../image/oss/coop/coop-c4.png" />
              <view class="portrait">
                <image mode="widthFix" src="{{userInfo.avatar}}" />
              </view>
              <view class="portrait">
                <image mode="widthFix" src="{{wishInfo.member.avatar}}" />
              </view>
            </view>
            <view class="tips2">
              <text class="t1">太厉害了\n您总共摇出了{{wishInfo.helpElasticValue}}弹力值</text>
            </view>
            <!-- 奖品 -->
            <view class="wish">
              <view wx:for="{{wishList}}" wx:key="{{index}}" class="wish-item">
                <view class="display">
                  <image class="prod" mode="aspectFit" src="../../image/prize/prize-{{item.tag}}.png" />
                </view>
                <view class="mid">
                  <view class="name">{{item.prizeName}}</view>
                  <view class="progress">
                    <view class="pro">
                      <view class="flag" style="left:{{item.progressLeft}}rpx;">
                        <image class="prod" mode="aspectFit" src="../../image/oss/my-wish/my-wish-c4.png" />
                        <view class="t1">{{item.elasticValue}}</view>
                      </view>
                      <view class="line">
                        <view class="line-thumb" style="width:{{item.progress}}%;"></view>
                      </view>
                    </view>
                    <view class="val">{{item.conditionElasticValue}}</view>
                  </view>
                </view>
              </view>
            </view>
          </view>
        </view>
        <view bindtap="onPlayTooHandler" class="play-too-btn">我也要玩</view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ groupMemberCoopVisible }}">
  <tips-group-member-coop-comp bind:evtcomp="evtcomp"></tips-group-member-coop-comp>
</van-popup>
<van-popup show="{{ tipsCommonVisible }}">
  <tips-common-comp bind:evtcomp="evtcomp" inner-text="{{tipsInnerText}}" inner-button="我也要玩" cid="play-too"></tips-common-comp>
</van-popup>
<van-popup show="{{ tipsGuideRegisterVisible }}">
  <tips-guide-register-comp bind:evtcomp="evtcomp" inner-text="注册成为丸美新会员,\n可为好友心愿注入更多弹力值噢~"></tips-guide-register-comp>
</van-popup>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>