123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194 |
- <template>
- <view class="container">
- <!-- #ifdef APP-PLUS -->
- <view class="bar-height"></view>
- <!-- #endif -->
- <!-- <scroll-view class="content-box" scroll-y="true"> -->
- <view class="user-section">
- <view class="bg">
- <image src="../../static/user/ground.png" mode=""></image>
- </view>
- <!-- top -->
- <view class="user-box">
- <view class="user-info-box ">
- <view class="detail flex" @click="navTo('/pages/userinfo/userinfo')">
- <view class="portrait-box">
- <image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image>
- </view>
- <view class="info-box">
- <view class="username">{{ userInfo.nickname || '游客' }}</view>
- <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>
- <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>
- </view>
- </view>
- <view class="config">
- <view class="setting " @click="navTo('/pages/userinfo/userinfo')">
- <image src="../../static/user/set.png" mode=""></image>
- </view>
- 设置
- </view>
- </view>
- <view class="sy-box flex">
- <view class="sy-item">
- <view class="sy-item-name">团队等级</view>
- <view class="sy-item-val">
- {{ userInfo.group_level_info != null? userInfo.group_level_info.name : '无' }}
- </view>
- </view>
- <view class="jg"></view>
- <view class="sy-item">
- <view class="sy-item-name">极差奖励等级</view>
- <!-- <view class="sy-item-val">{{jcdj}}</view> -->
- <view class="sy-item-val">
- {{userInfo.award_level_info!= null? userInfo.award_level_info.name : '无'}}
- </view>
- </view>
- <view class="jg"></view>
- <view class="sy-item">
- <view class="sy-item-name">冻结极差奖</view>
- <view class="sy-item-val">{{ userInfo.lock_group_award || 0 }}</view>
- </view>
- </view>
- </view>
- <!-- 会员卡功能 -->
- </view>
- <view class="item-box">
- <image class="arc" src="/static/img/arc.png"></image>
- <view class="mendian">
- <view class="mendian-lift" v-if="userInfo.level == 1 && userInfo.service == 0">
- <view class="img">
- <image src="../../static/img/mendian01.png" mode=""></image>
- </view>
- <text class="null-mendian">{{ userInfo.store_name}}</text>
- </view>
- <view class="mendian-lift" v-else>
- </view>
- <view class="mendian-lift" @click="openhym" v-if="userInfo.vip &&userInfo.vip.card_no">
- NO:{{userInfo.vip.card_no}}
- <image src="../../static/icon/hym.png" mode="" class="hym">
- </view>
- <view class="mendian-lift" @click="openhym" v-else>
- NO:{{userInfo.SN}}
- <image src="../../static/icon/hym.png" mode="" class="hym">
- </view>
- </view>
- <view class="my-order">
- <view class="box-title flex borde-b">
- <view class="title"><text>我的订单</text></view>
- <view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover"><text
- class="iconfont iconenter"></text></view>
- </view>
- <view class="order-section">
- <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class=" icon1 position-relative">
- <image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
- <view class="corner" v-if="orderInfo.unshipped_count > 0">
- <text>{{ orderInfo.unshipped_count }}</text>
- </view>
- </view>
- <text>待发货</text>
- </view>
- <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class="icon1 position-relative">
- <image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
- <view class="corner" v-if="orderInfo.received_count > 0">
- <text>{{ orderInfo.received_count }}</text>
- </view>
- </view>
- <text>待收货</text>
- </view>
- <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class="icon1 position-relative">
- <image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
- <view class="corner" v-if="orderInfo.evaluated_count > 0">
- <text>{{ orderInfo.evaluated_count }}</text>
- </view>
- </view>
- <text>待评价</text>
- </view>
- <view class="order-item" @click="navTo('/pages/order/refundOrder?state=0')"
- hover-class="common-hover" :hover-stay-time="50">
- <view class=" icon1 position-relative">
- <image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image>
- </view>
- <text>退款</text>
- </view>
- </view>
- </view>
- <view class="my-order">
- <view class="box-title flex borde-b">
- <view class="title"><text>我的单数</text></view>
- </view>
- <view class="order-section">
- <view class="order-item">
- <view class="order-num">
- {{userInfo.suit_num || 0}}
- </view>
- <text>套装单数</text>
- </view>
- <view class="xian"></view>
- <view class="order-item">
- <view class="order-num">
- {{userInfo.recommend_suit_num || 0}}
- </view>
- <text>直推单数</text>
- </view>
- <view class="xian"></view>
- <view class="order-item">
- <view class="order-num">
- {{userInfo.group_suit_num || 0}}
- </view>
- <text>团队单数</text>
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="cover-container"> -->
- <view class="vip" @click="navTo('/pages/wallet/openMember')"></view>
- <!-- 订单 -->
- <view class="item-box " v-if="isShowIllegality">
- <view class="order-section order">
- <view class="order-item" @click="navTo('/pages/wallet/wallet')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class=" icon position-relative">
- <image class="icon-img" src="../../static/user/balance.png" mode="aspectFit"></image>
- </view>
- <text>我的余额</text>
- </view>
- <view class="order-item" @click="navTo('/pages/award/award')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class=" icon position-relative">
- <image class="icon-img" src="../../static/user/commission.png" mode="aspectFit"></image>
- </view>
- <text>我的佣金</text>
- </view>
- <view class="order-item" @click="navTo('/pages/coupon/consumer')" hover-class="common-hover"
- :hover-stay-time="50">
- <view class=" icon position-relative">
- <image class="icon-img" src="../../static/user/coupon.png" mode="aspectFit"></image>
- </view>
- <text>我的消费券</text>
- </view>
- <view class="order-item" @click="navTo('/pages/scoreAccumulate/scoreAccumulate')"
- hover-class="common-hover" :hover-stay-time="50">
- <view class=" icon position-relative">
- <image class="icon-img" src="../../static/user/integral.png" mode="aspectFit"></image>
- </view>
- <text>我的积分</text>
- </view>
- </view>
- <!-- 浏览历史 -->
- <view class="history-section ">
- <uni-list>
- <uni-list-item v-if="isShowIllegality" title="我的推广" @click="navTo('/pages/myteam/myteam')"
- thumb="/static/user/tuiguang.png"></uni-list-item>
- <uni-list-item title="邀请海报" @click="navTo('/pages/shareQrCode/index')"
- thumb="/static/user/haibao.png"></uni-list-item>
- <uni-list-item title="兑换会员卡" @click="go" thumb="/static/icon/czhy.png"
- v-if="userInfo.level == 0"></uni-list-item>
- <!-- <uni-list-item title="兑换会员卡" @click="go" thumb="/static/icon/czhy.png"></uni-list-item> -->
- <uni-list-item title="我的收藏" @click="navTo('/pages/favorites/favorites')"
- thumb="/static/user/collect.png"></uni-list-item>
- <uni-list-item title="百业推广" @click="navTo('/pages/myteam/myteamQian')"
- thumb="/static/user/tui.png"></uni-list-item>
- <uni-list-item title="收货地址" @click="navTo('/pages/address/address')"
- thumb="/static/user/address.png"></uni-list-item>
- <uni-list-item title="商家入口" @click="navTo('/pages/merchant/merchant')"
- thumb="/static/user/shopping.png" v-if="userInfo.service == 1 || type==1"></uni-list-item>
- <uni-list-item :title="'商家入驻'+(type==-1?'':type==0?'(审核中)':type==1?'(成功)':'(失败)')"
- @click="navTo('/pages/merchant/becomeShop')" thumb="/static/user/complete.png"></uni-list-item>
- </uni-list>
- </view>
- </view>
- <!-- </scroll-view> -->
- <uni-popup ref="hympop" type="center">
- <view class="hym-wrap">
- <view class="hym-tit">
- 我的会员码
- </view>
- <view class="hym-val">
- <tki-qrcode :key="hym" cid="tki-qrcode-canvas" ref="qrcode" :val="hym" :size="300" unit="upx"
- background="#ffffff" foreground="#333333" pdground="#333333" icon="" :iconSize="0" :lv="3"
- :onval="true" :loadMake="true" :usingComponents="true" />
- </view>
- <view class="hym-num">
- 会员编号:{{hym}}
- </view>
- </view>
- </uni-popup>
- <uni-popup ref="popup" type="center">
- <view class="popup-box">
- <view class="img">
- <view class="img-font">兑换会员卡</view>
- <view class="img-bg">
- <image src="../../static/img/img009.png" mode=""></image>
- </view>
- </view>
- <view class="mian">
- <view class="main-item">
- <view class="font">卡号</view>
- <input type="text" v-model="card" class="input" placeholder="请输入卡号"
- placeholder-class="input-font" />
- </view>
- <view class="main-item" style="margin-top: 40rpx;">
- <view class="font">密码</view>
- <input type="password" v-model="pwd" placeholder="请输入密码" class="input"
- placeholder-class="input-font" />
- </view>
- <view class="main-item" style="margin-top: 40rpx;">
- <view class="font">选择门店</view>
- <view class="input" @click="chooseStore">{{ storeInfo.name || '请选择门店' }}</view>
- </view>
- <view class="comfirm-box">
- <view class="cancel" @click="cancel">取消</view>
- <view class="comfirm" @click="comfirm()">确认兑换</view>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import uniPopup from '@/components/uni-popup/uni-popup.vue';
- import {
- verification,
- storeIndex
- } from '@/api/merchant.js';
- import {
- mapState,
- mapMutations
- } from 'vuex';
- import uniList from '@/components/uni-list/uni-list.vue';
- import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
- import {
- orderData,
- orderVerific
- } from '@/api/user.js';
- import {
- getUserInfo
- } from '@/api/login.js';
- import tkiQrcodes from '@/components/tki-qrcode/tki-qrcode.vue';
- let startY = 0,
- moveY = 0,
- pageAtTop = true;
- export default {
- components: {
- uniList,
- uniListItem,
- uniPopup,
- tkiQrcodes
- },
- data() {
- return {
- type: -1, //-1无事发生0审核中1成功2失败
- hym: '', //会员编号
- coverTransform: 'translateY(0px)',
- coverTransition: '0s',
- moving: false,
- userDowm: 0, //卡片升级专属高度
- userMaxDowm: 0, //卡片最高高度
- orderinfo: {
- complete_count: 0,
- received_count: 0,
- unshipped_count: 0,
- order_count: 0
- },
- // 判断是否已经点击过一次取消关注公众号
- watchful: true,
- card: '',
- pwd: '',
- // storeInfo: {
- // name: ''
- // },
- qrsize: 80, // 二维码大小
- cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
- size: 500, //生成的二维码大小
- unit: 'upx', //大小单位尺寸
- // show: true,//默认使用组件中的image标签显示二维码
- val: '', //要生成的内容
- background: '#ffffff', //二维码背景色
- foreground: '#333333', //二维码前景色
- pdground: '#333333', //二维码角标色
- icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
- iconSize: 40, //二维码图标大小
- lv: 3, //容错级别
- onval: true, //监听val值变化自动重新生成二维码
- loadMake: false, //组件初始化完成后自动生成二维码,val需要有值
- usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
- showLoading: true, //是否显示loading
- loadingText: '二维码生成中', //loading文字
- src: '', // 二维码生成后的图片地址或base64
- ratio: 1, //页面比例用于计算
- ctxSrc: '', //要显示的图片
- loading: true, //是否载入图片中
- };
- },
- onShow() {
- // 判断是否已经登录
- if (this.hasLogin) {
- this.loadBaseData();
- }
- },
- onReady() {
- // 初始化获取页面宽度
- uni.createSelectorQuery()
- .select('.container')
- .fields({
- size: true
- },
- data => {
- // 计算最多下拉的高度
- this.userDowm = Math.floor((data.width / 750) * 200);
- // 计算最大触发修改高度事件
- this.userMaxDowm = Math.floor((data.width / 750) * 250);
- }
- )
- .exec();
- },
- computed: {
- ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
- jcdj() {
- if (this.userInfo.award_level_info != null) {
- if (this.userInfo.group_level_info != null) {
- 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
- } else {
- return this.userInfo.award_level_info.name
- }
- } else {
- if (this.userInfo.group_level_info != null) {
- return this.userInfo.group_level_info.name
- } else {
- return '无'
- }
- }
- },
- // #ifdef H5
- ...mapState(['weichatObj']),
- // #endif
- ...mapState(['isShowIllegality', 'canChange', 'storeInfo'])
- },
- methods: {
- ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
- // 打开会员码
- openhym() {
- if (this.userInfo.vip.card_no) {
- this.hym = this.userInfo.vip.card_no
- } else {
- this.hym = this.userInfo.SN
- }
- this.$refs.hympop.open()
- },
- // 加载初始数据
- loadBaseData() {
- let obj = this;
- getUserInfo({})
- .then(({
- data
- }) => {
- orderData({})
- .then(({
- data
- }) => {
- obj.setOrderInfo(data);
- })
- .catch(e => {
- obj.setOrderInfo({
- complete_count: 0, //完成
- received_count: 0, //待收货
- unshipped_count: 0, //待发货
- order_count: 0, //订单总数
- unpaid_count: 0 //待付款
- });
- });
- obj.setUserInfo(data);
- // 判断是否已经关注公众号
- if (data.wechat.subscribe == 0 && obj.watchful) {
- uni.showModal({
- title: '温馨提醒',
- content: '为提供更好的服务,请关注公众号。',
- success: res => {
- obj.watchful = false;
- // 判断是否点击了确认
- if (res.confirm) {
- uni.navigateTo({
- url: '/pages/shareQrCode/wechatQr'
- });
- }
- }
- });
- }
- })
- .catch(e => {
- console.log(e);
- });
- storeIndex({}).then(e => {
- if (!e.data.apply) {
- obj.type = -1;
- if (e.data.store_info) {
- obj.type = 1;
- }
- } else {
- obj.type = e.data.apply.status;
- }
- })
- },
- /**
- * 统一跳转接口,拦截未登录路由
- * navigator标签现在默认没有转场动画,所以用view
- */
- navTo(url) {
- if (!this.hasLogin) {
- url = '/pages/public/login';
- // #ifdef H5
- let weichatBrowser = uni.getStorageSync('weichatBrowser');
- // 判断是否为微信浏览器
- if (weichatBrowser) {
- url = '/pages/public/wxLogin';
- }
- // #endif
- // #ifdef MP-WEIXIN
- url = '/pages/public/wxLogin';
- // #endif
- }
- uni.navigateTo({
- url
- });
- },
- /**
- * 会员卡下拉和回弹
- * 1.关闭bounce避免ios端下拉冲突
- * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
- * transition设置0.1秒延迟,让css来过渡这段空窗期
- * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
- */
- coverTouchstart(e) {
- // console.log(e);
- if (pageAtTop === false) {
- return;
- }
- this.coverTransition = 'transform .1s linear';
- startY = e.touches[0].clientY;
- },
- coverTouchmove(e) {
- // console.log(e);
- moveY = e.touches[0].clientY;
- let moveDistance = moveY - startY;
- let maxDowm = this.userMaxDowm;
- let Dowm = this.userDowm;
- if (moveDistance < 0) {
- this.moving = false;
- return;
- }
- this.moving = true;
- if (moveDistance >= Dowm && moveDistance < maxDowm) {
- moveDistance = Dowm;
- }
- if (moveDistance > 0 && moveDistance <= Dowm) {
- this.coverTransform = `translateY(${moveDistance}px)`;
- }
- },
- coverTouchend() {
- if (this.moving === false) {
- return;
- }
- this.moving = false;
- this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
- this.coverTransform = 'translateY(0px)';
- },
- // 核销
- openQr() {
- let obj = this;
- // #ifndef H5
- uni.scanCode({
- success(e) {
- obj.orderVerific(e.result);
- }
- });
- // #endif
- // #ifdef H5
- this.weichatObj.scanQRCode({
- needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
- scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
- success: function(res) {
- obj.orderVerific(res.resultStr); // 当needResult 为 1 时,扫码返回的结果
- }
- });
- // #endif
- },
- // 核销请求
- orderVerific(data) {
- orderVerific({
- verify_code: data
- })
- .then(e => {
- uni.showModal({
- title: '核销',
- content: '已核销成功',
- showCancel: false
- });
- })
- .catch(e => {
- uni.showModal({
- title: '错误',
- content: JSON.stringify(e),
- showCancel: false
- });
- console.log(e);
- });
- },
- // 选择门店
- chooseStore() {
- if (this.canChange == 0) {
- return
- } else {
- uni.navigateTo({
- url: '/pages/shoping/list?type=3'
- });
- }
- },
- go() {
- this.$refs.popup.open();
- },
- cancel() {
- this.$refs.popup.close();
- this.card = '';
- this.pwd = '';
- // this.storeInfo = { name: '' };
- },
- comfirm() {
- verification({
- card_number: this.card,
- card_password: this.pwd,
- type: 0,
- is_confirm: 1,
- reg_store_id: this.storeInfo.id
- })
- .then(e => {
- console.log(e);
- this.card = '';
- this.pwd = '';
- // this.storeInfo = { name: '' };
- this.loadBaseData()
- })
- .catch(e => {
- console.log(e);
- this.card = '';
- this.pwd = '';
- // this.storeInfo = { name: '' };
- });
- this.$refs.popup.close();
- }
- }
- };
- </script>
- <style lang="scss">
- %flex-center {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- %section {
- display: flex;
- justify-content: space-around;
- align-content: center;
- background: #fff;
- border-radius: 10rpx;
- }
- .container {
- height: 100%;
- background-color: #ffffff;
- /* #ifdef APP-PLUS */
- .bar-height {
- height: var(--status-bar-height);
- background-color: $base-color;
- }
- /* #endif */
- }
- .content-box {
- height: 100%;
- }
- .user-section {
- height: 435rpx;
- padding: 60rpx 0 0 0;
- position: relative;
- .bg {
- position: absolute;
- height: 480rpx;
- width: 100%;
- left: 0;
- top: 0;
- image {
- width: 100%;
- height: 100%;
- }
- // background-color: $base-color;
- }
- }
- .user-box {
- position: relative;
- z-index: 0;
- margin: 0 auto;
- width: 90%;
- background-color: #e9f8f1;
- }
- .user-info-box {
- width: 100%;
- padding-left: 20rpx;
- margin: 0 auto;
- display: flex;
- align-items: stretch;
- border-radius: 20rpx;
- color: white;
- display: flex;
- justify-content: space-between;
- .detail {
- margin: 20rpx 0 0 0;
- height: 130rpx;
- .portrait-box {
- height: 100%;
- .portrait {
- width: 130rpx;
- height: 100%;
- border: 5rpx solid #fff;
- border-radius: 50%;
- }
- }
- .info-box {
- margin-left: 20rpx;
- line-height: 1.5;
- color: black;
- .username {
- font-size: $font-lg + 6rpx;
- height: 100%;
- }
- }
- }
- .config {
- margin-top: 60rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #52c696;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 165rpx;
- height: 64rpx;
- background: #ffffff;
- border-radius: 32px 0px 0px 32px;
- .setting {
- width: 32rpx;
- height: 32rpx;
- image {
- width: 100%;
- height: 100%;
- }
- // margin-right: 51rpx;
- }
- }
- }
- .vip-card-box {
- display: flex;
- flex-direction: column;
- color: #f7d680;
- height: 240rpx;
- background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
- border-radius: 16rpx 16rpx 0 0;
- overflow: hidden;
- position: relative;
- padding: 20rpx 24rpx;
- .card-bg {
- position: absolute;
- top: 20rpx;
- right: 0;
- width: 380rpx;
- height: 260rpx;
- }
- .b-btn {
- position: absolute;
- right: 20rpx;
- top: 16rpx;
- width: 132rpx;
- height: 40rpx;
- text-align: center;
- line-height: 40rpx;
- font-size: 22rpx;
- color: #36343c;
- border-radius: 20px;
- background: linear-gradient(left, #f9e6af, #ffd465);
- z-index: 1;
- }
- .tit {
- font-size: $font-base + 2rpx;
- color: #f7d680;
- margin-bottom: 28rpx;
- .iconfont {
- color: #f6e5a3;
- margin-right: 16rpx;
- font-size: 30rpx;
- }
- }
- .e-b {
- font-size: $font-sm;
- color: #d8cba9;
- margin-top: 10rpx;
- }
- }
- .vip {
- margin: 0 30rpx;
- margin-top: -50rpx;
- height: 170rpx;
- background-image: url('../../static/user/upgrade.png');
- background-size: 100% 170rpx;
- }
- .cover-container {
- display: flex;
- flex-direction: column;
- background: $page-color-base;
- padding: 0 30rpx;
- position: relative;
- background: #f5f5f5;
- padding-bottom: 20rpx;
- margin-top: -110rpx;
- .arc {
- position: absolute;
- left: 0;
- top: -34rpx;
- width: 100%;
- height: 36rpx;
- }
- }
- .tj-sction {
- @extend %section;
- .tj-item {
- @extend %flex-center;
- flex-direction: column;
- height: 140rpx;
- font-size: $font-sm;
- color: #75787d;
- }
- .num {
- font-size: $font-lg;
- color: $font-color-dark;
- margin-bottom: 8rpx;
- }
- }
- .item-box {
- position: relative;
- background-color: white;
- top: -80rpx;
- box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
- .arc {
- position: absolute;
- left: 0;
- top: -34rpx;
- width: 100%;
- height: 36rpx;
- }
- .mendian {
- padding: 0 40rpx;
- height: 60rpx;
- background-color: #ffffff;
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20rpx;
- .mendian-lift {
- display: flex;
- line-height: 36rpx;
- .null-mendian {
- font-size: 28rpx;
- font-weight: bold;
- }
- .hym {
- width: 40rpx;
- height: 40rpx;
- margin-left: 10rpx;
- }
- .img {
- margin: 0 10rpx 0;
- width: 36rpx;
- height: 36rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .mendian-right {
- display: flex;
- align-items: center;
- // line-height: 60rpx;
- .duihuan {
- font-size: 24rpx;
- }
- }
- }
- .my-order {
- width: 680rpx;
- margin: 40rpx auto 0;
- // margin-top: 10rpx;
- // padding: 0 20rpx;
- border-radius: 20rpx;
- box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
- }
- .box-title {
- line-height: 1;
- padding: 30rpx;
- .title {
- font-size: $font-lg;
- font-weight: bold;
- }
- .link {
- font-size: $font-base - 2rpx;
- color: $font-color-light;
- }
- }
- // .order{
- // margin-top: 70rpx;
- // }
- .order-section {
- @extend %section;
- padding: 40rpx 0;
- align-items: center;
- .order-item {
- @extend %flex-center;
- // width: 120rpx;
- width: 25%;
- border-radius: 10rpx;
- font-size: $font-sm;
- color: $font-color-dark;
- }
- .xian {
- height: 30rpx;
- width: 1rpx;
- background: #000000;
- }
- .order-num {
- font-size: $font-sm + 10rpx;
- margin-bottom: 10rpx;
- }
- .iconfont {
- font-size: 48rpx;
- margin-bottom: 18rpx;
- color: #fa436a;
- }
- .icon-shouhoutuikuan {
- font-size: 44rpx;
- }
- .icon {
- height: 88rpx;
- width: 90rpx;
- margin-bottom: 18rpx;
- background-size: 100%;
- background-repeat: no-repeat;
- background-position: center;
- .icon-img {
- width: 100%;
- height: 100%;
- }
- }
- .icon1 {
- height: 50rpx;
- width: 48rpx;
- margin-bottom: 18rpx;
- background-size: 100%;
- background-repeat: no-repeat;
- background-position: center;
- .icon-img {
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .history-section {
- // padding: 30rpx 0 0;
- margin-top: 20rpx;
- background: #fff;
- border-radius: 10rpx;
- .sec-header {
- display: flex;
- align-items: center;
- font-size: $font-base;
- color: $font-color-dark;
- line-height: 40rpx;
- margin-left: 30rpx;
- padding-top: 30rpx;
- .iconfont {
- font-size: 44rpx;
- color: $color-red;
- margin-right: 16rpx;
- line-height: 40rpx;
- }
- }
- .h-list {
- white-space: nowrap;
- padding: 30rpx 30rpx 0;
- image {
- display: inline-block;
- width: 160rpx;
- height: 160rpx;
- margin-right: 20rpx;
- border-radius: 10rpx;
- }
- }
- }
- .popup-box {
- width: 650rpx;
- padding-bottom: 30rpx;
- background-color: #ffffff;
- border-radius: 20rpx;
- position: relative;
- .img {
- position: relative;
- top: -56rpx;
- left: 0;
- width: 650rpx;
- height: 132rpx;
- z-index: 100;
- text-align: center;
- line-height: 132rpx;
- .img-bg {
- position: absolute;
- left: 50%;
- top: 0;
- margin-left: -250rpx;
- border-radius: 20rpx 20rpx 0 0;
- width: 500rpx;
- height: 132rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .img-font {
- line-height: 120rpx;
- position: relative;
- z-index: 10;
- text-align: center;
- font-size: 32rpx;
- font-weight: bold;
- color: #54300f;
- }
- }
- .mian {
- margin-top: -10rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- // padding: 32rpx 32rpx;
- background-color: #ffffff;
- border-radius: 0 0 20rpx 20rpx;
- text-align: center;
- padding: 20rpx;
- width: 100%;
- .main-item {
- display: flex;
- width: 580rpx;
- align-items: center;
- padding: 20rpx 40rpx;
- border-radius: 10rpx;
- background: #f5f2e5;
- height: 100rpx;
- .font {
- color: #623324;
- font-size: 30rpx;
- }
- .input {
- margin-left: 20rpx;
- text-align: left;
- color: #cdc0b3;
- font-size: 28rpx;
- }
- .input-font {
- color: #cdc0b3;
- font-size: 28rpx;
- }
- }
- .comfirm-box {
- margin-top: 80rpx;
- display: flex;
- // margin-bottom: 32rpx;
- // justify-content: space-around;
- .cancel {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 260rpx;
- height: 100rpx;
- border: 1px solid #dcc786;
- border-radius: 10px;
- font-size: 32rpx;
- color: #605128;
- }
- .comfirm {
- margin-left: 60rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 260rpx;
- height: 100rpx;
- background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
- border-radius: 10px;
- font-size: 32rpx;
- color: #605128;
- }
- }
- }
- }
- .hym-wrap {
- width: 500rpx;
- height: 500rpx;
- background-color: #fff;
- text-align: center;
- border-radius: 20rpx;
- .hym-tit {
- color: $base-color;
- padding: 20rpx 0;
- font-size: 48rpx;
- }
- .hym-val {
- width: 300rpx;
- height: 300rpx;
- margin: auto;
- }
- .hym-num {
- font-size: 28rpx;
- font-weight: bold;
- padding-top: 20rpx;
- }
- }
- .sy-box {
- height: 148rpx;
- // background-color: #bfa;
- .sy-item {
- width: 30%;
- flex-grow: 1;
- text-align: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #3bbc88;
- .sy-item-val {
- margin-top: 6rpx;
- font-size: 28rpx;
- }
- .sy-item-name {
- color: #000000;
- }
- }
- .jg {
- width: 2rpx;
- height: 40rpx;
- background-color: #d4ded8;
- }
- }
- </style>
|