|
@@ -103,5 +103,21 @@ App({
|
|
|
userInfo: null,
|
|
|
appCode:'HSAY_SHARE_COUPON',
|
|
|
typeSwitchObj : {"C":'现金券',"D":"折扣券"}
|
|
|
+ },
|
|
|
+ showLoading() {
|
|
|
+ const page = this.getComponent("#Page")
|
|
|
+ if (page) {
|
|
|
+ page.setValue("showLoading", true)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ hideLoading() {
|
|
|
+ const page = this.getComponent("#Page")
|
|
|
+ if (page) {
|
|
|
+ page.setValue("showLoading", false)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getComponent(id) {
|
|
|
+ const page = getCurrentPages()[getCurrentPages().length - 1]
|
|
|
+ return page.selectComponent(id)
|
|
|
}
|
|
|
})
|