index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684
  1. <template>
  2. <view class="new-users" :style="{ height: pageHeight }">
  3. <view class="top" style="background: rgb(254,245,246); color: black;">
  4. <view class="sys-head">
  5. <view class="sys-bar" :style="{ height: sysHeight }"></view>
  6. <view class="sys-title">个人中心</view>
  7. <view class="bg" ></view>
  8. </view>
  9. </view>
  10. <view class="mid" style="flex:1;overflow: hidden;padding: 30rpx;padding-top: 0; background: rgb(249,249,249);">
  11. <scroll-view scroll-y="true" style="height: 100%;">
  12. <view class="head" v-if="currentRole === 'leader'">
  13. <view class="user-card" :class="member_style == 3 ? 'unBg' : ''">
  14. <view class="bg"></view>
  15. <view class="user-info">
  16. <view>
  17. <!-- 注释这个是加的bnt -->
  18. <!-- #ifdef H5 -->
  19. <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin" @click="getWechatuserinfo">
  20. <image class="avatar" src='/static/images/f.png'></image>
  21. <view class="avatarName">{{ $t('获取头像') }}</view>
  22. </button>
  23. <!-- #endif -->
  24. <!-- #ifdef MP -->
  25. <button class="bntImg" v-if="userInfo.is_complete == 0" @tap="getUserProfile">
  26. <image class="avatar" src='/static/images/f.png'></image>
  27. <view class="avatarName">{{ $t('获取头像') }}</view>
  28. </button>
  29. <!-- #endif -->
  30. <!-- #ifndef APP-PLUS -->
  31. <view v-else class="avatar-box" :class="{ on: userInfo.is_money_level }">
  32. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar" @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" @click="goEdit()">
  44. </image>
  45. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  46. </image>
  47. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  48. <image src="/static/images/headwear.png"></image>
  49. </view>
  50. </view>
  51. <!-- #endif -->
  52. </view>
  53. <view class="info">
  54. <!-- #ifdef MP -->
  55. <view class="name" v-if="!userInfo.id" @click="openAuto"
  56. style="height: 100%; display: flex; align-items: center;">
  57. {{ $t('请点击授权') }}
  58. </view>
  59. <!-- #endif -->
  60. <!-- #ifdef H5 -->
  61. <view class="name" v-if="!userInfo.id && isWeixin" @click="openAuto"
  62. style="height: 100%; display: flex; align-items: center;">
  63. {{ $t('请点击授权') }}
  64. </view>
  65. <!-- #endif -->
  66. <view class="name" v-if="userInfo.id">
  67. {{ userInfo.name }}
  68. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  69. <view class="vip" v-if="userInfo.is_money_level > 0 && userInfo.svip_open">
  70. <image src="/static/images/svip.png"></image>
  71. </view>
  72. </view>
  73. <view class="num" v-if="userInfo.username" @click="goEdit()">
  74. <view class="num-txt">
  75. <view v-if="currentRole === 'leader'" class="leader">团长</view>
  76. </view>
  77. <!-- <view class="icon">
  78. <image src="/static/images/edit.png" mode=""></image>
  79. </view> -->
  80. </view>
  81. <!-- <view class="phone" v-if="!userInfo.username && isLogin" @tap="bindPhone">
  82. {{$t('绑定手机号')}}</view> -->
  83. </view>
  84. <view v-if="userInfo.livingHall === 1" class="message" style=" white-space: nowrap;">
  85. <text v-if="currentRole === 'leader'" style=" color: #75BE00;margin-right: 20rpx;">切换团员</text>
  86. <u-switch v-model="roleSwitch" activeColor="#75BE00" size="16" @change="changeRole"></u-switch>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="group-buying-data">
  91. <view class="group-title">
  92. 团购数据
  93. </view>
  94. <view class="group-content">
  95. <view class="group-content-l">
  96. <view class="content-num">
  97. {{grouponStatis.lastNewViewTotal}}
  98. </view>
  99. <view class="content-info">
  100. 最新团购浏览总量 (次)
  101. </view>
  102. </view>
  103. <view class="group-content-r">
  104. <view class="content-num">
  105. {{grouponStatis.lastNewMake}}
  106. </view>
  107. <view class="content-info">
  108. 最新团购成交总额 (元)
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="group-buying-btn">
  114. <view @click="goGroupbuying('pickupVerification')" class="image-text_21" style="margin-right: 30rpx;">
  115. <image class="icon_10" referrerpolicy="no-referrer"
  116. src="http://www.gzzzyd.com/groupon/regiment/提货管理@2x(2).png" />
  117. </view>
  118. <view @click="goGroupbuying('publish_group')" class="image-text_21">
  119. <image class="icon_1" referrerpolicy="no-referrer"
  120. src="http://www.gzzzyd.com/groupon/regiment/提货管理@2x(1).png" />
  121. </view>
  122. </view>
  123. <view class="order-wrapper" :class="userInfo.svip_open ? '' : 'height'">
  124. <view class="order-bd">
  125. <block v-for="(item, index) in orderMenu" :key="index">
  126. <navigator class="order-item" hover-class="none" :url="item.url">
  127. <view class="pic">
  128. <image :src="item.src" mode=""></image>
  129. </view>
  130. <view class="txt">{{ $t(item.title) }}</view>
  131. </navigator>
  132. </block>
  133. </view>
  134. </view>
  135. <view class="tool_list">
  136. <u-cell-group>
  137. <navigator url="/pages/columnGoods/HotNewGoods/feedback" hover-class="none">
  138. <u-cell isLink>
  139. <view slot="title" class="u-slot-title">
  140. <image src="http://www.gzzzyd.com/groupon/regiment/编组 6@2x.png" mode=""></image>
  141. <text class="u-cell-text">建议与反馈</text>
  142. </view>
  143. </u-cell>
  144. </navigator>
  145. <u-cell isLink>
  146. <view slot="title" class="u-slot-title" @click="goMyMessage">
  147. <image src="http://www.gzzzyd.com/groupon/regiment/编组 8@2x.png" mode=""></image>
  148. <text class="u-cell-text">我的消息</text>
  149. </view>
  150. </u-cell>
  151. <navigator url="/pages/groupbuying/aboutUs/index" hover-class="none">
  152. <u-cell isLink>
  153. <view slot="title" class="u-slot-title">
  154. <image src="http://www.gzzzyd.com/groupon/regiment/编组 8@2x(1).png" mode=""></image>
  155. <text class="u-cell-text">关于我们</text>
  156. </view>
  157. </u-cell>
  158. </navigator>
  159. <navigator url="/pages/users/user_info/index" hover-class="none">
  160. <u-cell isLink>
  161. <view slot="title" class="u-slot-title">
  162. <image src="http://www.gzzzyd.com/groupon/regiment/编组 18@2x.png" mode=""></image>
  163. <text class="u-cell-text">设置</text>
  164. </view>
  165. </u-cell>
  166. </navigator>
  167. </u-cell-group>
  168. </view>
  169. <view class="footer">
  170. <button @click="outLogin">
  171. 退出登录
  172. </button>
  173. </view>
  174. </view>
  175. <view class="head" v-if="currentRole === 'employees'">
  176. <view class="user-card" :class="member_style == 3 ? 'unBg' : ''">
  177. <view class="bg"></view>
  178. <view class="user-info">
  179. <view>
  180. <!-- 注释这个是加的bnt -->
  181. <!-- #ifdef H5 -->
  182. <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin" @click="getWechatuserinfo">
  183. <image class="avatar" src='/static/images/f.png'></image>
  184. <view class="avatarName">{{ $t('获取头像') }}</view>
  185. </button>
  186. <!-- #endif -->
  187. <!-- #ifdef MP -->
  188. <button class="bntImg" v-if="userInfo.is_complete == 0" @tap="getUserProfile">
  189. <image class="avatar" src='/static/images/f.png'></image>
  190. <view class="avatarName">{{ $t('获取头像') }}</view>
  191. </button>
  192. <!-- #endif -->
  193. <!-- #ifndef APP-PLUS -->
  194. <view v-else class="avatar-box" :class="{ on: userInfo.is_money_level }">
  195. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()">
  196. </image>
  197. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  198. </image>
  199. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  200. <image src="/static/images/headwear.png"></image>
  201. </view>
  202. </view>
  203. <!-- #endif -->
  204. <!-- #ifdef APP-PLUS -->
  205. <view class="avatar-box" :class="{ on: userInfo.is_money_level }">
  206. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()">
  207. </image>
  208. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  209. </image>
  210. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  211. <image src="/static/images/headwear.png"></image>
  212. </view>
  213. </view>
  214. <!-- #endif -->
  215. </view>
  216. <view class="info">
  217. <!-- #ifdef MP -->
  218. <view class="name" v-if="!userInfo.id" @click="openAuto"
  219. style="height: 100%; display: flex; align-items: center;">
  220. {{ $t('请点击授权') }}
  221. </view>
  222. <!-- #endif -->
  223. <!-- #ifdef H5 -->
  224. <view class="name" v-if="!userInfo.id && isWeixin" @click="openAuto"
  225. style="height: 100%; display: flex; align-items: center;">
  226. {{ $t('请点击授权') }}
  227. </view>
  228. <!-- #endif -->
  229. <view class="name" v-if="userInfo.id">
  230. {{ userInfo.name }}
  231. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  232. <view class="vip" v-if="userInfo.is_money_level > 0 && userInfo.svip_open">
  233. <image src="/static/images/svip.png"></image>
  234. </view>
  235. </view>
  236. <view class="num" v-if="userInfo.username" @click="goEdit()">
  237. <view class="num-txt">
  238. <view class="employees">团员</view>
  239. </view>
  240. <!-- <view class="icon">
  241. <image src="/static/images/edit.png" mode=""></image>
  242. </view> -->
  243. </view>
  244. <!-- <view class="phone" v-if="!userInfo.username && isLogin" @tap="bindPhone">
  245. {{$t('绑定手机号')}}</view> -->
  246. </view>
  247. <view v-if="userInfo.livingHall === 1" class="message" style=" white-space: nowrap;">
  248. <text style=" color: rgb(174, 33, 56);margin-right: 20rpx;">切换团长</text>
  249. <u-switch v-model="roleSwitch" activeColor="#75BE00" size="16" @change="changeRole"></u-switch>
  250. </view>
  251. </view>
  252. </view>
  253. <navigator url="/pages/groupbuying/promotion/index" hover-class="none">
  254. <view class="group-buying-data2">
  255. <view class="group-title-2">
  256. <view>
  257. 累计分享奖励(元) &nbsp; ¥{{statistics.allAccounts || 0}}
  258. </view>
  259. <view>
  260. 查看详情 >
  261. </view>
  262. </view>
  263. </view>
  264. </navigator>
  265. <view class="my_order">
  266. <u-cell value="全部订单" isLink>
  267. <view slot="title" class="u-slot-title">
  268. <text class="u-cell-text">我的订单</text>
  269. </view>
  270. </u-cell>
  271. </view>
  272. <view class="order-wrapper origin" >
  273. <view class="order-bd">
  274. <block v-for="(item, index) in orderMenuOrigin" :key="index">
  275. <view class="order-item" hover-class="none" @click="goRouter(item)">
  276. <view class="pic">
  277. <!-- <image :src="item.img" mode=""></image> -->
  278. <text class="iconfont" :class="item.img"></text>
  279. </view>
  280. <view class="txt">{{ item.title}}</view>
  281. </view>
  282. </block>
  283. </view>
  284. </view>
  285. <view class="tool_list">
  286. <u-cell-group>
  287. <navigator url="/pages/columnGoods/HotNewGoods/feedback" hover-class="none">
  288. <u-cell isLink>
  289. <view slot="title" class="u-slot-title">
  290. <image src="http://www.gzzzyd.com/groupon/regiment/编组 6@2x.png" mode=""></image>
  291. <text class="u-cell-text">建议与反馈</text>
  292. </view>
  293. </u-cell>
  294. </navigator>
  295. <u-cell isLink>
  296. <view slot="title" class="u-slot-title" @click="goMyMessage">
  297. <image src="http://www.gzzzyd.com/groupon/regiment/编组 8@2x.png" mode=""></image>
  298. <text class="u-cell-text">我的消息</text>
  299. </view>
  300. </u-cell>
  301. <navigator url="/pages/groupbuying/aboutUs/index" hover-class="none">
  302. <u-cell isLink>
  303. <view slot="title" class="u-slot-title">
  304. <image src="http://www.gzzzyd.com/groupon/regiment/编组 8@2x(1).png" mode=""></image>
  305. <text class="u-cell-text">关于我们</text>
  306. </view>
  307. </u-cell>
  308. </navigator>
  309. <navigator url="/pages/users/user_info/index" hover-class="none">
  310. <u-cell isLink>
  311. <view slot="title" class="u-slot-title">
  312. <image src="http://www.gzzzyd.com/groupon/regiment/编组 18@2x.png" mode=""></image>
  313. <text class="u-cell-text">设置</text>
  314. </view>
  315. </u-cell>
  316. </navigator>
  317. </u-cell-group>
  318. </view>
  319. <view class="footer">
  320. <button @click="outLogin">
  321. 退出登录
  322. </button>
  323. </view>
  324. <my-swiper :type=4 ></my-swiper>
  325. </view>
  326. </scroll-view>
  327. </view>
  328. </view>
  329. </template>
  330. <script>
  331. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  332. import {
  333. getMenuList,
  334. getUserInfo,
  335. getLogout,
  336. setVisit,
  337. updateUserInfo
  338. } from '@/api/user.js';
  339. import {commissionStatistics, grouponMngStatis} from '@/api/groupon.js'
  340. import {
  341. wechatAuthV2,
  342. getNavigation,
  343. silenceAuth
  344. } from '@/api/public.js'
  345. import {
  346. toLogin
  347. } from '@/libs/login.js';
  348. import {
  349. mapState,
  350. mapGetters,
  351. mapMutations
  352. } from "vuex";
  353. // #ifdef H5
  354. import Auth from '@/libs/wechat';
  355. // #endif
  356. const app = getApp();
  357. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  358. import Routine from '@/libs/routine';
  359. import colors from '@/mixins/color';
  360. import {
  361. getCustomer
  362. } from '@/utils/index.js'
  363. export default {
  364. components: {
  365. },
  366. computed: {
  367. ...mapGetters({
  368. cartNum: 'cartNum',
  369. isLogin: 'isLogin',
  370. newCurrentRole:'newCurrentRole'
  371. })
  372. },
  373. filters: {
  374. coundTime (val) {
  375. var setTime = val * 1000
  376. var nowTime = new Date()
  377. var rest = setTime - nowTime.getTime()
  378. var day = parseInt(rest / (60 * 60 * 24 * 1000))
  379. // var hour = parseInt(rest/(60*60*1000)%24) //小时
  380. return day + this.$t('day')
  381. },
  382. dateFormat: function (value) {
  383. return dayjs(value * 1000).format('YYYY-MM-DD');
  384. }
  385. },
  386. mixins: [colors],
  387. data () {
  388. return {
  389. statistics:{},
  390. grouponStatis:{},
  391. roleSwitch: false,
  392. currentRole: 'employees',
  393. storeMenu: [], // 商家管理
  394. orderMenu: [{
  395. img: 'icon-daifukuan',
  396. src: 'http://www.gzzzyd.com/groupon/regiment/扫码_scan@2x.png',
  397. title: '到货核销',
  398. url: '/pages/groupbuying/arrival_verification_list/index?status=1'
  399. },
  400. // {
  401. // img: 'icon-daifahuo',
  402. // src: 'http://www.gzzzyd.com/groupon/regiment/01_自提点@2x.png',
  403. // title: '自提点管理',
  404. // url: '/pages/goods/order_list/index?status=2'
  405. // },
  406. {
  407. img: 'icon-daishouhuo',
  408. src: 'http://www.gzzzyd.com/groupon/regiment/团购@2x.png',
  409. title: '团购管理',
  410. url: '/pages/groupbuying/groupbuying_order_list/index?status=3'
  411. },
  412. {
  413. img: 'icon-daipingjia',
  414. src: 'http://www.gzzzyd.com/groupon/regiment/订单管理@2x.png',
  415. title: '订单管理',
  416. url: '/pages/goods/leader_order_list/index?status=4'
  417. }
  418. ],
  419. orderMenuOrigin: [{
  420. img: 'icon-daifukuan',
  421. title: '待付款',
  422. url: '/pages/order/index?status=1'
  423. },
  424. {
  425. img: 'icon-daifahuo',
  426. title: '待提货',
  427. url: '/pages/order/index?status=2'
  428. },
  429. {
  430. img: 'icon-daipingjia',
  431. title: '已完成',
  432. url: '/pages/order/index?status=3'
  433. },
  434. {
  435. img: 'icon-a-shouhoutuikuan',
  436. title: '售后',
  437. url: '/pages/users/user_return_list/index'
  438. },
  439. ],
  440. imgUrls: [],
  441. autoplay: true,
  442. circular: true,
  443. interval: 3000,
  444. duration: 500,
  445. isAuto: false, //没有授权的不会自动授权
  446. isShowAuth: false, //是否隐藏授权
  447. orderStatusNum: {},
  448. userInfo: {},
  449. MyMenus: [],
  450. sysHeight: sysHeight,
  451. mpHeight: 0,
  452. showStatus: 1,
  453. newData: {},
  454. activeRouter: '',
  455. // #ifdef H5 || MP
  456. pageHeight: '100%',
  457. routineContact: 0,
  458. // #endif
  459. // #ifdef APP-PLUS
  460. pageHeight: app.globalData.windowHeight,
  461. // #endif
  462. // #ifdef H5
  463. isWeixin: Auth.isWeixin(),
  464. //#endif
  465. footerSee: false,
  466. member_style: 1,
  467. my_banner_status: 1,
  468. is_diy: uni.getStorageSync('is_diy'),
  469. copyRightPic: '/static/images/support.png', //版权图片
  470. loginType: 'h5', //app.globalData.loginType
  471. }
  472. },
  473. onLoad (option) {
  474. let that = this;
  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. if (this.$store.getters.isLogin) {
  487. this.commissionStatistics();
  488. }
  489. this.currentRole=this.$store.getters.newCurrentRole;
  490. console.log(this.newCurrentRole);
  491. this.grouponMngStatis();
  492. let that = this;
  493. // #ifdef APP-PLUS
  494. uni.getSystemInfo({
  495. success: function (res) {
  496. that.pageHeight = res.windowHeight + 'px'
  497. }
  498. });
  499. // #endif
  500. if (that.isLogin) {
  501. this.getUserInfo();
  502. this.getMyMenus();
  503. this.setVisit();
  504. };
  505. this.getCopyRight();
  506. },
  507. onPullDownRefresh () {
  508. this.onLoadFun();
  509. },
  510. methods: {
  511. ...mapMutations(["setNewCurrentRole"]),
  512. goMyMessage(){
  513. console.log("++++++++++++++++++++++++")
  514. uni.switchTab({
  515. url: '/pages/message/message'
  516. });
  517. },
  518. commissionStatistics(){
  519. commissionStatistics().then(res => {
  520. this.statistics =res.data
  521. })
  522. },
  523. grouponMngStatis(){
  524. grouponMngStatis().then(res => {
  525. this.grouponStatis = res.data
  526. })
  527. },
  528. /**
  529. * 退出登录
  530. *
  531. */
  532. outLogin: function() {
  533. let that = this;
  534. if (that.loginType == 'h5') {
  535. uni.showModal({
  536. title: that.$t(`提示`),
  537. content: that.$t(`确认退出登录`),
  538. success: function(res) {
  539. if (res.confirm) {
  540. getLogout()
  541. .then(res => {
  542. // uni.clearStorage()
  543. that.$store.commit("LOGOUT");
  544. uni.reLaunch({
  545. url: '/pages/index/index'
  546. })
  547. })
  548. .catch(err => {});
  549. } else if (res.cancel) {}
  550. }
  551. });
  552. }
  553. },
  554. changeRole () {
  555. this.currentRole = this.roleSwitch ? 'leader' : 'employees'
  556. this.setNewCurrentRole(this.currentRole);
  557. },
  558. // 发布团购
  559. goGroupbuying (url) {
  560. if (this.isLogin == false) {
  561. toLogin();
  562. } else {
  563. uni.navigateTo({
  564. url: `/pages/groupbuying/${url}/index`
  565. })
  566. }
  567. },
  568. getWechatuserinfo () {
  569. //#ifdef H5
  570. Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
  571. //#endif
  572. },
  573. // 记录会员访问
  574. setVisit () {
  575. // setVisit({
  576. // url: '/pages/user/index'
  577. // }).then(res => { })
  578. },
  579. // 打开授权
  580. openAuto () {
  581. toLogin();
  582. },
  583. // 授权回调
  584. onLoadFun () {
  585. this.getUserInfo();
  586. this.getMyMenus();
  587. this.setVisit();
  588. },
  589. Setting: function () {
  590. uni.openSetting({
  591. success: function (res) { }
  592. });
  593. },
  594. // 授权关闭
  595. authColse: function (e) {
  596. this.isShowAuth = e
  597. },
  598. // 绑定手机
  599. bindPhone () {
  600. uni.navigateTo({
  601. url: '/pages/users/user_phone/index'
  602. })
  603. },
  604. /**
  605. * 获取个人用户信息
  606. */
  607. getUserInfo: function () {
  608. let that = this;
  609. getUserInfo().then(res => {
  610. that.userInfo = res.data
  611. that.$store.commit("SETUID", res.data.userId);
  612. // that.orderMenu.forEach((item, index) => {
  613. // switch (item.title) {
  614. // case '待付款':
  615. // item.num = res.data.orderStatusNum.unpaid_count
  616. // break
  617. // case '待发货':
  618. // item.num = res.data.orderStatusNum.unshipped_count
  619. // break
  620. // case '待收货':
  621. // item.num = res.data.orderStatusNum.received_count
  622. // break
  623. // case '待评价':
  624. // item.num = res.data.orderStatusNum.evaluated_count
  625. // break
  626. // case '售后':
  627. // item.num = res.data.orderStatusNum.refunding_count
  628. // break
  629. // }
  630. // })
  631. uni.stopPullDownRefresh();
  632. });
  633. },
  634. //小程序授权api替换 getUserInfo
  635. getUserProfile () {
  636. toLogin();
  637. },
  638. /**
  639. *
  640. * 获取个人中心图标
  641. */
  642. switchTab (order) {
  643. this.orderMenu.forEach((item, index) => {
  644. switch (item.title) {
  645. case '待付款':
  646. item.img = order.dfk
  647. break
  648. case '待发货':
  649. item.img = order.dfh
  650. break
  651. case '待收货':
  652. item.img = order.dsh
  653. break
  654. case '待评价':
  655. item.img = order.dpj
  656. break
  657. case '售后':
  658. item.img = order.sh
  659. break
  660. }
  661. })
  662. },
  663. getMyMenus: function () {
  664. let that = this;
  665. // if (this.MyMenus.length) return;
  666. uni.request({
  667. url: 'api/mock/menu',
  668. success: res => {
  669. let storeMenu = []
  670. let myMenu = []
  671. res.data.routine_my_menus.forEach((el, index, arr) => {
  672. if (el.url == '/pages/admin/order/index' || el.url ==
  673. '/pages/admin/order_cancellation/index' || el.name ==
  674. this.$t(`客服接待`)) {
  675. storeMenu.push(el)
  676. } else {
  677. myMenu.push(el)
  678. }
  679. })
  680. this.member_style = Number(res.data.diy_data.value)
  681. this.my_banner_status = res.data.diy_data.my_banner_status
  682. let order01 = {
  683. dfk: 'icon-daifukuan',
  684. dfh: 'icon-daifahuo',
  685. dsh: 'icon-daishouhuo',
  686. dpj: 'icon-daipingjia',
  687. sh: 'icon-a-shouhoutuikuan'
  688. }
  689. let order02 = {
  690. dfk: 'icon-daifukuan-lan',
  691. dfh: 'icon-daifahuo-lan',
  692. dsh: 'icon-daishouhuo-lan',
  693. dpj: 'icon-daipingjia-lan',
  694. sh: 'icon-shouhou-tuikuan-lan'
  695. }
  696. let order03 = {
  697. dfk: 'icon-daifukuan-ju',
  698. dfh: 'icon-daifahuo-ju',
  699. dsh: 'icon-daishouhuo-ju',
  700. dpj: 'icon-daipingjia-ju',
  701. sh: 'icon-shouhou-tuikuan-ju'
  702. }
  703. let order04 = {
  704. dfk: 'icon-daifukuan-fen',
  705. dfh: 'icon-daifahuo-fen',
  706. dsh: 'icon-daishouhuo-fen',
  707. dpj: 'icon-daipingjia-fen',
  708. sh: 'icon-a-shouhoutuikuan-fen'
  709. }
  710. let order05 = {
  711. dfk: 'icon-daifukuan-lv',
  712. dfh: 'icon-daifahuo-lv',
  713. dsh: 'icon-daishouhuo-lv',
  714. dpj: 'icon-daipingjia-lv',
  715. sh: 'icon-shouhou-tuikuan-lv'
  716. }
  717. switch (res.data.diy_data.order_status) {
  718. case 1:
  719. this.switchTab(order01)
  720. break
  721. case 2:
  722. this.switchTab(order02)
  723. break
  724. case 3:
  725. this.switchTab(order03)
  726. break
  727. case 4:
  728. this.switchTab(order04)
  729. break
  730. case 5:
  731. this.switchTab(order05)
  732. break
  733. }
  734. that.$set(that, 'MyMenus', myMenu);
  735. that.$set(that, 'storeMenu', storeMenu);
  736. this.imgUrls = res.data.routine_my_banner
  737. this.routineContact = Number(res.data.routine_contact_type)
  738. }
  739. })
  740. },
  741. // 编辑页面
  742. goEdit () {
  743. if (this.isLogin == false) {
  744. toLogin();
  745. } else {
  746. uni.navigateTo({
  747. url: '/pages/users/user_info/index?currentRole=' + this.currentRole
  748. })
  749. }
  750. },
  751. goRouter (item) {
  752. var pages = getCurrentPages();
  753. var page = (pages[pages.length - 1]).$page.fullPath;
  754. if (item.url == page) return
  755. getApp().globalData.switchId = item.title
  756. uni.switchTab({
  757. url: item.url,
  758. fail (err) {
  759. uni.redirectTo({
  760. url: item.url
  761. })
  762. }
  763. })
  764. },
  765. getCopyRight () {
  766. const copyRight = uni.getStorageSync('copyRight')
  767. if (copyRight.copyrightImage) {
  768. this.copyRightPic = copyRight.copyrightImage
  769. }
  770. }
  771. }
  772. }
  773. </script>
  774. <style lang="scss">
  775. page,
  776. body {
  777. height: 100%;
  778. }
  779. .height {}
  780. .unBg {
  781. background-color: unset !important;
  782. .user-info {
  783. .info {
  784. .name {
  785. color: #333333 !important;
  786. font-weight: 600;
  787. }
  788. .num {
  789. color: #333 !important;
  790. .num-txt {
  791. height: 38rpx;
  792. background-color: rgba(51, 51, 51, 0.13);
  793. padding: 0 12rpx;
  794. border-radius: 16rpx;
  795. }
  796. }
  797. }
  798. }
  799. .num-wrapper {
  800. color: #333 !important;
  801. font-weight: 600;
  802. .num-item {
  803. .txt {
  804. color: rgba(51, 51, 51, 0.7) !important;
  805. }
  806. }
  807. }
  808. .message {
  809. .iconfont {
  810. color: #333 !important;
  811. }
  812. .num {
  813. color: #fff !important;
  814. background-color: var(--view-theme) !important;
  815. }
  816. }
  817. .setting {
  818. .iconfont {
  819. color: #333 !important;
  820. }
  821. }
  822. }
  823. .cardVipB {
  824. background-color: #343A48;
  825. width: 100%;
  826. height: 124rpx;
  827. border-radius: 16rpx 16rpx 0 0;
  828. padding: 22rpx 30rpx 0 30rpx;
  829. margin-top: 16px;
  830. .left-box {
  831. .small {
  832. color: #F8D5A8;
  833. font-size: 28rpx;
  834. margin-left: 18rpx;
  835. }
  836. .pictrue {
  837. width: 40rpx;
  838. height: 45rpx;
  839. image {
  840. width: 100%;
  841. height: 100%;
  842. }
  843. }
  844. }
  845. .btn {
  846. color: #BBBBBB;
  847. font-size: 26rpx;
  848. }
  849. .icon-xiangyou {
  850. margin-top: 6rpx;
  851. }
  852. }
  853. .cardVipA {
  854. position: absolute;
  855. // background: url('~@/static/images/member.png') no-repeat;
  856. background-size: 100% 100%;
  857. width: 750rpx;
  858. height: 84rpx;
  859. bottom: -2rpx;
  860. left: 0;
  861. padding: 0 56rpx 0 135rpx;
  862. .left-box {
  863. font-size: 26rpx;
  864. color: #905100;
  865. font-weight: 400;
  866. }
  867. .btn {
  868. color: #905100;
  869. font-weight: 400;
  870. font-size: 24rpx;
  871. }
  872. .iconfont {
  873. font-size: 20rpx;
  874. margin: 4rpx 0 0 4rpx;
  875. }
  876. }
  877. .new-users {
  878. display: flex;
  879. flex-direction: column;
  880. height: 100%;
  881. .sys-head {
  882. position: relative;
  883. width: 100%;
  884. // background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  885. .bg {
  886. position: absolute;
  887. left: 0;
  888. top: 0;
  889. width: 100%;
  890. height: 100%;
  891. background: var(--view-theme);
  892. background-size: 100% auto;
  893. background-position: left bottom;
  894. }
  895. .sys-title {
  896. z-index: 10;
  897. position: relative;
  898. height: 43px;
  899. text-align: left;
  900. line-height: 43px;
  901. font-size: 36rpx;
  902. color: rgba(17, 17, 17, 1);
  903. font-weight: bolder;
  904. padding-left: 36rpx;
  905. }
  906. }
  907. .head {
  908. // background: #fff;
  909. .user-card {
  910. position: relative;
  911. width: 100%;
  912. height: 180rpx;
  913. margin: 0 auto;
  914. background-image: linear-gradient(#FDF5F6, #FBF7F7);
  915. background-size: 100% auto;
  916. background-color: var(--view-theme);
  917. .user-info {
  918. z-index: 20;
  919. position: relative;
  920. display: flex;
  921. .headwear {
  922. position: absolute;
  923. right: -4rpx;
  924. top: -14rpx;
  925. width: 44rpx;
  926. height: 44rpx;
  927. image {
  928. width: 100%;
  929. height: 100%;
  930. }
  931. }
  932. .live {
  933. width: 28rpx;
  934. height: 28rpx;
  935. margin-left: 20rpx;
  936. }
  937. .bntImg {
  938. width: 120rpx;
  939. height: 120rpx;
  940. border-radius: 50%;
  941. text-align: center;
  942. line-height: 120rpx;
  943. background-color: unset;
  944. position: relative;
  945. .avatarName {
  946. font-size: 16rpx;
  947. color: #fff;
  948. text-align: center;
  949. background-color: rgba(0, 0, 0, 0.6);
  950. height: 37rpx;
  951. line-height: 37rpx;
  952. position: absolute;
  953. bottom: 0;
  954. left: 0;
  955. width: 100%;
  956. }
  957. }
  958. .avatar-box {
  959. position: relative;
  960. display: flex;
  961. align-items: center;
  962. justify-content: center;
  963. width: 150rpx;
  964. height: 150rpx;
  965. border-radius: 50%;
  966. &.on {
  967. .avatar {
  968. border: 2px solid #FFAC65;
  969. border-radius: 50%;
  970. box-sizing: border-box;
  971. }
  972. }
  973. }
  974. .avatar {
  975. position: relative;
  976. width: 150rpx;
  977. height: 150rpx;
  978. border-radius: 50%;
  979. }
  980. .info {
  981. max-width: 50%;
  982. flex: 1;
  983. display: flex;
  984. flex-direction: column;
  985. justify-content: center;
  986. margin-left: 20rpx;
  987. padding: 15rpx 0;
  988. .name {
  989. display: flex;
  990. align-items: center;
  991. font-size: 32rpx;
  992. margin-top: 30rpx;
  993. font-weight: bolder;
  994. color: #333333;
  995. .vip {
  996. margin-left: 10rpx;
  997. image {
  998. width: 78rpx;
  999. height: 30rpx;
  1000. display: block;
  1001. }
  1002. }
  1003. }
  1004. .num {
  1005. display: flex;
  1006. align-items: center;
  1007. margin-top: 20rpx;
  1008. font-size: 26rpx;
  1009. color: rgba(255, 255, 255, 0.6);
  1010. image {
  1011. width: 22rpx;
  1012. height: 23rpx;
  1013. margin-left: 20rpx;
  1014. }
  1015. }
  1016. }
  1017. }
  1018. .message {
  1019. align-self: flex-start;
  1020. position: relative;
  1021. display: flex;
  1022. margin-right: 20rpx;
  1023. height: 150rpx;
  1024. align-items: center;
  1025. .num {
  1026. position: absolute;
  1027. top: -8rpx;
  1028. left: 18rpx;
  1029. padding: 0 6rpx;
  1030. height: 28rpx;
  1031. border-radius: 12rpx;
  1032. background-color: #fff;
  1033. font-size: 18rpx;
  1034. line-height: 28rpx;
  1035. text-align: center;
  1036. color: var(--view-theme);
  1037. }
  1038. .iconfont {
  1039. font-size: 40rpx;
  1040. color: #fff;
  1041. }
  1042. }
  1043. .num-wrapper {
  1044. z-index: 30;
  1045. position: relative;
  1046. display: flex;
  1047. align-items: center;
  1048. justify-content: space-between;
  1049. margin-top: 22rpx;
  1050. // padding: 0 47rpx;
  1051. color: #fff;
  1052. .num-item {
  1053. width: 33.33%;
  1054. text-align: center;
  1055. &~.num-item {
  1056. position: relative;
  1057. &:before {
  1058. content: '';
  1059. position: absolute;
  1060. width: 1rpx;
  1061. height: 28rpx;
  1062. top: 50%;
  1063. margin-top: -14rpx;
  1064. background-color: rgba(255, 255, 255, 0.4);
  1065. left: 0;
  1066. }
  1067. }
  1068. .num {
  1069. font-size: 42rpx;
  1070. font-weight: bold;
  1071. }
  1072. .txt {
  1073. margin-top: 8rpx;
  1074. font-size: 26rpx;
  1075. color: rgba(255, 255, 255, 0.6);
  1076. }
  1077. }
  1078. }
  1079. .sign {
  1080. z-index: 200;
  1081. position: absolute;
  1082. right: -12rpx;
  1083. top: 80rpx;
  1084. display: flex;
  1085. align-items: center;
  1086. justify-content: center;
  1087. width: 120rpx;
  1088. height: 60rpx;
  1089. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1090. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1091. color: #282828;
  1092. font-size: 28rpx;
  1093. font-weight: bold;
  1094. }
  1095. }
  1096. .group-buying-data2 {
  1097. position: relative;
  1098. width: 100%;
  1099. height: 140rpx;
  1100. padding: 40rpx;
  1101. margin: 0 auto;
  1102. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1103. background-size: 100% auto;
  1104. background-color: var(--view-theme);
  1105. .group-title-2 {
  1106. display: flex;
  1107. justify-content: space-between;
  1108. font-size: 32rpx;
  1109. font-weight: 500;
  1110. color: #B22338;
  1111. line-height: 44rpx;
  1112. height: 44rpx;
  1113. }
  1114. }
  1115. .group-buying-data {
  1116. position: relative;
  1117. width: 100%;
  1118. height: 240rpx;
  1119. padding: 40rpx;
  1120. margin: 0 auto;
  1121. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1122. background-size: 100% auto;
  1123. background-color: var(--view-theme);
  1124. .group-title {
  1125. font-size: 32rpx;
  1126. font-weight: 500;
  1127. color: #B22338;
  1128. line-height: 44rpx;
  1129. height: 44rpx;
  1130. }
  1131. .group-content {
  1132. display: flex;
  1133. .group-content-l {
  1134. text-align: center;
  1135. flex: 1;
  1136. border-color: #333333;
  1137. border-right: 1px solid dashed;
  1138. }
  1139. .group-content-r {
  1140. text-align: center;
  1141. flex: 1
  1142. }
  1143. .content-num {
  1144. margin-top: 20rpx;
  1145. height: 48rpx;
  1146. font-size: 40rpx;
  1147. font-weight: bold;
  1148. color: #B22338;
  1149. line-height: 48rpx;
  1150. }
  1151. .content-info {
  1152. margin-top: 20rpx;
  1153. text-align: center;
  1154. width: 100%;
  1155. height: 36rpx;
  1156. font-size: 24rpx;
  1157. font-weight: 400;
  1158. color: #CF7986;
  1159. line-height: 36rpx;
  1160. }
  1161. }
  1162. }
  1163. .order-wrapper {
  1164. margin-top: 30rpx;
  1165. background: #fff;
  1166. border-radius: 16rpx;
  1167. position: relative;
  1168. .order-hd {
  1169. justify-content: space-between;
  1170. padding: 30rpx 20rpx 10rpx 30rpx;
  1171. margin-top: 25rpx;
  1172. font-size: 30rpx;
  1173. color: #282828;
  1174. .left {
  1175. font-weight: bold;
  1176. }
  1177. .right {
  1178. display: flex;
  1179. align-items: center;
  1180. color: #666666;
  1181. font-size: 26rpx;
  1182. .icon-xiangyou {
  1183. margin-left: 5rpx;
  1184. font-size: 26rpx;
  1185. }
  1186. }
  1187. }
  1188. .order-bd {
  1189. display: flex;
  1190. padding: 0 0;
  1191. .order-item {
  1192. display: flex;
  1193. flex-direction: column;
  1194. justify-content: center;
  1195. align-items: center;
  1196. flex: 1;
  1197. height: 140rpx;
  1198. .pic {
  1199. position: relative;
  1200. text-align: center;
  1201. .iconfont {
  1202. font-size: 48rpx;
  1203. color: var(--view-theme);
  1204. }
  1205. image {
  1206. width: 70rpx;
  1207. height: 70rpx;
  1208. }
  1209. }
  1210. .txt {
  1211. margin-top: 6rpx;
  1212. font-size: 26rpx;
  1213. color: #333;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. }
  1219. .slider-wrapper {
  1220. margin: 20rpx 30rpx;
  1221. height: 130rpx;
  1222. swiper,
  1223. swiper-item {
  1224. height: 100%;
  1225. }
  1226. image {
  1227. width: 100%;
  1228. height: 130rpx;
  1229. border-radius: 16rpx;
  1230. }
  1231. }
  1232. .user-menus {
  1233. background-color: #fff;
  1234. margin: 0 30rpx;
  1235. border-radius: 16rpx;
  1236. .menu-title {
  1237. padding: 30rpx 30rpx 40rpx;
  1238. font-size: 30rpx;
  1239. color: #282828;
  1240. font-weight: bold;
  1241. }
  1242. .list-box {
  1243. display: flex;
  1244. flex-wrap: wrap;
  1245. padding: 0;
  1246. }
  1247. .item {
  1248. position: relative;
  1249. display: flex;
  1250. align-items: center;
  1251. justify-content: space-between;
  1252. flex-direction: column;
  1253. width: 32%;
  1254. margin-bottom: 47rpx;
  1255. font-size: 26rpx;
  1256. color: #333333;
  1257. image {
  1258. width: 52rpx;
  1259. height: 52rpx;
  1260. margin-bottom: 18rpx;
  1261. }
  1262. &:last-child::before {
  1263. display: none;
  1264. }
  1265. }
  1266. button {
  1267. font-size: 28rpx;
  1268. }
  1269. }
  1270. .phone {
  1271. color: #fff;
  1272. background-color: #CCC;
  1273. border-radius: 15px;
  1274. width: max-content;
  1275. padding: 0 10px;
  1276. }
  1277. .order-status-num {
  1278. min-width: 12rpx;
  1279. background-color: #fff;
  1280. color: var(--view-theme);
  1281. border-radius: 15px;
  1282. position: absolute;
  1283. right: -14rpx;
  1284. top: -15rpx;
  1285. font-size: 20rpx;
  1286. padding: 0 8rpx;
  1287. border: 1px solid var(--view-theme);
  1288. }
  1289. .support {
  1290. width: 219rpx;
  1291. height: 74rpx;
  1292. margin: 54rpx auto;
  1293. display: block;
  1294. }
  1295. }
  1296. .card-vip {
  1297. display: flex;
  1298. align-items: center;
  1299. justify-content: space-between;
  1300. position: relative;
  1301. width: 690rpx;
  1302. height: 134rpx;
  1303. margin: -72rpx auto 0;
  1304. // background: url('~@/static/images/user_vip.png');
  1305. background-size: cover;
  1306. padding-left: 118rpx;
  1307. padding-right: 34rpx;
  1308. .left-box {
  1309. font-size: 24rpx;
  1310. color: #AE5A2A;
  1311. .big {
  1312. font-size: 28rpx;
  1313. }
  1314. .small {
  1315. opacity: 0.8;
  1316. margin-top: 10rpx;
  1317. }
  1318. }
  1319. .btn {
  1320. height: 52rpx;
  1321. line-height: 52rpx;
  1322. padding: 0 10rpx;
  1323. text-align: center;
  1324. background: #fff;
  1325. border-radius: 28rpx;
  1326. font-size: 26rpx;
  1327. color: #AE5A2A;
  1328. }
  1329. }
  1330. .setting {
  1331. margin-top: 15rpx;
  1332. margin-left: 15rpx;
  1333. color: #fff;
  1334. .iconfont {
  1335. font-size: 40rpx;
  1336. }
  1337. }
  1338. .page-footer {
  1339. position: fixed;
  1340. bottom: 0;
  1341. z-index: 30;
  1342. display: flex;
  1343. align-items: center;
  1344. justify-content: space-around;
  1345. width: 100%;
  1346. height: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1347. height: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1348. box-sizing: border-box;
  1349. border-top: solid 1rpx #F3F3F3;
  1350. background-color: #fff;
  1351. box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
  1352. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  1353. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  1354. .foot-item {
  1355. display: flex;
  1356. width: max-content;
  1357. align-items: center;
  1358. justify-content: center;
  1359. flex-direction: column;
  1360. position: relative;
  1361. .count-num {
  1362. position: absolute;
  1363. display: flex;
  1364. justify-content: center;
  1365. align-items: center;
  1366. width: 40rpx;
  1367. height: 40rpx;
  1368. top: 0rpx;
  1369. right: -15rpx;
  1370. color: #fff;
  1371. font-size: 20rpx;
  1372. background-color: #FD502F;
  1373. border-radius: 50%;
  1374. padding: 4rpx;
  1375. }
  1376. }
  1377. .foot-item image {
  1378. height: 50rpx;
  1379. width: 50rpx;
  1380. text-align: center;
  1381. margin: 0 auto;
  1382. }
  1383. .foot-item .txt {
  1384. font-size: 24rpx;
  1385. &.active {}
  1386. }
  1387. }
  1388. .new-users {
  1389. padding-bottom: 0;
  1390. padding-bottom: constant(safe-area-inset-bottom);
  1391. padding-bottom: env(safe-area-inset-bottom);
  1392. }
  1393. .group-buying-btn {
  1394. margin-top: 20rpx;
  1395. display: flex;
  1396. width: 100%;
  1397. height: 110rpx;
  1398. .image-text_21 {
  1399. flex: 1;
  1400. image {
  1401. width: 100%;
  1402. height: 100%;
  1403. }
  1404. }
  1405. }
  1406. .icon_1 {
  1407. width: 14px;
  1408. height: 14px;
  1409. margin: 3px 0 3px 0;
  1410. }
  1411. .text-group_1 {
  1412. overflow-wrap: break-word;
  1413. color: rgba(178, 35, 56, 1);
  1414. font-size: 14px;
  1415. font-family: PingFangSC-Semibold;
  1416. font-weight: 600;
  1417. text-align: left;
  1418. white-space: nowrap;
  1419. line-height: 20px;
  1420. }
  1421. .image-text_22 {
  1422. width: 78px;
  1423. }
  1424. .icon_10 {
  1425. width: 14px;
  1426. height: 14px;
  1427. margin: 3px 0 3px 0;
  1428. }
  1429. .text-group_8 {
  1430. overflow-wrap: break-word;
  1431. color: rgba(178, 35, 56, 1);
  1432. font-size: 14px;
  1433. font-family: PingFangSC-Semibold;
  1434. font-weight: 600;
  1435. text-align: left;
  1436. white-space: nowrap;
  1437. line-height: 20px;
  1438. }
  1439. .leader {
  1440. width: 96rpx;
  1441. height: 40rpx;
  1442. background: #F1F8E5;
  1443. color: #75BE00;
  1444. border-radius: 22rpx;
  1445. text-align: center;
  1446. border: 2rpx solid #75BE00;
  1447. }
  1448. .employees {
  1449. width: 96rpx;
  1450. height: 40rpx;
  1451. background: rgb(247, 233, 235);
  1452. border-radius: 22rpx;
  1453. color: rgb(174, 33, 56);
  1454. text-align: center;
  1455. border: 2rpx solid rgb(174, 33, 56);
  1456. }
  1457. .tool_list,
  1458. .footer {
  1459. background: #fff;
  1460. border-radius: 16rpx;
  1461. margin-top: 20rpx;
  1462. }
  1463. .footer {
  1464. height: 100rpx;
  1465. button {
  1466. height: 100%;
  1467. font-size: 28rpx;
  1468. font-weight: 400;
  1469. color: #999999;
  1470. line-height: 100rpx;
  1471. }
  1472. }
  1473. /deep/ .tool_list .u-line,
  1474. .my_order .u-line {
  1475. display: none !important;
  1476. }
  1477. .my_order{
  1478. }
  1479. .u-slot-title {
  1480. text {
  1481. vertical-align: text-bottom;
  1482. line-height: 60rpx;
  1483. }
  1484. image {
  1485. margin-right: 20rpx;
  1486. transform: translateY(10rpx);
  1487. width: 60rpx;
  1488. height: 60rpx;
  1489. }
  1490. }
  1491. .origin{
  1492. margin-top: 0 !important;
  1493. }
  1494. </style>