chenrui 4 年 前
コミット
38901a8497
1 ファイル変更9 行追加2 行削除
  1. 9 2
      pages/index/index.vue

+ 9 - 2
pages/index/index.vue

@@ -58,13 +58,13 @@
 				total: 0,  //  数据总条数
 				noDataText: '暂无数据',  //  列表请求状态提示语
 				status: 'loadmore',  //  加载中状态
-				customBtnStyle: {  //  撤销单据  自定义按钮样式
+				customBtnStyle: {  //  自定义按钮样式
 					borderColor: '#2ab4e5',
 					backgroundColor: '#2ab4e5',
 					color: '#fff'
 				},
 				scrollTop: 0,  //  滚动条位置
-				btnStyle: {  //  撤销单据  自定义按钮样式
+				btnStyle: {  //  自定义按钮样式
 					width: '100%'
 				}
 			}
@@ -73,6 +73,13 @@
 			this.refresh({})
 		},
 		methods:{
+			(){
+				if(this.listdata.length==0){
+					uni.showToast({ title: '请先选择待清运网点,再进行扫码清运', icon: 'none' })
+				}else{
+					this.openScan()
+				}
+			},
 			//  扫码清运
 			openScan(){
 				//  调起微信扫码