更新h5新的api

This commit is contained in:
yziiy
2025-11-29 11:33:18 +08:00
parent 5ed0c676b2
commit edd856475e
170 changed files with 531 additions and 49 deletions

View File

@@ -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'