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