diff --git a/app/Admin/Controllers/PatientController.php b/app/Admin/Controllers/PatientController.php index 7f5ec87..9823e15 100644 --- a/app/Admin/Controllers/PatientController.php +++ b/app/Admin/Controllers/PatientController.php @@ -66,7 +66,7 @@ class PatientController extends AdminController { return $this->baseForm()->body([ amisMake()->SelectControl()->options($this->getTypeOptions())->name('type_id')->label(__('patient.type_id'))->required(), - amisMake()->SelectControl()->source(admin_url('/api/user/list'))->labelField('phone')->valueField('id')->name('user_id')->label(__('patient.user_id'))->clearable()->onEvent([ + amisMake()->SelectControl()->source(admin_url('/api/user/list'))->name('user_id')->label(__('patient.user_id'))->clearable()->onEvent([ 'change' => [ 'actions' => [ ['actionType' => 'setValue', 'componentId' => 'patient_name', 'args' => ['value' => '${event.data.selectedItems.name}']], diff --git a/app/Admin/Controllers/UserController.php b/app/Admin/Controllers/UserController.php index bc167e8..1a029aa 100644 --- a/app/Admin/Controllers/UserController.php +++ b/app/Admin/Controllers/UserController.php @@ -73,7 +73,7 @@ class UserController extends AdminController public function getList(Request $request) { - $list = $this->service->listQuery()->get(); + $list = $this->service->listQuery()->get()->map(fn($item) => ['value' => $item->id, 'label' => $item->name . '-' . $item->phone]); return $this->response()->success($list); } diff --git a/app/Admin/Services/PatientService.php b/app/Admin/Services/PatientService.php index 01cee43..b074faf 100644 --- a/app/Admin/Services/PatientService.php +++ b/app/Admin/Services/PatientService.php @@ -67,7 +67,7 @@ class PatientService extends BaseService 'user_id' => ['nullable', $userRule->where('type_id', data_get($data, 'type_id'))], ]; $updateRule = [ - 'user_id' => ['nullable', $userRule->where('type_id', data_get($data, 'type_id', $model?->type_id))] + 'user_id' => ['nullable', $userRule->where('type_id', data_get($data, 'type_id', $model?->type_id))->ignore($model->id)] ]; $validator = Validator::make($data, $model ? $updateRule : $createRule, [ 'type_id.required' => __('patient.type_id') . '必填', diff --git a/app/Http/Controllers/Client/PatientController.php b/app/Http/Controllers/Client/PatientController.php index 4205f29..600151e 100644 --- a/app/Http/Controllers/Client/PatientController.php +++ b/app/Http/Controllers/Client/PatientController.php @@ -19,7 +19,7 @@ class PatientController extends Controller public function show($id) { $user = auth('api')->user(); - $patient = $user->patients()->with(['type'])->findOrFail($id); + $patient = $user->patients()->with(['type', 'doctor'])->findOrFail($id); return $this->response()->success($patient); } } diff --git a/app/Http/Controllers/WechatController.php b/app/Http/Controllers/WechatController.php index 717709c..14ad9bb 100644 --- a/app/Http/Controllers/WechatController.php +++ b/app/Http/Controllers/WechatController.php @@ -51,7 +51,7 @@ class WechatController extends Controller return redirect(url('/client/pages/login/index') . '?' . http_build_query(['openid' => $openid, 'open_type' => SocialiteType::WxOfficial->value])); } - $token = $user->createToken('client')->plainTextToken; + $token = $user->createToken('client')->plainTextToken; return redirect(url('/client/pages/index/welcome') . '?token=' . $token); } diff --git a/public/client/index.html b/public/client/index.html index 8900696..522c647 100644 --- a/public/client/index.html +++ b/public/client/index.html @@ -1,2 +1,2 @@ 宝芝堂
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/public/client/static/js/93.8e102193.js b/public/client/static/js/93.8e102193.js new file mode 100644 index 0000000..9c8d51e --- /dev/null +++ b/public/client/static/js/93.8e102193.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[93],{1435:function(e,t,i){var n=i(3094);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var s=i(5472).Z;s("53d19eea",n,!0,{sourceMap:!1,shadowMode:!1})},3093:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n,s={"u-Text":i(1153).Z},l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"u-album"},e._l(e.showUrls,(function(t,n){return i("v-uni-view",{key:n,ref:"u-album__row",refInFor:!0,staticClass:"u-album__row",attrs:{forComputedUse:e.albumWidth}},e._l(t,(function(t,s){return i("v-uni-view",{key:s,staticClass:"u-album__row__wrapper",style:[e.imageStyle(n+1,s+1)],on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.previewFullImage&&e.onPreviewTap(e.getSrc(t))}}},[i("v-uni-image",{style:[{width:e.imageWidth,height:e.imageHeight}],attrs:{src:e.getSrc(t),mode:1===e.urls.length?e.imageHeight>0?e.singleMode:"widthFix":e.multipleMode}}),e.showMore&&e.urls.length>e.rowCount*e.showUrls.length&&n===e.showUrls.length-1&&s===e.showUrls[e.showUrls.length-1].length-1?i("v-uni-view",{staticClass:"u-album__row__wrapper__text"},[i("u--text",{attrs:{text:"+"+(e.urls.length-e.maxCount),color:"#fff",size:.3*e.multipleSize,align:"center",customStyle:"justify-content: center"}})],1):e._e()],1)})),1)})),1)},u=[],r={props:{urls:{type:Array,default:uni.$u.props.album.urls},keyName:{type:String,default:uni.$u.props.album.keyName},singleSize:{type:[String,Number],default:uni.$u.props.album.singleSize},multipleSize:{type:[String,Number],default:uni.$u.props.album.multipleSize},space:{type:[String,Number],default:uni.$u.props.album.space},singleMode:{type:String,default:uni.$u.props.album.singleMode},multipleMode:{type:String,default:uni.$u.props.album.multipleMode},maxCount:{type:[String,Number],default:uni.$u.props.album.maxCount},previewFullImage:{type:Boolean,default:uni.$u.props.album.previewFullImage},rowCount:{type:[String,Number],default:uni.$u.props.album.rowCount},showMore:{type:Boolean,default:uni.$u.props.album.showMore}}},a={name:"u-album",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],data(){return{singleWidth:0,singleHeight:0,singlePercent:.6}},watch:{urls:{immediate:!0,handler(e){1===e.length&&this.getImageRect()}}},computed:{imageStyle(){return(e,t)=>{const{space:i,rowCount:n,multipleSize:s,urls:l}=this,{addUnit:u,addStyle:r}=uni.$u,a=this.showUrls.length,o=(this.urls.length,{marginRight:u(i),marginBottom:u(i)});return e===a&&(o.marginBottom=0),(t===n||e===a&&t===this.showUrls[e-1].length)&&(o.marginRight=0),o}},showUrls(){const e=[];return this.urls.map(((t,i)=>{if(i+1<=this.maxCount){const n=Math.floor(i/this.rowCount);e[n]||(e[n]=[]),e[n].push(t)}})),e},imageWidth(){return uni.$u.addUnit(1===this.urls.length?this.singleWidth:this.multipleSize)},imageHeight(){return uni.$u.addUnit(1===this.urls.length?this.singleHeight:this.multipleSize)},albumWidth(){let e=0;return e=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",e),e}},methods:{onPreviewTap(e){const t=this.urls.map((e=>this.getSrc(e)));uni.previewImage({current:e,urls:t})},getSrc(e){return uni.$u.test.object(e)?this.keyName&&e[this.keyName]||e.src:e},getImageRect(){const e=this.getSrc(this.urls[0]);uni.getImageInfo({src:e,success:e=>{const t=e.width>=e.height;this.singleWidth=t?this.singleSize:e.width/e.height*this.singleSize,this.singleHeight=t?e.height/e.width*this.singleWidth:this.singleSize},fail:()=>{this.getComponentWidth()}})},async getComponentWidth(){await uni.$u.sleep(30),this.$uGetRect(".u-album__row").then((e=>{this.singleWidth=e.width*this.singlePercent}))}}},o=a,h=(i(1435),i(1503)),p=(0,h.Z)(o,l,u,!1,null,"863ddef2",null,!1,s,n),d=p.exports},3094:function(e,t,i){"use strict";i.r(t);var n=i(2916),s=i.n(n),l=i(3282),u=i.n(l),r=u()(s());r.push([e.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-863ddef2], uni-scroll-view[data-v-863ddef2], uni-swiper-item[data-v-863ddef2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-album[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:column}.u-album__row[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap}.u-album__row__wrapper[data-v-863ddef2]{position:relative}.u-album__row__wrapper__text[data-v-863ddef2]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center}',""]),t["default"]=r}}]); \ No newline at end of file diff --git a/public/client/static/js/index.3273abba.js b/public/client/static/js/index.3273abba.js deleted file mode 100644 index bae2a09..0000000 --- a/public/client/static/js/index.3273abba.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var n={1398:function(n,e,o){var t=o(8703);t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[n.id,t,""]]),t.locals&&(n.exports=t.locals);var i=o(5472).Z;i("99d79208",t,!0,{sourceMap:!1,shadowMode:!1})},4427:function(n,e,o){"use strict";var t=o(159),i=(o(7966),o(4554),o(3167),o(3482),o(206),o(5827),o(498),o(930),o(423),o(262),o(6075)),r={keys:function(){return[]}};o.g["____828F200____"]=!0,delete o.g["____828F200____"],o.g.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"宝芝堂",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",navigationStyle:"custom"},easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue","^unicloud-db$":"@dcloudio/uni-cli-shared/components/unicloud-db.vue","^uniad$":"@dcloudio/uni-cli-shared/components/uniad.vue","^ad-rewarded-video$":"@dcloudio/uni-cli-shared/components/ad-rewarded-video.vue","^ad-fullscreen-video$":"@dcloudio/uni-cli-shared/components/ad-fullscreen-video.vue","^ad-interstitial$":"@dcloudio/uni-cli-shared/components/ad-interstitial.vue","^ad-interactive$":"@dcloudio/uni-cli-shared/components/ad-interactive.vue","^page-meta$":"@dcloudio/uni-cli-shared/components/page-meta.vue","^navigation-bar$":"@dcloudio/uni-cli-shared/components/navigation-bar.vue","^uni-match-media$":"@dcloudio/uni-cli-shared/components/uni-match-media.vue"}},o.g.__uniConfig.compilerVersion="3.6.14",o.g.__uniConfig.darkmode=!1,o.g.__uniConfig.themeConfig={},o.g.__uniConfig.uniPlatform="h5",o.g.__uniConfig.appId="__UNI__828F200",o.g.__uniConfig.appName="宝芝堂",o.g.__uniConfig.appVersion="1.0.0",o.g.__uniConfig.appVersionCode="100",o.g.__uniConfig.router={mode:"history",base:"/client/"},o.g.__uniConfig.publicPath="/client/",o.g.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},o.g.__uniConfig.debug=!1,o.g.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},o.g.__uniConfig.sdkConfigs={},o.g.__uniConfig.qqMapKey=void 0,o.g.__uniConfig.googleMapKey=void 0,o.g.__uniConfig.aMapKey=void 0,o.g.__uniConfig.aMapSecurityJsCode=void 0,o.g.__uniConfig.aMapServiceHost=void 0,o.g.__uniConfig.locale="",o.g.__uniConfig.fallbackLocale=void 0,o.g.__uniConfig.locales=r.keys().reduce((function(n,e){var o=e.replace(/\.\/(uni-app.)?(.*).json/,"$2"),t=r(e);return Object.assign(n[o]||(n[o]={}),t.common||t),n}),{}),o.g.__uniConfig.nvue={"flex-direction":"column"},o.g.__uniConfig.__webpack_chunk_load__=o.e,i["default"].component("pages-index-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(981),o.e(787),o.e(344),o.e(125),o.e(58)]).then(function(){return n(o(5477))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-index-welcome",(function(n){var e={component:o.e(545).then(function(){return n(o(3233))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-login-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(241),o.e(344),o.e(102),o.e(607)]).then(function(){return n(o(7354))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-register-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(241),o.e(344),o.e(56),o.e(102),o.e(913)]).then(function(){return n(o(8773))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-user-index",(function(n){var e={component:Promise.all([o.e(297),o.e(202),o.e(981),o.e(241),o.e(787),o.e(56),o.e(125),o.e(905)]).then(function(){return n(o(7650))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-record-index",(function(n){var e={component:Promise.all([o.e(297),o.e(981),o.e(492)]).then(function(){return n(o(6851))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),i["default"].component("pages-record-detail",(function(n){var e={component:Promise.all([o.e(297),o.e(981),o.e(787),o.e(487)]).then(function(){return n(o(4480))}.bind(null,o))["catch"](o.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.g.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"宝芝堂"})},[n("pages-index-index",{slot:"page"})])}},meta:{id:1,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/index/welcome",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"宝芝堂"})},[n("pages-index-welcome",{slot:"page"})])}},meta:{name:"pages-index-welcome",isNVue:!1,maxWidth:0,pagePath:"pages/index/welcome",windowTop:0}},{path:"/pages/login/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录"})},[n("pages-login-index",{slot:"page"})])}},meta:{name:"pages-login-index",isNVue:!1,maxWidth:0,pagePath:"pages/login/index",windowTop:0}},{path:"/pages/register/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"注册"})},[n("pages-register-index",{slot:"page"})])}},meta:{name:"pages-register-index",isNVue:!1,maxWidth:0,pagePath:"pages/register/index",windowTop:0}},{path:"/pages/user/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"账户信息"})},[n("pages-user-index",{slot:"page"})])}},meta:{name:"pages-user-index",isNVue:!1,maxWidth:0,pagePath:"pages/user/index",windowTop:0}},{path:"/pages/record/index",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病历记录",enablePullDownRefresh:!0})},[n("pages-record-index",{slot:"page"})])}},meta:{name:"pages-record-index",isNVue:!1,maxWidth:0,pagePath:"pages/record/index",windowTop:0}},{path:"/pages/record/detail",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"病历详细",enablePullDownRefresh:!0})},[n("pages-record-detail",{slot:"page"})])}},meta:{name:"pages-record-detail",isNVue:!1,maxWidth:0,pagePath:"pages/record/detail",windowTop:0}},{path:"/choose-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],o.g.UniApp&&new o.g.UniApp;o(1026);var a,u,c=function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("App",{attrs:{keepAliveInclude:n.keepAliveInclude}})},d=[],l={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}},s=l,g=(o(1398),o(1503)),p=(0,g.Z)(s,c,d,!1,null,null,null,!1,a,u),f=p.exports,m=(o(7846),o(3124)),b=o(5682);o(8996),o(7480),o(5329),o(4302),o(5621),o(1199),o(9289),o(9312);function _(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_client_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.status&&uni.reLaunch({url:"/pages/login/index"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",607:"pages-login-index",905:"pages-user-index",913:"pages-register-index"}[n]||n)+"."+{56:"8a0d84b8",58:"f1895627",102:"03435c48",125:"0b6c7a32",202:"7e8e9e5c",241:"ca33bc23",297:"0381efa6",344:"bc29a90f",487:"34f2eb53",492:"d892d2f8",545:"2b4587f4",607:"238b6ee6",787:"ef344ac6",905:"bb975446",913:"2344e4b7",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd HH:mm:ss";if(!e)return"";n=e?/^\d{10}$/.test(e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;var t={y:n.getFullYear().toString(),M:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),H:n.getHours().toString().padStart(2,"0"),m:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(var i in t){var r=new RegExp("".concat(i,"+")).exec(o)||[],a=(0,b.Z)(r,1),u=a[0];if(u){var c="y"===i&&2===u.length?2:0;o=o.replace(u,t[i].slice(c))}}return o}i["default"].config.productionTip=!1,i["default"].use(m.Z),i["default"].filter("date",(function(n,e){return e||(e="yyyy-MM-dd HH:mm:ss"),_(n,e)})),i["default"].config.productionTip=!1,f.mpType="app";var y=new i["default"]((0,t.Z)({},f));o(926)(),i["default"].prototype.$ajax=uni.$u.http,y.$mount()},7846:function(n,e,o){var t=o(3087)["default"];o(5827),uni.addInterceptor({returnValue:function(n){return!n||"object"!==t(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,o){n.then((function(n){return n[0]?o(n[0]):e(n[1])}))}))}})},926:function(n,e,o){o(5827),n.exports=function(){uni.$u.http.setConfig((function(n){return n.baseURL="http://www.xbzt.cc",n.custom={toast:!0,loading:!1},n})),uni.$u.http.interceptors.request.use((function(n){var e=uni.getStorageSync("medical_record_client_auth_token");return e&&(n.header["Authorization"]="Bearer ".concat(e)),n.header["Accept"]="application/json",n.custom.loading&&uni.showLoading(),n}),(function(n){return Promise.reject(n)})),uni.$u.http.interceptors.response.use((function(n){uni.hideLoading();var e=n.data;return n.config.custom.toast&&0!=e.status&&1!=e.doNotDisplayToast&&uni.showModal({title:e.msg,showCancel:!1}),401==e.status&&uni.reLaunch({url:"/pages/login/index"}),e}),(function(n){return uni.hideLoading(),Promise.reject(n)}))}},8703:function(n,e,o){"use strict";o.r(e);var t=o(2916),i=o.n(t),r=o(3282),a=o.n(r),u=a()(i());u.push([n.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button::after{border:none}\n.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}\n::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}body{background-color:#f3f4f6}',""]),e["default"]=u}},e={};function o(t){var i=e[t];if(void 0!==i)return i.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=n,function(){o.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){var n=[];o.O=function(e,t,i,r){if(!t){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((function(n){return o.O[n](t[c])}))?t.splice(c--,1):(u=!1,r0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[t,i,r]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})}}(),function(){o.f={},o.e=function(n){return Promise.all(Object.keys(o.f).reduce((function(e,t){return o.f[t](n,e),e}),[]))}}(),function(){o.u=function(n){return"static/js/"+({58:"pages-index-index",487:"pages-record-detail",492:"pages-record-index",545:"pages-index-welcome",607:"pages-login-index",810:"pages-patient-detail",905:"pages-user-index",913:"pages-register-index"}[n]||n)+"."+{56:"8a0d84b8",58:"5bec1417",93:"8e102193",102:"03435c48",125:"0b6c7a32",202:"7e8e9e5c",241:"ca33bc23",297:"0381efa6",344:"bc29a90f",487:"466c2912",492:"a0254065",545:"2b4587f4",607:"238b6ee6",787:"ef344ac6",810:"9e0e3ad9",905:"54ed4327",913:"2344e4b7",981:"925b79b6"}[n]+".js"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){var n={},e="uniapp:";o.l=function(t,i,r,a){if(n[t])n[t].push(i);else{var u,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),l=0;l=0}}},l=r,c=(n(4186),n(1503)),p=(0,c.Z)(l,o,u,!1,null,"4025ac66",null,!1,a,i),d=p.exports},4188:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uAvatar:n(8125).Z,uEmpty:n(4555).Z,uButton:n(7344).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"info"},[n("u-cell-group",[n("u-cell",{attrs:{title:t.info.name,url:"/pages/user/index",isLink:!0}},[n("v-uni-view",{attrs:{slot:"icon"},slot:"icon"},[n("u-avatar",{attrs:{src:t.info.avatar}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"btns"},[0==t.list.length?n("u-empty",{attrs:{mode:"list",text:"暂无就诊记录"}}):t._e(),t._l(t.list,(function(e){return n("v-uni-view",{key:e.id,staticClass:"btn"},[n("u-button",{attrs:{icon:e.image,text:e.name,size:"large"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.itemClick(e.patient_id)}}})],1)}))],2),n("v-uni-view",{staticClass:"footer"},[n("u-button",{attrs:{text:"退出登录",type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.logout.apply(void 0,arguments)}}})],1)],1)},u=[],s=(n(9299),{data:function(){return{info:{},list:[]}},onLoad:function(){this.init()},methods:{init:function(){var t=this;this.$ajax.get("/api/client/user/profile").then((function(e){0==e.status&&(t.info=e.data)})),this.$ajax.get("/api/client/patient").then((function(e){0==e.status&&(t.list=e.data.map((function(t){var e=t.type;return e.patient_id=t.id,e})))}))},itemClick:function(t){uni.navigateTo({url:"/pages/patient/detail?id=".concat(t)})},logout:function(){var t=this;uni.showModal({title:"退出登录",content:"是否确定?",success:function(e){e.confirm&&t.$ajax.get("/api/client/logout").then((function(t){0==t.status&&(uni.removeStorageSync("medical_record_client_auth_token"),uni.reLaunch({url:"/pages/login/index"}))}))}})}}}),r=s,l=(n(4500),n(1503)),c=(0,l.Z)(r,o,u,!1,null,"d38dda6e",null,!1,a,i),p=c.exports},737:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),u=n.n(o),s=u()(a());s.push([t.id,".page[data-v-d38dda6e]{padding:20px 10px;box-sizing:border-box}.info[data-v-d38dda6e]{background:#fff}.btns[data-v-d38dda6e]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-d38dda6e]{width:100%;margin-top:20px}.footer[data-v-d38dda6e]{margin-top:%?100?%}",""]),e["default"]=s},1910:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),u=n.n(o),s=u()(a());s.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-4025ac66], uni-scroll-view[data-v-4025ac66], uni-swiper-item[data-v-4025ac66]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}.u-slot-wrap[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}',""]),e["default"]=s}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-index-index.f1895627.js b/public/client/static/js/pages-index-index.f1895627.js deleted file mode 100644 index 4b42b26..0000000 --- a/public/client/static/js/pages-index-index.f1895627.js +++ /dev/null @@ -1 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[58],{1045:function(t,e,n){var i=n(9525);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("138331d2",i,!0,{sourceMap:!1,shadowMode:!1})},4186:function(t,e,n){var i=n(1910);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);var a=n(5472).Z;a("f31422a4",i,!0,{sourceMap:!1,shadowMode:!1})},4555:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var i,a={uIcon:n(5862).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("v-uni-view",{staticClass:"u-empty",style:[t.emptyStyle]},[t.isSrc?n("v-uni-image",{style:{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)},attrs:{src:t.icon,mode:"widthFix"}}):n("u-icon",{attrs:{name:"message"===t.mode?"chat":"empty-"+t.mode,size:t.iconSize,color:t.iconColor,"margin-top":"14"}}),n("v-uni-text",{staticClass:"u-empty__text",style:[t.textStyle]},[t._v(t._s(t.text?t.text:t.icons[t.mode]))]),t.$slots.default||t.$slots.$default?n("v-uni-view",{staticClass:"u-empty__wrap"},[t._t("default")],2):t._e()],1):t._e()},u=[],s={props:{icon:{type:String,default:uni.$u.props.empty.icon},text:{type:String,default:uni.$u.props.empty.text},textColor:{type:String,default:uni.$u.props.empty.textColor},textSize:{type:[String,Number],default:uni.$u.props.empty.textSize},iconColor:{type:String,default:uni.$u.props.empty.iconColor},iconSize:{type:[String,Number],default:uni.$u.props.empty.iconSize},mode:{type:String,default:uni.$u.props.empty.mode},width:{type:[String,Number],default:uni.$u.props.empty.width},height:{type:[String,Number],default:uni.$u.props.empty.height},show:{type:Boolean,default:uni.$u.props.empty.show},marginTop:{type:[String,Number],default:uni.$u.props.empty.marginTop}}},r={name:"u-empty",mixins:[uni.$u.mpMixin,uni.$u.mixin,s],data(){return{icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}},computed:{emptyStyle(){const t={};return t.marginTop=uni.$u.addUnit(this.marginTop),uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},textStyle(){const t={};return t.color=this.textColor,t.fontSize=uni.$u.addUnit(this.textSize),t},isSrc(){return this.icon.indexOf("/")>=0}}},l=r,c=(n(4186),n(1503)),p=(0,c.Z)(l,o,u,!1,null,"4025ac66",null,!1,a,i),d=p.exports},5477:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var i,a={uCellGroup:n(156).Z,uCell:n(7981).Z,uAvatar:n(8125).Z,uEmpty:n(4555).Z,uButton:n(7344).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("v-uni-view",{staticClass:"info"},[n("u-cell-group",[n("u-cell",{attrs:{title:t.info.name,url:"/pages/user/index",isLink:!0}},[n("v-uni-view",{attrs:{slot:"icon"},slot:"icon"},[n("u-avatar",{attrs:{src:t.info.avatar}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"btns"},[0==t.list.length?n("u-empty",{attrs:{mode:"list",text:"暂无就诊记录"}}):t._e(),t._l(t.list,(function(e){return n("v-uni-view",{key:e.id,staticClass:"btn"},[n("u-button",{attrs:{icon:e.image,text:e.name,size:"large"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.itemClick(e.patient_id)}}})],1)}))],2),n("v-uni-view",{staticClass:"footer"},[n("u-button",{attrs:{text:"退出登录",type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.logout.apply(void 0,arguments)}}})],1)],1)},u=[],s=(n(9299),{data:function(){return{info:{},list:[]}},onLoad:function(){this.init()},methods:{init:function(){var t=this;this.$ajax.get("/api/client/user/profile").then((function(e){0==e.status&&(t.info=e.data)})),this.$ajax.get("/api/client/patient").then((function(e){0==e.status&&(t.list=e.data.map((function(t){var e=t.type;return e.patient_id=t.id,e})))}))},itemClick:function(t){uni.navigateTo({url:"/pages/record/index?type_id=".concat(t)})},logout:function(){var t=this;uni.showModal({title:"退出登录",content:"是否确定?",success:function(e){e.confirm&&t.$ajax.get("/api/client/logout").then((function(t){0==t.status&&(uni.removeStorageSync("medical_record_client_auth_token"),uni.reLaunch({url:"/pages/login/index"}))}))}})}}}),r=s,l=(n(1045),n(1503)),c=(0,l.Z)(r,o,u,!1,null,"263b481e",null,!1,a,i),p=c.exports},9525:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),u=n.n(o),s=u()(a());s.push([t.id,".page[data-v-263b481e]{padding:20px 10px;box-sizing:border-box}.info[data-v-263b481e]{background:#fff}.btns[data-v-263b481e]{margin-top:%?300?%;display:flex;flex-direction:column;align-items:center}.btns .btn[data-v-263b481e]{width:100%;margin-top:20px}.footer[data-v-263b481e]{margin-top:%?100?%}",""]),e["default"]=s},1910:function(t,e,n){"use strict";n.r(e);var i=n(2916),a=n.n(i),o=n(3282),u=n.n(o),s=u()(a());s.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-4025ac66], uni-scroll-view[data-v-4025ac66], uni-swiper-item[data-v-4025ac66]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}.u-slot-wrap[data-v-4025ac66]{\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}',""]),e["default"]=s}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-patient-detail.9e0e3ad9.js b/public/client/static/js/pages-patient-detail.9e0e3ad9.js new file mode 100644 index 0000000..c4ab8eb --- /dev/null +++ b/public/client/static/js/pages-patient-detail.9e0e3ad9.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[810],{38:function(t,a,e){var n=e(2631);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=e(5472).Z;i("45d80b48",n,!0,{sourceMap:!1,shadowMode:!1})},8178:function(t,a,e){"use strict";e.r(a),e.d(a,{default:function(){return c}});var n,i={uCellGroup:e(156).Z,uCell:e(7981).Z,uAlbum:e(3093).Z,uButton:e(7344).Z},u=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("u-cell-group",{attrs:{border:!1}},[e("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),e("u-cell",{attrs:{title:"初诊时间",value:t._f("date")(t.info.treat_at,"yyyy-MM-dd")}}),e("u-cell",{attrs:{title:"初诊医生",value:t.info.doctor?t.info.doctor.name:""}}),e("u-cell",{attrs:{title:"病情描述"}},[e("v-uni-view",{attrs:{slot:"value"},slot:"value"},[e("v-uni-text",[t._v(t._s(t.info.illness))])],1)],1),e("u-cell",{attrs:{title:"图片资料"}},[e("v-uni-view",{attrs:{slot:"value"},slot:"value"},[e("u-album",{attrs:{urls:t.info.images}})],1)],1)],1),e("v-uni-view",{staticClass:"btn"},[e("u-button",{attrs:{text:"病历记录",type:"success"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.record.apply(void 0,arguments)}}})],1)],1)},o=[],l=(e(9299),{data:function(){return{id:"",info:{images:[],doctor_id:"",doctor:{}}}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;this.id&&(uni.showLoading(),this.$ajax.get("/api/client/patient/".concat(this.id)).then((function(a){uni.stopPullDownRefresh(),0==a.status&&(t.info=a.data,a.data.images&&t.$refs["images"].setList(a.data.images.map((function(t){return{url:t}}))),uni.setNavigationBarTitle({title:t.info.name}))})).catch((function(t){uni.stopPullDownRefresh()})))},record:function(){uni.navigateTo({url:"/pages/record/index?patient=".concat(this.id)})}}}),s=l,r=(e(38),e(1503)),d=(0,r.Z)(s,u,o,!1,null,"360de132",null,!1,i,n),c=d.exports},2631:function(t,a,e){"use strict";e.r(a);var n=e(2916),i=e.n(n),u=e(3282),o=e.n(u),l=o()(i());l.push([t.id,".page[data-v-360de132]{padding:20px;background:#fff}.u-cell-group[data-v-360de132]{background:#fff}.btn[data-v-360de132]{padding:0 10px}.btn .u-button[data-v-360de132]{margin-top:20px}.page[data-v-360de132] .u-upload__wrap{justify-content:flex-end}.text-gray[data-v-360de132]{color:gray}",""]),a["default"]=l}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-record-detail.34f2eb53.js b/public/client/static/js/pages-record-detail.34f2eb53.js deleted file mode 100644 index c75d05d..0000000 --- a/public/client/static/js/pages-record-detail.34f2eb53.js +++ /dev/null @@ -1,3 +0,0 @@ -(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{2051:function(t,e,n){var r=n(2861);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(5472).Z;i("5f39aa56",r,!0,{sourceMap:!1,shadowMode:!1})},1435:function(t,e,n){var r=n(3094);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var i=n(5472).Z;i("53d19eea",r,!0,{sourceMap:!1,shadowMode:!1})},3093:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r,i={"u-Text":n(1153).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-album"},t._l(t.showUrls,(function(e,r){return n("v-uni-view",{key:r,ref:"u-album__row",refInFor:!0,staticClass:"u-album__row",attrs:{forComputedUse:t.albumWidth}},t._l(e,(function(e,i){return n("v-uni-view",{key:i,staticClass:"u-album__row__wrapper",style:[t.imageStyle(r+1,i+1)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.previewFullImage&&t.onPreviewTap(t.getSrc(e))}}},[n("v-uni-image",{style:[{width:t.imageWidth,height:t.imageHeight}],attrs:{src:t.getSrc(e),mode:1===t.urls.length?t.imageHeight>0?t.singleMode:"widthFix":t.multipleMode}}),t.showMore&&t.urls.length>t.rowCount*t.showUrls.length&&r===t.showUrls.length-1&&i===t.showUrls[t.showUrls.length-1].length-1?n("v-uni-view",{staticClass:"u-album__row__wrapper__text"},[n("u--text",{attrs:{text:"+"+(t.urls.length-t.maxCount),color:"#fff",size:.3*t.multipleSize,align:"center",customStyle:"justify-content: center"}})],1):t._e()],1)})),1)})),1)},a=[],u={props:{urls:{type:Array,default:uni.$u.props.album.urls},keyName:{type:String,default:uni.$u.props.album.keyName},singleSize:{type:[String,Number],default:uni.$u.props.album.singleSize},multipleSize:{type:[String,Number],default:uni.$u.props.album.multipleSize},space:{type:[String,Number],default:uni.$u.props.album.space},singleMode:{type:String,default:uni.$u.props.album.singleMode},multipleMode:{type:String,default:uni.$u.props.album.multipleMode},maxCount:{type:[String,Number],default:uni.$u.props.album.maxCount},previewFullImage:{type:Boolean,default:uni.$u.props.album.previewFullImage},rowCount:{type:[String,Number],default:uni.$u.props.album.rowCount},showMore:{type:Boolean,default:uni.$u.props.album.showMore}}},s={name:"u-album",mixins:[uni.$u.mpMixin,uni.$u.mixin,u],data(){return{singleWidth:0,singleHeight:0,singlePercent:.6}},watch:{urls:{immediate:!0,handler(t){1===t.length&&this.getImageRect()}}},computed:{imageStyle(){return(t,e)=>{const{space:n,rowCount:r,multipleSize:i,urls:o}=this,{addUnit:a,addStyle:u}=uni.$u,s=this.showUrls.length,l=(this.urls.length,{marginRight:a(n),marginBottom:a(n)});return t===s&&(l.marginBottom=0),(e===r||t===s&&e===this.showUrls[t-1].length)&&(l.marginRight=0),l}},showUrls(){const t=[];return this.urls.map(((e,n)=>{if(n+1<=this.maxCount){const r=Math.floor(n/this.rowCount);t[r]||(t[r]=[]),t[r].push(e)}})),t},imageWidth(){return uni.$u.addUnit(1===this.urls.length?this.singleWidth:this.multipleSize)},imageHeight(){return uni.$u.addUnit(1===this.urls.length?this.singleHeight:this.multipleSize)},albumWidth(){let t=0;return t=1===this.urls.length?this.singleWidth:this.showUrls[0].length*this.multipleSize+this.space*(this.showUrls[0].length-1),this.$emit("albumWidth",t),t}},methods:{onPreviewTap(t){const e=this.urls.map((t=>this.getSrc(t)));uni.previewImage({current:t,urls:e})},getSrc(t){return uni.$u.test.object(t)?this.keyName&&t[this.keyName]||t.src:t},getImageRect(){const t=this.getSrc(this.urls[0]);uni.getImageInfo({src:t,success:t=>{const e=t.width>=t.height;this.singleWidth=e?this.singleSize:t.width/t.height*this.singleSize,this.singleHeight=e?t.height/t.width*this.singleWidth:this.singleSize},fail:()=>{this.getComponentWidth()}})},async getComponentWidth(){await uni.$u.sleep(30),this.$uGetRect(".u-album__row").then((t=>{this.singleWidth=t.width*this.singlePercent}))}}},l=s,c=(n(1435),n(1503)),h=(0,c.Z)(l,o,a,!1,null,"863ddef2",null,!1,i,r),p=h.exports},4480:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var r,i={uCellGroup:n(156).Z,uCell:n(7981).Z,uAlbum:n(3093).Z},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("u-cell-group",{attrs:{border:!1}},[n("u-cell",{attrs:{title:"姓名",value:this.info.patient?this.info.patient.name:""}}),n("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),n("u-cell",{attrs:{title:"病种",value:t.info.illness_type?t.info.illness_type.name:""}}),n("u-cell",{attrs:{title:t.type.text+"时间",value:t._f("date")(t.info.treat_at)}}),n("u-cell",{attrs:{title:"划线价",value:t.info.origin_price}}),n("u-cell",{attrs:{title:"实收价",value:t.info.sell_price}}),n("u-cell",{attrs:{title:"收费情况",value:t.info.order_status}}),n("u-cell",{attrs:{title:t.type.text+"医师",value:t.info.doctor?t.info.doctor.name:""}}),n("u-cell",{attrs:{title:t.type.text+"情况"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("v-uni-text",[t._v(t._s(t.info.content))])],1)],1),n("u-cell",{attrs:{title:"图片资料"}},[n("v-uni-view",{attrs:{slot:"value"},slot:"value"},[n("u-album",{attrs:{urls:t.info.images}})],1)],1),n("u-cell",{attrs:{title:"下次就诊时间",value:t._f("date")(t.info.next_treat_at)}})],1)],1)},a=[],u=n(3762),s=n(3062),l={data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},type:{text:""}}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,s.Z)((0,u.Z)().mark((function e(){var n;return(0,u.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.id){e.next=2;break}return e.abrupt("return");case 2:return uni.showLoading(),e.next=5,t.$ajax.get("/api/client/record/".concat(t.id));case 5:n=e.sent,uni.stopPullDownRefresh(),0==n.status&&(t.info=n.data,t.type.text=t.info.type.name);case 8:case"end":return e.stop()}}),e)})))()}}},c=l,h=(n(2051),n(1503)),p=(0,h.Z)(c,o,a,!1,null,"7192923a",null,!1,i,r),f=p.exports},6916:function(t,e,n){var r=n(555);r("asyncIterator")},2861:function(t,e,n){"use strict";n.r(e);var r=n(2916),i=n.n(r),o=n(3282),a=n.n(o),u=a()(i());u.push([t.id,".page[data-v-7192923a]{padding:20px;background:#fff}.btn[data-v-7192923a]{padding:0 10px}.btn .u-button[data-v-7192923a]{margin-top:20px}.text-gray[data-v-7192923a]{color:gray}",""]),e["default"]=u},3094:function(t,e,n){"use strict";n.r(e);var r=n(2916),i=n.n(r),o=n(3282),a=n.n(o),u=a()(i());u.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-863ddef2], uni-scroll-view[data-v-863ddef2], uni-swiper-item[data-v-863ddef2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-album[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:column}.u-album__row[data-v-863ddef2]{\ndisplay:flex;\nflex-direction:row;flex-wrap:wrap}.u-album__row__wrapper[data-v-863ddef2]{position:relative}.u-album__row__wrapper__text[data-v-863ddef2]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.3);\ndisplay:flex;\nflex-direction:row;justify-content:center;align-items:center}',""]),e["default"]=u},6725:function(t,e){"use strict";e.Z={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}}},8987:function(t,e){"use strict";e.Z={props:{openType:String},methods:{onGetUserInfo(t){this.$emit("getuserinfo",t.detail)},onContact(t){this.$emit("contact",t.detail)},onGetPhoneNumber(t){this.$emit("getphonenumber",t.detail)},onError(t){this.$emit("error",t.detail)},onLaunchApp(t){this.$emit("launchapp",t.detail)},onOpenSetting(t){this.$emit("opensetting",t.detail)}}}},3062:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});n(5827);function r(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(l){return void n(l)}u.done?e(s):Promise.resolve(s).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function u(t){r(a,i,o,u,s,"next",t)}function s(t){r(a,i,o,u,s,"throw",t)}u(void 0)}))}}},3762:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});n(5231),n(1260),n(3575),n(5827),n(485),n(8023),n(930),n(6916),n(1229),n(7611),n(8283),n(2883),n(6007),n(7143),n(1136),n(9312);var r=n(9684);function i(){ -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),u=new Z(r||[]);return a(o,"_invoke",{value:C(t,n,u)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function w(){}function b(){}function _(){}var x={};h(x,s,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(j([])));L&&L!==n&&o.call(L,s)&&(x=L);var $=_.prototype=w.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,a,u,s){var l=f(t[i],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==(0,r.Z)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):e.resolve(h).then((function(t){c.value=t,u(c)}),(function(t){return n("throw",t,u,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(e,n,r){var i=d;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=M(u,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var l=f(e,n,r);if("normal"===l.type){if(i=r.done?v:g,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-record-detail.466c2912.js b/public/client/static/js/pages-record-detail.466c2912.js new file mode 100644 index 0000000..b1f83ba --- /dev/null +++ b/public/client/static/js/pages-record-detail.466c2912.js @@ -0,0 +1,3 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[487],{9336:function(t,e,r){var n=r(3584);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var o=r(5472).Z;o("3cdaa164",n,!0,{sourceMap:!1,shadowMode:!1})},7531:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});var n,o={uCellGroup:r(156).Z,uCell:r(7981).Z,uAlbum:r(3093).Z},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"page"},[r("u-cell-group",{attrs:{border:!1}},[r("u-cell",{attrs:{title:"姓名",value:this.info.patient?this.info.patient.name:""}}),r("u-cell",{attrs:{title:"类别",value:t.info.type?t.info.type.name:""}}),r("u-cell",{attrs:{title:"病种",value:t.info.illness_type?t.info.illness_type.name:""}}),r("u-cell",{attrs:{title:t.type.text+"时间",value:t._f("date")(t.info.treat_at)}}),r("u-cell",{attrs:{title:t.type.text+"医师",value:t.info.doctor?t.info.doctor.name:""}}),r("u-cell",{attrs:{title:t.type.text+"情况"}},[r("v-uni-view",{attrs:{slot:"value"},slot:"value"},[r("v-uni-text",[t._v(t._s(t.info.content))])],1)],1),r("u-cell",{attrs:{title:"图片资料"}},[r("v-uni-view",{attrs:{slot:"value"},slot:"value"},[r("u-album",{attrs:{urls:t.info.images}})],1)],1),r("u-cell",{attrs:{title:"下次就诊时间",value:t._f("date")(t.info.next_treat_at)}})],1)],1)},a=[],u=r(3762),c=r(3062),s={data:function(){return{id:"",info:{patient_id:"",type_id:"",origin_price:"",sell_price:"",notify_remarks:"",is_notified:0},type:{text:""}}},onLoad:function(t){this.id=t.id,this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,c.Z)((0,u.Z)().mark((function e(){var r;return(0,u.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.id){e.next=2;break}return e.abrupt("return");case 2:return uni.showLoading(),e.next=5,t.$ajax.get("/api/client/record/".concat(t.id));case 5:r=e.sent,uni.stopPullDownRefresh(),0==r.status&&(t.info=r.data,t.type.text=t.info.type.name);case 8:case"end":return e.stop()}}),e)})))()}}},l=s,f=(r(9336),r(1503)),h=(0,f.Z)(l,i,a,!1,null,"64a611dc",null,!1,o,n),p=h.exports},6916:function(t,e,r){var n=r(555);n("asyncIterator")},3584:function(t,e,r){"use strict";r.r(e);var n=r(2916),o=r.n(n),i=r(3282),a=r.n(i),u=a()(o());u.push([t.id,".page[data-v-64a611dc]{padding:20px;background:#fff}.btn[data-v-64a611dc]{padding:0 10px}.btn .u-button[data-v-64a611dc]{margin-top:20px}.text-gray[data-v-64a611dc]{color:gray}",""]),e["default"]=u},6725:function(t,e){"use strict";e.Z={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}}},8987:function(t,e){"use strict";e.Z={props:{openType:String},methods:{onGetUserInfo(t){this.$emit("getuserinfo",t.detail)},onContact(t){this.$emit("contact",t.detail)},onGetPhoneNumber(t){this.$emit("getphonenumber",t.detail)},onError(t){this.$emit("error",t.detail)},onLaunchApp(t){this.$emit("launchapp",t.detail)},onOpenSetting(t){this.$emit("opensetting",t.detail)}}}},3062:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});r(5827);function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(s){return void r(s)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}},3762:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});r(5231),r(1260),r(3575),r(5827),r(485),r(8023),r(930),r(6916),r(1229),r(7611),r(8283),r(2883),r(6007),r(7143),r(1136),r(9312);var n=r(9684);function o(){ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ +o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new T(n||[]);return a(i,"_invoke",{value:j(t,r,u)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",g="completed",m={};function w(){}function x(){}function b(){}var _={};f(_,c,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(N([])));E&&E!==r&&i.call(E,c)&&(_=E);var k=b.prototype=w.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,u,c){var s=p(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=d;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?g:v,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Z(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Z,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),G(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;G(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}}}]); \ No newline at end of file diff --git a/public/client/static/js/pages-record-index.a0254065.js b/public/client/static/js/pages-record-index.a0254065.js new file mode 100644 index 0000000..7ac4aca --- /dev/null +++ b/public/client/static/js/pages-record-index.a0254065.js @@ -0,0 +1 @@ +(self["webpackChunkuniapp"]=self["webpackChunkuniapp"]||[]).push([[492],{2782:function(t,e,i){var n=i(9540);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("2131e440",n,!0,{sourceMap:!1,shadowMode:!1})},7995:function(t,e,i){var n=i(6620);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("67543b74",n,!0,{sourceMap:!1,shadowMode:!1})},928:function(t,e,i){var n=i(1169);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(5472).Z;s("3dede4f9",n,!0,{sourceMap:!1,shadowMode:!1})},8556:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return d}});var s,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"u-list-item-"+t.anchor,staticClass:"u-list-item",class:["u-list-item-"+t.anchor],attrs:{anchor:"u-list-item-"+t.anchor}},[t._t("default")],2)},o=[],a={props:{anchor:{type:[String,Number],default:uni.$u.props.listItem.anchor}}},r={name:"u-list-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,a],data(){return{rect:{},index:0,show:!0,sys:uni.$u.sys()}},computed:{},inject:["uList"],watch:{"uList.innerScrollTop"(t){const e=this.uList.preLoadScreen,i=this.sys.windowHeight;t<=i*e?this.parent.updateOffsetFromChild(0):this.rect.top<=t-i*e&&this.parent.updateOffsetFromChild(this.rect.top)}},created(){this.parent={}},mounted(){this.init()},methods:{init(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData(){this.getParentData("u-list")},resize(){this.queryRect(`u-list-item-${this.anchor}`).then((t=>{const e=this.parent.children[this.index-1];this.rect=t;const i=this.uList.preLoadScreen,n=this.sys.windowHeight;e&&(this.rect.top=e.rect.top+e.rect.height),t.top>=this.uList.innerScrollTop+(1+i)*n&&(this.show=!1)}))},queryRect(t){return new Promise((e=>{this.$uGetRect(`.${t}`).then((t=>{e(t)}))}))}}},u=r,c=(i(7995),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"1727a615",null,!1,n,s),d=p.exports},4307:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return d}});var s,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},o=[],a={props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}},r={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,a],watch:{scrollIntoView(t){this.scrollIntoViewById(t)}},data(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle(){const t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide(){return{uList:this}},created(){this.refs=[],this.children=[],this.anchors=[]},mounted(){},methods:{updateOffsetFromChild(t){this.offset=t},onScroll(t){let e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById(t){},scrolltolower(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltolower")}))},scrolltoupper(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltoupper"),this.offset=0}))}}},u=r,c=(i(928),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"390d4fd5",null,!1,n,s),d=p.exports},4102:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var n,s={uList:i(4307).Z,uListItem:i(8556).Z,uCell:i(7981).Z},l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"list-item-title"},[t._v("医师: "+t._s(e.doctor?e.doctor.name:""))])],1),i("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("时间: "+t._s(e.treat_at))])],1)],1)})),1)],1)],1)},o=[],a=(i(6228),{data:function(){return{patient_id:"",patient:{},page:1,perPage:20,list:[],option:{id:"",show:!1,list:[{name:"详细",color:"#4cd964",action:"detail"},{name:"修改",color:"#007aff",action:"edit"},{name:"删除",color:"#dd524d",action:"delete"}],title:""},swipeOption:[{text:"删除",style:{backgroundColor:"#dd524d"}}],listHeight:0}},onLoad:function(t){var e=this;this.patient_id=t.patient,uni.getSystemInfo({success:function(t){e.listHeight=t.safeArea.height-20}}),this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1),uni.showLoading();var i={page:this.page,perPage:this.perPage,patient_id:this.patient_id};this.$ajax.get("/api/client/record",{params:i}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data.items),e.total=t.data.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.length{const e=this.parent.children[this.index-1];this.rect=t;const i=this.uList.preLoadScreen,s=this.sys.windowHeight;e&&(this.rect.top=e.rect.top+e.rect.height),t.top>=this.uList.innerScrollTop+(1+i)*s&&(this.show=!1)}))},queryRect(t){return new Promise((e=>{this.$uGetRect(`.${t}`).then((t=>{e(t)}))}))}}},u=a,c=(i(7995),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"1727a615",null,!1,s,n),d=p.exports},4307:function(t,e,i){"use strict";var s;i.d(e,{Z:function(){return d}});var n,l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},o=[],r={props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}},a={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],watch:{scrollIntoView(t){this.scrollIntoViewById(t)}},data(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle(){const t={},e=uni.$u.addUnit;return 0!=this.width&&(t.width=e(this.width)),0!=this.height&&(t.height=e(this.height)),t.height||(t.height=e(this.sys.windowHeight,"px")),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},provide(){return{uList:this}},created(){this.refs=[],this.children=[],this.anchors=[]},mounted(){},methods:{updateOffsetFromChild(t){this.offset=t},onScroll(t){let e=0;e=t.detail.scrollTop,this.innerScrollTop=e,this.$emit("scroll",Math.abs(e))},scrollIntoViewById(t){},scrolltolower(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltolower")}))},scrolltoupper(t){uni.$u.sleep(30).then((()=>{this.$emit("scrolltoupper"),this.offset=0}))}}},u=a,c=(i(928),i(1503)),p=(0,c.Z)(u,l,o,!1,null,"390d4fd5",null,!1,s,n),d=p.exports},6851:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s,n={uList:i(4307).Z,uListItem:i(8556).Z,uCell:i(7981).Z,uIcon:i(5862).Z},l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"list"},[i("u-list",{attrs:{height:t.listHeight},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.reachBottom.apply(void 0,arguments)}}},t._l(t.list,(function(e){return i("u-list-item",{key:e.id},[i("u-cell",{attrs:{size:"large",url:"/pages/record/detail?id="+e.id}},[i("v-uni-view",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[i("v-uni-view",{staticClass:"list-item-title"},[t._v("医师: "+t._s(e.doctor?e.doctor.name:""))]),i("v-uni-view",{staticClass:"list-item-price"},[i("v-uni-text",{staticStyle:{color:"#dd524d","font-size":"19px"}},[i("u-icon",{attrs:{name:"rmb",color:"#dd524d",size:"19px"}}),t._v(t._s(e.sell_price))],1),i("v-uni-text",{staticStyle:{color:"#c0c0c0","text-decoration":"line-through"}},[t._v(t._s(e.origin_price))])],1)],1),i("v-uni-view",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("时间: "+t._s(e.treat_at))])],1)],1)})),1)],1)],1)},o=[],r=(i(6228),{data:function(){return{type:"",page:1,perPage:20,typeList:[],list:[],option:{id:"",show:!1,list:[{name:"详细",color:"#4cd964",action:"detail"},{name:"修改",color:"#007aff",action:"edit"},{name:"删除",color:"#dd524d",action:"delete"}],title:""},swipeOption:[{text:"删除",style:{backgroundColor:"#dd524d"}}],listHeight:0}},onLoad:function(t){var e=this;this.type=t.type,uni.getSystemInfo({success:function(t){e.listHeight=t.safeArea.height-20}}),this.loadData(!0)},onPullDownRefresh:function(){this.loadData(!0)},methods:{loadData:function(t){var e=this;t&&(this.list=[],this.page=1),uni.showLoading();var i={page:this.page,perPage:this.perPage,type_id:this.type};this.$ajax.get("/api/client/record",{params:i}).then((function(t){uni.stopPullDownRefresh(),0==t.status&&(e.list=e.list.concat(t.data.items),e.total=t.data.total)})).catch((function(t){uni.stopPullDownRefresh()}))},reachBottom:function(){this.list.lengtht.length?-1:""===e?n:t.indexOf(e,n)};o({target:"String",proto:!0},{replaceAll:function(t,e){var n,o,u,h,v,m,y,g,_,w=r(this),x=0,b=0,$="";if(null!=t){if(n=a(t),n&&(o=String(r("flags"in d?t.flags:i.call(t))),!~o.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(u=t[s],void 0!==u)return u.call(t,w,e);if(c&&n)return String(w).replace(t,e)}h=String(w),v=String(t),m="function"===typeof e,m||(e=String(e)),y=v.length,g=p(1,y),x=f(h,v,0);while(-1!==x)_=m?String(e(v,x,h)):l(v,h,x,[],void 0,e),$+=h.slice(b,x)+_,b=x+y,x=f(h,v,x+g);return bt.length?-1:""===e?n:t.indexOf(e,n)};o({target:"String",proto:!0},{replaceAll:function(t,e){var n,o,u,h,v,m,y,g,_,w=r(this),x=0,b=0,k="";if(null!=t){if(n=a(t),n&&(o=String(r("flags"in d?t.flags:i.call(t))),!~o.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(u=t[s],void 0!==u)return u.call(t,w,e);if(c&&n)return String(w).replace(t,e)}h=String(w),v=String(t),m="function"===typeof e,m||(e=String(e)),y=v.length,g=p(1,y),x=f(h,v,0);while(-1!==x)_=m?String(e(v,x,h)):l(v,h,x,[],void 0,e),k+=h.slice(b,x)+_,b=x+y,x=f(h,v,x+g);return b=0;--r){var i=this.tryEntries[r],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),Z(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;Z(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:j(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}}}]); \ No newline at end of file +r=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function p(t,e,n,o){var r=e&&e.prototype instanceof _?e:_,a=Object.create(r.prototype),l=new T(o||[]);return i(a,"_invoke",{value:B(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function _(){}function w(){}function x(){}var b={};d(b,u,(function(){return this}));var k=Object.getPrototypeOf,$=k&&k(k(j([])));$&&$!==n&&a.call($,u)&&(b=$);var C=x.prototype=_.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(r,i,l,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==(0,o.Z)(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,l,u)}),(function(t){n("throw",t,l,u)})):e.resolve(d).then((function(t){s.value=t,l(s)}),(function(t){return n("throw",t,l,u)}))}u(c.arg)}var r;i(this,"_invoke",{value:function(t,o){function a(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(a,a):a()}})}function B(e,n,o){var r=h;return function(a,i){if(r===m)throw new Error("Generator is already running");if(r===y){if("throw"===a)throw i;return{value:t,done:!0}}for(o.method=a,o.arg=i;;){var l=o.delegate;if(l){var u=O(l,o);if(u){if(u===g)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===h)throw r=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var c=f(e,n,o);if("normal"===c.type){if(r=o.done?y:v,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=y,o.method="throw",o.arg=c.arg)}}}function O(e,n){var o=n.method,r=e.iterator[o];if(r===t)return n.delegate=null,"throw"===o&&e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var a=f(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r=0;--r){var i=this.tryEntries[r],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),Z(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;Z(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:j(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}}}]); \ No newline at end of file