Browse Source

表单修改

zhangyanfang 5 years ago
parent
commit
e8eb194120
2 changed files with 14 additions and 7 deletions
  1. 1 1
      api/http-request.js
  2. 13 6
      component/followup/follow-bottom.js

+ 1 - 1
api/http-request.js

@ -44,7 +44,7 @@
//		server = "http://192.168.131.144:8080/";//冬梅
        loginUrl = "../../login/login.html";
//      loginUrl = "/PC-prescription/login.html"; //自己本地测试时的路径
        imgServer = "http://172.19.103.54/";
        imgServer = "http://172.26.0.110:8888/";
        videoChatIntranetFlag = false;
    }


+ 13 - 6
component/followup/follow-bottom.js

@ -4,12 +4,12 @@ Vue.component('follow-bottom', {
		<div class="plr30">\
			<div class="ui-grid mt10">\
				<div class="ui-col-1">签到方式:&emsp;定位签到</div>\
				<div class="ui-col-1">签到时间:&emsp;<span v-html="followUpData.createTime">2019-01-01 10:10:10</span></div>\
				<div class="ui-col-1">签到时间:&emsp;<span v-html="followUpData.createTime"></span></div>\
			</div>\
			<div class="mt10">签到位置:&emsp;<span v-html="followUpData.address">福建省厦门市思明区软件园望海路</span></div>\
			<div class="mt10">签到位置:&emsp;<span v-html="followUpData.address"></span></div>\
			<div class="ui-grid mt10">\
				<div class="ui-col-0">签到拍照:&emsp;</div>\
				<div class="ui-col-0"><img v-for="item in imgSrc" :src="httpRequest.getImgUrl(item)" width="50" height="50" style="margin:10px;"></div>\
				<div class="ui-col-0"><img v-for="item in imgSrc" :src="getImgUrl(item)"  @click="toImgUrl(getImgUrl(item))" width="50" height="50" style="margin:10px;"></div>\
			</div>\
		</div>\
	</div>',
@ -39,14 +39,21 @@ Vue.component('follow-bottom', {
					var data = res.data
					if (data != null) {
						vm.followUpData = data
						vm.imgSrc==data.img?data.img.split(','):''
						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
		},
	
	}
})