更新h5新的api
This commit is contained in:
@@ -65,7 +65,8 @@
|
||||
statusBarHeight: 0,
|
||||
typeIndex: 0,
|
||||
messageText: "",
|
||||
msgType: "success"
|
||||
msgType: "success",
|
||||
fromView: null
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -79,6 +80,7 @@
|
||||
id,
|
||||
fromType,
|
||||
fromId,
|
||||
fromView,
|
||||
h
|
||||
} = options
|
||||
this.optionsProps = {
|
||||
@@ -86,6 +88,8 @@
|
||||
fromType,
|
||||
fromId
|
||||
}
|
||||
this.fromView = fromView
|
||||
// console.log(this.fromView)
|
||||
uni.setStorageSync('token', id)
|
||||
this.statusBarHeight = h
|
||||
uni.setStorageSync('BarHeight', h)
|
||||
@@ -95,7 +99,12 @@
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
this.closeWeb()
|
||||
if (this.fromView == 1) {
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
this.closeWeb()
|
||||
}
|
||||
|
||||
},
|
||||
closeWeb() {
|
||||
// 关闭页面
|
||||
@@ -156,6 +165,9 @@
|
||||
image: "",
|
||||
}
|
||||
this.$refs.uploadImage.clearImage()
|
||||
// if(this.fromView == 1) {
|
||||
// uni.navigateBack()
|
||||
// }
|
||||
} else {
|
||||
this.messageText = msg
|
||||
this.msgType = 'error'
|
||||
|
||||
Reference in New Issue
Block a user