create-wish.wxml 4.15 KB
<view class="page">
  <view class="app__bgc bgc {{curStatus==1?'bgc1':''}}"></view>
  <view class="app__bg bg"></view>
  <!-- 场景 -->
  <view class="sence">
    <!-- 第一幕 -->
    <view class="view view1">
      <image class="ebg" src="{{'../../image/oss/create-wish/create-wish-1.png'}}" mode="scaleToFill" />
      <image bindtap="onShowTipsBorderHandler" data-index="P000000000000000000000000000002" class="point point1" mode="widthFix" src="../../image/oss/create-wish/cw-point.png" />
      <image bindtap="onShowTipsBorderHandler" data-index="P000000000000000000000000000003" class="point point2" mode="widthFix" src="../../image/oss/create-wish/cw-point.png" />
      <image bindtap="onShowTipsBorderHandler" data-index="P000000000000000000000000000001" class="point point3" mode="widthFix" src="../../image/oss/create-wish/cw-point.png" />
    </view>
    <!-- 详情 -->
    <view wx:if="{{tipsBorderVisible}}" class="tips-border" style="top:{{curWish.point.top+curWish.tips.point.fixTop}}rpx;left:{{curWish.point.left+curWish.tips.point.fixLeft}}rpx;">
      <view class="rel">
        <image class="ebg" mode="widthFix" src="../../image/oss/create-wish/tips-{{curWish.tips.type}}.png" />
        <view class="cont">
          <view class="name">{{curWish.productName}}</view>
          <view class="val">弹力值:{{curWish.conditionElasticValue}}</view>
          <view bindtap="onAddWishHandler" class="btn">加入心愿单</view>
        </view>
      </view>
    </view>
  </view>
  <view class="app__content main">
    <view bindtap="onHideTipsBorderHandler" class="top-space"></view>
    <view class="content">
      <!-- <view class="btn" bindtap="onWishHandler">提交心愿单</view> -->
      <!-- 换一批按钮 -->
      <!-- <view class="change-btn" bindtap="onChangeStatusHandler">
        <image class="icon" src="../../image/oss/create-wish/cw-exchange-btn.png" mode="widthFix" />
        换一批
      </view> -->
      <!-- 心愿单 -->
      <view class="wish-container">
        <image class="ebg" mode="widthFix" src="../../image/oss/create-wish/cw-border.png" />
        <view class="space1"></view>
        <!-- 心愿容器 -->
        <view class="wish">
          <view wx:for="{{myWishList}}" wx:key="{{index}}" class="wish-item">
            <view class="display">
              <image class="prod" mode="aspectFit" src="../../image/prize/prize-{{item.tag}}.png" />
              <image bindtap="onCancelWishHandler" data-data="{{item}}" class="close" mode="widthFix" src="../../image/oss/create-wish/cw-close-btn.png" />
            </view>
            <view class="name">{{item.productName}}</view>
            <view class="val">
              <image class="icon" mode="widthFix" src="../../image/oss/create-wish/cw-light.png" />
              需要弹力值{{item.conditionElasticValue}}
            </view>
          </view>
        </view>
        <!-- 提交心愿单 -->
        <view bindtap="onSubmitHandler" class="btn submit-btn {{myWishList.length <= 0 ? 'disable' : ''}}">
          提交心愿单
        </view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ tipsRegisterVisible }}">
  <tips-register-comp bind:evtcomp="evtcomp"></tips-register-comp>
</van-popup>
<van-popup show="{{ tipsGroupMemberVisible }}">
  <tips-group-member-comp bind:evtcomp="evtcomp"></tips-group-member-comp>
</van-popup>
<van-popup show="{{ tipsNewMemberVisible }}">
  <tips-new-comp bind:evtcomp="evtcomp" user-info="{{userInfo}}"></tips-new-comp>
</van-popup>
<van-popup show="{{ tipsWishVisible }}">
  <tips-wish-comp bind:evtcomp="evtcomp" wish-list="{{myWishList}}" ele-val="{{valElasticTotal}}"></tips-wish-comp>
</van-popup>
<van-popup show="{{ tipsShakeVisible }}">
  <tips-shake-comp bind:evtcomp="evtcomp"></tips-shake-comp>
</van-popup>
<van-popup show="{{ tipsCreateCompleteVisible }}">
  <tips-create-complete-comp bind:evtcomp="evtcomp" wish-info="{{wishInfo}}" wish-list="{{wishList}}" wish-list="{{wishList}}" ele-val="{{taskTotalElasticValue}}" wish-bill-info="{{wishBillInfo}}"></tips-create-complete-comp>
</van-popup>
<van-popup show="{{ tipsCommonVisible }}">
  <tips-common-comp bind:evtcomp="evtcomp" inner-text="{{tipsInnerText}}"></tips-common-comp>
</van-popup>