From c73cb08de6a2e955f33949a3cf1aeb4493d97f8e Mon Sep 17 00:00:00 2001
From: wangfukang <15630117759@163.com>
Date: Sun, 10 Mar 2024 19:53:12 +0800
Subject: [PATCH] 11
---
package1/other/logistics.vue | 89 ++++++++++++++++++++++++++++++++----
1 file changed, 81 insertions(+), 8 deletions(-)
diff --git a/package1/other/logistics.vue b/package1/other/logistics.vue
index 0c840eb..a540ed4 100644
--- a/package1/other/logistics.vue
+++ b/package1/other/logistics.vue
@@ -24,7 +24,11 @@
下单时间:
{{item.createTime}}
-
+
+
+ 复制发货人地址
+ 复制收货人地址
+
@@ -43,7 +47,7 @@
export default {
data() {
return {
- list: ['待接单', '待取货', '待送达'],
+ list: ['待接单', '待取货', '待送达','店铺自送'],
modalShow: false,
content:'地址',
orderStatus:0,
@@ -90,7 +94,11 @@
if (this.pages >= this.totalPages) return;
this.status = 'loading';
this.pages = ++this.pages;
- this.getList();
+ if(this.current == 3){
+ this.getZTList();
+ }else{
+ this.getList();
+ }
},
onShow(){
this.id = uni.getStorageSync('transCompany')
@@ -141,17 +149,41 @@
this.tui.toast("网络不给力,请稍后再试~")
}
})
+ },
+ //复制地址
+ copyAddress(item,type){
+ console.log(item);
+ if(type=='fa'){
+ var data = item.shopName + item.createBy+'河北省沧州市运河区明珠商贸城' + item.getOrderAddress
+ uni.setClipboardData({
+ data: data,
+ success: function () {
+ console.log('复制成功');
+ }
+ });
+ }else{
+ var aaa = item.orderAddress.substr(item.orderAddress.indexOf('-'))
+ var data = item.userName +item.userMobile + aaa
+ uni.setClipboardData({
+ data: data,
+ success: function () {
+ console.log('复制成功');
+ }
+ });
+ }
},
sectionChange(index) {
this.current = index
+ this.bList = []
if(index == 2){
this.orderStatus = 3
+ this.getList()
+ }else if(index == 3){
+ this.getZTList()
}else{
this.orderStatus = index
- }
-
- this.bList = []
- this.getList()
+ this.getList()
+ }
},
trigger(e) {
let that = this;
@@ -204,6 +236,42 @@
})
}
+ },
+ getZTList() {
+ this.status = 'loading';
+ uni.request({
+ url: this.tui.interfaceUrl() + '/app/sale/getSaleByCompanyId',
+ data: {
+ companyId:this.transCompany,
+ pageNum:this.pages,
+ pageSize:10
+ },
+ header: {
+ 'content-type': 'application/json',
+ 'appWLToken': this.tui.getToken()
+ },
+ method: 'POST', //'GET','POST'
+ dataType: 'json',
+ success: (res) => {
+ this.status = 'nomore';
+ if (res.data.code == 200){
+ for(var i=0;i {
+ this.tui.toast("网络不给力,请稍后再试~")
+ }
+ })
},
getList() {
this.status = 'loading';
@@ -303,7 +371,12 @@
white-space: nowrap;
text-overflow: ellipsis;
}
-
+ .copy-text{
+ text-align:center;
+ flex:1;
+ color: blue;
+ text-decoration-line: underline;
+ }
.contentPadding {
padding: 0 20upx;
background-color: #fff;