|
父页面的js
var somtaIndex = function() {
window.somtaIndexVm = new Vue({
el: "#somtaIndex",
data: {
activeFrame: 0,
},
methods: {
changeFrame: function(index) {
if (index == 4) {
if (!tools.getUser()) {
tools.openWin({
name: "login",
url: "/html/user/login.html"
})
return;
}
}
if (this.activeFrame == index) {
return;
}
this.activeFrame = index;
tools.setFrameGroupIndex("indexGroup", index);
},
openCreditCardList: function() {
this.activeFrame = 1;
tools.setFrameGroupIndex("indexGroup", 1);
}
}
})
子页面的点击事件:
goCreditCardList: function() {
api.execScript({
name: "index",
script: somtaIndexVm.openCreditCardList()
});
}, |
|