mine.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <template>
  2. <view class="mine tn-safe-area-inset-bottom">
  3. <!-- 顶部自定义导航 -->
  4. <view class="top-backgroup">
  5. <image src='../../static/bg4.png' mode='widthFix' class='backgroud-image'></image>
  6. </view>
  7. <view class="about__wrap" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  8. <!-- 图标logo/头像 -->
  9. <view class="tn-flex tn-flex-col-center tn-margin-bottom" @click="tn('/minePages/set')" style="margin-top: -450rpx;justify-content: center;">
  10. <view class="justify-content-item" >
  11. <view class="tn-flex tn-flex-col-center tn-flex-row-left">
  12. <view class="logo-pic tn-shadow">
  13. <view class="logo-image">
  14. <image v-if="personInfo.profilePhotoUrl" class="tn-shadow-blur" style="width: 140rpx;height: 140rpx;background-size: cover;" :src="personInfo.profilePhotoUrl"></image>
  15. <image v-if="!personInfo.profilePhotoUrl" class="tn-shadow-blur" style="width: 140rpx;height: 140rpx;background-size: cover;" src="../../static/me2.png"></image>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 没有授权,则显示这个授权按钮-->
  22. <view class="tn-flex tn-flex-row-between" @click="tn('/pages/login/login')" v-if="showLogin">
  23. <view class="tn-flex-1 justify-content-item tn-margin-xs tn-text-center">
  24. <tn-button shape="round" backgroundColor="#1d60b1" fontColor="#ffffff" padding="20rpx 0" width="40%" shadow>
  25. <text class="">立即登录</text>
  26. </tn-button>
  27. </view>
  28. </view>
  29. <view class="about-shadow tn-margin-top-lg tn-padding-top-sm tn-padding-bottom-sm tn-bg-white" v-if="!showLogin">
  30. <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding-sm" @click="tn('/minePages/set')">
  31. <view class="justify-content-item">
  32. <view class="" style="font-size: 16px;">
  33. 个人信息
  34. </view>
  35. </view>
  36. <view class="justify-content-item tn-text-lg tn-color-grey">
  37. <view class="tn-color-gray tn-padding-top-xs">
  38. <view class="tn-icon-right"></view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding-sm">
  43. <view class="justify-content-item">
  44. <view class="" style="font-size: 16px;">
  45. 用户名
  46. </view>
  47. </view>
  48. <view class="justify-content-item tn-text-lg tn-color-grey">
  49. <view class="tn-color-gray tn-padding-top-xs">
  50. {{personInfo.userRealName||personInfo.contactNickName||(personInfo.userName?'用户'+personInfo.userName.slice(-4):'')||'未登录'}}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding-sm" @click="showModal1">
  55. <view class="justify-content-item">
  56. <view class="" style="font-size: 16px;">
  57. 联系方式
  58. </view>
  59. </view>
  60. <view class="justify-content-item tn-text-lg tn-color-grey">
  61. <view class="tn-color-gray tn-padding-top-xs">
  62. {{personInfo.contactMethod||personInfo.userName||''}}
  63. </view>
  64. </view>
  65. </view>
  66. <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding-sm" @click="showModal1">
  67. <view class="justify-content-item">
  68. <view class="" style="font-size: 16px;">
  69. 手机号
  70. </view>
  71. </view>
  72. <view class="justify-content-item tn-text-lg tn-color-grey">
  73. <view class="tn-color-gray tn-padding-top-xs">
  74. {{personInfo.userName||'未登录'}}
  75. </view>
  76. </view>
  77. </view>
  78. <!-- <view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding" @click="showModal1">
  79. <view class="justify-content-item">
  80. <view class="tn-text-bold tn-text-lg">
  81. 所属公司
  82. </view>
  83. </view>
  84. <view class="justify-content-item tn-text-lg tn-color-grey">
  85. <view class="tn-color-gray tn-padding-top-xs">
  86. 未绑定
  87. </view>
  88. </view>
  89. </view> -->
  90. </view>
  91. <!-- 方式15 start-->
  92. <view class="tn-flex tn-flex-row-between tn-bg-white about-shadow tn-margin-top-xl">
  93. <view class="tn-padding-sm tn-margin-xs" @click="tn('/pages/mine/need')">
  94. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center tn-margin-left">
  95. <view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur" style="background-color: #F3F2F7;color: #7C8191;position: relative;">
  96. <!-- <tn-badge absolute="true" v-if="needNum>0">
  97. <span style="color: #fff;font-size: 11px;
  98. background: #E83A30;
  99. width: 20px;
  100. height: 20px;
  101. text-align: center;
  102. border-radius: 20px;
  103. line-height: 20px;">{{needNum}}</span>
  104. </tn-badge> -->
  105. <view class="tn-icon-like"></view>
  106. </view>
  107. <view class="tn-text-center">
  108. <text class="tn-text-ellipsis">我的需求</text>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="tn-padding-sm tn-margin-xs" @click="tn('/pages/mine/share')">
  113. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  114. <view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur" style="background-color: #F3F2F7;color: #7C8191;position: relative;">
  115. <!-- <tn-badge absolute="true" v-if="shareNum>0">
  116. <span style="color: #fff;font-size: 11px;
  117. background: #E83A30;
  118. width: 20px;
  119. height: 20px;
  120. text-align: center;
  121. border-radius: 20px;
  122. line-height: 20px;">{{shareNum}}</span>
  123. </tn-badge> -->
  124. <view class="tn-icon-share-triangle"></view>
  125. </view>
  126. <view class="tn-text-center">
  127. <text class="tn-text-ellipsis">我的供应</text>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="tn-padding-sm tn-margin-xs" @click="tn('/pages/mine/coll')">
  132. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center tn-margin-right">
  133. <view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur" style="background-color: #F3F2F7;color: #7C8191;">
  134. <view class="tn-icon-star"></view>
  135. </view>
  136. <view class="tn-text-center">
  137. <text class="tn-text-ellipsis">我的收藏</text>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. <!-- 方式15 end-->
  143. <view class="about-shadow tn-margin-top-lg tn-margin-bottom-lg tn-padding-top-sm tn-padding-bottom-sm">
  144. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30">
  145. <button class="tn-flex tn-flex-col-center tn-button--clear-style" @click="showFeedback">
  146. <view
  147. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  148. <view class="tn-icon-message-fill"></view>
  149. </view>
  150. <view class="tn-flex tn-flex-row-between" style="width: 100%;">
  151. <view class="tn-margin-left-sm">我有问题</view>
  152. <view class="tn-color-gray tn-icon-right"></view>
  153. </view>
  154. </button>
  155. </tn-list-cell>
  156. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="showInfo()">
  157. <view class="tn-flex tn-flex-col-center">
  158. <view
  159. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  160. <view class="tn-icon-safe-fill"></view>
  161. </view>
  162. <view class="tn-margin-left-sm tn-flex-1">用户声明</view>
  163. <view class="tn-color-gray tn-icon-right"></view>
  164. </view>
  165. </tn-list-cell>
  166. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="showInfo2()">
  167. <view class="tn-flex tn-flex-col-center">
  168. <view
  169. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  170. <view class="tn-icon-lock"></view>
  171. </view>
  172. <view class="tn-margin-left-sm tn-flex-1">隐私协议</view>
  173. <view class="tn-color-gray tn-icon-right"></view>
  174. </view>
  175. </tn-list-cell>
  176. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click=showAbout()>
  177. <view class="tn-flex tn-flex-col-center">
  178. <view
  179. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  180. <view class="tn-icon-help"></view>
  181. </view>
  182. <view class="tn-margin-left-sm tn-flex-1">了解速立保</view>
  183. <view class="tn-color-gray tn-icon-right"></view>
  184. </view>
  185. </tn-list-cell>
  186. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" v-if="!showLogin" @click="showLog()">
  187. <view class="tn-flex tn-flex-col-center">
  188. <view
  189. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  190. <view class="tn-icon-my-reduce"></view>
  191. </view>
  192. <view class="tn-margin-left-sm tn-flex-1">注销账户</view>
  193. <view class="tn-color-gray tn-icon-right"></view>
  194. </view>
  195. </tn-list-cell>
  196. </view>
  197. <view class="about-shadow tn-margin-top-lg tn-margin-bottom-lg tn-padding-top-sm tn-padding-bottom-sm" v-if="!showLogin">
  198. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="showLogout()">
  199. <view class="tn-flex tn-flex-col-center">
  200. <view
  201. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  202. <view class="tn-icon-logout"></view>
  203. </view>
  204. <view class="tn-margin-left-sm tn-flex-1">退出登录</view>
  205. <view class="tn-color-gray tn-icon-right"></view>
  206. </view>
  207. </tn-list-cell>
  208. </view>
  209. </view>
  210. <uni-popup ref="alertDialog" type="dialog">
  211. <uni-popup-dialog :type="msgType" cancelText="取消" confirmText="确定" title="确定注销账户吗?" content=" " @confirm="logOff()"
  212. @close="dialogClose"></uni-popup-dialog>
  213. </uni-popup>
  214. <view class='tn-tabbar-height'></view>
  215. </view>
  216. </template>
  217. <script>
  218. import request from '../../utils/request'
  219. import {
  220. uniShowModal
  221. } from '../../utils/uni_api'
  222. export default {
  223. name: 'Mine',
  224. data() {
  225. return {
  226. personInfo: uni.getStorageSync('userInfo')?JSON.parse(uni.getStorageSync('userInfo')):{},
  227. showLogin: false,
  228. msgType:'',
  229. shareNum:0,
  230. needNum:0
  231. }
  232. },
  233. onReady() {
  234. this.$nextTick(() => {
  235. if(!uni.getStorageSync('userNo')){
  236. this.showLogin = true;
  237. return false;
  238. }
  239. if(!uni.getStorageSync('loginOut')){
  240. this.getContentRectInfo()
  241. // this.loadNum();
  242. // this.loadNum2();
  243. }
  244. })
  245. },
  246. methods: {
  247. fetchData(){
  248. if(!uni.getStorageSync('userNo')){
  249. this.showLogin = true;
  250. return false;
  251. }
  252. if(!uni.getStorageSync('loginOut')){
  253. this.getContentRectInfo()
  254. // this.loadNum();
  255. // this.loadNum2();
  256. }
  257. },
  258. // 获取内容容器的信息
  259. getContentRectInfo() {
  260. let that = this;
  261. request.post('/slbWxma/getPersonlInfo', {
  262. }).then(res => {
  263. console.warn(res);
  264. if(res&&res.success){
  265. that.personInfo = res.resultMap.userInfo||{};
  266. uni.setStorageSync('userInfo', JSON.stringify(res.resultMap.userInfo));
  267. that.showLogin = false;
  268. }
  269. console.warn(res);
  270. })
  271. },
  272. loadNum(){
  273. let that = this;
  274. request.post('/slbResourceDemand/show/my', {
  275. }).then(res => {
  276. if(res&&res.resultMap){
  277. that.needNum = res.resultMap.passNum||0
  278. }
  279. })
  280. },
  281. loadNum2(){
  282. let that = this;
  283. request.post('/slbResourceShare/show/my', {
  284. }).then(res => {
  285. if(res&&res.resultMap){
  286. that.shareNum = res.resultMap.passNum||0
  287. }
  288. })
  289. },
  290. // 跳转
  291. tn(e) {
  292. if(!uni.getStorageSync('userNo')){
  293. uni.setStorageSync('nextPage',e);
  294. uni.navigateTo({
  295. url: '/pages/login/login',
  296. });
  297. return false;
  298. }
  299. uni.navigateTo({
  300. url: e,
  301. });
  302. },
  303. showFeedback(){
  304. uni.navigateTo({
  305. url: '/pages/mine/addFeed',
  306. });
  307. },
  308. showInfo(){
  309. uni.navigateTo({
  310. url: '/pages/login/info?counted=1'
  311. })
  312. },
  313. showInfo2() {
  314. uni.navigateTo({
  315. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title=隐私协议&url='+'https://oss.lx-device.com/userFeedback/1735201139460G1J.docx'),
  316. })
  317. },
  318. showAbout(){
  319. uni.navigateTo({
  320. url: '/pages/mine/about'
  321. })
  322. },
  323. showLog(){
  324. let that = this;
  325. uniShowModal('确定注销账户吗?', '', {
  326. showCancel: true,
  327. success: (res) => {
  328. console.error(res);
  329. if(res.confirm){
  330. that.logOff();
  331. }
  332. }
  333. })
  334. },
  335. showLogout(){
  336. let that = this;
  337. uniShowModal('确定退出登录吗?', '', {
  338. showCancel: true,
  339. success: (res) => {
  340. console.error(res);
  341. if(res.confirm){
  342. uni.setStorageSync('loginStatus', 'false');
  343. uni.setStorageSync('loginOut', 'true');
  344. uni.removeStorageSync('userMap');
  345. uni.removeStorageSync('userNo');
  346. uni.removeStorageSync('userInfo');
  347. that.showLogin = true;
  348. that.shareNum = 0;
  349. that.needNum = 0;
  350. that.personInfo = {};
  351. // uni.reLaunch({
  352. // url:'/pages/index/index'
  353. // })
  354. }
  355. }
  356. })
  357. },
  358. //注销
  359. logOff(){
  360. const that = this;
  361. request.post('/slbWxma/logOff', {
  362. userNo: uni.getStorageSync('userNo'),
  363. }).then(res => {
  364. if (res&&res.success) {
  365. uni.setStorageSync('loginStatus', 'false');
  366. uni.setStorageSync('loginOut', 'true');
  367. uni.removeStorageSync('userMap');
  368. uni.removeStorageSync('userNo');
  369. uni.removeStorageSync('userInfo');
  370. that.showLogin = true;
  371. that.personInfo = {};
  372. uni.showToast({
  373. title: '注销成功',
  374. icon: 'none'
  375. })
  376. uni.reLaunch({
  377. url: '/pages/index/index'
  378. })
  379. }else{
  380. uni.showToast({
  381. title: res.msg,
  382. icon: 'none'
  383. })
  384. }
  385. })
  386. }
  387. }
  388. }
  389. </script>
  390. <style lang="scss" scoped>
  391. .mine{
  392. max-height: 100vh;
  393. }
  394. /* 底部安全边距 start*/
  395. .tn-tabbar-height {
  396. min-height: 120rpx;
  397. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  398. height: calc(140rpx + constant(safe-area-inset-bottom));
  399. }
  400. .tn-color-cat{
  401. color: #1D2541;
  402. }
  403. .tn-bg-cat{
  404. background-color: #1D2541;
  405. }
  406. /* 自定义导航栏内容 start */
  407. .custom-nav {
  408. height: 100%;
  409. &__back {
  410. margin: auto 5rpx;
  411. font-size: 40rpx;
  412. margin-right: 10rpx;
  413. flex-basis: 5%;
  414. width: 100rpx;
  415. position: absolute;
  416. }
  417. }
  418. /* 自定义导航栏内容 end */
  419. /* 顶部背景图 end */
  420. /* 用户头像 start */
  421. .logo-image {
  422. width: 140rpx;
  423. height: 140rpx;
  424. position: relative;
  425. overflow: hidden;
  426. border-radius: 50%;
  427. }
  428. .logo-pic {
  429. background-size: cover;
  430. background-repeat: no-repeat;
  431. // background-attachment:fixed;
  432. background-position: top;
  433. border: 8rpx solid rgba(255,255,255,0.05);
  434. box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
  435. border-radius: 50%;
  436. overflow: hidden;
  437. // background-color: #FFFFFF;
  438. }
  439. /* 页面 start*/
  440. .about-shadow {
  441. border-radius: 15rpx;
  442. box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
  443. }
  444. .about {
  445. &__wrap {
  446. position: relative;
  447. z-index: 1;
  448. margin: 20rpx 30rpx;
  449. }
  450. }
  451. /* 页面 end*/
  452. /* 图标容器15 start */
  453. .icon15 {
  454. &__item {
  455. width: 30%;
  456. background-color: #FFFFFF;
  457. border-radius: 10rpx;
  458. padding: 30rpx;
  459. margin: 20rpx 10rpx;
  460. transform: scale(1);
  461. transition: transform 0.3s linear;
  462. transform-origin: center center;
  463. &--icon {
  464. width: 100rpx;
  465. height: 100rpx;
  466. font-size: 60rpx;
  467. border-radius: 50%;
  468. margin-bottom: 18rpx;
  469. position: relative;
  470. z-index: 1;
  471. &::after {
  472. content: " ";
  473. position: absolute;
  474. z-index: -1;
  475. width: 100%;
  476. height: 100%;
  477. left: 0;
  478. bottom: 0;
  479. border-radius: inherit;
  480. opacity: 1;
  481. transform: scale(1, 1);
  482. background-size: 100% 100%;
  483. }
  484. }
  485. }
  486. }
  487. /* 图标容器12 start */
  488. .tn-three{
  489. position: absolute;
  490. top: 50%;
  491. right: 50%;
  492. bottom: 50%;
  493. left: 50%;
  494. transform: translate(-38rpx, -16rpx) rotateX(30deg) rotateY(20deg) rotateZ(-30deg);
  495. text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
  496. }
  497. .icon20 {
  498. &__item {
  499. width: 30%;
  500. background-color: #FFFFFF;
  501. border-radius: 10rpx;
  502. padding: 30rpx;
  503. margin: 20rpx 10rpx;
  504. transform: scale(1);
  505. transition: transform 0.3s linear;
  506. transform-origin: center center;
  507. &--icon {
  508. width: 100rpx;
  509. height: 100rpx;
  510. font-size: 60rpx;
  511. border-radius: 50%;
  512. margin-bottom: 18rpx;
  513. position: relative;
  514. z-index: 1;
  515. &::after {
  516. content: " ";
  517. position: absolute;
  518. z-index: -1;
  519. width: 100%;
  520. height: 100%;
  521. left: 0;
  522. bottom: 0;
  523. border-radius: inherit;
  524. opacity: 1;
  525. transform: scale(1, 1);
  526. background-size: 100% 100%;
  527. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  528. }
  529. }
  530. }
  531. }
  532. .button-vip {
  533. width: 100%;
  534. height: 150rpx;
  535. border-radius: 15rpx;
  536. position: relative;
  537. z-index: 1;
  538. &::after {
  539. content: " ";
  540. position: absolute;
  541. z-index: -1;
  542. width: 100%;
  543. height: 100%;
  544. left: 0;
  545. bottom: 0;
  546. border-radius: inherit;
  547. opacity: 1;
  548. transform: scale(1, 1);
  549. background-size: 100% 100%;
  550. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  551. }
  552. }
  553. /* 图标容器12 start */
  554. .icon12 {
  555. &__item {
  556. width: 30%;
  557. background-color: #FFFFFF;
  558. border-radius: 10rpx;
  559. padding: 30rpx;
  560. margin: 20rpx 10rpx;
  561. transform: scale(1);
  562. transition: transform 0.3s linear;
  563. transform-origin: center center;
  564. &--icon {
  565. width: 15rpx;
  566. height: 15rpx;
  567. font-size: 50rpx;
  568. border-radius: 50%;
  569. margin-bottom: 38rpx;
  570. position: relative;
  571. z-index: 1;
  572. &::after {
  573. content: " ";
  574. position: absolute;
  575. z-index: -1;
  576. width: 100%;
  577. height: 100%;
  578. left: 0;
  579. bottom: 0;
  580. border-radius: inherit;
  581. opacity: 1;
  582. transform: scale(1, 1);
  583. background-size: 100% 100%;
  584. }
  585. }
  586. }
  587. }
  588. /* 图标容器1 start */
  589. .icon1 {
  590. &__item {
  591. // width: 30%;
  592. background-color: #FFFFFF;
  593. border-radius: 10rpx;
  594. padding: 30rpx;
  595. margin: 20rpx 10rpx;
  596. transform: scale(1);
  597. transition: transform 0.3s linear;
  598. transform-origin: center center;
  599. &--icon {
  600. width: 40rpx;
  601. height: 40rpx;
  602. font-size: 40rpx;
  603. border-radius: 50%;
  604. position: relative;
  605. z-index: 1;
  606. &::after {
  607. content: " ";
  608. position: absolute;
  609. z-index: -1;
  610. width: 100%;
  611. height: 100%;
  612. left: 0;
  613. bottom: 0;
  614. border-radius: inherit;
  615. opacity: 1;
  616. transform: scale(1, 1);
  617. background-size: 100% 100%;
  618. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  619. }
  620. }
  621. }
  622. }
  623. /* 图标容器1 end */
  624. /* 顶部背景图 start */
  625. .top-backgroup {
  626. height: 450rpx;
  627. z-index: -1;
  628. .backgroud-image {
  629. width: 100%;
  630. height: 450rpx;
  631. // z-index: -1;
  632. }
  633. }
  634. /* 顶部背景图 end */
  635. </style>