me.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <template>
  2. <view class="box">
  3. <view class="headerBox">
  4. <view class="headerLeft">
  5. <image :src="ueserInfo.memberInfo.headUrl" mode="" class="headerImg"
  6. v-if="ueserInfo.memberInfo.headUrl"></image>
  7. <image src="../../static/img/pic_def_ava.png" mode="" class="headerImg" v-else></image>
  8. <view class="nickName">{{ueserInfo.memberInfo.nickName}}</view>
  9. </view>
  10. <view>
  11. <image src="../../static/img/icon_set.png" mode="" class="setImg" @click="gonavigateTo('setup')">
  12. </image>
  13. </view>
  14. </view>
  15. <!-- 我的订单 -->
  16. <view class="orderBox">
  17. <view class="orderTitleBg">
  18. <view class="orderTitle">我的订单</view>
  19. <view class="orderAll" @click="goorder(5)">
  20. <view style="color: #999999; font-size: 24rpx; margin-right: 5rpx;">全部订单</view>
  21. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  22. </view>
  23. </view>
  24. <view class="orderLIneBox">
  25. <view class="orderLine" @click="goorder(1)">
  26. <view class="orderImgBox">
  27. <view class="orderNum" v-show="numList.sheetOne>0">{{numList.sheetOne}}</view>
  28. <image src="../../static/img/icon_daifukuan.png" mode="" class="orderLineImg"></image>
  29. </view>
  30. <view class="orderLineTxt">待付款</view>
  31. </view>
  32. <view class="orderLine" @click="goorder(2)">
  33. <view class="orderImgBox">
  34. <view class="orderNum" v-show="numList.sheetTwo>0">{{numList.sheetTwo}}</view>
  35. <image src="../../static/img/icon_daiqueren.png" mode="" class="orderLineImg"></image>
  36. </view>
  37. <view class="orderLineTxt">待确认</view>
  38. </view>
  39. <view class="orderLine" @click="goorder(3)">
  40. <view class="orderImgBox">
  41. <view class="orderNum" v-show="numList.sheetThree>0">{{numList.sheetThree}}</view>
  42. <image src="../../static/img/icon_daiyuyue.png" mode="" class="orderLineImg"></image>
  43. </view>
  44. <view class="orderLineTxt">待预约</view>
  45. </view>
  46. <view class="orderLine" @click="goorder(4)">
  47. <view class="orderImgBox">
  48. <view class="orderNum" v-show="numList.sheetFour>0">{{numList.sheetFour}}</view>
  49. <image src="../../static/img/icon_daifuwu.png" mode="" class="orderLineImg"></image>
  50. </view>
  51. <view class="orderLineTxt">待服务</view>
  52. </view>
  53. <view class="orderLine" @click="goorder(3)">
  54. <view class="orderImgBox">
  55. <view class="orderNum" v-show="numList.sheetFive>0">{{numList.sheetFive}}</view>
  56. <image src="../../static/img/icon_daipingjia.png" mode="" class="orderLineImg"></image>
  57. </view>
  58. <view class="orderLineTxt">待评价</view>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 售后订单 -->
  63. <view class="rowBoxBg">
  64. <view class="rowBox">
  65. <view class="leftView">
  66. <image src="../../static/img/icon_shouhou.png" mode="" class="liftIcon"></image>
  67. <view class="rowTitle">售后订单</view>
  68. </view>
  69. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  70. </view>
  71. </view>
  72. <!-- 我的 相关 -->
  73. <view class="rowBoxBg">
  74. <view class="rowBox">
  75. <view class="leftView">
  76. <image src="../../static/img/icon_car.png" mode="" class="liftIcon"></image>
  77. <view class="rowTitle">我的车库</view>
  78. </view>
  79. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  80. </view>
  81. <view class="grayline"></view>
  82. <view class="rowBox">
  83. <view class="leftView">
  84. <image src="../../static/img/icon_youhuiquan.png" mode="" class="liftIcon"></image>
  85. <view class="rowTitle">我的优惠券</view>
  86. </view>
  87. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  88. </view>
  89. <view class="grayline"></view>
  90. <view class="rowBox">
  91. <view class="leftView">
  92. <image src="../../static/img/icon_pingjia.png" mode="" class="liftIcon"></image>
  93. <view class="rowTitle">我的评价</view>
  94. </view>
  95. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  96. </view>
  97. <view class="grayline"></view>
  98. <view class="rowBox">
  99. <view class="leftView">
  100. <image src="../../static/img/icon_yaoqing.png" mode="" class="liftIcon"></image>
  101. <view class="rowTitle">邀请有礼</view>
  102. </view>
  103. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  104. </view>
  105. </view>
  106. <!-- 关于 我们 -->
  107. <view class="rowBoxBg">
  108. <view class="rowBox">
  109. <view class="leftView">
  110. <image src="../../static/img/icon_dianhua.png" mode="" class="liftIcon"></image>
  111. <view class="rowTitle">联系我们</view>
  112. </view>
  113. <view class="rightView" @click="call('400-203-221')">
  114. <view style="color: #666666; font-size: 28rpx; margin-right: 20rpx;">400-203-221</view>
  115. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  116. </view>
  117. </view>
  118. <view class="grayline"></view>
  119. <view class="rowBox">
  120. <view class="leftView">
  121. <image src="../../static/img/icon_fankui.png" mode="" class="liftIcon"></image>
  122. <view class="rowTitle">意见反馈</view>
  123. </view>
  124. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  125. </view>
  126. <view class="grayline"></view>
  127. <view class="rowBox">
  128. <view class="leftView">
  129. <image src="../../static/img/icon_guanyu.png" mode="" class="liftIcon"></image>
  130. <view class="rowTitle">关于我们</view>
  131. </view>
  132. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. export default {
  139. data() {
  140. return {
  141. ueserInfo: '',
  142. shopData: '',
  143. numList: '',
  144. }
  145. },
  146. onLoad() {
  147. },
  148. onShow() {
  149. this.$common.isUserId()
  150. this.ueserInfo = uni.getStorageSync("logodata");
  151. this.shopData = uni.getStorageSync("shopData");
  152. this.queryMyDetail();
  153. },
  154. methods: {
  155. call(e) {
  156. // console.log(e);
  157. uni.makePhoneCall({
  158. phoneNumber: e
  159. });
  160. },
  161. goorder(num) {
  162. uni.navigateTo({
  163. url: '../order/myorder?num=' + num
  164. })
  165. },
  166. login() {
  167. uni.navigateTo({
  168. url: '../login/login'
  169. })
  170. },
  171. queryMyDetail() {
  172. uni.showLoading({});
  173. this.$http('miniAppMyBMemberCar/queryMyDetail', {
  174. }, 'GET').then(res => {
  175. uni.hideLoading();
  176. this.numList = res.data
  177. })
  178. },
  179. gonavigateTo(url) {
  180. uni.navigateTo({
  181. url: url
  182. })
  183. }
  184. }
  185. }
  186. </script>
  187. <style scoped>
  188. .box {
  189. min-height: 100vh;
  190. background: linear-gradient(180deg, #FFEDEA 0%, #F4F5F7 100%);
  191. padding: 0 24rpx 60rpx;
  192. }
  193. .flex {
  194. display: flex;
  195. }
  196. .headerBox {
  197. padding-top: 14rpx;
  198. }
  199. .headerImg {
  200. width: 90rpx;
  201. height: 90rpx;
  202. border-radius: 50%;
  203. }
  204. .setImg {
  205. width: 38rpx;
  206. height: 38rpx;
  207. margin-top: 25rpx;
  208. }
  209. .headerBox {
  210. display: flex;
  211. justify-content: space-between;
  212. }
  213. .headerLeft {
  214. display: flex;
  215. }
  216. .nickName {
  217. padding-left: 20rpx;
  218. line-height: 90rpx;
  219. color: #3C3C3C;
  220. font-size: 32rpx;
  221. }
  222. .orderBox {
  223. margin-top: 30rpx;
  224. background: #FFFFFF;
  225. padding: 30rpx 0rpx;
  226. border-radius: 10rpx;
  227. }
  228. .orderTitleBg {
  229. display: flex;
  230. justify-content: space-between;
  231. align-items: center;
  232. }
  233. .orderTitle {
  234. font-size: 30rpx;
  235. color: #333333;
  236. font-weight: bold;
  237. padding-left: 20rpx;
  238. }
  239. .orderAll {
  240. display: flex;
  241. justify-content: space-between;
  242. align-items: center;
  243. }
  244. .orderLine {
  245. width: 25%;
  246. text-align: center;
  247. }
  248. .orderLineImg {
  249. width: 44rpx;
  250. height: 44rpx;
  251. }
  252. .orderLineTxt {
  253. font-size: 24rpx;
  254. color: #333333;
  255. }
  256. .orderImgBox {
  257. text-align: center;
  258. position: relative;
  259. }
  260. .orderLIneBox {
  261. display: flex;
  262. justify-content: space-between;
  263. padding-top: 30rpx;
  264. }
  265. .orderNum {
  266. line-height: 26rpx;
  267. background: #FF4F00;
  268. padding: 0 8rpx;
  269. border-radius: 13rpx;
  270. color: #FFFFFF;
  271. font-size: 20rpx;
  272. position: absolute;
  273. top: -5rpx;
  274. right: 38rpx;
  275. z-index: 11;
  276. }
  277. .rightArrow {
  278. margin-right: 20rpx;
  279. width: 12rpx;
  280. height: 20rpx;
  281. }
  282. .rowBoxBg {
  283. margin-top: 30rpx;
  284. background: #FFFFFF;
  285. /* padding: 30rpx 0rpx; */
  286. border-radius: 10rpx;
  287. }
  288. .rowBox {
  289. display: flex;
  290. justify-content: space-between;
  291. background: #FFFFFF;
  292. padding: 30rpx 0rpx;
  293. border-radius: 10rpx;
  294. align-items: center;
  295. }
  296. .leftView {
  297. display: flex;
  298. align-items: center;
  299. }
  300. .rightView{
  301. display: flex;
  302. align-items: center;
  303. }
  304. .liftIcon {
  305. width: 38rpx;
  306. height: 38rpx;
  307. margin: 0rpx 20rpx;
  308. }
  309. .rowTitle {
  310. color: #3C3C3C;
  311. font-size: 28rpx;
  312. }
  313. .grayline{
  314. margin-left: 77rpx;
  315. margin-right: 20rpx;
  316. background-color: #F4F5F7;
  317. height: 2rpx;
  318. }
  319. </style>