index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="page">
  3. <image class="swiper" src="/static/image/rescue/swpier.png" mode=""></image>
  4. <view class="classification p-3 dis f-c ">
  5. <view class="module m-btn-15 p-3 dis j-s a-c" v-for="(item,index) in moduleList" :key="index"
  6. @click="moduleClick(item.path)">
  7. <view class="round dis a-c j-c">
  8. <image :src="item.img" mode=""></image>
  9. </view>
  10. <view class="brief dis f-c ">
  11. <text>{{item.name}}</text>
  12. <text>{{item.text}}</text>
  13. </view>
  14. <u-icon name="arrow-right" color="#b0afb7" size="38"></u-icon>
  15. </view>
  16. </view>
  17. <u-popup v-model="show" mode="center" border-radius="20" width="90%">
  18. <view class="Tips p-5 dis f-c ">
  19. <text>温馨提示</text>
  20. <text>1.台风、洪水、政府行为等极端天气或特殊情况,无法保证派工时效,但我们会尽最大努力,敬请谅解。</text>
  21. <text>2.有权益券的人保在保客户,下单时可以用券抵扣费用。</text>
  22. <text>3.无权益券的人保在保客户,请拨打95518转9申请免费故障救援服务。</text>
  23. <text>注:人保客户请优先使用以上两种方式救援,非以上两种情况,则该服务将收费!</text>
  24. <text>4.其他客户可以付费下单,使用救援服务。</text>
  25. <view class="dis j-s a-c mt-5">
  26. <u-button style="width: 45%;" type="primary" size="medium" shape="circle"
  27. @click="next">继续下单</u-button>
  28. <u-button style="width: 45%;" type="primary" size="medium" shape="circle" :plain="true"
  29. @click="mobileCall">95518救援</u-button>
  30. </view>
  31. </view>
  32. </u-popup>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. show: false,
  40. moduleList: [{
  41. name: "搭电救援",
  42. text: "由于车辆蓄电池(电瓶)亏电,无法启动,需要协助进行搭电启动",
  43. img: "/static/image/rescue/Grounding.png",
  44. path: "/pages/roadRescue/Grounding",
  45. },
  46. {
  47. name: "拖车救援",
  48. text: "因车辆无法正常行驶(非事故导致)需要拖车协助拖至维修点",
  49. img: "/static/image/rescue/trailer.png",
  50. path: "/pages/roadRescue/trailer",
  51. },
  52. {
  53. name: "换胎救援",
  54. text: "车辆单个轮胎损坏,需协助更换备胎",
  55. img: "/static/image/rescue/replacement.png",
  56. path: "/pages/roadRescue/replacement",
  57. }
  58. ],
  59. path: "",
  60. }
  61. },
  62. onShow() {
  63. },
  64. onLoad() {
  65. },
  66. methods: {
  67. moduleClick(path) {
  68. this.path = path;
  69. this.show = true;
  70. },
  71. next() {
  72. this.show = false;
  73. uni.navigateTo({
  74. url: this.path
  75. })
  76. },
  77. mobileCall() {
  78. uni.makePhoneCall({
  79. phoneNumber: "95518",
  80. success: () => {
  81. console.log("成功拨打电话")
  82. }
  83. })
  84. },
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .page {
  90. height: 100vh;
  91. background-color: #f5f6f8;
  92. }
  93. .swiper {
  94. width: 100%;
  95. height: 400rpx;
  96. }
  97. .classification {
  98. .module {
  99. width: 100%;
  100. height: 250rpx;
  101. background: white;
  102. border-radius: 10px;
  103. box-shadow: 0 0 10px #efefef;
  104. .round {
  105. width: 70px;
  106. height: 70px;
  107. background-color: #e8f0fd;
  108. border-radius: 50%;
  109. image {
  110. width: 70%;
  111. height: 70%;
  112. }
  113. }
  114. .brief {
  115. width: 60%;
  116. text:first-child {
  117. font-size: 16px;
  118. font-weight: bold;
  119. color: #33313c;
  120. }
  121. text:last-child {
  122. color: #8687a6;
  123. }
  124. }
  125. }
  126. }
  127. .Tips {
  128. text:first-child {
  129. font-size: 20px;
  130. font-weight: bold;
  131. }
  132. }
  133. </style>