环卫车小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
5.6 KiB

7 months ago
  1. <template>
  2. <view class="u-page">
  3. <view class="se-pt-50 se-pb-40 se-px-40 se-bgc-green se-c-white se-pos">
  4. <view class="se-flex">
  5. <image src="@/static/image/header.png" class="se-br-p-50 se-w-100 se-h-100" mode=""></image>
  6. <view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
  7. <view class="se-flex">
  8. <text class="se-fw-6 se-fs-30">热心小肖</text>
  9. <!-- <view class="se-flex se-flex-ai-c se-ml-20">
  10. <image class="se-a-25 se-mr-10" src="@/static/image/pencil.png" mode=""></image>
  11. <text class="se-fs-22">修改资料</text>
  12. </view> -->
  13. </view>
  14. <view class="se-fs-24 se-display-ib">
  15. <text>手机号:</text>
  16. <text class="se-ml-20">13189698114</text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="se-m-30 se-mt-30 se-pl-30 se-pr-20 se-br-20 se-bgc-white">
  22. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onReservation()">
  23. <view class="se-flex se-flex-ai-c">
  24. <image class="se-a-30" src="@/static/image/482011.png" mode=""></image>
  25. <text class="se-ml-20 se-fs-24 se-fw-5">预约信息</text>
  26. </view>
  27. <view class="se-flex se-flex-ai-c">
  28. <u-icon name="arrow-right"></u-icon>
  29. </view>
  30. </view>
  31. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRelease">
  32. <view class="se-flex se-flex-ai-c">
  33. <image class="se-a-30" src="@/static/image/482014.png" mode=""></image>
  34. <text class="se-ml-20 se-fs-24 se-fw-5">我的发布</text>
  35. </view>
  36. <view class="se-flex se-flex-ai-c">
  37. <u-icon name="arrow-right"></u-icon>
  38. </view>
  39. </view>
  40. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onApply()">
  41. <view class="se-flex se-flex-ai-c">
  42. <image class="se-a-30" src="@/static/image/482013.png" mode=""></image>
  43. <text class="se-ml-20 se-fs-24 se-fw-5">我的寻车申请</text>
  44. </view>
  45. <view class="se-flex se-flex-ai-c">
  46. <u-icon name="arrow-right"></u-icon>
  47. </view>
  48. </view>
  49. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onInvite">
  50. <view class="se-flex se-flex-ai-c">
  51. <image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
  52. <text class="se-ml-20 se-fs-24 se-fw-5">我的邀请</text>
  53. </view>
  54. <view class="se-flex se-flex-ai-c">
  55. <u-icon name="arrow-right"></u-icon>
  56. </view>
  57. </view>
  58. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRecommend">
  59. <view class="se-flex se-flex-ai-c">
  60. <image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
  61. <text class="se-ml-20 se-fs-24 se-fw-5">我的推荐</text>
  62. </view>
  63. <view class="se-flex se-flex-ai-c">
  64. <u-icon name="arrow-right"></u-icon>
  65. </view>
  66. </view>
  67. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onCustomerService">
  68. <view class="se-flex se-flex-ai-c">
  69. <image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
  70. <text class="se-ml-20 se-fs-24 se-fw-5">在线客服</text>
  71. </view>
  72. <view class="se-flex se-flex-ai-c">
  73. <u-icon name="arrow-right"></u-icon>
  74. </view>
  75. </view>
  76. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onVersion">
  77. <view class="se-flex se-flex-ai-c">
  78. <image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
  79. <text class="se-ml-20 se-fs-24 se-fw-5">关于我们</text>
  80. </view>
  81. <view class="se-flex se-flex-ai-c">
  82. <u-icon name="arrow-right"></u-icon>
  83. </view>
  84. </view>
  85. <view class="se-py-30 se-px-20 se-flex se-flex-h-sb" @click="onLogOut">
  86. <view class="se-flex se-flex-ai-c">
  87. <text class="se-fs-24 se-fw-5">退出登录</text>
  88. </view>
  89. <view class="se-flex se-flex-ai-c">
  90. <u-icon name="arrow-right"></u-icon>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. data() {
  99. return {
  100. }
  101. },
  102. methods: {
  103. onInvite(){
  104. uni.navigateTo({
  105. url:"/pages_subpack/invite/index"
  106. })
  107. },
  108. onRecommend(){
  109. uni.navigateTo({
  110. url:"/pages_subpack/recommend/index"
  111. })
  112. },
  113. onRelease(){
  114. uni.navigateTo({
  115. url:"/pages_subpack/release/index"
  116. })
  117. },
  118. onApply(){
  119. uni.navigateTo({
  120. url:"/pages_subpack/apply/index"
  121. })
  122. },
  123. onSystem(){
  124. uni.navigateTo({
  125. url:"/pages_subpack/system/index"
  126. })
  127. },
  128. onReservation(){
  129. uni.navigateTo({
  130. url:"/pages/reservation/index"
  131. })
  132. },
  133. onVersion(){
  134. uni.navigateTo({
  135. url:"/pages_subpack/version/index"
  136. })
  137. },
  138. onLogOut(){
  139. uni.showModal({
  140. title:"温馨提示",
  141. content:"确定退出当前登录",
  142. cancelText:"取消",
  143. confirmText:"确定",
  144. success:(res)=> {
  145. console.info(res)
  146. if(res.confirm==true){
  147. uni.removeStorageSync("userInfo")
  148. uni.removeStorageSync("token")
  149. uni.removeStorageSync("sessionKey")
  150. uni.navigateTo({
  151. url:"/pages/auth/index"
  152. })
  153. }
  154. }
  155. })
  156. },
  157. onCustomerService(){
  158. let that = this
  159. // let obj = that.$utils.getkeyContent('phone')
  160. if (uni.canIUse('makePhoneCall')) {
  161. uni.makePhoneCall({
  162. phoneNumber: "13156957887", // 电话号码
  163. success: function () {
  164. console.log('拨打电话成功');
  165. },
  166. fail: function () {
  167. console.log('拨打电话失败');
  168. }
  169. });
  170. } else {
  171. console.log('你的设备不支持拨打电话功能');
  172. }
  173. }
  174. }
  175. }
  176. </script>
  177. <style>
  178. page {
  179. background-color: #f5f5f5 !important;
  180. }
  181. .se-grid {
  182. display: grid;
  183. grid-template-columns: 1fr 1fr 1fr 1fr;
  184. gap: 10rpx;
  185. padding-bottom: 4rpx;
  186. }
  187. </style>