mine.vue 25 KB

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