my.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. <template>
  2. <view class="">
  3. <view class="index" v-if="$store.state.is_kg == 1">
  4. <view class="top">
  5. <!-- <view class="">
  6. </view>
  7. <view class="">
  8. 我的
  9. </view>
  10. <view class="" @click="href('/pages/my/set/set')">
  11. <image src="/static/my/019.png" mode="widthFix" style="width: 40rpx;"></image>
  12. </view> -->
  13. </view>
  14. <!-- 用户信息 -->
  15. <view class="user_info">
  16. <view class="bottom_user">
  17. <view class="user-hed">
  18. <view class="">
  19. <image :src="user_info.headimg|| '/static/logo.png'" mode="w"
  20. style="height: 112rpx;width: 112rpx;border-radius: 50%;">
  21. </image>
  22. </view>
  23. <!-- 未登录状态 -->
  24. <view class="user_info_details" v-if="false">
  25. <view class="colorWhite">
  26. 立即登录
  27. </view>
  28. <view class="">
  29. 登录后可查看您的详细信息
  30. </view>
  31. </view>
  32. <!-- 未登录状态 结束-->
  33. <view class="logined" v-else>
  34. <view class="colorWhite static">
  35. <view class="">
  36. {{ user_info.nickname || '鲑鱼数藏用户' }}
  37. </view>
  38. <view class="" style="display: flex;position: relative;">
  39. <image src="/static/my/a1.png" @click="href('/pages/my/set/set')" mode="widthFix"
  40. style="width: 40rpx;">
  41. </image>
  42. <u-badge type="error" max="9" :value="count"
  43. style="font-size: 20rpx;height: 20rpx;position: absolute;margin-left: 20rpx;z-index: 9999;">
  44. </u-badge>
  45. </view>
  46. </view>
  47. <view class="hash">
  48. <view class="u-line-1" style="max-width: 400rpx;" @click="$api.setclip(user_info.hash)">
  49. <span>DID {{user_info.hash||'暂无'}}</span>
  50. </view>
  51. </view>
  52. <view class="hash" style="display: flex;">
  53. <view class="text_hide">
  54. <image @click="href('/pages/my/authentication/authentication')"
  55. v-if="user_info.is_cert==1" src="/static/my/a3.png" mode="widthFix"
  56. style="width: 162rpx;"></image>
  57. <image @click="href('/pages/my/authentication/authentication')" v-else
  58. src="/static/my/a2.png" mode="widthFix" style="width: 162rpx;"></image>
  59. </view>
  60. <view class="text_hide" style="margin-left: 8rpx;">
  61. <span>{{user_info.phone||'暂无'}}</span>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="bula">
  67. <view class="" @click="href('/pages/collection/collection')">
  68. <image src="/static//my/a4.png" mode="widthFix" style="width: 288rpx;"></image>
  69. </view>
  70. <view class="" @click="href('/pages/my/wallet/wallet')">
  71. <image src="/static//my/a5.png" mode="widthFix" style="width: 288rpx;"></image>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 用户信息 结束-->
  77. <view class="aggregate">
  78. <view class="" v-for="(item,i) in aggList" :key="i" @click="href(item.e)">
  79. <view class="">
  80. <view class="">
  81. <image :src="item.img" mode="widthFix" style="width: 32rpx;"></image>
  82. </view>
  83. <view class="">
  84. {{item.name}}
  85. </view>
  86. </view>
  87. <view class="">
  88. <image src="/static/market/2.png" mode="widthFix" style="width: 32rpx;"></image>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="aggregate">
  93. <view class="" v-for="(item,i) in aggList2" :key="i" @click="href(item.e)">
  94. <view class="">
  95. <view class="">
  96. <image :src="item.img" mode="widthFix" style="width: 32rpx;"></image>
  97. </view>
  98. <view class="">
  99. {{item.name}}
  100. </view>
  101. </view>
  102. <view class="">
  103. <image src="/static/market/2.png" mode="widthFix" style="width: 32rpx;"></image>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="aggregate">
  108. <view class="" v-for="(item,i) in aggList3" :key="i" @click="href(item.e)">
  109. <view class="">
  110. <view class="">
  111. <image :src="item.img" mode="widthFix" style="width: 32rpx;"></image>
  112. </view>
  113. <view class="">
  114. {{item.name}}
  115. </view>
  116. </view>
  117. <view class="">
  118. <image src="/static/market/2.png" mode="widthFix" style="width: 32rpx;"></image>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. <view class="" v-else>
  124. <image src="@/static/index/04.png" mode="widthFix" style="width: 750rpx;"></image>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. export default {
  130. components: {},
  131. data() {
  132. return {
  133. aggList: [{
  134. name: '我的订单',
  135. img: '/static/my/a7.png',
  136. e: '/pages/my/order/order'
  137. }],
  138. // aggList: [{
  139. // name: '合成藏品',
  140. // img: '/static/my/09.png',
  141. // e: '/pages/my/synthesis/synthesis'
  142. // },
  143. // {
  144. // name: '转售记录',
  145. // img: '/static/my/010.png',
  146. // e: '/pages/my/market_history/market_history'
  147. // },
  148. // {
  149. // name: '转赠记录',
  150. // img: '/static/my/60.png',
  151. // e: '/pages/my/passonhistory/passonhistory'
  152. // },
  153. // {
  154. // name: '我的订单',
  155. // img: '/static/my/011.png',
  156. // e: '/pages/my/order/order'
  157. // },
  158. // {
  159. // name: '商城订单',
  160. // img: '/static/my/051.png',
  161. // e: '/pages/my/order/order1'
  162. // },
  163. // ],
  164. aggList2: [{
  165. name: '我的盲盒',
  166. img: '/static/my/a6.png',
  167. e: '/pages/collection/box/box'
  168. },
  169. {
  170. name: '合成藏品',
  171. img: '/static/my/a8.png',
  172. e: '/pages/my/synthesis/synthesis'
  173. },
  174. ],
  175. aggList3: [{
  176. name: '账号与安全',
  177. img: '/static/my/a9.png',
  178. e: '/pages/my/set/updatepaypass'
  179. },
  180. {
  181. name: '邀请好友',
  182. img: '/static/my/a10.png',
  183. e: '/pages/my/invitation/invitation'
  184. },
  185. {
  186. name: '隐私政策',
  187. img: '/static/my/a11.png',
  188. e: '/pages/my/set/relevant?type=2'
  189. },
  190. {
  191. name: '意见反馈',
  192. img: '/static/my/a12.png',
  193. e: '/pages/my/feedback/feedback'
  194. },
  195. {
  196. name: '联系客服',
  197. img: '/static/my/a13.png',
  198. e: '/pages/my/about/about?type=1'
  199. },
  200. // {
  201. // name: '我的客服',
  202. // img: '/static/my/018.png',
  203. // e: '/pages/my/about/about?type=1'
  204. // }
  205. ],
  206. aggList1: [{
  207. name: '排行榜',
  208. img: '/static/my/9.png',
  209. e: '/pages/my/rank/rank'
  210. },
  211. {
  212. name: '我的认证',
  213. img: '/static/my/10.png',
  214. e: '/pages/my/authentication/authentication'
  215. },
  216. ],
  217. show: false,
  218. user_info: {},
  219. count: '' //未读消息条数
  220. }
  221. },
  222. onLoad(e) {
  223. //获取其他路径过来的图片
  224. if (e.img == null || e.img == "undefined") {
  225. this.img = uni.getStorageSync("user_info").sharBg
  226. this.img = this.img.replace("admin", "www")
  227. // alert(this.img.replace("admin.",""))
  228. } else {
  229. this.img = e.img
  230. }
  231. //获取团队列表
  232. // console.log(this.linkcode)
  233. },
  234. onShow() {
  235. this.api.get_user_info()
  236. this.user_info = uni.getStorageSync('user_info')
  237. uni.setStorageSync("link", this.link)
  238. this.linkcode = uni.getStorageSync("link")
  239. },
  240. onReady() {},
  241. methods: {
  242. //复制
  243. getLink(val) {
  244. this.$api.setclip(val)
  245. },
  246. }
  247. }
  248. </script>
  249. <style lang="less" scoped>
  250. .index {
  251. box-sizing: border-box;
  252. padding-bottom: 300rpx;
  253. }
  254. .top {
  255. display: flex;
  256. justify-content: space-between;
  257. height: 80rpx;
  258. align-items: center;
  259. padding: 0 32rpx;
  260. font-size: 36rpx;
  261. font-weight: 600;
  262. }
  263. .head {
  264. height: 120rpx;
  265. line-height: 120rpx;
  266. position: sticky;
  267. top: 0;
  268. padding: 0 30rpx;
  269. box-sizing: border-box;
  270. background: #043E4A;
  271. position: relative;
  272. }
  273. .head .content {
  274. font-size: 36rpx;
  275. font-weight: 500;
  276. text-align: center;
  277. color: #fff;
  278. }
  279. .head .right {
  280. position: absolute;
  281. top: 20rpx;
  282. right: 20rpx;
  283. }
  284. .head .right image {
  285. width: 48rpx;
  286. height: 48rpx;
  287. margin-left: 30rpx;
  288. }
  289. .user_info {
  290. box-sizing: border-box;
  291. padding: 0rpx 20rpx 0;
  292. // background: #043E4A;
  293. width: 686rpx;
  294. height: 380rpx;
  295. padding-top: 34rpx;
  296. background: #1D1F1E;
  297. margin: auto;
  298. border-radius: 24rpx;
  299. .bottom_user {
  300. background-size: 100% 100%;
  301. width: 622rpx;
  302. height: 330rpx;
  303. margin: auto;
  304. }
  305. .logined {
  306. width: 550rpx;
  307. display: flex;
  308. flex-direction: column;
  309. margin-left: 20rpx;
  310. .static {
  311. display: flex;
  312. justify-content: space-between;
  313. &:first-child {
  314. margin-top: 10rpx;
  315. }
  316. &:first-child>view:nth-child(1) {
  317. font-size: 32rpx;
  318. color: #fff;
  319. }
  320. &:first-child>view:nth-child(2) {
  321. image {
  322. width: 48rpx;
  323. height: 48rpx;
  324. }
  325. }
  326. }
  327. .hash {
  328. font-size: 24rpx;
  329. color: #ccc;
  330. margin-top: 8rpx;
  331. color: #fff;
  332. }
  333. }
  334. .user-hed {
  335. display: flex;
  336. // padding-bottom: 24rpx;
  337. color: #fff;
  338. // border-bottom: 1px solid rgba(255, 255, 255, .1);
  339. >view:last-child {
  340. display: flex;
  341. }
  342. }
  343. .block {
  344. font-size: 24rpx;
  345. color: #fff;
  346. margin: 32rpx 0;
  347. }
  348. .bula {
  349. display: flex;
  350. justify-content: space-between;
  351. margin-top: 68rpx;
  352. }
  353. }
  354. .aggregate {
  355. width: 622rpx;
  356. background: #1D1F1E;
  357. color: #fff;
  358. padding: 0 32rpx;
  359. font-size: 28rpx;
  360. margin: 24rpx auto 0;
  361. border-radius: 24rpx;
  362. >view {
  363. padding: 32rpx 0;
  364. display: flex;
  365. justify-content: space-between;
  366. align-items: center;
  367. image {
  368. margin-right: 24rpx;
  369. }
  370. >view {
  371. display: flex;
  372. }
  373. }
  374. >view:last-child {
  375. border-bottom: none;
  376. }
  377. }
  378. .bsn {
  379. width: 330rpx;
  380. margin: 32rpx auto 100rpx;
  381. }
  382. .share {
  383. position: fixed;
  384. left: 0;
  385. top: 0;
  386. width: 100%;
  387. height: 100%;
  388. display: flex;
  389. align-items: center;
  390. justify-content: center;
  391. flex-direction: column;
  392. background: rgba(0, 0, 0, 0.5);
  393. .Chang {
  394. width: 514rpx;
  395. height: 100rpx;
  396. background: url(/static/index/011.png) no-repeat;
  397. background-size: 100% 100%;
  398. color: #fff;
  399. border-radius: 16rpx;
  400. opacity: 1;
  401. display: flex;
  402. align-items: center;
  403. justify-content: center;
  404. position: fixed;
  405. margin-top: 700rpx;
  406. }
  407. .center_first {
  408. width: 100%;
  409. display: flex;
  410. align-items: center;
  411. justify-content: center;
  412. padding: 0 0 30rpx;
  413. }
  414. // margin-top:172rpx
  415. }
  416. // 全部
  417. </style>