建材商城系统20241014
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

379 lines
8.4 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <!-- <navbar title="个人中心" /> -->
  4. <view class="head">
  5. <view class="headImage">
  6. <image :src="userInfo.headImage || '/static/image/center/headImage.png'" mode="aspectFill"></image>
  7. </view>
  8. <view class="info">
  9. <view v-if="isLogin">
  10. <view style="display: flex;gap: 20rpx;">
  11. <view class="name">
  12. {{userInfo.nickName || '未登录'}}
  13. </view>
  14. <view class="headBtn" @click="$utils.navigateTo('/pages_order/auth/wxUserInfo')">
  15. 修改资料
  16. <uv-icon name="edit-pen-fill" size="26rpx" color="#fff"></uv-icon>
  17. </view>
  18. </view>
  19. <view class="tips">
  20. 手机号<text>{{userInfo.phone || '未绑定'}}</text>
  21. </view>
  22. </view>
  23. <view v-else>
  24. <view class="login-btn" @tap.stop="$utils.toLogin()">
  25. <text>立即登录</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 酒店 -->
  31. <view class="user">
  32. <view class="line" @click="$utils.navigateTo('/pages_order/mine/purse')">
  33. <view class="item">
  34. <view class="image">
  35. <image src="/static/image/center/1.png" mode=""></image>
  36. </view>
  37. <view class="">
  38. 我的积分
  39. <p style="color:#DC2828; font-weight: 700;">{{ userInfo.money || 0 }}</p>
  40. </view>
  41. </view>
  42. <view class="item" @click="$utils.navigateTo('/pages_order/mine/purse')">
  43. <view class="image">
  44. <image src="/static/image/center/4.png" mode=""></image>
  45. </view>
  46. <view class="">
  47. 我的金额
  48. <p style="color:#DC2828;font-weight: 700">{{ userInfo.price || 0 }}</p>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="line">
  53. <view class="image-home"
  54. @click="$utils.navigateTo('/pages_order/order/fastCreateOrder')">
  55. <uv-swiper
  56. class="uv-swaip"
  57. height="240rpx"
  58. :list="[configList.banner_icon]"
  59. circular
  60. indicator="true"
  61. bgColor="#ffffff">
  62. </uv-swiper>
  63. </view>
  64. </view>
  65. <view class="line grid">
  66. <view class="title">
  67. 我的服务
  68. </view>
  69. <uv-grid :col="4" :border="false">
  70. <uv-grid-item @click="$utils.navigateTo('/index/order')">
  71. <image class="image" src="/static/image/center/12.png" mode=""></image>
  72. <text class="grid-text">我的订单</text>
  73. </uv-grid-item>
  74. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')">
  75. <image class="image" src="/static/image/center/12.png" mode=""></image>
  76. <text class="grid-text">我的地址</text>
  77. </uv-grid-item>
  78. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/individualTeam')">
  79. <image class="image" src="/static/image/center/8.png" mode=""></image>
  80. <text class="grid-text">我的分享</text>
  81. </uv-grid-item>
  82. <uv-grid-item @click="$utils.navigateTo('/pages_order/order/fastCreateOrder')">
  83. <image class="image" src="/static/image/center/7.png" mode=""></image>
  84. <text class="grid-text">快捷订单</text>
  85. </uv-grid-item>
  86. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/promotion')">
  87. <image class="image" src="/static/image/center/9.png" mode=""></image>
  88. <text class="grid-text">邀请好友</text>
  89. </uv-grid-item>
  90. <!-- <uv-grid-item @click="$utils.navigateTo('/pages_order/center/systemSet')">
  91. <image class="image" src="/static/image/center/6.png" mode=""></image>
  92. <text class="grid-text">系统设置</text>
  93. </uv-grid-item> -->
  94. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/help')">
  95. <image class="image" src="/static/image/center/7.png" mode=""></image>
  96. <text class="grid-text">帮助与反馈</text>
  97. </uv-grid-item>
  98. <uv-grid-item
  99. @click="$utils.navigateTo('/pages_order/mine/about')">
  100. <image class="image" src="/static/image/center/7.png" mode=""></image>
  101. <text class="grid-text">关于本程序</text>
  102. </uv-grid-item>
  103. <uv-grid-item @click="$store.commit('logout')">
  104. <image class="image" src="/static/image/center/logout.png" mode=""></image>
  105. <text class="grid-text">退出登录</text>
  106. </uv-grid-item>
  107. <!-- <uv-grid-item>
  108. <button open-type="contact" class="share">
  109. <image class="image" src="/static/image/center/5.png" mode=""></image>
  110. <text class="grid-text">联系客服</text>
  111. </button>
  112. </uv-grid-item> -->
  113. </uv-grid>
  114. </view>
  115. </view>
  116. <quick-order-entry
  117. ref="quickOrderEntry"
  118. bottom="50vh"
  119. />
  120. <kefu/>
  121. <tabber select="center" />
  122. </view>
  123. </template>
  124. <script>
  125. import tabber from '@/components/base/tabbar.vue'
  126. import QuickOrderEntry from '@/components/QuickOrderEntry.vue'
  127. export default {
  128. components: {
  129. tabber,
  130. QuickOrderEntry,
  131. },
  132. computed: {
  133. isLogin(){
  134. return this.userInfo && this.userInfo.id
  135. }
  136. },
  137. data() {
  138. return {
  139. list: [],
  140. }
  141. },
  142. onShow() {
  143. if(uni.getStorageSync('token')){
  144. // 刷新快捷下单信息
  145. this.$store.commit('getUserInfo')
  146. }
  147. },
  148. methods: {
  149. }
  150. }
  151. </script>
  152. <style scoped lang="scss">
  153. .page {
  154. .warp {
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. height: 100%;
  159. }
  160. .rect {
  161. width: 600rpx;
  162. height: 300rpx;
  163. background-color: #fff;
  164. border-radius: 20rpx;
  165. overflow: hidden;
  166. .title {
  167. padding: 10rpx 0 0 15rpx;
  168. background-color: #fd5100;
  169. color: #FFF;
  170. text-align: left;
  171. width: 100%;
  172. height: 18%;
  173. font-size: 36rpx;
  174. }
  175. .center {
  176. height: 40%;
  177. display: flex;
  178. justify-content: center;
  179. align-items: center;
  180. font-size: 36rpx;
  181. }
  182. .bottom {
  183. display: flex;
  184. justify-content: center;
  185. gap: 50rpx;
  186. }
  187. }
  188. }
  189. image {
  190. width: 100%;
  191. height: 100%;
  192. }
  193. .head {
  194. display: flex;
  195. background-color: #DC2828;
  196. padding: 0rpx 20rpx;
  197. align-items: center;
  198. position: relative;
  199. height: 300rpx;
  200. padding-top: 60rpx;
  201. .headImage {
  202. width: 120rpx;
  203. height: 120rpx;
  204. background-image: url(/static/image/center/3.png);
  205. background-size: 100% 100%;
  206. overflow: hidden;
  207. border-radius: 50%;
  208. margin-right: 40rpx;
  209. }
  210. .info {
  211. font-size: 28rpx;
  212. .vip {
  213. background-color: #FCCC92;
  214. color: #FA6239;
  215. width: 100rpx;
  216. display: flex;
  217. justify-content: center;
  218. align-items: center;
  219. height: 40rpx;
  220. border-radius: 20rpx;
  221. margin-top: 20rpx;
  222. }
  223. .name {
  224. font-size: 36rpx;
  225. color: #fff;
  226. margin-right: 20rpx;
  227. width: 240rpx;
  228. white-space: nowrap;
  229. overflow: hidden;
  230. text-overflow: ellipsis;
  231. }
  232. .tips {
  233. font-size: 26rpx;
  234. color: #fff;
  235. margin-top: 10rpx;
  236. }
  237. .login-btn {
  238. margin-top: 20rpx;
  239. background-color: #fff;
  240. color: #DC2828;
  241. padding: 10rpx 30rpx;
  242. border-radius: 30rpx;
  243. font-size: 28rpx;
  244. display: inline-block;
  245. width: 160rpx;
  246. text-align: center;
  247. }
  248. }
  249. .headBtn {
  250. color: #FFF;
  251. font-size: 26rpx;
  252. display: flex;
  253. align-items: center;
  254. }
  255. }
  256. .user {
  257. position: relative;
  258. z-index: 9;
  259. margin: 0 30rpx;
  260. margin-top: -60rpx;
  261. .line {
  262. display: flex;
  263. background-color: #fff;
  264. padding: 20rpx 0;
  265. align-content: center;
  266. margin-top: 20rpx;
  267. border-radius: 15rpx;
  268. .item {
  269. flex: 1;
  270. display: flex;
  271. justify-content: center;
  272. align-items: center;
  273. padding: 20rpx 0;
  274. &:nth-child(1) {
  275. border-right: 1px dotted #00000013;
  276. }
  277. .image {
  278. width: 150rpx;
  279. height: 135rpx;
  280. margin-right: 20rpx;
  281. }
  282. }
  283. .image-home{
  284. z-index: 1;
  285. width: 100%;
  286. }
  287. }
  288. .grid {
  289. flex-direction: column;
  290. font-size: 26rpx;
  291. padding: 20rpx;
  292. .title {
  293. margin-bottom: 30rpx;
  294. font-size: 28rpx;
  295. font-weight: 600;
  296. }
  297. .image {
  298. width: 50rpx;
  299. height: 50rpx;
  300. margin: 20rpx 0;
  301. }
  302. text {
  303. text-align: center;
  304. width: 120rpx;
  305. font-size: 24rpx;
  306. }
  307. .share {
  308. background: none;
  309. padding: 0;
  310. margin: 0;
  311. line-height: normal;
  312. border: none;
  313. display: flex;
  314. flex-direction: column;
  315. align-items: center;
  316. justify-content: center;
  317. &::after {
  318. border: none;
  319. }
  320. .image {
  321. width: 50rpx;
  322. height: 50rpx;
  323. margin: 20rpx 0;
  324. }
  325. .grid-text {
  326. text-align: center;
  327. width: 120rpx;
  328. font-size: 24rpx;
  329. }
  330. }
  331. }
  332. }
  333. </style>