index.vue 38 KB

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