user.vue 26 KB

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