share.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!--pages/share/share.wxml 来自订单的分享 -->
  2. <view class="container">
  3. <view class="banner">
  4. <!-- 选中场景 -->
  5. <block wx:if='{{cardSrc != ""}}'>
  6. <image src='{{cardSrc}}' class="card_src" mode='widthFix'></image>
  7. </block>
  8. <block wx:elif='{{src}}'>
  9. <image src='{{src}}' mode='widthFix'></image>
  10. </block>
  11. </view>
  12. <!-- <view class="upload_wrap">
  13. <block wx:if="{{uploadImgList}}" wx:for="{{uploadImgList}}" wx:key="index" wx:for-index="i">
  14. <view class="upload_img_wrap">
  15. <image src='{{item}}' data-id="{{i}}" class="upload_img"></image>
  16. <image src='/images/delete.png' data-id="{{i}}" bindtap='deleteUploadImg' class="delete_img"></image>
  17. </view>
  18. </block>
  19. <block wx:if="{{uploadImgList == '' || uploadImgList == undefined || uploadImgListLength < 9}}">
  20. <view class="upload_img_wrap">
  21. <image src='/images/add_img.png' bindtap='uploadImg' class="upload_img"></image>
  22. </view>
  23. </block>
  24. </view> -->
  25. <view class="write_msg">
  26. <textarea bindblur="textFocus" class="msg_tetxarea" value='{{msg}}' placeholder="给他/她留个言吧......" placeholder-style="color:#ccc;"></textarea>
  27. </view>
  28. <view class='card_space'></view>
  29. <!-- 选择场景 -->
  30. <view class='send_card_wrap'>
  31. <view class='card_title'>选择一个场景:</view>
  32. <view class='card_list clearfix'>
  33. <scroll-view scroll-x class="card_list_cont" scroll-left="{{scrollLeft}}">
  34. <block wx:for="{{cardList}}" wx:key="index" wx:for-index="i">
  35. <view class='each_card_wrap' bindtap='cardSelect' data-id="{{i}}" data-src="{{urlHttp}}{{item.src}}" data-intro="{{item.intro}}">
  36. <view class='each_card_cont'>
  37. <image wx:if='{{urlHttp}}' src='{{urlHttp}}{{item.src}}' class='card_img' mode='widthFix'></image>
  38. <view class='card_intro'>{{item.intro}}</view>
  39. <block wx:if='{{selectId == i }}'>
  40. <image wx:if='{{selectFlag}}' src='/images/send_card_select.png' class='card_select'></image>
  41. </block>
  42. </view>
  43. </view>
  44. </block>
  45. </scroll-view>
  46. </view>
  47. </view>
  48. <block wx:if="{{shareNum == 0}}">
  49. <button open-type="share" plain="true" class="save_btn">赠送</button>
  50. </block>
  51. <block wx:else>
  52. <view class="save_btn">赠送</view>
  53. </block>
  54. </view>