1284 lines
31 KiB
Vue
1284 lines
31 KiB
Vue
<template>
|
||
<view :style="viewColor">
|
||
<view class='order-details'>
|
||
<!-- 给header上与data上加on为退款订单-->
|
||
<view v-if="orderInfo.orderList && orderInfo.orderList[0].activity_type != 2">
|
||
<view class='header acea-row row-middle' v-if="this.be_overdue">
|
||
<view class='pictrue'>
|
||
<image :src="imgUrl+'/static/order_1.gif'"></image>
|
||
</view>
|
||
<view class='data' v-if="!this.be_overday">
|
||
<view class='state' v-if='isSelfOrder'>请在{{this.be_overdue}}前完成支付!</view>
|
||
<!-- <view class='state' v-if='isSelfOrder' >请在{{this.be_overdue}}{{this.be_overhours}}前完成支付!</view> -->
|
||
<view class='state' v-else>请在{{this.be_overdue}}天{{this.be_overhours}}时前完成支付!</view>
|
||
|
||
<view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.create_time}}</text></view>
|
||
</view>
|
||
<view class='data' v-else>
|
||
<view class='state'>已逾期{{this.be_overdue}}天{{this.be_overhours}}时,请尽快完成支付!</view>
|
||
|
||
<view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.create_time}}</text></view>
|
||
</view>
|
||
</view>
|
||
<view class='nav'>
|
||
<view class='navCon acea-row row-between-wrapper'>
|
||
<view class="on">待付款</view>
|
||
<view>待发货</view>
|
||
<view>待收货</view>
|
||
<view>待评价</view>
|
||
<view>已完成</view>
|
||
</view>
|
||
<view class='progress acea-row row-between-wrapper'>
|
||
<view class='iconfont icon-webicon318 t-color'></view>
|
||
<view class='line'></view>
|
||
<view class='iconfont icon-yuandianxiao'></view>
|
||
<view class='line'></view>
|
||
<view class='iconfont icon-yuandianxiao'></view>
|
||
<view class='line'></view>
|
||
<view class='iconfont icon-yuandianxiao'></view>
|
||
<view class='line'></view>
|
||
<view class='iconfont icon-yuandianxiao'></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!--预售(代付款)-->
|
||
<view v-else class="presell_bg_header">
|
||
<view class='header presell_header'>
|
||
<view class="presell_payment" v-if="orderInfo.orderList"><text
|
||
class="iconfont icon-shijian1"></text>{{orderInfo.orderList[0].orderProduct[0].cart_info.productPresell.presell_type==1?'待支付':'待付定金'}}
|
||
</view>
|
||
<view class='data'>
|
||
<view class='state'>请在{{orderInfo.cancel_time}}前完成支付,超时订单将自动取消</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view>
|
||
<view class='address' v-if="orderInfo.orderList && orderInfo.orderList[0].order_type != 2">
|
||
<view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text></view>
|
||
<view>{{orderInfo.user_address}}</view>
|
||
</view>
|
||
<view class='line'>
|
||
<image :src="`${imgUrl}/static/images/line.jpg`"></image>
|
||
</view>
|
||
</view>
|
||
<!-- 店铺商品列表 -->
|
||
<view class="order-wrapper" v-for="(item,index) in orderInfo.orderList" :key="index">
|
||
<view class="title" @click="goStore(item)">{{item.merchant.mer_name}}<text
|
||
class="iconfont icon-xiangyou"></text>
|
||
</view>
|
||
<view class="goods-box">
|
||
<view v-for="(goods,j) in item.orderProduct" :key="goods.order_product_id"
|
||
@click="goProduct(goods)">
|
||
<view v-if="item.activity_type === 2">
|
||
<view class="item">
|
||
<image :src="goods.cart_info.product.image"></image>
|
||
<view class="info-box">
|
||
<view class="name line1"><text
|
||
class="event_name event_bg">预售</text>{{goods.cart_info.product.store_name}}
|
||
</view>
|
||
<view class="msg">{{goods.cart_info.productAttr.sku}}</view>
|
||
<view class="event_ship event_color">发货时间:
|
||
<!--全款预售-->
|
||
<text
|
||
v-if="goods.cart_info.productPresell.presell_type === 1">{{ goods.cart_info.productPresell.delivery_type === 1 ? '支付成功后' : '预售结束后' }}{{ goods.cart_info.productPresell.delivery_day }}天内</text>
|
||
<!--定金预售-->
|
||
<text
|
||
v-if="goods.cart_info.productPresell.presell_type === 2">{{ goods.cart_info.productPresell.delivery_type === 1 ? '支付尾款后' : '预售结束后' }}{{ goods.cart_info.productPresell.delivery_day }}天内</text>
|
||
</view>
|
||
</view>
|
||
<view class="num"><text
|
||
class="font-color">¥{{goods.cart_info.productPresellAttr.presell_price}}</text></br>x{{goods.product_num}}
|
||
</view>
|
||
<view class="bnt">
|
||
立即付款
|
||
</view>
|
||
</view>
|
||
<view class="event_progress" v-if="goods.cart_info.productPresell.presell_type !=1">
|
||
<view class="progress_list">
|
||
<view class="progress_name">阶段一: 等待买家付款</view>
|
||
<view class="progress_price">商品定金 <text
|
||
class="align_right">¥{{ item.pay_price }}</text></view>
|
||
<view class="progress_pay">定金需付款<text
|
||
class="align_right gColor">¥{{ item.pay_price }}</text></view>
|
||
</view>
|
||
<view class="progress_list">
|
||
<view class="progress_name">阶段二: 未开始</view>
|
||
<view class="progress_price">商品尾款 <text
|
||
class="align_right">¥{{ item.presellOrder.pay_price }}</text>
|
||
</view>
|
||
<view class="progress_pay">尾款需付款<text
|
||
class="align_right gColor">¥{{ item.presellOrder.pay_price }}</text></view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view v-else class="item">
|
||
<image :src="goods.cart_info.product.image"></image>
|
||
<view class="info-box">
|
||
<view class="name line1">{{goods.cart_info.product.store_name}}</view>
|
||
<view class="msg">{{goods.cart_info.productAttr.sku}}</view>
|
||
<view class="price">¥{{goods.cart_info.productAttr.price}}</view>
|
||
</view>
|
||
<view class="num">x{{goods.product_num}}</view>
|
||
<view class="bnt" @tap.stop='pay_open(orderInfo.order_id)' v-if="item.stauts == 3">
|
||
立即付款
|
||
</view>
|
||
|
||
</view>
|
||
|
||
</view>
|
||
|
||
</view>
|
||
<div class="goodCall" @click="goGoodCall(item)">
|
||
<span class="iconfont icon-kefu"></span><span style="font-size: 28rpx;">联系客服</span>
|
||
</div>
|
||
</view>
|
||
<view class='wrapper'>
|
||
<view class='item acea-row row-between'>
|
||
<view>订单编号:</view>
|
||
<view class='conter acea-row row-middle row-right'>{{orderInfo.group_order_sn}}
|
||
<!-- #ifndef H5 -->
|
||
<text class='copy' @tap='copy'>复制</text>
|
||
<!-- #endif -->
|
||
<!-- #ifdef H5 -->
|
||
<text class='copy copy-data' :data-clipboard-text="orderInfo.group_order_sn">复制</text>
|
||
<!-- #endif -->
|
||
</view>
|
||
</view>
|
||
<view class='item acea-row row-between'>
|
||
<view>下单时间:</view>
|
||
<view class='conter'>{{orderInfo.create_time || 0}}</view>
|
||
</view>
|
||
<view class='item acea-row row-between'>
|
||
<view>支付状态:</view>
|
||
<view class='conter'>未支付</view>
|
||
</view>
|
||
<view class='item acea-row row-between'>
|
||
<view>商品总额:</view>
|
||
<view class='conter'>¥{{orderInfo.total_price}}</view>
|
||
</view>
|
||
<view class='item acea-row row-between' v-if="orderInfo.orderList[0].merchant.settle_cycle">
|
||
<view>支付方式:</view>
|
||
<view class='conter' v-if="orderInfo.pay_type==0">余额支付</view>
|
||
<view class='conter' v-if="orderInfo.pay_type==4 || orderInfo.pay_type==5">支付宝支付</view>
|
||
<view class='conter' v-if="orderInfo.pay_type==1 || orderInfo.pay_type==2 || orderInfo.pay_type==3">
|
||
微信支付
|
||
</view>
|
||
<view class='conter' v-if="orderInfo.pay_type==8 ">先货后款</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view
|
||
v-if="orderInfo.orderList && orderInfo.orderList[0].is_virtual == 1 && orderInfo.orderList[0].order_extend"
|
||
class='wrapper'>
|
||
<view v-for="(item,index) in orderInfo.orderList[0].order_extend" :key="index" v-if="item"
|
||
class='item acea-row row-between'>
|
||
<view>{{index}}:</view>
|
||
<view v-if="!Array.isArray(item)" class='conter'>{{item}}</view>
|
||
<view v-else class='conter virtual_image'>
|
||
<image v-for="(pic,i) in item" :key="i" class="picture" :src="pic"
|
||
@click="getPhotoClickIdx(item,i)">
|
||
</image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class='wrapper'>
|
||
<view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0">
|
||
<view>运费:</view>
|
||
<view class='conter'>+¥{{orderInfo.pay_postage}}</view>
|
||
</view>
|
||
<view class='item acea-row row-between' v-if='orderInfo.coupon_price>0'>
|
||
<view>优惠券抵扣:</view>
|
||
<view class='conter'>-¥{{orderInfo.coupon_price}}</view>
|
||
</view>
|
||
<view class='item acea-row row-between' v-if='orderInfo.integral'>
|
||
<view>积分抵扣:</view>
|
||
<view class='conter'>-¥{{orderInfo.integral_price}}</view>
|
||
</view>
|
||
<view class='item acea-row row-between'>
|
||
<view>实付款:</view>
|
||
<view class='conter' style="color: black;" v-if="this.pay_type == 8 && orderInfo.interest !== null">
|
||
先货后款 实付: ¥<text style="color: #E93323;">
|
||
0.00
|
||
</text></view>
|
||
<view class='conter' style="color: black;" v-else>¥{{orderInfo.pay_price}}</view>
|
||
<view class="conters" style="color: black;"
|
||
v-if="this.pay_type == 8 && orderInfo.interest !== null">
|
||
结算周期到期后付款 ¥{{orderInfo.interest.total_amount}}
|
||
<image src="@/static/images/wenhao.png" mode="" @click="Settlement"></image>
|
||
</view>
|
||
<view class="conters" v-if="this.pay_type == 8 && orderInfo.interest !== null">
|
||
结算周期:{{orderInfo.interest.settle_cycle}}天
|
||
日利率:{{orderInfo.interest.rate}}%
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view class="content-clip"></view>
|
||
<view class='footer acea-row row-right row-middle'>
|
||
<view class="btn_cancel" @click.stop="cancelOrder">取消订单</view>
|
||
|
||
<view class='bnt bgColor' @tap='pay_open(orderInfo.order_id)' v-if="orderInfo.pay_type == 8">立即结算</view>
|
||
<view class='bnt bgColor' @tap='pay_open(orderInfo.order_id)' v-else>立即付款</view>
|
||
|
||
</view>
|
||
</view>
|
||
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
|
||
<!-- <payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id" :totalPrice='totalPrice'></payment> -->
|
||
<u-popup :show="show" bgColor='transparent' mode='center'>
|
||
<view class="stybgc">
|
||
<view class="warp">
|
||
<image @click="close" class="guanbi" src="@/static/images/guanbi.png"></image>
|
||
<image src="@/static/images/yuqi.png" mode="widthFix"></image>
|
||
</view>
|
||
<view class="textp" v-if="!this.be_overday">
|
||
<span>下单时实付¥0,确认收货后将开始计算结算周期,结算周期内按照订单金额付款。如未在结算周期内付款平台将在{{this.be_overdue}}天后计息。</span>
|
||
<button class="shouhuobtn" @click="close">知道了</button>
|
||
</view>
|
||
<view class="textp" v-else>
|
||
<span>下单时实付¥0,确认收货后将开始计算结算周期,结算周期内按照订单金额付款。现已逾期{{this.be_overdue}}天,请及时完成支付</span>
|
||
<button class="shouhuobtn" @click="close">知道了</button>
|
||
</view>
|
||
</view>
|
||
</u-popup>
|
||
</view>
|
||
</template>
|
||
|
||
|
||
<script>
|
||
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
let app = getApp();
|
||
import {
|
||
HTTP_REQUEST_URL
|
||
} from '@/config/app';
|
||
import {
|
||
goShopDetail
|
||
} from '@/libs/order.js'
|
||
import {
|
||
groupOrderDetail,
|
||
orderAgain,
|
||
orderTake,
|
||
orderDel,
|
||
unOrderCancel
|
||
} from '@/api/order.js';
|
||
import {
|
||
openOrderRefundSubscribe
|
||
} from '@/utils/SubscribeMessage.js';
|
||
import {
|
||
getUserInfo
|
||
} from '@/api/user.js';
|
||
import payment from '@/components/payment';
|
||
import orderGoods from "@/components/orderGoods";
|
||
import ClipboardJS from "@/plugin/clipboard/clipboard.js";
|
||
import {
|
||
configMap
|
||
} from "@/utils";
|
||
import {
|
||
mapGetters
|
||
} from "vuex";
|
||
import authorize from '@/components/Authorize';
|
||
export default {
|
||
components: {
|
||
payment,
|
||
orderGoods,
|
||
authorize
|
||
},
|
||
data() {
|
||
return {
|
||
isSelfOrder: false, //个人中心订单,区别与供货采购订单,
|
||
order_id: '',
|
||
evaluate: 0,
|
||
cartInfo: [], //购物车产品
|
||
orderInfo: {
|
||
system_store: {},
|
||
_status: {}
|
||
}, //订单详情
|
||
system_store: {},
|
||
isGoodsReturn: false, //是否为退款订单
|
||
status: {}, //订单底部按钮状态
|
||
isClose: false,
|
||
payMode: [{
|
||
name: "微信支付",
|
||
icon: "icon-weixinzhifu",
|
||
value: 'wechat',
|
||
title: '微信快捷支付',
|
||
payStatus: 1
|
||
},
|
||
{
|
||
name: "支付宝支付",
|
||
icon: "icon-zhifubao",
|
||
value: 'alipay',
|
||
title: '支付宝支付',
|
||
payStatus: this.$store.getters.globalData.alipay_open
|
||
},
|
||
{
|
||
name: "余额支付",
|
||
icon: "icon-yuezhifu",
|
||
value: 'balance',
|
||
title: '可用余额:',
|
||
number: 0,
|
||
payStatus: this.$store.getters.globalData.yue_pay_status
|
||
}
|
||
],
|
||
pay_close: false,
|
||
pay_order_id: '',
|
||
pay_type: '', //是否为先货后款订单
|
||
totalPrice: '0',
|
||
isAuto: false, //没有授权的不会自动授权
|
||
isShowAuth: false, //是否隐藏授权
|
||
imgUrl: HTTP_REQUEST_URL,
|
||
invoice: {
|
||
invoice: false,
|
||
add: false,
|
||
},
|
||
show: false,
|
||
credit_buy: '',
|
||
product_type: 0,
|
||
be_overdue: '', //逾期时间
|
||
be_overhours: '', //逾期小时
|
||
be_overday: false,
|
||
|
||
};
|
||
},
|
||
watch: {
|
||
alipay_open(n) {
|
||
this.payMode[1].payStatus = n
|
||
},
|
||
yue_pay_status(n) {
|
||
this.payMode[2].payStatus = n
|
||
}
|
||
},
|
||
computed: configMap({
|
||
hide_mer_status: 0,
|
||
alipay_open: 0,
|
||
yue_pay_status: 0
|
||
},
|
||
mapGetters(['isLogin', 'uid', 'viewColor', 'keyColor', ])),
|
||
onLoad: function(options) {
|
||
console.log('11111111')
|
||
this.credit_buy = options.credit_buy
|
||
// console.log(options.product_type)
|
||
if (options.product_type) {
|
||
this.product_type = options.product_type
|
||
}
|
||
if (options.order_id) {
|
||
this.$set(this, 'order_id', options.order_id);
|
||
}
|
||
},
|
||
onShow() {
|
||
if (this.isLogin) {
|
||
this.getOrderInfo();
|
||
this.getUserInfo();
|
||
} else {
|
||
this.isAuto = true;
|
||
this.isShowAuth = true
|
||
}
|
||
},
|
||
onHide: function() {
|
||
this.isClose = true;
|
||
},
|
||
onReady: function() {
|
||
// #ifdef H5
|
||
this.$nextTick(function() {
|
||
const clipboard = new ClipboardJS(".copy-data");
|
||
clipboard.on("success", () => {
|
||
this.$util.Tips({
|
||
title: '复制成功'
|
||
});
|
||
});
|
||
});
|
||
// #endif
|
||
},
|
||
mounted: function() {},
|
||
methods: {
|
||
test() {
|
||
console.log(this.orderInfo.orderList)
|
||
},
|
||
//周期弹窗
|
||
Settlement() {
|
||
this.show = true
|
||
},
|
||
close() {
|
||
this.show = false
|
||
},
|
||
// 图片预览
|
||
getPhotoClickIdx(list, idx) {
|
||
uni.previewImage({
|
||
current: list[idx], // 传 Number H5端出现不兼容
|
||
urls: list
|
||
});
|
||
},
|
||
// 去店铺
|
||
goStore(item) {
|
||
if (this.hide_mer_status != 1) {
|
||
uni.navigateTo({
|
||
url: `/pages/store/home/index?id=${item.merchant.mer_id}`
|
||
})
|
||
}
|
||
},
|
||
// 商品详情
|
||
goProduct(goods) {
|
||
goods.activity_id = goods.cart_info && goods.cart_info.activeSku && goods.cart_info.activeSku
|
||
.product_group_id
|
||
goShopDetail(goods, '').then(res => {
|
||
uni.navigateTo({
|
||
url: `/pages/goods_details/index?id=${goods.product_id}`
|
||
})
|
||
})
|
||
},
|
||
goGoodCall(item) {
|
||
let self = this
|
||
uni.navigateTo({
|
||
url: `/pages/chat/customer_list/chat?mer_id=${item.mer_id}&uid=${this.uid}&order_id=${this.order_id}`
|
||
})
|
||
},
|
||
/**
|
||
* 事件回调
|
||
*
|
||
*/
|
||
onChangeFun: function(e) {
|
||
let opt = e;
|
||
let action = opt.action || null;
|
||
let value = opt.value != undefined ? opt.value : null;
|
||
(action && this[action]) && this[action](value);
|
||
},
|
||
/**
|
||
* 拨打电话
|
||
*/
|
||
makePhone: function() {
|
||
uni.makePhoneCall({
|
||
phoneNumber: this.system_store.phone
|
||
})
|
||
},
|
||
/**
|
||
* 关闭支付组件
|
||
*
|
||
*/
|
||
payClose: function() {
|
||
this.pay_close = false;
|
||
},
|
||
/**
|
||
* 打开支付组件
|
||
*
|
||
*/
|
||
pay_open: function() {
|
||
uni.navigateTo({
|
||
url: '/pages/users/payment/payment?order_id=' + this.order_id + '&product_type=' + this
|
||
.product_type
|
||
});
|
||
// this.pay_close = true;
|
||
// this.pay_order_id = this.orderInfo.group_order_id.toString();
|
||
// this.totalPrice = this.orderInfo.pay_price;
|
||
|
||
// console.log(this.pay_order_id);
|
||
// console.log(this.totalPrice);
|
||
},
|
||
/**
|
||
* 支付成功回调
|
||
*
|
||
*/
|
||
pay_complete: function() {
|
||
this.pay_close = false;
|
||
this.pay_order_id = '';
|
||
uni.redirectTo({
|
||
url: '/pages/users/order_list/index?status=1'
|
||
})
|
||
},
|
||
/**
|
||
* 支付失败回调
|
||
*
|
||
*/
|
||
pay_fail: function() {
|
||
this.pay_close = false;
|
||
this.pay_order_id = '';
|
||
},
|
||
/**
|
||
* 登录授权回调
|
||
*
|
||
*/
|
||
onLoadFun: function() {
|
||
this.isShowAuth = false;
|
||
this.getOrderInfo();
|
||
this.getUserInfo();
|
||
},
|
||
// 授权关闭
|
||
authColse: function(e) {
|
||
this.isShowAuth = e;
|
||
},
|
||
/**
|
||
* 获取用户信息
|
||
*
|
||
*/
|
||
getUserInfo: function() {
|
||
let that = this;
|
||
getUserInfo().then(res => {
|
||
that.payMode[2].number = res.data.now_money;
|
||
that.$set(that, 'payMode', that.payMode);
|
||
})
|
||
},
|
||
/**
|
||
* 获取订单详细信息
|
||
*
|
||
*/
|
||
getOrderInfo: function() {
|
||
let that = this;
|
||
uni.showLoading({
|
||
title: "正在加载中"
|
||
});
|
||
groupOrderDetail(this.order_id, this.product_type).then(res => {
|
||
let _type = 0;
|
||
uni.hideLoading();
|
||
that.$set(that, 'orderInfo', res.data);
|
||
this.pay_type = this.orderInfo.pay_type
|
||
if (this.orderInfo.interest !== null) {
|
||
this.moerTime(this.orderInfo.interest.start_time)
|
||
} else {
|
||
this.isSelfOrder = true
|
||
this.moerTime(this.orderInfo.create_time)
|
||
// console.log(this.orderInfo.create_time)
|
||
}
|
||
|
||
}).catch(err => {
|
||
console.log(err)
|
||
uni.hideLoading();
|
||
that.$util.Tips({
|
||
title: err
|
||
});
|
||
});
|
||
},
|
||
/**
|
||
*
|
||
* 剪切订单号
|
||
*/
|
||
// #ifndef H5
|
||
copy: function() {
|
||
let that = this;
|
||
uni.setClipboardData({
|
||
data: this.orderInfo.group_order_sn
|
||
});
|
||
},
|
||
// #endif
|
||
// 取消订单
|
||
cancelOrder() {
|
||
let self = this
|
||
uni.showModal({
|
||
title: '提示',
|
||
content: '确认取消该订单?',
|
||
success: function(res) {
|
||
if (res.confirm) {
|
||
unOrderCancel(self.order_id)
|
||
.then((data) => {
|
||
// console.log(data)
|
||
self.$util.Tips({
|
||
title: data.message
|
||
}, {
|
||
tab: 3
|
||
})
|
||
})
|
||
.catch(() => {
|
||
self.getDetail();
|
||
});
|
||
} else if (res.cancel) {
|
||
// console.log('用户点击取消');
|
||
}
|
||
}
|
||
});
|
||
},
|
||
//计算是否逾期
|
||
moerTime(autoTime) {
|
||
|
||
if (this.isSelfOrder) {
|
||
let limitPayTime = 60 //支付时间限制
|
||
let curData = new Date(autoTime);
|
||
curData.setSeconds(curData.getSeconds() + (60 * limitPayTime));
|
||
this.be_overdue = curData.getFullYear() + '-' + (curData.getMonth() + 1) + '-' + curData.getDate() +
|
||
' ' +
|
||
curData.getHours() + ':' +
|
||
(curData.getMinutes() > 10 ? curData.getMinutes() : "0" + curData.getMinutes())
|
||
return
|
||
}
|
||
|
||
var date1 = (Date.parse(new Date())) / 1000;
|
||
var date2 = (Date.parse(new Date(autoTime))) / 1000;
|
||
var date3 = (date2 - date1) * 1000;
|
||
this.be_overdue = Math.floor(date3 / (24 * 3600 * 1000));
|
||
var leave1 = date3 % (24 * 3600 * 1000); //计算天数后剩余的毫秒数
|
||
this.be_overhours = Math.floor(leave1 / (3600 * 1000));
|
||
if (this.be_overdue == 0 || this.be_overdue < 0) {
|
||
var date1 = (Date.parse(new Date())) / 1000;
|
||
var date2 = (Date.parse(new Date(autoTime))) / 1000;
|
||
var date3 = (date1 - date2) * 1000;
|
||
this.be_overdue = Math.floor(date3 / (24 * 3600 * 1000));
|
||
var leave1 = date3 % (24 * 3600 * 1000); //计算天数后剩余的毫秒数
|
||
this.be_overhours = Math.floor(leave1 / (3600 * 1000));
|
||
this.be_overday = true
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
.qs-btn {
|
||
width: auto;
|
||
height: 60rpx;
|
||
text-align: center;
|
||
line-height: 60rpx;
|
||
border-radius: 50rpx;
|
||
color: #fff;
|
||
font-size: 27rpx;
|
||
padding: 0 3%;
|
||
color: #aaa;
|
||
border: 1px solid #ddd;
|
||
margin-right: 20rpx;
|
||
}
|
||
</style>
|
||
<style scoped lang="scss">
|
||
.event_bg {
|
||
background: #FF7F00;
|
||
}
|
||
|
||
.event_color {
|
||
color: #FF7F00;
|
||
}
|
||
|
||
.presell_bg_header {
|
||
background: linear-gradient(90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
||
}
|
||
|
||
.goodCall {
|
||
text-align: center;
|
||
width: 100%;
|
||
height: 86rpx;
|
||
padding: 0 30rpx;
|
||
border-top: 1px solid #f0f0f0;
|
||
font-size: 30rpx;
|
||
line-height: 86rpx;
|
||
background: #fff;
|
||
color: #282828;
|
||
|
||
.icon-kefu {
|
||
font-size: 32rpx;
|
||
margin-right: 15rpx;
|
||
}
|
||
|
||
/* #ifdef MP */
|
||
button {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 86rpx;
|
||
font-size: 30rpx;
|
||
color: #e93323;
|
||
}
|
||
|
||
/* #endif */
|
||
}
|
||
|
||
.order-details .header {
|
||
padding: 0 30rpx;
|
||
height: 150rpx;
|
||
background-image: linear-gradient(to right, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
||
|
||
&.presell_header {
|
||
background-repeat: no-repeat;
|
||
background-size: cover;
|
||
padding: 35rpx 50rpx;
|
||
|
||
.data {
|
||
margin: 8rpx 0 0 26rpx;
|
||
|
||
.state {
|
||
font-weight: normal;
|
||
font-size: 24rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.order-details .header.on {
|
||
background-color: #666 !important;
|
||
}
|
||
|
||
.order-details .header .pictrue {
|
||
width: 110rpx;
|
||
height: 110rpx;
|
||
}
|
||
|
||
.order-details .header .pictrue image {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.order-details .header .data {
|
||
color: rgba(255, 255, 255, 0.8);
|
||
font-size: 24rpx;
|
||
margin-left: 27rpx;
|
||
}
|
||
|
||
.order-details .header .data.on {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.order-details .header .data .state {
|
||
font-size: 30rpx;
|
||
font-weight: bold;
|
||
color: #fff;
|
||
margin-bottom: 7rpx;
|
||
}
|
||
|
||
.btn_cancel {
|
||
margin-right: 20rpx;
|
||
width: 83px;
|
||
height: 28px;
|
||
text-align: center;
|
||
line-height: 28px;
|
||
border-radius: 23px;
|
||
border: 1px solid #AABDD6;
|
||
color: #282828;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.presell_header .presell_payment {
|
||
color: #fff;
|
||
font-size: 30rpx;
|
||
font-weight: bold;
|
||
margin-left: 26rpx;
|
||
|
||
.iconfont {
|
||
font-weight: normal;
|
||
margin-right: 8rpx;
|
||
}
|
||
}
|
||
|
||
.order-details .nav {
|
||
background-color: #fff;
|
||
font-size: 26rpx;
|
||
color: #282828;
|
||
padding: 25rpx 0;
|
||
}
|
||
|
||
.order-details .nav .navCon {
|
||
padding: 0 40rpx;
|
||
}
|
||
|
||
.order-details .nav .on {
|
||
color: var(--view-theme);
|
||
}
|
||
|
||
.order-details .nav .progress {
|
||
padding: 0 65rpx;
|
||
margin-top: 10rpx;
|
||
}
|
||
|
||
.order-details .nav .progress .line {
|
||
width: 100rpx;
|
||
height: 2rpx;
|
||
background-color: #939390;
|
||
}
|
||
|
||
.order-details .nav .progress .iconfont {
|
||
font-size: 25rpx;
|
||
color: #939390;
|
||
margin-top: -2rpx;
|
||
|
||
&.t-color {
|
||
color: var(--view-theme);
|
||
}
|
||
}
|
||
|
||
.order-details .address {
|
||
font-size: 26rpx;
|
||
color: #868686;
|
||
background-color: #fff;
|
||
margin-top: 13rpx;
|
||
padding: 35rpx 30rpx;
|
||
}
|
||
|
||
.order-details .address .name {
|
||
font-size: 30rpx;
|
||
color: #282828;
|
||
margin-bottom: 15rpx;
|
||
}
|
||
|
||
.order-details .address .name .phone {
|
||
margin-left: 40rpx;
|
||
}
|
||
|
||
.order-details .line {
|
||
width: 100%;
|
||
height: 3rpx;
|
||
}
|
||
|
||
.order-details .line image {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.order-details .wrapper {
|
||
background-color: #fff;
|
||
margin-top: 12rpx;
|
||
padding: 30rpx;
|
||
}
|
||
|
||
.order-details .wrapper .item {
|
||
font-size: 28rpx;
|
||
color: #282828;
|
||
|
||
}
|
||
|
||
.order-details .wrapper .item~.item {
|
||
margin-top: 20rpx;
|
||
}
|
||
|
||
.order-details .wrapper .item .conter {
|
||
color: #868686;
|
||
width: 460rpx;
|
||
text-align: right;
|
||
}
|
||
|
||
.order-details .wrapper .item .conters {
|
||
color: #868686;
|
||
width: 100%;
|
||
text-align: right;
|
||
|
||
image {
|
||
margin-left: 5px;
|
||
width: 15px;
|
||
height: 15px;
|
||
}
|
||
}
|
||
|
||
.order-details .wrapper .item .virtual_image {
|
||
margin-left: 50rpx;
|
||
}
|
||
|
||
.order-details .wrapper .item .virtual_image .picture {
|
||
width: 106rpx;
|
||
height: 106rpx;
|
||
border-radius: 8rpx;
|
||
margin-right: 10rpx;
|
||
|
||
&:last-child {
|
||
margin-right: 0;
|
||
}
|
||
}
|
||
|
||
.order-details .wrapper .item .conter .copy {
|
||
font-size: 20rpx;
|
||
color: #333;
|
||
border-radius: 17rpx;
|
||
border: 1px solid #666;
|
||
padding: 3rpx 15rpx;
|
||
margin-left: 24rpx;
|
||
}
|
||
|
||
.order-details .wrapper .actualPay {
|
||
border-top: 1px solid #eee;
|
||
margin-top: 30rpx;
|
||
padding-top: 30rpx;
|
||
}
|
||
|
||
.order-details .wrapper .actualPay .money {
|
||
font-weight: bold;
|
||
font-size: 30rpx;
|
||
}
|
||
|
||
.order-details .footer {
|
||
width: 100%;
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
background-color: #fff;
|
||
padding: 0 30rpx;
|
||
height: 100rpx;
|
||
height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||
height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.content-clip {
|
||
height: 120rpx;
|
||
height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||
height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||
}
|
||
|
||
.order-details .footer .bnt {
|
||
width: 176rpx;
|
||
height: 60rpx;
|
||
text-align: center;
|
||
line-height: 60rpx;
|
||
border-radius: 50rpx;
|
||
color: #fff;
|
||
font-size: 27rpx;
|
||
}
|
||
|
||
.bgColor {
|
||
background-color: var(--view-theme);
|
||
}
|
||
|
||
.order-details .footer .bnt.cancel {
|
||
color: #aaa;
|
||
border: 1px solid #ddd;
|
||
}
|
||
|
||
.order-details .footer .bnt~.bnt {
|
||
margin-left: 18rpx;
|
||
}
|
||
|
||
.order-details .writeOff {
|
||
background-color: #fff;
|
||
margin-top: 13rpx;
|
||
padding-bottom: 30rpx;
|
||
}
|
||
|
||
.order-details .writeOff .title {
|
||
font-size: 30rpx;
|
||
color: #282828;
|
||
height: 87rpx;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
padding: 0 30rpx;
|
||
line-height: 87rpx;
|
||
}
|
||
|
||
.order-details .writeOff .grayBg {
|
||
background-color: #f2f5f7;
|
||
width: 590rpx;
|
||
height: 384rpx;
|
||
border-radius: 20rpx 20rpx 0 0;
|
||
margin: 50rpx auto 0 auto;
|
||
padding-top: 55rpx;
|
||
}
|
||
|
||
.order-details .writeOff .grayBg .pictrue {
|
||
width: 290rpx;
|
||
height: 290rpx;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.order-details .writeOff .grayBg .pictrue image {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.order-details .writeOff .gear {
|
||
width: 590rpx;
|
||
height: 30rpx;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.order-details .writeOff .gear image {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.order-details .writeOff .num {
|
||
background-color: #f0c34c;
|
||
width: 590rpx;
|
||
height: 84rpx;
|
||
color: #282828;
|
||
font-size: 48rpx;
|
||
margin: 0 auto;
|
||
border-radius: 0 0 20rpx 20rpx;
|
||
text-align: center;
|
||
padding-top: 4rpx;
|
||
}
|
||
|
||
.order-details .writeOff .rules {
|
||
margin: 46rpx 30rpx 0 30rpx;
|
||
border-top: 1px solid #f0f0f0;
|
||
padding-top: 10rpx;
|
||
}
|
||
|
||
.order-details .writeOff .rules .item {
|
||
margin-top: 20rpx;
|
||
}
|
||
|
||
.order-details .writeOff .rules .item .rulesTitle {
|
||
font-size: 28rpx;
|
||
color: #282828;
|
||
}
|
||
|
||
.order-details .writeOff .rules .item .rulesTitle .iconfont {
|
||
font-size: 30rpx;
|
||
color: #333;
|
||
margin-right: 8rpx;
|
||
margin-top: 5rpx;
|
||
}
|
||
|
||
.order-details .writeOff .rules .item .info {
|
||
font-size: 28rpx;
|
||
color: #999;
|
||
margin-top: 7rpx;
|
||
}
|
||
|
||
.order-details .writeOff .rules .item .info .time {
|
||
margin-left: 20rpx;
|
||
}
|
||
|
||
.order-details .map {
|
||
height: 86rpx;
|
||
font-size: 30rpx;
|
||
color: #282828;
|
||
line-height: 86rpx;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
margin-top: 13rpx;
|
||
background-color: #fff;
|
||
padding: 0 30rpx;
|
||
}
|
||
|
||
.order-details .map .place {
|
||
font-size: 26rpx;
|
||
width: 176rpx;
|
||
height: 50rpx;
|
||
border-radius: 25rpx;
|
||
line-height: 50rpx;
|
||
text-align: center;
|
||
}
|
||
|
||
.order-details .map .place .iconfont {
|
||
font-size: 27rpx;
|
||
height: 27rpx;
|
||
line-height: 27rpx;
|
||
margin: 2rpx 3rpx 0 0;
|
||
}
|
||
|
||
.order-details .address .name .iconfont {
|
||
font-size: 34rpx;
|
||
margin-left: 10rpx;
|
||
}
|
||
|
||
.refund {
|
||
padding: 0 30rpx 30rpx;
|
||
margin-top: 24rpx;
|
||
background-color: #fff;
|
||
|
||
.title {
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: 30rpx;
|
||
color: #333;
|
||
height: 86rpx;
|
||
border-bottom: 1px solid #f5f5f5;
|
||
|
||
image {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
margin-right: 10rpx;
|
||
}
|
||
}
|
||
|
||
.con {
|
||
padding-top: 25rpx;
|
||
font-size: 28rpx;
|
||
color: #868686;
|
||
}
|
||
}
|
||
|
||
.order-wrapper {
|
||
margin-top: 15rpx;
|
||
|
||
.title {
|
||
display: flex;
|
||
align-items: center;
|
||
height: 86rpx;
|
||
padding: 0 30rpx;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
background-color: #fff;
|
||
|
||
.iconfont {
|
||
font-size: 24rpx;
|
||
color: #666;
|
||
margin-top: 6rpx;
|
||
margin-left: 5rpx;
|
||
}
|
||
}
|
||
|
||
.goods-box {
|
||
.item {
|
||
display: flex;
|
||
padding: 25rpx 30rpx 25rpx 30rpx;
|
||
background-color: #fff;
|
||
position: relative;
|
||
|
||
image {
|
||
width: 130rpx;
|
||
height: 130rpx;
|
||
border-radius: 16rpx;
|
||
}
|
||
|
||
.info-box {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
margin-left: 25rpx;
|
||
width: 450rpx;
|
||
|
||
.msg {
|
||
color: #868686;
|
||
font-size: 20rpx;
|
||
}
|
||
|
||
.price {
|
||
font-size: 26rpx;
|
||
color: var(--view-priceColor);
|
||
}
|
||
}
|
||
|
||
.num {
|
||
flex: 1;
|
||
text-align: right;
|
||
font-size: 26rpx;
|
||
color: #868686;
|
||
}
|
||
}
|
||
|
||
.event_name {
|
||
display: inline-block;
|
||
margin-right: 9rpx;
|
||
color: #fff;
|
||
font-size: 20rpx;
|
||
padding: 0 8rpx;
|
||
line-height: 30rpx;
|
||
text-align: center;
|
||
border-radius: 6rpx;
|
||
}
|
||
|
||
.event_ship {
|
||
font-size: 20rpx;
|
||
margin-top: 10rpx;
|
||
}
|
||
}
|
||
|
||
.event_progress {
|
||
margin-top: 20rpx;
|
||
background: #fff;
|
||
|
||
.progress_name {
|
||
padding-left: 30rpx;
|
||
height: 60rpx;
|
||
line-height: 60rpx;
|
||
font-size: 24rpx;
|
||
font-weight: bold;
|
||
position: relative;
|
||
color: var(--view-theme);
|
||
|
||
&::before {
|
||
content: "";
|
||
display: inline-block;
|
||
width: 5rpx;
|
||
height: 34rpx;
|
||
background: var(--view-theme);
|
||
position: absolute;
|
||
top: 15rpx;
|
||
left: 0;
|
||
}
|
||
}
|
||
|
||
.align_right {
|
||
float: right;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.gColor {
|
||
color: var(--view-theme);
|
||
}
|
||
|
||
.progress_price {
|
||
padding: 20rpx 30rpx;
|
||
color: #999999;
|
||
font-size: 22rpx;
|
||
}
|
||
|
||
.progress_pay {
|
||
padding: 25rpx 30rpx;
|
||
background: var(--view-minorColor);
|
||
font-size: 26rpx;
|
||
color: #282828;
|
||
}
|
||
}
|
||
}
|
||
|
||
.bnt {
|
||
width: 96px;
|
||
height: 35px;
|
||
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
|
||
border-radius: 18px 18px 18px 18px;
|
||
|
||
color: white;
|
||
}
|
||
|
||
.stybgc {
|
||
background-color: rgba(0, 0, 0, 0.5);
|
||
width: 100vw;
|
||
position: relative;
|
||
|
||
.warp {
|
||
position: absolute;
|
||
top: 29vh;
|
||
left: 60px;
|
||
width: 70%;
|
||
|
||
image {
|
||
width: 100%;
|
||
}
|
||
|
||
.guanbi {
|
||
position: absolute;
|
||
right: 0px;
|
||
z-index: 1;
|
||
width: 50rpx;
|
||
height: 50rpx;
|
||
top: 95rpx;
|
||
}
|
||
}
|
||
|
||
.textp {
|
||
position: absolute;
|
||
top: 40vh;
|
||
left: 90px;
|
||
width: 210px;
|
||
padding-bottom: 20px;
|
||
border-radius: 10px;
|
||
|
||
span {
|
||
display: block;
|
||
width: 210px;
|
||
padding-top: 20px;
|
||
margin: auto;
|
||
}
|
||
|
||
.shouhuobtn {
|
||
margin-left: 50rpx;
|
||
line-height: 34px;
|
||
margin-top: 50rpx;
|
||
width: 150px;
|
||
height: 34px;
|
||
color: white;
|
||
background: linear-gradient(180deg, #F98649 0%, #F34E45 100%);
|
||
border-radius: 27px 27px 27px 27px;
|
||
}
|
||
|
||
.cle {
|
||
margin: auto;
|
||
text-align: center;
|
||
margin-top: 15px;
|
||
height: 40px;
|
||
background-color: #FFFFFF;
|
||
border-radius: 10px;
|
||
color: #999999;
|
||
}
|
||
}
|
||
}
|
||
</style> |