index.nvue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <view class="userPage">
  3. <view class="top-bg">
  4. <view class="top2-bg">
  5. <view class="top3-bg">
  6. </view>
  7. </view>
  8. </view>
  9. <view class="contentBox">
  10. <view class="top-view">
  11. <view class="top-inner">
  12. <view class="statusBar" :style="'height:' + statusBarHeight + 'px'"></view>
  13. <view class="top-h45"></view>
  14. <view class="user" v-if="user != null">
  15. <view class="avatar">
  16. <image class='avatarImage' :src=" user.avatar || '/static/img/user-avatar2.png'"
  17. mode="aspectFill"></image>
  18. </view>
  19. <text class="nickname">{{ user.nickname }}</text>
  20. <view class="iname">
  21. <text class="id-name">ID:{{ user.number_code }}</text>
  22. </view>
  23. <view class="level" v-if="isNewShow">
  24. <text class="name">{{ user.mentor_name }}</text>
  25. </view>
  26. <view class="newPeople" v-if="isNewShow">
  27. <text class='newPeopletext' v-if="user.regtime == 0">到期时间:永久</text>
  28. <view v-if="user.regtime > 0" class="">
  29. <text class='newPeopletext'>到期时间</text>:<uv-count-down :time="timeValues"
  30. format="DD:HH:mm:ss"></uv-count-down>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="user" @tap="tapLogin" v-else>
  35. <view class="avatar">
  36. <image class='avatarImage' src="/static/img/user-avatar2.png" mode="aspectFill"></image>
  37. </view>
  38. <text class="nickname">点击登录</text>
  39. </view>
  40. <!--收益情况-->
  41. <view class="earnings" v-if="sysData.is_audit == 0">
  42. <view class="item">
  43. <view class="itemLeftBox">
  44. <text class="name">我的收益</text>
  45. <text class="count">{{ user != null ? (user.total_earnings||'0.00') : 0 }}</text>
  46. </view>
  47. <image class="rightImageIcon" src="/static/img/userinfo1.png" mode="scaleToFill"></image>
  48. </view>
  49. <view class="line"></view>
  50. <view class="item" @tap="tapOpen" data-url="/pages/user/detail/integral">
  51. <view class="itemLeftBox">
  52. <text class="name">我的趣豆</text>
  53. <text class="count">{{ user != null ? user.integral : 0 }}</text>
  54. </view>
  55. <image class="rightImageIcon" src="/static/img/userinfo2.png" mode="scaleToFill"></image>
  56. </view>
  57. <view class="lineAll"></view>
  58. <view class="item" @tap="tapOpen" data-url="/pages/user/detail/anticipate">
  59. <view class="itemLeftBox">
  60. <text class="name">易趣卷</text>
  61. <text class="count">{{ user != null ? user.anticipate : 0 }}</text>
  62. </view>
  63. <image class="rightImageIcon" src="/static/img/userinfo3.png" mode="scaleToFill"></image>
  64. </view>
  65. <view class="line"></view>
  66. <view class="item" @tap="tapOpen" data-url="/pages/user/detail/detail">
  67. <view class="itemLeftBox">
  68. <text class="name">提货积分</text>
  69. <text class="count">{{ user != null ? user.good_integral : 0 }}</text>
  70. </view>
  71. <image class="rightImageIcon" src="/static/img/userinfo4.png" mode="scaleToFill"></image>
  72. </view>
  73. <view class="line" v-if="user != null && user.number_code == 358"></view>
  74. <view class="item fx-r fx-bc fx-ac" v-if="user != null && user.number_code == 358"
  75. @tap="tapOpen" data-url="/pages/user/detail/award">
  76. <view class="itemLeftBox">
  77. <text class="name">奖金</text>
  78. <text class="count">{{ user != null ? user.award : 0 }}</text>
  79. </view>
  80. <image class="rightImageIcon" src="/static/img/userinfo4.png" mode="scaleToFill"></image>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!--馆长中心-->
  86. <view class="gz" v-if="user != null && user.isgz" @tap="tapOpen" data-url="/pages/gz/index">
  87. <image class="bg" src="/static/img/gz-bg.png"></image>
  88. <view class="inner">
  89. <image class="icon" src="/static/img/gz-zuan.png"></image>
  90. <text class="name">部门总监职能中心</text>
  91. <view class="sbtn">
  92. <text class="sbtnText">点击进入</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="body" :class="(user != null && user.isgz) ? 'to-gz' : 'no-gz' ">
  97. <view class="pannel" v-if="sysData.is_audit == 0">
  98. <view class="order-items">
  99. <view class="item" @tap="tapOpen" data-url="/pages/user/qrcode/index"
  100. v-if="sysData.is_audit == 0">
  101. <image class='shareImage' src="/static/img/user-content1.png"></image>
  102. <text class="name">邀请好友</text>
  103. </view>
  104. <view class="item" @tap="tapOpen" data-url="/pages/user/team/vermicelli"
  105. v-if="sysData.is_audit == 0">
  106. <image class='shareImage' src="/static/img/user-content2.png"></image>
  107. <text class="name">我的粉丝</text>
  108. </view>
  109. <view class="item" @tap="tapOpen" data-url="/pages/user/order/index">
  110. <image class='shareImage' src="/static/img/user-content3.png"></image>
  111. <text class="name">提货订单</text>
  112. </view>
  113. <view class="item" @tap="tapOpen" data-url="/pages/guild/order/order"
  114. v-if="sysData.is_audit == 0">
  115. <image class='shareImage' src="/static/img/user-content4.png"></image>
  116. <text class="name">购买订单</text>
  117. </view>
  118. <view class="item" @tap="tapOpen" data-url="/pages/guild/order/myPro">
  119. <image class='shareImage' src="/static/img/user-content5.png"></image>
  120. <text class="name">我的商品</text>
  121. </view>
  122. </view>
  123. </view>
  124. <!--我的商户-->
  125. <view class="pannel mt20" v-if=" user != null && user.m_id > 0">
  126. <view class="mySh">
  127. <text class="items-title">我的商户</text>
  128. <text class="shop-name">{{ user.m_name }}</text>
  129. </view>
  130. <view class="items">
  131. <view class="item" @tap="tapOpen" data-url="/pages/user/detail/brokerage">
  132. <image mode="heightFix" class="itemsImage" src="/static/img/user_earnings.png"></image>
  133. <text class="name">货款记录</text>
  134. </view>
  135. <view class="item" @tap="tapOpen" data-url="/pages/user/address/address">
  136. <image mode="heightFix" class="itemsImage" src="/static/img/user_tx.png"></image>
  137. <text class="name">我要提现</text>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="pannel mt20">
  142. <view class="pannelTopImgBox">
  143. <image class="pannelTopImg" src="/static/img/moreGn.png" mode="scaleToFill"></image>
  144. </view>
  145. <view class="items">
  146. <view class="item" @tap="tapOpen" data-url="/pages/user/bank/bank" v-if="sysData.is_audit == 0">
  147. <image class="itemsImage" src="/static/img/userico1.png" mode="heightFix"></image>
  148. <text class="name">收款信息</text>
  149. </view>
  150. <view class="item" @tap="tapOpenRz" v-if="sysData.is_audit == 0">
  151. <image class="itemsImage" src="/static/img/userico2.png" mode="heightFix"></image>
  152. <text class="name">实名认证</text>
  153. </view>
  154. <view class="item" @tap="tapOpen" data-url="/pages/user/address/address">
  155. <image class="itemsImage" src="/static/img/userico3.png" mode="heightFix"></image>
  156. <text class="name">收货地址</text>
  157. </view>
  158. <view class="item" @tap="openKf">
  159. <image class="itemsImage" src="/static/img/userico4.png" mode="heightFix"></image>
  160. <text class="name">联系客服</text>
  161. </view>
  162. <view class="item" @tap="tapOpen" data-url="/pages/user/userinfo/index">
  163. <image class="itemsImage" src="/static/img/userico5.png" mode="heightFix"></image>
  164. <text class="name">个人资料</text>
  165. </view>
  166. <view class="item" @tap="tapPayment" v-if="sysData.is_audit == 0">
  167. <image class="itemsImage" src="/static/img/userico6.png" mode="heightFix"></image>
  168. <text class="name">交易密码</text>
  169. </view>
  170. <view class="item" @tap="tapOpen" data-url="/pages/user/userinfo/bindPhone"
  171. v-if="sysData.is_audit == 0">
  172. <image class="itemsImage" src="/static/img/userico7.png" mode="heightFix"></image>
  173. <text class="name">绑定手机</text>
  174. </view>
  175. <view class="item" @tap="tapOpen" data-url="/pages/user/setting/index">
  176. <image class="itemsImage" src="/static/img/userico8.png" mode="heightFix"></image>
  177. <text class="name">设置</text>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. <customer-wiget ref="customer"></customer-wiget>
  184. <view class="popwin" v-if="isGg">
  185. <view class="bg"></view>
  186. <view class="body fx-h">
  187. <image src="/static/img/user_vip_bg.png" class="bgimg"></image>
  188. <view class="pop-body">
  189. <text class="inner-top">尊敬的高级合伙人</text>
  190. <text class="inner-tip">您的高级合伙人有效期仅剩</text>
  191. <view class="inner">
  192. <view class="max-he fx-r fx-be fx-ac">
  193. <text class="c">{{ user != null ? user.last_mentor_time : ""}}</text>
  194. <text class="t">天</text>
  195. </view>
  196. <view class="fx-r fx-bc fx-ac foot">
  197. <text class="btn" @tap="isGg = false">我知晓></text>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="m-close fx-h fx-bc">
  202. <image src="/static/img/btn-close.png" @tap="isGg = false" class="icon"></image>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </template>
  208. <style lang="scss">
  209. .contentBox {
  210. margin-top: -622rpx;
  211. }
  212. .userPage {
  213. width: 750rpx;
  214. // border: 1px solid #000;
  215. background-color: #FEF7F5;
  216. }
  217. .top-bg {
  218. width: 750rpx;
  219. height: 622rpx;
  220. .top2-bg {
  221. width: 750rpx;
  222. height: 622rpx;
  223. background-image: linear-gradient(to right, #FEA9C8, #FFA18E);
  224. .top3-bg {
  225. width: 750rpx;
  226. height: 622rpx;
  227. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FEF7F5);
  228. }
  229. }
  230. }
  231. .newPeople {
  232. padding-top: 15rpx;
  233. .newPeopletext {
  234. font-size: 12px;
  235. color: #999;
  236. }
  237. }
  238. .top-view {
  239. width: 750rpx;
  240. .top-inner {
  241. z-index: 1;
  242. .top-h45 {
  243. height: 45rpx;
  244. }
  245. .user {
  246. justify-content: center;
  247. align-items: center;
  248. }
  249. .avatar {
  250. width: 130rpx;
  251. height: 130rpx;
  252. background: #efa69b;
  253. border-radius: 50%;
  254. .avatarImage {
  255. width: 120rpx;
  256. height: 120rpx;
  257. border-radius: 50%;
  258. margin-left: 5rpx;
  259. margin-top: 5rpx;
  260. }
  261. }
  262. .nickname {
  263. margin-top: 20rpx;
  264. color: #000;
  265. font-size: 34rpx;
  266. font-weight: bold;
  267. }
  268. .iname {
  269. margin-top: 12rpx;
  270. .id-name {
  271. font-size: 30rpx;
  272. color: #666666;
  273. }
  274. }
  275. .level {
  276. margin-top: 20rpx;
  277. background-image: linear-gradient(to right, #f9ecc5 0%, #d6ba63 100%);
  278. border-radius: 60rpx;
  279. padding: 0 36rpx;
  280. .name {
  281. font-size: 30rpx;
  282. color: #93794B;
  283. margin-right: 2px;
  284. &:last-child {
  285. margin-right: 0;
  286. }
  287. }
  288. }
  289. .level-ty {
  290. position: absolute;
  291. right: 10px;
  292. bottom: -12px;
  293. font-size: 12px;
  294. color: #fff;
  295. }
  296. .earnings {
  297. margin: 25rpx 30rpx 0;
  298. border-radius: 20rpx;
  299. background-color: #FFF;
  300. flex-direction: row;
  301. flex-wrap: wrap;
  302. align-items: center;
  303. .lineAll {
  304. width: 790rpx;
  305. height: 1px;
  306. background-color: rgba(245, 245, 247, 1);
  307. }
  308. .item {
  309. width: 342rpx;
  310. padding: 30rpx;
  311. line-height: 1;
  312. flex-direction: row;
  313. justify-content: space-between;
  314. align-items: center;
  315. .itemLeftBox {
  316. flex: 1;
  317. }
  318. .rightImageIcon {
  319. width: 66rpx;
  320. height: 66rpx;
  321. }
  322. .count {
  323. margin-top: 20rpx;
  324. font-size: 25rpx;
  325. color: rgba(255, 76, 76, 1);
  326. }
  327. .name {
  328. font-weight: bold;
  329. font-size: 28rpx;
  330. color: rgba(35, 35, 38, 1);
  331. }
  332. }
  333. .line {
  334. width: 1px;
  335. height: 70rpx;
  336. background-color: rgba(245, 245, 247, 1);
  337. }
  338. }
  339. }
  340. }
  341. .gz {
  342. padding: 0px 30rpx;
  343. margin-top: 20rpx;
  344. .bg {
  345. width: 690rpx;
  346. height: 77rpx;
  347. }
  348. .inner {
  349. position: absolute;
  350. width: 670rpx;
  351. height: 74rpx;
  352. left: 40rpx;
  353. top: 0;
  354. flex-direction: row;
  355. align-items: center;
  356. .icon {
  357. width: 40rpx;
  358. height: 36rpx;
  359. }
  360. .name {
  361. margin-left: 15rpx;
  362. font-size: 30rpx;
  363. color: #6A4714;
  364. flex: 1;
  365. }
  366. .sbtn {
  367. border-radius: 25rpx;
  368. padding: 10rpx 25rpx;
  369. background-color: #6A4714;
  370. .sbtnText {
  371. font-size: 26rpx;
  372. color: #F0E1C9;
  373. }
  374. }
  375. }
  376. }
  377. .body {
  378. padding: 20rpx 30rpx;
  379. position: relative;
  380. line-height: 1;
  381. .pannel {
  382. background: #fff;
  383. border-radius: 20rpx;
  384. .mySh {
  385. flex-direction: row;
  386. justify-content: space-between;
  387. align-items: center;
  388. }
  389. .pannelTopImgBox {
  390. padding: 30rpx 25rpx 0;
  391. .pannelTopImg {
  392. width: 140rpx;
  393. height: 26rpx !important;
  394. }
  395. }
  396. .order-items {
  397. padding: 40rpx 10rpx;
  398. flex-direction: row;
  399. flex-wrap: wrap;
  400. justify-content: space-between;
  401. .item {
  402. width: 134rpx;
  403. align-items: center;
  404. .shareImage {
  405. width: 90rpx;
  406. height: 88rpx;
  407. }
  408. .name {
  409. font-size: 24rpx;
  410. color: #0C1732;
  411. margin-top: 10rpx;
  412. }
  413. }
  414. }
  415. &.mt20 {
  416. margin-top: 20rpx;
  417. }
  418. .items-title {
  419. font-weight: bold;
  420. font-size: 28rpx;
  421. color: #333333;
  422. padding-left: 40rpx;
  423. padding-top: 30rpx;
  424. }
  425. .shop-name {
  426. font-size: 24rpx;
  427. color: #333333;
  428. padding-right: 10px;
  429. padding-top: 17px;
  430. }
  431. .items {
  432. padding-bottom: 40rpx;
  433. flex-direction: row;
  434. flex-wrap: wrap;
  435. .item {
  436. width: 170rpx;
  437. margin-top: 50rpx;
  438. align-items: center;
  439. .itemsImage {
  440. height: 40rpx;
  441. }
  442. .name {
  443. font-size: 24rpx;
  444. color: #333;
  445. margin-top: 32rpx;
  446. }
  447. }
  448. }
  449. }
  450. }
  451. /**弹出框 **/
  452. .popwin {
  453. position: fixed;
  454. width: 100%;
  455. height: 100%;
  456. top: 0;
  457. left: 0;
  458. z-index: 88;
  459. }
  460. .popwin .bg {
  461. background: rgba(0, 0, 0, 0.5);
  462. height: 100%;
  463. width: 100%;
  464. position: absolute;
  465. left: 0;
  466. top: 0;
  467. }
  468. .popwin .body {
  469. position: relative;
  470. border-radius: 8px;
  471. width: 100%;
  472. width: 80vw;
  473. right: -7vw;
  474. padding: 0;
  475. }
  476. .popwin .body .bgimg {
  477. width: 80vw;
  478. height: 83vw;
  479. position: absolute;
  480. top: 0;
  481. }
  482. .popwin .body .pop-body {
  483. width: 66vw;
  484. position: relative;
  485. }
  486. .popwin .body .inner {
  487. position: relative;
  488. z-index: 99;
  489. width: 670rpx;
  490. padding: 0px 40rpx;
  491. }
  492. .popwin .body .inner-top {
  493. height: 68rpx;
  494. line-height: 68rpx;
  495. text-align: center;
  496. font-weight: 500;
  497. font-size: 34rpx;
  498. color: #FEF9F0;
  499. }
  500. .popwin .body .inner-tip {
  501. margin-top: 60rpx;
  502. height: 53rpx;
  503. text-align: center;
  504. line-height: 53rpx;
  505. font-weight: bold;
  506. font-size: 26rpx;
  507. color: #F9FAFA;
  508. }
  509. .max-he {
  510. height: 31vw;
  511. }
  512. .max-he .c {
  513. font-size: 150rpx;
  514. color: #201F1F;
  515. font-weight: bold;
  516. }
  517. .max-he .t {
  518. position: relative;
  519. top: -40rpx;
  520. }
  521. .foot {
  522. height: 22vw;
  523. margin-top: 6vw;
  524. }
  525. .popwin .btn {
  526. background-image: linear-gradient(0deg, #FAC37B, #FFF5B0);
  527. box-shadow: 2px 7px 7px 0px rgba(161, 23, 36, 0.4);
  528. border-radius: 15rpx;
  529. height: 66rpx;
  530. width: 40vw;
  531. font-size: 38rpx;
  532. color: #97000E;
  533. text-align: center;
  534. line-height: 66rpx
  535. }
  536. .popwin .m-close {
  537. margin-top: 10px;
  538. width: 675rpx;
  539. }
  540. .popwin .m-close .icon {
  541. width: 120rpx;
  542. height: 120rpx;
  543. }
  544. </style>
  545. <script>
  546. import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
  547. import customerWiget from '@/components/ui-public/customer-wiget.nvue';
  548. import {
  549. mapState,
  550. mapMutations
  551. } from 'vuex';
  552. import utils from '@/library/utils/Comm.js'
  553. export default {
  554. components: {
  555. maoScroll,
  556. customerWiget
  557. },
  558. computed: mapState(['user', 'sysData']),
  559. data() {
  560. return {
  561. statusBarHeight: 20,
  562. isGg: false,
  563. isNewShow: false,
  564. timeValues: '',
  565. }
  566. },
  567. onLoad() {
  568. this.initView();
  569. },
  570. onShow(options) {
  571. this.checkUserLogin({
  572. page: this,
  573. isLogion: false,
  574. fn: this.init
  575. });
  576. },
  577. methods: {
  578. ...mapMutations(['setSys', 'checkUserLogin']),
  579. openKf() {
  580. this.$refs.customer.open()
  581. },
  582. initView: function() {
  583. uni.getSystemInfo({
  584. success: (res) => {
  585. this.statusBarHeight = res.statusBarHeight;
  586. }
  587. });
  588. },
  589. /**
  590. *
  591. */
  592. init: function() {
  593. // if (this.user.is_mentor) {
  594. // this.isGg = true;
  595. // }
  596. console.log(this.user.mentor_id)
  597. if ((this.user.mentor_id == 15 || this.user.mentor_id == 6 && this.user.regtime > 0)) {
  598. //获取当前时间的时间戳
  599. let nowTime = Math.round(new Date().getTime()).toString();
  600. console.log(nowTime, '现在时间')
  601. //注册时间 this.user.regtime 两个月后
  602. let date = new Date(this.user.regtime * 1000);
  603. console.log(date, '注册时间')
  604. // 获取日期的月份和年份,用于处理月末变化的情况
  605. let currentMonth = date.getMonth();
  606. let currentYear = date.getFullYear();
  607. date.setMonth(date.getMonth() + 2);
  608. if (date.getMonth() !== (currentMonth + 2) % 12 || date.getFullYear() !== currentYear + Math.floor(
  609. (currentMonth + 2) / 12)) {
  610. date.setDate(0);
  611. }
  612. let dateTimeStr = new Date(date);
  613. // 将Date对象转换为时间戳(以秒为单位)
  614. let timestamp = Math.floor(dateTimeStr.getTime());
  615. console.log(timestamp, '注册两个月后时间')
  616. if (nowTime > timestamp) {
  617. this.isNewShow = false
  618. } else {
  619. this.isNewShow = true
  620. this.timeValues = timestamp - nowTime
  621. console.log(this.timeValues, '到期倒计时')
  622. }
  623. }
  624. if ((this.user.mentor_id == 15 || this.user.mentor_id == 6) && this.user.regtime == 0) {
  625. this.isNewShow = true
  626. }
  627. },
  628. /**
  629. * 授权登录
  630. */
  631. tapLogin: function() {
  632. uni.navigateTo({
  633. url: "/pages/login/index"
  634. })
  635. },
  636. /**
  637. * 打开Open
  638. * @param {Object} ev
  639. */
  640. tapOpen: function(ev) {
  641. let url = ev.currentTarget.dataset.url;
  642. if (!utils.isDefine(this.user)) {
  643. uni.navigateTo({
  644. url: "/pages/login/index"
  645. });
  646. return;
  647. }
  648. utils.navigateTo(url);
  649. },
  650. /**
  651. * 交易密钥
  652. */
  653. tapPayment: function() {
  654. if (!utils.isDefine(this.user)) {
  655. uni.navigateTo({
  656. url: "/pages/login/index"
  657. });
  658. return;
  659. }
  660. if (this.user.is_payment) {
  661. uni.navigateTo({
  662. url: "/pages/user/userinfo/security/mobileFind"
  663. })
  664. } else {
  665. uni.navigateTo({
  666. url: "/pages/user/userinfo/security/newPass"
  667. })
  668. }
  669. },
  670. tapOpenRz: function() {
  671. if (!utils.isDefine(this.user)) {
  672. uni.navigateTo({
  673. url: "/pages/login/index"
  674. });
  675. return;
  676. }
  677. if (this.user.is_auth == 1) {
  678. utils.Tip("已实名认证");
  679. return;
  680. }
  681. uni.navigateTo({
  682. url: "/pages/user/approve"
  683. });
  684. },
  685. }
  686. }
  687. </script>