|
|
@@ -105,10 +105,10 @@ import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
|
pay_way:0 // 操作-0:再次寄售;1:收货
|
|
|
};
|
|
|
},
|
|
|
- onLoad:function(){
|
|
|
+ onLoad(){
|
|
|
// this.loadAddress()
|
|
|
},
|
|
|
- onShow:function(options){
|
|
|
+ onShow(options){
|
|
|
page = 1;
|
|
|
this.goods = []
|
|
|
this.loadData()
|
|
|
@@ -251,7 +251,7 @@ import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
|
})
|
|
|
},
|
|
|
},
|
|
|
- onShareAppMessage: function () {
|
|
|
+ onShareAppMessage() {
|
|
|
let userinfo = uni.getStorageSync('userinfo');
|
|
|
var path = '/pages/account/consignment?agentId=1';
|
|
|
if (userinfo.user_id) {
|
|
|
@@ -263,10 +263,8 @@ import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
|
path: path
|
|
|
}
|
|
|
},
|
|
|
- /**
|
|
|
- * 页面上拉触底事件的处理函数
|
|
|
- */
|
|
|
- onReachBottom: function () {
|
|
|
+ //页面上拉触底事件的处理函数
|
|
|
+ onReachBottom() {
|
|
|
if (page != -1) {
|
|
|
var that = this;
|
|
|
setTimeout(function () {
|
|
|
@@ -275,21 +273,16 @@ import uniPopup from '@/components/uni-popup/uni-popup.vue'
|
|
|
}, 800);
|
|
|
}
|
|
|
},
|
|
|
- onBackPress(options) {
|
|
|
- //避免死循环
|
|
|
- if (options.from === 'navigateBack') return false;
|
|
|
- //自己的判断条件,执行自定义的返回操作
|
|
|
- // if (你的条件) {
|
|
|
- //你的自定义操作
|
|
|
- // }
|
|
|
- //执行uniapp的返回操作
|
|
|
- // else uni.navigateBack()
|
|
|
-
|
|
|
- this.goto("/pages/my/index")
|
|
|
-
|
|
|
- //返回true表示我要自定义onBackPress
|
|
|
- return true
|
|
|
- }
|
|
|
+ onUnload(){
|
|
|
+ // #ifdef H5 || APP-PLUS
|
|
|
+ this.goto("/pages/my/index");
|
|
|
+ // #endif
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ uni.switchTab({
|
|
|
+ url: "/pages/my/index"
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|