| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_index-test"],{"67ae":function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("aa9c"),e("5c47"),e("d4b5");var i=e("73ae"),a={data:function(){return{scrollTop:0,formJson:null,tempId:null,patient:null,items:{},msgs:[],index:0,item:null}},computed:{imgPath:function(){return this.$store.state.imgpath}},onLoad:function(t){this.tempId=t.tempId;var n=this;uni.$on("refreshOrderPatient",(function(t){n.patient=t}))},onShow:function(){this.getTestTempDetails(),this.getTestDetails()},onShareAppMessage:function(t){if(this.$isLogin())return{title:"健康体质检测",path:"/pages_index/test?tempId="+this.tempId,imageUrl:this.$store.state.imgpath+"/app/image/logoshare.png"}},onShareTimeline:function(t){if(this.utils.isLogin())return{title:"健康体质检测",imageUrl:this.$store.state.imgpath+"/app/image/logoshare.png"}},methods:{getTestDetails:function(){var t={tempId:this.tempId};(0,i.getTestDetails)(t).then((function(t){200==t.code?uni.setNavigationBarTitle({title:t.data.name+"自测"}):uni.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},addMsg:function(t,n){var e={type:t,content:n};this.msgs.push(e);var i=this;uni.createSelectorQuery().select(".msgs").boundingClientRect((function(t){var n=t.height;i.scrollTop=n})).exec()},optionClick:function(t,n){null!=this.patient?(t.option=n.name,console.log(t.option),this.addMsg(2,n.name),this.index++,this.index<=this.items.length-1?(this.item=this.items[this.index],this.addMsg(1,this.item.title)):this.submit()):uni.showToast({icon:"none",title:"请选择体验者"})},getTestTempDetails:function(){var t=this,n={tempId:this.tempId};(0,i.getTestTempDetails)(n).then((function(n){200==n.code&&(t.items=n.items,t.items.length>0&&(t.item=t.items[0],t.addMsg(1,t.item.title)))}),(function(t){}))},addPatient:function(){uni.navigateTo({url:"/pages_index/patient"})},submit:function(){var t={tempId:this.tempId,patientId:this.patient.patientId,formJson:JSON.stringify(this.items)};(0,i.doReport)(t).then((function(t){200==t.code?uni.redirectTo({url:"/pages_index/testResult?reportId="+t.reportId}):uni.showToast({icon:"none",title:t.msg})}))}}};n.default=a},"73ae":function(t,n,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.addVoicePrintUrl=function(t){return o("/companyapp/app/companyUser/addVoicePrintUrl",t,"POST","application/json;charset=UTF-8")},n.companyUserVoice=function(t){return o("/companyapp/app/companyUser/companyUserVoice",t,"GET","application/json;charset=UTF-8")},n.companyUserVoiceNew=function(t){return o("/companyapp/app/companyUser/companyUserVoiceNew",t,"GET","application/json;charset=UTF-8")},n.createUserAllVoice=function(t){return o("/companyapp/app/companyUser/createUserAllVoice",null,"GET","application/json;charset=UTF-8")},n.doReport=function(t){return o("/app/test/doReport",t,"POST","application/json;charset=UTF-8")},n.getTestDetails=function(t){return o("/app/test/getTestDetails",t,"GET")},n.getTestList=function(t){return o("/app/test/getTestList",t,"GET")},n.getTestReport=function(t){return o("/app/test/getTestReport",t,"GET")},n.getTestReportImg=function(t){return o("/app/test/getTestReportImg",t,"GET")},n.getTestTempDetails=function(t){return o("/app/test/getTestTempDetails",t,"GET")},n.queryDetail=function(t){return o("/companyapp/app/companyUser/query/"+t,null,"GET","application/json;charset=UTF-8")},n.querySopVoiceList=function(t){return o("/companyapp/app/companyUser/querySopVoiceList",t,"GET","application/json;charset=UTF-8")};var a=i(e("d4c0")),o=(new a.default).http},"7c77":function(t,n,e){"use strict";e.r(n);var i=e("a34d"),a=e("f90b");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("cee2");var s=e("828b"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"0f89038c",null,!1,i["a"],void 0);n["default"]=c.exports},"83c7":function(t,n,e){var i=e("c86c");n=i(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-0f89038c]{height:100%}.content[data-v-0f89038c]{height:100vh}.content .msg-cont[data-v-0f89038c]{padding-bottom:%?550?%;width:100%;height:calc(100vh - %?760?%)}.content .msg-cont .msg-scroll[data-v-0f89038c]{height:calc(100vh - %?760?%)}.content .msg-cont .msg-scroll .msgs[data-v-0f89038c]{overflow:hidden;width:100%}.content .msg-cont .msg-scroll .msgs .msg-item[data-v-0f89038c]{padding:%?10?% %?15?%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%}.content .msg-cont .msg-scroll .msgs .msg-item .left[data-v-0f89038c]{width:100%;display:flex;justify-content:flex-start;align-items:flex-start}.content .msg-cont .msg-scroll .msgs .msg-item .left .img[data-v-0f89038c]{min-width:%?100?%;width:%?100?%;height:%?100?%;border-radius:50%}.content .msg-cont .msg-scroll .msgs .msg-item .left .img uni-image[data-v-0f89038c]{width:100%;height:100%}.content .msg-cont .msg-scroll .msgs .msg-item .left .msg-content[data-v-0f89038c]{margin-top:%?15?%;margin-left:%?10?%;border-radius:%?15?%;padding:%?15?%;background-color:#fff;color:#111;font-size:%?28?%;font-family:PingFang SC}.content .msg-cont .msg-scroll .msgs .msg-item .right[data-v-0f89038c]{width:100%;display:flex;justify-content:flex-end;align-items:flex-start}.content .msg-cont .msg-scroll .msgs .msg-item .right .msg-content[data-v-0f89038c]{margin-top:%?15?%;margin-right:%?10?%;border-radius:%?15?%;padding:%?15?%;background-color:#d3ad58;color:#fff;font-size:%?28?%;font-family:PingFang SC}.content .msg-cont .msg-scroll .msgs .msg-item .right .img[data-v-0f89038c]{min-width:%?100?%;width:%?100?%;height:%?100?%;border-radius:50%}.content .msg-cont .msg-scroll .msgs .msg-item .right .img uni-image[data-v-0f89038c]{width:100%;height:100%}.content .option-cont[data-v-0f89038c]{position:fixed;bottom:%?0?%;height:%?550?%;width:100%;background-color:#fff;border-radius:%?60?% %?60?% %?0?% %?0?%;padding:%?30?%}.content .option-cont .option-title[data-v-0f89038c]{width:100%;padding-bottom:%?15?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;font-family:PingFang SC;color:#111}.content .option-cont .options[data-v-0f89038c]{display:flex;flex-direction:column;justify-content:center;align-items:center}.content .option-cont .options .option-item[data-v-0f89038c]{display:flex;align-items:center;justify-content:center;width:100%;border:%?1?% solid #eee;margin-bottom:%?10?%;padding:%?15?%;border-radius:%?5?%}.content .title[data-v-0f89038c]{padding:%?15?% %?30?%;display:flex;justify-content:center;align-items:center;width:100%;background-color:#d3ad58;font-size:%?24?%;font-family:PingFang SC;font-weight:700;color:#fff}.content .patient-cont[data-v-0f89038c]{padding:%?15?%}.content .patient-cont .chose-patient[data-v-0f89038c]{padding:%?30?%;box-shadow:0 0 5px 2px rgba(0,0,0,.05);background-color:#fff;border-radius:%?15?%}.content .patient-cont .chose-patient .patient-box[data-v-0f89038c]{display:flex;align-items:center;justify-content:space-between}.content .patient-cont .chose-patient .patient-box .patient-title[data-v-0f89038c]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#111}.content .patient-cont .chose-patient .patient-box .right[data-v-0f89038c]{height:100%;display:flex;align-items:center;justify-content:center}.content .patient-cont .chose-patient .patient-box .right .value[data-v-0f89038c]{font-size:%?28?%;font-family:PingFang SC;color:#999;margin-right:%?10?%}.content .patient-cont .chose-patient .patient-box .right uni-image[data-v-0f89038c]{width:%?15?%;height:%?30?%}.content .patient-cont .chose-patient .patient[data-v-0f89038c]{display:flex;align-items:center;justify-content:space-between;height:%?110?%}.content .patient-cont .chose-patient .patient .left .name[data-v-0f89038c]{font-size:%?30?%;line-height:1;font-family:PingFang SC;font-weight:700;color:#111}.content .patient-cont .chose-patient .patient .left .info[data-v-0f89038c]{margin-top:%?30?%;display:flex;align-items:center}.content .patient-cont .chose-patient .patient .left .info .text[data-v-0f89038c]{font-size:%?26?%;font-family:PingFang SC;line-height:1;font-weight:500;color:#999;margin-right:%?19?%}.content .patient-cont .chose-patient .patient .right[data-v-0f89038c]{display:flex;align-items:center}.content .patient-cont .chose-patient .patient .right uni-image[data-v-0f89038c]{width:%?15?%;height:%?30?%}.content .items[data-v-0f89038c]{padding:%?15?%;width:100%;padding:%?30?%;border-radius:%?15?%;background-color:#fff;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.content .items .item[data-v-0f89038c]{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;background-color:#f8f8f8;margin-bottom:%?15?%}.content .items .item .name[data-v-0f89038c]{font-size:%?32?%;font-family:PingFang SC;color:#2a2b2e;font-weight:700;margin-bottom:%?15?%}.content .items .item .options[data-v-0f89038c]{margin:%?15?% %?0?%;width:100%;display:flex;align-items:center;justify-content:space-between}.content .items .item .options .option[data-v-0f89038c]{margin-right:%?10?%;margin-bottom:%?10?%;display:flex;align-items:center;justify-content:center;border-radius:%?10?%;width:20%;height:%?80?%;border:%?1?% solid #9b9b9b;font-size:%?28?%;font-family:PingFang SC;color:#2a2b2e;background-color:#fff}.content .items .item .options .option[data-v-0f89038c]:last-child{margin-right:%?0?%;margin-bottom:%?0?%}.content .items .item .options .active[data-v-0f89038c]{border:%?1?% solid #d3ad58;background-color:#d3ad58;color:#fff}.content .btns[data-v-0f89038c]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:%?30?%}.content .btns .btn[data-v-0f89038c]{height:%?80?%;margin:%?0?% %?30?%;border-radius:%?60?%;width:100%;border:%?1?% solid #d3ad58;font-size:32supx;font-family:PingFang SC;color:#fff;font-weight:700;background-color:#d3ad58;display:flex;align-items:center;justify-content:center}.content .tips[data-v-0f89038c]{flex-direction:column;display:flex;align-items:center;justify-content:center;width:100%;padding:%?30?%}.content .tips .tip-title[data-v-0f89038c]{font-size:26supx;font-family:PingFang SC;color:#888;font-weight:700}.content .tips .desc[data-v-0f89038c]{margin-top:%?15?%;font-size:%?24?%;font-family:PingFang SC;color:#b8bdb5}',""]),t.exports=n},a2c0:function(t,n,e){var i=e("83c7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("60dc9ed0",i,!0,{sourceMap:!1,shadowMode:!1})},a34d:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"patient-cont"},[e("v-uni-view",{staticClass:"chose-patient"},[null==t.patient?e("v-uni-view",{staticClass:"patient-box",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addPatient()}}},[e("v-uni-text",{staticClass:"patient-title"},[t._v("选择体验者")]),e("v-uni-view",{staticClass:"right"},[e("v-uni-text",{staticClass:"value"},[t._v("请点击添加")]),e("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/arrow_gray.png",mode:""}})],1)],1):t._e(),null!=t.patient?e("v-uni-view",{staticClass:"patient",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addPatient()}}},[e("v-uni-view",{staticClass:"left"},[e("v-uni-view",{staticClass:"name"},[t._v(t._s(t.patient.patientName))]),e("v-uni-view",{staticClass:"info"},[1==t.patient.sex?e("v-uni-text",{staticClass:"text"},[t._v("男")]):t._e(),2==t.patient.sex?e("v-uni-text",{staticClass:"text"},[t._v("女")]):t._e(),e("v-uni-text",{staticClass:"text"},[t._v(t._s(t.$getAge(t.patient.birthday))+"岁")]),e("v-uni-text",{staticClass:"text"},[t._v(t._s(t.$parseIdCard(t.patient.idCard)))])],1)],1),e("v-uni-view",{staticClass:"right"},[e("v-uni-image",{attrs:{src:t.imgPath+"/app/commonCourse/arrow_gray.png",mode:""}})],1)],1):t._e()],1)],1),e("v-uni-view",{staticClass:"msg-cont"},[e("v-uni-scroll-view",{staticClass:"msg-scroll",attrs:{"scroll-top":t.scrollTop,"scroll-y":"true","scroll-with-animation":!0}},[e("v-uni-view",{staticClass:"msgs"},t._l(t.msgs,(function(n,i){return e("v-uni-view",{staticClass:"msg-item"},[1==n.type?e("v-uni-view",{staticClass:"left"},[e("v-uni-image",{staticClass:"img",attrs:{src:t.imgPath+"/app/commonCourse/ai-img.png"}}),e("v-uni-view",{staticClass:"msg-content"},[t._v(t._s(n.content))])],1):t._e(),2==n.type?e("v-uni-view",{staticClass:"right"},[e("v-uni-view",{staticClass:"msg-content"},[t._v(t._s(n.content))]),e("v-uni-image",{staticClass:"img",attrs:{src:t.imgPath+"/app/commonCourse/head-img.jpg"}})],1):t._e()],1)})),1)],1)],1),null!=t.item?e("v-uni-view",{staticClass:"option-cont"},[e("v-uni-view",{staticClass:"option-title"},[t._v(t._s(t.item.title))]),e("v-uni-view",{staticClass:"options"},t._l(JSON.parse(t.item.scoreJson),(function(n){return e("v-uni-view",{staticClass:"option-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.optionClick(t.item,n)}}},[t._v(t._s(n.name))])})),1)],1):t._e()],1)},a=[]},cee2:function(t,n,e){"use strict";var i=e("a2c0"),a=e.n(i);a.a},f90b:function(t,n,e){"use strict";e.r(n);var i=e("67ae"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a}}]);
|