index.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799
  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="tuangou" style="margin-right: 30rpx;">
  115. <image class="quhuohexioaIcon" referrerpolicy="no-referrer"
  116. src="/static/image/quhuohexiao@2x.png" />
  117. <text class="quhuohexioa">取货核销</text>
  118. </view>
  119. <view @click="goGroupbuying('publish_group')" class="tuangou">
  120. <image class="quhuohexioaIcon" referrerpolicy="no-referrer" src="/static/image/fabutuangou@2x.png" />
  121. <text class="quhuohexioa">发布团购</text>
  122. </view>
  123. </view>
  124. <view class="order-wrapper" :class="userInfo.svip_open ? '' : 'height'">
  125. <view class="order-bd">
  126. <block v-for="(item, index) in orderMenu" :key="index">
  127. <navigator class="order-item" hover-class="none" :url="item.url">
  128. <view class="pic">
  129. <image :src="item.src" mode=""></image>
  130. </view>
  131. <view class="txt">{{ $t(item.title) }}</view>
  132. </navigator>
  133. </block>
  134. </view>
  135. </view>
  136. <view class="tool_list">
  137. <u-cell-group>
  138. <navigator url="/pages/columnGoods/HotNewGoods/feedback" hover-class="none">
  139. <u-cell isLink>
  140. <view slot="title" class="u-slot-title">
  141. <image src="/static/image/jianyi.png" mode=""></image>
  142. <text class="u-cell-text">建议与反馈</text>
  143. </view>
  144. </u-cell>
  145. </navigator>
  146. <u-cell isLink>
  147. <view slot="title" class="u-slot-title" @click="goMyMessage">
  148. <image src="/static/image/wodexiaoxi.png" mode=""></image>
  149. <text class="u-cell-text">我的消息</text>
  150. </view>
  151. </u-cell>
  152. <navigator url="/pages/points_mall/user_address" hover-class="none">
  153. <u-cell isLink>
  154. <view slot="title" class="u-slot-title">
  155. <image src="/static/images/addressIcon.png" mode=""></image>
  156. <text class="u-cell-text">地址管理</text>
  157. </view>
  158. </u-cell>
  159. </navigator>
  160. <navigator url="/pages/groupbuying/aboutUs/index" hover-class="none">
  161. <u-cell isLink>
  162. <view slot="title" class="u-slot-title">
  163. <image src="/static/image/women.png" mode=""></image>
  164. <text class="u-cell-text">关于我们</text>
  165. </view>
  166. </u-cell>
  167. </navigator>
  168. <navigator url="/pages/users/user_info/index" hover-class="none">
  169. <u-cell isLink>
  170. <view slot="title" class="u-slot-title">
  171. <image src="/static/image/shezhi.png" mode=""></image>
  172. <text class="u-cell-text">设置</text>
  173. </view>
  174. </u-cell>
  175. </navigator>
  176. </u-cell-group>
  177. </view>
  178. <view class="footer">
  179. <button @click="outLogin">
  180. 退出登录
  181. </button>
  182. </view>
  183. </view>
  184. <view class="head" v-if="currentRole === 'employees'" style="padding: 30rpx;padding-top: 0;">
  185. <view class="user-card" :class="member_style == 3 ? 'unBg' : ''">
  186. <view class="bg"></view>
  187. <view class="user-info">
  188. <view>
  189. <!-- 注释这个是加的bnt -->
  190. <!-- #ifdef H5 -->
  191. <button class="bntImg" v-if="userInfo.is_complete == 0 && isWeixin" @click="getWechatuserinfo">
  192. <image class="avatar" src='/static/images/f.png'></image>
  193. <view class="avatarName">{{ $t('获取头像') }}</view>
  194. </button>
  195. <!-- #endif -->
  196. <!-- #ifdef MP -->
  197. <button class="bntImg" v-if="userInfo.is_complete == 0" @tap="getUserProfile">
  198. <image class="avatar" src='/static/images/f.png'></image>
  199. <view class="avatarName">{{ $t('获取头像') }}</view>
  200. </button>
  201. <!-- #endif -->
  202. <!-- #ifndef APP-PLUS -->
  203. <view v-else class="avatar-box" :class="{ on: userInfo.is_money_level }">
  204. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()">
  205. </image>
  206. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  207. </image>
  208. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  209. <image src="/static/images/headwear.png"></image>
  210. </view>
  211. </view>
  212. <!-- #endif -->
  213. <!-- #ifdef APP-PLUS -->
  214. <view class="avatar-box" :class="{ on: userInfo.is_money_level }">
  215. <image class="avatar" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()">
  216. </image>
  217. <image v-else class="avatar" src="/static/images/f.png" mode="" @click="goEdit()">
  218. </image>
  219. <view class="headwear" v-if="userInfo.is_money_level && userInfo.svip_open">
  220. <image src="/static/images/headwear.png"></image>
  221. </view>
  222. </view>
  223. <!-- #endif -->
  224. </view>
  225. <view class="info">
  226. <!-- #ifdef MP -->
  227. <view class="name" v-if="!userInfo.id" @click="openAuto"
  228. style="height: 100%; display: flex; align-items: center;">
  229. {{ $t('请点击授权') }}
  230. </view>
  231. <!-- #endif -->
  232. <!-- #ifdef H5 -->
  233. <view class="name" v-if="!userInfo.id && isWeixin" @click="openAuto"
  234. style="height: 100%; display: flex; align-items: center;">
  235. {{ $t('请点击授权') }}
  236. </view>
  237. <!-- #endif -->
  238. <view class="name" v-if="userInfo.id">
  239. {{ userInfo.name }}
  240. <image class="live" :src="userInfo.vip_icon" v-if="userInfo.vip_icon"></image>
  241. <view class="vip" v-if="userInfo.is_money_level > 0 && userInfo.svip_open">
  242. <image src="/static/images/svip.png"></image>
  243. </view>
  244. </view>
  245. <view class="num" v-if="userInfo.username" @click="goEdit()">
  246. <view class="num-txt">
  247. <view class="employees">团员</view>
  248. </view>
  249. <!-- <view class="icon">
  250. <image src="/static/images/edit.png" mode=""></image>
  251. </view> -->
  252. </view>
  253. <!-- <view class="phone" v-if="!userInfo.username && isLogin" @tap="bindPhone">
  254. {{$t('绑定手机号')}}</view> -->
  255. </view>
  256. <view v-if="userInfo.livingHall === 1" class="message" style=" white-space: nowrap;">
  257. <text style=" color: rgb(174, 33, 56);margin-right: 20rpx;">切换团长</text>
  258. <u-switch v-model="roleSwitch" activeColor="#75BE00" size="16" @change="changeRole"></u-switch>
  259. </view>
  260. </view>
  261. </view>
  262. <navigator url="/pages/groupbuying/promotion/index" hover-class="none">
  263. <!-- <view class="group-buying-data2">
  264. <view class="group-title-2">
  265. <view>
  266. 累计分享奖励(元) &nbsp; ¥{{ statistics.allAccounts || 0 }}
  267. </view>
  268. <view>
  269. 查看详情 >
  270. </view>
  271. </view>
  272. </view> -->
  273. <view class="group-buying-data3">
  274. <u-cell :value="'查看详情'" isLink :border="false">
  275. <view slot="title" class="u-slot-title">
  276. <text class="u-cell-text my_order_text">累计分享奖励(元) &nbsp; ¥{{ statistics.allAccounts || 0 }}</text>
  277. </view>
  278. </u-cell>
  279. </view>
  280. </navigator>
  281. <view class="my_order" @click="goOrderIndex">
  282. <u-cell value="全部订单" isLink>
  283. <view slot="title" class="u-slot-title">
  284. <text class="u-cell-text my_order_text">我的订单</text>
  285. </view>
  286. </u-cell>
  287. </view>
  288. <view class="order-wrapper origin">
  289. <view class="order-bd">
  290. <block v-for="(item, index) in orderMenuOrigin" :key="index">
  291. <view class="order-item" hover-class="none" @click="goRouter(item)">
  292. <view class="pic">
  293. <image :src="item.img" mode=""></image>
  294. <!-- <text class="iconfont" :class="item.img"></text>-->
  295. </view>
  296. <view class="txt order_menu_title">{{ item.title }}</view>
  297. </view>
  298. </block>
  299. </view>
  300. </view>
  301. <view class="tool_list">
  302. <u-cell-group>
  303. <navigator url="/pages/columnGoods/HotNewGoods/feedback" hover-class="none">
  304. <u-cell isLink>
  305. <view slot="title" class="u-slot-title">
  306. <image src="/static/image/jianyi.png" mode=""></image>
  307. <text class="u-cell-text">建议与反馈</text>
  308. </view>
  309. </u-cell>
  310. </navigator>
  311. <u-cell isLink>
  312. <view slot="title" class="u-slot-title" @click="goMyMessage">
  313. <image src="/static/image/wodexiaoxi.png" mode=""></image>
  314. <text class="u-cell-text">我的消息</text>
  315. </view>
  316. </u-cell>
  317. <navigator url="/pages/points_mall/user_address" hover-class="none">
  318. <u-cell isLink>
  319. <view slot="title" class="u-slot-title">
  320. <image src="/static/images/addressIcon.png" mode=""></image>
  321. <text class="u-cell-text">地址管理</text>
  322. </view>
  323. </u-cell>
  324. </navigator>
  325. <navigator url="/pages/groupbuying/aboutUs/index" hover-class="none">
  326. <u-cell isLink>
  327. <view slot="title" class="u-slot-title">
  328. <image src="/static/image/women.png" mode=""></image>
  329. <text class="u-cell-text">关于我们</text>
  330. </view>
  331. </u-cell>
  332. </navigator>
  333. <navigator url="/pages/users/user_info/index" hover-class="none">
  334. <u-cell isLink>
  335. <view slot="title" class="u-slot-title">
  336. <image src="/static/image/shezhi.png" mode=""></image>
  337. <text class="u-cell-text">设置</text>
  338. </view>
  339. </u-cell>
  340. </navigator>
  341. </u-cell-group>
  342. </view>
  343. <view class="footer">
  344. <button @click="outLogin">
  345. 退出登录
  346. </button>
  347. </view>
  348. </view>
  349. <my-swiper :type=4></my-swiper>
  350. </scroll-view>
  351. </view>
  352. </view>
  353. </template>
  354. <script>
  355. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  356. import {
  357. getMenuList,
  358. getUserInfo,
  359. getLogout,
  360. setVisit,
  361. updateUserInfo
  362. } from '@/api/user.js';
  363. import { commissionStatistics, grouponMngStatis } from '@/api/groupon.js'
  364. import {
  365. wechatAuthV2,
  366. getNavigation,
  367. silenceAuth
  368. } from '@/api/public.js'
  369. import {
  370. toLogin
  371. } from '@/libs/login.js';
  372. import {
  373. mapState,
  374. mapGetters,
  375. mapMutations
  376. } from "vuex";
  377. // #ifdef H5
  378. import Auth from '@/libs/wechat';
  379. // #endif
  380. const app = getApp();
  381. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  382. import Routine from '@/libs/routine';
  383. import colors from '@/mixins/color';
  384. import {
  385. getCustomer
  386. } from '@/utils/index.js'
  387. export default {
  388. components: {
  389. },
  390. computed: {
  391. ...mapGetters({
  392. cartNum: 'cartNum',
  393. isLogin: 'isLogin',
  394. newCurrentRole: 'newCurrentRole'
  395. })
  396. },
  397. filters: {
  398. coundTime (val) {
  399. var setTime = val * 1000
  400. var nowTime = new Date()
  401. var rest = setTime - nowTime.getTime()
  402. var day = parseInt(rest / (60 * 60 * 24 * 1000))
  403. // var hour = parseInt(rest/(60*60*1000)%24) //小时
  404. return day + this.$t('day')
  405. },
  406. dateFormat: function (value) {
  407. return dayjs(value * 1000).format('YYYY-MM-DD');
  408. }
  409. },
  410. mixins: [colors],
  411. data () {
  412. return {
  413. statistics: {},
  414. grouponStatis: {},
  415. roleSwitch: false,
  416. currentRole: 'employees',
  417. storeMenu: [], // 商家管理
  418. orderMenu: [{
  419. img: 'icon-daifukuan',
  420. src: '/static/image/scan@2x.png',
  421. title: '到货核销',
  422. url: '/pages/groupbuying/arrival_verification_list/index?status=1'
  423. },
  424. // {
  425. // img: 'icon-daifahuo',
  426. // src: 'http://www.gzzzyd.com/groupon/regiment/01_自提点@2x.png',
  427. // title: '自提点管理',
  428. // url: '/pages/goods/order_list/index?status=2'
  429. // },
  430. {
  431. img: 'icon-daishouhuo',
  432. src: '/static/image/tuangou@2x.png',
  433. title: '团购管理',
  434. url: '/pages/groupbuying/groupbuying_order_list/index?status=3'
  435. },
  436. {
  437. img: 'icon-daipingjia',
  438. src: '/static/image/dingdan@2x.png',
  439. title: '订单管理',
  440. url: '/pages/goods/leader_order_list/index?status=4'
  441. }
  442. ],
  443. orderMenuOrigin: [{
  444. img: '/static/image/daifukuan@2x.png',
  445. title: '待付款',
  446. url: '/pages/order/index?status=1'
  447. },
  448. {
  449. img: '/static/image/daishouhuo@2x.png',
  450. title: '待提货',
  451. url: '/pages/order/index?status=2'
  452. },
  453. {
  454. img: '/static/image/yiwancheng@2x.png',
  455. title: '已完成',
  456. url: '/pages/order/index?status=3'
  457. },
  458. {
  459. img: '/static/image/shouhou@2x.png',
  460. title: '售后',
  461. url: '/pages/order/index?status=8'
  462. },
  463. ],
  464. imgUrls: [],
  465. autoplay: true,
  466. circular: true,
  467. interval: 3000,
  468. duration: 500,
  469. isAuto: false, //没有授权的不会自动授权
  470. isShowAuth: false, //是否隐藏授权
  471. orderStatusNum: {},
  472. userInfo: {},
  473. MyMenus: [],
  474. sysHeight: sysHeight,
  475. mpHeight: 0,
  476. showStatus: 1,
  477. newData: {},
  478. activeRouter: '',
  479. // #ifdef H5 || MP
  480. pageHeight: '100%',
  481. routineContact: 0,
  482. // #endif
  483. // #ifdef APP-PLUS
  484. pageHeight: app.globalData.windowHeight,
  485. // #endif
  486. // #ifdef H5
  487. isWeixin: Auth.isWeixin(),
  488. //#endif
  489. footerSee: false,
  490. member_style: 1,
  491. my_banner_status: 1,
  492. is_diy: uni.getStorageSync('is_diy'),
  493. copyRightPic: '/static/images/support.png', //版权图片
  494. loginType: 'h5', //app.globalData.loginType
  495. }
  496. },
  497. onLoad (option) {
  498. let that = this;
  499. },
  500. onReady () {
  501. let self = this
  502. // #ifdef MP
  503. let info = uni.createSelectorQuery().select(".sys-head");
  504. info.boundingClientRect(function (data) { //data - 各种参数
  505. self.mpHeight = data.height
  506. }).exec()
  507. // #endif
  508. },
  509. onShow: function () {
  510. if (this.$store.getters.isLogin) {
  511. this.commissionStatistics();
  512. }
  513. this.currentRole = this.$store.getters.newCurrentRole;
  514. console.log(this.newCurrentRole);
  515. this.grouponMngStatis();
  516. let that = this;
  517. // #ifdef APP-PLUS
  518. uni.getSystemInfo({
  519. success: function (res) {
  520. that.pageHeight = res.windowHeight + 'px'
  521. }
  522. });
  523. // #endif
  524. if (that.isLogin) {
  525. this.getUserInfo();
  526. this.getMyMenus();
  527. this.setVisit();
  528. };
  529. this.getCopyRight();
  530. },
  531. onPullDownRefresh () {
  532. this.onLoadFun();
  533. },
  534. methods: {
  535. ...mapMutations(["setNewCurrentRole"]),
  536. goOrderIndex () {
  537. // uni.switchTab({
  538. // url:'/pages/order/index'
  539. // })
  540. let item = {
  541. img: 'http://www.gzzzyd.com/groupon/order/待付款@2x.png',
  542. title: '全部',
  543. url: '/pages/order/index?status=0'
  544. };
  545. var pages = getCurrentPages();
  546. var page = (pages[pages.length - 1]).$page.fullPath;
  547. if (item.url == page) return
  548. getApp().globalData.switchId = item.title
  549. uni.switchTab({
  550. url: item.url,
  551. fail (err) {
  552. uni.redirectTo({
  553. url: item.url
  554. })
  555. }
  556. })
  557. },
  558. goMyMessage () {
  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. font-family: STYuanti-SC-Regular, STYuanti-SC;
  942. z-index: 10;
  943. position: relative;
  944. height: 43px;
  945. text-align: left;
  946. line-height: 43px;
  947. font-size: 36rpx;
  948. color: rgba(17, 17, 17, 1);
  949. font-weight: 400;
  950. padding-left: 36rpx;
  951. color: #333333;
  952. }
  953. }
  954. .head {
  955. // background: #fff;
  956. .user-card {
  957. position: relative;
  958. width: 100%;
  959. height: 180rpx;
  960. margin: 0 auto;
  961. background-image: linear-gradient(#FDF5F6, #FBF7F7);
  962. background-size: 100% auto;
  963. background-color: var(--view-theme);
  964. .user-info {
  965. z-index: 20;
  966. position: relative;
  967. display: flex;
  968. .headwear {
  969. position: absolute;
  970. right: -4rpx;
  971. top: -14rpx;
  972. width: 44rpx;
  973. height: 44rpx;
  974. image {
  975. width: 100%;
  976. height: 100%;
  977. }
  978. }
  979. .live {
  980. width: 28rpx;
  981. height: 28rpx;
  982. margin-left: 20rpx;
  983. }
  984. .bntImg {
  985. width: 120rpx;
  986. height: 120rpx;
  987. border-radius: 50%;
  988. text-align: center;
  989. line-height: 120rpx;
  990. background-color: unset;
  991. position: relative;
  992. .avatarName {
  993. font-size: 16rpx;
  994. color: #fff;
  995. text-align: center;
  996. background-color: rgba(0, 0, 0, 0.6);
  997. height: 37rpx;
  998. line-height: 37rpx;
  999. position: absolute;
  1000. bottom: 0;
  1001. left: 0;
  1002. width: 100%;
  1003. }
  1004. }
  1005. .avatar-box {
  1006. position: relative;
  1007. display: flex;
  1008. align-items: center;
  1009. justify-content: center;
  1010. width: 150rpx;
  1011. height: 150rpx;
  1012. border-radius: 50%;
  1013. &.on {
  1014. .avatar {
  1015. border: 2px solid #FFAC65;
  1016. border-radius: 50%;
  1017. box-sizing: border-box;
  1018. }
  1019. }
  1020. }
  1021. .avatar {
  1022. position: relative;
  1023. width: 150rpx;
  1024. height: 150rpx;
  1025. border-radius: 50%;
  1026. }
  1027. .info {
  1028. max-width: 50%;
  1029. flex: 1;
  1030. display: flex;
  1031. flex-direction: column;
  1032. justify-content: center;
  1033. margin-left: 20rpx;
  1034. padding: 15rpx 0;
  1035. .name {
  1036. display: flex;
  1037. align-items: center;
  1038. font-size: 32rpx;
  1039. margin-top: 10rpx;
  1040. font-weight: bolder;
  1041. color: #333333;
  1042. .vip {
  1043. margin-left: 10rpx;
  1044. image {
  1045. width: 78rpx;
  1046. height: 30rpx;
  1047. display: block;
  1048. }
  1049. }
  1050. }
  1051. .num {
  1052. display: flex;
  1053. align-items: center;
  1054. margin-top: 10rpx;
  1055. font-size: 22rpx;
  1056. line-height: 36rpx;
  1057. color: rgba(255, 255, 255, 0.6);
  1058. image {
  1059. width: 22rpx;
  1060. height: 23rpx;
  1061. margin-left: 20rpx;
  1062. }
  1063. }
  1064. }
  1065. }
  1066. .message {
  1067. align-self: flex-start;
  1068. position: relative;
  1069. display: flex;
  1070. margin-right: 20rpx;
  1071. height: 150rpx;
  1072. align-items: center;
  1073. .num {
  1074. position: absolute;
  1075. top: -8rpx;
  1076. left: 18rpx;
  1077. padding: 0 6rpx;
  1078. height: 28rpx;
  1079. border-radius: 12rpx;
  1080. background-color: #fff;
  1081. font-size: 18rpx;
  1082. line-height: 28rpx;
  1083. text-align: center;
  1084. color: var(--view-theme);
  1085. }
  1086. .iconfont {
  1087. font-size: 40rpx;
  1088. color: #fff;
  1089. }
  1090. }
  1091. .num-wrapper {
  1092. z-index: 30;
  1093. position: relative;
  1094. display: flex;
  1095. align-items: center;
  1096. justify-content: space-between;
  1097. margin-top: 22rpx;
  1098. // padding: 0 47rpx;
  1099. color: #fff;
  1100. .num-item {
  1101. width: 33.33%;
  1102. text-align: center;
  1103. &~.num-item {
  1104. position: relative;
  1105. &:before {
  1106. content: '';
  1107. position: absolute;
  1108. width: 1rpx;
  1109. height: 28rpx;
  1110. top: 50%;
  1111. margin-top: -14rpx;
  1112. background-color: rgba(255, 255, 255, 0.4);
  1113. left: 0;
  1114. }
  1115. }
  1116. .num {
  1117. font-size: 42rpx;
  1118. font-weight: bold;
  1119. }
  1120. .txt {
  1121. margin-top: 8rpx;
  1122. font-size: 26rpx;
  1123. color: rgba(255, 255, 255, 0.6);
  1124. }
  1125. }
  1126. }
  1127. .sign {
  1128. z-index: 200;
  1129. position: absolute;
  1130. right: -12rpx;
  1131. top: 80rpx;
  1132. display: flex;
  1133. align-items: center;
  1134. justify-content: center;
  1135. width: 120rpx;
  1136. height: 60rpx;
  1137. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  1138. border-radius: 29rpx 4rpx 4rpx 29rpx;
  1139. color: #282828;
  1140. font-size: 28rpx;
  1141. font-weight: bold;
  1142. }
  1143. }
  1144. .group-buying-data2 {
  1145. position: relative;
  1146. width: 100%;
  1147. height: 100rpx;
  1148. padding: 28rpx;
  1149. box-sizing: border-box;
  1150. margin: 0 auto;
  1151. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1152. background-size: 100% auto;
  1153. background-color: var(--view-theme);
  1154. .group-title-2 {
  1155. display: flex;
  1156. justify-content: space-between;
  1157. font-size: 32rpx;
  1158. font-weight: 500;
  1159. color: #B22338;
  1160. line-height: 44rpx;
  1161. height: 44rpx;
  1162. }
  1163. }
  1164. /deep/ .group-buying-data3 {
  1165. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png') !important;
  1166. background-size: 100% auto !important;
  1167. overflow: hidden;
  1168. border-radius: 8rpx;
  1169. .u-slot-title {
  1170. text {
  1171. font-size: 32rpx !important;
  1172. font-weight: 200 !important;
  1173. color: #B22338;
  1174. }
  1175. }
  1176. .u-cell__body{
  1177. text {
  1178. font-weight: 200 !important;
  1179. color: #B22338;
  1180. }
  1181. }
  1182. }
  1183. .group-buying-data {
  1184. position: relative;
  1185. width: 100%;
  1186. height: 240rpx;
  1187. padding: 40rpx;
  1188. margin: 0 auto;
  1189. background-image: url('http://www.gzzzyd.com/groupon/regiment/提货管理@2x.png');
  1190. background-size: 100% auto;
  1191. background-color: var(--view-theme);
  1192. border-radius: 10rpx;
  1193. .group-title {
  1194. font-size: 32rpx;
  1195. font-weight: 500;
  1196. color: #B22338;
  1197. line-height: 44rpx;
  1198. height: 44rpx;
  1199. }
  1200. .group-content {
  1201. display: flex;
  1202. .group-content-l {
  1203. text-align: center;
  1204. flex: 1;
  1205. border-color: #333333;
  1206. border-right: 1px solid white ;
  1207. }
  1208. .group-content-r {
  1209. text-align: center;
  1210. flex: 1
  1211. }
  1212. .content-num {
  1213. margin-top: 20rpx;
  1214. height: 48rpx;
  1215. font-size: 40rpx;
  1216. font-weight: bold;
  1217. color: #B22338;
  1218. line-height: 48rpx;
  1219. }
  1220. .content-info {
  1221. margin-top: 20rpx;
  1222. text-align: center;
  1223. width: 100%;
  1224. height: 36rpx;
  1225. font-size: 24rpx;
  1226. font-weight: 400;
  1227. color: #CF7986;
  1228. line-height: 36rpx;
  1229. }
  1230. }
  1231. }
  1232. .order-wrapper {
  1233. margin-top: 30rpx;
  1234. background: #fff;
  1235. border-radius: 16rpx;
  1236. position: relative;
  1237. .order-hd {
  1238. justify-content: space-between;
  1239. padding: 30rpx 20rpx 10rpx 30rpx;
  1240. margin-top: 25rpx;
  1241. font-size: 30rpx;
  1242. color: #282828;
  1243. .left {
  1244. font-weight: bold;
  1245. }
  1246. .right {
  1247. display: flex;
  1248. align-items: center;
  1249. color: #666666;
  1250. font-size: 26rpx;
  1251. .icon-xiangyou {
  1252. margin-left: 5rpx;
  1253. font-size: 26rpx;
  1254. }
  1255. }
  1256. }
  1257. .order-bd {
  1258. display: flex;
  1259. padding: 0 0;
  1260. .order-item {
  1261. display: flex;
  1262. flex-direction: column;
  1263. justify-content: center;
  1264. align-items: center;
  1265. flex: 1;
  1266. height: 140rpx;
  1267. margin-top: 8rpx;
  1268. .pic {
  1269. position: relative;
  1270. text-align: center;
  1271. .iconfont {
  1272. font-size: 48rpx;
  1273. color: var(--view-theme);
  1274. }
  1275. image {
  1276. width: 50rpx;
  1277. height: 50rpx;
  1278. }
  1279. }
  1280. .txt {
  1281. margin-top: 6rpx;
  1282. font-size: 26rpx;
  1283. color: #333;
  1284. }
  1285. }
  1286. }
  1287. }
  1288. }
  1289. .slider-wrapper {
  1290. margin: 20rpx 30rpx;
  1291. height: 130rpx;
  1292. swiper,
  1293. swiper-item {
  1294. height: 100%;
  1295. }
  1296. image {
  1297. width: 100%;
  1298. height: 130rpx;
  1299. border-radius: 16rpx;
  1300. }
  1301. }
  1302. .user-menus {
  1303. background-color: #fff;
  1304. margin: 0 30rpx;
  1305. border-radius: 16rpx;
  1306. .menu-title {
  1307. padding: 30rpx 30rpx 40rpx;
  1308. font-size: 30rpx;
  1309. color: #282828;
  1310. font-weight: bold;
  1311. }
  1312. .list-box {
  1313. display: flex;
  1314. flex-wrap: wrap;
  1315. padding: 0;
  1316. }
  1317. .item {
  1318. position: relative;
  1319. display: flex;
  1320. align-items: center;
  1321. justify-content: space-between;
  1322. flex-direction: column;
  1323. width: 32%;
  1324. margin-bottom: 47rpx;
  1325. font-size: 26rpx;
  1326. color: #333333;
  1327. image {
  1328. width: 52rpx;
  1329. height: 52rpx;
  1330. margin-bottom: 18rpx;
  1331. }
  1332. &:last-child::before {
  1333. display: none;
  1334. }
  1335. }
  1336. button {
  1337. font-size: 28rpx;
  1338. }
  1339. }
  1340. .phone {
  1341. color: #fff;
  1342. background-color: #CCC;
  1343. border-radius: 15px;
  1344. width: max-content;
  1345. padding: 0 10px;
  1346. }
  1347. .order-status-num {
  1348. min-width: 12rpx;
  1349. background-color: #fff;
  1350. color: var(--view-theme);
  1351. border-radius: 15px;
  1352. position: absolute;
  1353. right: -14rpx;
  1354. top: -15rpx;
  1355. font-size: 20rpx;
  1356. padding: 0 8rpx;
  1357. border: 1px solid var(--view-theme);
  1358. }
  1359. .support {
  1360. width: 219rpx;
  1361. height: 74rpx;
  1362. margin: 54rpx auto;
  1363. display: block;
  1364. }
  1365. }
  1366. .card-vip {
  1367. display: flex;
  1368. align-items: center;
  1369. justify-content: space-between;
  1370. position: relative;
  1371. width: 690rpx;
  1372. height: 134rpx;
  1373. margin: -72rpx auto 0;
  1374. // background: url('~@/static/images/user_vip.png');
  1375. background-size: cover;
  1376. padding-left: 118rpx;
  1377. padding-right: 34rpx;
  1378. .left-box {
  1379. font-size: 24rpx;
  1380. color: #AE5A2A;
  1381. .big {
  1382. font-size: 28rpx;
  1383. }
  1384. .small {
  1385. opacity: 0.8;
  1386. margin-top: 10rpx;
  1387. }
  1388. }
  1389. .btn {
  1390. height: 52rpx;
  1391. line-height: 52rpx;
  1392. padding: 0 10rpx;
  1393. text-align: center;
  1394. background: #fff;
  1395. border-radius: 28rpx;
  1396. font-size: 26rpx;
  1397. color: #AE5A2A;
  1398. }
  1399. }
  1400. .setting {
  1401. margin-top: 15rpx;
  1402. margin-left: 15rpx;
  1403. color: #fff;
  1404. .iconfont {
  1405. font-size: 40rpx;
  1406. }
  1407. }
  1408. .page-footer {
  1409. position: fixed;
  1410. bottom: 0;
  1411. z-index: 30;
  1412. display: flex;
  1413. align-items: center;
  1414. justify-content: space-around;
  1415. width: 100%;
  1416. height: calc(98rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1417. height: calc(98rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1418. box-sizing: border-box;
  1419. border-top: solid 1rpx #F3F3F3;
  1420. background-color: #fff;
  1421. box-shadow: 0px 0px 17rpx 1rpx rgba(206, 206, 206, 0.32);
  1422. padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
  1423. padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
  1424. .foot-item {
  1425. display: flex;
  1426. width: max-content;
  1427. align-items: center;
  1428. justify-content: center;
  1429. flex-direction: column;
  1430. position: relative;
  1431. .count-num {
  1432. position: absolute;
  1433. display: flex;
  1434. justify-content: center;
  1435. align-items: center;
  1436. width: 40rpx;
  1437. height: 40rpx;
  1438. top: 0rpx;
  1439. right: -15rpx;
  1440. color: #fff;
  1441. font-size: 20rpx;
  1442. background-color: #FD502F;
  1443. border-radius: 50%;
  1444. padding: 4rpx;
  1445. }
  1446. }
  1447. .foot-item image {
  1448. height: 50rpx;
  1449. width: 50rpx;
  1450. text-align: center;
  1451. margin: 0 auto;
  1452. }
  1453. .foot-item .txt {
  1454. font-size: 24rpx;
  1455. &.active {}
  1456. }
  1457. }
  1458. .new-users {
  1459. padding-bottom: 0;
  1460. padding-bottom: constant(safe-area-inset-bottom);
  1461. padding-bottom: env(safe-area-inset-bottom);
  1462. }
  1463. .group-buying-btn {
  1464. margin-top: 20rpx;
  1465. display: flex;
  1466. width: 100%;
  1467. height: 110rpx;
  1468. .image-text_21 {
  1469. flex: 1;
  1470. image {
  1471. width: 100%;
  1472. height: 100%;
  1473. }
  1474. }
  1475. }
  1476. .icon_1 {
  1477. width: 14px;
  1478. height: 14px;
  1479. margin: 3px 0 3px 0;
  1480. }
  1481. .text-group_1 {
  1482. overflow-wrap: break-word;
  1483. color: rgba(178, 35, 56, 1);
  1484. font-size: 14px;
  1485. font-family: PingFangSC-Semibold;
  1486. font-weight: 600;
  1487. text-align: left;
  1488. white-space: nowrap;
  1489. line-height: 20px;
  1490. }
  1491. .image-text_22 {
  1492. width: 78px;
  1493. }
  1494. .icon_10 {
  1495. width: 14px;
  1496. height: 14px;
  1497. margin: 3px 0 3px 0;
  1498. }
  1499. .text-group_8 {
  1500. overflow-wrap: break-word;
  1501. color: rgba(178, 35, 56, 1);
  1502. font-size: 14px;
  1503. font-family: PingFangSC-Semibold;
  1504. font-weight: 600;
  1505. text-align: left;
  1506. white-space: nowrap;
  1507. line-height: 20px;
  1508. }
  1509. .leader {
  1510. width: 96rpx;
  1511. height: 40rpx;
  1512. background: #F1F8E5;
  1513. color: #75BE00;
  1514. border-radius: 22rpx;
  1515. text-align: center;
  1516. border: 2rpx solid #75BE00;
  1517. }
  1518. .employees {
  1519. width: 96rpx;
  1520. height: 40rpx;
  1521. background: rgb(247, 233, 235);
  1522. border-radius: 22rpx;
  1523. color: rgb(174, 33, 56);
  1524. text-align: center;
  1525. border: 2rpx solid rgb(174, 33, 56);
  1526. }
  1527. .tool_list,
  1528. .footer {
  1529. background: #fff;
  1530. border-radius: 16rpx;
  1531. margin-top: 20rpx;
  1532. }
  1533. .footer {
  1534. height: 100rpx;
  1535. button {
  1536. height: 100%;
  1537. font-size: 28rpx;
  1538. font-weight: 400;
  1539. color: #999999;
  1540. line-height: 100rpx;
  1541. }
  1542. }
  1543. /deep/ .tool_list .u-line,
  1544. .my_order .u-line {
  1545. display: none !important;
  1546. }
  1547. .my_order {}
  1548. .my_order_text {
  1549. font-weight: bold;
  1550. }
  1551. .u-slot-title {
  1552. text {
  1553. vertical-align: text-bottom;
  1554. line-height: 60rpx;
  1555. }
  1556. image {
  1557. margin-right: 20rpx;
  1558. transform: translateY(10rpx);
  1559. width: 60rpx;
  1560. height: 60rpx;
  1561. }
  1562. }
  1563. .origin {
  1564. margin-top: 0 !important;
  1565. }
  1566. .order_menu_title {
  1567. color: #666666 !important;
  1568. }
  1569. .bord{
  1570. border: 1px solid red;
  1571. }
  1572. .tuangou{
  1573. width: 330rpx;
  1574. height: 108rpx;
  1575. background: #FFF7F8;
  1576. border-radius: 8rpx;
  1577. border: 2rpx solid rgba(178,35,56,0.1);
  1578. text-align: center;
  1579. }
  1580. .quhuohexioaIcon{
  1581. width: 28rpx;
  1582. height: 28rpx;
  1583. }
  1584. .quhuohexioa{
  1585. font-weight: 600;
  1586. font-size: 28rpx;
  1587. color: #B22338;
  1588. line-height: 108rpx;
  1589. text-align: left;
  1590. font-style: normal;
  1591. margin-left: 10rpx;
  1592. }
  1593. </style>