index.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--pages/gasup/index.wxml-->
  2. <view>
  3. <view class="van-hairline--bottom">
  4. <van-search value="{{ value }}" placeholder="请输入油站名称" />
  5. </view>
  6. <van-card desc="{{ item.stationAddress }}" title="{{ item.stationName }}" thumb="{{ item.stationPic }}" centered
  7. wx:for="{{ list }}" wx:key="stationId">
  8. <view slot="footer">
  9. <van-row>
  10. <van-col span="9" offset="1">
  11. <van-button plain round block size="small" type="primary" bindtap="goMap"
  12. data-latitude="{{item.stationLatitude}}" data-longitude="{{item.stationLongitude}}"
  13. data-stationname="{{item.stationName}}">到这里</van-button>
  14. </van-col>
  15. <van-col span="9" offset="4">
  16. <van-button data-pic="{{item.stationPic}}" data-sid="{{item.stationId}}" data-sname="{{item.stationName}}"
  17. data-mno="{{item.mno}}" round block size="small" type="primary" bindtap="toAddOil">去买单</van-button>
  18. </van-col>
  19. </van-row>
  20. </view>
  21. </van-card>
  22. </view>
  23. <!--授权登录获取用户信息弹窗-->
  24. <view class="modal-mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
  25. <view class="modal-dialog" wx:if="{{showModal}}">
  26. <view class="modal-content">
  27. <view>
  28. <icon class="icon-box-img" type="info" size="80"></icon>
  29. </view>
  30. <view>请先登录</view>
  31. <view>请先登录后再进行此操作</view>
  32. <van-button type="primary" open-type="getUserInfo" bindgetuserinfo="getUserInfo">授权微信登录</van-button>
  33. </view>
  34. </view>
  35. <!--授权获取地理位置信息弹窗-->
  36. <view wx:if='{{isShowLocationLayer}}'>
  37. <view class='mask_layer' />
  38. <view class='modal_box'>
  39. <view class="title">"智慧油驿站"需要获取你的地理位置</view>
  40. <view class='content'>
  41. <text class='modalMsg'>您的位置信息将用于小程序位置接口的效果展示</text>
  42. </view>
  43. <view class='btn1'>
  44. <view bindtap='bindCancelLocation' class='cancel'>取消</view>
  45. <view bindtap='bindConfirmLocation' class='Sure'>确定</view>
  46. </view>
  47. </view>
  48. </view>
  49. <!--授权获取微信绑定手机号弹窗-->
  50. <view class="modal-mask" catchtouchmove="preventTouchMove" wx:if="{{showModalPhone}}"></view>
  51. <view class="modal-dialog" wx:if="{{showModalPhone}}">
  52. <view class="modal-content">
  53. <view>
  54. <icon class="icon-box-img" type="info" size="80"></icon>
  55. </view>
  56. <view>绑定手机号</view>
  57. <view>请先绑定手机号进行登录后,再进行此操作</view>
  58. <button open-type='getPhoneNumber' bindgetphonenumber="getPhoneNumber">
  59. 手机号绑定登录
  60. </button>
  61. </view>
  62. </view>
  63. <!--授权获取用户信息弹窗-->
  64. <view wx:if='{{isShowUserInfoLayer}}'>
  65. <view class='mask_layer' />
  66. <view class='modal_box'>
  67. <view class="title">请授权获取您的用户信息</view>
  68. <view class='content'>
  69. <text class='modalMsg'>"智慧油驿站"需要获取你的用户昵称等信息</text>
  70. </view>
  71. <view class='btn1'>
  72. <view bindtap='bindCancelUserInfo' class='cancel'>取消</view>
  73. <view bindtap='bindConfirmUserInfo' class='Sure'>确定</view>
  74. </view>
  75. </view>
  76. </view>