Vue.component('follow-bottom', {
template: '
\
签到信息 (目前仅支持APP/pad签到)
\
\
\
签到方式: 定位签到
\
签到方式: 拍照签到
\
签到方式: 门牌签到
\
签到时间:
\
\
签到位置:
\
\
\
',
props: ['followupid'],
data: function () {
return {
followUpList: [],
curPage: 1,
followUpData: {},
imgSrc:[],
}
},
watch: {
followUpData: function (val) {
this.followUpList = this.followUpData;
}
},
mounted: function () {
this.getData()
},
methods: {
getData: function () {
var vm = this
fangshiAPI.findByFollowupId({ followupId: this.followupid || '1' }).then(function (res) {
if (res.status == 200) {
var data = res.data
if (data != null) {
vm.followUpData = data
vm.imgSrc=data.img?data.img.split(','):''
}
} else {
top.toastr.error(res.msg);
}
})
},
getImgUrl:function(str) {
return httpRequest.getImgUrl(str)
},
toImgUrl:function(str){
return window.location.href=str
},
}
})