|
@@ -1,9 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="container">
|
|
|
- <van-search @search="check" ref="searchRef" class="search" v-model="value" placeholder="请输入快递单号" />
|
|
|
- <img @click="onImg" src="@/assets/user/u4.png" alt="">
|
|
|
-
|
|
|
+ <div v-if="isSearch">
|
|
|
+ <van-search @search="check" ref="searchRef" class="search" v-model="value" placeholder="请输入快递单号" />
|
|
|
+ <img @click="onImg" src="@/assets/user/u4.png" alt="">
|
|
|
+ </div>
|
|
|
<!-- <van-button style="width: 200px; border-radius: 6px; margin-left: 10px;" type="info"
|
|
|
@click="check">查询</van-button> -->
|
|
|
<Combine :isSign="isSign" :signList="signList" @isSign="isCombine" v-if="!isSign"></Combine>
|
|
@@ -25,7 +26,8 @@ export default {
|
|
|
return {
|
|
|
value: '',//输入的值
|
|
|
isSign: true,
|
|
|
- signList: []
|
|
|
+ signList: [],
|
|
|
+ isSearch: true,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -38,7 +40,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onImg() {
|
|
|
-
|
|
|
wx.scanQRCode({
|
|
|
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
|
|
scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
|
|
@@ -55,17 +56,16 @@ export default {
|
|
|
console.log(res, 'error++++++++++');
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
+
|
|
|
// 查询
|
|
|
async check() {
|
|
|
-
|
|
|
if (this.value == '') {
|
|
|
this.$toast('请输入快件单号或手机单号')
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- const Shipment = await appFindYourShipment({ expressNo: this.value }, { emulateJSON: true })
|
|
|
+ const Shipment = await appFindYourShipment({ expressNo: this.value }, { emulateJSON: true, loading: true, message: '加载中...' })
|
|
|
|
|
|
if (Shipment.data == null) {
|
|
|
Toast('没有数据')
|