康巴易测肤/伤疤uniapp小程序类
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 周前
1 个月前
12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/details/index"],{190:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var r=i(n(191));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},191:function(t,e,n){"use strict";n.r(e);var i=n(192),r=n(194);for(var s in r)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n(196);var o,a=n(32),u=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"54d3589c",null,!1,i["components"],o);u.options.__file="pages/details/index.vue",e["default"]=u.exports},192:function(t,e,n){"use strict";n.r(e);var i=n(193);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},193:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return i}));try{i={"u-Image":function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u--image/u--image")]).then(n.bind(null,322))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,255))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement;t._self._c},s=!1,o=[];r._withStripped=!0},194:function(t,e,n){"use strict";n.r(e);var i=n(195),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},195:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{currentStep:0,steps:[{name:"步骤1"},{name:"步骤2"}],parts:["面部","颈部","胸部","背部","四肢","腹部","手部","足部","其它"],categories:["烧伤","割伤","烫伤","手术后(含剖腹产)"],formData:{part:"",category:"",feel:""},aiRootPath:n(483),selectCurrent:null,details:{total:3,list:[{data:["面部","颈部","胸部","背部","四肢","腹部","手部和足部","其它"],stepIndex:0,question:"伤口受伤的部位是?",answer:"",answerIndex:null},{data:["烧伤","割伤","烫伤","手术后(含剖腹产)","跌碰撞伤","青春痘","宠物抓伤","其他"],stepIndex:1,question:"伤口受伤的类别是?",answer:"",answerIndex:null},{data:["红肿程度","痕痒程度","其他"],stepIndex:2,question:"伤口受伤的感受是?",answer:"",answerIndex:null}]},questionList:[]}},computed:{themeColor:function(){return this.$themeColor},bgthemeColor:function(){return"#000"}},onLoad:function(){this.questionList=this.details.list[this.currentStep].data},methods:{onClick:function(t,e){console.log("item",t,e),this.details.list[this.currentStep].answer=t,this.details.list[this.currentStep].answerIndex=e},handleNext:function(){if(0===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口部位",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(1===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口类别",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(2===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口感受",icon:"none"});this.onSubmit()}},handlePre:function(){this.currentStep--,this.questionList=this.details.list[this.currentStep].data},onSubmit:function(){var e=this;t.showLoading({title:"提交中",mask:!0}),setTimeout((function(){t.showToast({title:"提交成功",icon:"success"}),console.log("提交数据:",e.formData);var n=new Date,i=[{date:e.$util.formateDate("mm-dd",n),time:e.$util.formateDate("HH:MM",n),day:e.$util.getDayName(),year:e.$util.formateDate("yyyy",n),imageSrc:e.$store.state.user.photoPath,evaluation:"伤口减小,肉芽无增生,皮肤逐渐变浅"}];e.$store.commit("setResultList",i),e.$store.commit("saveAll"),t.reLaunch({url:"/pages/details/result"})}),1500)}}};e.default=i}).call(this,n(2)["default"])},196:function(t,e,n){"use strict";n.r(e);var i=n(197),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},197:function(t,e,n){}},[[190,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/details/index.js.map