me.vue 9.4 KB

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