user.vue 24 KB

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