index.vue 39 KB

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