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

242 lines
4.3 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
8 months ago
8 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
8 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
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="followWithnterest">
  37. <view class="digit">
  38. 0
  39. </view>
  40. <view class="close">
  41. 关注
  42. </view>
  43. </view>
  44. <view class="shut">
  45. |
  46. </view>
  47. <view class="fenst"
  48. @click="$utils.navigateTo('/pages_order/mine/fans')">
  49. <view class="digit">
  50. 0
  51. </view>
  52. <view class="fans">
  53. 粉丝
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="Content">
  60. <uv-tabs :list="tabs" @click="click"
  61. :activeStyle="{color : '#000', fontWeight : 900}"
  62. lineColor="#5baaff"
  63. lineHeight="8rpx"
  64. lineWidth="50rpx"></uv-tabs>
  65. </view>
  66. <view class="">
  67. <dynamicItem
  68. :key="index"
  69. @click="$utils.navigateTo('/pages_order/post/addPost?id=' + item.id)"
  70. v-for="(item, index) in list"
  71. :item="item"
  72. del
  73. @del="delDynamic(item.id)"
  74. />
  75. </view>
  76. <tabber select="3" />
  77. </view>
  78. </template>
  79. <script>
  80. import tabber from '@/components/base/tabbar.vue'
  81. import dynamicItem from '@/components/list/dynamic/dynamicItem.vue'
  82. import mixinsList from '@/mixins/list.js'
  83. import mixinsSex from '@/mixins/sex.js'
  84. import { mapState } from 'vuex'
  85. export default {
  86. mixins: [mixinsList, mixinsSex],
  87. components: {
  88. tabber,
  89. dynamicItem,
  90. },
  91. computed: {
  92. ...mapState(['userInfo']),
  93. },
  94. data() {
  95. return {
  96. tabs: [
  97. {
  98. name: '我发布的帖子',
  99. },
  100. {
  101. name: '评论',
  102. },
  103. ],
  104. mixinsListApi : 'getMyPostPage',
  105. auth : ['审核中', '个人认证', '店铺认证'],
  106. }
  107. },
  108. onShow() {
  109. this.$store.commit('getUserInfo')
  110. },
  111. methods: {
  112. click(item) {
  113. console.log('item', item);
  114. },
  115. getDataThen(list){
  116. list.forEach(n => {
  117. n.image = n.image ? n.image.split(',') : []
  118. })
  119. },
  120. delDynamic(postId){
  121. let self = this
  122. uni.showModal({
  123. title: '确认要删除吗?',
  124. success(e) {
  125. if(e.confirm){
  126. self.$api('deletePost', {
  127. postId
  128. }, res => {
  129. if(res.code == 200){
  130. self.getData()
  131. }
  132. })
  133. }
  134. }
  135. })
  136. },
  137. }
  138. }
  139. </script>
  140. <style scoped lang="scss">
  141. .page {
  142. .beijin {
  143. background: linear-gradient(to bottom, rgb(85, 94, 123), rgb(45, 51, 73));
  144. background-color: black;
  145. color: white;
  146. .profile {
  147. padding: 40rpx;
  148. padding-top: 160rpx;
  149. .box {
  150. padding: 5rpx 10rpx;
  151. display: flex;
  152. align-items: center;
  153. text-align: center;
  154. .followWithnterest {
  155. .digit {
  156. padding: 20rpx;
  157. }
  158. .close {
  159. }
  160. }
  161. .shut{
  162. margin: 0rpx 20rpx;
  163. }
  164. .fenst {
  165. .digit {
  166. padding: 20rpx;
  167. }
  168. .fans {
  169. }
  170. }
  171. }
  172. .account {
  173. display: flex;
  174. align-items: center;
  175. .number {
  176. letter-spacing: 2rpx;
  177. margin-top: 10rpx;
  178. }
  179. .gender {
  180. margin: 20rpx 10rpx;
  181. }
  182. .authentication {
  183. font-size: 20rpx;
  184. }
  185. }
  186. .Days {
  187. margin-top: 15rpx;
  188. font-size: 22rpx;
  189. letter-spacing: 2rpx;
  190. }
  191. .o {
  192. display: flex;
  193. align-items: center;
  194. justify-content: space-between;
  195. .headImage {
  196. image {
  197. height: 100px;
  198. width: 100px;
  199. border-radius: 50%;
  200. }
  201. }
  202. .setUp {
  203. }
  204. }
  205. }
  206. }
  207. .Content {}
  208. }
  209. </style>