hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/makeAnPppointment/makeAnPppointment.js.map

1 line
13 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/makeAnPppointment/makeAnPppointment.vue?49c7","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/makeAnPppointment/makeAnPppointment.vue?d121","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/makeAnPppointment/makeAnPppointment.vue?0480","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pagesA/makeAnPppointment/makeAnPppointment.vue?7050","uni-app:///pagesA/makeAnPppointment/makeAnPppointment.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,iI,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,0BAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACqE;AACL;;;AAGhE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,uFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAA81B,CAAgB,+yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6Cl3B;AACA,MADA,kBACA;AACA;AACA,0BADA,EACA;AACA,yBAFA,EAEA;AACA,wBAHA,EAGA;AACA;AACA;AACA;AACA;AAHA,OAJA;AASA,oBATA,EASA;AACA,aAVA;AAWA,cAXA;AAYA,eAZA,EAYA;AACA,kBAbA;AAcA,sBAdA;AAeA,oBAfA;AAgBA,cAhBA,CAgBA;AAhBA;AAkBA,GApBA;AAqBA;AACA;AACA,eAFA,yBAEA;AACA;AACA,KAJA;AAKA,gBALA,0BAKA;AACA;AACA,KAPA,EArBA;;AA8BA,eA9BA,2BA8BA;AACA;AACA;AACA,wBAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GAtCA;AAuCA,QAvCA,oBAuCA;AACA;AACA;AACA,wBAFA,CAEA;AACA;AACA,GA5CA;AA6CA;AACA,cADA,wBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA,iCAFA;AAGA,sDAHA,EAGA;AACA,+BAJA;AAKA,4CALA;AAMA,kKANA;AAOA,gCAPA;AAQA,kCARA;;AAUA;AACA,aApBA;AAqBA;AACA;AACA;AACA,OA9BA,EA8BA,mBA9BA;AA+BA,KAjCA;AAkCA,QAlCA,kBAkCA;AACA;AACA,gDADA;;AAGA,KAtCA;AAuCA,SAvCA,iBAuCA,KAvCA,EAuCA;AACA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA,kDADA;;AAGA;;AAEA,KAjDA;AAkDA,aAlDA,uBAkDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAFA,EAEA,IAFA;AAGA;AACA,OARA,EAQA,mBARA;AASA,KA7DA,EA7CA,E","file":"pagesA/makeAnPppointment/makeAnPppointment.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/makeAnPppointment/makeAnPppointment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./makeAnPppointment.vue?vue&type=template&id=08a2b8d3&\"\nvar renderjs\nimport script from \"./makeAnPppointment.vue?vue&type=script&lang=js&\"\nexport * from \"./makeAnPppointment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/makeAnPppointment/makeAnPppointment.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./makeAnPppointment.vue?vue&type=template&id=08a2b8d3&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.isShowT = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./makeAnPppointment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./makeAnPppointment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<!-- 状态栏 -->\n\t\t<status-nav :titleVal=\"'自主预约'\" :statusTitle=\"true\"></status-nav>\n\t\t<!-- 自定义二级分类 -->\n\t\t<!-- 列表 -->\n\t\t<view v-if=\"isLoading\" :style=\"{paddingTop: statusHeight+'px'}\" class=\"pad-zy30\" style=\"padding-bottom: 160rpx;\">\n\t\t\t<view v-if=\"dataList.length!=0\" class=\"mar-s30 bacf pad20\" v-for=\"(item,index) in dataList\" :key=\"index\" style=\"border-radius: 28rpx;\">\n\t\t\t\t<view class=\"disjbac\">\n\t\t\t\t\t<view class=\"disac\">\n\t\t\t\t\t\t<image class=\"radius20 mar-y20 flexs\" src=\"/static/public/logo.png\" style=\"width: 98rpx;height: 98rpx;\" mode=\"\"></image>\n\t\t\t\t\t\t<view>\n\t\t\t\t\t\t\t<view class=\"fon36 col3 bold clips1\">{{item.name}}</view>\n\t\t\t\t\t\t\t<view class=\"fon24 col3 mar-s10\">{{item.content}}</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view :style=\"{background:[ingColor,publicColor,failColor,failColor,failColor][item.status]}\" class=\"fon24 colf radius10 flexs\" style=\"padding: 14rpx 24rpx;\">{{['审核中...','预约成功','预约失败','预约取消','预约完成'][item.status]}}</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"mar-s36 fon24 col3\">预约时间:{{item.yuTime}}</view>\n\t\t\t\t<view class=\"disjbac fon24 col3 mar-s30\">\n\t\t\t\t\t<!-- <view>联系人:{{item.lname}}</view> -->\n\t\t\t\t\t<view>联系电话:{{item.lphone}}</view>\n\t\t\t\t</view>\n\t\t\t\t<view @tap=\"quyuy(index)\" class=\"disjcac mar-s40 width100 colf fon30 radius10 posir\" :style=\"{background:[quColor,quColor,publicColor,publicColor,publicColor][item.status]}\" style=\"height: 90rpx;line-height: 90rpx;\">\n\t\t\t\t\t{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}\n\t\t\t\t\t<!-- <button :disabled=\"(item.status==2 || item.status==3 || item.status==4)?true:false\" class=\"posia\" \n\t\t\t\t\tstyle=\"top: 0;left: 0;right: 0;bottom: 0;background-color: #000000;opacity: 0;\">{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}</button> -->\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<nothing-page v-if=\"dataList.length==0\" :content=\"'暂无更多预约内容'\"></nothing-page>\n\t\t</view>\n\t\t<!-- 底部按钮 -->\n\t\t<view class=\"posixzy bacf pad-sx25\">\n\t\t\t<view @tap=\"goYu\" class=\"fon30 radius20 tc colf bold\" style=\"margin: 0 83rpx;height: 90rpx;line-height: 90rpx;\" :style=\"{background:publicColor}\">我要预约</view>\n\t\t</view>\n\t\t<!-- 弹框 -->\n\t\t<pu-po :isShowT=\"isShowT\" :contentVal=\"'是否取消当前预约?'\" :clearVal=\"'否'\" :comfrimVal=\"'是'\" @comfirmev=\"comfirmev\" @cancleev=\"isShowT=false\"></pu-po>\n\t\t<!-- 底部客服 -->\n\t\t<public-customer></public-customer>\n\t\t<!-- 用户信息授权,手机号授权 -->\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tfailColor:'#CCCCCC',//失败背景颜色\n\t\t\t\tingColor:'#FFBE4D',//审核中背景颜色\n\t\t\t\tquColor:'#FF4D4D',//取消预约背景色\n\t\t\t\tdataList:[\n\t\t\t\t\t// {status:0,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\n\t\t\t\t\t// {status:1,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\n\t\t\t\t\t// {status:2,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\n\t\t\t\t],\n\t\t\t\tbtnCon:'取消预约',//取消预约/重新预约\n\t\t\t\tpage:1,\n\t\t\t\tsize:20,\n\t\t\t\ttotal:'',//总数\n\t\t\t\tisZanw:true,\n\t\t\t\tisLoading:false,\n\t\t\t\tisShowT:false,\n\t\t\t\tzzId:''//自主预约ID\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 主题颜色\n\t\t\tpublicColor() {\n\t\t\t\treturn this.$store.state.publicColor\n\t\t\t},\n\t\t\tstatusHeight() {\n\t\t\t\treturn this.$store.state.statusHeight\n\t\t\t}\n\t\t},\n\t\tonReachBottom() {\n\t\t\tif(this.total!=this.dataList.length){\n\t\t\t\tthis.page++\n\t\t\t\tthis.checkPoint()//调用自主预约列表事件\n\t\t\t} else {\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多预约记录','none',1000)\n\t\t\t\tthis.isZanw = false\n\t\t\t}\n\t\t},\n\t\tonShow() {\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\n\t\t\t\tthis.$toolAll.tools.showToast('加载中...','loading')\n\t\t\t\tthis.checkPoint()//调用自主预约列表事件\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tcheckPoint(){//查询自主预约列表事件\n\t\t\t\tthis.$requst.post('user/appointment-list',{page:this.page,size:this.size}).then(res=>{\n\t\t\t\t\t// console.log('查询自主预约列表:',res);\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tif(this.page==1) this.dataList = []\n\t\t\t\t\t\tif(res.data.list.length!=0){\n\t\t\t\t\t\t\tthis.total = res.data.total\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\n\t\t\t\t\t\t\t\tlet timeStr = item.appointment_at.slice(0,10).split('-')\n\t\t\t\t\t\t\t\tlet timeZui = item.period.name.split('-')\n\t\t\t\t\t\t\t\tlet newStatus = ''\n\t\t\t\t\t\t\t\tif(item.status_text=='审核中') newStatus = 0\n\t\t\t\t\t\t\t\tif(item.status_text=='预约成功') newStatus = 1\n\t\t\t\t\t\t\t\tif(item.status_text=='预约失败') newStatus = 2\n\t\t\t\t\t\t\t\tif(item.status_text=='预约取消') newStatus = 3\n\t\t\t\t\t\t\t\tif(item.status_text=='预约完成') newStatus = 4\n\t\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\t\tstatus:newStatus,\n\t\t\t\t\t\t\t\t\timgSrc:\tuni.getStorageSync('userLogo'),//缓存token,\n\t\t\t\t\t\t\t\t\tname:item.name,\n\t\t\t\t\t\t\t\t\tcontent:item.typeInfo.title,\n\t\t\t\t\t\t\t\t\tyuTime:`${timeStr[0]}年${timeStr[1]}月${timeStr[2]}日 ${timeZui[0]}至${timeZui[1]}`,\n\t\t\t\t\t\t\t\t\tlname:item.name,\n\t\t\t\t\t\t\t\t\tlphone:item.phone\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.dataList.push(obj)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.isLoading = true\n\t\t\t\t\t}\n\t\t\t\t},error=>{})\n\t\t\t},\n\t\t\tgoYu(){//去预约\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:'/pagesA/ppointmentEv/ppointmentEv'\n\t\t\t\t})\n\t\t\t},\n\t\t\tquyuy(index){//取消预约事件\n\t\t\t\tif(this.dataList[index].status==0 || this.dataList[index].status==1){\n\t\t\t\t\tthis.zzId = this.dataList[index].id\n\t\t\t\t\tthis.isShowT = true\n\t\t\t\t} else {\n\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\turl:'/pagesA/ppointmentEv/ppointmentEv'\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t\n\t\t\t},\n\t\t\tcomfirmev(){\n\t\t\t\tthis.isShowT = false\n\t\t\t\tthis.$requst.post('user/appointment-cancel',{appointment_id:this.zzId}).then(res=>{\n\t\t\t\t\t// console.log('取消预约成功返回:',res);\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('取消预约成功')\n\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\tthis.checkPoint()\n\t\t\t\t\t\t},1500)\n\t\t\t\t\t}\n\t\t\t\t},error=>{})\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""}