特易招,招聘小程序
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.

354 lines
6.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="page">
  3. <navbar title="个人中心" />
  4. <view class="head">
  5. <view class="headImage">
  6. <image src="" mode=""></image>
  7. </view>
  8. <view class="info">
  9. <view class="name">
  10. 倾心.
  11. </view>
  12. <!-- <view class="vip">
  13. VIP1
  14. </view> -->
  15. <view class="tips">
  16. 今天是您来的的第32天
  17. </view>
  18. </view>
  19. <view class="headBtn" @click="headBtn">
  20. 角色切换
  21. </view>
  22. <view class="setting">
  23. <uv-icon name="setting" size="40rpx"></uv-icon>
  24. </view>
  25. </view>
  26. <!-- 酒店 -->
  27. <view class="user">
  28. <view class="line">
  29. <view class="item">
  30. <view class="image">
  31. <image src="/static/image/center/1.png" mode=""></image>
  32. </view>
  33. <view class="">
  34. 余额3000
  35. </view>
  36. </view>
  37. <view class="item">
  38. <view class="image">
  39. <image src="/static/image/center/4.png" mode=""></image>
  40. </view>
  41. <view class="">
  42. 押金30000
  43. </view>
  44. </view>
  45. </view>
  46. <view class="line grid">
  47. <view class="title">
  48. 我的服务
  49. </view>
  50. <uv-grid :col="4" :border="false">
  51. <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')">
  52. <!-- <image class="image" src="/static/image/center/7.png" mode=""></image> -->
  53. <text class="grid-text">会员充值</text>
  54. </uv-grid-item>
  55. <uv-grid-item @click="$utils.redirectTo('/index/order')">
  56. <!-- <image class="image" src="/static/image/center/8.png" mode=""></image> -->
  57. <text class="grid-text">获取积分</text>
  58. </uv-grid-item>
  59. <uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+0)">
  60. <!-- <image class="image" src="/static/image/center/5.png" mode=""></image> -->
  61. <text class="grid-text">积分记录</text>
  62. </uv-grid-item>
  63. <uv-grid-item @click="$utils.navigateTo('/pages_order/order/refundsOrExchange?index='+1)">
  64. <!-- <image class="image" src="/static/image/center/7.png" mode=""></image> -->
  65. <text class="grid-text">实名认证</text>
  66. </uv-grid-item>
  67. </uv-grid>
  68. </view>
  69. </view>
  70. <tabber select="4" />
  71. </view>
  72. </template>
  73. <script>
  74. import tabber from '@/components/base/tabbar.vue'
  75. import {
  76. mapGetters
  77. } from 'vuex'
  78. import userShopCommission from '@/components/userShop/userShopCommission.vue'
  79. export default {
  80. components: {
  81. tabber,
  82. userShopCommission,
  83. },
  84. computed: {
  85. ...mapGetters(['userShop']),
  86. customStyle1() {
  87. return {
  88. height: '60rpx',
  89. background: '#FFF',
  90. color: '#000000',
  91. fontSize: '36rpx',
  92. borderRadius: '40rpx', //圆角
  93. // nvue中必须是下方的写法
  94. 'border-top-right-radius': '40rpx',
  95. 'border-bottom-left-radius': '40rpx',
  96. 'border-bottom-right-radius': '40rpx',
  97. 'width': '150rpx',
  98. }
  99. },
  100. customStyle2() {
  101. return {
  102. height: '60rpx',
  103. background: '#fd5100',
  104. color: '#FFF',
  105. fontSize: '34px',
  106. borderRadius: '40rpx', //圆角
  107. // nvue中必须是下方的写法
  108. 'border-top-right-radius': '40rpx',
  109. 'border-bottom-left-radius': '40rpx',
  110. 'border-bottom-right-radius': '40rpx',
  111. 'width': '150rpx',
  112. }
  113. }
  114. },
  115. data() {
  116. return {
  117. show: false,
  118. }
  119. },
  120. methods: {
  121. headBtn() {
  122. let self = this
  123. uni.showModal({
  124. title: '演示切换角色之后的效果',
  125. success(res) {
  126. if (res.confirm) {
  127. self.$store.state.shop = !self.$store.state.shop
  128. }
  129. }
  130. })
  131. },
  132. // 联系客服按钮回调
  133. contactUs() {
  134. this.show = true
  135. },
  136. confirm() {
  137. this.show = false
  138. },
  139. cancle() {
  140. this.show = false
  141. },
  142. }
  143. }
  144. </script>
  145. <style scoped lang="scss">
  146. .page {
  147. .warp {
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. height: 100%;
  152. }
  153. .rect {
  154. width: 600rpx;
  155. height: 300rpx;
  156. background-color: #fff;
  157. border-radius: 20rpx;
  158. overflow: hidden;
  159. .title {
  160. padding: 10rpx 0 0 15rpx;
  161. background-color: #fd5100;
  162. color: #FFF;
  163. text-align: left;
  164. width: 100%;
  165. height: 18%;
  166. font-size: 36rpx;
  167. }
  168. .center {
  169. height: 40%;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. font-size: 36rpx;
  174. }
  175. .bottom {
  176. display: flex;
  177. justify-content: center;
  178. gap: 50rpx;
  179. }
  180. }
  181. }
  182. image {
  183. width: 100%;
  184. height: 100%;
  185. }
  186. .head {
  187. display: flex;
  188. background-color: #fff;
  189. padding: 40rpx 20rpx;
  190. align-items: center;
  191. position: relative;
  192. .headImage {
  193. width: 120rpx;
  194. height: 120rpx;
  195. background-image: url(/static/image/center/3.png);
  196. background-size: 100% 100%;
  197. overflow: hidden;
  198. border-radius: 50%;
  199. margin-right: 40rpx;
  200. }
  201. .info {
  202. font-size: 28rpx;
  203. .vip {
  204. background-color: #FCCC92;
  205. color: #FA6239;
  206. width: 100rpx;
  207. display: flex;
  208. justify-content: center;
  209. align-items: center;
  210. height: 40rpx;
  211. border-radius: 20rpx;
  212. margin-top: 20rpx;
  213. }
  214. .name {
  215. font-size: 32rpx;
  216. }
  217. .tips {
  218. font-size: 26rpx;
  219. color: #ABABAB;
  220. }
  221. }
  222. .headBtn {
  223. margin-left: auto;
  224. padding: 15rpx 20rpx;
  225. background-color: $uni-color;
  226. color: #fff;
  227. border-radius: 20rpx;
  228. margin-top: 50rpx;
  229. }
  230. .setting {
  231. position: absolute;
  232. right: 50rpx;
  233. top: 50rpx;
  234. }
  235. }
  236. .userShop {
  237. .userList {
  238. .title {
  239. font-size: 32rpx;
  240. font-weight: 900;
  241. padding: 20rpx;
  242. }
  243. .list {
  244. display: flex;
  245. flex-wrap: wrap;
  246. .item {
  247. width: 270rpx;
  248. margin: 20rpx;
  249. display: flex;
  250. flex-direction: column;
  251. padding: 40rpx 30rpx;
  252. background-color: #fff;
  253. border-radius: 30rpx;
  254. line-height: 60rpx;
  255. .name {}
  256. .num {
  257. color: $uni-color;
  258. font-weight: 600;
  259. font-size: 28rpx;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. .user {
  266. .line {
  267. display: flex;
  268. background-color: #fff;
  269. margin-top: 20rpx;
  270. padding: 20rpx 0;
  271. .item {
  272. flex: 1;
  273. display: flex;
  274. justify-content: center;
  275. align-items: center;
  276. padding: 20rpx 0;
  277. &:nth-child(1) {
  278. border-right: 1px solid #00000013;
  279. }
  280. .image {
  281. width: 100rpx;
  282. height: 70rpx;
  283. margin-right: 20rpx;
  284. }
  285. }
  286. }
  287. .grid {
  288. flex-direction: column;
  289. font-size: 26rpx;
  290. padding: 20rpx;
  291. .title {
  292. margin-bottom: 30rpx;
  293. font-size: 28rpx;
  294. font-weight: 600;
  295. }
  296. .image {
  297. width: 70rpx;
  298. height: 70rpx;
  299. margin-bottom: 10rpx;
  300. }
  301. text {
  302. text-align: center;
  303. width: 120rpx;
  304. }
  305. }
  306. }
  307. </style>