coop.wxml 3.56 KB
<view class="page">
  <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 wx:if="{{coopInfo.isAssist != 1}}" class="shake">
        <image class="ebg" mode="widthFix" src="../../image/oss/coop/coop-c2.png" />
        <view class="space1"></view>
        <view class="cont">
          <view class="tips">你的好友{{wishInfo.member.nickname}}的心愿单需要你的帮助哦!拿起手机摇一摇,即可为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="tips2">
              <text class="t1">太厉害了\n您总共摇出了{{coopInfo.totalElasticValue}}弹力值</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}}"></tips-common-comp>
</van-popup>