|
|
@@ -126,8 +126,11 @@ export default {
|
|
|
...mapGetters(["getLoginInfo"])
|
|
|
},
|
|
|
onShow(){
|
|
|
- this.init()
|
|
|
+ this.beginLoad()
|
|
|
},
|
|
|
+ onLoad(){
|
|
|
+ this.beginLoad()
|
|
|
+ },
|
|
|
methods: {
|
|
|
notLogin(){
|
|
|
return false
|
|
|
@@ -159,7 +162,7 @@ export default {
|
|
|
cancel({id:info.id}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.$msg('取消成功')
|
|
|
- that.init()
|
|
|
+ that.beginLoad()
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
@@ -189,6 +192,8 @@ export default {
|
|
|
uni.makePhoneCall({ phoneNumber: mobile })
|
|
|
},
|
|
|
init() {
|
|
|
+ },
|
|
|
+ beginLoad() {
|
|
|
let id = 0
|
|
|
if(this.option.id){
|
|
|
id = this.option.id
|