MIP.watch('count', function (newVal, oldVal) {
fetch('https://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=1496&type=1')
.then(function (res) {
var follows2 = MIP.getData('follows')
if(follows2==1){ MIP.setData({ follows:2, title:'收藏' }) }
if(follows2==2){
console.log(2)
MIP.setData({ follows:1, title:'已收藏' }) }
})
.catch(function (err) {
console.log('数据请求失败!')
})
})