瑶都万能墙
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.

290 lines
5.1 KiB

4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="page">
  3. <view class="beijin">
  4. <view class=" profile">
  5. <view class="o">
  6. <view class="headImage">
  7. <!-- <img src="https://k.sinaimg.cn/n/sinakd20117/0/w800h800/20240127/889b-4c8a7876ebe98e4d619cdaf43fceea7c.jpg/w700d1q75cms.jpg"
  8. alt="" /> -->
  9. <image
  10. :src="userInfo.headImage"
  11. mode="aspectFill"></image>
  12. </view>
  13. <view class="setUp"
  14. @click="$utils.navigateTo('/pages_order/mine/setting')">
  15. 设置
  16. </view>
  17. </view>
  18. <view class="account">
  19. <view class="number">
  20. {{ userInfo.nickName || '墙友1712378974678376' }}
  21. </view>
  22. <view class="gender">
  23. <uv-icon
  24. :name="sex[userInfo.sex].name"
  25. size="34rpx"
  26. :color="sex[userInfo.sex].color"></uv-icon>
  27. </view>
  28. <view class="authentication">
  29. {{ auth[userInfo.idCardOpen] || '未认证' }}
  30. </view>
  31. </view>
  32. <view class="Days">
  33. <!-- 你已经成为狐友133天啦~ -->
  34. </view>
  35. <view class="box">
  36. <view class="fenst"
  37. @click="$utils.navigateTo('/pages_order/mine/promotion')">
  38. <view class="digit">
  39. <uv-icon
  40. size="40rpx"
  41. color="#black"
  42. name="grid"></uv-icon>
  43. </view>
  44. <view class="fans">
  45. 二维码
  46. </view>
  47. </view>
  48. <view class="shut">
  49. |
  50. </view>
  51. <view class="fenst"
  52. @click="$utils.navigateTo('/pages_order/mine/fans')">
  53. <view class="digit">
  54. {{ userInfo.intentionNum }}
  55. </view>
  56. <view class="fans">
  57. 粉丝
  58. </view>
  59. </view>
  60. <view class="shut">
  61. |
  62. </view>
  63. <view class="fenst">
  64. <view class="digit">
  65. {{ userInfo.price }}
  66. </view>
  67. <view class="fans">
  68. 余额
  69. </view>
  70. </view>
  71. <view class="shut">
  72. |
  73. </view>
  74. <view class="fenst">
  75. <view class="digit">
  76. {{ userInfo.integerPrice }}
  77. </view>
  78. <view class="fans">
  79. 积分
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="Content">
  86. <uv-tabs :list="tabs" @click="click"
  87. :activeStyle="{color : '#000', fontWeight : 900}"
  88. lineColor="#5baaff"
  89. lineHeight="8rpx"
  90. lineWidth="50rpx"></uv-tabs>
  91. </view>
  92. <view v-if="type == 0">
  93. <dynamicItemEdit
  94. :key="index"
  95. @click="$utils.navigateTo('/pages_order/post/addPost?id=' + item.id)"
  96. v-for="(item, index) in list"
  97. :item="item"
  98. del
  99. @del="delDynamic(item.id)"
  100. />
  101. </view>
  102. <view class="no-data">
  103. 暂未开放
  104. </view>
  105. <tabber select="3" />
  106. </view>
  107. </template>
  108. <script>
  109. import tabber from '@/components/base/tabbar.vue'
  110. import dynamicItemEdit from '@/components/list/dynamic/dynamicItemEdit.vue'
  111. import mixinsList from '@/mixins/list.js'
  112. import mixinsSex from '@/mixins/sex.js'
  113. import { mapState } from 'vuex'
  114. export default {
  115. mixins: [mixinsList, mixinsSex],
  116. components: {
  117. tabber,
  118. dynamicItemEdit,
  119. },
  120. computed: {
  121. ...mapState(['userInfo']),
  122. },
  123. data() {
  124. return {
  125. tabs: [
  126. {
  127. name: '帖子',
  128. },
  129. {
  130. name: '租房',
  131. },
  132. {
  133. name: '招聘',
  134. },
  135. {
  136. name: '店铺',
  137. },
  138. ],
  139. mixinsListApi : 'getMyPostPage',
  140. auth : ['审核中', '个人认证', '店铺认证'],
  141. type : 0,
  142. }
  143. },
  144. onShow() {
  145. this.$store.commit('getUserInfo')
  146. },
  147. methods: {
  148. click({index}) {
  149. this.type = index
  150. },
  151. delDynamic(postId){
  152. let self = this
  153. uni.showModal({
  154. title: '确认要删除吗?',
  155. success(e) {
  156. if(e.confirm){
  157. self.$api('deletePost', {
  158. postId
  159. }, res => {
  160. if(res.code == 200){
  161. self.getData()
  162. }
  163. })
  164. }
  165. }
  166. })
  167. },
  168. }
  169. }
  170. </script>
  171. <style scoped lang="scss">
  172. .page {
  173. .beijin {
  174. // background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73));
  175. background: linear-gradient($uni-color, #fff);
  176. background-color: black;
  177. color: black;
  178. .profile {
  179. padding: 40rpx;
  180. padding-top: 160rpx;
  181. .box {
  182. padding: 0rpx 10rpx;
  183. display: flex;
  184. align-items: center;
  185. text-align: center;
  186. .followWithnterest {
  187. .digit {
  188. padding: 20rpx;
  189. }
  190. .close {
  191. }
  192. }
  193. .shut{
  194. margin: 0rpx 20rpx;
  195. }
  196. .fenst {
  197. .digit {
  198. padding: 20rpx;
  199. }
  200. .fans {
  201. }
  202. }
  203. }
  204. .account {
  205. display: flex;
  206. align-items: center;
  207. .number {
  208. letter-spacing: 2rpx;
  209. margin-top: 10rpx;
  210. }
  211. .gender {
  212. margin: 20rpx 10rpx;
  213. }
  214. .authentication {
  215. font-size: 20rpx;
  216. }
  217. }
  218. .Days {
  219. margin-top: 15rpx;
  220. font-size: 22rpx;
  221. letter-spacing: 2rpx;
  222. }
  223. .o {
  224. display: flex;
  225. align-items: center;
  226. justify-content: space-between;
  227. .headImage {
  228. image {
  229. height: 100px;
  230. width: 100px;
  231. border-radius: 50%;
  232. }
  233. }
  234. .setUp {
  235. }
  236. }
  237. }
  238. }
  239. .Content {}
  240. .no-data{
  241. display: flex;
  242. justify-content: center;
  243. align-content: center;
  244. padding: 100rpx 0;
  245. color: #777;
  246. }
  247. }
  248. </style>