user.vue 25 KB

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