mine.vue 22 KB

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