建材商城系统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.

394 lines
8.9 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.price || 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.money || 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/fastOrderList')">
  83. <image class="image" src="/static/image/center/12.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. showQuickOrderMenu() {
  151. uni.showActionSheet({
  152. itemList: ['快捷下单', '我的快捷订单'],
  153. success: (res) => {
  154. if (res.tapIndex === 0) {
  155. // 跳转到快捷下单页面
  156. this.$utils.navigateTo('/pages_order/order/fastCreateOrder');
  157. } else if (res.tapIndex === 1) {
  158. // 跳转到快捷订单列表
  159. this.$utils.navigateTo('/pages_order/order/fastOrderList');
  160. }
  161. }
  162. });
  163. }
  164. }
  165. }
  166. </script>
  167. <style scoped lang="scss">
  168. .page {
  169. .warp {
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. height: 100%;
  174. }
  175. .rect {
  176. width: 600rpx;
  177. height: 300rpx;
  178. background-color: #fff;
  179. border-radius: 20rpx;
  180. overflow: hidden;
  181. .title {
  182. padding: 10rpx 0 0 15rpx;
  183. background-color: #fd5100;
  184. color: #FFF;
  185. text-align: left;
  186. width: 100%;
  187. height: 18%;
  188. font-size: 36rpx;
  189. }
  190. .center {
  191. height: 40%;
  192. display: flex;
  193. justify-content: center;
  194. align-items: center;
  195. font-size: 36rpx;
  196. }
  197. .bottom {
  198. display: flex;
  199. justify-content: center;
  200. gap: 50rpx;
  201. }
  202. }
  203. }
  204. image {
  205. width: 100%;
  206. height: 100%;
  207. }
  208. .head {
  209. display: flex;
  210. background-color: #DC2828;
  211. padding: 0rpx 20rpx;
  212. align-items: center;
  213. position: relative;
  214. height: 300rpx;
  215. padding-top: 60rpx;
  216. .headImage {
  217. width: 120rpx;
  218. height: 120rpx;
  219. background-image: url(/static/image/center/3.png);
  220. background-size: 100% 100%;
  221. overflow: hidden;
  222. border-radius: 50%;
  223. margin-right: 40rpx;
  224. }
  225. .info {
  226. font-size: 28rpx;
  227. .vip {
  228. background-color: #FCCC92;
  229. color: #FA6239;
  230. width: 100rpx;
  231. display: flex;
  232. justify-content: center;
  233. align-items: center;
  234. height: 40rpx;
  235. border-radius: 20rpx;
  236. margin-top: 20rpx;
  237. }
  238. .name {
  239. font-size: 36rpx;
  240. color: #fff;
  241. margin-right: 20rpx;
  242. width: 240rpx;
  243. white-space: nowrap;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. }
  247. .tips {
  248. font-size: 26rpx;
  249. color: #fff;
  250. margin-top: 10rpx;
  251. }
  252. .login-btn {
  253. margin-top: 20rpx;
  254. background-color: #fff;
  255. color: #DC2828;
  256. padding: 10rpx 30rpx;
  257. border-radius: 30rpx;
  258. font-size: 28rpx;
  259. display: inline-block;
  260. width: 160rpx;
  261. text-align: center;
  262. }
  263. }
  264. .headBtn {
  265. color: #FFF;
  266. font-size: 26rpx;
  267. display: flex;
  268. align-items: center;
  269. }
  270. }
  271. .user {
  272. position: relative;
  273. z-index: 9;
  274. margin: 0 30rpx;
  275. margin-top: -60rpx;
  276. .line {
  277. display: flex;
  278. background-color: #fff;
  279. padding: 20rpx 0;
  280. align-content: center;
  281. margin-top: 20rpx;
  282. border-radius: 15rpx;
  283. .item {
  284. flex: 1;
  285. display: flex;
  286. justify-content: center;
  287. align-items: center;
  288. padding: 20rpx 0;
  289. &:nth-child(1) {
  290. border-right: 1px dotted #00000013;
  291. }
  292. .image {
  293. width: 150rpx;
  294. height: 135rpx;
  295. margin-right: 20rpx;
  296. }
  297. }
  298. .image-home{
  299. z-index: 1;
  300. width: 100%;
  301. }
  302. }
  303. .grid {
  304. flex-direction: column;
  305. font-size: 26rpx;
  306. padding: 20rpx;
  307. .title {
  308. margin-bottom: 30rpx;
  309. font-size: 28rpx;
  310. font-weight: 600;
  311. }
  312. .image {
  313. width: 50rpx;
  314. height: 50rpx;
  315. margin: 20rpx 0;
  316. }
  317. text {
  318. text-align: center;
  319. width: 120rpx;
  320. font-size: 24rpx;
  321. }
  322. .share {
  323. background: none;
  324. padding: 0;
  325. margin: 0;
  326. line-height: normal;
  327. border: none;
  328. display: flex;
  329. flex-direction: column;
  330. align-items: center;
  331. justify-content: center;
  332. &::after {
  333. border: none;
  334. }
  335. .image {
  336. width: 50rpx;
  337. height: 50rpx;
  338. margin: 20rpx 0;
  339. }
  340. .grid-text {
  341. text-align: center;
  342. width: 120rpx;
  343. font-size: 24rpx;
  344. }
  345. }
  346. }
  347. }
  348. </style>