index.vue 3.6 KB

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