MIP.watch('startSearch', function (newVal, oldVal) {
if(newVal) {
var keyword = MIP.getData('keyword');
console.log(keyword);
// 替换当前历史记录,新增
MIP.viewer.open('/s/' + keyword, {replace: true});
setTimeout(function () {
MIP.setData({startSearch: false})
}, 1000);
}
});
MIP.watch('goHome', function (newVal, oldVal) {
MIP.viewer.open('/', {replace: false});
});