订单监控,付款跳转,商户设置
This commit is contained in:
parent
1231351d29
commit
893ca1ed81
2
App.vue
2
App.vue
@ -9,7 +9,7 @@
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
// #ifdef APP-PLUS
|
||||
var jpushModule = uni.requireNativePlugin("JG-JPush");
|
||||
let jpushModule = uni.requireNativePlugin("JG-JPush");
|
||||
// #endif
|
||||
import {
|
||||
checkLogin
|
||||
|
@ -982,7 +982,7 @@
|
||||
"path": "plant_release/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "内容发布",
|
||||
"enablePullDownRefresh":true
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -77,54 +77,47 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="public_footer">
|
||||
<view class="footer_top">
|
||||
<image src="@/static/images/jiankong.png"></image>
|
||||
<text>订单监控</text>
|
||||
</view>
|
||||
<view class="footer_bon">
|
||||
<view class="bon_top">
|
||||
<view class="public_img">
|
||||
图
|
||||
</view>
|
||||
<view >
|
||||
<view class="text_top">
|
||||
<view class="text">
|
||||
啊十分大师傅但是发sdfsfasfsfs
|
||||
</view>
|
||||
<view class="monry">
|
||||
$ 100.00
|
||||
</view>
|
||||
</view>
|
||||
<view class="text_order">
|
||||
是的方法
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bon_bon">
|
||||
<view class="order">
|
||||
采购数量
|
||||
<view class="txt">
|
||||
sdfa
|
||||
</view>
|
||||
</view>
|
||||
<view class="order" style="border-left: 1px solid #999999;border-right: 1px solid #999999;">
|
||||
已售数量
|
||||
<view class="txt">
|
||||
sdfa
|
||||
</view>
|
||||
</view>
|
||||
<view class="order">
|
||||
库存数量
|
||||
<view class="txt">
|
||||
sdfa
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button class="footer-bnt" @click="navigator()">查看更多 ></button>
|
||||
<!-- <view class="public-wrapper">
|
||||
<view class="public_footer" v-if="this.type_id == 12">
|
||||
<view class="footer_top">
|
||||
<image src="@/static/images/jiankong.png"></image>
|
||||
<text>订单监控</text>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item" v-for="(item, index) in OrderList" :key="index">
|
||||
<view class="order-num acea-row row-middle">
|
||||
订单号:{{ item.order_sn }}
|
||||
<text class="time">下单时间:{{ item.create_time }}</text>
|
||||
</view>
|
||||
<view class="pos-order-goods" v-for="(val, key) in item.orderProduct" :key="key" @click="toDetail(item)">
|
||||
<view class="goods">
|
||||
<view class="acea-row row-between-wrapper">
|
||||
<view class="picTxt acea-row row-between-wrapper">
|
||||
<view class="pictrue">
|
||||
<image :src="val.cart_info.product.image" />
|
||||
</view>
|
||||
<view class="text acea-row row-between row-column">
|
||||
<view class="info ">
|
||||
{{ val.cart_info.product.store_name }}
|
||||
</view>
|
||||
<view class="attr" v-if="val.cart_info.productAttr.sku">
|
||||
{{ val.cart_info.productAttr.sku }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="money">
|
||||
<view class="x-money">¥{{ val.total_price }}</view>
|
||||
<view class="x-money">采购数量:{{ val.product_num }}</view>
|
||||
<view class="x-money">已售数量:{{ val.sales_volume }}</view>
|
||||
<view class="num">库存量{{ val.product_num - val.sales_volume }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button v-if="this.type_id == 12" class="footer-bnt" @click="navigator()">查看更多 ></button>
|
||||
<!-- <view class="public-wrapper">
|
||||
<navigator class="item" :url="`/pages/admin/order/monitor?merId=${mer_id}`"
|
||||
hover-class="none">
|
||||
<view class="num">订单监控</view>
|
||||
@ -136,7 +129,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getStatisticsInfo, getStatisticsMonth, orderStatistics, orderPrice } from "@/api/admin";
|
||||
import { getStatisticsInfo, getStatisticsMonth, orderStatistics, orderPrice, purchaseOrder } from "@/api/admin";
|
||||
import Loading from '@/components/Loading/index.vue'
|
||||
export default {
|
||||
name: 'adminOrder',
|
||||
@ -152,22 +145,28 @@
|
||||
month: {}
|
||||
},
|
||||
list: [],
|
||||
OrderList: [], //订单数组
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 15,
|
||||
limit: 10,
|
||||
status: 1,
|
||||
keyword: '',
|
||||
product_type: ''
|
||||
},
|
||||
loaded: false,
|
||||
loading: false,
|
||||
mer_id: '',
|
||||
type_id: '', //店铺类型
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.type_id = options.type_id
|
||||
this.where.product_type = options.product_type ?? 0
|
||||
this.mer_id = options.mer_id
|
||||
options.product_type ? uni.setStorageSync("PRODUCT_TYPE", 98) : uni.removeStorageSync("PRODUCT_TYPE");
|
||||
this.getOrderStatistics(this.mer_id);
|
||||
this.getList(this.mer_id)
|
||||
this.purchaseOrderList(this.mer_id)
|
||||
},
|
||||
methods: {
|
||||
getIndex: function() {
|
||||
@ -218,11 +217,23 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
navigator(){
|
||||
uni.navigateTo({
|
||||
url:`/pages/admin/order/monitor?merId=${this.mer_id}`
|
||||
})
|
||||
}
|
||||
toDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/admin/orderDetail/index?id=${item.order_id}&mer_id=${item.mer_id}`
|
||||
})
|
||||
},
|
||||
navigator() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/admin/order/monitor?merId=${this.mer_id}`
|
||||
})
|
||||
},
|
||||
purchaseOrderList(mer_id) {
|
||||
this.where.limit = 2
|
||||
purchaseOrder(this.where, mer_id).then(res => {
|
||||
console.log(res);
|
||||
this.OrderList = res.data
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.getList(this.mer_id)
|
||||
@ -230,7 +241,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.popupn {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
@ -365,13 +376,14 @@
|
||||
background-color: #fff;
|
||||
border-radius: 10upx;
|
||||
padding-top: 25upx;
|
||||
.item{
|
||||
.num{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
.num {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.public-wrapper .nav {
|
||||
@ -405,90 +417,194 @@
|
||||
border-bottom: 1px solid #f7f7f7;
|
||||
height: 70upx;
|
||||
font-size: 24upx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.public-wrapper .conter .item .turnover {
|
||||
color: #d84242;
|
||||
}
|
||||
.public_footer{
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
.footer_top{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 16px 0 16px 0;
|
||||
image{
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
.footer_bon{
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
background-color: #fff;
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 10px;
|
||||
.bon_top{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
.public_img{
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 12px;
|
||||
}
|
||||
.text_top{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin: 3px 0 3px 0;
|
||||
.text{
|
||||
width: 180px;
|
||||
background-color: #2291f8;
|
||||
overflow: hidden;
|
||||
white-space:nowrap;
|
||||
text-overflow:ellipsis;
|
||||
}
|
||||
.monry{
|
||||
margin-left: 20px;
|
||||
color: #F84221;
|
||||
}
|
||||
}
|
||||
}
|
||||
.bon_bon{
|
||||
width: 90%;
|
||||
height: 66px;
|
||||
background: #F5F5F5;
|
||||
border-radius: 4px 4px 4px 4px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
margin-bottom: 10px;
|
||||
.order{
|
||||
width: 120px;
|
||||
.txt{
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.public_footer {
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
|
||||
.footer_top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 16px 0 16px 0;
|
||||
|
||||
image {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
margin-top: 20upx;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.item {
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
|
||||
.item-status {
|
||||
position: absolute;
|
||||
top: 14rpx;
|
||||
right: 20rpx;
|
||||
|
||||
.iconfont {
|
||||
font-size: 98rpx;
|
||||
color: #CCCCCC;
|
||||
|
||||
&.on {
|
||||
color: #FFE3BC;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-num {
|
||||
height: 124upx;
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 30upx;
|
||||
font-weight: bold;
|
||||
color: #282828;
|
||||
padding: 0 30upx;
|
||||
position: relative;
|
||||
|
||||
.time {
|
||||
font-size: 26upx;
|
||||
font-weight: normal;
|
||||
color: #999;
|
||||
margin-top: -40upx;
|
||||
}
|
||||
}
|
||||
|
||||
.pos-order-goods {
|
||||
padding: 0 30upx;
|
||||
background-color: #fff;
|
||||
|
||||
.goods {
|
||||
padding-top: 20rpx;
|
||||
overflow: hidden;
|
||||
border-top: 1px dashed #e5e5e5;
|
||||
|
||||
.uncancell {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.picTxt {
|
||||
width: 450upx;
|
||||
|
||||
.pictrue {
|
||||
width: 130upx;
|
||||
height: 130upx;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 6upx;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
flex-direction: column;
|
||||
width: 150px;
|
||||
|
||||
.info {
|
||||
font-size: 28upx;
|
||||
color: #282828;
|
||||
|
||||
&.refund-info {
|
||||
width: 460upx;
|
||||
}
|
||||
}
|
||||
|
||||
.refund-y-money {
|
||||
margin-top: 16rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.attr {
|
||||
margin-top: 5rpx;
|
||||
font-size: 24upx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.money {
|
||||
width: 164upx;
|
||||
text-align: right;
|
||||
font-size: 28upx;
|
||||
|
||||
&.refund-money {
|
||||
width: auto;
|
||||
position: relative;
|
||||
top: -50rpx;
|
||||
|
||||
.num {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.refund-num {
|
||||
font-size: 24rpx;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.num {
|
||||
color: #ff9600;
|
||||
margin: 5upx 0;
|
||||
}
|
||||
|
||||
.x-money {
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.y-money {
|
||||
color: #999;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
|
||||
.refund_num {
|
||||
display: inline-block;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.cancellate {
|
||||
font-size: 24rpx;
|
||||
float: right;
|
||||
margin-top: 10rpx;
|
||||
|
||||
text {
|
||||
margin-left: 26rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.cancelled {
|
||||
color: #FF9600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.footer-bnt{
|
||||
margin-top: 20px;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 15px;
|
||||
margin: auto;
|
||||
line-height: 40px;
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #f5f5f5;
|
||||
color: #999999;
|
||||
font-size: 13px
|
||||
|
||||
.footer-bnt {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 15px;
|
||||
margin: auto;
|
||||
line-height: 40px;
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #f5f5f5;
|
||||
color: #999999;
|
||||
font-size: 13px
|
||||
}
|
||||
</style>
|
@ -185,7 +185,7 @@
|
||||
}
|
||||
|
||||
.pos-order-list .list {
|
||||
margin-top: 210upx;
|
||||
margin-top: 100upx;
|
||||
}
|
||||
|
||||
.pos-order-list .list .item {
|
||||
|
@ -86,7 +86,7 @@
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>支付方式:</view>
|
||||
<view class="conter">{{ orderInfo.pay_type == 0 ? "余额支付" : (orderInfo.pay_type == 1 || orderInfo.pay_type == 2 || orderInfo.pay_type == 3) ? "微信支付" : "支付宝支付" }}</view>
|
||||
<view class="conter">{{ orderInfo.pay_type == 0 ? "余额支付" : (orderInfo.pay_type == 1 || orderInfo.pay_type == 2 || orderInfo.pay_type == 3) ? "微信支付" : "先货后款" }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>买家留言:</view>
|
||||
|
@ -265,11 +265,17 @@
|
||||
id:id,
|
||||
type:number
|
||||
}
|
||||
this.$nextTick(()=>{
|
||||
this.where.status = 2;
|
||||
delete this.where.is_verify;
|
||||
this.init();
|
||||
})
|
||||
if(number == 1){
|
||||
this.$nextTick(()=>{
|
||||
this.where.status = 2;
|
||||
delete this.where.is_verify;
|
||||
this.init();
|
||||
})
|
||||
}else if(number == 2){
|
||||
uni.navigateTo({
|
||||
url:`/pages/admin/orderList/index?types=1&merId=${this.merId}`
|
||||
})
|
||||
}
|
||||
postconfirm(this.merId,data).then(res=>{
|
||||
console.log(res);
|
||||
})
|
||||
|
@ -13,7 +13,7 @@
|
||||
<text class="text">在售管理</text>
|
||||
</view>
|
||||
<view class="examine"
|
||||
@click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&product_type=98`)">
|
||||
@click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&product_type=98&type_id=${userInfoData.mer_info.type_id}`)">
|
||||
<image class="icon_img" :src="`${prefix}cwgl.png`" mode="aspectFill"></image>
|
||||
<text class="text">财务管理</text>
|
||||
</view>
|
||||
@ -102,7 +102,7 @@
|
||||
</image>
|
||||
<text class="text">订单核销</text>
|
||||
</view>
|
||||
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}`)">
|
||||
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&type_id=${userInfoData.mer_info.type_id}`)">
|
||||
<image class="icon_img" :src="`${prefix}ddgl.png`" mode="aspectFill">
|
||||
</image>
|
||||
<text class="text">订单管理</text>
|
||||
@ -173,7 +173,7 @@
|
||||
</image>
|
||||
<text class="text">订单核销</text>
|
||||
</view>
|
||||
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}`)">
|
||||
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&type_id=${userInfoData.mer_info.type_id}`)">
|
||||
<image class="icon_img" :src="`${prefix}ddgl.png`" mode="aspectFill">
|
||||
</image>
|
||||
<text class="text">订单管理</text>
|
||||
|
@ -3,12 +3,13 @@
|
||||
<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'>
|
||||
<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'>
|
||||
<view class='state'>请在{{orderInfo.cancel_time}}前完成支付!</view>
|
||||
<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>
|
||||
@ -166,13 +167,15 @@
|
||||
</view>
|
||||
<view class='item acea-row row-between'>
|
||||
<view>实付款:</view>
|
||||
<view class='conter' style="color: black;" v-if="orderInfo.orderList[0].merchant.settle_cycle">先货后款 : ¥{{orderInfo.pay_price}}</view>
|
||||
<view class='conter' style="color: black;" v-if="this.pay_type == 8">先货后款 实付: ¥<text style="color: #E93323;" >
|
||||
{{orderInfo.pay_price}}
|
||||
</text></view>
|
||||
<view class='conter' style="color: black;" v-else>¥{{orderInfo.pay_price}}</view>
|
||||
<view class="conters" style="color: black;" v-if="orderInfo.orderList[0].merchant.settle_cycle">
|
||||
<view class="conters" style="color: black;" v-if="this.pay_type == 8">
|
||||
结算周期到期后付款 ¥{{orderInfo.interest.total_amount}}
|
||||
<image src="@/static/images/wenhao.png" mode="" @click="Settlement"></image>
|
||||
</view>
|
||||
<view class="conters" v-if="orderInfo.orderList[0].merchant.settle_cycle">
|
||||
<view class="conters" v-if="this.pay_type == 8">
|
||||
结算周期:{{orderInfo.orderList[0].merchant.settle_cycle}}天 日利率:{{orderInfo.orderList[0].merchant.interest_rate}}%
|
||||
</view>
|
||||
</view>
|
||||
@ -185,16 +188,18 @@
|
||||
</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>
|
||||
<!-- <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="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">
|
||||
<span>下单时实付¥0,确认收货后将开始计算结算周期,结算周期内按照订单金额付款。如未在结算周期内付款平台将在xx天xx小时后计息。</span>
|
||||
<button class="shouhuobtn" @click="close">知道了</button>
|
||||
</view>
|
||||
<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">
|
||||
<span>下单时实付¥0,确认收货后将开始计算结算周期,结算周期内按照订单金额付款。如未在结算周期内付款平台将在{{this.be_overdue}}天后计息。</span>
|
||||
<button class="shouhuobtn" @click="close">知道了</button>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
@ -266,6 +271,7 @@
|
||||
],
|
||||
pay_close: false,
|
||||
pay_order_id: '',
|
||||
pay_type:'',//是否为先货后款订单
|
||||
totalPrice: '0',
|
||||
isAuto: false, //没有授权的不会自动授权
|
||||
isShowAuth: false, //是否隐藏授权
|
||||
@ -276,7 +282,9 @@
|
||||
},
|
||||
show:false,
|
||||
credit_buy:'',
|
||||
product_type:0
|
||||
product_type:0,
|
||||
be_overdue:'',//逾期时间
|
||||
be_overhours:'',//逾期小时
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -389,11 +397,15 @@
|
||||
*
|
||||
*/
|
||||
pay_open: function() {
|
||||
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);
|
||||
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);
|
||||
},
|
||||
/**
|
||||
* 支付成功回调
|
||||
@ -451,7 +463,11 @@
|
||||
let _type = 0;
|
||||
uni.hideLoading();
|
||||
that.$set(that, 'orderInfo', res.data);
|
||||
console.log(that.orderInfo.orderList[0].merchant.settle_cycle);
|
||||
this.pay_type=this.orderInfo.pay_type
|
||||
if(this.orderInfo.interest.start_time){
|
||||
this.moerTime(this.orderInfo.interest.start_time)
|
||||
}
|
||||
console.log(that.orderInfo.interest);
|
||||
}).catch(err => {
|
||||
// console.log(err)
|
||||
uni.hideLoading();
|
||||
@ -498,6 +514,21 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
//计算是否逾期
|
||||
moerTime(autoTime){
|
||||
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 = (date2- date1)*1000;
|
||||
this.be_overdue =Math.floor(date3 / (24 * 3600 * 1000));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -739,7 +770,6 @@
|
||||
border-radius: 50rpx;
|
||||
color: #fff;
|
||||
font-size: 27rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.bgColor{
|
||||
background-color: var(--view-theme);
|
||||
@ -999,50 +1029,61 @@
|
||||
bottom: 5px;
|
||||
color: white;
|
||||
}
|
||||
.warp {
|
||||
margin: auto;
|
||||
|
||||
.guanbi {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
z-index: 1;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.textp {
|
||||
width: 320px;
|
||||
padding-bottom: 20px;
|
||||
position: absolute;
|
||||
top: 110px;
|
||||
border-radius: 10px;
|
||||
span {
|
||||
display: block;
|
||||
width: 280px;
|
||||
padding-top: 20px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.shouhuobtn {
|
||||
margin: auto;
|
||||
line-height: 54px;
|
||||
margin-top: 30px;
|
||||
width: 191px;
|
||||
height: 54px;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
.stybgc{
|
||||
background-color: rgba(0, 0, 0,0.5);
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: relative;
|
||||
.warp {
|
||||
position: absolute;
|
||||
top:30vh;
|
||||
left: 30px;
|
||||
|
||||
.guanbi {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
z-index: 1;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.textp {
|
||||
position: absolute;
|
||||
top: 44vh;
|
||||
left: 35px;
|
||||
width: 320px;
|
||||
padding-bottom: 20px;
|
||||
border-radius: 10px;
|
||||
span {
|
||||
display: block;
|
||||
width: 290px;
|
||||
padding-top: 20px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.shouhuobtn {
|
||||
margin: auto;
|
||||
line-height: 54px;
|
||||
margin-top: 30px;
|
||||
width: 191px;
|
||||
height: 54px;
|
||||
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>
|
@ -54,7 +54,7 @@
|
||||
<view class="street_bg">
|
||||
<view class="text flex_a_c"> <i class="iconfont icon-xinghao"></i> 店铺街背景图</view>
|
||||
<block v-if="images[2].img">
|
||||
<u--image :showLoading="true" :src="images[2].img" width="388px" height="210.53rpx" radius="4px"
|
||||
<u--image :showLoading="true" :src="images[2].img" width="360px" height="210.53rpx" radius="4px"
|
||||
@click="delImg(2)"></u--image>
|
||||
</block>
|
||||
<view v-else class="street_img flex_a_c" @click="seleckImage(2)">
|
||||
@ -132,14 +132,14 @@
|
||||
</view>
|
||||
<view class="item_cell flex_a_c">
|
||||
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>先货后款结算周期:</view>
|
||||
<input type="number" v-model="settle_cycle" placeholder="请输入 /周期单位为:天">
|
||||
<input type="number" v-model="settle_cycle" placeholder="请输入 /周期单位为:天" >
|
||||
</view>
|
||||
<view class="remarks">*周期结算时间范围为:15~100 周期单位为:天</view>
|
||||
<view class="remarks">*周期结算时间范围为:15~90 周期单位为:天</view>
|
||||
<view class="item_cell flex_a_c">
|
||||
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>先货后款结算利率:</view>
|
||||
<input type="number" v-model="interest_rate" placeholder="请输入 /利率单位为: %">
|
||||
<input type="number" maxlength="5" v-model="interest_rate" placeholder="请输入 /利率单位为: %">
|
||||
</view>
|
||||
<view class="remarks">*利率结算范围为:0.035 ~ 0.01 利率单位为:%</view>
|
||||
<view class="remarks">*利率结算范围为:0.01 ~ 0.1 利率单位为:%</view>
|
||||
<!-- <view class="item_cell">
|
||||
<view class="if_btn flex_a_c_j_sb">
|
||||
<text class="sub_title">是否开启商户:</text>
|
||||
@ -239,7 +239,7 @@
|
||||
mer_address: '',
|
||||
id: '',
|
||||
mer_certificate: '',
|
||||
credit_buy:0,//开启信用购
|
||||
credit_buy:false,//开启信用购
|
||||
interest_rate:'',//利率
|
||||
settle_cycle:'',//周期
|
||||
}
|
||||
@ -275,7 +275,7 @@
|
||||
this.servicePhone = res.data.service_phone
|
||||
this.mer_address = res.data.mer_address
|
||||
this.merState = res.data.mer_state === 1 ? true : false
|
||||
this.credit_buy = res.data.credit_buy
|
||||
this.credit_buy = res.data.credit_buy === 1 ?true : false
|
||||
if( res.data.settle_cycle == 0){
|
||||
this.settle_cycle=''
|
||||
}else{
|
||||
@ -297,6 +297,7 @@
|
||||
},
|
||||
//开启信用购
|
||||
change(e){
|
||||
this.credit_buy = e
|
||||
console.log(e);
|
||||
},
|
||||
// 上传店铺背景
|
||||
@ -320,6 +321,16 @@
|
||||
})
|
||||
},
|
||||
submitData() {
|
||||
if(this.settle_cycle<15){
|
||||
this.settle_cycle=15
|
||||
}else if(this.settle_cycle > 90){
|
||||
this.settle_cycle=90
|
||||
}
|
||||
if(this.interest_rate<0.01){
|
||||
this.interest_rate=0.01
|
||||
}else if(this.interest_rate > 0.1){
|
||||
this.interest_rate=0.1
|
||||
}
|
||||
let data = {
|
||||
mer_banner: this.images[0].img,
|
||||
mer_avatar: this.images[1].img,
|
||||
@ -361,8 +372,9 @@
|
||||
})
|
||||
},
|
||||
selfLocation() {
|
||||
console.log('123');
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
type: 'wgs84',
|
||||
success: (res) => {
|
||||
this.latitude = res.latitude.toString();
|
||||
this.longitude = res.longitude.toString();
|
||||
|
@ -3,7 +3,13 @@
|
||||
<view class="top">
|
||||
<!-- -->
|
||||
</view>
|
||||
<view class='list'>
|
||||
<view class="bgc_img" v-if="!this.shopList">
|
||||
<image src="@/static/images/empty-box.png" mode="widthFix"></image>
|
||||
<view class="txt">
|
||||
暂无商品订单~
|
||||
</view>
|
||||
</view>
|
||||
<view class='list' v-else>
|
||||
<block>
|
||||
<view class='item' v-for="(item,index) in shopList" :key="index">
|
||||
<view v-for="(items,index) in item.orderProduct" :key="index">
|
||||
@ -79,7 +85,7 @@
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
status: 2,
|
||||
status: 20,
|
||||
product_type: 98
|
||||
},
|
||||
data: {
|
||||
@ -149,6 +155,7 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.top {
|
||||
background-color: red;
|
||||
height: 55px;
|
||||
@ -159,7 +166,17 @@
|
||||
padding-top: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.bgc_img{
|
||||
position: absolute;
|
||||
top: 30vh;
|
||||
left: 10vw;
|
||||
image{
|
||||
width: 300px;
|
||||
}
|
||||
.txt{
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.list {
|
||||
width: 690rpx;
|
||||
margin: 14rpx auto 0 auto;
|
||||
|
@ -186,8 +186,7 @@
|
||||
<view class="price" v-if="item.isTake == 1"><text>¥</text>{{ item.order.org_price}}</view>
|
||||
</view>
|
||||
<view class="total" v-if="item.credit_buy == 1">
|
||||
|
||||
实付
|
||||
实付价
|
||||
<view class="price"><text>¥</text>0.00</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -249,7 +249,6 @@
|
||||
<view v-if="!item.receipt && item.status != -1" class='bnt cancelBnt'
|
||||
@click.stop='applyInvoice(item.order_id)'>申请开票</view>
|
||||
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
|
||||
<view v-if="!item.receipt && item.status != -1" class="bnt cancelBnt">一键转卖</view>
|
||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>查看详情</view>
|
||||
</block>
|
||||
<block v-if="item.status == 1">
|
||||
@ -259,12 +258,7 @@
|
||||
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
|
||||
</block>
|
||||
<block v-if="item.status == 2">
|
||||
<navigator v-if="community_status == 1 && !item.community_id"
|
||||
:url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id"
|
||||
class='bnt colorBnt' hover-class="none">
|
||||
<text class="iconfont icon-fabu"></text>
|
||||
发布种草
|
||||
</navigator>
|
||||
|
||||
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>去评价
|
||||
</view>
|
||||
</block>
|
||||
@ -543,6 +537,7 @@
|
||||
*
|
||||
*/
|
||||
goPay: function(pay_price, order_id) {
|
||||
console.log(order_id);
|
||||
uni.navigateTo({
|
||||
url: '/pages/users/payment/payment?order_id=' + order_id + '&product_type=' + this.product_type
|
||||
});
|
||||
@ -1180,4 +1175,5 @@
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
@ -47,12 +47,13 @@
|
||||
<view class='conter'>¥ {{couponData.orderList[0].pay_price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="settel">
|
||||
<view class="settel" v-if="this.be_overdue == 0 || this.be_overdue < 0">
|
||||
<view class='settel-t'>
|
||||
<view>利息合计:</view>
|
||||
<view class="conter">
|
||||
<view class='con_text'>¥ {{couponData.orderList[0].pay_price}}</view>
|
||||
<view class='con_text' style="color: #F84221;" v-if="couponData.pay_type == 8">(已逾期1天)</view>
|
||||
<view class='con_text' style="color: #F84221;" v-if="couponData.pay_type == 8">
|
||||
已逾期{{this.be_overday}}天</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -64,7 +65,7 @@
|
||||
<text class='pColor' v-if="cartArr[4].payStatus == 1">¥0.00</text>
|
||||
<text class='pColor' v-else>¥{{couponData.orderList[0].pay_price}}</text>
|
||||
</view>
|
||||
<view style="font-size: 14px;color: #F84221;" v-if="couponData.pay_type == 8">
|
||||
<view style="font-size: 14px;color: #F84221;" v-if="this.be_overdue == 0 || this.be_overdue < 0">
|
||||
可结算周期到期后再付款¥{{totalPrice}}
|
||||
</view>
|
||||
</view>
|
||||
@ -139,15 +140,19 @@
|
||||
],
|
||||
order_id: '',
|
||||
product_type: 0,
|
||||
mer_id:''
|
||||
mer_id:'',
|
||||
be_overdue:'',//逾期时间
|
||||
be_overday:'',//逾期天数
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.order_id = options.order_id
|
||||
if (options.product_type) { this.product_type = options.product_type }
|
||||
console.log(this.product_type);
|
||||
this.getOrderInfo()
|
||||
this.getUserInfo()
|
||||
this.$nextTick(()=>{
|
||||
this.getOrderInfo()
|
||||
this.getUserInfo()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
payItem: function(e) {
|
||||
@ -170,7 +175,9 @@
|
||||
getOrderInfo() {
|
||||
groupOrderDetail(this.order_id, this.product_type).then(res => {
|
||||
this.couponData = res.data
|
||||
console.log(res);
|
||||
this.$nextTick(()=>{
|
||||
this.moerTime(this.couponData.interest.start_time)
|
||||
})
|
||||
})
|
||||
},
|
||||
SubOrder() {
|
||||
@ -213,6 +220,19 @@
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//计算是否逾期
|
||||
moerTime(autoTime){
|
||||
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));
|
||||
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 = (date2- date1)*1000;
|
||||
this.be_overday =Math.floor(date3 / (24 * 3600 * 1000));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user