mine.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  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="toLogin('/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="" :style="{fontSize:(wxFontSize-3)+'px'}">立即登录</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;" :style="{fontSize:(wxFontSize)+'px'}">
  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;" :style="{fontSize:(wxFontSize-1)+'px'}">
  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" :style="{fontSize:(wxFontSize-2)+'px'}">
  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;" :style="{fontSize:(wxFontSize-1)+'px'}">
  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" :style="{fontSize:(wxFontSize-2)+'px'}">
  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;" :style="{fontSize:(wxFontSize-1)+'px'}">
  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" :style="{fontSize:(wxFontSize-2)+'px'}">
  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" style="padding-left: 12px;padding-right: 12px;">
  93. <view class="tn-padding-sm" @click="tn('/pages/mine/need')">
  94. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  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" :style="{fontSize:(wxFontSize)+'px'}">我的需求</text>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="tn-padding-sm" @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" :style="{fontSize:(wxFontSize)+'px'}">我的供应</text>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="tn-padding-sm" @click="tn('/pages/mine/coll')">
  132. <view class="tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center">
  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" :style="{fontSize:(wxFontSize)+'px'}">我的收藏</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" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  149. </view>
  150. <view class="tn-flex tn-flex-row-between" style="width: 100%;">
  151. <view class="tn-margin-left-sm" :style="{fontSize:(wxFontSize-1)+'px'}">我有问题</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" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  161. </view>
  162. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">用户声明</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" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  171. </view>
  172. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">隐私协议</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" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  181. </view>
  182. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">了解速立保</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" @click=showFont()>
  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-font" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  191. </view>
  192. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">字体大小</view>
  193. <view class="tn-color-gray tn-icon-right"></view>
  194. </view>
  195. </tn-list-cell>
  196. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" v-if="!showLogin" @click="showLog()">
  197. <view class="tn-flex tn-flex-col-center">
  198. <view
  199. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  200. <view class="tn-icon-my-reduce" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  201. </view>
  202. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">注销账户</view>
  203. <view class="tn-color-gray tn-icon-right"></view>
  204. </view>
  205. </tn-list-cell>
  206. </view>
  207. <view class="about-shadow tn-margin-top-lg tn-margin-bottom-lg tn-padding-top-sm tn-padding-bottom-sm" v-if="!showLogin">
  208. <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" @click="showLogout()">
  209. <view class="tn-flex tn-flex-col-center">
  210. <view
  211. class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
  212. <view class="tn-icon-logout" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
  213. </view>
  214. <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">退出登录</view>
  215. <view class="tn-color-gray tn-icon-right"></view>
  216. </view>
  217. </tn-list-cell>
  218. </view>
  219. </view>
  220. <uni-popup ref="alertDialog" type="dialog">
  221. <uni-popup-dialog :type="msgType" cancelText="取消" confirmText="确定" title="确定注销账户吗?" content=" " @confirm="logOff()"
  222. @close="dialogClose"></uni-popup-dialog>
  223. </uni-popup>
  224. <view class='tn-tabbar-height'></view>
  225. </view>
  226. </template>
  227. <script>
  228. import request from '../../utils/request'
  229. import {
  230. uniShowModal
  231. } from '../../utils/uni_api'
  232. export default {
  233. name: 'Mine',
  234. data() {
  235. return {
  236. personInfo: uni.getStorageSync('userInfo')?JSON.parse(uni.getStorageSync('userInfo')):{},
  237. showLogin: false,
  238. msgType:'',
  239. shareNum:0,
  240. needNum:0,
  241. wxFontSize:17,
  242. }
  243. },
  244. onReady() {
  245. const appBaseInfo = wx.getAppBaseInfo();
  246. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  247. console.warn(this.wxFontSize===20);
  248. this.$nextTick(() => {
  249. if(!uni.getStorageSync('userNo')){
  250. this.showLogin = true;
  251. return false;
  252. }
  253. if(!uni.getStorageSync('loginOut')){
  254. this.getContentRectInfo()
  255. // this.loadNum();
  256. // this.loadNum2();
  257. }
  258. })
  259. },
  260. methods: {
  261. fetchData(){
  262. if(!uni.getStorageSync('userNo')){
  263. this.showLogin = true;
  264. return false;
  265. }
  266. if(!uni.getStorageSync('loginOut')){
  267. this.getContentRectInfo()
  268. // this.loadNum();
  269. // this.loadNum2();
  270. }
  271. },
  272. // 获取内容容器的信息
  273. getContentRectInfo() {
  274. let that = this;
  275. request.post('/slbWxma/getPersonlInfo', {
  276. }).then(res => {
  277. console.warn(res);
  278. if(res&&res.success){
  279. that.personInfo = res.resultMap.userInfo||{};
  280. uni.setStorageSync('userInfo', JSON.stringify(res.resultMap.userInfo));
  281. that.showLogin = false;
  282. }
  283. console.warn(res);
  284. })
  285. },
  286. loadNum(){
  287. let that = this;
  288. request.post('/slbResourceDemand/show/my', {
  289. }).then(res => {
  290. if(res&&res.resultMap){
  291. that.needNum = res.resultMap.passNum||0
  292. }
  293. })
  294. },
  295. loadNum2(){
  296. let that = this;
  297. request.post('/slbResourceShare/show/my', {
  298. }).then(res => {
  299. if(res&&res.resultMap){
  300. that.shareNum = res.resultMap.passNum||0
  301. }
  302. })
  303. },
  304. showFont(){
  305. let that = this;
  306. uni.showActionSheet({
  307. itemList: ['跟随微信','小','中','大'],
  308. success: function (res) {
  309. if(res.tapIndex==1){
  310. uni.setStorageSync('fontSize',16)
  311. that.wxFontSize = 16;
  312. uni.reLaunch({
  313. url:'/pages/index/index?index=3'
  314. })
  315. }
  316. if(res.tapIndex==2){
  317. // uni.removeStorageSync('fontSize');
  318. uni.setStorageSync('fontSize',17)
  319. that.wxFontSize = 17;
  320. uni.reLaunch({
  321. url:'/pages/index/index?index=3'
  322. })
  323. }
  324. if(res.tapIndex==3){
  325. uni.setStorageSync('fontSize',20)
  326. that.wxFontSize = 20;
  327. uni.reLaunch({
  328. url:'/pages/index/index?index=3'
  329. })
  330. }
  331. if(res.tapIndex==0){
  332. const appBaseInfo = wx.getAppBaseInfo();
  333. uni.removeStorageSync('fontSize');
  334. that.wxFontSize = appBaseInfo.fontSizeSetting||17;
  335. uni.reLaunch({
  336. url:'/pages/index/index?index=3'
  337. })
  338. }
  339. },
  340. fail: function (res) {
  341. console.log(res.errMsg);
  342. }
  343. });
  344. },
  345. // 跳转
  346. tn(e) {
  347. if(!uni.getStorageSync('userNo')){
  348. uni.setStorageSync('nextPage',e);
  349. uni.navigateTo({
  350. url: '/pages/login/login',
  351. });
  352. return false;
  353. }
  354. uni.navigateTo({
  355. url: e,
  356. });
  357. },
  358. toLogin(e){
  359. uni.navigateTo({
  360. url: e,
  361. });
  362. },
  363. showFeedback(){
  364. uni.navigateTo({
  365. url: '/pages/mine/addFeed',
  366. });
  367. },
  368. showInfo(){
  369. uni.navigateTo({
  370. url: '/pages/login/info?counted=1'
  371. })
  372. },
  373. showInfo2() {
  374. uni.navigateTo({
  375. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title=隐私协议&url='+'https://oss.lx-device.com/userFeedback/1735201139460G1J.docx'),
  376. })
  377. },
  378. showAbout(){
  379. uni.navigateTo({
  380. url: '/pages/mine/about'
  381. })
  382. },
  383. showLog(){
  384. let that = this;
  385. uniShowModal('确定注销账户吗?', '', {
  386. showCancel: true,
  387. success: (res) => {
  388. console.error(res);
  389. if(res.confirm){
  390. that.logOff();
  391. }
  392. }
  393. })
  394. },
  395. showLogout(){
  396. let that = this;
  397. uniShowModal('确定退出登录吗?', '', {
  398. showCancel: true,
  399. success: (res) => {
  400. console.error(res);
  401. if(res.confirm){
  402. uni.setStorageSync('loginStatus', 'false');
  403. uni.setStorageSync('loginOut', 'true');
  404. uni.removeStorageSync('userMap');
  405. uni.removeStorageSync('userNo');
  406. uni.removeStorageSync('userInfo');
  407. that.showLogin = true;
  408. that.shareNum = 0;
  409. that.needNum = 0;
  410. that.personInfo = {};
  411. // uni.reLaunch({
  412. // url:'/pages/index/index'
  413. // })
  414. }
  415. }
  416. })
  417. },
  418. //注销
  419. logOff(){
  420. const that = this;
  421. request.post('/slbWxma/logOff', {
  422. userNo: uni.getStorageSync('userNo'),
  423. }).then(res => {
  424. if (res&&res.success) {
  425. uni.setStorageSync('loginStatus', 'false');
  426. uni.setStorageSync('loginOut', 'true');
  427. uni.removeStorageSync('userMap');
  428. uni.removeStorageSync('userNo');
  429. uni.removeStorageSync('userInfo');
  430. that.showLogin = true;
  431. that.personInfo = {};
  432. uni.showToast({
  433. title: '注销成功',
  434. icon: 'none'
  435. })
  436. uni.reLaunch({
  437. url: '/pages/index/index'
  438. })
  439. }else{
  440. uni.showToast({
  441. title: res.msg,
  442. icon: 'none'
  443. })
  444. }
  445. })
  446. }
  447. }
  448. }
  449. </script>
  450. <style lang="scss" scoped>
  451. .mine{
  452. max-height: 100vh;
  453. }
  454. /* 底部安全边距 start*/
  455. .tn-tabbar-height {
  456. min-height: 120rpx;
  457. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  458. height: calc(140rpx + constant(safe-area-inset-bottom));
  459. }
  460. .tn-color-cat{
  461. color: #1D2541;
  462. }
  463. .tn-bg-cat{
  464. background-color: #1D2541;
  465. }
  466. /* 自定义导航栏内容 start */
  467. .custom-nav {
  468. height: 100%;
  469. &__back {
  470. margin: auto 5rpx;
  471. font-size: 40rpx;
  472. margin-right: 10rpx;
  473. flex-basis: 5%;
  474. width: 100rpx;
  475. position: absolute;
  476. }
  477. }
  478. /* 自定义导航栏内容 end */
  479. /* 顶部背景图 end */
  480. /* 用户头像 start */
  481. .logo-image {
  482. width: 140rpx;
  483. height: 140rpx;
  484. position: relative;
  485. overflow: hidden;
  486. border-radius: 50%;
  487. }
  488. .logo-pic {
  489. background-size: cover;
  490. background-repeat: no-repeat;
  491. // background-attachment:fixed;
  492. background-position: top;
  493. border: 8rpx solid rgba(255,255,255,0.05);
  494. box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
  495. border-radius: 50%;
  496. overflow: hidden;
  497. // background-color: #FFFFFF;
  498. }
  499. /* 页面 start*/
  500. .about-shadow {
  501. border-radius: 15rpx;
  502. box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
  503. }
  504. .about {
  505. &__wrap {
  506. position: relative;
  507. z-index: 1;
  508. margin: 20rpx 30rpx;
  509. }
  510. }
  511. /* 页面 end*/
  512. /* 图标容器15 start */
  513. .icon15 {
  514. &__item {
  515. width: 30%;
  516. background-color: #FFFFFF;
  517. border-radius: 10rpx;
  518. padding: 30rpx;
  519. margin: 20rpx 10rpx;
  520. transform: scale(1);
  521. transition: transform 0.3s linear;
  522. transform-origin: center center;
  523. &--icon {
  524. width: 100rpx;
  525. height: 100rpx;
  526. font-size: 60rpx;
  527. border-radius: 50%;
  528. margin-bottom: 18rpx;
  529. position: relative;
  530. z-index: 1;
  531. &::after {
  532. content: " ";
  533. position: absolute;
  534. z-index: -1;
  535. width: 100%;
  536. height: 100%;
  537. left: 0;
  538. bottom: 0;
  539. border-radius: inherit;
  540. opacity: 1;
  541. transform: scale(1, 1);
  542. background-size: 100% 100%;
  543. }
  544. }
  545. }
  546. }
  547. /* 图标容器12 start */
  548. .tn-three{
  549. position: absolute;
  550. top: 50%;
  551. right: 50%;
  552. bottom: 50%;
  553. left: 50%;
  554. transform: translate(-38rpx, -16rpx) rotateX(30deg) rotateY(20deg) rotateZ(-30deg);
  555. text-shadow: -1rpx 2rpx 0 #f0f0f0, -2rpx 4rpx 0 #f0f0f0, -10rpx 20rpx 30rpx rgba(0, 0, 0, 0.2);
  556. }
  557. .icon20 {
  558. &__item {
  559. width: 30%;
  560. background-color: #FFFFFF;
  561. border-radius: 10rpx;
  562. padding: 30rpx;
  563. margin: 20rpx 10rpx;
  564. transform: scale(1);
  565. transition: transform 0.3s linear;
  566. transform-origin: center center;
  567. &--icon {
  568. width: 100rpx;
  569. height: 100rpx;
  570. font-size: 60rpx;
  571. border-radius: 50%;
  572. margin-bottom: 18rpx;
  573. position: relative;
  574. z-index: 1;
  575. &::after {
  576. content: " ";
  577. position: absolute;
  578. z-index: -1;
  579. width: 100%;
  580. height: 100%;
  581. left: 0;
  582. bottom: 0;
  583. border-radius: inherit;
  584. opacity: 1;
  585. transform: scale(1, 1);
  586. background-size: 100% 100%;
  587. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  588. }
  589. }
  590. }
  591. }
  592. .button-vip {
  593. width: 100%;
  594. height: 150rpx;
  595. border-radius: 15rpx;
  596. position: relative;
  597. z-index: 1;
  598. &::after {
  599. content: " ";
  600. position: absolute;
  601. z-index: -1;
  602. width: 100%;
  603. height: 100%;
  604. left: 0;
  605. bottom: 0;
  606. border-radius: inherit;
  607. opacity: 1;
  608. transform: scale(1, 1);
  609. background-size: 100% 100%;
  610. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  611. }
  612. }
  613. /* 图标容器12 start */
  614. .icon12 {
  615. &__item {
  616. width: 30%;
  617. background-color: #FFFFFF;
  618. border-radius: 10rpx;
  619. padding: 30rpx;
  620. margin: 20rpx 10rpx;
  621. transform: scale(1);
  622. transition: transform 0.3s linear;
  623. transform-origin: center center;
  624. &--icon {
  625. width: 15rpx;
  626. height: 15rpx;
  627. font-size: 50rpx;
  628. border-radius: 50%;
  629. margin-bottom: 38rpx;
  630. position: relative;
  631. z-index: 1;
  632. &::after {
  633. content: " ";
  634. position: absolute;
  635. z-index: -1;
  636. width: 100%;
  637. height: 100%;
  638. left: 0;
  639. bottom: 0;
  640. border-radius: inherit;
  641. opacity: 1;
  642. transform: scale(1, 1);
  643. background-size: 100% 100%;
  644. }
  645. }
  646. }
  647. }
  648. /* 图标容器1 start */
  649. .icon1 {
  650. &__item {
  651. // width: 30%;
  652. background-color: #FFFFFF;
  653. border-radius: 10rpx;
  654. padding: 30rpx;
  655. margin: 20rpx 10rpx;
  656. transform: scale(1);
  657. transition: transform 0.3s linear;
  658. transform-origin: center center;
  659. &--icon {
  660. width: 40rpx;
  661. height: 40rpx;
  662. font-size: 40rpx;
  663. border-radius: 50%;
  664. position: relative;
  665. z-index: 1;
  666. &::after {
  667. content: " ";
  668. position: absolute;
  669. z-index: -1;
  670. width: 100%;
  671. height: 100%;
  672. left: 0;
  673. bottom: 0;
  674. border-radius: inherit;
  675. opacity: 1;
  676. transform: scale(1, 1);
  677. background-size: 100% 100%;
  678. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);
  679. }
  680. }
  681. }
  682. }
  683. /* 图标容器1 end */
  684. /* 顶部背景图 start */
  685. .top-backgroup {
  686. height: 450rpx;
  687. z-index: -1;
  688. .backgroud-image {
  689. width: 100%;
  690. height: 450rpx;
  691. // z-index: -1;
  692. }
  693. }
  694. /* 顶部背景图 end */
  695. </style>