index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <template>
  2. <view class="body">
  3. <view class="nabBar" style="background-image: url('/static/image/矩形 13.png'); background-size: cover">
  4. <u-navbar :placeholder="true" :leftIconSize="0"></u-navbar>
  5. </view>
  6. <view class="section_1">
  7. <view class="section_2">
  8. <view class="box_20">
  9. <view class="group_16" style="background-image: url('/static/image/组 129.png'); background-size: cover">
  10. <image
  11. src="https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/268e511f88af4703aeaf741b83b79569_mergeImage.png"
  12. class="image_22"
  13. ></image>
  14. <view class="text-group_15">
  15. <text lines="1" class="text_2">白云下的棉絮</text>
  16. <text lines="1" class="text_3">村民证信息</text>
  17. </view>
  18. <view class="section_3">
  19. <view class="image-text_44">
  20. <u-icon name="edit-pen" color="#FFFFFF"></u-icon>
  21. <text lines="1" class="text-group_12">资料编辑</text>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="box_21">
  27. <view class="box_22">
  28. <view class="image-wrapper_1" @click="jiFenBtn">
  29. <image src="/static/image/jf.png" class="image_1"></image>
  30. </view>
  31. <view class="image-wrapper_2">
  32. <image src="/static/image/tg.png" class="image_2"></image>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="box_2">
  37. <view class="group_17">
  38. <view class="group_18">
  39. <view class="box_23">
  40. <view class="group_3">
  41. <view class="image-text_34">
  42. <image src="/static/image/余额.png" class="label_1"></image>
  43. <text lines="1" class="text-group_1">我的收藏</text>
  44. </view>
  45. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="fenge"></view>
  50. <view class="group_19">
  51. <view class="group_3">
  52. <view class="image-text_35">
  53. <image src="/static/image/账期(3).png" class="label_2"></image>
  54. <text lines="1" class="text-group_2">邀请好友</text>
  55. </view>
  56. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  57. </view>
  58. </view>
  59. <view class="fenge"></view>
  60. <view class="group_20">
  61. <view class="group_3">
  62. <view class="image-text_35">
  63. <image src="/static/image/账期 拷贝.png" class="label_2"></image>
  64. <text lines="1" class="text-group_2">我的投稿</text>
  65. </view>
  66. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  67. </view>
  68. </view>
  69. <view class="fenge"></view>
  70. <view class="group_21">
  71. <view class="group_3">
  72. <view class="image-text_35">
  73. <image src="/static/image/账期(1).png" class="label_2"></image>
  74. <text lines="1" class="text-group_2">我的好友</text>
  75. </view>
  76. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  77. </view>
  78. </view>
  79. <view class="fenge"></view>
  80. <view class="group_22">
  81. <view class="group_3">
  82. <view class="image-text_35">
  83. <image src="/static/image/账期(2).png" class="label_2"></image>
  84. <text lines="1" class="text-group_2">积分日志</text>
  85. </view>
  86. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  87. </view>
  88. </view>
  89. <view class="fenge"></view>
  90. <view class="group_23">
  91. <view class="group_3">
  92. <view class="image-text_35">
  93. <image src="/static/image/账期.png" class="label_2"></image>
  94. <text lines="1" class="text-group_2">加入我们</text>
  95. </view>
  96. <uni-icons type="forward" size="24" color="#666666"></uni-icons>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. var _token = '';
  107. var _this;
  108. import { uploadImage } from '@/service/api/common.js';
  109. export default {
  110. components: {},
  111. data() {
  112. return {
  113. isLogin: false,
  114. show: false,
  115. username: '未登录',
  116. face: '',
  117. user: {
  118. nickname: '未登录',
  119. id: '未登录'
  120. },
  121. avatarUrl: '',
  122. wxnickname: '',
  123. items: [
  124. [1, '', '荣誉', '/pages/user/medal'],
  125. [0, '', '好友', '/pages/user/friends'],
  126. [0, '', '积分', '/pages/user/scorelog'],
  127. [0, '', '传承值', '']
  128. ],
  129. getFace: false,
  130. userdata: {
  131. friendsLists: [],
  132. friendsTotal: 0,
  133. user: {
  134. score: '0',
  135. exp: '0'
  136. }
  137. }
  138. };
  139. },
  140. onShow() {
  141. /* 调用userInfo()从本地获取用户信息 */
  142. this.user = this.$common.userInfo();
  143. if (this.user && this.user.nickname.indexOf('微信') >= 0) {
  144. this.getFace = true;
  145. }
  146. },
  147. onLoad(option) {
  148. /* 来到我的页面判断用户是否登录 */
  149. _this = this;
  150. this.user = this.$common.userInfo();
  151. console.log(this.user);
  152. // if (this.user === 'undefined' || this.user === '' || this.user === [] || this.user === null) {
  153. // /* 跳转到登录页 */
  154. // this.$common.toLogin();
  155. // } else {
  156. // /* 刷新 */
  157. // this.$api.refreshUser({}, (val) => {
  158. // console.log(val);
  159. // if (val.code == 401) {
  160. // this.$common.navigateTo('/pages/user/login');
  161. // return;
  162. // }
  163. // this.user = val.data.user;
  164. // this.avatarUrl = this.user.avatar;
  165. // this.auth = val.data.auth;
  166. // this.$db.set('user', val.data.user);
  167. // this.$db.set('auth', val.data.auth);
  168. // this.$api.getWuyuanUser({}, (val) => {
  169. // console.log(val);
  170. // this.userdata = val.data;
  171. // });
  172. // });
  173. // this.isLogin = true;
  174. // }
  175. },
  176. methods: {
  177. jiFenBtn() {
  178. uni.navigateTo({
  179. url: '/user_fenbao/jiFen/jiFen'
  180. });
  181. }
  182. }
  183. };
  184. </script>
  185. <style>
  186. .nabBar {
  187. height: 500rpx;
  188. }
  189. .u-navbar--fixed.data-v-95dec1ae {
  190. opacity: 0;
  191. }
  192. .uni-icons.data-v-a2e81f6e {
  193. margin-right: 40rpx;
  194. line-height: 100rpx;
  195. }
  196. .fenge {
  197. width: 615rpx;
  198. height: 1rpx;
  199. margin: auto;
  200. background: #ededed;
  201. }
  202. .section_1 {
  203. display: flex;
  204. flex-direction: column;
  205. width: 750rpx;
  206. }
  207. .section_2 {
  208. background-color: rgba(248, 248, 248, 1);
  209. width: 749rpx;
  210. display: flex;
  211. flex-direction: column;
  212. }
  213. .box_21 {
  214. width: 749rpx;
  215. height: 200rpx;
  216. /* margin-top: 65rpx; */
  217. display: flex;
  218. flex-direction: column;
  219. }
  220. .box_22 {
  221. width: 683rpx;
  222. height: 95rpx;
  223. flex-direction: row;
  224. display: flex;
  225. justify-content: space-between;
  226. margin: 65rpx 0 0 32rpx;
  227. }
  228. .image-wrapper_1 {
  229. box-shadow: 8px 13px 27px 0px rgba(165, 165, 165, 0.39);
  230. background-color: rgba(250, 245, 241, 1);
  231. border-radius: 10rpx;
  232. height: 95rpx;
  233. display: flex;
  234. flex-direction: column;
  235. width: 330rpx;
  236. }
  237. .image_1 {
  238. width: 330rpx;
  239. height: 95rpx;
  240. }
  241. .image-wrapper_2 {
  242. box-shadow: 8px 13px 27px 0px rgba(165, 165, 165, 0.39);
  243. background-color: rgba(250, 245, 241, 1);
  244. border-radius: 10rpx;
  245. height: 95rpx;
  246. display: flex;
  247. flex-direction: column;
  248. width: 330rpx;
  249. }
  250. .image_2 {
  251. width: 330rpx;
  252. height: 95rpx;
  253. }
  254. .box_2 {
  255. background-color: rgba(255, 255, 255, 1);
  256. border-radius: 20rpx;
  257. display: flex;
  258. flex-direction: column;
  259. width: 690rpx;
  260. margin: -1rpx 0 0 29rpx;
  261. }
  262. .group_17 {
  263. width: 749rpx;
  264. margin-left: -29rpx;
  265. display: flex;
  266. flex-direction: column;
  267. }
  268. .group_18 {
  269. width: 749rpx;
  270. height: 104rpx;
  271. display: flex;
  272. flex-direction: row;
  273. }
  274. .box_23 {
  275. position: relative;
  276. width: 749rpx;
  277. height: 104rpx;
  278. display: flex;
  279. flex-direction: row;
  280. }
  281. .group_3 {
  282. width: 749rpx;
  283. height: 104rpx;
  284. display: flex;
  285. justify-content: space-between;
  286. }
  287. .image-text_34 {
  288. width: 173rpx;
  289. height: 44rpx;
  290. flex-direction: row;
  291. display: flex;
  292. justify-content: space-between;
  293. margin: 28rpx 0 0 53rpx;
  294. }
  295. .label_1 {
  296. width: 44rpx;
  297. height: 44rpx;
  298. }
  299. .text-group_1 {
  300. width: 118rpx;
  301. height: 29rpx;
  302. overflow-wrap: break-word;
  303. color: rgba(0, 0, 0, 1);
  304. font-size: 30rpx;
  305. font-family: SourceHanSansCN-Regular;
  306. font-weight: normal;
  307. text-align: left;
  308. white-space: nowrap;
  309. line-height: 30rpx;
  310. margin-top: 9rpx;
  311. }
  312. .group_19 {
  313. width: 749rpx;
  314. height: 105rpx;
  315. margin-top: 1rpx;
  316. display: flex;
  317. flex-direction: column;
  318. justify-content: space-between;
  319. }
  320. .box_4 {
  321. width: 749rpx;
  322. height: 104rpx;
  323. flex-direction: row;
  324. display: flex;
  325. }
  326. .image-text_35 {
  327. width: 174rpx;
  328. height: 44rpx;
  329. flex-direction: row;
  330. display: flex;
  331. justify-content: space-between;
  332. margin: 28rpx 0 0 52rpx;
  333. }
  334. .label_2 {
  335. width: 44rpx;
  336. height: 44rpx;
  337. }
  338. .text-group_2 {
  339. width: 118rpx;
  340. height: 29rpx;
  341. overflow-wrap: break-word;
  342. color: rgba(0, 0, 0, 1);
  343. font-size: 30rpx;
  344. font-family: SourceHanSansCN-Regular;
  345. font-weight: normal;
  346. text-align: left;
  347. white-space: nowrap;
  348. line-height: 30rpx;
  349. margin-top: 13rpx;
  350. }
  351. .group_20 {
  352. width: 749rpx;
  353. height: 105rpx;
  354. margin-top: 1rpx;
  355. display: flex;
  356. flex-direction: column;
  357. justify-content: space-between;
  358. }
  359. .group_21 {
  360. width: 749rpx;
  361. height: 106rpx;
  362. margin-top: 1rpx;
  363. display: flex;
  364. flex-direction: column;
  365. justify-content: space-between;
  366. }
  367. .group_22 {
  368. width: 749rpx;
  369. height: 109rpx;
  370. margin-top: 1rpx;
  371. display: flex;
  372. flex-direction: column;
  373. justify-content: space-between;
  374. }
  375. .group_23 {
  376. width: 749rpx;
  377. height: 104rpx;
  378. margin-top: -3rpx;
  379. display: flex;
  380. flex-direction: row;
  381. }
  382. .box_20 {
  383. display: flex;
  384. flex-direction: column;
  385. width: 679rpx;
  386. position: absolute;
  387. left: 35rpx;
  388. top: 147rpx;
  389. box-shadow: 8px 13px 27px 0px rgba(211, 245, 251);
  390. background-color: rgba(211, 245, 251);
  391. }
  392. .group_16 {
  393. width: 679rpx;
  394. height: 388rpx;
  395. flex-direction: row;
  396. display: flex;
  397. }
  398. .image_22 {
  399. width: 120rpx;
  400. height: 120rpx;
  401. margin: 52rpx 0 0 39rpx;
  402. }
  403. .text-group_15 {
  404. width: 243rpx;
  405. height: 82rpx;
  406. display: flex;
  407. flex-direction: column;
  408. justify-content: space-between;
  409. margin: 70rpx 0 0 22rpx;
  410. }
  411. .text_2 {
  412. width: 243rpx;
  413. height: 40rpx;
  414. overflow-wrap: break-word;
  415. color: rgba(255, 255, 255, 1);
  416. font-size: 42rpx;
  417. font-family: Adobe Heiti Std R;
  418. font-weight: normal;
  419. text-align: left;
  420. white-space: nowrap;
  421. line-height: 42rpx;
  422. }
  423. .text_3 {
  424. width: 120rpx;
  425. height: 23rpx;
  426. overflow-wrap: break-word;
  427. color: rgba(255, 255, 255, 1);
  428. font-size: 24rpx;
  429. font-family: Adobe Heiti Std R;
  430. font-weight: normal;
  431. text-align: left;
  432. white-space: nowrap;
  433. line-height: 24rpx;
  434. margin-top: 19rpx;
  435. }
  436. .section_3 {
  437. width: 176rpx;
  438. height: 52rpx;
  439. background-color: #dfc09f;
  440. border-radius: 30rpx 0 0 30rpx;
  441. display: flex;
  442. flex-direction: row;
  443. margin: 69rpx 1rpx 0 82rpx;
  444. }
  445. .image-text_44 {
  446. width: 127rpx;
  447. height: 26rpx;
  448. flex-direction: row;
  449. display: flex;
  450. justify-content: space-between;
  451. margin: 11rpx 0 0 30rpx;
  452. }
  453. .text-group_12 {
  454. width: 95rpx;
  455. height: 22rpx;
  456. overflow-wrap: break-word;
  457. color: rgba(255, 255, 255, 1);
  458. font-size: 24rpx;
  459. white-space: nowrap;
  460. line-height: 24rpx;
  461. margin-top: 3rpx;
  462. margin-left: 5rpx;
  463. }
  464. </style>