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

293 lines
5.1 KiB

8 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
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
8 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/auth/wxUserInfo?back=1')">
  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="#fff"
  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. <dynamicItem
  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="2" />
  106. </view>
  107. </template>
  108. <script>
  109. import tabber from '@/components/base/tabbar.vue'
  110. import dynamicItem from '@/components/list/dynamic/dynamicItem.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. dynamicItem,
  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. getDataThen(list){
  152. list.forEach(n => {
  153. n.image = n.image ? n.image.split(',') : []
  154. })
  155. },
  156. delDynamic(postId){
  157. let self = this
  158. uni.showModal({
  159. title: '确认要删除吗?',
  160. success(e) {
  161. if(e.confirm){
  162. self.$api('deletePost', {
  163. postId
  164. }, res => {
  165. if(res.code == 200){
  166. self.getData()
  167. }
  168. })
  169. }
  170. }
  171. })
  172. },
  173. }
  174. }
  175. </script>
  176. <style scoped lang="scss">
  177. .page {
  178. .beijin {
  179. background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73));
  180. background-color: black;
  181. color: white;
  182. .profile {
  183. padding: 40rpx;
  184. padding-top: 160rpx;
  185. .box {
  186. padding: 5rpx 10rpx;
  187. display: flex;
  188. align-items: center;
  189. text-align: center;
  190. .followWithnterest {
  191. .digit {
  192. padding: 20rpx;
  193. }
  194. .close {
  195. }
  196. }
  197. .shut{
  198. margin: 0rpx 20rpx;
  199. }
  200. .fenst {
  201. .digit {
  202. padding: 20rpx;
  203. }
  204. .fans {
  205. }
  206. }
  207. }
  208. .account {
  209. display: flex;
  210. align-items: center;
  211. .number {
  212. letter-spacing: 2rpx;
  213. margin-top: 10rpx;
  214. }
  215. .gender {
  216. margin: 20rpx 10rpx;
  217. }
  218. .authentication {
  219. font-size: 20rpx;
  220. }
  221. }
  222. .Days {
  223. margin-top: 15rpx;
  224. font-size: 22rpx;
  225. letter-spacing: 2rpx;
  226. }
  227. .o {
  228. display: flex;
  229. align-items: center;
  230. justify-content: space-between;
  231. .headImage {
  232. image {
  233. height: 100px;
  234. width: 100px;
  235. border-radius: 50%;
  236. }
  237. }
  238. .setUp {
  239. }
  240. }
  241. }
  242. }
  243. .Content {}
  244. .no-data{
  245. display: flex;
  246. justify-content: center;
  247. align-content: center;
  248. padding: 100rpx 0;
  249. color: #777;
  250. }
  251. }
  252. </style>