index.vue 39 KB

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