index-bak.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. <template>
  2. <view :data-theme="theme">
  3. <!-- #ifdef MP -->
  4. <view class="cart_nav" :style='"height:"+navH+"rpx;"'>
  5. <nav-bar iconColor='#fff' ref="navBarRef" navTitle="个人中心">
  6. </nav-bar>
  7. </view>
  8. <!-- #endif -->
  9. <tui-skeleton v-if="showSkeleton"></tui-skeleton>
  10. <view class="new-users copy-data tui-skeleton">
  11. <view class="mid" style="flex:1;overflow: hidden;">
  12. <scroll-view scroll-y="true">
  13. <view class="head borderPad">
  14. <view class="bg"
  15. :style="{'background-image': `url(${urlDomain}crmebimage/presets/user_bg.png)`}">
  16. <view class="user-card">
  17. <view class="user-info">
  18. <image class="avatar tui-skeleton-rect" :src='userInfo.avatar'
  19. v-if="userInfo.avatar" @click="goEdit()"></image>
  20. <image v-else class="avatar tui-skeleton-rect"
  21. :src="urlDomain+'crmebimage/presets/morenT.png'" mode="" @click="goEdit()">
  22. </image>
  23. <view class="info">
  24. <view class="name" v-if="!isLogin" @tap="openAuto">
  25. 请点击登录
  26. </view>
  27. <view class="name" v-if="userInfo && uid">
  28. <view @click="goEdit()">
  29. {{userInfo && userInfo.nickname && uid ? userInfo.nickname : ''}}
  30. </view>
  31. <view class="vip" v-if="userInfo.vipIcon" @click="goEdit()">
  32. <image :src="userInfo.vipIcon" alt=""></image>
  33. </view>
  34. <view class="vip" v-if="userInfo.isPaidMember"
  35. @click="menusTap('/pages/activity/vip_paid/index')">
  36. <image
  37. :style="{'background-image': `url(${urlDomain}crmebimage/presets/viptu.png)`}">
  38. </image>
  39. </view>
  40. </view>
  41. <view class="num mt10" v-if="userInfo && userInfo.phone && uid"
  42. @click="goEdit()">
  43. <view class="num-txt">{{userInfo.phone}}</view>
  44. </view>
  45. </view>
  46. <view class="app_set" @click="handleUserSetting()">
  47. <text class="iconfont icon-shezhi"></text>
  48. </view>
  49. </view>
  50. <view class="num-wrapper tui-skeleton-rect">
  51. <view class="num-item" @click="goMenuPage('/pages/merchant/user_integral/index')">
  52. <text class="num">{{userInfo.integral && uid ? userInfo.integral: 0}}</text>
  53. <view class="txt">积分</view>
  54. </view>
  55. <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
  56. <text
  57. class="num">{{userInfo.couponCount && uid ? userInfo.couponCount : 0}}</text>
  58. <view class="txt">优惠券</view>
  59. </view>
  60. <view class="num-item"
  61. @click="goMenuPage('/pages/goods/user_goods_collection/index')">
  62. <text
  63. class="num">{{userInfo.collectCount && uid ? userInfo.collectCount : 0}}</text>
  64. <view class="txt">收藏</view>
  65. </view>
  66. <view class="num-item" @click="goMenuPage('/pages/goods/browsing_history/index')">
  67. <text class="num">{{userInfo.browseNum && uid ? userInfo.browseNum:0}}</text>
  68. <view class="txt">浏览记录</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view v-show="userInfo.paidMemberPaidEntrance===1"
  74. @click="menusTap('/pages/activity/vip_paid/index')" class="h-128 svip-box px-30"
  75. :style="{'background-image': `url(${urlDomain}crmebimage/presets/cardbj.png)`}">
  76. <view class="acea-row row-middle row-between h-94">
  77. <view class="acea-row">
  78. <view class="w-34 h-28 no-repeat vipicon"
  79. :style="{'background-image': `url(${urlDomain}crmebimage/presets/huangguan.png)`}">
  80. </view>
  81. <view class="f-s-24 text ml-12">加入SVIP畅享精彩</view>
  82. </view>
  83. <view class="acea-row row-middle">
  84. <view class="f-s-24 text mr10">{{userInfo.isPaidMember?'去查看':'去开通'}}</view>
  85. <text class="iconfont icon-gengduo3 text f-s-20"></text>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="order-wrapper tui-skeleton-rect"
  90. :class="userInfo.paidMemberPaidEntrance===1?'mt34rpx':''">
  91. <view class="order-hd flex">
  92. <view class="left">订单中心</view>
  93. <view class="right flex" @click="menusTap('/pages/goods/order_list/index')">查看全部
  94. <text class="iconfont icon-xiangyou"></text>
  95. </view>
  96. </view>
  97. <view class="order-bd">
  98. <block v-for="(item,index) in orderMenu" :key="index">
  99. <view class="order-item" @click="menusTap(item.url)">
  100. <view class="pic">
  101. <text class="iconfont pic_status" :class="item.img"></text>
  102. <text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
  103. </view>
  104. <view class="txt tui-skeleton-rect">{{item.title}}</view>
  105. </view>
  106. </block>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="contenBox borderPad" id="pageIndex">
  111. <!-- 轮播 -->
  112. <view class="slider-wrapper tui-skeleton-rect" @click.native="bindEdit('userBanner')"
  113. v-if="centerBanner != null && centerBanner.length > 0">
  114. <swiper v-if="centerBanner.length>0" indicator-dots="true" :autoplay="autoplay"
  115. :circular="circular" :interval="interval" :duration="duration"
  116. indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
  117. <block v-for="(item,index) in centerBanner" :key="index">
  118. <swiper-item class="borRadius14">
  119. <image :src="item.pic" class="slide-image" @click="navito(item.url)"></image>
  120. </swiper-item>
  121. </block>
  122. </swiper>
  123. </view>
  124. <!-- 会员菜单 -->
  125. <view class="user-menus mt20" @click.native="bindEdit('userMenus')">
  126. <view class="menu-title">我的服务</view>
  127. <view class="list-box">
  128. <block v-for="(item,index) in centerMenu" :key="index">
  129. <view class="item tui-skeleton-rect" @click="menusTap(item.url)"
  130. v-if="!(item.url =='/pages/service/index' || (item.url =='/pages/users/user_spread_user/index' && !userInfo.isPromoter)||(!isEmployee&&item.url=='/pages/admin/work/index'))">
  131. <image :src="item.pic"></image>
  132. <text>{{item.name}}</text>
  133. </view>
  134. </block>
  135. <!-- #ifndef MP -->
  136. <view class="item" @click="kefuClick">
  137. <image :src="servicePic"></image>
  138. <text>联系客服</text>
  139. </view>
  140. <!-- #endif -->
  141. <!-- #ifdef MP -->
  142. <button class="item" hover-class='none' @click="kefuClick"
  143. v-if="chatConfig.telephone_service_switch === 'true'">
  144. <image :src="servicePic"></image>
  145. <text>联系客服</text>
  146. </button>
  147. <button class="item" open-type='contact' hover-class='none' v-else>
  148. <image :src="servicePic"></image>
  149. <text>联系客服</text>
  150. </button>
  151. <!-- #endif -->
  152. </view>
  153. </view>
  154. <!-- 商家管理 -->
  155. <view class="user-menus mt20" v-if="isEmployee">
  156. <view class="menu-title">店铺管理</view>
  157. <view class="list-box">
  158. <view class="item" @click="toggle('bottom')">
  159. <image :src="urlDomain+'crmebimage/presets/adminImg/sjgl.png'"></image>
  160. <text>商家管理</text>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <image :src="copyImage" alt="" class='support'></image>
  166. </scroll-view>
  167. </view>
  168. </view>
  169. <!-- <view v-if="bottomNavigationIsCustom" class="footerBottom"></view> -->
  170. <!-- <pageFooter></pageFooter> -->
  171. <uni-popup ref="popup" type="bottom" background-color="rgba(0,0,0,0)" border-radius="10px 10px 0 0">
  172. <view class="popup-content">
  173. <view class="item" v-for="(item,index) in merchantEmployeeList" :key="index"
  174. :class="{bottom_border:index!=merchantEmployeeList.length-1}">
  175. <view class="item_main">
  176. <image :src="item.currentMerchant.avatar" mode="" class="item_img"></image>
  177. <view class="item_name" :class="{nameColor:item.merId==selectMerId}">
  178. {{item.currentMerchant.name}}</view>
  179. </view>
  180. <text v-if="item.merId==selectMerId" class="iconfont icon-xuanzhong11 icon-size icon_color"></text>
  181. <text v-else class="iconfont icon-weixuan icon-size" @click="radioChange(item)"></text>
  182. </view>
  183. </view>
  184. </uni-popup>
  185. </view>
  186. </template>
  187. <script>
  188. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  189. import Cache from '@/utils/cache';
  190. import navBar from '@/components/navBar';
  191. import {
  192. goPage
  193. } from '@/libs/iframe.js'
  194. import {
  195. BACK_URL,
  196. USER_INFO
  197. } from '@/config/cache';
  198. import {
  199. userCenterInfo,
  200. copyrightImageApi
  201. } from '@/api/user.js';
  202. import {
  203. MerchantBelongListApi,
  204. merchantActive
  205. } from '@/api/work.js';
  206. import {
  207. orderNum
  208. } from '@/api/order.js';
  209. import {
  210. toLogin
  211. } from '@/libs/login.js';
  212. import {
  213. mapGetters
  214. } from "vuex";
  215. import {
  216. getCityList
  217. } from "@/utils";
  218. import {
  219. tokenIsExistApi
  220. } from '@/api/api.js';
  221. // #ifdef H5
  222. import Auth from '@/libs/wechat';
  223. // #endif
  224. import {
  225. getShare
  226. } from '@/api/public.js';
  227. import {
  228. setThemeColor
  229. } from '@/utils/setTheme.js'
  230. import animationType from '@/utils/animationType.js'
  231. import {
  232. chatConfig
  233. } from '@/utils/consumerType.js'
  234. import tuiSkeleton from '@/components/base/tui-skeleton.vue';
  235. import pageFooter from "@/components/pageFooter/index.vue";
  236. const app = getApp();
  237. export default {
  238. computed: mapGetters(['isLogin', 'chatUrl', 'uid', 'globalData', 'bottomNavigationIsCustom',
  239. 'merchantEmployeeList', 'isEmployee', 'selectMerId'
  240. ]),
  241. data() {
  242. return {
  243. scrollHeight: 0,
  244. triggered: false,
  245. isRefresher: false, //下拉刷新状态
  246. urlDomain: this.$Cache.get("imgHost"),
  247. showSkeleton: true, //骨架屏显示隐藏
  248. orderMenu: [{
  249. img: 'icon-daifukuan',
  250. title: '待付款',
  251. url: '/pages/goods/order_list/index?status=0',
  252. num: 0
  253. },
  254. {
  255. img: 'icon-daifahuo',
  256. title: '待发货',
  257. url: '/pages/goods/order_list/index?status=1',
  258. num: 0
  259. },
  260. {
  261. img: 'icon-daihexiao',
  262. title: '待核销',
  263. url: '/pages/goods/order_list/index?status=3',
  264. num: 0
  265. },
  266. {
  267. img: 'icon-daishouhuo',
  268. title: '待收货',
  269. url: '/pages/goods/order_list/index?status=4',
  270. num: 0
  271. },
  272. {
  273. img: 'icon-daipingjia',
  274. title: '待评价',
  275. url: '/pages/goods/evaluation_list/index',
  276. num: 0
  277. },
  278. {
  279. img: 'icon-a-shouhoutuikuan',
  280. title: '售后/退款',
  281. url: '/pages/goods/user_return_list/index',
  282. num: 0
  283. },
  284. ],
  285. centerBanner: [],
  286. userMenu: [],
  287. autoplay: true,
  288. circular: true,
  289. interval: 3000,
  290. duration: 500,
  291. isAuto: false, //没有授权的不会自动授权
  292. isShowAuth: false, //是否隐藏授权
  293. orderStatusNum: {},
  294. centerMenu: [],
  295. wechatUrl: [],
  296. servicePic: '',
  297. sysHeight: sysHeight,
  298. // #ifdef MP
  299. pageHeight: '100%',
  300. // #endif
  301. // #ifdef H5 || APP-PLUS
  302. pageHeight: '',
  303. // #endif
  304. // #ifdef H5
  305. isWeixin: Auth.isWeixin(),
  306. //#endif
  307. configApi: {}, //分享类容配置
  308. theme: app.globalData.theme,
  309. bgColor: '#e93323',
  310. userInfo: {},
  311. copyImage: '',
  312. navH:''
  313. }
  314. },
  315. components: {
  316. tuiSkeleton,
  317. pageFooter,
  318. navBar
  319. },
  320. onLoad() {
  321. this.servicePic = this.urlDomain + 'crmebimage/presets/customer.png'
  322. this.getTokenIsExist();
  323. // #ifdef MP
  324. this.navH = this.globalData.navHeight;
  325. // #endif
  326. // #ifndef MP
  327. this.navH = 96;
  328. // #endif
  329. if (this.globalData.isIframe) {
  330. setTimeout(() => {
  331. let active;
  332. document.getElementById('pageIndex').children.forEach(dom => {
  333. dom.addEventListener('click', (e) => {
  334. e.stopPropagation();
  335. e.preventDefault();
  336. if (dom === active) return;
  337. dom.classList.add('borderShow');
  338. active && active.classList.remove('borderShow');
  339. active = dom;
  340. })
  341. })
  342. });
  343. }
  344. // #ifdef APP-PLUS
  345. setTimeout(()=>{
  346. uni.setNavigationBarColor({
  347. frontColor: '#ffffff',
  348. backgroundColor:that.bgColor,
  349. });
  350. },500)
  351. // #endif
  352. let that = this;
  353. // #ifdef H5 || APP-PLUS
  354. that.$set(that, 'pageHeight', this.globalData.windowHeight);
  355. // #endif
  356. that.$set(that, 'centerMenu', this.globalData.centerMenu);
  357. that.bgColor = setThemeColor();
  358. },
  359. onShow: function() {
  360. if (this.isLogin) {
  361. this.getUserCenterInfo();
  362. this.getOrderData();
  363. this.getMerchantList()
  364. }
  365. this.copyrightImage();
  366. this.showSkeleton = false
  367. let that = this;
  368. if (!that.$Cache.get('cityList')) getCityList();
  369. // #ifdef H5
  370. uni.getSystemInfo({
  371. success: function(res) {
  372. that.pageHeight = res.windowHeight + 'px'
  373. }
  374. });
  375. // #endif
  376. // #ifdef MP
  377. let query = uni.createSelectorQuery();
  378. let dom = query.select('.new-users');
  379. // #endif
  380. },
  381. methods: {
  382. /**
  383. * 发现列表滑动中用到的方法
  384. */
  385. onScroll() {
  386. uni.$emit('scroll');
  387. },
  388. toggle(type) {
  389. if (this.merchantEmployeeList.length == 1) {
  390. merchantActive(this.merchantEmployeeList[0].merId).then(res => {
  391. this.$store.commit('SetSelectMerId', this.merchantEmployeeList[0].merId);
  392. this.$store.commit('SetSelectMerchantRole', this.merchantEmployeeList[0].role);
  393. this.$store.commit('SET_MANAGER_TOKEN', {
  394. managerToken: res.data.token
  395. });
  396. Cache.set('electrPrintingSwitch', res.data.electrPrintingSwitch);
  397. uni.navigateTo({
  398. url: '/pages/admin/work/index'
  399. })
  400. return
  401. })
  402. return
  403. }
  404. if (this.selectMerId) {
  405. uni.navigateTo({
  406. url: '/pages/admin/work/index'
  407. })
  408. } else {
  409. this.type = type
  410. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  411. this.$refs.popup.open(type)
  412. }
  413. },
  414. //选中商户
  415. radioChange(item) {
  416. let that = this
  417. merchantActive(item.merId).then(res => {
  418. if (res.code == 200) {
  419. that.$store.commit('SET_MANAGER_TOKEN', {
  420. managerToken: res.data.token
  421. });
  422. Cache.set('electrPrintingSwitch', res.data.electrPrintingSwitch);
  423. that.$store.commit('SetSelectMerId', item.merId);
  424. this.$store.commit('SetSelectMerchantRole', item.role);
  425. this.$refs.popup.close()
  426. uni.navigateTo({
  427. url: '/pages/admin/work/index'
  428. })
  429. }
  430. })
  431. },
  432. //获取商户列表
  433. getMerchantList() {
  434. let that = this
  435. MerchantBelongListApi().then(res => {
  436. if (this.selectMerId) {
  437. let flag = res.data.find(item => item.merId === this.selectMerId);
  438. !flag && that.$store.commit('CLEAR_SELECTMERID');
  439. }
  440. this.$store.commit("SetMerchantEmployeeList", res.data);
  441. })
  442. },
  443. //校验token是否有效,true为有效,false为无效
  444. getTokenIsExist() {
  445. tokenIsExistApi().then(res => {
  446. let tokenIsExist = res.data;
  447. if (!tokenIsExist) {
  448. this.$store.commit('UPDATE_LOGIN', '');
  449. this.$store.commit('UPDATE_USERINFO', {});
  450. }
  451. })
  452. },
  453. copyrightImage() {
  454. copyrightImageApi().then(res => {
  455. if (res.data) {
  456. this.copyImage = res.data;
  457. } else {
  458. this.copyImage = `${this.urlDomain}crmebimage/presets/support.png`;
  459. }
  460. }).catch(err => {
  461. return this.$util.Tips({
  462. title: err
  463. })
  464. });
  465. },
  466. bindEdit(name) {
  467. if (this.globalData.isIframe) {
  468. window.parent.postMessage({
  469. name: name
  470. },
  471. '*'
  472. );
  473. return;
  474. }
  475. },
  476. menusTap(url) {
  477. if (!this.isLogin) {
  478. this.openAuto();
  479. } else {
  480. if (url === '/pages/activity/vip_paid/index' && this.userInfo.paidMemberPaidEntrance === 0) return
  481. this.$util.navigateTo(url);
  482. }
  483. },
  484. //轮播图跳转
  485. navito(url) {
  486. this.$util.navigateTo(url);
  487. },
  488. kefuClick() {
  489. chatConfig(this.$Cache.getItem('platChatConfig'));
  490. },
  491. getOrderData() {
  492. let that = this;
  493. orderNum().then(res => {
  494. that.orderMenu.forEach((item, index) => {
  495. switch (item.title) {
  496. case '待付款':
  497. item.num = res.data.awaitPayCount
  498. break
  499. case '待发货':
  500. item.num = res.data.awaitShippedCount
  501. break
  502. case '待收货':
  503. item.num = res.data.receiptCount
  504. break
  505. case '待核销':
  506. item.num = res.data.verificationCount
  507. break
  508. case '待评价':
  509. item.num = res.data.awaitReplyCount
  510. break
  511. default:
  512. item.num = res.data.refundCount
  513. }
  514. })
  515. that.$set(that, 'orderMenu', that.orderMenu);
  516. })
  517. },
  518. // 绑定手机
  519. bindPhone() {
  520. uni.navigateTo({
  521. animationType: animationType.type,
  522. animationDuration: animationType.duration,
  523. url: '/pages/users/app_login/index'
  524. })
  525. },
  526. /**
  527. *
  528. * 获取个人中心详情
  529. */
  530. getUserCenterInfo: function() {
  531. userCenterInfo().then(res => {
  532. let data = res.data;
  533. this.userInfo = data;
  534. this.$store.commit("SETUID", data.id);
  535. this.$store.commit("SetIsEmployee", data.isEmployee);
  536. this.$set(this, 'centerMenu', data.centerMenu);
  537. this.$store.commit('UPDATE_USERINFO', {
  538. avatar: data.avatar,
  539. nickname: data.nickname,
  540. phone: data.phone
  541. });
  542. if (data.centerBanner) {
  543. this.centerBanner = data.centerBanner
  544. }
  545. this.showSkeleton = false;
  546. }).catch(err => {
  547. this.showSkeleton = false;
  548. });
  549. },
  550. // 编辑页面
  551. goEdit() {
  552. if (this.isLogin == false) {
  553. this.openAuto();
  554. } else {
  555. uni.navigateTo({
  556. animationType: animationType.type,
  557. animationDuration: animationType.duration,
  558. url: '/pages/users/user_info/index'
  559. })
  560. }
  561. },
  562. goMenuPage(url) {
  563. if (this.isLogin) {
  564. uni.navigateTo({
  565. animationType: animationType.type,
  566. animationDuration: animationType.duration,
  567. url
  568. })
  569. } else {
  570. // #ifdef MP
  571. this.openAuto()
  572. // #endif
  573. }
  574. },
  575. // 打开授权
  576. openAuto() {
  577. Cache.set(BACK_URL, '')
  578. toLogin();
  579. },
  580. // 去设置页面
  581. handleUserSetting() {
  582. if (!this.isLogin) {
  583. return this.openAuto();
  584. }
  585. uni.navigateTo({
  586. url: '/pages/users/user_setting/index'
  587. })
  588. },
  589. shareApi: function() {
  590. getShare().then(res => {
  591. this.$set(this, 'configApi', res.data);
  592. // #ifdef H5
  593. this.setOpenShare(res.data);
  594. // #endif
  595. })
  596. },
  597. // 微信分享;
  598. setOpenShare: function() {
  599. let that = this;
  600. if (that.$wechat.isWeixin()) {
  601. let configAppMessage = {
  602. desc: 'crmeb',
  603. title: 'crmeb',
  604. link: location.href,
  605. imgUrl: ''
  606. };
  607. that.$wechat.wechatEvevt([
  608. "updateAppMessageShareData",
  609. "updateTimelineShareData",
  610. "onMenuShareAppMessage",
  611. "onMenuShareTimeline",
  612. ],
  613. configAppMessage);
  614. }
  615. }
  616. }
  617. }
  618. </script>
  619. <style lang="scss" scoped>
  620. .vipicon {
  621. background-size: 100% 100%;
  622. }
  623. .mt34rpx {
  624. margin-top: -34rpx;
  625. }
  626. .svip-box {
  627. width: 702rpx;
  628. background-repeat: no-repeat;
  629. background-size: 702rpx 128rpx;
  630. .text {
  631. color: #FFD89C;
  632. }
  633. }
  634. .num-txt {
  635. padding: 6rpx 20rpx;
  636. border-radius: 36rpx;
  637. background: rgba(255, 255, 255, 0.2);
  638. }
  639. page,
  640. body {
  641. height: 100%;
  642. margin: 0;
  643. }
  644. .ma .mp-header {
  645. @include main_bg_color(theme);
  646. }
  647. .bg {
  648. width: 100%;
  649. background-repeat: no-repeat;
  650. background-size: 100% 100%;
  651. }
  652. .support {
  653. width: 219rpx;
  654. height: 74rpx;
  655. margin: 20rpx auto;
  656. display: block;
  657. }
  658. .new-users {
  659. display: flex;
  660. flex-direction: column;
  661. height: 100%;
  662. .sys-head {
  663. position: relative;
  664. width: 100%;
  665. background: linear-gradient(90deg, $bg-star1 0%, $bg-end1 100%);
  666. .sys-title {
  667. z-index: 10;
  668. position: relative;
  669. height: 43px;
  670. text-align: center;
  671. line-height: 43px;
  672. font-size: 36rpx;
  673. color: #FFFFFF;
  674. }
  675. }
  676. .head {
  677. width: 100%;
  678. background-repeat: no-repeat;
  679. background-size: 100% 100%;
  680. @include index-gradient(theme);
  681. .user-card {
  682. width: 100%;
  683. margin: 0 auto;
  684. padding: 35rpx 0 40rpx 0;
  685. .user-info {
  686. z-index: 20;
  687. display: flex;
  688. align-items: center;
  689. color: #fff;
  690. .avatar {
  691. width: 120rpx;
  692. height: 120rpx;
  693. border-radius: 50%;
  694. }
  695. .app_set {
  696. color: #fff;
  697. width: 140rpx;
  698. height: 110rpx;
  699. text-align: right;
  700. line-height: 110rpx;
  701. .icon-shezhi {
  702. font-size: 36rpx;
  703. }
  704. }
  705. .info {
  706. flex: 1;
  707. display: flex;
  708. flex-direction: column;
  709. justify-content: space-between;
  710. margin-left: 20rpx;
  711. padding: 15rpx 0;
  712. .name {
  713. display: flex;
  714. align-items: center;
  715. color: #fff;
  716. font-size: 31rpx;
  717. .vip {
  718. display: flex;
  719. align-items: center;
  720. border-radius: 18px;
  721. font-size: 20rpx;
  722. margin-left: 14rpx;
  723. image {
  724. width: 27rpx;
  725. height: 27rpx;
  726. background-repeat: no-repeat;
  727. background-size: 100% 100%;
  728. }
  729. }
  730. }
  731. .num {
  732. display: flex;
  733. align-items: center;
  734. font-size: 26rpx;
  735. color: rgba(255, 255, 255, 0.6);
  736. image {
  737. width: 22rpx;
  738. height: 23rpx;
  739. margin-left: 20rpx;
  740. }
  741. }
  742. }
  743. }
  744. .num-wrapper {
  745. z-index: 30;
  746. position: relative;
  747. display: flex;
  748. align-items: center;
  749. justify-content: space-between;
  750. margin-top: 30rpx;
  751. color: #fff;
  752. .num-item {
  753. width: 33.33%;
  754. text-align: center;
  755. .num {
  756. font-size: 42rpx;
  757. font-weight: bold;
  758. }
  759. .txt {
  760. margin-top: 10rpx;
  761. font-size: 26rpx;
  762. color: rgba(255, 255, 255, 0.6);
  763. }
  764. }
  765. }
  766. .sign {
  767. z-index: 200;
  768. position: absolute;
  769. right: -12rpx;
  770. top: 80rpx;
  771. display: flex;
  772. align-items: center;
  773. justify-content: center;
  774. width: 120rpx;
  775. height: 60rpx;
  776. background: linear-gradient(90deg, rgba(255, 225, 87, 1) 0%, rgba(238, 193, 15, 1) 100%);
  777. border-radius: 29rpx 4rpx 4rpx 29rpx;
  778. color: #282828;
  779. font-size: 28rpx;
  780. font-weight: bold;
  781. }
  782. }
  783. .order-wrapper {
  784. background-color: #fff;
  785. border-radius: 14rpx;
  786. padding: 30rpx 16rpx;
  787. position: relative;
  788. z-index: 11;
  789. .order-hd {
  790. justify-content: space-between;
  791. font-size: 30rpx;
  792. color: #282828;
  793. margin-bottom: 40rpx;
  794. padding: 0 16rpx;
  795. .left {
  796. color: #282828;
  797. font-size: 30rpx;
  798. font-weight: 600;
  799. }
  800. .right {
  801. align-items: center;
  802. color: #666666;
  803. font-size: 26rpx;
  804. .icon-xiangyou {
  805. margin-left: 5rpx;
  806. font-size: 24rpx;
  807. }
  808. }
  809. }
  810. .order-bd {
  811. display: flex;
  812. justify-content: space-between;
  813. padding: 0;
  814. .order-item {
  815. display: flex;
  816. flex-direction: column;
  817. justify-content: center;
  818. align-items: center;
  819. .pic {
  820. position: relative;
  821. text-align: center;
  822. image {
  823. width: 48rpx;
  824. height: 48rpx;
  825. }
  826. }
  827. .txt {
  828. margin-top: 15rpx;
  829. font-size: 26rpx;
  830. color: #454545;
  831. }
  832. }
  833. }
  834. }
  835. }
  836. .slider-wrapper {
  837. margin: 20rpx 0;
  838. height: 138rpx;
  839. swiper,
  840. swiper-item {
  841. height: 100%;
  842. }
  843. image {
  844. width: 100%;
  845. height: 100%;
  846. }
  847. }
  848. .user-menus {
  849. background-color: #fff;
  850. border-radius: 14rpx;
  851. .menu-title {
  852. padding: 30rpx 30rpx 40rpx;
  853. font-size: 30rpx;
  854. color: #282828;
  855. font-weight: 600;
  856. }
  857. .list-box {
  858. display: flex;
  859. flex-wrap: wrap;
  860. padding: 0;
  861. }
  862. .item {
  863. position: relative;
  864. display: flex;
  865. align-items: center;
  866. justify-content: space-between;
  867. flex-direction: column;
  868. width: 25%;
  869. margin-bottom: 47rpx;
  870. font-size: 26rpx;
  871. color: #333333;
  872. image {
  873. width: 52rpx;
  874. height: 52rpx;
  875. margin-bottom: 18rpx;
  876. }
  877. &:last-child::before {
  878. display: none;
  879. }
  880. }
  881. button {
  882. font-size: 28rpx;
  883. }
  884. }
  885. .phone {
  886. color: #fff;
  887. }
  888. .pic_status {
  889. font-size: 43rpx;
  890. @include main_color(theme);
  891. }
  892. .order-status-num {
  893. min-width: 13rpx;
  894. background-color: #fff;
  895. @include main_color(theme);
  896. border-radius: 15px;
  897. position: absolute;
  898. right: -14rpx;
  899. top: -15rpx;
  900. font-size: 20rpx;
  901. padding: 0 8rpx;
  902. @include coupons_border_color(theme);
  903. }
  904. }
  905. .sub_btn {
  906. width: 690rpx;
  907. height: 86rpx;
  908. line-height: 86rpx;
  909. margin-top: 60rpx;
  910. background: $theme-color;
  911. border-radius: 43rpx;
  912. color: #fff;
  913. font-size: 28rpx;
  914. text-align: center;
  915. }
  916. .popup-content {
  917. border-radius: 16rpx 16rpx 0px 0px;
  918. .bottom_border {
  919. border-bottom: 1px solid #F5F5F5;
  920. }
  921. .item {
  922. display: flex;
  923. align-items: center;
  924. justify-content: space-between;
  925. padding: 20rpx;
  926. .icon_color {
  927. color: #2A7EFB;
  928. }
  929. .item_main {
  930. display: flex;
  931. align-items: center;
  932. .item_name {
  933. margin-left: 20rpx;
  934. font-weight: 500;
  935. font-size: 28rpx;
  936. }
  937. }
  938. .item_img {
  939. width: 60rpx;
  940. height: 60rpx;
  941. border-radius: 60rpx;
  942. }
  943. }
  944. }
  945. </style>