index.vue 39 KB

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