_toast.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <block wx:if='{{_toast}}'>
  2. <view id='_toast'>
  3. <view class='{{(_toast.hide?"hide":"")}}' id='_toast_title'>
  4. <text>{{_toast.title}}</text>
  5. </view>
  6. </view>
  7. </block>
  8. <block wx:if='{{_loading}}'>
  9. <view class=' flex-row flex-x-center flex-y-center' id='_loading'>
  10. <view class='{{(_loading?"hide":"")}}'>
  11. <image src='{{__wxapp_img.system.loading2.url}}'></image>
  12. </view>
  13. </view>
  14. </block>
  15. <block wx:if='{{user_info_show}}'>
  16. <view class='new-modal'>
  17. <view class='new-modal-content'>
  18. <view class='new-modal-header' style='padding:30rpx 0;line-height:60rpx;border-bottom: 1rpx solid #eee;'>需要您的授权</view>
  19. <view class='new-modal-body' style='min-height:0;margin-bottom:0;max-height:none'>
  20. <view style='padding:32rpx 0 0 0;text-align: center'>
  21. <view>为了提供更好的服务</view>
  22. <view>请在稍后的提示框中点击“允许”</view>
  23. </view>
  24. <block wx:if='{{__platform == "wx"}}'>
  25. <view style='text-align:center'>
  26. <image src='/images/icon-login-index.png' style='width:500rpx;height:460rpx;'></image>
  27. </view>
  28. </block>
  29. <view class='flex-x-center'>
  30. <view>
  31. <button bindgetuserinfo='getUserInfo' bindtap='myLogin' class='btn new-modal-btn' openType='getUserInfo' style='background-color:#04be01;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>登录授权</button>
  32. </view>
  33. </view>
  34. <view class='flex-x-center'>
  35. <view>
  36. <button bindtap='dis' class='btn new-modal-btn' style='background-color:#cecece;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>取消</button>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </block>
  43. <block wx:if='{{user_bind_show}}'>
  44. <block wx:if='{{ (!(__user_info.binding) && store.option.phone_auth == 1) }}'>
  45. <view class='new-modal'>
  46. <view class='new-modal-content'>
  47. <view class='new-modal-header' style='padding:30rpx 0;line-height:60rpx;font-size:11pt;border-bottom: 1rpx solid #eee;'>授权获取手机号</view>
  48. <view class='new-modal-body' style='min-height:0;margin-bottom:0;'>
  49. <view style='padding:32rpx 0 40rpx 0;text-align: center'>
  50. <block wx:if='{{__platform == "wx"}}'>
  51. <image src='{{__wxapp_img.system.wechatapp.url}}' style='width: 88rpx;height: 88rpx;'></image>
  52. </block>
  53. <block wx:else>
  54. <image src='{{__wxapp_img.system.alipay.url}}' style='width: 88rpx;height: 88rpx;'></image>
  55. </block>
  56. </view>
  57. <view style='padding:0 41rpx;'>
  58. <view class='flex-x-center' style='margin-bottom:40rpx;'>申请获取您微信绑定的手机号</view>
  59. </view>
  60. <view class='flex-x-center'>
  61. <view>
  62. <button bindgetphonenumber='getPhoneNumber' class='btn new-modal-btn' hoverClass='none' openType='getPhoneNumber' style='background-color:#04be01;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>确认</button>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </block>
  69. </block>