me.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <template>
  2. <view class="box">
  3. <!-- <view @click="login">
  4. 登录
  5. </view> -->
  6. <view class="headerBox">
  7. <view class="headerLeft">
  8. <image :src="ueserInfo.memberInfo.headUrl" mode="" class="headerImg" v-if="ueserInfo.memberInfo.headUrl"></image>
  9. <!-- <image src="../../static/img/pic_def_ava.png" mode="" class="headerImg" v-else></image> -->
  10. <view class="nickName">{{ueserInfo.memberInfo.nickName}}</view>
  11. </view>
  12. <view>
  13. <!-- <image src="../../static/img/icon_set.png" mode="" class="setImg" @click="gonavigateTo('../me/setup')"></image> -->
  14. </view>
  15. </view>
  16. <view class="meLineBox2">
  17. <view class="meLine2" @click="gonavigateTo('../me/scGoodsList')">
  18. <!-- <image src="../../static/img/icon_star.png" mode="" class="maintainBottomImg"></image> -->
  19. <view class="maintainBottomTxt">商品收藏</view>
  20. </view>
  21. <view class="meLine2" @click="gonavigateTo('../me/gzshopList')">
  22. <!-- <image src="../../static/img/my_icon_store.png" mode="" class="maintainBottomImg"></image> -->
  23. <view class="maintainBottomTxt">门店关注</view>
  24. </view>
  25. <view class="meLine2" @click="gonavigateTo('../me/footprint')">
  26. <!-- <image src="../../static/img/my_icon_zuji.png" mode="" class="maintainBottomImg"></image> -->
  27. <view class="maintainBottomTxt">我的足迹</view>
  28. </view>
  29. <view class="meLine2" @click="gonavigateTo('discountCard')">
  30. <!-- <image src="../../static/img/icon_youhui.png" mode="" class="maintainBottomImg"></image> -->
  31. <view class="maintainBottomTxt">优惠券</view>
  32. </view>
  33. </view>
  34. <!-- 我的订单 -->
  35. <view class="orderBox">
  36. <view class="orderTitle">我的订单</view>
  37. <view class="orderLIneBox">
  38. <view class="orderLine" @click="goorder(1)">
  39. <view class="orderImgBox">
  40. <view class="orderNum" v-show="numList.sheetOne>0">{{numList.sheetOne}}</view>
  41. <!-- <image src="../../static/img/my_icon_2.png" mode="" class="orderLineImg"></image> -->
  42. </view>
  43. <view class="orderLineTxt">待付款</view>
  44. </view>
  45. <view class="orderLine" @click="goorder(2)">
  46. <view class="orderImgBox">
  47. <view class="orderNum" v-show="numList.sheetTwo>0">{{numList.sheetTwo}}</view>
  48. <!-- <image src="../../static/img/my_icon_1.png" mode="" class="orderLineImg"></image> -->
  49. </view>
  50. <view class="orderLineTxt">待服务</view>
  51. </view>
  52. <view class="orderLine" @click="goorder(4)">
  53. <view class="orderImgBox">
  54. <view class="orderNum" v-show="numList.sheetFour>0">{{numList.sheetFour}}</view>
  55. <!-- <image src="../../static/img/my_icon_5.png" mode="" class="orderLineImg"></image> -->
  56. </view>
  57. <view class="orderLineTxt">待评价</view>
  58. </view>
  59. <view class="orderLine" @click="goorder(5)">
  60. <view class="orderImgBox">
  61. <!-- <image src="../../static/img/qubu.png" mode="" class="orderLineImg"></image> -->
  62. </view>
  63. <view class="orderLineTxt">全部</view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 常用功能 -->
  68. <view class="orderBox">
  69. <view class="orderTitle">常用功能</view>
  70. <view class="orderLIneBox">
  71. <view class="orderLine" @click="gonavigateTo('../car/carArchives')">
  72. <view class="orderImgBox">
  73. <!-- <image src="../../static/img/my_icon_staff.png" mode="" class="orderLineImg"></image> -->
  74. </view>
  75. <view class="orderLineTxt">爱车档案</view>
  76. </view>
  77. <view class="orderLine" @click="gonavigateTo('myAppraise')">
  78. <view class="orderImgBox">
  79. <!-- <image src="../../static/img/qingjia.png" mode="" class="orderLineImg"></image> -->
  80. </view>
  81. <view class="orderLineTxt">我的评价</view>
  82. </view>
  83. <view class="orderLine" @click="gonavigateTo('myIntegral')">
  84. <view class="orderImgBox">
  85. <!-- <image src="../../static/img/my_icon_review.png" mode="" class="orderLineImg"></image> -->
  86. </view>
  87. <view class="orderLineTxt">我的积分</view>
  88. </view>
  89. <view class="orderLine" @click="gonavigateTo('feedBack')">
  90. <view class="orderImgBox">
  91. <!-- <image src="../../static/img/yjfk.png" mode="" class="orderLineImg"></image> -->
  92. </view>
  93. <view class="orderLineTxt">意见反馈</view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 客服电话: -->
  98. <view class="phone" @click="call">
  99. <span class="phoneSpan1">客服电话:</span>
  100. <span class="phoneSpan2">{{numList.customerService.contents}}</span>
  101. </view>
  102. </view>
  103. </template>
  104. <script>
  105. export default {
  106. data() {
  107. return {
  108. ueserInfo:'',
  109. shopData:'',
  110. numList:'',
  111. }
  112. },
  113. onLoad() {
  114. },
  115. onShow() {
  116. this.$common.isUserId()
  117. this.ueserInfo=uni.getStorageSync("logodata");
  118. this.shopData=uni.getStorageSync("shopData");
  119. this.queryMyDetail();
  120. },
  121. methods: {
  122. call(){
  123. uni.makePhoneCall({
  124. phoneNumber: this.numList.customerService.contents
  125. });
  126. },
  127. goorder(num){
  128. uni.navigateTo({
  129. url:'../order/myorder?num='+num
  130. })
  131. },
  132. login(){
  133. uni.navigateTo({
  134. url:'../login/login'
  135. })
  136. },
  137. queryMyDetail(){
  138. uni.showLoading({ });
  139. this.$http('miniAppMyBMemberCar/queryMyDetail', {
  140. },'GET').then(res => {
  141. uni.hideLoading();
  142. this.numList=res.data
  143. })
  144. },
  145. gonavigateTo(url){
  146. uni.navigateTo({
  147. url:url
  148. })
  149. }
  150. }
  151. }
  152. </script>
  153. <style scoped>
  154. .box{
  155. min-height: 100vh;
  156. background: linear-gradient(180deg, #FEF1E9 0%, #F4F5F7 100%);
  157. padding: 0 24rpx;
  158. }
  159. .flex{
  160. display: flex;
  161. }
  162. .headerBox{
  163. padding-top: 14rpx;
  164. }
  165. .headerImg{
  166. width: 90rpx;height: 90rpx;border-radius: 50%;
  167. }
  168. .setImg{
  169. width: 38rpx;height: 38rpx;margin-top: 25rpx;
  170. }
  171. .headerBox{
  172. display: flex;
  173. justify-content: space-between;
  174. }
  175. .headerLeft{
  176. display: flex;
  177. }
  178. .nickName{
  179. padding-left: 20rpx;line-height: 90rpx;color: #3C3C3C;font-size: 32rpx;
  180. }
  181. .shopBox{
  182. background: url('http://phone.66km.cn:8088/thFiles/41A4AA99-0EE8-47DE-88AB-2221820C346F.png') no-repeat;
  183. background-size: 100%;
  184. width: 702rpx;
  185. height: 80rpx;
  186. line-height: 80rpx;
  187. margin-top: 30rpx;
  188. display: flex;
  189. justify-content: space-between;
  190. }
  191. .shopName{
  192. color: #EBCE8F;padding-left: 20rpx;font-size: 28rpx;
  193. }
  194. .shopImg{
  195. width: 30rpx;height: 30rpx;
  196. margin-right: 20rpx;margin-top: 25rpx;
  197. }
  198. .maintain{
  199. margin-top: 20rpx;
  200. background: #FFFFFF;
  201. border-radius: 10rpx;
  202. padding: 25rpx 15rpx;
  203. }
  204. .maintainTopIcon{
  205. width: 56rpx;height: 56rpx;
  206. }
  207. .maintainTxt{
  208. font-size: 30rpx;
  209. color: #3C3C3C;
  210. line-height: 56rpx;
  211. padding-left: 20rpx;
  212. }
  213. .maintainTopNum{
  214. font-size: 30rpx;line-height: 56rpx;
  215. font-weight: 600;
  216. color: #FF4F00;
  217. }
  218. .shopcar{
  219. display: flex;
  220. justify-content: space-between;
  221. width: 310rpx;
  222. }
  223. .shuxian{
  224. width: 1px;
  225. height: 36rpx;
  226. background-color:#EEEEEE ;
  227. margin-top:10rpx ;
  228. }
  229. .shuxian2{
  230. width: 1px;
  231. height: 36rpx;
  232. background-color:#EEEEEE ;
  233. margin-top:4rpx ;
  234. }
  235. .maintainTop{
  236. display: flex;
  237. justify-content: space-between;
  238. padding-right: 10rpx;
  239. border-bottom: 1px solid #EEEEEE;
  240. padding-bottom: 20rpx;
  241. }
  242. .maintainBottomImg{
  243. width: 48rpx;
  244. height: 48rpx;
  245. }
  246. .maintainBottomTxt{
  247. font-size: 28rpx;
  248. color: #000000;
  249. padding-left: 6rpx;
  250. }
  251. .maintainBottom{
  252. display: flex;line-height: 42rpx;
  253. padding-top: 20rpx;justify-content: space-between;
  254. }
  255. .maintainBottomNum{
  256. font-size: 24pxr;
  257. color: #999999;
  258. padding-left: 6rpx;
  259. }
  260. .orderBox{
  261. margin-top: 30rpx;
  262. background: #FFFFFF;
  263. padding: 30rpx 0rpx;
  264. border-radius: 10rpx;
  265. }
  266. .orderTitle{
  267. font-size: 30rpx;
  268. color: #3C3C3C;
  269. font-weight: 600;
  270. padding-left: 20rpx;
  271. }
  272. .orderLine{
  273. width: 25%;
  274. text-align: center;
  275. }
  276. .orderLineImg{
  277. width: 60rpx;
  278. height: 60rpx;
  279. }
  280. .orderLineTxt{
  281. font-size: 26rpx;
  282. color: #3C3C3C;
  283. }
  284. .orderImgBox{
  285. text-align: center;
  286. position: relative;
  287. }
  288. .orderLIneBox{
  289. display: flex;
  290. justify-content: space-between;
  291. padding-top: 30rpx;
  292. }
  293. .orderNum{
  294. line-height: 26rpx;
  295. background: #FF4F00;
  296. padding: 0 8rpx;
  297. border-radius: 13rpx;
  298. color: #FFFFFF;
  299. font-size: 20rpx;
  300. position: absolute;
  301. top: -5rpx;
  302. right: 38rpx;
  303. z-index: 11;
  304. }
  305. .phone{
  306. text-align: center;
  307. font-size: 28rpx;
  308. padding-top: 30rpx;
  309. color: #3C3C3C;
  310. }
  311. .phoneSpan2{
  312. color: #3F90F7;
  313. }
  314. .meLineBox2{
  315. display: flex;
  316. justify-content: space-between;
  317. padding-top: 50rpx;
  318. padding-bottom: 10rpx;
  319. }
  320. .meLine2{
  321. text-align: center;
  322. width: 25%;
  323. }
  324. </style>