index.nvue 18 KB

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