index.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474
  1. <template>
  2. <view class="new-users copy-data" :style="{height:pageHeight}">
  3. <view class="top" :style="colorStyle">
  4. <!-- #ifdef MP || APP-PLUS -->
  5. <view class="sys-head">
  6. <view class="sys-bar" :style="{height:sysHeight}"></view>
  7. <!-- #ifdef MP -->
  8. <view class="sys-title" :style="member_style==3?'color:#333':''">{{$t('个人中心')}}</view>
  9. <!-- #endif -->
  10. <view class="bg" :style="member_style==3?'background:#f5f5f5':''"></view>
  11. </view>
  12. <!-- #endif -->
  13. </view>
  14. <view class="mid" style="flex:1;overflow: hidden;" :style="colorStyle">
  15. <scroll-view scroll-y="true" style="height: 100%;">
  16. <view class="head">
  17. <view class="user-card" :class="member_style==3?'unBg':''">
  18. <view class="bg"></view>
  19. <view class="user-info">
  20. <view>
  21. <!-- 注释这个是加的bnt -->
  22. <!-- #ifdef H5 -->
  23. <!-- <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin"
  24. @click="getWechatuserinfo">
  25. <image class="avatar" src='/static/images/f.png'></image>
  26. <view class="avatarName">{{$t('获取头像')}}</view>
  27. </button> -->
  28. <!-- #endif -->
  29. <!-- #ifndef APP-PLUS -->
  30. <view class="avatar-box" :class="{on:userInfo.is_money_level}">
  31. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar"
  32. @click="goEdit()">
  33. </image>
  34. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  35. </image>
  36. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  37. <image src="/static/images/headwear.png"></image>
  38. </view>
  39. </view>
  40. <!-- #endif -->
  41. <!-- #ifdef APP-PLUS -->
  42. <view class="avatar-box" :class="{on:userInfo.is_money_level}">
  43. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar"
  44. @click="goEdit()">
  45. </image>
  46. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  47. </image>
  48. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  49. <image src="/static/images/headwear.png"></image>
  50. </view>
  51. </view>
  52. <!-- #endif -->
  53. </view>
  54. <view class="info">
  55. <!-- #ifdef MP || APP-PLUS -->
  56. <view class="name" v-if="!userInfo.uid" @click="openAuto"
  57. style="height: 100%; display: flex; align-items: center;">
  58. {{$t('请点击授权')}}
  59. </view>
  60. <!-- #endif -->
  61. <!-- #ifdef H5 -->
  62. <view class="name" v-if="!userInfo.uid" @click="openAuto"
  63. style="height: 100%; display: flex; align-items: center;">
  64. {{$t(isWeixin ? '请点击授权' : '请点击登录')}}
  65. </view>
  66. <!-- #endif -->
  67. <view class="name" v-if="userInfo.uid">
  68. <text class="line1 nickname">{{userInfo.nickname}}</text>
  69. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  70. <view class="vip" v-if="userInfo.is_money_level> 0 && userInfo.svip_open">
  71. <image src="/static/images/svip.png"></image>
  72. </view>
  73. </view>
  74. <view class="num" v-if="userInfo.phone" @click="goEdit()">
  75. <view class="num-txt">{{userInfo.phone}}</view>
  76. </view>
  77. <!-- #ifdef MP -->
  78. <button class="phone" v-if="!userInfo.phone && isLogin" open-type="getPhoneNumber"
  79. @getphonenumber="getphonenumber">{{$t(`绑定手机号`)}}</button>
  80. <!-- #endif -->
  81. <!-- #ifndef MP -->
  82. <view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">
  83. {{$t('绑定手机号')}}
  84. </view>
  85. <!-- #endif -->
  86. </view>
  87. <view class="message">
  88. <navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none">
  89. <view class="iconfont icon-shezhi"></view>
  90. </navigator>
  91. </view>
  92. <view class="message">
  93. <navigator v-if="isLogin" url="/pages/users/message_center/index" hover-class="none">
  94. <view v-if="userInfo.service_num" class="num">
  95. {{userInfo.service_num >= 100 ? '99+' : userInfo.service_num}}
  96. </view>
  97. <view class="iconfont icon-s-kefu"></view>
  98. </navigator>
  99. </view>
  100. <!-- #ifdef MP -->
  101. <!-- <view class="setting" @click="Setting"><text class="iconfont icon-shezhi"></text></view> -->
  102. <!-- #endif -->
  103. </view>
  104. <view class="num-wrapper">
  105. <!-- <view class="num-item" v-if="userInfo.balance_func_status" -->
  106. <view class="num-item"
  107. @click="goMenuPage('/pages/users/user_money/index')">
  108. <text class="num">{{userInfo.now_money || 0}}</text>
  109. <view class="txt">{{$t('钱包')}}</view>
  110. </view>
  111. <!-- <view class="num-item" v-else -->
  112. <view class="num-item"
  113. @click="goMenuPage('/pages/users/user_spread_money/index')">
  114. <text class="num">{{userInfo.brokerage_price || 0}}</text>
  115. <view class="txt">{{$t('佣金')}}</view>
  116. </view>
  117. <!-- <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
  118. <text class="num">{{userInfo.couponCount || 0}}</text>
  119. <view class="txt">{{$t('优惠券')}}</view>
  120. </view>
  121. <view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
  122. <text class="num">{{userInfo.integral || 0}}</text>
  123. <view class="txt">{{$t('积分')}}</view>
  124. </view> -->
  125. </view>
  126. <!-- <view class="sign" @click="goSignIn">签到</view> -->
  127. <view class="cardVipA acea-row row-between-wrapper"
  128. v-if="userInfo.svip_open && member_style==1">
  129. <view class="left-box">
  130. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  131. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  132. {{ userInfo.overdue_time | dateFormat }}
  133. </view>
  134. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  135. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  136. </view>
  137. </view>
  138. <view class="acea-row row-middle">
  139. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index"
  140. hover-class="none" class="btn">{{$t('查看会员权益')}}</navigator>
  141. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  142. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  143. </navigator>
  144. <text class="iconfont icon-xiangyou"></text>
  145. </view>
  146. </view>
  147. <view class="cardVipB acea-row row-between" v-if="userInfo.svip_open && member_style==3">
  148. <view class="left-box acea-row">
  149. <view class="pictrue">
  150. <image src="../../static/images/member01.png"></image>
  151. </view>
  152. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  153. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  154. {{ userInfo.overdue_time | dateFormat }}
  155. </view>
  156. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  157. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  158. </view>
  159. </view>
  160. <view class="acea-row">
  161. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index"
  162. hover-class="none" class="btn">{{$t('会员可享多项权益')}}</navigator>
  163. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  164. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  165. </navigator>
  166. <text class="iconfont icon-xiangyou btn"></text>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="card-vip" v-if="userInfo.svip_open && member_style==2">
  171. <view class="left-box">
  172. <view class="big">{{$t('会员可享多项权益')}}</view>
  173. <view v-if="userInfo.vip_status == 1" class="small">{{$t('永久')}}</view>
  174. <view v-else-if="userInfo.vip_status == 3" class="small">{{$t('会员到期')}}
  175. {{ userInfo.overdue_time | dateFormat }}
  176. </view>
  177. <view v-else-if="userInfo.vip_status == -1" class="small">{{$t('已过期')}}</view>
  178. <view v-else-if="userInfo.vip_status == 2" class="small">{{$t('未开通会员')}}
  179. </view>
  180. </view>
  181. <navigator v-if="userInfo.vip_status == 1" url="/pages/annex/vip_paid/index" hover-class="none"
  182. class="btn">{{$t('查看会员权益')}}</navigator>
  183. <navigator v-else url="/pages/annex/vip_paid/index" hover-class="none" class="btn">
  184. {{ userInfo.overdue_time ? $t('立即续费') : $t('立即激活') }}
  185. </navigator>
  186. </view>
  187. <view class="order-wrapper" :class="userInfo.svip_open?'':'height'">
  188. <view class="order-hd flex">
  189. <view class="left">{{$t('订单中心')}}</view>
  190. <navigator class="right flex" hover-class="none" url="/pages/goods/order_list/index"
  191. open-type="navigate">
  192. {{$t('查看全部')}}
  193. <text class="iconfont icon-xiangyou"></text>
  194. </navigator>
  195. </view>
  196. <view class="order-bd">
  197. <block v-for="(item,index) in orderMenu" :key="index">
  198. <navigator class="order-item" hover-class="none" :url="item.url">
  199. <view class="pic">
  200. <!-- <image :src="item.img" mode=""></image> -->
  201. <text class="iconfont" :class="item.img"></text>
  202. <text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
  203. </view>
  204. <view class="txt">{{$t(item.title)}}</view>
  205. </navigator>
  206. </block>
  207. </view>
  208. </view>
  209. </view>
  210. <!-- 轮播 -->
  211. <view class="slider-wrapper" v-if="imgUrls.length>0 && my_banner_status">
  212. <swiper indicator-dots="true" :autoplay="autoplay" :circular="circular" :interval="interval"
  213. :duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
  214. <block v-for="(item,index) in imgUrls" :key="index">
  215. <swiper-item>
  216. <view @click="goMenuPage(item.url)" class='slide-navigator acea-row row-between-wrapper'
  217. hover-class='none'>
  218. <image :src="item.pic" class="slide-image"></image>
  219. </view>
  220. </swiper-item>
  221. </block>
  222. </swiper>
  223. </view>
  224. <!-- 我的积分 -->
  225. <view class="user-menus" style="margin-top: 20rpx;">
  226. <view class="menu-title"></view>
  227. <view class="list-box">
  228. <view class="shouyi" @click="shouyi">
  229. <view class="jfs">{{award_range || 0}}</view>
  230. <view class="jf">绿色积分</view>
  231. </view>
  232. <view class="shouyi" @click="fuxiao">
  233. <view class="jfs">{{reorder_integral || 0}}</view>
  234. <view class="jf">复消积分</view>
  235. </view>
  236. <view class="shouyi" @click="guquan">
  237. <view class="jfs">{{stock_integral || 0}}</view>
  238. <view class="jf">股权积分</view>
  239. </view>
  240. </view>
  241. </view>
  242. <view class="user-menus" style="margin-top: 20rpx;">
  243. <view class="menu-title"></view>
  244. <view class="list-box">
  245. <view class="shouyi" @click="gongxian">
  246. <view class="jfs">{{award_speed || 0}}</view>
  247. <view class="jf">推荐贡献值</view>
  248. </view>
  249. <view class="shouyi" @click="gongxian">
  250. <view class="jfs">{{speed || 0}}</view>
  251. <view class="jf">贡献值</view>
  252. </view>
  253. <view class="shouyi" @click="xiaofei">
  254. <view class="jfs">{{integral || 0}}</view>
  255. <view class="jf">消费券</view>
  256. </view>
  257. </view>
  258. </view>
  259. <!-- 会员菜单 -->
  260. <view class="user-menus" style="margin-top: 20rpx;">
  261. <view class="menu-title">{{$t('我的服务')}}</view>
  262. <view class="list-box">
  263. <!-- #ifdef APP-PLUS || H5 -->
  264. <block v-for="(item,index) in MyMenus" :key="index">
  265. <view class="item" v-if="item.url!='#' && item.url!='/pages/service/index'"
  266. @click="goMenuPage(item.url, item.name)">
  267. <image :src="item.pic"></image>
  268. <text>{{$t(item.name)}}</text>
  269. </view>
  270. </block>
  271. <!-- #endif -->
  272. <!-- #ifdef MP -->
  273. <block v-for="(item,index) in MyMenus" :key="index">
  274. <view class="item" v-if="item.url!='#'
  275. && item.url!='/pages/service/index'
  276. && item.url!='/pages/extension/customer_list/chat'
  277. || (item.url=='/pages/extension/customer_list/chat' && routineContact == 0)"
  278. @click="goMenuPage(item.url, item.name)">
  279. <image :src="item.pic"></image>
  280. <text>{{$t(item.name)}}</text>
  281. </view>
  282. </block>
  283. <button class="item" open-type='contact' v-if="routineContact == 1">
  284. <image src="/static/images/contact.png"></image>
  285. <text>{{$t('联系客服')}}</text>
  286. </button>
  287. <!-- #endif -->
  288. <!-- #ifdef APP-PLUS -->
  289. <view class="item" hover-class="none" @click="goMenuPage('/pages/users/privacy/index?type=3')">
  290. <image src="/static/images/menu.png"></image>
  291. <text>{{$t('隐私协议')}}</text>
  292. </view>
  293. <!-- #endif -->
  294. </view>
  295. </view>
  296. <view class="user-menus" style="margin-top: 20rpx;" v-if="storeMenu.length">
  297. <view class="menu-title">{{$t('商家管理')}}</view>
  298. <view class="list-box">
  299. <block v-for="(item,index) in storeMenu" :key="index">
  300. <view class="item" :url="item.url" hover-class="none"
  301. v-if="item.url!='#' && item.url!='/pages/service/index'"
  302. @click="goMenuPage(item.url, item.name)">
  303. <image :src="item.pic"></image>
  304. <text>{{$t(item.name)}}</text>
  305. </view>
  306. </block>
  307. </view>
  308. </view>
  309. <image :src="copyRightPic" alt="" class='support'></image>
  310. <view class="uni-p-b-98"></view>
  311. </scroll-view>
  312. <editUserModal :isShow="editModal" @closeEdit="closeEdit" @editSuccess="editSuccess">
  313. </editUserModal>
  314. </view>
  315. <tabBar v-if="!is_diy" :pagePath="'/pages/user/index'"></tabBar>
  316. <pageFooter v-else></pageFooter>
  317. </view>
  318. </template>
  319. <script>
  320. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  321. import {
  322. getMenuList,
  323. getUserInfo,
  324. setVisit,
  325. mpBindingPhone,
  326. userinfo
  327. } from '@/api/user.js';
  328. import {
  329. wechatAuthV2,
  330. silenceAuth
  331. } from '@/api/public.js'
  332. import {
  333. toLogin
  334. } from '@/libs/login.js';
  335. import {
  336. mapState,
  337. mapGetters
  338. } from "vuex";
  339. // #ifdef H5
  340. import Auth from '@/libs/wechat';
  341. // #endif
  342. const app = getApp();
  343. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  344. import Routine from '@/libs/routine';
  345. import colors from '@/mixins/color';
  346. import tabBar from "@/pages/index/visualization/components/tabBar.vue";
  347. import pageFooter from '@/components/pageFooter/index.vue'
  348. import {
  349. getCustomer
  350. } from '@/utils/index.js'
  351. import editUserModal from '@/components/eidtUserModal/index.vue'
  352. export default {
  353. components: {
  354. tabBar,
  355. pageFooter,
  356. editUserModal
  357. },
  358. // computed: mapGetters(['isLogin','cartNum']),
  359. computed: {
  360. ...mapGetters({
  361. cartNum: 'cartNum',
  362. isLogin: 'isLogin'
  363. })
  364. },
  365. filters: {
  366. coundTime(val) {
  367. var setTime = val * 1000
  368. var nowTime = new Date()
  369. var rest = setTime - nowTime.getTime()
  370. var day = parseInt(rest / (60 * 60 * 24 * 1000))
  371. // var hour = parseInt(rest/(60*60*1000)%24) //小时
  372. return day + this.$t('day')
  373. },
  374. dateFormat: function(value) {
  375. return dayjs(value * 1000).format('YYYY-MM-DD');
  376. }
  377. },
  378. mixins: [colors],
  379. data() {
  380. return {
  381. editModal: false, // 编辑头像信息
  382. storeMenu: [], // 商家管理
  383. orderMenu: [{
  384. img: 'icon-daifukuan',
  385. title: '待付款',
  386. url: '/pages/goods/order_list/index?status=0'
  387. },
  388. {
  389. img: 'icon-daifahuo',
  390. title: '待发货',
  391. url: '/pages/goods/order_list/index?status=1'
  392. },
  393. {
  394. img: 'icon-daishouhuo',
  395. title: '待收货',
  396. url: '/pages/goods/order_list/index?status=2'
  397. },
  398. {
  399. img: 'icon-daipingjia',
  400. title: '已完成',
  401. url: '/pages/goods/order_list/index?status=3'
  402. },
  403. {
  404. img: 'icon-a-shouhoutuikuan',
  405. title: '售后/退款',
  406. url: '/pages/users/user_return_list/index'
  407. },
  408. ],
  409. imgUrls: [],
  410. autoplay: true,
  411. circular: true,
  412. interval: 3000,
  413. duration: 500,
  414. isAuto: false, //没有授权的不会自动授权
  415. isShowAuth: false, //是否隐藏授权
  416. orderStatusNum: {},
  417. userInfo: {},
  418. MyMenus: [],
  419. sysHeight: sysHeight,
  420. mpHeight: 0,
  421. showStatus: 1,
  422. activeRouter: '',
  423. // #ifdef H5 || MP
  424. pageHeight: '100%',
  425. routineContact: 0,
  426. // #endif
  427. // #ifdef APP-PLUS
  428. pageHeight: app.globalData.windowHeight,
  429. // #endif
  430. // #ifdef H5
  431. isWeixin: Auth.isWeixin(),
  432. //#endif
  433. footerSee: false,
  434. member_style: 1,
  435. my_banner_status: 1,
  436. is_diy: uni.getStorageSync('is_diy'),
  437. copyRightPic: '/static/images/support.png', //版权图片
  438. award_range: '', // 可收益积分
  439. speed: '', // 贡献值
  440. integral: '', // 消费券
  441. reorder_integral: '', // 可复消积分
  442. stock_integral: '', // 股权积分
  443. award_speed: ''
  444. }
  445. },
  446. onLoad(option) {
  447. uni.hideTabBar()
  448. let that = this;
  449. // #ifdef MP
  450. // 小程序静默授权
  451. if (!this.$store.getters.isLogin) {
  452. // Routine.getCode()
  453. // .then(code => {
  454. // Routine.silenceAuth(code).then(res => {
  455. // this.onLoadFun();
  456. // })
  457. // })
  458. // .catch(res => {
  459. // uni.hideLoading();
  460. // });
  461. }
  462. // #endif
  463. // #ifdef H5 || APP-PLUS
  464. if (that.isLogin == false) {
  465. toLogin()
  466. }
  467. //获取用户信息回来后授权
  468. let cacheCode = this.$Cache.get('snsapi_userinfo_code');
  469. let res1 = cacheCode ? option.code != cacheCode : true;
  470. if (this.isWeixin && option.code && res1 && option.scope === 'snsapi_userinfo') {
  471. this.$Cache.set('snsapi_userinfo_code', option.code);
  472. Auth.auth(option.code).then(res => {
  473. this.getUserInfo();
  474. }).catch(err => {})
  475. }
  476. // #endif
  477. // #ifdef APP-PLUS
  478. that.$set(that, 'pageHeight', app.globalData.windowHeight);
  479. // #endif
  480. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  481. let curRoute = routes[routes.length - 1].route //获取当前页面路由
  482. this.activeRouter = '/' + curRoute
  483. this.getCopyRight();
  484. this.userinfo()
  485. },
  486. onReady() {
  487. let self = this
  488. // #ifdef MP
  489. let info = uni.createSelectorQuery().select(".sys-head");
  490. info.boundingClientRect(function(data) { //data - 各种参数
  491. self.mpHeight = data.height
  492. }).exec()
  493. // #endif
  494. },
  495. onShow: function() {
  496. let that = this;
  497. // #ifdef APP-PLUS
  498. uni.getSystemInfo({
  499. success: function(res) {
  500. that.pageHeight = res.windowHeight + 'px'
  501. }
  502. });
  503. // #endif
  504. if (that.isLogin) {
  505. this.getUserInfo();
  506. this.getMyMenus();
  507. this.setVisit();
  508. };
  509. this.getCopyRight();
  510. },
  511. onPullDownRefresh() {
  512. this.onLoadFun();
  513. },
  514. methods: {
  515. getWechatuserinfo() {
  516. //#ifdef H5
  517. Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
  518. //#endif
  519. },
  520. // 积分数
  521. async userinfo() {
  522. const {data} = await userinfo()
  523. console.log('1111', data);
  524. this.award_range = data.award_range // 可收益积分
  525. this.speed = data.speed, // 贡献值
  526. this.integral = data.integral // 消费券
  527. this.reorder_integral = data.reorder_integral // 可复消积分
  528. this.stock_integral = data.stock_integral // 股权积分
  529. this.award_speed = data.award_speed //推荐贡献值
  530. },
  531. editSuccess() {
  532. this.editModal = false
  533. this.getUserInfo();
  534. },
  535. closeEdit() {
  536. this.editModal = false
  537. },
  538. // 记录会员访问
  539. setVisit() {
  540. setVisit({
  541. url: '/pages/user/index'
  542. }).then(res => {})
  543. },
  544. // 打开授权
  545. openAuto() {
  546. toLogin();
  547. },
  548. // 授权回调
  549. onLoadFun() {
  550. this.getUserInfo();
  551. this.getMyMenus();
  552. this.setVisit();
  553. },
  554. Setting: function() {
  555. uni.openSetting({
  556. success: function(res) {}
  557. });
  558. },
  559. // 授权关闭
  560. authColse: function(e) {
  561. this.isShowAuth = e
  562. },
  563. // 绑定手机
  564. bindPhone() {
  565. uni.navigateTo({
  566. url: '/pages/users/user_phone/index'
  567. })
  568. },
  569. getphonenumber(e) {
  570. if (e.detail.errMsg == 'getPhoneNumber:ok') {
  571. Routine.getCode()
  572. .then(code => {
  573. let data = {
  574. code,
  575. iv: e.detail.iv,
  576. encryptedData: e.detail.encryptedData,
  577. }
  578. mpBindingPhone(data).then(res => {
  579. this.getUserInfo()
  580. this.$util.Tips({
  581. title: res.msg,
  582. icon: 'success'
  583. });
  584. }).catch(err => {
  585. return this.$util.Tips({
  586. title: err
  587. });
  588. })
  589. })
  590. .catch(error => {
  591. uni.hideLoading();
  592. });
  593. }
  594. },
  595. /**
  596. * 获取个人用户信息
  597. */
  598. getUserInfo: function() {
  599. let that = this;
  600. getUserInfo().then(res => {
  601. that.userInfo = res.data
  602. that.$store.commit("SETUID", res.data.uid);
  603. that.orderMenu.forEach((item, index) => {
  604. switch (item.title) {
  605. case '待付款':
  606. item.num = res.data.orderStatusNum.unpaid_count
  607. break
  608. case '待发货':
  609. item.num = res.data.orderStatusNum.unshipped_count
  610. break
  611. case '待收货':
  612. item.num = res.data.orderStatusNum.received_count
  613. break
  614. case '待评价':
  615. item.num = res.data.orderStatusNum.evaluated_count
  616. break
  617. case '售后/退款':
  618. item.num = res.data.orderStatusNum.refunding_count
  619. break
  620. }
  621. })
  622. uni.stopPullDownRefresh();
  623. });
  624. },
  625. //小程序授权api替换 getUserInfo
  626. getUserProfile() {
  627. toLogin();
  628. },
  629. /**
  630. *
  631. * 获取个人中心图标
  632. */
  633. switchTab(order) {
  634. this.orderMenu.forEach((item, index) => {
  635. switch (item.title) {
  636. case '待付款':
  637. item.img = order.dfk
  638. break
  639. case '待发货':
  640. item.img = order.dfh
  641. break
  642. case '待收货':
  643. item.img = order.dsh
  644. break
  645. case '待评价':
  646. item.img = order.dpj
  647. break
  648. case '售后/退款':
  649. item.img = order.sh
  650. break
  651. }
  652. })
  653. },
  654. getMyMenus: function() {
  655. let that = this;
  656. // if (this.MyMenus.length) return;
  657. getMenuList().then(res => {
  658. let storeMenu = []
  659. let myMenu = []
  660. res.data.routine_my_menus.forEach((el, index, arr) => {
  661. if (el.url == '/pages/admin/order/index' || el.url ==
  662. '/pages/admin/order_cancellation/index' || el.name ==
  663. '客服接待') {
  664. storeMenu.push(el)
  665. } else {
  666. myMenu.push(el)
  667. }
  668. })
  669. this.member_style = Number(res.data.diy_data.value)
  670. this.my_banner_status = res.data.diy_data.my_banner_status
  671. let order01 = {
  672. dfk: 'icon-daifukuan',
  673. dfh: 'icon-daifahuo',
  674. dsh: 'icon-daishouhuo',
  675. dpj: 'icon-daipingjia',
  676. sh: 'icon-a-shouhoutuikuan'
  677. }
  678. let order02 = {
  679. dfk: 'icon-daifukuan-lan',
  680. dfh: 'icon-daifahuo-lan',
  681. dsh: 'icon-daishouhuo-lan',
  682. dpj: 'icon-daipingjia-lan',
  683. sh: 'icon-shouhou-tuikuan-lan'
  684. }
  685. let order03 = {
  686. dfk: 'icon-daifukuan-ju',
  687. dfh: 'icon-daifahuo-ju',
  688. dsh: 'icon-daishouhuo-ju',
  689. dpj: 'icon-daipingjia-ju',
  690. sh: 'icon-shouhou-tuikuan-ju'
  691. }
  692. let order04 = {
  693. dfk: 'icon-daifukuan-fen',
  694. dfh: 'icon-daifahuo-fen',
  695. dsh: 'icon-daishouhuo-fen',
  696. dpj: 'icon-daipingjia-fen',
  697. sh: 'icon-a-shouhoutuikuan-fen'
  698. }
  699. let order05 = {
  700. dfk: 'icon-daifukuan-lv',
  701. dfh: 'icon-daifahuo-lv',
  702. dsh: 'icon-daishouhuo-lv',
  703. dpj: 'icon-daipingjia-lv',
  704. sh: 'icon-shouhou-tuikuan-lv'
  705. }
  706. switch (res.data.diy_data.order_status) {
  707. case 1:
  708. this.switchTab(order01)
  709. break
  710. case 2:
  711. this.switchTab(order02)
  712. break
  713. case 3:
  714. this.switchTab(order03)
  715. break
  716. case 4:
  717. this.switchTab(order04)
  718. break
  719. case 5:
  720. this.switchTab(order05)
  721. break
  722. }
  723. that.$set(that, 'MyMenus', myMenu);
  724. that.$set(that, 'storeMenu', storeMenu);
  725. this.imgUrls = res.data.routine_my_banner
  726. this.routineContact = Number(res.data.routine_contact_type)
  727. });
  728. },
  729. // 编辑页面
  730. goEdit() {
  731. if (this.isLogin == false) {
  732. toLogin();
  733. } else {
  734. // #ifdef MP
  735. if (this.userInfo.is_default_avatar) {
  736. this.editModal = true
  737. return
  738. }
  739. // #endif
  740. uni.navigateTo({
  741. url: '/pages/users/user_info/index'
  742. })
  743. }
  744. },
  745. // 签到
  746. goSignIn() {
  747. uni.navigateTo({
  748. url: '/pages/users/user_sgin/index'
  749. })
  750. },
  751. // goMenuPage
  752. goMenuPage(url, name) {
  753. if (this.isLogin) {
  754. if (url.indexOf('http') === -1) {
  755. // #ifdef H5 || APP-PLUS
  756. if (name && name === '客服接待') {
  757. // return window.location.href = `${location.origin}${url}`
  758. return uni.navigateTo({
  759. url: `/pages/annex/web_view/index?url=${location.origin}${url}`
  760. });
  761. } else if (name && name === '联系客服') {
  762. return getCustomer(url)
  763. } else if (name === '订单核销') {
  764. return uni.navigateTo({
  765. url: url
  766. });
  767. // return window.location.href = `${location.origin}${url}`
  768. }
  769. // #endif
  770. // #ifdef MP
  771. if (name && name === '联系客服') {
  772. return getCustomer(url)
  773. }
  774. if (url != '#' && url == '/pages/users/user_info/index') {
  775. uni.openSetting({
  776. success: function(res) {}
  777. });
  778. }
  779. // #endif
  780. uni.navigateTo({
  781. url: url,
  782. fail(err) {
  783. uni.switchTab({
  784. url: url
  785. })
  786. }
  787. })
  788. } else {
  789. uni.navigateTo({
  790. url: `/pages/annex/web_view/index?url=${url}`
  791. });
  792. }
  793. } else {
  794. // #ifdef MP
  795. this.openAuto()
  796. // #endif
  797. }
  798. },
  799. goRouter(item) {
  800. var pages = getCurrentPages();
  801. var page = (pages[pages.length - 1]).$page.fullPath;
  802. if (item.link == page) return
  803. uni.switchTab({
  804. url: item.link,
  805. fail(err) {
  806. uni.redirectTo({
  807. url: item.link
  808. })
  809. }
  810. })
  811. },
  812. getCopyRight() {
  813. const copyRight = uni.getStorageSync('copyRight')
  814. if (copyRight.copyrightImage) {
  815. this.copyRightPic = copyRight.copyrightImage
  816. }
  817. },
  818. // 积分
  819. shouyi() {
  820. uni.navigateTo({
  821. url: '/pages/users/user_jifen/income'
  822. })
  823. },
  824. fuxiao() {
  825. uni.navigateTo({
  826. url: '/pages/users/user_jifen/repeat'
  827. })
  828. },
  829. guquan() {
  830. uni.navigateTo({
  831. url: '/pages/users/user_jifen/equity'
  832. })
  833. },
  834. xiaofei() {
  835. uni.navigateTo({
  836. url: '/pages/users/user_jifen/consumption'
  837. })
  838. },
  839. gongxian() {
  840. uni.navigateTo({
  841. url: '/pages/users/user_jifen/contribute'
  842. })
  843. },
  844. }
  845. }
  846. </script>
  847. <style lang="scss">
  848. page,
  849. body {
  850. height: 100%;
  851. }
  852. .height {
  853. margin-top: -100rpx !important;
  854. }
  855. .unBg {
  856. background-color: unset !important;
  857. .user-info {
  858. .info {
  859. .name {
  860. color: #333333 !important;
  861. font-weight: 600;
  862. }
  863. .num {
  864. color: #333 !important;
  865. .num-txt {
  866. height: 38rpx;
  867. background-color: rgba(51, 51, 51, 0.13);
  868. padding: 0 12rpx;
  869. border-radius: 16rpx;
  870. }
  871. }
  872. }
  873. }
  874. .num-wrapper {
  875. color: #333 !important;
  876. font-weight: 600;
  877. .num-item {
  878. .txt {
  879. color: rgba(51, 51, 51, 0.7) !important;
  880. }
  881. }
  882. }
  883. .message {
  884. .iconfont {
  885. color: #333 !important;
  886. }
  887. .num {
  888. color: #fff !important;
  889. background-color: var(--view-theme) !important;
  890. }
  891. }
  892. .setting {
  893. .iconfont {
  894. color: #333 !important;
  895. }
  896. }
  897. }
  898. .cardVipB {
  899. background-color: #343A48;
  900. width: 100%;
  901. height: 124rpx;
  902. border-radius: 16rpx 16rpx 0 0;
  903. padding: 22rpx 30rpx 0 30rpx;
  904. margin-top: 16px;
  905. .left-box {
  906. .small {
  907. color: #F8D5A8;
  908. font-size: 28rpx;
  909. margin-left: 18rpx;
  910. }
  911. .pictrue {
  912. width: 40rpx;
  913. height: 45rpx;
  914. image {
  915. width: 100%;
  916. height: 100%;
  917. }
  918. }
  919. }
  920. .btn {
  921. color: #BBBBBB;
  922. font-size: 26rpx;
  923. }
  924. .icon-xiangyou {
  925. margin-top: 6rpx;
  926. }
  927. }
  928. .cardVipA {
  929. position: absolute;
  930. background: url('~@/static/images/member.png') no-repeat;
  931. background-size: 100% 100%;
  932. width: 750rpx;
  933. height: 84rpx;
  934. bottom: -2rpx;
  935. left: 0;
  936. padding: 0 56rpx 0 135rpx;
  937. .left-box {
  938. font-size: 26rpx;
  939. color: #905100;
  940. font-weight: 400;
  941. }
  942. .btn {
  943. color: #905100;
  944. font-weight: 400;
  945. font-size: 24rpx;
  946. }
  947. .iconfont {
  948. font-size: 20rpx;
  949. margin: 4rpx 0 0 4rpx;
  950. }
  951. }
  952. .new-users {
  953. display: flex;
  954. flex-direction: column;
  955. height: 100%;
  956. .sys-head {
  957. position: relative;
  958. width: 100%;
  959. // background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  960. .bg {
  961. position: absolute;
  962. left: 0;
  963. top: 0;
  964. width: 100%;
  965. height: 100%;
  966. background: var(--view-theme);
  967. background-size: 100% auto;
  968. background-position: left bottom;
  969. }
  970. .sys-title {
  971. z-index: 10;
  972. position: relative;
  973. height: 43px;
  974. text-align: center;
  975. line-height: 43px;
  976. font-size: 36rpx;
  977. color: #FFFFFF;
  978. }
  979. }
  980. .head {
  981. // background: #fff;
  982. .user-card {
  983. position: relative;
  984. width: 100%;
  985. height: 380rpx;
  986. margin: 0 auto;
  987. padding: 35rpx 28rpx;
  988. background-image: url("~@/static/images/user01.png");
  989. background-size: 100% auto;
  990. background-color: var(--view-theme);
  991. .user-info {
  992. z-index: 20;
  993. position: relative;
  994. display: flex;
  995. .headwear {
  996. position: absolute;
  997. right: -4rpx;
  998. top: -14rpx;
  999. width: 44rpx;
  1000. height: 44rpx;
  1001. image {
  1002. width: 100%;
  1003. height: 100%;
  1004. }
  1005. }
  1006. .live {
  1007. width: 28rpx;
  1008. height: 28rpx;
  1009. margin-left: 20rpx;
  1010. }
  1011. .bntImg {
  1012. width: 120rpx;
  1013. height: 120rpx;
  1014. border-radius: 50%;
  1015. text-align: center;
  1016. line-height: 120rpx;
  1017. background-color: unset;
  1018. position: relative;
  1019. .avatarName {
  1020. font-size: 16rpx;
  1021. color: #fff;
  1022. text-align: center;
  1023. background-color: rgba(0, 0, 0, 0.6);
  1024. height: 37rpx;
  1025. line-height: 37rpx;
  1026. position: absolute;
  1027. bottom: 0;
  1028. left: 0;
  1029. width: 100%;
  1030. }
  1031. }
  1032. .avatar-box {
  1033. position: relative;
  1034. display: flex;
  1035. align-items: center;
  1036. justify-content: center;
  1037. width: 120rpx;
  1038. height: 120rpx;
  1039. border-radius: 50%;
  1040. &.on {
  1041. .avatar {
  1042. border: 2px solid #FFAC65;
  1043. border-radius: 50%;
  1044. box-sizing: border-box;
  1045. }
  1046. }
  1047. }
  1048. .avatar {
  1049. position: relative;
  1050. width: 120rpx;
  1051. height: 120rpx;
  1052. border-radius: 50%;
  1053. }
  1054. .info {
  1055. flex: 1;
  1056. display: flex;
  1057. flex-direction: column;
  1058. justify-content: space-between;
  1059. margin-left: 20rpx;
  1060. padding: 20rpx 0;
  1061. .name {
  1062. display: flex;
  1063. align-items: center;
  1064. color: #fff;
  1065. font-size: 31rpx;
  1066. .nickname {
  1067. max-width: 8em;
  1068. }
  1069. .vip {
  1070. margin-left: 10rpx;
  1071. image {
  1072. width: 78rpx;
  1073. height: 30rpx;
  1074. display: block;
  1075. }
  1076. }
  1077. }
  1078. .num {
  1079. display: flex;
  1080. align-items: center;
  1081. font-size: 26rpx;
  1082. color: rgba(255, 255, 255, 0.6);
  1083. image {
  1084. width: 22rpx;
  1085. height: 23rpx;
  1086. margin-left: 20rpx;
  1087. }
  1088. }
  1089. }
  1090. }
  1091. .message {
  1092. align-self: flex-start;
  1093. position: relative;
  1094. margin-top: 15rpx;
  1095. margin-right: 20rpx;
  1096. .num {
  1097. position: absolute;
  1098. top: -8rpx;
  1099. left: 18rpx;
  1100. padding: 0 6rpx;
  1101. height: 28rpx;
  1102. border-radius: 12rpx;
  1103. background-color: #fff;
  1104. font-size: 18rpx;
  1105. line-height: 28rpx;
  1106. text-align: center;
  1107. color: var(--view-theme);
  1108. }
  1109. .iconfont {
  1110. font-size: 40rpx;
  1111. color: #fff;
  1112. }
  1113. }
  1114. .num-wrapper {
  1115. z-index: 30;
  1116. position: relative;
  1117. display: flex;
  1118. align-items: center;
  1119. justify-content: space-between;
  1120. margin-top: 22rpx;
  1121. // padding: 0 47rpx;
  1122. color: #fff;
  1123. .num-item {
  1124. // width:33.33%;
  1125. width:50%;
  1126. text-align: center;
  1127. &~.num-item {
  1128. position: relative;
  1129. &:before {
  1130. content: '';
  1131. position: absolute;
  1132. width: 1rpx;
  1133. height: 28rpx;
  1134. top: 50%;
  1135. margin-top: -14rpx;
  1136. background-color: rgba(255, 255, 255, 0.4);
  1137. left: 0;
  1138. }
  1139. }
  1140. .num {
  1141. font-size: 42rpx;
  1142. font-weight: bold;
  1143. }
  1144. .txt {
  1145. margin-top: 8rpx;
  1146. font-size: 26rpx;
  1147. color: rgba(255, 255, 255, 0.6);
  1148. }
  1149. }
  1150. }
  1151. .sign {
  1152. z-index: 200;
  1153. position: absolute;
  1154. right: -12rpx;
  1155. top: 80rpx;
  1156. display: flex;
  1157. align-items: center;
  1158. justify-content: center;
  1159. width: 120rpx;
  1160. height: 60rpx;
  1161. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1162. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1163. color: #282828;
  1164. font-size: 28rpx;
  1165. font-weight: bold;
  1166. }
  1167. }
  1168. .order-wrapper {
  1169. background: #fff;
  1170. margin: 0 30rpx;
  1171. border-radius: 16rpx;
  1172. position: relative;
  1173. margin-top: -10rpx;
  1174. .order-hd {
  1175. justify-content: space-between;
  1176. padding: 30rpx 20rpx 10rpx 30rpx;
  1177. margin-top: 25rpx;
  1178. font-size: 30rpx;
  1179. color: #282828;
  1180. .left {
  1181. font-weight: bold;
  1182. }
  1183. .right {
  1184. display: flex;
  1185. align-items: center;
  1186. color: #666666;
  1187. font-size: 26rpx;
  1188. .icon-xiangyou {
  1189. margin-left: 5rpx;
  1190. font-size: 26rpx;
  1191. }
  1192. }
  1193. }
  1194. .order-bd {
  1195. display: flex;
  1196. padding: 0 0;
  1197. .order-item {
  1198. display: flex;
  1199. flex-direction: column;
  1200. justify-content: center;
  1201. align-items: center;
  1202. width: 20%;
  1203. height: 140rpx;
  1204. .pic {
  1205. position: relative;
  1206. text-align: center;
  1207. .iconfont {
  1208. font-size: 48rpx;
  1209. color: var(--view-theme);
  1210. }
  1211. image {
  1212. width: 58rpx;
  1213. height: 48rpx;
  1214. }
  1215. }
  1216. .txt {
  1217. margin-top: 6rpx;
  1218. font-size: 26rpx;
  1219. color: #333;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. }
  1225. .slider-wrapper {
  1226. margin: 20rpx 30rpx;
  1227. height: 130rpx;
  1228. swiper,
  1229. swiper-item {
  1230. height: 100%;
  1231. }
  1232. image {
  1233. width: 100%;
  1234. height: 130rpx;
  1235. border-radius: 16rpx;
  1236. }
  1237. }
  1238. .user-menus {
  1239. background-color: #fff;
  1240. margin: 0 30rpx;
  1241. border-radius: 16rpx;
  1242. .menu-title {
  1243. padding: 30rpx 30rpx 40rpx;
  1244. font-size: 30rpx;
  1245. color: #282828;
  1246. font-weight: bold;
  1247. }
  1248. .list-box {
  1249. display: flex;
  1250. flex-wrap: wrap;
  1251. padding: 0;
  1252. }
  1253. .item {
  1254. position: relative;
  1255. display: flex;
  1256. align-items: center;
  1257. justify-content: space-between;
  1258. flex-direction: column;
  1259. width: 25%;
  1260. margin-bottom: 47rpx;
  1261. font-size: 26rpx;
  1262. color: #333333;
  1263. image {
  1264. width: 52rpx;
  1265. height: 52rpx;
  1266. margin-bottom: 18rpx;
  1267. }
  1268. &:last-child::before {
  1269. display: none;
  1270. }
  1271. }
  1272. button {
  1273. font-size: 28rpx;
  1274. }
  1275. }
  1276. .phone {
  1277. color: #fff;
  1278. background-color: #ffffff80;
  1279. border-radius: 15px;
  1280. width: max-content;
  1281. font-size: 24rpx;
  1282. padding: 2px 10px;
  1283. margin-top: 8rpx;
  1284. }
  1285. .order-status-num {
  1286. min-width: 12rpx;
  1287. background-color: #fff;
  1288. color: var(--view-theme);
  1289. border-radius: 15px;
  1290. position: absolute;
  1291. right: -14rpx;
  1292. top: -15rpx;
  1293. font-size: 20rpx;
  1294. padding: 0 8rpx;
  1295. border: 1px solid var(--view-theme);
  1296. }
  1297. .support {
  1298. width: 219rpx;
  1299. height: 74rpx;
  1300. margin: 54rpx auto;
  1301. display: block;
  1302. }
  1303. }
  1304. .card-vip {
  1305. display: flex;
  1306. align-items: center;
  1307. justify-content: space-between;
  1308. position: relative;
  1309. width: 690rpx;
  1310. height: 134rpx;
  1311. margin: -72rpx auto 0;
  1312. background: url('~@/static/images/user_vip.png');
  1313. background-size: cover;
  1314. padding-left: 118rpx;
  1315. padding-right: 34rpx;
  1316. .left-box {
  1317. font-size: 24rpx;
  1318. color: #AE5A2A;
  1319. .big {
  1320. font-size: 28rpx;
  1321. }
  1322. .small {
  1323. opacity: 0.8;
  1324. margin-top: 10rpx;
  1325. }
  1326. }
  1327. .btn {
  1328. height: 52rpx;
  1329. line-height: 52rpx;
  1330. padding: 0 10rpx;
  1331. text-align: center;
  1332. background: #fff;
  1333. border-radius: 28rpx;
  1334. font-size: 26rpx;
  1335. color: #AE5A2A;
  1336. }
  1337. }
  1338. .setting {
  1339. margin-top: 15rpx;
  1340. margin-left: 15rpx;
  1341. color: #fff;
  1342. .iconfont {
  1343. font-size: 40rpx;
  1344. }
  1345. }
  1346. .new-users {
  1347. padding-bottom: 0;
  1348. padding-bottom: constant(safe-area-inset-bottom);
  1349. padding-bottom: env(safe-area-inset-bottom);
  1350. }
  1351. .list-box{
  1352. .shouyi {
  1353. width: 120rpx;
  1354. height: 140rpx;
  1355. margin: auto 45rpx;
  1356. .jfs {
  1357. text-align: center;
  1358. font-size: 36rpx;
  1359. font-weight: bold;
  1360. color: #333333;
  1361. // width: 33.33%;
  1362. }
  1363. .jf {
  1364. text-align: center;
  1365. font-size: 24rpx;
  1366. font-weight: 500;
  1367. color: #666666;
  1368. // width: 33.33%;
  1369. }
  1370. }
  1371. }
  1372. </style>