me.vue 9.5 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?couContent='+numList.aboutus.contents)">
  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. console.log('url',url);
  197. uni.navigateTo({
  198. url: url
  199. })
  200. }
  201. }
  202. }
  203. </script>
  204. <style scoped>
  205. .box {
  206. min-height: 100vh;
  207. background: linear-gradient(180deg, #FFEDEA 0%, #F4F5F7 100%);
  208. padding: 0 24rpx 60rpx;
  209. }
  210. .flex {
  211. display: flex;
  212. }
  213. .headerBox {
  214. padding-top: 14rpx;
  215. }
  216. .headerImg {
  217. width: 90rpx;
  218. height: 90rpx;
  219. border-radius: 50%;
  220. }
  221. .setImg {
  222. width: 38rpx;
  223. height: 38rpx;
  224. margin-top: 25rpx;
  225. }
  226. .headerBox {
  227. display: flex;
  228. justify-content: space-between;
  229. }
  230. .headerLeft {
  231. display: flex;
  232. }
  233. .nickName {
  234. padding-left: 20rpx;
  235. line-height: 90rpx;
  236. color: #3C3C3C;
  237. font-size: 32rpx;
  238. }
  239. .orderBox {
  240. margin-top: 30rpx;
  241. background: #FFFFFF;
  242. padding: 30rpx 0rpx;
  243. border-radius: 10rpx;
  244. }
  245. .orderTitleBg {
  246. display: flex;
  247. justify-content: space-between;
  248. align-items: center;
  249. }
  250. .orderTitle {
  251. font-size: 30rpx;
  252. color: #333333;
  253. font-weight: bold;
  254. padding-left: 20rpx;
  255. }
  256. .orderAll {
  257. display: flex;
  258. justify-content: space-between;
  259. align-items: center;
  260. }
  261. .orderLine {
  262. width: 25%;
  263. text-align: center;
  264. }
  265. .orderLineImg {
  266. width: 44rpx;
  267. height: 44rpx;
  268. }
  269. .orderLineTxt {
  270. font-size: 24rpx;
  271. color: #333333;
  272. }
  273. .orderImgBox {
  274. text-align: center;
  275. position: relative;
  276. }
  277. .orderLIneBox {
  278. display: flex;
  279. justify-content: space-between;
  280. padding-top: 30rpx;
  281. }
  282. .orderNum {
  283. line-height: 26rpx;
  284. background: #FF4F00;
  285. padding: 0 8rpx;
  286. border-radius: 13rpx;
  287. color: #FFFFFF;
  288. font-size: 20rpx;
  289. position: absolute;
  290. top: -5rpx;
  291. right: 38rpx;
  292. z-index: 11;
  293. }
  294. .rightArrow {
  295. margin-right: 20rpx;
  296. width: 12rpx;
  297. height: 20rpx;
  298. }
  299. .rowBoxBg {
  300. margin-top: 30rpx;
  301. background: #FFFFFF;
  302. /* padding: 30rpx 0rpx; */
  303. border-radius: 10rpx;
  304. }
  305. .rowBox {
  306. display: flex;
  307. justify-content: space-between;
  308. background: #FFFFFF;
  309. padding: 30rpx 0rpx;
  310. border-radius: 10rpx;
  311. align-items: center;
  312. }
  313. .leftView {
  314. display: flex;
  315. align-items: center;
  316. }
  317. .rightView{
  318. display: flex;
  319. align-items: center;
  320. }
  321. .liftIcon {
  322. width: 38rpx;
  323. height: 38rpx;
  324. margin: 0rpx 20rpx;
  325. }
  326. .rowTitle {
  327. color: #3C3C3C;
  328. font-size: 28rpx;
  329. }
  330. .grayline{
  331. margin-left: 77rpx;
  332. margin-right: 20rpx;
  333. background-color: #F4F5F7;
  334. height: 2rpx;
  335. }
  336. </style>