index.vue 37 KB

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