MIP.watch('count', function (newVal, oldVal) {
fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=153029&type=2')
.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('数据请求失败!')
})
})