From fb14fa911bde1ed360fe89a1c41d74b158db9ab5 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 09 八月 2024 15:26:28 +0800
Subject: [PATCH] update 花店样式等
---
pages/home/supplier-home.vue | 56 ++++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 40 insertions(+), 16 deletions(-)
diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 0693bff..cc67058 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -53,7 +53,7 @@
<view class="flex tj-container" v-if="selftype==='supplier'">
<view class="tj-each">
<view class="num">
- 0扎
+ {{tj.dealCountLastMonth||0}}单
</view>
<view class="name">
上月成交
@@ -61,7 +61,7 @@
</view>
<view class="tj-each">
<view class="num">
- 0扎
+ {{tj.dealCountToday||0}}单
</view>
<view class="name">
今日成交
@@ -69,7 +69,7 @@
</view>
<view class="tj-each">
<view class="num">
- 0扎
+ {{tj.dealCountDay30||0}}单
</view>
<view class="name">
近30天成交
@@ -77,25 +77,25 @@
</view>
</view>
<view class="flex tj-container">
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=today',true)">
<view class="num">
- {{dto.orderCountToday||0}}扎
+ {{tj.orderCountToday||0}}单
</view>
<view class="name">
今日订单数
</view>
</view>
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=yesterday',true)">
<view class="num">
- {{dto.orderCountYesterday||0}}扎
+ {{tj.orderCountYesterday||0}}单
</view>
<view class="name">
昨日订单数
</view>
</view>
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=month',true)">
<view class="num">
- {{dto.orderCountMonth||0}}扎
+ {{tj.orderCountMonth||0}}单
</view>
<view class="name">
本月订单数
@@ -106,15 +106,17 @@
<view class="item-container flex m-t-12" style="padding: 34rpx 44rpx;" v-if="selftype=='supplier'">
<view class="rate-view flex1" style="max-width: 140rpx;">
<view class="title">售后率</view>
- <view class="title" style="color: red;">{{tj.salesRate||0}}%</view>
+ <view class="title" style="color: red;">{{((tj.salesRate||0)*100).toFixed(2)}}%</view>
</view>
- <view class="tj-panel pink flex1" @click="goto('/pages/order/order-delivery?status=ARRIVED',true)">
+ <view class="tj-panel pink flex1"
+ @click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)">
<view class="name">今日待配送</view>
- <view class="title">{{tj.deliverCount||0}}扎</view>
+ <view class="title">{{tj.deliverCount||0}}单</view>
</view>
- <view class="tj-panel green flex1" @click="goto('/pages/order/order-delivery?status=',true)">
+ <view class="tj-panel green flex1"
+ @click="goto('/pages/order/order-delivery?range=today',true)">
<view class="name green">今日配送汇总</view>
- <view class="title">{{tj.deliverTotal||0}}扎</view>
+ <view class="title">{{tj.deliverTotal||0}}单</view>
</view>
</view>
<view class="m-t-12" @click="getNoticeMore">
@@ -204,6 +206,28 @@
};
},
+ onShareAppMessage() {
+ let that = this;
+ var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
+ that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
+ var url =
+ `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
+ return {
+ title: "花满芫",
+ path: url,
+ }
+ },
+ onShareTimeline() {
+ let that = this;
+ var name = that.currentInfo.customerDTO && that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO &&
+ that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && that.currentInfo.partnerDTO.name || ''
+ var url =
+ `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
+ return {
+ title: "花满芫",
+ path: url,
+ }
+ },
async onPullDownRefresh() {
await this.$store.dispatch('getCurrentInfo')
uni.stopPullDownRefresh()
@@ -289,7 +313,7 @@
}
},
fail: (res) => {
- console.log("蓝牙状态",res)
+ console.log("蓝牙状态", res)
that.$message.showToast('获取蓝牙状态失败')
}
@@ -350,7 +374,7 @@
},
fail: function(res) {
- console.log('createBLEConnection fail',res)
+ console.log('createBLEConnection fail', res)
that.$message.showToast('连接打印机失败')
},
complete() {
--
Gitblit v1.9.3