index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699
  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" @click="goOrderIndex">
  266. <u-cell value="全部订单" isLink>
  267. <view slot="title" class="u-slot-title">
  268. <text class="u-cell-text my_order_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 order_menu_title">{{ 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. goOrderIndex(){
  513. uni.switchTab({
  514. url:'/pages/order/index'
  515. })
  516. },
  517. goMyMessage(){
  518. console.log("++++++++++++++++++++++++")
  519. uni.switchTab({
  520. url: '/pages/message/message'
  521. });
  522. },
  523. commissionStatistics(){
  524. commissionStatistics().then(res => {
  525. this.statistics =res.data
  526. })
  527. },
  528. grouponMngStatis(){
  529. grouponMngStatis().then(res => {
  530. this.grouponStatis = res.data
  531. })
  532. },
  533. /**
  534. * 退出登录
  535. *
  536. */
  537. outLogin: function() {
  538. let that = this;
  539. if (that.loginType == 'h5') {
  540. uni.showModal({
  541. title: that.$t(`提示`),
  542. content: that.$t(`确认退出登录`),
  543. success: function(res) {
  544. if (res.confirm) {
  545. getLogout()
  546. .then(res => {
  547. // uni.clearStorage()
  548. that.$store.commit("LOGOUT");
  549. uni.reLaunch({
  550. url: '/pages/index/index'
  551. })
  552. })
  553. .catch(err => {});
  554. } else if (res.cancel) {}
  555. }
  556. });
  557. }
  558. },
  559. changeRole () {
  560. this.currentRole = this.roleSwitch ? 'leader' : 'employees'
  561. this.setNewCurrentRole(this.currentRole);
  562. },
  563. // 发布团购
  564. goGroupbuying (url) {
  565. if (this.isLogin == false) {
  566. toLogin();
  567. } else {
  568. uni.navigateTo({
  569. url: `/pages/groupbuying/${url}/index`
  570. })
  571. }
  572. },
  573. getWechatuserinfo () {
  574. //#ifdef H5
  575. Auth.isWeixin() && Auth.toAuth('snsapi_userinfo', '/pages/user/index');
  576. //#endif
  577. },
  578. // 记录会员访问
  579. setVisit () {
  580. // setVisit({
  581. // url: '/pages/user/index'
  582. // }).then(res => { })
  583. },
  584. // 打开授权
  585. openAuto () {
  586. toLogin();
  587. },
  588. // 授权回调
  589. onLoadFun () {
  590. this.getUserInfo();
  591. this.getMyMenus();
  592. this.setVisit();
  593. },
  594. Setting: function () {
  595. uni.openSetting({
  596. success: function (res) { }
  597. });
  598. },
  599. // 授权关闭
  600. authColse: function (e) {
  601. this.isShowAuth = e
  602. },
  603. // 绑定手机
  604. bindPhone () {
  605. uni.navigateTo({
  606. url: '/pages/users/user_phone/index'
  607. })
  608. },
  609. /**
  610. * 获取个人用户信息
  611. */
  612. getUserInfo: function () {
  613. let that = this;
  614. getUserInfo().then(res => {
  615. that.userInfo = res.data
  616. that.$store.commit("SETUID", res.data.userId);
  617. // that.orderMenu.forEach((item, index) => {
  618. // switch (item.title) {
  619. // case '待付款':
  620. // item.num = res.data.orderStatusNum.unpaid_count
  621. // break
  622. // case '待发货':
  623. // item.num = res.data.orderStatusNum.unshipped_count
  624. // break
  625. // case '待收货':
  626. // item.num = res.data.orderStatusNum.received_count
  627. // break
  628. // case '待评价':
  629. // item.num = res.data.orderStatusNum.evaluated_count
  630. // break
  631. // case '售后':
  632. // item.num = res.data.orderStatusNum.refunding_count
  633. // break
  634. // }
  635. // })
  636. uni.stopPullDownRefresh();
  637. });
  638. },
  639. //小程序授权api替换 getUserInfo
  640. getUserProfile () {
  641. toLogin();
  642. },
  643. /**
  644. *
  645. * 获取个人中心图标
  646. */
  647. switchTab (order) {
  648. this.orderMenu.forEach((item, index) => {
  649. switch (item.title) {
  650. case '待付款':
  651. item.img = order.dfk
  652. break
  653. case '待发货':
  654. item.img = order.dfh
  655. break
  656. case '待收货':
  657. item.img = order.dsh
  658. break
  659. case '待评价':
  660. item.img = order.dpj
  661. break
  662. case '售后':
  663. item.img = order.sh
  664. break
  665. }
  666. })
  667. },
  668. getMyMenus: function () {
  669. let that = this;
  670. // if (this.MyMenus.length) return;
  671. uni.request({
  672. url: 'api/mock/menu',
  673. success: res => {
  674. let storeMenu = []
  675. let myMenu = []
  676. res.data.routine_my_menus.forEach((el, index, arr) => {
  677. if (el.url == '/pages/admin/order/index' || el.url ==
  678. '/pages/admin/order_cancellation/index' || el.name ==
  679. this.$t(`客服接待`)) {
  680. storeMenu.push(el)
  681. } else {
  682. myMenu.push(el)
  683. }
  684. })
  685. this.member_style = Number(res.data.diy_data.value)
  686. this.my_banner_status = res.data.diy_data.my_banner_status
  687. let order01 = {
  688. dfk: 'icon-daifukuan',
  689. dfh: 'icon-daifahuo',
  690. dsh: 'icon-daishouhuo',
  691. dpj: 'icon-daipingjia',
  692. sh: 'icon-a-shouhoutuikuan'
  693. }
  694. let order02 = {
  695. dfk: 'icon-daifukuan-lan',
  696. dfh: 'icon-daifahuo-lan',
  697. dsh: 'icon-daishouhuo-lan',
  698. dpj: 'icon-daipingjia-lan',
  699. sh: 'icon-shouhou-tuikuan-lan'
  700. }
  701. let order03 = {
  702. dfk: 'icon-daifukuan-ju',
  703. dfh: 'icon-daifahuo-ju',
  704. dsh: 'icon-daishouhuo-ju',
  705. dpj: 'icon-daipingjia-ju',
  706. sh: 'icon-shouhou-tuikuan-ju'
  707. }
  708. let order04 = {
  709. dfk: 'icon-daifukuan-fen',
  710. dfh: 'icon-daifahuo-fen',
  711. dsh: 'icon-daishouhuo-fen',
  712. dpj: 'icon-daipingjia-fen',
  713. sh: 'icon-a-shouhoutuikuan-fen'
  714. }
  715. let order05 = {
  716. dfk: 'icon-daifukuan-lv',
  717. dfh: 'icon-daifahuo-lv',
  718. dsh: 'icon-daishouhuo-lv',
  719. dpj: 'icon-daipingjia-lv',
  720. sh: 'icon-shouhou-tuikuan-lv'
  721. }
  722. switch (res.data.diy_data.order_status) {
  723. case 1:
  724. this.switchTab(order01)
  725. break
  726. case 2:
  727. this.switchTab(order02)
  728. break
  729. case 3:
  730. this.switchTab(order03)
  731. break
  732. case 4:
  733. this.switchTab(order04)
  734. break
  735. case 5:
  736. this.switchTab(order05)
  737. break
  738. }
  739. that.$set(that, 'MyMenus', myMenu);
  740. that.$set(that, 'storeMenu', storeMenu);
  741. this.imgUrls = res.data.routine_my_banner
  742. this.routineContact = Number(res.data.routine_contact_type)
  743. }
  744. })
  745. },
  746. // 编辑页面
  747. goEdit () {
  748. if (this.isLogin == false) {
  749. toLogin();
  750. } else {
  751. uni.navigateTo({
  752. url: '/pages/users/user_info/index?currentRole=' + this.currentRole
  753. })
  754. }
  755. },
  756. goRouter (item) {
  757. var pages = getCurrentPages();
  758. var page = (pages[pages.length - 1]).$page.fullPath;
  759. if (item.url == page) return
  760. getApp().globalData.switchId = item.title
  761. uni.switchTab({
  762. url: item.url,
  763. fail (err) {
  764. uni.redirectTo({
  765. url: item.url
  766. })
  767. }
  768. })
  769. },
  770. getCopyRight () {
  771. const copyRight = uni.getStorageSync('copyRight')
  772. if (copyRight.copyrightImage) {
  773. this.copyRightPic = copyRight.copyrightImage
  774. }
  775. }
  776. }
  777. }
  778. </script>
  779. <style lang="scss">
  780. page,
  781. body {
  782. height: 100%;
  783. }
  784. .height {}
  785. .unBg {
  786. background-color: unset !important;
  787. .user-info {
  788. .info {
  789. .name {
  790. color: #333333 !important;
  791. font-weight: 600;
  792. }
  793. .num {
  794. color: #333 !important;
  795. .num-txt {
  796. height: 38rpx;
  797. background-color: rgba(51, 51, 51, 0.13);
  798. padding: 0 12rpx;
  799. border-radius: 16rpx;
  800. }
  801. }
  802. }
  803. }
  804. .num-wrapper {
  805. color: #333 !important;
  806. font-weight: 600;
  807. .num-item {
  808. .txt {
  809. color: rgba(51, 51, 51, 0.7) !important;
  810. }
  811. }
  812. }
  813. .message {
  814. .iconfont {
  815. color: #333 !important;
  816. }
  817. .num {
  818. color: #fff !important;
  819. background-color: var(--view-theme) !important;
  820. }
  821. }
  822. .setting {
  823. .iconfont {
  824. color: #333 !important;
  825. }
  826. }
  827. }
  828. .cardVipB {
  829. background-color: #343A48;
  830. width: 100%;
  831. height: 124rpx;
  832. border-radius: 16rpx 16rpx 0 0;
  833. padding: 22rpx 30rpx 0 30rpx;
  834. margin-top: 16px;
  835. .left-box {
  836. .small {
  837. color: #F8D5A8;
  838. font-size: 28rpx;
  839. margin-left: 18rpx;
  840. }
  841. .pictrue {
  842. width: 40rpx;
  843. height: 45rpx;
  844. image {
  845. width: 100%;
  846. height: 100%;
  847. }
  848. }
  849. }
  850. .btn {
  851. color: #BBBBBB;
  852. font-size: 26rpx;
  853. }
  854. .icon-xiangyou {
  855. margin-top: 6rpx;
  856. }
  857. }
  858. .cardVipA {
  859. position: absolute;
  860. // background: url('~@/static/images/member.png') no-repeat;
  861. background-size: 100% 100%;
  862. width: 750rpx;
  863. height: 84rpx;
  864. bottom: -2rpx;
  865. left: 0;
  866. padding: 0 56rpx 0 135rpx;
  867. .left-box {
  868. font-size: 26rpx;
  869. color: #905100;
  870. font-weight: 400;
  871. }
  872. .btn {
  873. color: #905100;
  874. font-weight: 400;
  875. font-size: 24rpx;
  876. }
  877. .iconfont {
  878. font-size: 20rpx;
  879. margin: 4rpx 0 0 4rpx;
  880. }
  881. }
  882. .new-users {
  883. display: flex;
  884. flex-direction: column;
  885. height: 100%;
  886. .sys-head {
  887. position: relative;
  888. width: 100%;
  889. // background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  890. .bg {
  891. position: absolute;
  892. left: 0;
  893. top: 0;
  894. width: 100%;
  895. height: 100%;
  896. background: var(--view-theme);
  897. background-size: 100% auto;
  898. background-position: left bottom;
  899. }
  900. .sys-title {
  901. z-index: 10;
  902. position: relative;
  903. height: 43px;
  904. text-align: left;
  905. line-height: 43px;
  906. font-size: 36rpx;
  907. color: rgba(17, 17, 17, 1);
  908. font-weight: bolder;
  909. padding-left: 36rpx;
  910. }
  911. }
  912. .head {
  913. // background: #fff;
  914. .user-card {
  915. position: relative;
  916. width: 100%;
  917. height: 180rpx;
  918. margin: 0 auto;
  919. background-image: linear-gradient(#FDF5F6, #FBF7F7);
  920. background-size: 100% auto;
  921. background-color: var(--view-theme);
  922. .user-info {
  923. z-index: 20;
  924. position: relative;
  925. display: flex;
  926. .headwear {
  927. position: absolute;
  928. right: -4rpx;
  929. top: -14rpx;
  930. width: 44rpx;
  931. height: 44rpx;
  932. image {
  933. width: 100%;
  934. height: 100%;
  935. }
  936. }
  937. .live {
  938. width: 28rpx;
  939. height: 28rpx;
  940. margin-left: 20rpx;
  941. }
  942. .bntImg {
  943. width: 120rpx;
  944. height: 120rpx;
  945. border-radius: 50%;
  946. text-align: center;
  947. line-height: 120rpx;
  948. background-color: unset;
  949. position: relative;
  950. .avatarName {
  951. font-size: 16rpx;
  952. color: #fff;
  953. text-align: center;
  954. background-color: rgba(0, 0, 0, 0.6);
  955. height: 37rpx;
  956. line-height: 37rpx;
  957. position: absolute;
  958. bottom: 0;
  959. left: 0;
  960. width: 100%;
  961. }
  962. }
  963. .avatar-box {
  964. position: relative;
  965. display: flex;
  966. align-items: center;
  967. justify-content: center;
  968. width: 150rpx;
  969. height: 150rpx;
  970. border-radius: 50%;
  971. &.on {
  972. .avatar {
  973. border: 2px solid #FFAC65;
  974. border-radius: 50%;
  975. box-sizing: border-box;
  976. }
  977. }
  978. }
  979. .avatar {
  980. position: relative;
  981. width: 150rpx;
  982. height: 150rpx;
  983. border-radius: 50%;
  984. }
  985. .info {
  986. max-width: 50%;
  987. flex: 1;
  988. display: flex;
  989. flex-direction: column;
  990. justify-content: center;
  991. margin-left: 20rpx;
  992. padding: 15rpx 0;
  993. .name {
  994. display: flex;
  995. align-items: center;
  996. font-size: 32rpx;
  997. margin-top: 30rpx;
  998. font-weight: bolder;
  999. color: #333333;
  1000. .vip {
  1001. margin-left: 10rpx;
  1002. image {
  1003. width: 78rpx;
  1004. height: 30rpx;
  1005. display: block;
  1006. }
  1007. }
  1008. }
  1009. .num {
  1010. display: flex;
  1011. align-items: center;
  1012. margin-top: 20rpx;
  1013. font-size: 26rpx;
  1014. color: rgba(255, 255, 255, 0.6);
  1015. image {
  1016. width: 22rpx;
  1017. height: 23rpx;
  1018. margin-left: 20rpx;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. .message {
  1024. align-self: flex-start;
  1025. position: relative;
  1026. display: flex;
  1027. margin-right: 20rpx;
  1028. height: 150rpx;
  1029. align-items: center;
  1030. .num {
  1031. position: absolute;
  1032. top: -8rpx;
  1033. left: 18rpx;
  1034. padding: 0 6rpx;
  1035. height: 28rpx;
  1036. border-radius: 12rpx;
  1037. background-color: #fff;
  1038. font-size: 18rpx;
  1039. line-height: 28rpx;
  1040. text-align: center;
  1041. color: var(--view-theme);
  1042. }
  1043. .iconfont {
  1044. font-size: 40rpx;
  1045. color: #fff;
  1046. }
  1047. }
  1048. .num-wrapper {
  1049. z-index: 30;
  1050. position: relative;
  1051. display: flex;
  1052. align-items: center;
  1053. justify-content: space-between;
  1054. margin-top: 22rpx;
  1055. // padding: 0 47rpx;
  1056. color: #fff;
  1057. .num-item {
  1058. width: 33.33%;
  1059. text-align: center;
  1060. &~.num-item {
  1061. position: relative;
  1062. &:before {
  1063. content: '';
  1064. position: absolute;
  1065. width: 1rpx;
  1066. height: 28rpx;
  1067. top: 50%;
  1068. margin-top: -14rpx;
  1069. background-color: rgba(255, 255, 255, 0.4);
  1070. left: 0;
  1071. }
  1072. }
  1073. .num {
  1074. font-size: 42rpx;
  1075. font-weight: bold;
  1076. }
  1077. .txt {
  1078. margin-top: 8rpx;
  1079. font-size: 26rpx;
  1080. color: rgba(255, 255, 255, 0.6);
  1081. }
  1082. }
  1083. }
  1084. .sign {
  1085. z-index: 200;
  1086. position: absolute;
  1087. right: -12rpx;
  1088. top: 80rpx;
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: center;
  1092. width: 120rpx;
  1093. height: 60rpx;
  1094. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1095. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1096. color: #282828;
  1097. font-size: 28rpx;
  1098. font-weight: bold;
  1099. }
  1100. }
  1101. .group-buying-data2 {
  1102. position: relative;
  1103. width: 100%;
  1104. height: 140rpx;
  1105. padding: 40rpx;
  1106. margin: 0 auto;
  1107. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1108. background-size: 100% auto;
  1109. background-color: var(--view-theme);
  1110. .group-title-2 {
  1111. display: flex;
  1112. justify-content: space-between;
  1113. font-size: 32rpx;
  1114. font-weight: 500;
  1115. color: #B22338;
  1116. line-height: 44rpx;
  1117. height: 44rpx;
  1118. }
  1119. }
  1120. .group-buying-data {
  1121. position: relative;
  1122. width: 100%;
  1123. height: 240rpx;
  1124. padding: 40rpx;
  1125. margin: 0 auto;
  1126. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1127. background-size: 100% auto;
  1128. background-color: var(--view-theme);
  1129. .group-title {
  1130. font-size: 32rpx;
  1131. font-weight: 500;
  1132. color: #B22338;
  1133. line-height: 44rpx;
  1134. height: 44rpx;
  1135. }
  1136. .group-content {
  1137. display: flex;
  1138. .group-content-l {
  1139. text-align: center;
  1140. flex: 1;
  1141. border-color: #333333;
  1142. border-right: 1px solid dashed;
  1143. }
  1144. .group-content-r {
  1145. text-align: center;
  1146. flex: 1
  1147. }
  1148. .content-num {
  1149. margin-top: 20rpx;
  1150. height: 48rpx;
  1151. font-size: 40rpx;
  1152. font-weight: bold;
  1153. color: #B22338;
  1154. line-height: 48rpx;
  1155. }
  1156. .content-info {
  1157. margin-top: 20rpx;
  1158. text-align: center;
  1159. width: 100%;
  1160. height: 36rpx;
  1161. font-size: 24rpx;
  1162. font-weight: 400;
  1163. color: #CF7986;
  1164. line-height: 36rpx;
  1165. }
  1166. }
  1167. }
  1168. .order-wrapper {
  1169. margin-top: 30rpx;
  1170. background: #fff;
  1171. border-radius: 16rpx;
  1172. position: relative;
  1173. .order-hd {
  1174. justify-content: space-between;
  1175. padding: 30rpx 20rpx 10rpx 30rpx;
  1176. margin-top: 25rpx;
  1177. font-size: 30rpx;
  1178. color: #282828;
  1179. .left {
  1180. font-weight: bold;
  1181. }
  1182. .right {
  1183. display: flex;
  1184. align-items: center;
  1185. color: #666666;
  1186. font-size: 26rpx;
  1187. .icon-xiangyou {
  1188. margin-left: 5rpx;
  1189. font-size: 26rpx;
  1190. }
  1191. }
  1192. }
  1193. .order-bd {
  1194. display: flex;
  1195. padding: 0 0;
  1196. .order-item {
  1197. display: flex;
  1198. flex-direction: column;
  1199. justify-content: center;
  1200. align-items: center;
  1201. flex: 1;
  1202. height: 140rpx;
  1203. .pic {
  1204. position: relative;
  1205. text-align: center;
  1206. .iconfont {
  1207. font-size: 48rpx;
  1208. color: var(--view-theme);
  1209. }
  1210. image {
  1211. width: 70rpx;
  1212. height: 70rpx;
  1213. }
  1214. }
  1215. .txt {
  1216. margin-top: 6rpx;
  1217. font-size: 26rpx;
  1218. color: #333;
  1219. }
  1220. }
  1221. }
  1222. }
  1223. }
  1224. .slider-wrapper {
  1225. margin: 20rpx 30rpx;
  1226. height: 130rpx;
  1227. swiper,
  1228. swiper-item {
  1229. height: 100%;
  1230. }
  1231. image {
  1232. width: 100%;
  1233. height: 130rpx;
  1234. border-radius: 16rpx;
  1235. }
  1236. }
  1237. .user-menus {
  1238. background-color: #fff;
  1239. margin: 0 30rpx;
  1240. border-radius: 16rpx;
  1241. .menu-title {
  1242. padding: 30rpx 30rpx 40rpx;
  1243. font-size: 30rpx;
  1244. color: #282828;
  1245. font-weight: bold;
  1246. }
  1247. .list-box {
  1248. display: flex;
  1249. flex-wrap: wrap;
  1250. padding: 0;
  1251. }
  1252. .item {
  1253. position: relative;
  1254. display: flex;
  1255. align-items: center;
  1256. justify-content: space-between;
  1257. flex-direction: column;
  1258. width: 32%;
  1259. margin-bottom: 47rpx;
  1260. font-size: 26rpx;
  1261. color: #333333;
  1262. image {
  1263. width: 52rpx;
  1264. height: 52rpx;
  1265. margin-bottom: 18rpx;
  1266. }
  1267. &:last-child::before {
  1268. display: none;
  1269. }
  1270. }
  1271. button {
  1272. font-size: 28rpx;
  1273. }
  1274. }
  1275. .phone {
  1276. color: #fff;
  1277. background-color: #CCC;
  1278. border-radius: 15px;
  1279. width: max-content;
  1280. padding: 0 10px;
  1281. }
  1282. .order-status-num {
  1283. min-width: 12rpx;
  1284. background-color: #fff;
  1285. color: var(--view-theme);
  1286. border-radius: 15px;
  1287. position: absolute;
  1288. right: -14rpx;
  1289. top: -15rpx;
  1290. font-size: 20rpx;
  1291. padding: 0 8rpx;
  1292. border: 1px solid var(--view-theme);
  1293. }
  1294. .support {
  1295. width: 219rpx;
  1296. height: 74rpx;
  1297. margin: 54rpx auto;
  1298. display: block;
  1299. }
  1300. }
  1301. .card-vip {
  1302. display: flex;
  1303. align-items: center;
  1304. justify-content: space-between;
  1305. position: relative;
  1306. width: 690rpx;
  1307. height: 134rpx;
  1308. margin: -72rpx auto 0;
  1309. // background: url('~@/static/images/user_vip.png');
  1310. background-size: cover;
  1311. padding-left: 118rpx;
  1312. padding-right: 34rpx;
  1313. .left-box {
  1314. font-size: 24rpx;
  1315. color: #AE5A2A;
  1316. .big {
  1317. font-size: 28rpx;
  1318. }
  1319. .small {
  1320. opacity: 0.8;
  1321. margin-top: 10rpx;
  1322. }
  1323. }
  1324. .btn {
  1325. height: 52rpx;
  1326. line-height: 52rpx;
  1327. padding: 0 10rpx;
  1328. text-align: center;
  1329. background: #fff;
  1330. border-radius: 28rpx;
  1331. font-size: 26rpx;
  1332. color: #AE5A2A;
  1333. }
  1334. }
  1335. .setting {
  1336. margin-top: 15rpx;
  1337. margin-left: 15rpx;
  1338. color: #fff;
  1339. .iconfont {
  1340. font-size: 40rpx;
  1341. }
  1342. }
  1343. .page-footer {
  1344. position: fixed;
  1345. bottom: 0;
  1346. z-index: 30;
  1347. display: flex;
  1348. align-items: center;
  1349. justify-content: space-around;
  1350. width: 100%;
  1351. height: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1352. height: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1353. box-sizing: border-box;
  1354. border-top: solid 1rpx #F3F3F3;
  1355. background-color: #fff;
  1356. box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
  1357. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  1358. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  1359. .foot-item {
  1360. display: flex;
  1361. width: max-content;
  1362. align-items: center;
  1363. justify-content: center;
  1364. flex-direction: column;
  1365. position: relative;
  1366. .count-num {
  1367. position: absolute;
  1368. display: flex;
  1369. justify-content: center;
  1370. align-items: center;
  1371. width: 40rpx;
  1372. height: 40rpx;
  1373. top: 0rpx;
  1374. right: -15rpx;
  1375. color: #fff;
  1376. font-size: 20rpx;
  1377. background-color: #FD502F;
  1378. border-radius: 50%;
  1379. padding: 4rpx;
  1380. }
  1381. }
  1382. .foot-item image {
  1383. height: 50rpx;
  1384. width: 50rpx;
  1385. text-align: center;
  1386. margin: 0 auto;
  1387. }
  1388. .foot-item .txt {
  1389. font-size: 24rpx;
  1390. &.active {}
  1391. }
  1392. }
  1393. .new-users {
  1394. padding-bottom: 0;
  1395. padding-bottom: constant(safe-area-inset-bottom);
  1396. padding-bottom: env(safe-area-inset-bottom);
  1397. }
  1398. .group-buying-btn {
  1399. margin-top: 20rpx;
  1400. display: flex;
  1401. width: 100%;
  1402. height: 110rpx;
  1403. .image-text_21 {
  1404. flex: 1;
  1405. image {
  1406. width: 100%;
  1407. height: 100%;
  1408. }
  1409. }
  1410. }
  1411. .icon_1 {
  1412. width: 14px;
  1413. height: 14px;
  1414. margin: 3px 0 3px 0;
  1415. }
  1416. .text-group_1 {
  1417. overflow-wrap: break-word;
  1418. color: rgba(178, 35, 56, 1);
  1419. font-size: 14px;
  1420. font-family: PingFangSC-Semibold;
  1421. font-weight: 600;
  1422. text-align: left;
  1423. white-space: nowrap;
  1424. line-height: 20px;
  1425. }
  1426. .image-text_22 {
  1427. width: 78px;
  1428. }
  1429. .icon_10 {
  1430. width: 14px;
  1431. height: 14px;
  1432. margin: 3px 0 3px 0;
  1433. }
  1434. .text-group_8 {
  1435. overflow-wrap: break-word;
  1436. color: rgba(178, 35, 56, 1);
  1437. font-size: 14px;
  1438. font-family: PingFangSC-Semibold;
  1439. font-weight: 600;
  1440. text-align: left;
  1441. white-space: nowrap;
  1442. line-height: 20px;
  1443. }
  1444. .leader {
  1445. width: 96rpx;
  1446. height: 40rpx;
  1447. background: #F1F8E5;
  1448. color: #75BE00;
  1449. border-radius: 22rpx;
  1450. text-align: center;
  1451. border: 2rpx solid #75BE00;
  1452. }
  1453. .employees {
  1454. width: 96rpx;
  1455. height: 40rpx;
  1456. background: rgb(247, 233, 235);
  1457. border-radius: 22rpx;
  1458. color: rgb(174, 33, 56);
  1459. text-align: center;
  1460. border: 2rpx solid rgb(174, 33, 56);
  1461. }
  1462. .tool_list,
  1463. .footer {
  1464. background: #fff;
  1465. border-radius: 16rpx;
  1466. margin-top: 20rpx;
  1467. }
  1468. .footer {
  1469. height: 100rpx;
  1470. button {
  1471. height: 100%;
  1472. font-size: 28rpx;
  1473. font-weight: 400;
  1474. color: #999999;
  1475. line-height: 100rpx;
  1476. }
  1477. }
  1478. /deep/ .tool_list .u-line,
  1479. .my_order .u-line {
  1480. display: none !important;
  1481. }
  1482. .my_order{
  1483. }
  1484. .my_order_text{
  1485. font-weight: bold;
  1486. }
  1487. .u-slot-title {
  1488. text {
  1489. vertical-align: text-bottom;
  1490. line-height: 60rpx;
  1491. }
  1492. image {
  1493. margin-right: 20rpx;
  1494. transform: translateY(10rpx);
  1495. width: 60rpx;
  1496. height: 60rpx;
  1497. }
  1498. }
  1499. .origin{
  1500. margin-top: 0 !important;
  1501. }
  1502. .order_menu_title{
  1503. color: #666666 !important;
  1504. }
  1505. </style>