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:///D:/chenq/chen/hengmei/hengmei/pagesA/makeAnPppointment/makeAnPppointment.vue?f363","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/makeAnPppointment/makeAnPppointment.vue?13c8","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/makeAnPppointment/makeAnPppointment.vue?71b9","webpack:///D:/chenq/chen/hengmei/hengmei/pagesA/makeAnPppointment/makeAnPppointment.vue?6191","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;AACmL;AACnL,gBAAgB,uLAAU;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;AAA8rB,CAAgB,6qBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6CltB;AACA,MADA,kBACA;AACA;AACA,0DADA;AAEA,oDAFA,EAEA;AACA,0BAHA,EAGA;AACA,yBAJA,EAIA;AACA,wBALA,EAKA;AACA;AACA;AACA;AACA;AAHA,OANA;AAWA,oBAXA,EAWA;AACA,aAZA;AAaA,cAbA;AAcA,eAdA,EAcA;AACA,kBAfA;AAgBA,sBAhBA;AAiBA,oBAjBA;AAkBA,cAlBA,CAkBA;AAlBA;AAoBA,GAtBA;AAuBA,eAvBA,2BAuBA;AACA;AACA;AACA,wBAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GA/BA;AAgCA,QAhCA,oBAgCA;AACA;AACA;AACA;AACA,wBAFA,CAEA;AACA;AACA,GAtCA;AAuCA;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,EAvCA,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 \"!../../../../../../HbuilderX/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 \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/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 \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/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 \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./makeAnPppointment.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :titleVal=\"'自主预约'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<!-- 自定义二级分类 -->\r\n\t\t<!-- 列表 -->\r\n\t\t<view v-if=\"isLoading\" :style=\"{paddingTop: statusHNH+'px'}\" class=\"pad-zy30\" style=\"padding-bottom: 160rpx;\">\r\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;\">\r\n\t\t\t\t<view class=\"disjbac\">\r\n\t\t\t\t\t<view class=\"disac\">\r\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>\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<view class=\"fon36 col3 bold clips1\">{{item.name}}</view>\r\n\t\t\t\t\t\t\t<view class=\"fon24 col3 mar-s10\">{{item.content}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\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>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"mar-s36 fon24 col3\">预约时间:{{item.yuTime}}</view>\r\n\t\t\t\t<view class=\"disjbac fon24 col3 mar-s30\">\r\n\t\t\t\t\t<!-- <view>联系人:{{item.lname}}</view> -->\r\n\t\t\t\t\t<view>联系电话:{{item.lphone}}</view>\r\n\t\t\t\t</view>\r\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;\">\r\n\t\t\t\t\t{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}\r\n\t\t\t\t\t<!-- <button :disabled=\"(item.status==2 || item.status==3 || item.status==4)?true:false\" class=\"posia\" \r\n\t\t\t\t\tstyle=\"top: 0;left: 0;right: 0;bottom: 0;background-color: #000000;opacity: 0;\">{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}</button> -->\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<nothing-page v-if=\"dataList.length==0\" :content=\"'暂无更多预约内容'\"></nothing-page>\r\n\t\t</view>\r\n\t\t<!-- 底部按钮 -->\r\n\t\t<view class=\"posixzy bacf pad-sx25\">\r\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>\r\n\t\t</view>\r\n\t\t<!-- 弹框 -->\r\n\t\t<pu-po :isShowT=\"isShowT\" :contentVal=\"'是否取消当前预约?'\" :clearVal=\"'否'\" :comfrimVal=\"'是'\" @comfirmev=\"comfirmev\" @cancleev=\"isShowT=false\"></pu-po>\r\n\t\t<!-- 底部客服 -->\r\n\t\t<public-customer></public-customer>\r\n\t\t<!-- 用户信息授权,手机号授权 -->\r\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('electric_nav_height'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tfailColor:'#CCCCCC',//失败背景颜色\r\n\t\t\t\tingColor:'#FFBE4D',//审核中背景颜色\r\n\t\t\t\tquColor:'#FF4D4D',//取消预约背景色\r\n\t\t\t\tdataList:[\r\n\t\t\t\t\t// {status:0,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\r\n\t\t\t\t\t// {status:1,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\r\n\t\t\t\t\t// {status:2,imgSrc:'',name:'陈高医生',content:'植发',yuTime:'2021年07月08日 14:30至15:30',lname:'甄先生',lphone:'18888888888'},\r\n\t\t\t\t],\r\n\t\t\t\tbtnCon:'取消预约',//取消预约/重新预约\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:20,\r\n\t\t\t\ttotal:'',//总数\r\n\t\t\t\tisZanw:true,\r\n\t\t\t\tisLoading:false,\r\n\t\t\t\tisShowT:false,\r\n\t\t\t\tzzId:''//自主预约ID\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tif(this.total!=this.dataList.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.checkPoint()//调用自主预约列表事件\r\n\t\t\t} else {\r\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多预约记录','none',1000)\r\n\t\t\t\tthis.isZanw = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.isLogin()\r\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\r\n\t\t\t\tthis.$toolAll.tools.showToast('加载中...','loading')\r\n\t\t\t\tthis.checkPoint()//调用自主预约列表事件\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tcheckPoint(){//查询自主预约列表事件\r\n\t\t\t\tthis.$requst.post('user/appointment-list',{page:this.page,size:this.size}).then(res=>{\r\n\t\t\t\t\t// console.log('查询自主预约列表:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(this.page==1) this.dataList = []\r\n\t\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\t\tthis.total = res.data.total\r\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet timeStr = item.appointment_at.slice(0,10).split('-')\r\n\t\t\t\t\t\t\t\tlet timeZui = item.period.name.split('-')\r\n\t\t\t\t\t\t\t\tlet newStatus = ''\r\n\t\t\t\t\t\t\t\tif(item.status_text=='审核中') newStatus = 0\r\n\t\t\t\t\t\t\t\tif(item.status_text=='预约成功') newStatus = 1\r\n\t\t\t\t\t\t\t\tif(item.status_text=='预约失败') newStatus = 2\r\n\t\t\t\t\t\t\t\tif(item.status_text=='预约取消') newStatus = 3\r\n\t\t\t\t\t\t\t\tif(item.status_text=='预约完成') newStatus = 4\r\n\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tstatus:newStatus,\r\n\t\t\t\t\t\t\t\t\timgSrc:\tuni.getStorageSync('userLogo'),//缓存token,\r\n\t\t\t\t\t\t\t\t\tname:item.name,\r\n\t\t\t\t\t\t\t\t\tcontent:item.typeInfo.title,\r\n\t\t\t\t\t\t\t\t\tyuTime:`${timeStr[0]}年${timeStr[1]}月${timeStr[2]}日 ${timeZui[0]}至${timeZui[1]}`,\r\n\t\t\t\t\t\t\t\t\tlname:item.name,\r\n\t\t\t\t\t\t\t\t\tlphone:item.phone\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataList.push(obj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.isLoading = true\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tgoYu(){//去预约\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/ppointmentEv/ppointmentEv'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tquyuy(index){//取消预约事件\r\n\t\t\t\tif(this.dataList[index].status==0 || this.dataList[index].status==1){\r\n\t\t\t\t\tthis.zzId = this.dataList[index].id\r\n\t\t\t\t\tthis.isShowT = true\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pagesA/ppointmentEv/ppointmentEv'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tcomfirmev(){\r\n\t\t\t\tthis.isShowT = false\r\n\t\t\t\tthis.$requst.post('user/appointment-cancel',{appointment_id:this.zzId}).then(res=>{\r\n\t\t\t\t\t// console.log('取消预约成功返回:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('取消预约成功')\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tthis.checkPoint()\r\n\t\t\t\t\t\t},1500)\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n</style>\r\n"],"sourceRoot":""}