|
|
@@ -164,6 +164,13 @@ export default {
|
|
|
slideChange() {
|
|
|
console.log(window)
|
|
|
_this.current = this.realIndex
|
|
|
+ if (window.appBridge && _this.active===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#D89823')
|
|
|
+ } else if (window.appBridge && _this.active===1 && _this.current===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#308EFF')
|
|
|
+ } else if (window.appBridge && _this.active===1 && _this.current===1) {
|
|
|
+ window.appBridge.setTitleBarColor('#00BF66')
|
|
|
+ }
|
|
|
},
|
|
|
tap() {
|
|
|
console.log('onTap', this);
|
|
|
@@ -208,6 +215,13 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
console.log("mobile", this.com, this.dev);
|
|
|
+ if (window.appBridge && this.active===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#D89823')
|
|
|
+ } else if (window.appBridge && this.active===1 && this.current===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#308EFF')
|
|
|
+ } else if (window.appBridge && this.active===1 && this.current===1) {
|
|
|
+ window.appBridge.setTitleBarColor('#00BF66')
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
clickPay(type) {
|
|
|
@@ -272,6 +286,13 @@ export default {
|
|
|
handleSwitchClick(index) {
|
|
|
this.active = index
|
|
|
console.log(this.active)
|
|
|
+ if (window.appBridge && this.active===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#D89823')
|
|
|
+ } else if (window.appBridge && this.active===1 && this.current===0) {
|
|
|
+ window.appBridge.setTitleBarColor('#308EFF')
|
|
|
+ } else if (window.appBridge && this.active===1 && this.current===1) {
|
|
|
+ window.appBridge.setTitleBarColor('#00BF66')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|