index.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class="tabbar">
  2. <block wx:for="{{list}}" wx:key="index">
  3. <view class="tabbar-item" bindtap="switchTab" data-path="{{item.pagePath}}" data-index="{{index}}">
  4. <image class="icon" src="{{selected === index ? item.selectedIconPath : item.iconPath}}" mode="aspectFit" />
  5. <view class="{{selected === index ? 'active' : ''}}">{{item.text}}</view>
  6. </view>
  7. </block>
  8. </view>
  9. <!-- 分享弹框 -->
  10. <van-popup
  11. show="{{ showShare }}"
  12. position="bottom"
  13. round
  14. z-index="9999"
  15. >
  16. <view class="share-container">
  17. <view class="share-options">
  18. <button class="share-item" open-type="share">
  19. <image class="share-icon" src="/static/tabbar/weixin.png" mode="aspectFit" />
  20. <text class="share-text">微信好友</text>
  21. </button>
  22. <!-- <button class="share-item" open-type="share" data-type="timeline">
  23. <image class="share-icon" src="/static/tabbar/tp.png" mode="aspectFit" />
  24. <text class="share-text">朋友圈</text>
  25. </button> -->
  26. </view>
  27. <!-- 取消按钮 -->
  28. <view class="share-cancel" bindtap="onCloseShare" hover-class="btn-hover" hover-start-time="50">
  29. <image class="share-cancel-img" src="/static/tabbar/cancel.png" mode="aspectFit"/>
  30. </view>
  31. </view>
  32. </van-popup>
  33. <!-- 客服弹窗 -->
  34. <van-dialog
  35. confirm-button-class="confirm-btn"
  36. use-slot
  37. title="联系客服"
  38. show="{{showAgreementModal}}"
  39. show-cancel-button="{{false}}"
  40. >
  41. <view class="dialog-box">
  42. <image class="box-code" src="{{programConfig.customer_qrcode}}" mode="aspectFill"></image>
  43. <view class="box-text" bindtap="onPhone" wx:if="{{programConfig.customer_phone}}">客服电话:{{programConfig.customer_phone}}</view>
  44. <view class="box-text" wx:if="{{programConfig.customer_email}}">客服邮箱:{{programConfig.customer_email}}</view>
  45. </view>
  46. </van-dialog>