123456789101112131415161718192021222324252627282930313233343536373839 |
- var Request = new Object();
- Request = GetRequest();
- var code = Request.code,
- param = JSON.parse(decodeURIComponent(Request.param)),
- kwObj = JSON.parse(decodeURIComponent(Request.kwObj))
- function closeLayer() {
- var index = top.layer.getFrameIndex(window.name);
- top.layer.close(index);
- }
- new Vue({
- el: '#app',
- data: function() {
- return {
- appointinfo: null
- }
- },
- mounted: function() {
- var loadingid = top.layer.load(1, {
- shade: [0.1,'#fff'] //0.1透明度的白色背景
- }),
- vm = this
- APIService.getPatientReservation({
- code: code
- }).then(function(res) {
- top.layer.close(loadingid)
- if(res.status == 200) {
- vm.appointinfo = res.data
- } else {
- top.showErrorMessage(res.msg || "预约挂号详情获取失败!")
- }
- }).catch(function(e) {
- top.layer.close(loadingid)
- console && console.error(e)
- })
- },
- methods: {
-
- }
- })
|