index.vue 36 KB

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