index.vue 39 KB

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