页面修改

This commit is contained in:
THK3121 2023-08-04 08:57:20 +08:00
parent 7837a9cd83
commit da13b53bbd
21 changed files with 10392 additions and 8819 deletions

View File

@ -708,3 +708,7 @@ export function hasServiceApi(id) {
export function getBankInfo() {
return request.get(`user/extract/history_bank`)
}
// 商户账单管理
export function getBillDetil() {
return request.get(`mer/financial_record`)
}

View File

@ -22,7 +22,7 @@ if (process.env.NODE_ENV === "development") {
// httpApiThree = 'baseUrlTest' // h5跨域配置
// #endif
} else if (process.env.NODE_ENV === 'production') {
// httpApi = 'https://shop.lihaink.cn' // 生产
httpApi = 'https://shop.lihaink.cn' // 生产
httpApi = "https://crmeb-test.shop.lihaink.cn"
httpApiTwo = 'https://nk.lihaink.cn' // 生产
httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产

View File

@ -1,5 +1,6 @@
{
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
"pages": [
//pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
@ -484,6 +485,12 @@
"navigationBarTitleText": "我的订单"
}
},
{
"path": "order_list/indexCopy",
"style": {
"navigationBarTitleText": "我的订单"
}
},
{
"path": "order_list/order",
"style": {

View File

@ -2,30 +2,36 @@
<view>
<view class="order-index" ref="container">
<view class="header acea-row">
<navigator class="item" :url="`/pages/admin/orderList/index?types=1&merId=${mer_id}`" hover-class="none">
<navigator class="item" :url="`/pages/admin/orderList/index?types=1&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ census.unpaid }}</view>
<view>待付款</view>
</navigator>
<navigator class="item" :url="`/pages/admin/orderList/index?types=2&merId=${mer_id}`" hover-class="none">
<navigator class="item" :url="`/pages/admin/orderList/index?types=2&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ census.unshipped }}</view>
<view>待发货</view>
</navigator>
<navigator class="item" :url="`/pages/admin/orderList/index?types=3&merId=${mer_id}`" hover-class="none">
<navigator class="item" :url="`/pages/admin/orderList/index?types=3&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ census.untake }}</view>
<view>待收货</view>
</navigator>
<navigator class="item" :url="`/pages/admin/orderList/index?types=4&merId=${mer_id}`" hover-class="none">
<navigator class="item" :url="`/pages/admin/orderList/index?types=4&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ census.unevaluate }}</view>
<view>待评价</view>
</navigator>
<navigator class="item" :url="`/pages/admin/orderList/index?types=6&merId=${mer_id}`" hover-class="none">
<navigator class="item" :url="`/pages/admin/orderList/index?types=6&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ census.refund }}</view>
<view>退款</view>
</navigator>
</view>
<view class="wrapper">
<view class="title">
<span class="iconfont icon-shujutongji"></span>数据统计
<image src="@/static/images/sjtj.png" mode="widthFix" style="width:40rpx;translate: 0 10rpx;">
</image>数据统计
</view>
<view class="list acea-row" v-if="orderData">
<navigator class="item" :url="`/pages/admin/statistics/index?type=price&time=today&merId=${mer_id}`"
@ -33,7 +39,8 @@
<view class="num">{{ orderData.today.payPrice }}</view>
<view>今日成交额</view>
</navigator>
<navigator class="item" :url="`/pages/admin/statistics/index?type=price&time=yesterday&merId=${mer_id}`"
<navigator class="item"
:url="`/pages/admin/statistics/index?type=price&time=yesterday&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ orderData.yesterday.payPrice }}</view>
<view>昨日成交额</view>
@ -48,7 +55,8 @@
<view class="num">{{ orderData.today.orderNum}}</view>
<view>今日订单数</view>
</navigator>
<navigator class="item" :url="`/pages/admin/statistics/index?type=order&time=yesterday&merId=${mer_id}`"
<navigator class="item"
:url="`/pages/admin/statistics/index?type=order&time=yesterday&merId=${mer_id}`"
hover-class="none">
<view class="num">{{ orderData.yesterday.orderNum }}</view>
<view>昨日订单数</view>
@ -62,7 +70,8 @@
</view>
<view class="public-wrapper">
<view class="title">
<span class="iconfont icon-xiangxishuju"></span>详细数据
<image src="@/static/images/xxsj.png" mode="widthFix" style="width:40rpx;translate: 0 10rpx;">
</image>详细数据
</view>
<view class="nav acea-row row-between-wrapper">
<view class="data">日期</view>
@ -81,16 +90,12 @@
<view class="footer_bon">
<view class="footer_top public-wrapper ">
<text class="jk_img">
<image src="@/static/images/jiankong.png" ></image>
</text>
<text>订单监控</text>
<image src="@/static/images/ddjk.png" mode="widthFix" style="width:40rpx;"></image>订单监控
</view>
<view v-for="(item,index) in OrderList" :key="index">
<view class="" v-for="(val, key) in item.orderProduct">
<view class="bon_top" :key="key" @click="toDetail(item)">
<view class="public_img">
@ -117,7 +122,8 @@
{{ val.product_num }}
</view>
</view>
<view class="order" style="border-left: 1px solid #999999;border-right: 1px solid #999999;">
<view class="order"
style="border-left: 1px solid #999999;border-right: 1px solid #999999;">
已售数量
<view class="txt">
{{ val.sales_volume }}
@ -135,9 +141,6 @@
</view>
</view>
</view>
<button v-if="this.type_id == 12" class="footer-bnt" @click="navigator()">查看更多 ></button>
@ -153,7 +156,13 @@
</template>
<script>
import { getStatisticsInfo, getStatisticsMonth, orderStatistics, orderPrice, purchaseOrder } from "@/api/admin";
import {
getStatisticsInfo,
getStatisticsMonth,
orderStatistics,
orderPrice,
purchaseOrder
} from "@/api/admin";
import Loading from '@/components/Loading/index.vue'
export default {
name: 'adminOrder',
@ -227,7 +236,9 @@
},
getOrderStatistics: function(mer_id) {
let that = this;
const data = { product_type: this.where.product_type }
const data = {
product_type: this.where.product_type
}
console.log('data', data);
orderStatistics(mer_id, data).then(
res => {
@ -294,6 +305,7 @@
border-radius: 30rpx;
color: #fff;
}
.supervisory_img {
display: inline-block;
width: 500rpx;
@ -301,6 +313,7 @@ height: 500rpx;
background-color: red;
overflow: hidden;
}
.iconfont {
display: inline-block;
position: relative;
@ -328,7 +341,7 @@ overflow: hidden;
/*订单首页*/
.order-index .header {
background-image: url("https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/beijing2.png");
background: url("@/static/images/beijin.png") no-repeat;
background-size: 100% 100%;
width: 100%;
height: 280upx;
@ -470,6 +483,7 @@ overflow: hidden;
overflow: hidden;
// border: 1px solid red;
border-radius: 40px;
image {
width: 22px;
height: 22px;
@ -516,6 +530,7 @@ overflow: hidden;
color: #F84221;
}
}
.text_order {
width: 200px;
overflow: hidden;

View File

@ -45,7 +45,8 @@
退款单号{{ item.refund_order_sn }}
<text class="time">申请时间{{ item.create_time }}</text>
</view>
<view class="pos-order-goods" v-for="(val, key) in item.refundProduct" :key="key" @click="toRefundDetail(item)">
<view class="pos-order-goods" v-for="(val, key) in item.refundProduct" :key="key"
@click="toRefundDetail(item)">
<view class="goods acea-row row-between-wrapper">
<view class="picTxt acea-row row-between-wrapper">
<view class="pictrue">
@ -80,9 +81,11 @@
<view class="acea-row row-middle">
<view class="bnt" @click="refundModify(item, 1)">订单备注</view>
<navigator class="bnt bnt_color" v-if="item.status == 0"
:url="'/pages/admin/orderRefund/index?id='+item.refund_order_id+'&merId='+merId">立即退款</navigator>
:url="'/pages/admin/orderRefund/index?id='+item.refund_order_id+'&merId='+merId">立即退款
</navigator>
<navigator class="bnt" v-if="item.status == 2"
:url="'/pages/users/goods_logistics/index?refundId='+item.refund_order_id+'&merId='+merId">查看物流
:url="'/pages/users/goods_logistics/index?refundId='+item.refund_order_id+'&merId='+merId">
查看物流
</navigator>
<view class="bnt bnt_color" v-if="item.status == 2" @tap='confirmOrder(item)'>确认收货</view>
</view>
@ -100,7 +103,8 @@
<text class="order-status"
v-if="item.refunding != 0 && where.status != 1">{{item.refunding==1 ? '退款中' : item.refunding==2 ? '部分退款' : '全部退款'}}</text>
</view>
<view class="pos-order-goods" v-for="(val, key) in item.orderProduct" :key="key" @click="toDetail(item)">
<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">
@ -135,7 +139,8 @@
<span v-if="where.status <= 1"></span>
<span v-else></span>
支付
<span class="money" style="margin-right: 30rpx;">{{ item.pay_price }}</span> (邮费 ¥{{ item.pay_postage}})
<span class="money" style="margin-right: 30rpx;">{{ item.pay_price }}</span> (邮费
¥{{ item.pay_postage}})
</view>
<view class="public-total" v-else>
先货后款
@ -151,19 +156,24 @@
<view class="more">
</view>
<view class="acea-row row-middle">
<view class="bnt" v-if="item.pay_type == 8 && item.status == 12" @click="tongyi(item.group_order_id,1)">
<view class="bnt" v-if="item.pay_type == 8 && item.status == 12"
@click="tongyi(item.group_order_id,1)">
同意
</view>
<view class="bnt" v-if="item.pay_type == 8 && item.status == 12 " @click="tongyi(item.group_order_id,2)">
<view class="bnt" v-if="item.pay_type == 8 && item.status == 12 "
@click="tongyi(item.group_order_id,2)">
拒绝
</view>
<view class="bnt" @click="modify(item, 0)" v-if="item.pay_type !=8 && item.paid !=1 ">
<view class="bnt" @click="modify(item, 0)"
v-if="item.pay_type !=8 && item.paid !=1 &&!(item.status ==2 && item.pau_type==8) ">
一键改价
</view>
<view class="bnt" @click="modify(item, 1)">订单备注</view>
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0" @click="toPostage(item)">去发货
<view class="bnt bnt_color" v-if="where.status == 2 && item.order_type == 0"
@click="toPostage(item)">去发货
</view>
<view class="bnt bnt_color" v-if="(where.status == 2 && item.order_type == 1) || where.is_verify == 1"
<view class="bnt bnt_color"
v-if="(where.status == 2 && item.order_type == 1) || where.is_verify == 1"
@click="toDetail(item)">去核销</view>
</view>
</view>
@ -217,7 +227,9 @@
} from "@/api/admin";
import Loading from '@/components/Loading/index'
import PriceChange from '@/components/PriceChange/index'
import { isMoney } from '@/utils/validate.js'
import {
isMoney
} from '@/utils/validate.js'
export default {
name: "AdminOrderList",
components: {
@ -308,7 +320,9 @@
that.where.page = that.where.page + 1;
},
err => {
that.$util.Tips({ title: err });
that.$util.Tips({
title: err
});
}
);
} else {
@ -323,7 +337,9 @@
// console.log(that.list);
},
err => {
that.$util.Tips({ title: err });
that.$util.Tips({
title: err
});
}
);
}
@ -370,7 +386,9 @@
title: '请输入备注'
})
}
setRefundMark(that.merId, that.refundInfo.refund_order_id, { mer_mark: that.refundInfo.mer_mark }).then(
setRefundMark(that.merId, that.refundInfo.refund_order_id, {
mer_mark: that.refundInfo.mer_mark
}).then(
res => {
that.refundMark = false;
this.$util.Tips({
@ -448,7 +466,9 @@
let id = that.orderInfo.order_id;
if (that.status == 0) {
if (!isMoney(opt.orderInfo.pay_postage || opt.orderInfo.total_price)) {
return that.$util.Tips({ title: '请输入正确的金额' });
return that.$util.Tips({
title: '请输入正确的金额'
});
}
data.pay_price = price;
setAdminOrderPrice(this.merId, id, parmas).then(
@ -474,7 +494,9 @@
title: '请输入备注'
})
}
setAdminOrderRemark(this.merId, id, { remark: remark }).then(
setAdminOrderRemark(this.merId, id, {
remark: remark
}).then(
res => {
that.change = false;
this.$util.Tips({
@ -485,7 +507,9 @@
},
err => {
that.change = false;
that.$util.Tips({ title: err });
that.$util.Tips({
title: err
});
}
);
}

View File

@ -8,7 +8,8 @@
<view class="special_work com" v-if="true">
<view class="title">市级供应链</view>
<view class="content">
<view class="examine" @click="navigator(`/pages/nongKe/supply_chain/goods_list?merid=${mer_id}`)">
<view class="examine"
@click="navigator(`/pages/nongKe/supply_chain/goods_list?merid=${mer_id}`)">
<image class="icon_img" :src="`${prefix}zsgl.png`" mode="aspectFill"></image>
<text class="text">在售管理</text>
</view>
@ -39,8 +40,8 @@
<text class="text">提现管理</text>
</view>
<view class="examine" @click="navigator(`/pages/nongKe/teach_video/teach_video`)">
<image class="icon_img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/spjs.png"
mode="aspectFill">
<image class="icon_img"
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/spjs.png" mode="aspectFill">
</image>
<text class="text">视频教学</text>
</view>
@ -69,7 +70,8 @@
<image class="icon_img" :src="`${prefix}ghcg.png`" mode="aspectFill"></image>
<text class="text">供货采购</text>
</view>
<view class="examine" @click="navigator('/pages/users/order_list/index?status=-1&product_type=98')">
<view class="examine"
@click="navigator('/pages/users/order_list/indexCopy?status=-1&product_type=98')">
<image class="icon_img" :src="`${prefix}jhgl.png`" mode="aspectFill"></image>
<text class="text">进货管理</text>
</view>
@ -102,7 +104,8 @@
</image>
<text class="text">订单核销</text>
</view>
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&type_id=${userInfoData.mer_info.type_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>
@ -112,22 +115,26 @@
</image>
<text class="text">商品管理</text>
</view>
<view class="examine" @click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<view class="examine"
@click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<image class="icon_img" :src="`${prefix}shsz.png`" mode="aspectFill">
</image>
<text class="text">商户设置</text>
</view>
<view class="examine" @click="navigator(`/pages/users/trading_hall/index?mer_id=${mer_id}`)">
<view class="examine"
@click="navigator(`/pages/users/trading_hall/index?mer_id=${mer_id}`)">
<image class="icon_img" src="@/static/images/diaohuo.png" mode="aspectFill">
</image>
<text class="text">交易大厅</text>
</view>
<view class="examine" @click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<view class="examine"
@click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<image class="icon_img" src="@/static/images/weituo.png" mode="aspectFill">
</image>
<text class="text">委托销售</text>
</view>
<view class="examine" @click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<view class="examine"
@click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<image class="icon_img" src="@/static/images/fabu.png" mode="aspectFill">
</image>
<text class="text">发布管理</text>
@ -188,7 +195,8 @@
</image>
<text class="text">订单核销</text>
</view>
<view class="examine" @click="navigator(`/pages/admin/order/index?mer_id=${mer_id}&type_id=${userInfoData.mer_info.type_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>
@ -198,7 +206,8 @@
</image>
<text class="text">商品管理</text>
</view>
<view class="examine" @click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<view class="examine"
@click="navigator(`/pages/product/basicSet?mer_id=${mer_id}`, '商户设置')">
<image class="icon_img" :src="`${prefix}shsz.png`" mode="aspectFill">
</image>
<text class="text">商户设置</text>

View File

@ -7,13 +7,15 @@
<view class="tabs_wrapper">
<u-tabs :list="tabsData.list" @click="tabsChange" lineColor="#F84221" keyName="cate_name"></u-tabs>
</view>
<view class="">
</view>
<view class="goods">
<block v-for="(item,index) in cateGoods" :key="index">
<view class="goods_item" @click="gogogo(item)">
<view style="height: 294.74rpx;">
<u--image :src="item.image[0]" width="342.11rpx" height="294.74rpx" :showLoading="true" lazyLoad fade
duration="450">
<u--image :src="item.image[0]" width="342.11rpx" height="294.74rpx" :showLoading="true"
lazyLoad fade duration="450">
<template v-slot:loading>
<u-loading-icon color="#f5f5f5"></u-loading-icon>
</template>
@ -23,12 +25,13 @@
<view class="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
<view class="l_info flex_a_c">
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'" mode="aspectFill"
class="g_img"></image>
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
mode="aspectFill" class="g_img"></image>
<view class="g_name">{{item.author && item.author.nickname}}</view>
</view>
<view class="nice_box" @click.stop="giveStart(item)">
<text class="iconfont" :class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
<text class="iconfont"
:class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
<text class="collect">{{item.count_start}}</text>
</view>
</view>
@ -60,12 +63,29 @@
import mTabbar from '@/components/m-tabbar/m-tabbar.vue'
import zbpSwiper from '@/components/zbpSwiper'
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
import { getSlideAPI } from '@/api/lihai.js'
import { graphicLstApi, getTopicList, graphicStartApi } from '@/api/community.js'
import { getIndexData, getDiy } from '@/api/api.js'
import { getGeocoder, merClassifly } from '@/api/store.js';
import { getArea, getStreet } from '@/api/article.js';
import { Toast } from '@/libs/uniApi'
import {
getSlideAPI
} from '@/api/lihai.js'
import {
graphicLstApi,
getTopicList,
graphicStartApi
} from '@/api/community.js'
import {
getIndexData,
getDiy
} from '@/api/api.js'
import {
getGeocoder,
merClassifly
} from '@/api/store.js';
import {
getArea,
getStreet
} from '@/api/article.js';
import {
Toast
} from '@/libs/uniApi'
export default {
components: {
mTabbar,
@ -205,7 +225,8 @@
if (item.index == 1) {
uni.navigateTo({
// #ifdef MP || H5
url: '/pages/short_video/nvueSwiper/index?id=' + this.cateGoods[0].community_id
url: '/pages/short_video/nvueSwiper/index?id=' + this.cateGoods[0]
.community_id
// #endif
// #ifdef APP
url: `/pages/short_video/appSwiper/index?id=${this.cateGoods[0].community_id}`
@ -216,7 +237,9 @@
},
/*获取分类列表*/
async getCateList() {
const { data } = await getTopicList()
const {
data
} = await getTopicList()
this.tabsData.list = [{
cate_name: "推荐",
category_id: 0
@ -244,7 +267,10 @@
let latitude, longitude;
latitude = res.latitude.toString();
longitude = res.longitude.toString();
getGeocoder({ lat: latitude, long: longitude }).then(res => {
getGeocoder({
lat: latitude,
long: longitude
}).then(res => {
that.$store.commit('setLocation', res.data)
that.street = res.data.address_component.street
}).catch(err => {
@ -273,10 +299,12 @@
var main = plus.android.runtimeMainActivity();
var pkName = main.getPackageName();
var uid = main.getApplicationInfo().plusGetAttribute("uid");
var NotificationManagerCompat = plus.android.importClass("android.support.v4.app.NotificationManagerCompat");
var NotificationManagerCompat = plus.android.importClass(
"android.support.v4.app.NotificationManagerCompat");
//android.support.v4androidx
if (NotificationManagerCompat == null) {
NotificationManagerCompat = plus.android.importClass("androidx.core.app.NotificationManagerCompat");
NotificationManagerCompat = plus.android.importClass(
"androidx.core.app.NotificationManagerCompat");
}
var areNotificationsEnabled = NotificationManagerCompat.from(main).areNotificationsEnabled();
//
@ -300,7 +328,8 @@
intent.putExtra("app_uid", uid);
} else { //(<21)--
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
var uri = Uri.fromParts("package", mainActivity.getPackageName(), null);
var uri = Uri.fromParts("package", mainActivity.getPackageName(),
null);
intent.setData(uri);
}
//

View File

@ -43,8 +43,7 @@
</view>
<!--预售代付款-->
<view v-else class="presell_bg_header">
<view class='header presell_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>
@ -68,13 +67,15 @@
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-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>
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">发货时间
<!--全款预售-->
@ -95,12 +96,15 @@
<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 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 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>
@ -155,20 +159,23 @@
<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 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"
<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 v-for="(pic,i) in item" :key="i" class="picture" :src="pic"
@click="getPhotoClickIdx(item,i)">
</image>
</view>
</view>
@ -188,11 +195,13 @@
</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;">
<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">
<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>
@ -243,16 +252,34 @@
// | 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 {
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 {
configMap
} from "@/utils";
import {
mapGetters
} from "vuex";
import authorize from '@/components/Authorize';
export default {
components: {
@ -325,7 +352,11 @@
this.payMode[2].payStatus = n
}
},
computed: configMap({ hide_mer_status: 0, alipay_open: 0, yue_pay_status: 0 },
computed: configMap({
hide_mer_status: 0,
alipay_open: 0,
yue_pay_status: 0
},
mapGetters(['isLogin', 'uid', 'viewColor', 'keyColor', ])),
onLoad: function(options) {
this.credit_buy = options.credit_buy
@ -387,7 +418,8 @@
},
//
goProduct(goods) {
goods.activity_id = goods.cart_info && goods.cart_info.activeSku && goods.cart_info.activeSku.product_group_id
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}`
@ -431,7 +463,8 @@
*/
pay_open: function() {
uni.navigateTo({
url: '/pages/users/payment/payment?order_id=' + this.order_id + '&product_type=' + this.product_type
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();
@ -499,9 +532,7 @@
this.pay_type = this.orderInfo.pay_type
if (this.orderInfo.interest !== null) {
this.moerTime(this.orderInfo.interest.start_time)
}
else{
} else {
this.isSelfOrder = true
this.moerTime(this.orderInfo.create_time)
// console.log(this.orderInfo.create_time)
@ -560,8 +591,10 @@
let limitPayTime = 60 //
let curData = new Date(autoTime);
curData.setSeconds(curData.getSeconds() + (60 * limitPayTime));
this.be_overdue=curData.toLocaleString().slice(0, curData.toLocaleString().length - 3)
this.be_overdue = curData.getFullYear() + '-' + (curData.getMonth() + 1) + '-' + curData.getDate() +
' ' +
curData.getHours() + ':' +
(curData.getMinutes() > 10 ? curData.getMinutes() : "0" + curData.getMinutes())
return
}
@ -693,6 +726,7 @@
color: #fff;
margin-bottom: 7rpx;
}
.btn_cancel {
margin-right: 200rpx;
margin-top: 20rpx;
@ -705,6 +739,7 @@
color: #282828;
font-size: 12px;
}
.presell_header .presell_payment {
color: #fff;
font-size: 30rpx;
@ -1193,6 +1228,7 @@
top: 29vh;
left: 60px;
width: 70%;
image {
width: 100%;
}

View File

@ -320,6 +320,8 @@
uni.chooseVideo({
sourceType: ['camera', 'album'],
success: res => {
console.log(res)
if (Math.ceil(res.size / 1024) < this.upload_max * 1024) {
uni.uploadFile({
url: this.uploadUrl, //
@ -351,9 +353,11 @@
}
},
fail: err => {
uni.showModal({
content: JSON.stringify(err)
});
//
// uni.showModal({
// content: JSON.stringify(err)
// });
console.log(err)
}
});
},

View File

@ -34,7 +34,18 @@
:vertical="true" @animationfinish="animationfinish" @change="change" :current="k" :indicator-dots="false">
<swiper-item v-for="(list,index) in dataList">
<view v-if="max > index">
<!-- <view style="width: 100px;height: 100px;background-color: red;">
5666
</view> -->
<view>
<!-- 这种视频背景模糊的效果怎么做呢 -->
<!--
1.v-if用于控制视频在节点的渲染数
2.muted的默认值是 false代表默认是禁音视频的
@ -49,7 +60,12 @@
:show-center-play-btn="false" :enable-progress-gesture="false" :src="list.video_link"
@ended="ended" @play="play(index)" @click="tapVideoHover(list.state,$event)"
@waiting="waiting(index)"
:style="'width: '+ windowWidth +'px; height: '+ windowHeight +'px;z-index: -1;'"></video>
style="width: 100vw; height: 100vh;z-index: -1;transform: scale(4)">
</video>
</view>
<!-- 播放状态pause 的时候就会暂停 -->
<!-- <view class="videoHover" @click="tapVideoHover(list.state,$event)"
@ -1868,4 +1884,8 @@
color: #999;
}
}
.videoa {
background-color: red;
}
</style>

View File

@ -51,7 +51,7 @@
</view>
<view class='tip mt25'>
当前可提现金额: <text
class="price">{{userInfo.brokerage_price}},</text>冻结佣金{{userInfo.lock_brokerage}}
class="price">{{extract_money}},</text>冻结佣金{{userInfo.lock_brokerage}}
</view>
<view class='tip'>
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}到期后可提现
@ -92,7 +92,7 @@
<view class='tip mt25'>
当前可提现金额: <text
class="price">{{userInfo.brokerage_price}},</text>冻结佣金{{userInfo.lock_brokerage}}
class="price">{{extract_money}},</text>冻结佣金{{userInfo.lock_brokerage}}
</view>
<view class='tip'>
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}到期后可提现
@ -100,7 +100,7 @@
<button formType="submit" class='bnt b-color'>提现</button>
</view>
<view v-else class="auto_arrival">
<view class='tip'>当前可提现金额: <text class="price">{{userInfo.brokerage_price}}</text>
<view class='tip'>当前可提现金额: <text class="price">{{extract_money}}</text>
</view>
<view class='input'><input placeholder-class='placeholder1' name="extract_price"
type='digit' :placeholder="placeholderValue" @focus="placeholderValue = ''"
@ -141,7 +141,7 @@
</view>
<view class='tip mb25'>
当前可提现金额: <text
class="price">{{userInfo.brokerage_price}},</text>冻结佣金{{userInfo.lock_brokerage}}
class="price">{{extract_money}},</text>冻结佣金{{userInfo.lock_brokerage}}
</view>
<view class='tip' v-if="userInfo.broken_day>0">
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}到期后可提现
@ -166,7 +166,8 @@
getAdminApplyAPI,
getLisApplyAPI,
getAccountApplyAPI,
postAccountApplyAPI
postAccountApplyAPI,
} from '@/api/user.js'
import {
extractCash,
@ -192,6 +193,7 @@
},
data() {
return {
extract_money:"",
mode: {
bank_address: "",
bank_code: "",
@ -276,6 +278,8 @@
this.mode.bank_code = res.data.financial_bank_code
this.mode.bank_name = res.data.financial_bank_bank
this.mode.bank_address = res.data.financial_bank_branch
this.extract_money=res.data.extract_money
console.log(this.extract_money)
} catch (err) {
//TODO handle the exception
Toast(err)

View File

@ -56,14 +56,14 @@
</view>
<view class="totalfooter">
<view class='bnt b-color' v-if="item.orderProduct[indexs]"
@click="importshop(item.order_id,item.orderProduct[index].product_id,item.orderProduct[index].cart_info.productAttr.product_sku)">
@click="importshop(item.order_id,item.orderProduct[indexs].product_id,item.orderProduct[indexs].product_sku)">
立即导入</view>
</view>
</view>
</block>
</view>
</view>
<view class='totalPrice'>
<view class='totalPrice'>s
{{item.orderProduct.length}}件商品总金额
<text class='money'>{{item.pay_price}}</text>
</view>
@ -162,6 +162,7 @@
this.data.order_id = order_id
this.data.order_product_id = product_id
this.data.order_unique = unique
console.log(this.data)
this.show = true
postImport(this.mer_id, this.data).then(res => {
console.log(res);

View File

@ -68,7 +68,8 @@
</view>
<view class="progress_step">
<text class="name">尾款</text>
<text class="price">{{ (goods.productPresellAttr.final_price * goods.cart_num).toFixed(2) }}</text>
<text
class="price">{{ (goods.productPresellAttr.final_price * goods.cart_num).toFixed(2) }}</text>
</view>
<view class="progress_pay">
{{ goods.productPresell.final_start_time | filterDay}}开始支付尾款
@ -118,7 +119,8 @@
<view class="boxs">
<view class='item acea-row row-between-wrapper'>
<view>配送方式</view>
<view v-if="item.delivery_way.length == 2 && (item.order.allow_delivery && item.order.allow_take)"
<view
v-if="item.delivery_way.length == 2 && (item.order.allow_delivery && item.order.allow_take)"
class='discount' @tap="openShowBox(item,index)">
{{item.order.isTake==0 ? deliveryName :'到店核销'}}
<text class='iconfont icon-jiantou'></text>
@ -177,8 +179,9 @@
</view>
<view class='item acea-row row-between-wrapper' v-if="textareaStatus">
<view style="width: 100px;">备注信息</view>
<input v-if="coupon.status===false" placeholder-class='placeholder' @input='bindHideKeyboard' value=""
name="mark" placeholder='选填备注信息' v-model="msgObj[item.mer_id]"></input>
<input v-if="coupon.status===false" placeholder-class='placeholder'
@input='bindHideKeyboard' value="" name="mark" placeholder='选填备注信息'
v-model="msgObj[item.mer_id]"></input>
</view>
<view class="total">
{{item.order.total_num}} 小计
@ -199,36 +202,40 @@
<view v-if="item.key == 'mobile'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写手机号" placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写手机号"
placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'email'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写邮箱" placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写邮箱"
placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'idCard'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input type="text" v-model="item.value" placeholder="请填写身份证号" placeholder-class='placeholder' />
<input type="text" v-model="item.value" placeholder="请填写身份证号"
placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'text' || item.key == 'number'" class='item acea-row row-between-wrapper'>
<view v-if="item.key == 'text' || item.key == 'number'"
class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<input v-if="item.key == 'text'" type="text" v-model="item.value" :placeholder="'请填写'+item.title"
placeholder-class='placeholder' />
<input v-if="item.key == 'number'" type="number" v-model="item.value" :placeholder="'请填写'+item.title"
placeholder-class='placeholder' />
<input v-if="item.key == 'text'" type="text" v-model="item.value"
:placeholder="'请填写'+item.title" placeholder-class='placeholder' />
<input v-if="item.key == 'number'" type="number" v-model="item.value"
:placeholder="'请填写'+item.title" placeholder-class='placeholder' />
</view>
</view>
<view v-if="item.key == 'date'" class='item acea-row row-between-wrapper'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<picker mode="date" :value="item.value" start="1970-01-01" @change="bindDateChange">
<input type="text" @click="getTime(index)" disabled v-model="item.value" placeholder="请选择日期"
placeholder-class='placeholder' />
<input type="text" @click="getTime(index)" disabled v-model="item.value"
placeholder="请选择日期" placeholder-class='placeholder' />
</picker>
</view>
</view>
@ -236,16 +243,16 @@
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class='discount'>
<picker mode="time" :value="item.value" start="1970-01-01" @change="bindDateChange">
<input type="text" @click="getTime(index)" disabled v-model="item.value" placeholder="请选择时间"
placeholder-class='placeholder' />
<input type="text" @click="getTime(index)" disabled v-model="item.value"
placeholder="请选择时间" placeholder-class='placeholder' />
</picker>
</view>
</view>
<view v-if="item.key == 'image'" class='item'>
<view><text class="item-require" v-if="item.require">*</text>{{item.title}}</view>
<view class="upload">
<view class='pictrue' v-for="(itemn,indexn) in item.value" :key="indexn" :data-index="indexn"
@click="getPhotoClickIdx">
<view class='pictrue' v-for="(itemn,indexn) in item.value" :key="indexn"
:data-index="indexn" @click="getPhotoClickIdx">
<image :src="itemn"></image>
<text class="iconfont icon-guanbi4" @click.stop="DelPic(item,indexn)"></text>
</view>
@ -274,13 +281,15 @@
<view class='item acea-row row-between-wrapper'>
<view><text class="item-require">*</text>收货人姓名</view>
<view class='discount'>
<input type="text" v-model="post.real_name" placeholder="请填写收货人姓名" placeholder-class='placeholder' />
<input type="text" v-model="post.real_name" placeholder="请填写收货人姓名"
placeholder-class='placeholder' />
</view>
</view>
<view class='item acea-row row-between-wrapper'>
<view><text class="item-require">*</text>收货人电话</view>
<view class='discount'>
<input type="number" v-model="post.phone" placeholder="请填写收货人电话" placeholder-class='placeholder' />
<input type="number" v-model="post.phone" placeholder="请填写收货人电话"
placeholder-class='placeholder' />
</view>
</view>
</form>
@ -337,7 +346,8 @@
<view>店铺优惠金额</view>
<view class='money'>-{{coupon_price}}</view>
</view>
<view class='item acea-row row-between-wrapper' v-if="open_integral && userInfo.integral>0 && order_type == 0">
<view class='item acea-row row-between-wrapper'
v-if="open_integral && userInfo.integral>0 && order_type == 0">
<view>积分抵扣</view>
<view class='money'>
<text v-if="!use_integral">当前积分<text class="pColor">{{userInfo.integral}}</text></text>
@ -390,8 +400,8 @@
</view>
<block v-if="coupon.status">
<couponListWindow :coupon='coupon' :couponTitle="plantCoupon ? '平台优惠券' : '优惠券'"
@ChangCouponsClone="ChangCouponsClone" @getCoupon="getCoupon" :openType='openType' @ChangCoupons="ChangCoupons"
:coupon_amount='coupon_amount' :coupon_number='coupon_number'>
@ChangCouponsClone="ChangCouponsClone" @getCoupon="getCoupon" :openType='openType'
@ChangCoupons="ChangCoupons" :coupon_amount='coupon_amount' :coupon_number='coupon_number'>
</couponListWindow>
</block>
<addressWindow ref="addressWindow" @changeTextareaStatus="changeTextareaStatus" :address='address'
@ -399,8 +409,8 @@
<addInvoicing ref="addInvoicing" @changeInvoiceClose="changeInvoiceClose" :invoice='invoice'></addInvoicing>
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
<block v-if="isShowBox">
<checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj" :radioList="radioList"
@close="boxClose" @confirmBtn="getData">
<checkDelivery :deliveryName="deliveryName" :isShowBox="isShowBox" :activeObj="activeObj"
:radioList="radioList" @close="boxClose" @confirmBtn="getData">
</checkDelivery>
</block>
<!--优惠明细弹窗-->
@ -1202,8 +1212,12 @@
orderId = res.data.result.order_id,
callback_key = res.data.result.pay_key,
jsConfig = res.data.result.config,
goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message +'&product_type=' + that.product_type,
goPagesOrder = '/pages/order_details/stay?order_id=' + orderId + '&credit_buy=1&product_type=' + that.product_type;
//
goPages = '/pages/order_pay_status/index?order_id=' + orderId + '&msg=' + res.message +
'&product_type=' + that.product_type,
goPagesOrder = '/pages/order_details/stay?order_id=' + orderId +
'&credit_buy=1&product_type=' + that.product_type;
that.orderPay = true;
uni.hideLoading();
switch (status) {
@ -1229,10 +1243,10 @@
break;
case 'alipay':
case "alipayQr":
uni.navigateTo({
url: '/pages/order_pay_back/index?keyCode=' + callback_key + '&url=' +
jsConfig
})
// uni.navigateTo({
// url: '/pages/order_pay_back/index?keyCode=' + callback_key + '&url=' +
// jsConfig
// })
return;
break;
// #ifndef MP
@ -1269,8 +1283,10 @@
provider: 'wxpay',
orderInfo: jsConfig,
success: (e) => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=支付成功' + '&product_type=' + that.product_type;
return that.$util.Tips({
title: '支付成功',
icon: 'success'
@ -1280,6 +1296,7 @@
});
},
fail: (e) => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
@ -1290,6 +1307,7 @@
});
},
complete: () => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
@ -1326,8 +1344,10 @@
});
},
fail: function(e) {
//
let pages = '/pages/order_pay_status/index?order_id=' +
orderId + '&msg=取消支付'+'&product_type=' + that.product_type
orderId + '&msg=取消支付' + '&product_type=' + that
.product_type
return that.$util.Tips({
title: '取消支付'
}, {
@ -1355,6 +1375,7 @@
let eUrl = encodeURIComponent(url)
let jsurl = jsConfig.mweb_url || jsConfig.h5_url
let locations = `${jsurl}&redirect_url=${eUrl}`
//
setTimeout(() => {
location.href = locations;
}, 100);
@ -1375,8 +1396,10 @@
});
},
fail: (e) => {
//
let pages = '/pages/order_pay_status/index?order_id=' +
orderId + '&msg=支付失败'+'&product_type=' + that.product_type
orderId + '&msg=支付失败' + '&product_type=' + that
.product_type
return that.$util.Tips({
title: '支付失败'
}, {
@ -1386,8 +1409,11 @@
},
complete: () => {
uni.hideLoading();
//
let pages = '/pages/order_pay_status/index?order_id=' +
orderId + '&msg=取消支付'+'&product_type=' + that.product_type
orderId + '&msg=取消支付' + '&product_type=' + that
.product_type
return that.$util.Tips({
title: '取消支付'
}, {
@ -1399,8 +1425,10 @@
break;
// #endif
default:
//
let pages = '/pages/order_pay_status/index?order_id=' +
orderId + '&msg=取消支付' + '&product_type=' + that.product_type
return that.$util.Tips({
title: '取消支付'
}, {
@ -1583,6 +1611,15 @@
.Tips({
title: '余额不足!'
});
//
// if (this.payType == 'creditBuy') {
// uni.navigateTo({
// ur
// })
// return
// }
uni.showLoading({
title: '订单支付中',
mask: true
@ -1595,8 +1632,6 @@
// #ifndef MP
that.payment(data);
// #endif
},
//
openShowBox(item, index) {

View File

@ -1,4 +1,9 @@
<template>
<!--
个人中心,区别于供货采购个人中心
-->
<view :style="viewColor">
<view class='my-order'>
<view class='header'>
@ -89,7 +94,8 @@
class="event_name event_bg">预售</text><text>{{goods.cart_info.product.store_name}}</text>
<view class="event_ship event_color">发货时间
<!--全款预售-->
<text v-if="goods.cart_info.productPresell.presell_type === 1">
<text
v-if="goods.cart_info.productPresell.presell_type === 1">
{{ goods.cart_info.productPresell.delivery_type === 1 ? '支付成功后' : '预售结束后' }}{{ goods.cart_info.productPresell.delivery_day }}天内
</text>
<!--定金预售-->
@ -102,7 +108,8 @@
</view>
<view>x{{goods.product_num}}</view>
</view>
<view class="money" style="margin-left: 117px;" v-if="item.pay_type == 8">
<view class="money" style="margin-left: 117px;"
v-if="item.pay_type == 8">
<view class='totalPrice' style="margin-right: 50rpx;">先货后款 实付款:
<text class='money p-color'>0.00</text>
</view>
@ -111,9 +118,11 @@
{{item.total_num || 0}}件商品结算周期到期后付款{{goods.cart_info.productAttr.price || item.interest.total_amount}}
</view>
</view>
<view v-if="goods.cart_info.productPresell.presell_type === 2" class="event_price">
<view v-if="goods.cart_info.productPresell.presell_type === 2"
class="event_price">
定金待支付 <text class="t-color">{{ order.pay_price }}</text>
尾款待支付 <text class="t-color">{{ order.presellOrder.pay_price }}</text>
尾款待支付 <text
class="t-color">{{ order.presellOrder.pay_price }}</text>
</view>
</view>
</block>
@ -163,9 +172,13 @@
</view>
<view class="totalPrice" style="margin-right: 15px;" v-if="item.pay_type == 8">
{{item.total_num || 0}}件商品结算周期到期后付款{{ item.interest.total_amount}}
<!-- <button @click="test(item)">按钮</button> -->
</view>
<view class='bottom acea-row row-right row-middle' v-if="item.pay_type == 3 || item.pay_type == 1">
<view class='bnt cancelBnt' @click.stop='cancelOrder(index,item.group_order_id)'>取消订单</view>
<view class='bottom acea-row row-right row-middle'
v-if="item.pay_type == 3 || item.pay_type == 1">
<view class='bnt cancelBnt' @click.stop='cancelOrder(index,item.group_order_id)'>
取消订单</view>
<view class='bnt b-color' @click.stop='goPay(item.pay_price,item.group_order_id)'>
立即付款</view>
</view>
@ -187,9 +200,12 @@
<text class="iconfont icon-xiangyou"></text>
</view>
<view v-if="item.status == 0" class='t-color'>
<text v-if="item.order_type==1">{{item.takeOrderCount > 0 ? '部分核销' : '待核销'}}</text>
<text v-else>待发货</text>
<text
v-if="item.order_type==1">{{item.takeOrderCount > 0 ? '部分核销' : '待核销'}}</text>
<!-- <text v-else>待发货</text> -->
</view>
<view v-if="item.status == 0 && item.pay_type !=3" class='t-color'>待发货</view>
<view v-if="item.status == 0 && item.pay_type==3" class='t-color'>待付款</view>
<view v-if="item.status == 1" class='t-color'>待收货</view>
<view v-if="item.status == 2 && item.pay_type !== 8" class='t-color'>待评价</view>
<view v-if="item.status == 3" class='t-color'>已完成</view>
@ -198,8 +214,8 @@
</view>
<view v-if="item.activity_type === 2">
<view class='item-info acea-row row-between row-top' v-for="(goods,index) in item.orderProduct"
:key="index">
<view class='item-info acea-row row-between row-top'
v-for="(goods,index) in item.orderProduct" :key="index">
<view class='pictrue'>
<image
:src='(goods.cart_info.productAttr && goods.cart_info.productAttr.image) || goods.cart_info.product.image'>
@ -208,7 +224,8 @@
<view class='text acea-row row-between'>
<view class='name '>
<view class='name' :class="item.status === 0 ? 'line1' : 'line2'">
<text class="event_name event_bg">预售</text><text>{{goods.cart_info.product.store_name}}</text>
<text
class="event_name event_bg">预售</text><text>{{goods.cart_info.product.store_name}}</text>
<view v-if="item.status == 0" class="event_ship event_color">发货时间
<!--全款预售-->
<text
@ -225,7 +242,8 @@
<view class='money'>
<view>{{goods.cart_info.productPresellAttr.presell_price}}</view>
<view>x{{goods.product_num}}</view>
<view class="money" style="margin-left: 117px;" v-if="item.pay_type == 0">
<view class="money" style="margin-left: 117px;"
v-if="item.pay_type == 0">
<view class='totalPrice' style="margin-right: 50rpx;">先货后款 实付款:
<text class='money p-color'>0.00</text>
</view>
@ -238,8 +256,8 @@
</view>
</view>
<view v-else>
<view class='item-info acea-row row-between row-top' v-for="(goods,index) in item.orderProduct"
:key="index">
<view class='item-info acea-row row-between row-top'
v-for="(goods,index) in item.orderProduct" :key="index">
<view class='pictrue'>
<image
:src='(goods.cart_info.productAttr && goods.cart_info.productAttr.image) || goods.cart_info.product.image'>
@ -261,7 +279,8 @@
<view v-if="goods.cart_info.productAssistAttr">
{{goods.cart_info.productAssistAttr.assist_price}}</view>
<view>x{{goods.product_num}}</view>
<view class="money" style="margin-left: 117px;" v-if="item.pay_type == 8">
<view class="money" style="margin-left: 117px;"
v-if="item.pay_type == 8">
<view class='totalPrice' style="margin-right: 50rpx;">先货后款 实付款:
<text class='money p-color'>0.00</text>
</view>
@ -303,7 +322,8 @@
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'>查看详情</view>
</block>
<block v-if="item.status == 1">
<view class='bnt cancelBnt' v-if="item.delivery_type == 1 || item.delivery_type == 2"
<view class='bnt cancelBnt'
v-if="item.delivery_type == 1 || item.delivery_type == 2"
@click='goOrderDetails(item.order_id)'>查看物流</view>
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
</block>
@ -311,7 +331,9 @@
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>发布种草
</view>
</block> -->
<navigator v-if=" flag&&item.status == 2 && item.pay_type !== 8" :url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt' hover-class="none">
<navigator v-if=" flag&&item.status == 2 && item.pay_type !== 8"
:url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id"
class='bnt colorBnt' hover-class="none">
<text class="iconfont icon-fabu"></text>
发布种草
</navigator>
@ -504,7 +526,8 @@
//
pay_open: function(order_id) {
uni.navigateTo({
url: '/pages/order_details/stay?order_id=' + order_id + '&product_type=' + this.product_type
url: '/pages/order_details/stay?order_id=' + order_id + '&product_type=' + this
.product_type
})
},
//
@ -569,6 +592,7 @@
orderData({
product_type: this.product_type
}).then(res => {
console.log(res)
that.$set(that, 'orderData', res.data);
})
},
@ -604,7 +628,8 @@
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
url: '/pages/users/payment/payment?order_id=' + order_id + '&product_type=' + this
.product_type
});
// this.$set(this, 'pay_close', true);
// this.order_id = order_id;
@ -648,7 +673,8 @@
uni.hideLoading();
if (self.orderStatus == 0) {
uni.navigateTo({
url: '/pages/order_details/stay?order_id=' + order_id + '&product_type=' + product_type
url: '/pages/order_details/stay?order_id=' + order_id + '&product_type=' +
product_type
})
} else {
uni.navigateTo({
@ -861,6 +887,10 @@
if (data) this.getInvoiceData(data);
this.$set(this.invoice, 'invoice', false);
},
//
test(a) {
console.log(a)
},
//
getInvoiceData(data) {
let that = this
@ -1018,6 +1048,7 @@
font-size: 28rpx;
color: #999;
margin-top: 6rpx;
.totalPrice {
font-size: 26rpx;
color: #282828;
@ -1201,8 +1232,9 @@
.warp {
margin: auto;
image{
}
image {}
.guanbi {
position: absolute;
right: 0px;
@ -1251,6 +1283,7 @@
color: #999999;
}
}
.line2 {
-webkit-line-clamp: 1;
}

File diff suppressed because it is too large Load Diff

View File

@ -110,7 +110,8 @@
<view class="store-name">{{item.merchant.mer_name}}</view>
<text class="iconfont icon-xiangyou"></text>
</view>
<view v-if="item.status == 0" class='t-color'>待发货</view>
<view v-if="item.status == 0 && item.pay_type !=3" class='t-color'>待发货</view>
<view v-if="item.status == 0 && item.pay_type==3" class='t-color'>待付款</view>
<view v-if="item.status == 1" class='t-color'>待收货</view>
<view v-if="item.status == 2 &&item.pay_type !==8" class='t-color'>待评价</view>
<view v-if="item.status == 3" class='t-color'>已完成</view>

View File

@ -47,7 +47,7 @@
<view class='conter'> {{couponData.total_price}}</view>
</view>
</view>
<view class="settel" v-if="this.be_overdue == 0 || this.be_overdue < 0">
<view class="settel" v-if="(this.be_overdue == 0 || this.be_overdue < 0) &&couponData.total_postage>0">
<view class='settel-t'>
<view>利息合计:</view>
<view class="conter">
@ -148,7 +148,9 @@
onLoad(options) {
this.payType = 'weixin'
this.order_id = options.order_id
if (options.product_type) { this.product_type = options.product_type }
if (options.product_type) {
this.product_type = options.product_type
}
this.$nextTick(() => {
this.getOrderInfo()
this.getUserInfo()
@ -170,7 +172,7 @@
},
getOrderInfo() {
groupOrderDetail(this.order_id, this.product_type).then(res => {
console.log(res)
this.couponData = res.data
this.$nextTick(() => {
if (this.couponData.interest !== null) {
@ -187,6 +189,10 @@
pay_type: this.payType
}
).then(res => {
if (res.data.paid === false) {
//
}
if (res.message == 'success') {
uni.showToast({
title: '付款成功'
@ -206,11 +212,56 @@
orderPay(this.order_id, {
type: this.payType
}).then(res => {
setTimeout(() => {
let jsConfig = res.data.result.config
if (res.data.status === 'weixinApp') {
//
// #ifdef APP-PLUS
let mp_pay_name = ''
if (uni.requestOrderPayment) {
mp_pay_name = 'requestOrderPayment'
} else {
mp_pay_name = 'requestPayment'
}
uni[mp_pay_name]({
provider: 'wxpay',
orderInfo: jsConfig,
success: (e) => {
uni.navigateBack({
delta: 1
})
}, 1000)
},
fail: (e) => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
title: '取消支付',
}, {
tab: 4,
url: url
});
},
complete: () => {
//
let url = '/pages/order_pay_status/index?order_id=' + orderId +
'&msg=取消支付' + '&product_type=' + that.product_type;
return that.$util.Tips({
title: '取消支付',
}, {
tab: 4,
url: url
});
},
});
// #endif
}
// setTimeout(() => {
// uni.navigateBack({
// delta: 1
// })
// }, 1000)
uni.showToast({
title: res.message
})
@ -242,6 +293,7 @@
color: red;
font-weight: bold;
}
.wrapper .item .discount .placeholder {
color: #ccc;
text-align: right;
@ -352,6 +404,7 @@
font-size: 26rpx;
color: #aaa;
}
.footer {
width: 100%;
height: 100rpx;

BIN
static/images/beijin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
static/images/ddjk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/images/sjtj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/images/xxsj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B