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