user.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="bar-height"></view>
  5. <!-- #endif -->
  6. <!-- <scroll-view class="content-box" scroll-y="true"> -->
  7. <view class="user-section">
  8. <view class="bg"><image src="../../static/user/ground.png" mode=""></image></view>
  9. <!-- top -->
  10. <view class="user-box">
  11. <view class="user-info-box ">
  12. <view class="detail flex" @click="navTo('/pages/userinfo/userinfo')">
  13. <view class="portrait-box"><image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image></view>
  14. <view class="info-box">
  15. <view class="username">{{ userInfo.nickname || '游客' }}</view>
  16. <view class="font-size-sm" v-if="userInfo.uid">邀请码:{{ userInfo.uid }}<text v-if="userInfo.level == 1" style="color: #5dbc7c;margin-left: 10rpx;">会员</text><text v-if="userInfo.level == 2" style="color: #dab176;margin-left: 10rpx;">副店长</text><text v-if="userInfo.level == 3" style="color: #dab176;margin-left: 10rpx;">店长</text></view>
  17. <view class="font-size-sm" style="color: #5dbc7c;" v-if="userInfo.level == 1 && userInfo.service == 0">{{'会员股权:' + userInfo.vip.stock_rights + ' 消费股权:' + userInfo.vip.consume_rights}}</view>
  18. </view>
  19. </view>
  20. <view class="config">
  21. <view class="setting " @click="navTo('/pages/userinfo/userinfo')"><image src="../../static/user/set.png" mode=""></image></view>
  22. 设置
  23. </view>
  24. </view>
  25. <view class="sy-box flex">
  26. <view class="sy-item">
  27. <view class="sy-item-name">团队等级</view>
  28. <view class="sy-item-val">{{ userInfo.group_level_info != null? userInfo.group_level_info.name : '无' }}</view>
  29. </view>
  30. <view class="jg"></view>
  31. <view class="sy-item">
  32. <view class="sy-item-name">极差奖励等级</view>
  33. <!-- <view class="sy-item-val">{{jcdj}}</view> -->
  34. <view class="sy-item-val">{{userInfo.award_level_info!= null? userInfo.award_level_info.name : '无'}}</view>
  35. </view>
  36. <view class="jg"></view>
  37. <view class="sy-item">
  38. <view class="sy-item-name">冻结极差奖</view>
  39. <view class="sy-item-val">{{ userInfo.lock_group_award || 0 }}</view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 会员卡功能 -->
  44. </view>
  45. <view class="item-box">
  46. <image class="arc" src="/static/img/arc.png"></image>
  47. <view class="mendian" >
  48. <view class="mendian-lift" v-if="userInfo.level == 1 && userInfo.service == 0">
  49. <view class="img"><image src="../../static/img/mendian01.png" mode=""></image></view>
  50. <text class="null-mendian">{{ userInfo.store_name}}</text>
  51. </view>
  52. <view class="mendian-lift" v-else>
  53. </view>
  54. <view class="mendian-lift" @click="openhym" v-if="userInfo.vip.card_no">
  55. NO:{{userInfo.vip.card_no}}<image src="../../static/icon/hym.png" mode="" class="hym" >
  56. </view>
  57. <view class="mendian-lift" @click="openhym" v-else>
  58. NO:{{userInfo.SN}}<image src="../../static/icon/hym.png" mode="" class="hym" >
  59. </view>
  60. </view>
  61. <view class="my-order">
  62. <view class="box-title flex borde-b">
  63. <view class="title"><text>我的订单</text></view>
  64. <view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover"><text class="iconfont iconenter"></text></view>
  65. </view>
  66. <view class="order-section">
  67. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
  68. <view class=" icon1 position-relative">
  69. <image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
  70. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  71. <text>{{ orderInfo.unshipped_count }}</text>
  72. </view>
  73. </view>
  74. <text>待发货</text>
  75. </view>
  76. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
  77. <view class="icon1 position-relative">
  78. <image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
  79. <view class="corner" v-if="orderInfo.received_count > 0">
  80. <text>{{ orderInfo.received_count }}</text>
  81. </view>
  82. </view>
  83. <text>待收货</text>
  84. </view>
  85. <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover" :hover-stay-time="50">
  86. <view class="icon1 position-relative">
  87. <image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
  88. <view class="corner" v-if="orderInfo.evaluated_count > 0">
  89. <text>{{ orderInfo.evaluated_count }}</text>
  90. </view>
  91. </view>
  92. <text>待评价</text>
  93. </view>
  94. <view class="order-item" @click="navTo('/pages/order/refundOrder?state=0')" hover-class="common-hover" :hover-stay-time="50">
  95. <view class=" icon1 position-relative"><image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image></view>
  96. <text>退款</text>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- <view class="cover-container"> -->
  102. <view class="vip" @click="navTo('/pages/wallet/openMember')" v-if="userInfo.level == 0"></view>
  103. <!-- 订单 -->
  104. <view class="item-box " v-if="isShowIllegality">
  105. <view class="order-section order">
  106. <view class="order-item" @click="navTo('/pages/wallet/wallet')" hover-class="common-hover" :hover-stay-time="50">
  107. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/balance.png" mode="aspectFit"></image></view>
  108. <text>我的余额</text>
  109. </view>
  110. <view class="order-item" @click="navTo('/pages/award/award')" hover-class="common-hover" :hover-stay-time="50">
  111. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/commission.png" mode="aspectFit"></image></view>
  112. <text>我的佣金</text>
  113. </view>
  114. <view class="order-item" @click="navTo('/pages/coupon/consumer')" hover-class="common-hover" :hover-stay-time="50">
  115. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/coupon.png" mode="aspectFit"></image></view>
  116. <text>我的消费券</text>
  117. </view>
  118. <view class="order-item" @click="navTo('/pages/scoreAccumulate/scoreAccumulate')" hover-class="common-hover" :hover-stay-time="50">
  119. <view class=" icon position-relative"><image class="icon-img" src="../../static/user/integral.png" mode="aspectFit"></image></view>
  120. <text>我的积分</text>
  121. </view>
  122. </view>
  123. <!-- 浏览历史 -->
  124. <view class="history-section ">
  125. <uni-list>
  126. <uni-list-item v-if="isShowIllegality" title="我的推广" @click="navTo('/pages/myteam/myteam')" thumb="/static/user/tuiguang.png"></uni-list-item>
  127. <uni-list-item title="邀请海报" @click="navTo('/pages/shareQrCode/index')" thumb="/static/user/haibao.png"></uni-list-item>
  128. <uni-list-item title="兑换会员卡" @click="go" thumb="/static/icon/czhy.png" v-if="userInfo.level == 0"></uni-list-item>
  129. <!-- <uni-list-item title="兑换会员卡" @click="go" thumb="/static/icon/czhy.png"></uni-list-item> -->
  130. <uni-list-item title="我的收藏" @click="navTo('/pages/favorites/favorites')" thumb="/static/user/collect.png"></uni-list-item>
  131. <uni-list-item title="收货地址" @click="navTo('/pages/address/address')" thumb="/static/user/address.png"></uni-list-item>
  132. <uni-list-item title="商家入口" @click="navTo('/pages/merchant/merchant')" thumb="/static/user/shopping.png" v-if="userInfo.service == 1"></uni-list-item>
  133. </uni-list>
  134. </view>
  135. </view>
  136. <!-- </scroll-view> -->
  137. <uni-popup ref="hympop" type="center">
  138. <view class="hym-wrap">
  139. <view class="hym-tit">
  140. 我的会员码
  141. </view>
  142. <view class="hym-val">
  143. <tki-qrcode :key="hym" cid="tki-qrcode-canvas" ref="qrcode"
  144. :val="hym" :size="300" unit="upx" background="#ffffff"
  145. foreground="#333333" pdground="#333333" icon="" :iconSize="0" :lv="3" :onval="true"
  146. :loadMake="true" :usingComponents="true" />
  147. </view>
  148. <view class="hym-num">
  149. 会员编号:{{hym}}
  150. </view>
  151. </view>
  152. </uni-popup>
  153. <uni-popup ref="popup" type="center">
  154. <view class="popup-box">
  155. <view class="img">
  156. <view class="img-font">兑换会员卡</view>
  157. <view class="img-bg"><image src="../../static/img/img009.png" mode=""></image></view>
  158. </view>
  159. <view class="mian">
  160. <view class="main-item">
  161. <view class="font">卡号</view>
  162. <input type="text" v-model="card" class="input" placeholder="请输入卡号" placeholder-class="input-font" />
  163. </view>
  164. <view class="main-item" style="margin-top: 40rpx;">
  165. <view class="font">密码</view>
  166. <input type="password" v-model="pwd" placeholder="请输入密码" class="input" placeholder-class="input-font" />
  167. </view>
  168. <view class="main-item" style="margin-top: 40rpx;">
  169. <view class="font">选择门店</view>
  170. <view class="input" @click="chooseStore">{{ storeInfo.name || '请选择门店' }}</view>
  171. </view>
  172. <view class="comfirm-box">
  173. <view class="cancel" @click="cancel">取消</view>
  174. <view class="comfirm" @click="comfirm()">确认兑换</view>
  175. </view>
  176. </view>
  177. </view>
  178. </uni-popup>
  179. </view>
  180. </template>
  181. <script>
  182. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  183. import { verification } from '@/api/merchant.js';
  184. import { mapState, mapMutations } from 'vuex';
  185. import uniList from '@/components/uni-list/uni-list.vue';
  186. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  187. import { orderData, orderVerific } from '@/api/user.js';
  188. import { getUserInfo } from '@/api/login.js';
  189. import tkiQrcodes from '@/components/tki-qrcode/tki-qrcode.vue';
  190. let startY = 0,
  191. moveY = 0,
  192. pageAtTop = true;
  193. export default {
  194. components: {
  195. uniList,
  196. uniListItem,
  197. uniPopup,
  198. tkiQrcodes
  199. },
  200. data() {
  201. return {
  202. hym: '',//会员编号
  203. coverTransform: 'translateY(0px)',
  204. coverTransition: '0s',
  205. moving: false,
  206. userDowm: 0, //卡片升级专属高度
  207. userMaxDowm: 0, //卡片最高高度
  208. orderinfo: {
  209. complete_count: 0,
  210. received_count: 0,
  211. unshipped_count: 0,
  212. order_count: 0
  213. },
  214. // 判断是否已经点击过一次取消关注公众号
  215. watchful: true,
  216. card: '',
  217. pwd: '',
  218. // storeInfo: {
  219. // name: ''
  220. // },
  221. qrsize: 80, // 二维码大小
  222. cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
  223. size: 500, //生成的二维码大小
  224. unit: 'upx', //大小单位尺寸
  225. // show: true,//默认使用组件中的image标签显示二维码
  226. val: '', //要生成的内容
  227. background: '#ffffff', //二维码背景色
  228. foreground: '#333333', //二维码前景色
  229. pdground: '#333333', //二维码角标色
  230. icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
  231. iconSize: 40, //二维码图标大小
  232. lv: 3, //容错级别
  233. onval: true, //监听val值变化自动重新生成二维码
  234. loadMake: false, //组件初始化完成后自动生成二维码,val需要有值
  235. usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
  236. showLoading: true, //是否显示loading
  237. loadingText: '二维码生成中', //loading文字
  238. src: '', // 二维码生成后的图片地址或base64
  239. ratio: 1, //页面比例用于计算
  240. ctxSrc: '', //要显示的图片
  241. loading: true, //是否载入图片中
  242. };
  243. },
  244. onShow() {
  245. // 判断是否已经登录
  246. if (this.hasLogin) {
  247. this.loadBaseData();
  248. }
  249. },
  250. onReady() {
  251. // 初始化获取页面宽度
  252. uni.createSelectorQuery()
  253. .select('.container')
  254. .fields(
  255. {
  256. size: true
  257. },
  258. data => {
  259. // 计算最多下拉的高度
  260. this.userDowm = Math.floor((data.width / 750) * 200);
  261. // 计算最大触发修改高度事件
  262. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  263. }
  264. )
  265. .exec();
  266. },
  267. computed: {
  268. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
  269. jcdj(){
  270. if(this.userInfo.award_level_info != null) {
  271. if(this.userInfo.group_level_info != null){
  272. return this.userInfo.award_level_info.id < this.userInfo.group_level_info.id ? this.userInfo.award_level_info.name : this.userInfo.group_level_info.name
  273. } else {
  274. return this.userInfo.award_level_info.name
  275. }
  276. }else {
  277. if(this.userInfo.group_level_info != null){
  278. return this.userInfo.group_level_info.name
  279. }else {
  280. return '无'
  281. }
  282. }
  283. },
  284. // #ifdef H5
  285. ...mapState(['weichatObj']),
  286. // #endif
  287. ...mapState(['isShowIllegality','canChange','storeInfo'])
  288. },
  289. methods: {
  290. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  291. // 打开会员码
  292. openhym() {
  293. if(this.userInfo.vip.card_no){
  294. this.hym = this.userInfo.vip.card_no
  295. }else {
  296. this.hym = this.userInfo.SN
  297. }
  298. this.$refs.hympop.open()
  299. },
  300. // 加载初始数据
  301. loadBaseData() {
  302. let obj = this;
  303. getUserInfo({})
  304. .then(({ data }) => {
  305. orderData({})
  306. .then(({ data }) => {
  307. obj.setOrderInfo(data);
  308. })
  309. .catch(e => {
  310. obj.setOrderInfo({
  311. complete_count: 0, //完成
  312. received_count: 0, //待收货
  313. unshipped_count: 0, //待发货
  314. order_count: 0, //订单总数
  315. unpaid_count: 0 //待付款
  316. });
  317. });
  318. obj.setUserInfo(data);
  319. // 判断是否已经关注公众号
  320. if (data.wechat.subscribe == 0 && obj.watchful) {
  321. uni.showModal({
  322. title: '温馨提醒',
  323. content: '为提供更好的服务,请关注公众号。',
  324. success: res => {
  325. obj.watchful = false;
  326. // 判断是否点击了确认
  327. if (res.confirm) {
  328. uni.navigateTo({
  329. url: '/pages/shareQrCode/wechatQr'
  330. });
  331. }
  332. }
  333. });
  334. }
  335. })
  336. .catch(e => {
  337. console.log(e);
  338. });
  339. },
  340. /**
  341. * 统一跳转接口,拦截未登录路由
  342. * navigator标签现在默认没有转场动画,所以用view
  343. */
  344. navTo(url) {
  345. if (!this.hasLogin) {
  346. url = '/pages/public/login';
  347. // #ifdef H5
  348. let weichatBrowser = uni.getStorageSync('weichatBrowser');
  349. // 判断是否为微信浏览器
  350. if (weichatBrowser) {
  351. url = '/pages/public/wxLogin';
  352. }
  353. // #endif
  354. // #ifdef MP-WEIXIN
  355. url = '/pages/public/wxLogin';
  356. // #endif
  357. }
  358. uni.navigateTo({
  359. url
  360. });
  361. },
  362. /**
  363. * 会员卡下拉和回弹
  364. * 1.关闭bounce避免ios端下拉冲突
  365. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  366. * transition设置0.1秒延迟,让css来过渡这段空窗期
  367. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  368. */
  369. coverTouchstart(e) {
  370. // console.log(e);
  371. if (pageAtTop === false) {
  372. return;
  373. }
  374. this.coverTransition = 'transform .1s linear';
  375. startY = e.touches[0].clientY;
  376. },
  377. coverTouchmove(e) {
  378. // console.log(e);
  379. moveY = e.touches[0].clientY;
  380. let moveDistance = moveY - startY;
  381. let maxDowm = this.userMaxDowm;
  382. let Dowm = this.userDowm;
  383. if (moveDistance < 0) {
  384. this.moving = false;
  385. return;
  386. }
  387. this.moving = true;
  388. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  389. moveDistance = Dowm;
  390. }
  391. if (moveDistance > 0 && moveDistance <= Dowm) {
  392. this.coverTransform = `translateY(${moveDistance}px)`;
  393. }
  394. },
  395. coverTouchend() {
  396. if (this.moving === false) {
  397. return;
  398. }
  399. this.moving = false;
  400. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  401. this.coverTransform = 'translateY(0px)';
  402. },
  403. // 核销
  404. openQr() {
  405. let obj = this;
  406. // #ifndef H5
  407. uni.scanCode({
  408. success(e) {
  409. obj.orderVerific(e.result);
  410. }
  411. });
  412. // #endif
  413. // #ifdef H5
  414. this.weichatObj.scanQRCode({
  415. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  416. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  417. success: function(res) {
  418. obj.orderVerific(res.resultStr); // 当needResult 为 1 时,扫码返回的结果
  419. }
  420. });
  421. // #endif
  422. },
  423. // 核销请求
  424. orderVerific(data) {
  425. orderVerific({
  426. verify_code: data
  427. })
  428. .then(e => {
  429. uni.showModal({
  430. title: '核销',
  431. content: '已核销成功',
  432. showCancel: false
  433. });
  434. })
  435. .catch(e => {
  436. uni.showModal({
  437. title: '错误',
  438. content: JSON.stringify(e),
  439. showCancel: false
  440. });
  441. console.log(e);
  442. });
  443. },
  444. // 选择门店
  445. chooseStore() {
  446. if(this.canChange == 0) {
  447. return
  448. }else {
  449. uni.navigateTo({
  450. url: '/pages/shoping/list?type=3'
  451. });
  452. }
  453. },
  454. go() {
  455. this.$refs.popup.open();
  456. },
  457. cancel() {
  458. this.$refs.popup.close();
  459. this.card = '';
  460. this.pwd = '';
  461. // this.storeInfo = { name: '' };
  462. },
  463. comfirm() {
  464. verification({
  465. card_number: this.card,
  466. card_password: this.pwd,
  467. type: 0,
  468. is_confirm: 1,
  469. reg_store_id: this.storeInfo.id
  470. })
  471. .then(e => {
  472. console.log(e);
  473. this.card = '';
  474. this.pwd = '';
  475. // this.storeInfo = { name: '' };
  476. this.loadBaseData()
  477. })
  478. .catch(e => {
  479. console.log(e);
  480. this.card = '';
  481. this.pwd = '';
  482. // this.storeInfo = { name: '' };
  483. });
  484. this.$refs.popup.close();
  485. }
  486. }
  487. };
  488. </script>
  489. <style lang="scss">
  490. %flex-center {
  491. display: flex;
  492. flex-direction: column;
  493. justify-content: center;
  494. align-items: center;
  495. }
  496. %section {
  497. display: flex;
  498. justify-content: space-around;
  499. align-content: center;
  500. background: #fff;
  501. border-radius: 10rpx;
  502. }
  503. .container {
  504. height: 100%;
  505. background-color: #ffffff;
  506. /* #ifdef APP-PLUS */
  507. .bar-height {
  508. height: var(--status-bar-height);
  509. background-color: $base-color;
  510. }
  511. /* #endif */
  512. }
  513. .content-box {
  514. height: 100%;
  515. }
  516. .user-section {
  517. height: 435rpx;
  518. padding: 60rpx 0 0 0;
  519. position: relative;
  520. .bg {
  521. position: absolute;
  522. height: 480rpx;
  523. width: 100%;
  524. left: 0;
  525. top: 0;
  526. image {
  527. width: 100%;
  528. height: 100%;
  529. }
  530. // background-color: $base-color;
  531. }
  532. }
  533. .user-box {
  534. position: relative;
  535. z-index: 0;
  536. margin: 0 auto;
  537. width: 90%;
  538. background-color: #e9f8f1;
  539. }
  540. .user-info-box {
  541. width: 100%;
  542. padding-left: 20rpx;
  543. margin: 0 auto;
  544. display: flex;
  545. align-items: stretch;
  546. border-radius: 20rpx;
  547. color: white;
  548. display: flex;
  549. justify-content: space-between;
  550. .detail {
  551. margin: 20rpx 0 0 0;
  552. height: 130rpx;
  553. .portrait-box {
  554. height: 100%;
  555. .portrait {
  556. width: 130rpx;
  557. height: 100%;
  558. border: 5rpx solid #fff;
  559. border-radius: 50%;
  560. }
  561. }
  562. .info-box {
  563. margin-left: 20rpx;
  564. line-height: 1.5;
  565. color: black;
  566. .username {
  567. font-size: $font-lg + 6rpx;
  568. height: 100%;
  569. }
  570. }
  571. }
  572. .config {
  573. margin-top: 60rpx;
  574. font-size: 28rpx;
  575. font-family: PingFang SC;
  576. font-weight: 500;
  577. color: #52c696;
  578. display: flex;
  579. justify-content: center;
  580. align-items: center;
  581. width: 165rpx;
  582. height: 64rpx;
  583. background: #ffffff;
  584. border-radius: 32px 0px 0px 32px;
  585. .setting {
  586. width: 32rpx;
  587. height: 32rpx;
  588. image {
  589. width: 100%;
  590. height: 100%;
  591. }
  592. // margin-right: 51rpx;
  593. }
  594. }
  595. }
  596. .vip-card-box {
  597. display: flex;
  598. flex-direction: column;
  599. color: #f7d680;
  600. height: 240rpx;
  601. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  602. border-radius: 16rpx 16rpx 0 0;
  603. overflow: hidden;
  604. position: relative;
  605. padding: 20rpx 24rpx;
  606. .card-bg {
  607. position: absolute;
  608. top: 20rpx;
  609. right: 0;
  610. width: 380rpx;
  611. height: 260rpx;
  612. }
  613. .b-btn {
  614. position: absolute;
  615. right: 20rpx;
  616. top: 16rpx;
  617. width: 132rpx;
  618. height: 40rpx;
  619. text-align: center;
  620. line-height: 40rpx;
  621. font-size: 22rpx;
  622. color: #36343c;
  623. border-radius: 20px;
  624. background: linear-gradient(left, #f9e6af, #ffd465);
  625. z-index: 1;
  626. }
  627. .tit {
  628. font-size: $font-base + 2rpx;
  629. color: #f7d680;
  630. margin-bottom: 28rpx;
  631. .iconfont {
  632. color: #f6e5a3;
  633. margin-right: 16rpx;
  634. font-size: 30rpx;
  635. }
  636. }
  637. .e-b {
  638. font-size: $font-sm;
  639. color: #d8cba9;
  640. margin-top: 10rpx;
  641. }
  642. }
  643. .vip {
  644. margin: 0 30rpx;
  645. margin-top: -50rpx;
  646. height: 170rpx;
  647. background-image: url('../../static/user/upgrade.png');
  648. background-size: 100% 170rpx;
  649. }
  650. .cover-container {
  651. display: flex;
  652. flex-direction: column;
  653. background: $page-color-base;
  654. padding: 0 30rpx;
  655. position: relative;
  656. background: #f5f5f5;
  657. padding-bottom: 20rpx;
  658. margin-top: -110rpx;
  659. .arc {
  660. position: absolute;
  661. left: 0;
  662. top: -34rpx;
  663. width: 100%;
  664. height: 36rpx;
  665. }
  666. }
  667. .tj-sction {
  668. @extend %section;
  669. .tj-item {
  670. @extend %flex-center;
  671. flex-direction: column;
  672. height: 140rpx;
  673. font-size: $font-sm;
  674. color: #75787d;
  675. }
  676. .num {
  677. font-size: $font-lg;
  678. color: $font-color-dark;
  679. margin-bottom: 8rpx;
  680. }
  681. }
  682. .item-box {
  683. position: relative;
  684. background-color: white;
  685. top: -80rpx;
  686. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  687. .arc {
  688. position: absolute;
  689. left: 0;
  690. top: -34rpx;
  691. width: 100%;
  692. height: 36rpx;
  693. }
  694. .mendian {
  695. padding: 0 40rpx;
  696. height: 60rpx;
  697. background-color: #ffffff;
  698. display: flex;
  699. justify-content: space-between;
  700. align-items: center;
  701. margin-bottom: 20rpx;
  702. .mendian-lift {
  703. display: flex;
  704. line-height: 36rpx;
  705. .null-mendian {
  706. font-size: 28rpx;
  707. font-weight: bold;
  708. }
  709. .hym {
  710. width: 40rpx;
  711. height: 40rpx;
  712. margin-left: 10rpx;
  713. }
  714. .img {
  715. margin: 0 10rpx 0;
  716. width: 36rpx;
  717. height: 36rpx;
  718. image {
  719. width: 100%;
  720. height: 100%;
  721. }
  722. }
  723. }
  724. .mendian-right {
  725. display: flex;
  726. align-items: center;
  727. // line-height: 60rpx;
  728. .duihuan {
  729. font-size: 24rpx;
  730. }
  731. }
  732. }
  733. .my-order {
  734. width: 680rpx;
  735. margin: auto;
  736. // margin-top: 10rpx;
  737. // padding: 0 20rpx;
  738. border-radius: 20rpx;
  739. box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
  740. }
  741. .box-title {
  742. line-height: 1;
  743. padding: 30rpx;
  744. .title {
  745. font-size: $font-lg;
  746. font-weight: bold;
  747. }
  748. .link {
  749. font-size: $font-base - 2rpx;
  750. color: $font-color-light;
  751. }
  752. }
  753. // .order{
  754. // margin-top: 70rpx;
  755. // }
  756. .order-section {
  757. @extend %section;
  758. padding: 28rpx 0;
  759. .order-item {
  760. @extend %flex-center;
  761. // width: 120rpx;
  762. width: 25%;
  763. height: 120rpx;
  764. border-radius: 10rpx;
  765. font-size: $font-sm;
  766. color: $font-color-dark;
  767. }
  768. .iconfont {
  769. font-size: 48rpx;
  770. margin-bottom: 18rpx;
  771. color: #fa436a;
  772. }
  773. .icon-shouhoutuikuan {
  774. font-size: 44rpx;
  775. }
  776. .icon {
  777. height: 88rpx;
  778. width: 90rpx;
  779. margin-bottom: 18rpx;
  780. background-size: 100%;
  781. background-repeat: no-repeat;
  782. background-position: center;
  783. .icon-img {
  784. width: 100%;
  785. height: 100%;
  786. }
  787. }
  788. .icon1 {
  789. height: 50rpx;
  790. width: 48rpx;
  791. margin-bottom: 18rpx;
  792. background-size: 100%;
  793. background-repeat: no-repeat;
  794. background-position: center;
  795. .icon-img {
  796. width: 100%;
  797. height: 100%;
  798. }
  799. }
  800. }
  801. }
  802. .history-section {
  803. // padding: 30rpx 0 0;
  804. margin-top: 20rpx;
  805. background: #fff;
  806. border-radius: 10rpx;
  807. .sec-header {
  808. display: flex;
  809. align-items: center;
  810. font-size: $font-base;
  811. color: $font-color-dark;
  812. line-height: 40rpx;
  813. margin-left: 30rpx;
  814. padding-top: 30rpx;
  815. .iconfont {
  816. font-size: 44rpx;
  817. color: $color-red;
  818. margin-right: 16rpx;
  819. line-height: 40rpx;
  820. }
  821. }
  822. .h-list {
  823. white-space: nowrap;
  824. padding: 30rpx 30rpx 0;
  825. image {
  826. display: inline-block;
  827. width: 160rpx;
  828. height: 160rpx;
  829. margin-right: 20rpx;
  830. border-radius: 10rpx;
  831. }
  832. }
  833. }
  834. .popup-box {
  835. width: 650rpx;
  836. padding-bottom: 30rpx;
  837. background-color: #ffffff;
  838. border-radius: 20rpx;
  839. position: relative;
  840. .img {
  841. position: relative;
  842. top: -56rpx;
  843. left: 0;
  844. width: 650rpx;
  845. height: 132rpx;
  846. z-index: 100;
  847. text-align: center;
  848. line-height: 132rpx;
  849. .img-bg {
  850. position: absolute;
  851. left: 50%;
  852. top: 0;
  853. margin-left: -250rpx;
  854. border-radius: 20rpx 20rpx 0 0;
  855. width: 500rpx;
  856. height: 132rpx;
  857. image {
  858. width: 100%;
  859. height: 100%;
  860. }
  861. }
  862. .img-font {
  863. line-height: 120rpx;
  864. position: relative;
  865. z-index: 10;
  866. text-align: center;
  867. font-size: 32rpx;
  868. font-weight: bold;
  869. color: #54300f;
  870. }
  871. }
  872. .mian {
  873. margin-top: -10rpx;
  874. display: flex;
  875. flex-direction: column;
  876. align-items: center;
  877. // padding: 32rpx 32rpx;
  878. background-color: #ffffff;
  879. border-radius: 0 0 20rpx 20rpx;
  880. text-align: center;
  881. padding: 20rpx;
  882. width: 100%;
  883. .main-item {
  884. display: flex;
  885. width: 580rpx;
  886. align-items: center;
  887. padding: 20rpx 40rpx;
  888. border-radius: 10rpx;
  889. background: #f5f2e5;
  890. height: 100rpx;
  891. .font {
  892. color: #623324;
  893. font-size: 30rpx;
  894. }
  895. .input {
  896. margin-left: 20rpx;
  897. text-align: left;
  898. color: #cdc0b3;
  899. font-size: 28rpx;
  900. }
  901. .input-font {
  902. color: #cdc0b3;
  903. font-size: 28rpx;
  904. }
  905. }
  906. .comfirm-box {
  907. margin-top: 80rpx;
  908. display: flex;
  909. // margin-bottom: 32rpx;
  910. // justify-content: space-around;
  911. .cancel {
  912. display: flex;
  913. align-items: center;
  914. justify-content: center;
  915. width: 260rpx;
  916. height: 100rpx;
  917. border: 1px solid #dcc786;
  918. border-radius: 10px;
  919. font-size: 32rpx;
  920. color: #605128;
  921. }
  922. .comfirm {
  923. margin-left: 60rpx;
  924. display: flex;
  925. align-items: center;
  926. justify-content: center;
  927. width: 260rpx;
  928. height: 100rpx;
  929. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  930. border-radius: 10px;
  931. font-size: 32rpx;
  932. color: #605128;
  933. }
  934. }
  935. }
  936. }
  937. .hym-wrap {
  938. width: 500rpx;
  939. height: 500rpx;
  940. background-color: #fff;
  941. text-align: center;
  942. border-radius: 20rpx;
  943. .hym-tit {
  944. color: $base-color;
  945. padding: 20rpx 0;
  946. font-size: 48rpx;
  947. }
  948. .hym-val {
  949. width: 300rpx;
  950. height: 300rpx;
  951. margin: auto;
  952. }
  953. .hym-num {
  954. font-size: 28rpx;
  955. font-weight: bold;
  956. padding-top: 20rpx;
  957. }
  958. }
  959. .sy-box {
  960. height: 148rpx;
  961. // background-color: #bfa;
  962. .sy-item {
  963. width: 30%;
  964. flex-grow: 1;
  965. text-align: center;
  966. font-size: 24rpx;
  967. font-family: PingFang SC;
  968. font-weight: 500;
  969. color: #3bbc88;
  970. .sy-item-val {
  971. margin-top: 6rpx;
  972. font-size: 28rpx;
  973. }
  974. .sy-item-name {
  975. color: #000000;
  976. }
  977. }
  978. .jg {
  979. width: 2rpx;
  980. height: 40rpx;
  981. background-color: #d4ded8;
  982. }
  983. }
  984. </style>