wode-unlogin.vue 18 KB

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