me.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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="goSet()">
  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(6)">
  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.sheetStateOne>0">{{numList.sheetStateOne}}</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.sheetStateTwo>0">{{numList.sheetStateTwo}}</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.sheetStateThree>0">{{numList.sheetStateThree}}</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.sheetStateFour>0">{{numList.sheetStateFour}}</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(5)">
  54. <view class="orderImgBox">
  55. <view class="orderNum" v-show="numList.sheetEvaluateState>0">{{numList.sheetEvaluateState}}</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" @click="gonavigateTo('../refundMoney/refundMoneyList')">
  65. <view class="leftView">
  66. <image src="../../static/img/icon_tuikuan.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 class="grayline"></view>
  72. <view class="rowBox" @click="gonavigateTo('../changeStore/changeStoreList')">
  73. <view class="leftView">
  74. <image src="../../static/img/icon_tihuan.png" mode="" class="liftIcon"></image>
  75. <view class="rowTitle">更换门店申请记录</view>
  76. </view>
  77. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  78. </view>
  79. </view>
  80. <!-- 我的 相关 -->
  81. <view class="rowBoxBg">
  82. <view class="rowBox" @click="gonavigateTo('../index/cailist?fromMe=true')">
  83. <view class="leftView">
  84. <image src="../../static/img/icon_car.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" @click="gonavigateTo('discountCard')">
  91. <view class="leftView">
  92. <image src="../../static/img/icon_youhuiquan.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" @click="gonavigateTo('myAppraise')">
  99. <view class="leftView">
  100. <image src="../../static/img/icon_pingjia.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 class="grayline"></view> -->
  106. <!-- <view class="rowBox">
  107. <view class="leftView">
  108. <image src="../../static/img/icon_yaoqing.png" mode="" class="liftIcon"></image>
  109. <view class="rowTitle">邀请有礼</view>
  110. </view>
  111. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  112. </view> -->
  113. </view>
  114. <!-- 关于 我们 -->
  115. <view class="rowBoxBg">
  116. <view class="rowBox">
  117. <view class="leftView">
  118. <image src="../../static/img/icon_dianhua.png" mode="" class="liftIcon"></image>
  119. <view class="rowTitle">联系我们</view>
  120. </view>
  121. <view class="rightView" @click="call(numList.tAbouts.contents)">
  122. <view style="color: #666666; font-size: 28rpx; margin-right: 20rpx;">{{numList.tAbouts.contents}}</view>
  123. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  124. </view>
  125. </view>
  126. <view class="grayline"></view>
  127. <view class="rowBox" @click="gonavigateTo('feedBack')">
  128. <view class="leftView">
  129. <image src="../../static/img/icon_fankui.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 class="grayline"></view>
  135. <view class="rowBox" @click="gonavigateTo('aboutMe')">
  136. <view class="leftView">
  137. <image src="../../static/img/icon_guanyu.png" mode="" class="liftIcon"></image>
  138. <view class="rowTitle">关于我们</view>
  139. </view>
  140. <image src="../../static/img/rightArrow.png" mode="" class="rightArrow"></image>
  141. </view>
  142. </view>
  143. </view>
  144. </template>
  145. <script>
  146. export default {
  147. data() {
  148. return {
  149. ueserInfo: '',
  150. shopData: '',
  151. numList: '',
  152. uid:'',
  153. }
  154. },
  155. onLoad() {
  156. },
  157. onShow() {
  158. this.$common.isUserId()
  159. this.ueserInfo = uni.getStorageSync("logodata");
  160. this.shopData = uni.getStorageSync("shopData");
  161. this.uid = uni.getStorageSync("logodata").uid;
  162. if (this.uid) {
  163. this.queryMyDetail();
  164. }
  165. },
  166. methods: {
  167. goSet(){
  168. uni.navigateTo({
  169. url:'setup?phone='+this.numList.tMember.phone +'&nickName='+this.numList.tMember.nickName+'&name='+this.numList.tMember.name
  170. })
  171. },
  172. call(e) {
  173. // console.log(e);
  174. uni.makePhoneCall({
  175. phoneNumber: e
  176. });
  177. },
  178. goorder(num) {
  179. uni.navigateTo({
  180. url: '../order/myorder?num=' + num
  181. })
  182. },
  183. login() {
  184. uni.navigateTo({
  185. url: '../login/login'
  186. })
  187. },
  188. queryMyDetail() {
  189. uni.showLoading({
  190. title: '加载中'
  191. })
  192. this.$http('worldKeepCar/keepCarMy/queryMyDetail', {
  193. }, 'GET').then(res => {
  194. uni.hideLoading();
  195. this.numList = res.data
  196. })
  197. },
  198. gonavigateTo(url) {
  199. uni.navigateTo({
  200. url: url
  201. })
  202. }
  203. }
  204. }
  205. </script>
  206. <style scoped>
  207. .box {
  208. min-height: 100vh;
  209. background: linear-gradient(180deg, #FFEDEA 0%, #F4F5F7 100%);
  210. padding: 0 24rpx 60rpx;
  211. }
  212. .flex {
  213. display: flex;
  214. }
  215. .headerBox {
  216. padding-top: 14rpx;
  217. }
  218. .headerImg {
  219. width: 90rpx;
  220. height: 90rpx;
  221. border-radius: 50%;
  222. }
  223. .setImg {
  224. width: 38rpx;
  225. height: 38rpx;
  226. margin-top: 25rpx;
  227. }
  228. .headerBox {
  229. display: flex;
  230. justify-content: space-between;
  231. }
  232. .headerLeft {
  233. display: flex;
  234. }
  235. .nickName {
  236. padding-left: 20rpx;
  237. line-height: 90rpx;
  238. color: #3C3C3C;
  239. font-size: 32rpx;
  240. }
  241. .orderBox {
  242. margin-top: 30rpx;
  243. background: #FFFFFF;
  244. padding: 30rpx 0rpx;
  245. border-radius: 10rpx;
  246. }
  247. .orderTitleBg {
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: center;
  251. }
  252. .orderTitle {
  253. font-size: 30rpx;
  254. color: #333333;
  255. font-weight: bold;
  256. padding-left: 20rpx;
  257. }
  258. .orderAll {
  259. display: flex;
  260. justify-content: space-between;
  261. align-items: center;
  262. }
  263. .orderLine {
  264. width: 25%;
  265. text-align: center;
  266. }
  267. .orderLineImg {
  268. width: 44rpx;
  269. height: 44rpx;
  270. }
  271. .orderLineTxt {
  272. font-size: 24rpx;
  273. color: #333333;
  274. }
  275. .orderImgBox {
  276. text-align: center;
  277. position: relative;
  278. }
  279. .orderLIneBox {
  280. display: flex;
  281. justify-content: space-between;
  282. padding-top: 30rpx;
  283. }
  284. .orderNum {
  285. line-height: 26rpx;
  286. background: #FF4F00;
  287. padding: 0 8rpx;
  288. border-radius: 13rpx;
  289. color: #FFFFFF;
  290. font-size: 20rpx;
  291. position: absolute;
  292. top: -5rpx;
  293. right: 38rpx;
  294. z-index: 11;
  295. }
  296. .rightArrow {
  297. margin-right: 20rpx;
  298. width: 12rpx;
  299. height: 20rpx;
  300. }
  301. .rowBoxBg {
  302. margin-top: 30rpx;
  303. background: #FFFFFF;
  304. /* padding: 30rpx 0rpx; */
  305. border-radius: 10rpx;
  306. }
  307. .rowBox {
  308. display: flex;
  309. justify-content: space-between;
  310. background: #FFFFFF;
  311. padding: 30rpx 0rpx;
  312. border-radius: 10rpx;
  313. align-items: center;
  314. }
  315. .leftView {
  316. display: flex;
  317. align-items: center;
  318. }
  319. .rightView{
  320. display: flex;
  321. align-items: center;
  322. }
  323. .liftIcon {
  324. width: 38rpx;
  325. height: 38rpx;
  326. margin: 0rpx 20rpx;
  327. }
  328. .rowTitle {
  329. color: #3C3C3C;
  330. font-size: 28rpx;
  331. }
  332. .grayline{
  333. margin-left: 77rpx;
  334. margin-right: 20rpx;
  335. background-color: #F4F5F7;
  336. height: 2rpx;
  337. }
  338. </style>