wode.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. <template>
  2. <view>
  3. <view class="header">
  4. <DtCustomBar title="我的"></DtCustomBar>
  5. <view style="display: flex;align-items: center;margin: 0 30upx;">
  6. <view class="member_head_img">
  7. <block v-if="isLogin">
  8. <image v-if="userDetail.avatar" :src="userDetail.avatar"></image>
  9. <button v-else class="avatar-wrap" open-type="getUserInfo" @getuserinfo="tapGetUserInfo"
  10. @tap.stop="() => false">
  11. <image src="https://wuye.nxzhsq.cn/oss/group1/M00/00/01/iwlnq1_AYZqAb30pAAAQNvkj3Wk302.png"></image>
  12. </button>
  13. </block>
  14. <image v-else
  15. src="https://wuye.nxzhsq.cn/oss/group1/M00/00/01/iwlnq1_AYZqAb30pAAAQNvkj3Wk302.png"></image>
  16. </view>
  17. <view v-if="isLogin" class="member_info">
  18. <view class="member_name_box" style="margin-bottom: 20rpx;">
  19. <view class="member_name">{{ username }}</view>
  20. </view>
  21. <view class="member_phone_box">
  22. <!-- <view class="member_phone">{{shopPhone}}</view> -->
  23. </view>
  24. </view>
  25. <view v-else class="no_login" @tap="showLogin">
  26. <button class="no_login_btn">游客(未登录)</button>
  27. </view>
  28. <view style="flex:1"></view>
  29. </view>
  30. <view style="display: flex;margin: 22upx 64upx 0;justify-content: space-between;">
  31. <view @tap="tapHeadMenu(0)" style="text-align: center;">
  32. <view style="font-size: 28upx;color: #fff;">{{dataDetail.couponNum?dataDetail.couponNum:0}}</view>
  33. <view style="font-size: 24upx;color: #fff;margin-top: 10upx;">我的优惠券</view>
  34. </view>
  35. <view @tap="tapHeadMenu(1)" style="text-align: center;">
  36. <view style="font-size: 28upx;color: #fff;">{{dataDetail.favoriteNum?dataDetail.favoriteNum:0}}
  37. </view>
  38. <view style="font-size: 24upx;color: #fff;margin-top: 10upx;">收藏商品</view>
  39. </view>
  40. <view @tap="tapHeadMenu(2)" style="text-align: center;">
  41. <view style="font-size: 28upx;color: #fff;">{{dataDetail.browseNum?dataDetail.browseNum:0}}</view>
  42. <view style="font-size: 24upx;color: #fff;margin-top: 10upx;">浏览记录</view>
  43. </view>
  44. </view>
  45. <view class="mine_order_statue">
  46. <view class="cu-list grid col-5 no-border margin-top-sm">
  47. <view class="cu-item" @click="tapToMenu(item.index)" v-for="(item,index) in gridList" :key="index">
  48. <view class="grid-icon ">
  49. <image style="width: 56rpx;height: 56rpx;" :src="item.icon"/>
  50. </view>
  51. <view class="cu-tag bg-orange badge" v-if="item.badge>0">{{item.badge}}</view>
  52. <text style="font-size: 22rpx;font-family:Sans-serif">{{item.title}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="item_list">
  57. <view class="item">
  58. <text style="font-size: 32rpx;">个人设置</text>
  59. </view>
  60. <view class="item" v-for="(item, index) in mineItemList" :key="index" @tap="tapToMenu(item.index)">
  61. <view class="item_content">
  62. <image :src="item.itemIcon"></image>
  63. <text>{{ item.itemName }}</text>
  64. </view>
  65. <view class="">
  66. <text v-if="index==0" style="padding-right: 16rpx;font-size: 26rpx;" class="text-red">
  67. {{authStatus}}
  68. </text>
  69. <image src="https://szsq.nxzhsq.cn/community/miniofile/image/arrow.png"></image>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="item_list">
  74. <view class="item">
  75. <text style="font-size: 32rpx;">系统设置</text>
  76. </view>
  77. <view class="item" v-for="(item, index) in systemItemList" :key="index" @tap="tapToMenu(item.index)">
  78. <view class="item_content">
  79. <image :src="item.itemIcon"></image>
  80. <text>{{ item.itemName }}</text>
  81. </view>
  82. <view class="">
  83. <image src="https://szsq.nxzhsq.cn/community/miniofile/image/arrow.png"></image>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="bg-white" style="80rpx">
  88. </view>
  89. </view>
  90. <!-- 微信客服 -->
  91. <DtService/>
  92. <DtLogin ref="dialogLogin" @signIn="onSignIn"/>
  93. </view>
  94. </template>
  95. <script>
  96. var app = getApp()
  97. import DtLogin from '../../comps/dt_login.vue';
  98. import DtService from '../../comps/dt_service.vue';
  99. import DtCustomBar from '../../comps/dt_custom_bar.vue'
  100. export default {
  101. components: {
  102. DtLogin,
  103. DtService,
  104. DtCustomBar
  105. },
  106. data() {
  107. return {
  108. height: '',
  109. //todo
  110. gridList: [
  111. {
  112. icon: '../../static/wode/order.png',
  113. title: "商城订单",
  114. badge: 0,
  115. index: 1
  116. },
  117. {
  118. icon: '../../static/wode/cart.png',
  119. title: "购物车",
  120. badge: 0,
  121. index: 2
  122. },
  123. {
  124. icon: '../../static/wode/wuye.png',
  125. title: "我的报修",
  126. badge: 0,
  127. index: 3
  128. },
  129. {
  130. icon: '../../static/wode/jiaofei1.png',
  131. title: "物业缴费",
  132. badge: 0,
  133. index: 5
  134. },
  135. {
  136. icon: '../../static/wode/contact.png',
  137. title: "联系物业",
  138. badge: 0,
  139. index: 4
  140. }
  141. ],
  142. isFirst: false,
  143. //社区 begin
  144. userInfo: null,
  145. //微信用户信息
  146. state: null,
  147. anyHousePass: false,
  148. //社区end
  149. mineItemList: [
  150. {
  151. itemName: '住户认证',
  152. itemIcon: '/static/wode/renzheng.png',
  153. index: 6
  154. },
  155. {
  156. itemName: '通行人脸',
  157. itemIcon: '/static/wode/face.png',
  158. index: 7
  159. },
  160. // {
  161. // itemName: '身份信息',
  162. // itemIcon: '/static/wode/shenfen.png',
  163. // index:8
  164. // },
  165. {
  166. itemName: '收货地址',
  167. itemIcon: '/static/wode/address.png',
  168. index: 9
  169. },
  170. {
  171. itemName: '出入记录',
  172. itemIcon: '/static/wode/chuxing.png',
  173. index: 13
  174. },
  175. ],
  176. systemItemList: [
  177. {
  178. itemName: '问题反馈',
  179. itemIcon: '/static/wode/fankui.png',
  180. index: 10
  181. },
  182. {
  183. itemName: '帮助中心',
  184. itemIcon: '/static/wode/shuoming.png',
  185. index: 11
  186. },
  187. {
  188. itemName: '设置',
  189. itemIcon: '/static/wode/setting.png',
  190. index: 12
  191. }
  192. ],
  193. //商城绑定的手机号
  194. shopPhone: '',
  195. memberId: '',
  196. dataDetail: {},
  197. orderStatusNum: {},
  198. userDetail: {},
  199. isLogin: false,
  200. };
  201. },
  202. computed: {
  203. authStatus: {
  204. get() {
  205. if (this.state == 0 && this.anyHousePass == false) {
  206. return "未认证"
  207. } else if (this.state == 1 && this.anyHousePass == false) {
  208. return "待审核"
  209. } else if (this.state == 2 || this.anyHousePass == true) {
  210. return "已认证"
  211. } else {
  212. return "未注册"
  213. }
  214. }
  215. },
  216. username: {
  217. get() {
  218. if (this.$isEmpty(getApp().globalData.member)) {
  219. if (this.$isEmpty(this.userDetail.username)) {
  220. return this.shopPhone
  221. } else {
  222. return this.userDetail.username
  223. }
  224. } else {
  225. return getApp().globalData.member.name
  226. }
  227. }
  228. }
  229. },
  230. methods: {
  231. async tapGetUserInfo(e) {
  232. console.log(158, e);
  233. if (e.detail.errMsg == 'getUserInfo:ok') {
  234. let userInfo = e.detail.userInfo;
  235. let resp = await this.$api.updateIcon({
  236. _isShowLoading: true,
  237. userId: this.memberId,
  238. avatar: userInfo.avatarUrl
  239. });
  240. this.userDetail.avatar = userInfo.avatarUrl;
  241. }
  242. },
  243. showLogin() {
  244. this.$refs.dialogLogin.show();
  245. },
  246. onSignIn(resp) {
  247. this.shopPhone = this.$auth.getMineBase().user.mobile || ''
  248. console.log(143, resp);
  249. this.onPullDownRefreshPage();
  250. },
  251. tapToWhich(aimUrl) {
  252. if (!this.$auth.isAuth) {
  253. this.showLogin();
  254. return;
  255. }
  256. uni.navigateTo({
  257. url: aimUrl
  258. });
  259. },
  260. tapToOrder() {
  261. if (!this.$auth.isAuth) {
  262. this.showLogin();
  263. return;
  264. }
  265. uni.navigateTo({
  266. url: '/pagesM/pages/mine_order_list'
  267. });
  268. },
  269. tapToCar() {
  270. if (!this.$auth.isAuth) {
  271. this.showLogin();
  272. return;
  273. }
  274. uni.navigateTo({
  275. url: '/pagesM/pages/shop_car'
  276. })
  277. },
  278. onShareAppMessage: function (e) {
  279. return {
  280. path: '/pagesM/pages/home'
  281. }
  282. },
  283. tapHeadMenu(index) {
  284. let url;
  285. if (index == 0) {
  286. url = '/pagesM/pages/coupon_list'
  287. } else if (index == 1) {
  288. url = '/pagesM/pages/mine_collection'
  289. } else if (index == 2) {
  290. url = '/pagesM/pages/browse_records'
  291. }
  292. uni.navigateTo({
  293. url: url
  294. });
  295. },
  296. tapToMenu(index) {
  297. let url = ''
  298. switch (index) {
  299. case 1:
  300. //商城订单
  301. this.tapToOrder()
  302. break;
  303. case 2:
  304. //购物车
  305. this.tapToCar()
  306. break;
  307. case 3:
  308. // 我的报修
  309. if (this.buttonMethod()) {
  310. uni.navigateTo({
  311. url: '../services/property/list/list'
  312. })
  313. }
  314. break;
  315. case 4:
  316. // 联系物业
  317. let phone = uni.getStorageSync("personTel")
  318. if (this.$isEmpty(phone)) {
  319. this.$u.toast('暂无电话')
  320. } else {
  321. this.makePhoneCall(phone);
  322. }
  323. break;
  324. case 5:
  325. //物业缴费
  326. this.$u.toast('即将开放')
  327. break;
  328. case 6:
  329. //住户认证
  330. if (this.buttonMethod()) {
  331. uni.navigateTo({
  332. url: "myInfo/myInfo"
  333. })
  334. }
  335. break;
  336. case 7:
  337. // 通行人脸
  338. if (this.buttonMethod()) {
  339. uni.navigateTo({
  340. url: "/pages/uploadFace/uploadFace"
  341. })
  342. }
  343. break;
  344. case 8:
  345. // 身份信息
  346. uni.showToast({
  347. title: "暂未开发",
  348. icon: "none"
  349. })
  350. break;
  351. case 9:
  352. // 收货地址
  353. url = '/pagesM/pages/address_list'
  354. break;
  355. case 10:
  356. // 问题反馈
  357. url = "./feedback/feedback"
  358. break;
  359. case 11:
  360. // 帮助中心
  361. url = "direction/direction"
  362. break;
  363. case 12:
  364. // 设置
  365. url = "/pagesM/pages/mine_setting"
  366. break;
  367. case 13:
  368. //出入记录
  369. if (this.buttonMethod()) {
  370. uni.navigateTo({
  371. url: "travelRecord/travelRecord"
  372. })
  373. }
  374. break;
  375. default:
  376. break;
  377. }
  378. if (url != '') {
  379. uni.navigateTo({
  380. url: url,
  381. });
  382. }
  383. },
  384. async getMyBaseDatas() {
  385. let resp = await this.$api.getMyBaseDatas({
  386. _isReject: true,
  387. _isPull: this.isPull,
  388. memberId: this.memberId
  389. });
  390. console.log(resp)
  391. this.$auth.getMineBase(resp);
  392. this.dataDetail = resp;
  393. this.orderStatusNum = resp.orderStatusNum || {};
  394. this.userDetail = resp.user || {};
  395. },
  396. onLoadPage() {
  397. wx.hideShareMenu();
  398. this.communityInitData()
  399. this.isLogin = this.$auth.isAuth;
  400. this.memberId = this.$auth.getMemberId();
  401. this.getMyBaseDatas();
  402. // this.memberId = this.$auth.getMemberId();
  403. // this.getMyBaseDatas();
  404. },
  405. // 社区 begin
  406. communityInitData() {
  407. var that = this; //从全局变量中获取用户信息
  408. if (app.globalData.member) {
  409. that.setData({
  410. state: app.globalData.member.state,
  411. anyHousePass: app.globalData.anyHousePass
  412. });
  413. }
  414. },
  415. login() {
  416. var that = this; //从全局变量中获取用户信息
  417. if (app.globalData.userInfo == null) {
  418. uni.login({
  419. success: function () {
  420. uni.getUserInfo({
  421. success: function (res) {
  422. console.log(res);
  423. that.isLogin = true
  424. app.globalData.userInfo = res.userInfo;
  425. that.setData({
  426. userInfo: res.userInfo
  427. });
  428. }
  429. });
  430. }
  431. });
  432. } else {
  433. that.isLogin = true
  434. that.setData({
  435. userInfo: app.globalData.userInfo
  436. });
  437. }
  438. if (app.globalData.member) {
  439. that.setData({
  440. state: app.globalData.member.state,
  441. anyHousePass: app.globalData.anyHousePass
  442. });
  443. }
  444. },
  445. //用户认证信息
  446. buttonMethod: function () {
  447. var that = this; //会员认证状态:{ 0:未认证,1:待审审核,2:已认证 }
  448. var member = app.globalData.member;
  449. var anyHousePass = app.globalData.anyHousePass;
  450. if (member == null) {
  451. //未注册
  452. uni.navigateTo({
  453. url: "../empty/empty"
  454. })
  455. return false;
  456. } else if (member.state == 0 && !anyHousePass) {
  457. //2未认证
  458. uni.navigateTo({
  459. url: "../empty/empty?type=2"
  460. })
  461. return false;
  462. } else if (member.state == 1 && !anyHousePass) {
  463. //待审核
  464. that.pending();
  465. return false;
  466. } else if (member.state == 2 || anyHousePass) {
  467. return true
  468. } else {
  469. return false
  470. }
  471. },
  472. //提示用户身份注册
  473. footaddmore: function () {
  474. uni.showModal({
  475. title: '提示',
  476. content: ' 请先完成注册',
  477. //cancelText:'去绑定',
  478. cancelText: '取消',
  479. confirmText: '去注册',
  480. success: function (res) {
  481. if (res.confirm) {
  482. console.log('用户点击了确认-去认证'); //跳转到认证页面
  483. uni.navigateTo({
  484. url: '../register/register'
  485. });
  486. } else {//res.cancel
  487. //绑定界面--暂时不用
  488. // wx.navigateTo({
  489. // url: '/pages/binding/binding',
  490. // })
  491. }
  492. }
  493. });
  494. },
  495. //用户信息待审核中
  496. pending: function () {
  497. let that = this;
  498. var openid = uni.getStorageSync("openid");
  499. let params = {};
  500. params['openid'] = openid;
  501. let operation = 'miniprogram/getMemberByOpenid';
  502. app.globalData.postRequest(params, operation, function (res) {
  503. //获取成功
  504. if (res.data.result_code == 1) {
  505. let member = res.data.member; //待审核
  506. if (member.state == 1 && !res.data.anyHousePass) {
  507. app.globalData.oneFailHint('亲,你的信息正在审核,请耐心等待');
  508. } else if (member.state == 2) {
  509. app.globalData.oneFailHint('亲,你的信息已审核通过', function () {
  510. that.setData({
  511. state: member.state
  512. });
  513. });
  514. }
  515. app.globalData.member = member;
  516. app.globalData.anyHousePass = res.data.anyHousePass;
  517. } else {
  518. app.globalData.oneFailHint(res.data.result_msg);
  519. }
  520. });
  521. },
  522. // 社区 end
  523. },
  524. onReady() {
  525. if (!this.$auth.isAuth) {
  526. this.showLogin();
  527. return;
  528. } else {
  529. this.$refs.dialogLogin.hide();
  530. }
  531. },
  532. onShow() {
  533. //小程序审核期间隐藏掉
  534. let appletType = uni.getStorageSync('appletType')
  535. let tmp = this.mineItemList
  536. if (appletType == '0') {
  537. this.mineItemList.splice(1, 1)
  538. this.mineItemList.splice(1, 1)
  539. } else {
  540. this.mineItemList = tmp
  541. }
  542. if (this.isFirst) {
  543. this.isFirst = false
  544. } else {
  545. }
  546. this.onShowPage();
  547. wx.hideShareMenu();
  548. this.communityInitData()
  549. this.isLogin = this.$auth.isAuth;
  550. this.memberId = this.$auth.getMemberId();
  551. this.getMyBaseDatas();
  552. },
  553. onPullDownRefresh() {
  554. this.onPullDownRefreshPage();
  555. }
  556. };
  557. </script>
  558. <style>
  559. page {
  560. background-color: #FFFFFF;
  561. }
  562. </style>
  563. <style lang="scss" scoped>
  564. .pageBg {
  565. // background-color: #FFFFFF;
  566. }
  567. button::after {
  568. border: none;
  569. }
  570. .header {
  571. // border-bottom-left-radius: 20rpx;
  572. border-bottom-right-radius: 60 rpx;
  573. //todo
  574. background-image: url(https://szsq.nxzhsq.cn/community/miniofile/app/bg.png);
  575. height: 480 upx;
  576. background-repeat: no-repeat;
  577. background-size: 100% 100%;
  578. .member_head_img {
  579. margin-right: 30 upx;
  580. image {
  581. //todo
  582. width: 110 upx;
  583. height: 110 upx;
  584. border-radius: 59 rpx;
  585. }
  586. .avatar-wrap {
  587. display: inline-flex;
  588. border: 0;
  589. background-color: transparent;
  590. }
  591. }
  592. .no_login {
  593. display: flex;
  594. flex-direction: column;
  595. .no_login_btn {
  596. border-radius: 25px;
  597. //todo
  598. font-size: 32 upx;
  599. color: #fff;
  600. width: fit-content;
  601. padding: 0 15 upx;
  602. height: 60 upx;
  603. line-height: 60 upx;
  604. background: transparent;
  605. }
  606. }
  607. .member_info {
  608. display: flex;
  609. flex-direction: column;
  610. .member_name_box {
  611. display: flex;
  612. flex-direction: row;
  613. align-items: center;
  614. .member_name {
  615. font-size: 40 upx;
  616. color: #fff;
  617. font-weight: bold;
  618. }
  619. .member_level {
  620. background: #ffc600;
  621. color: #fff;
  622. font-size: 22 upx;
  623. border-radius: 4 upx;
  624. padding: 5 upx 10 upx;
  625. margin-left: 10 upx;
  626. }
  627. }
  628. .member_phone_box {
  629. display: flex;
  630. flex-direction: row;
  631. align-items: center;
  632. .member_phone {
  633. font-size: 24 upx;
  634. color: #FFFFFF;
  635. }
  636. image {
  637. width: 19 upx;
  638. height: 19 upx;
  639. padding: 20 upx;
  640. }
  641. }
  642. }
  643. .member_benefits {
  644. background: #fff;
  645. width: 180 upx;
  646. display: flex;
  647. flex-direction: row;
  648. align-items: center;
  649. text-align: center;
  650. border-radius: 27 upx 0px 0px 27 upx;
  651. height: 54 upx;
  652. text-align: center;
  653. position: absolute;
  654. right: 0;
  655. image {
  656. width: 26 upx;
  657. height: 23 upx;
  658. padding: 0 10 upx 0 30 upx;
  659. }
  660. .member_benefits_text {
  661. font-size: 24 upx;
  662. color: $dt-color-primary;
  663. letter-spacing: 2 upx;
  664. }
  665. }
  666. button::after {
  667. border: none;
  668. }
  669. }
  670. .coupon_point {
  671. display: flex;
  672. flex-direction: row;
  673. align-items: center;
  674. height: 110 upx;
  675. background: #fff;
  676. justify-content: space-around;
  677. .item {
  678. display: flex;
  679. flex-direction: column;
  680. align-items: center;
  681. width: 50%;
  682. .item_box {
  683. display: flex;
  684. flex-direction: row;
  685. align-items: center;
  686. letter-spacing: 2 upx;
  687. .item_content {
  688. color: $dt-color-primary;
  689. font-size: 34 upx;
  690. }
  691. .item_unit {
  692. color: $dt-color-primary;
  693. font-size: 22 upx;
  694. margin-top: 6 upx;
  695. }
  696. }
  697. .item_text {
  698. color: #333333;
  699. font-size: 22 upx;
  700. }
  701. }
  702. .line {
  703. width: 1 upx;
  704. height: 50 upx;
  705. background: #e5e5e5;
  706. }
  707. }
  708. .mine_order_statue {
  709. //todo
  710. box-shadow: 0 10 rpx #e7f1fd;
  711. margin: 40 upx 20 upx 0;
  712. background: #fff;
  713. padding: 10 upx 20 upx;
  714. border-radius: 20 rpx;
  715. .order_wrap {
  716. display: flex;
  717. flex-direction: row;
  718. align-items: center;
  719. justify-content: space-between;
  720. box-sizing: border-box;
  721. .mine_order_text {
  722. font-size: 28 upx;
  723. font-weight: bold;
  724. color: #333333;
  725. }
  726. .jump_all_order {
  727. display: flex;
  728. flex-direction: row;
  729. align-items: center;
  730. text {
  731. color: #999999;
  732. font-size: 22 upx;
  733. margin-right: 10 upx;
  734. }
  735. image {
  736. width: 10 upx;
  737. height: 18 upx;
  738. }
  739. }
  740. }
  741. .order_statue_list {
  742. display: flex;
  743. flex-direction: row;
  744. align-items: center;
  745. justify-content: space-between;
  746. .order_statue_item {
  747. display: flex;
  748. flex-direction: column;
  749. align-items: center;
  750. position: relative;
  751. margin-top: 32 upx;
  752. image {
  753. width: 40 upx;
  754. height: 40 upx;
  755. }
  756. text {
  757. font-size: 24 rpx;
  758. color: #333333;
  759. letter-spacing: 1 upx;
  760. margin-top: 10 upx;
  761. }
  762. .tip_count {
  763. position: absolute;
  764. right: 0 upx;
  765. top: -6rpx;
  766. width: 24 upx;
  767. height: 24 upx;
  768. border-radius: 50%;
  769. background-color: #ff3b30;
  770. color: #fff;
  771. font-size: 18 upx;
  772. text-align: center;
  773. line-height: 24 upx;
  774. }
  775. }
  776. }
  777. }
  778. .item_list {
  779. display: flex;
  780. flex-direction: column;
  781. background: #fff;
  782. margin: 20 rpx;
  783. border-radius: 20 rpx;
  784. .item {
  785. display: flex;
  786. flex-direction: row;
  787. align-items: center;
  788. justify-content: space-between;
  789. padding: 0 30 upx;
  790. height: 90 upx;
  791. border-bottom: 1 upx solid #f1f1f1;
  792. .item_content {
  793. display: flex;
  794. flex-direction: row;
  795. align-items: center;
  796. image {
  797. width: 42 upx;
  798. height: 42 upx;
  799. }
  800. text {
  801. font-size: 28 upx;
  802. color: #333333;
  803. margin-left: 20 upx;
  804. }
  805. }
  806. image {
  807. width: 10 upx;
  808. height: 18 upx;
  809. }
  810. }
  811. .item:first-child {
  812. border: none;
  813. }
  814. .item:last-child {
  815. border: none;
  816. }
  817. }
  818. </style>