diff --git a/.wepycache b/.wepycache
index 51cf44d..c2a6072 100644
--- a/.wepycache
+++ b/.wepycache
@@ -1 +1 @@
-{"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\wepy.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy-async-function\\index.js":1517302333000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy-com-toast\\toast.wpy":1488432898000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\app.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\page.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\component.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\event.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\base.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\util.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\mixin.js":499162500000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy-async-function\\global.js":1517302333000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\promise-polyfill\\promise.js":1511627065000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\regenerator-runtime\\runtime.js":1493390741000,"D:\\wxxcx\\recode\\wxxcx\\node_modules\\wepy\\lib\\native.js":499162500000}
\ No newline at end of file
+{"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\wepy.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy-async-function\\index.js":1517302333000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy-com-toast\\toast.wpy":1488432898000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\app.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\page.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\component.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\event.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\base.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\util.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\mixin.js":499162500000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy-async-function\\global.js":1517302333000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\promise-polyfill\\promise.js":1511627065000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\regenerator-runtime\\runtime.js":1493390741000,"D:\\order\\wxxcx\\wxrecode\\node_modules\\wepy\\lib\\native.js":499162500000}
\ No newline at end of file
diff --git a/src/components/express/index.wpy b/src/components/express/index.wpy
index 69863e5..bed9bc4 100644
--- a/src/components/express/index.wpy
+++ b/src/components/express/index.wpy
@@ -10,7 +10,7 @@
-
+
{{ item.company }}
{{ item.nubmer }}
@@ -32,7 +32,14 @@ import { formatTime } from '@/utils/util';
export default class ForexpressItem extends wepy.page {
config = {
navigationBarTitleText: '快递查询'
- };
+ }
+
+ props = {
+ history: {
+ type: Array,
+ default: []
+ }
+ }
data = {
baseUrl: 'https://qf-restapi.mdscj.com/xp_express',
@@ -47,7 +54,6 @@ export default class ForexpressItem extends wepy.page {
expressValue: '',
delStatus: false,
chosseIndex: -1,
- history: [],
animationData: {},
winHeight: '', //窗口高度
currentTab: 0, //预设当前项的值
@@ -144,11 +150,10 @@ export default class ForexpressItem extends wepy.page {
* 查询详细内容
* @param e
*/
- goToExpress(e) {
- console.log(e);
- let number = e.currentTarget.dataset.number;
- this.$navigate({
- url: './expressJump/expressJump?number=' + number
+ selectCate(item) {
+ console.log(item.nubmer);
+ this.$parent.$navigate({
+ url: './expressJump/expressJump?number=' + item.nubmer
});
},
/**
@@ -159,9 +164,9 @@ export default class ForexpressItem extends wepy.page {
if (this.delStatus) return;
this.delStatus = true;
let index = e.currentTarget.dataset.index;
- let history = this.data.history;
+ let history = this.history;
this.chosseIndex = index;
-
+
setTimeout(function() {
history.splice(index, 1);
wx.setStorageSync('saveList', history);
@@ -205,10 +210,7 @@ export default class ForexpressItem extends wepy.page {
}
}
- onShow() {
- this.history = wx.getStorageSync('saveList');
- this.$apply();
- }
+ onShow() {}
}
diff --git a/src/pages/forexpress.wpy b/src/pages/forexpress.wpy
index 38d122e..da4205c 100644
--- a/src/pages/forexpress.wpy
+++ b/src/pages/forexpress.wpy
@@ -18,7 +18,7 @@
-
+
@@ -56,7 +56,7 @@ export default class Forexpress extends wepy.page {
IdCard,
Figure,
MobileHome,
- PeoPleCard
+ PeoPleCard
}
data = {
@@ -64,7 +64,8 @@ export default class Forexpress extends wepy.page {
winHeight: '', //窗口高度
currentTab: 0, //预设当前项的值
scrollLeft: 0, //tab标题的滚动条位置,
- searchArr:['快递','身份证','银行卡号','手机号码','身材']
+ searchArr:['快递','身份证','银行卡号','手机号码','身材'],
+ history:[]
};
methods = {
@@ -161,6 +162,9 @@ export default class Forexpress extends wepy.page {
} catch (e) {
this.showMark = true;
}
+ //快递历史
+ this.history = wx.getStorageSync('saveList');
+ this.$apply();
}
}
diff --git a/src/pages/testYun/index.wpy b/src/pages/testYun/index.wpy
index 10a6376..d81837f 100644
--- a/src/pages/testYun/index.wpy
+++ b/src/pages/testYun/index.wpy
@@ -32,7 +32,7 @@ export default class TestYun extends wepy.page {
};
data = {
- array: ['水瓶座','摩羯座','双鱼座','白羊座','金牛座','处女座','天枰座','天蝎座','巨蟹座','射手座','双子座','狮子座'],
+ array: ['水瓶座','摩羯座','双鱼座','白羊座','金牛座','处女座','天秤座','天蝎座','巨蟹座','射手座','双子座','狮子座'],
index:0
};