1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009 |
- <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.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>
- <!-- <view class="cover-container"> -->
- <view class="vip" @click="navTo('/pages/wallet/openMember')" v-if="userInfo.level == 0"></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/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"></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 } 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 {
- 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);
- });
- },
- /**
- * 统一跳转接口,拦截未登录路由
- * 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: auto;
- // 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: 28rpx 0;
- .order-item {
- @extend %flex-center;
- // width: 120rpx;
- width: 25%;
- height: 120rpx;
- border-radius: 10rpx;
- font-size: $font-sm;
- color: $font-color-dark;
- }
- .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>
|