index.vue 39 KB

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