index.vue 36 KB

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