commit 493fa4f1e1e3f2fabf177c6ee36f4aec50614632
Author: terry.wang <32783747@qq.com>
Date: Thu Nov 13 13:38:59 2025 +0800
init version kelfy-mini for new gitea
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..742755b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+# Windows
+[Dd]esktop.ini
+Thumbs.db
+$RECYCLE.BIN/
+
+# macOS
+.DS_Store
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+
+# Node.js
+node_modules/
+
+*.bak
+.cloudbase/
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..21ddee1
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..c2bae49
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/git_toolbox_blame.xml b/.idea/git_toolbox_blame.xml
new file mode 100644
index 0000000..7dc1249
--- /dev/null
+++ b/.idea/git_toolbox_blame.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/hrsmini.iml b/.idea/hrsmini.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/hrsmini.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..9b2f18a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CSS
+
+
+ Java
+
+
+ Probable bugsCSS
+
+
+ Probable bugsJava
+
+
+
+
+ User defined
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..b68b8e3
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..e828310
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1716180153444
+
+
+ 1716180153444
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..74c2bac
--- /dev/null
+++ b/README.md
@@ -0,0 +1,92 @@
+# hrsmini-dev
+
+
+
+## Getting started
+
+To make it easy for you to get started with GitLab, here's a list of recommended next steps.
+
+Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
+
+## Add your files
+
+- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
+- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
+
+```
+cd existing_repo
+git remote add origin http://192.168.10.240/kelfy/hrsmini-dev.git
+git branch -M main
+git push -uf origin main
+```
+
+## Integrate with your tools
+
+- [ ] [Set up project integrations](http://192.168.10.240/kelfy/hrsmini-dev/-/settings/integrations)
+
+## Collaborate with your team
+
+- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
+- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
+- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
+- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
+- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
+
+## Test and Deploy
+
+Use the built-in continuous integration in GitLab.
+
+- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
+- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
+- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
+- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
+- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
+
+***
+
+# Editing this README
+
+When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
+
+## Suggestions for a good README
+Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
+
+## Name
+Choose a self-explaining name for your project.
+
+## Description
+Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
+
+## Badges
+On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
+
+## Visuals
+Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
+
+## Installation
+Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
+
+## Usage
+Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
+
+## Support
+Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
+
+## Roadmap
+If you have ideas for releases in the future, it is a good idea to list them in the README.
+
+## Contributing
+State if you are open to contributions and what your requirements are for accepting them.
+
+For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
+
+You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
+
+## Authors and acknowledgment
+Show your appreciation to those who have contributed to the project.
+
+## License
+For open source projects, say how it is licensed.
+
+## Project status
+If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..83e72af
--- /dev/null
+++ b/app.js
@@ -0,0 +1,370 @@
+// app.js
+
+App({
+ onLaunch() {
+ // 展示本地存储能力
+ const logs = wx.getStorageSync('logs') || []
+ logs.unshift(Date.now())
+ wx.setStorageSync('logs', logs)
+ // 登录
+ // o-ZxO47Otvo5Rsq7kN-4PHvZIOt8
+ // this.globalData.openId = 'o-ZxO47Otvo5Rsq7kN-4PHvZIOt8'
+ wx.checkSession({
+ success() {
+ // this.globalData.openId = '421322'
+
+
+
+
+ },
+ fail() {
+ wx.login({
+ success: res => {
+ // 发送 res.code 到后台换取 openId, sessionKey, unionId
+ if (res.code) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getOpenid',
+ method: "GEt",
+ data: {
+ code: res.code
+ },
+ success: res => {
+ console.log(res.data, 'id')
+ this.globalData.openId = res.data
+ // this.globalData.openId = '421322'
+ console.log(this.globalData.openId, 'id')
+ }
+ })
+ } else {
+ console.log('获取用户登录态失败!' + res.errMsg)
+ }
+ }
+ })
+ }
+ }),
+ wx.login({
+ success: res => {
+ wx.showLoading({
+ title: '加载中...',
+ mask: true,
+ })
+ // 发送 res.code 到后台换取 openId, sessionKey, unionId
+ if (res.code) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getOpenid',
+ method: "GEt",
+ data: {
+ code: res.code
+ },
+ success: res => {
+ if (res.data) {
+ this.globalData.openId = res.data
+ wx.setStorageSync("openid", res.data)
+ // this.globalData.openId = "421322"
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method: "GET",
+ data: {
+ openid: res.data
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ // console.log(res,"患者1111")
+
+ if (res.data.length > 0) {
+ for (var i = 0; i < res.data.length; i++) {
+ if (res.data[i].TYPE == 0) {
+ this.globalData.name = res.data[i].TRUE_NAME
+ this.globalData.sfId = res.data[i].ID_CARD
+ this.globalData.painId = res.data[i].PATIENT_ID
+ this.globalData.relate = res.data[i].RELATE
+ this.globalData.cardNum = res.data[i].MEDICAL_CARD
+ this.globalData.cardType = res.data[i].CARD_TYPE
+ }
+ }
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/findHospital',
+ method: "GET",
+ data: {},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ // console.log(res,"医院导航")
+ this.globalData.hosName = res.data.HOSPITAL_NAME,
+ this.globalData.hosLocation = res.data.HOSPITAL_ADDRESS,
+ this.globalData.bus = res.data.HOSPITAL_BUS_ROUTE,
+ this.globalData.hosPhone = res.data.HOSPITAL_PHONE
+ }
+ })
+ wx.hideLoading({
+ success: (res) => {},
+ })
+ } else {
+ wx.showToast({
+ title: '未获取到用户信息',
+ })
+ }
+ }
+ })
+ } else {
+ console.log('获取用户登录态失败!' + res.errMsg)
+ }
+ }
+ })
+ },
+
+ globalData: {
+ scene: '',
+ authCode: '',
+ userInfo: null,
+ openId: '',
+ url2: 'https://fy.btlsoln.com:8443',
+ mapKey: 'VN4BZ-PDJKF-6VLJW-NSRG7-W2JOQ-5ZF56',
+ appId: 'wx83bc9715be856b14',
+ // 患者信息
+ name: "",
+ sfId: '',
+ cardNum: '',
+ hosp_out_trade_no: '',
+ cardType: '',
+ painId: '',
+ relate: '',
+ type: '',
+ hosName: '',
+ hosLocation: '',
+ hosPhone: '',
+ lat: 41.766064,
+ lon: 86.153306,
+ bus: '',
+ userLat: '',
+ userLon: '',
+ datas: {},
+ paramsData: {},
+ paramsData1: {},
+ show: false,
+ radioVal: 0,
+ areadly: true,
+ gStandardList: [],
+ gStandardContent: '',
+ gAddtionList: [],
+ gdefaultflag: '',
+ gname: '',
+ gsex: '',
+ gage: '',
+ gdeptId: '',
+ gclassName: '',
+ gschoolName: '',
+ gnationId: '',
+ gpatid: ''
+ },
+
+ watch: function (variate, method) {
+ var obj = this.globalData;
+ let val = obj[variate]; // 单独变量来存储原来的值
+ Object.defineProperty(obj, variate, {
+ configurable: false,
+ enumerable: true,
+ set: function (value) {
+ val = value; // 重新赋值
+ method(variate, value); // 执行回调方法
+ },
+ get: function () {
+ // 在其他界面调用getApp().globalData.variate的时候,这里就会执行。
+ return val; // 返回当前值
+ }
+ })
+ },
+
+ wxRequest(method, url, data, callback, errFun) {
+ var that = this
+ wx.request({
+ url: that.globalData.url2 + url,
+ method: method,
+ data: data,
+ header: {
+ 'content-type': method == 'GET' ? 'application/json' : 'application/x-www-form-urlencoded',
+ 'Accept': 'application/json'
+ },
+ dataType: 'json',
+ success: function (res) {
+ callback(res.data);
+ },
+ fail: function (err) {
+ errFun(err);
+ }
+ })
+ },
+
+ getAuthNo(openid, qrcode) {
+ console.log(openid, qrcode, 'openid,qrcode')
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getAuthNo',
+ method: 'POST',
+ data: {
+ openid: openid,
+ qrcode: qrcode
+ },
+ dataType: 'json',
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, '返回开始ewd')
+ console.log(res.data, '返回开始')
+ if (res.data.code == '0') {
+ console.log(res.data, '经纬度开始')
+ this.globalData.datas = res.data
+ console.log(res.data, '经纬度结束')
+ this.PreSettlement()
+ } else {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ },
+ fail: (res) => {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ })
+ },
+
+ //预结算
+ PreSettlement() {
+ this.globalData.show = true
+ let item = this.globalData.paramsData1
+ let num = this.globalData.datas
+ let zfjsbz = ''
+ let uldLatlnt = ''
+ let inpayAuthNo = ''
+ let ybrc = {}
+ let c = {}
+ if (this.globalData.radioVal == 0) {
+ zfjsbz = '0'
+ if (num.longitude == undefined && num.latitude == undefined) {
+ uldLatlnt = 0 + ',' + 0
+ } else {
+ uldLatlnt = num.longitude + ',' + num.latitude
+ }
+ c = {
+ "type": "wx",
+ "IdNo": num.user_card_no,
+ "insuCode": num.city_id
+ }
+ inpayAuthNo = num.pay_auth_no
+ ybrc = JSON.stringify(c)
+ } else {
+ zfjsbz = '1'
+ uldLatlnt = ''
+ inpayAuthNo = ''
+ ybrc = ''
+ }
+ let {
+ cfxh,
+ ghxh,
+ patid,
+ out_ksmc
+ } = item
+ let a = {
+ cfxh: cfxh,
+ ghxh: ghxh,
+ patid: patid,
+ zfjsbz: zfjsbz,
+ uldLatlnt: uldLatlnt,
+ inpayAuthNo: inpayAuthNo,
+ ybrc: ybrc,
+ out_ksmc: out_ksmc
+ }
+ // let hosp_out_trade_no = 'JJ20240104130042'
+ // wx.navigateTo({
+ // url:'/pages/newChatDetail/newChatDetail?hosp_out_trade_no='+hosp_out_trade_no
+ // })
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/PreSettlement',
+ method: "POST",
+ data: a,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ this.globalData.show = false
+ if (res.data.errCode == 0) {
+ this.globalData.hosp_out_trade_no = res.data.data.hosp_out_trade_no
+ let lists = JSON.stringify(res.data.data)
+ let paramsDatas = JSON.stringify(item)
+ wx.navigateTo({
+ url: '/pages/yib/yib?obj=' + paramsDatas + "&radioValue=" + this.globalData.radioVal + "&list=" + lists
+ })
+ this.globalData.areadly = true
+ } else {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+
+ }
+ }
+ })
+
+ },
+
+
+ onShow: function (options) {
+ this.globalData.scene = options.scene;
+ if (this.globalData.scene === 1038) {
+ if (options.path == 'pages/topay/topay') {
+ this.globalData.authCode = options.referrerInfo.extraData.authCode;
+ this.getAuthNo(this.globalData.openId, this.globalData.authCode)
+ } else if (options.path == 'pages/yib/yib' && this.globalData.radioVal == 0) {
+ wx.navigateTo({
+ url: '/pages/newChatDetail/newChatDetail?hosp_out_trade_no=' + this.globalData.hosp_out_trade_no,
+ })
+ }
+ }
+ },
+
+})
\ No newline at end of file
diff --git a/app.json b/app.json
new file mode 100644
index 0000000..144e9e3
--- /dev/null
+++ b/app.json
@@ -0,0 +1,135 @@
+{
+ "pages": [
+ "pages/index/index",
+ "pages/userMgr/userMgr",
+ "pages/departmentMsg/departmentMsg",
+ "pages/explain/explain",
+ "pages/selectDepartment/selectDepartment",
+ "pages/selsecPer/selsecPer",
+ "pages/localNavigation/localNavigation",
+ "pages/navigation/navigation",
+ "pages/introduction/introduction",
+ "pages/articleDetails/articleDetails",
+ "pages/healthEncyclopedia/healthEncyclopedia",
+ "pages/department/department",
+ "pages/my/my",
+ "pages/logs/logs",
+ "pages/register/register",
+ "pages/medicalGuide/medicalGuide",
+ "pages/confirmation/confirmation",
+ "pages/resInformation/resInformation",
+ "pages/ghMsg/ghMsg",
+ "pages/record/record",
+ "pages/jfMsg/jfMsg",
+ "pages/czMsg/czMsg",
+ "pages/userMsgDel/userMsgDel",
+ "pages/selectBg/selectBg",
+ "pages/bgMsg/bgMsg",
+ "pages/bgXq/bgXq",
+ "pages/money/money",
+ "pages/feedBack/feedBack",
+ "pages/notification/notification",
+ "pages/message/message",
+ "pages/addUserMessage/addUserMessage",
+ "pages/payment/payment",
+ "pages/topay/topay",
+ "pages/chat/chat",
+ "pages/chatDetail/chatDetail",
+ "pages/newChatDetail/newChatDetail",
+ "pages/yib/yib",
+ "pages/kfdj/kfdj",
+ "pages/kfdjMgr/kfdjMgr",
+ "pages/xytj/xytj",
+ "pages/studentMgr/studentMgr",
+ "pages/studentMsgDel/studentMsgDel",
+ "pages/category/category",
+ "pages/checkout/checkout",
+ "pages/categorykf/categorykf",
+ "pages/checkoutkf/checkoutkf",
+ "pages/wxDetail/wxDetail",
+ "pages/webwiew/webview",
+ "pages/view/view",
+ "pages/intelligentGuidance/intelligentGuidance",
+ "pages/QA/QA",
+ "pages/QAresult/Qaresult",
+ "pages/historicalvisitrecords/historicalvisitrecords",
+ "pages/callnumber/callnumbers",
+ "pages/inHospitalStatistics/inHospitalStatistics",
+ "pages/outpatientPage/outpatientPage",
+ "pages/hospitalizationPage/hospitalizationPage",
+ "pages/revenuePage/revenuePage",
+ "pages/departmentChoose/departmentChoose",
+ "pages/bookingDetails/bookingDetails",
+ "pages/onehospitalization/onehospitalization",
+ "pages/userRefund/userRefund",
+ "pages/deptcount/deptcount"
+ ],
+ "window": {
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTitleText": "",
+ "navigationBarTextStyle": "black"
+ },
+ "tabBar": {
+ "color": "#8a8a8a",
+ "selectedColor": "#50CEBB",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "text": "医疗服务",
+ "iconPath": "/images/index01.png",
+ "selectedIconPath": "/images/index02.png"
+ },
+ {
+ "pagePath": "pages/my/my",
+ "text": "个人中心",
+ "iconPath": "/images/my01.png",
+ "selectedIconPath": "/images/my02.png"
+ }
+ ]
+ },
+ "usingComponents": {
+ "van-divider": "@vant/weapp/divider/index",
+ "van-image": "@vant/weapp/image/index",
+ "van-dialog": "@vant/weapp/dialog/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-overlay": "@vant/weapp/overlay/index",
+ "van-loading": "@vant/weapp/loading/index",
+ "van-toast": "@vant/weapp/toast/index",
+ "van-goods-action": "@vant/weapp/goods-action/index",
+ "van-goods-action-button": "@vant/weapp/goods-action-button/index",
+ "van-search": "@vant/weapp/search/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-cell-group": "@vant/weapp/cell-group/index",
+ "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
+ "van-dropdown-item": "@vant/weapp/dropdown-item/index",
+ "van-picker": "@vant/weapp/picker/index",
+ "van-popup": "@vant/weapp/popup/index",
+ "van-field": "@vant/weapp/field/index",
+ "van-uploader": "@vant/weapp/uploader/index",
+ "van-button": "@vant/weapp/button/index",
+ "van-tag": "@vant/weapp/tag/index",
+ "van-checkbox": "@vant/weapp/checkbox/index",
+ "van-switch": "@vant/weapp/switch/index",
+ "van-col": "@vant/weapp/col/index",
+ "van-row": "@vant/weapp/row/index",
+ "van-steps": "@vant/weapp/steps/index"
+ },
+ "plugins": {
+ "htmltowxml": {
+ "version": "1.4.0",
+ "provider": "wxa51b9c855ae38f3c"
+ },
+ "wxparserPlugin": {
+ "version": "0.4.0",
+ "provider": "wx9d4d4ffa781ff3ac"
+ }
+ },
+ "permission": {
+ "scope.userLocation": {
+ "desc": "你的位置信息将用于小程序定位"
+ }
+ },
+ "sitemapLocation": "sitemap.json",
+ "lazyCodeLoading": "requiredComponents"
+}
\ No newline at end of file
diff --git a/app.wxss b/app.wxss
new file mode 100644
index 0000000..bd5b791
--- /dev/null
+++ b/app.wxss
@@ -0,0 +1,10 @@
+/**app.wxss**/
+.container {
+ padding:0 30rpx;
+}
+
+input{
+ width: 500rpx;
+ height: 60rpx;
+ border: 1px solid #ccc;
+}
\ No newline at end of file
diff --git a/component/image-cropper/image-cropper.js b/component/image-cropper/image-cropper.js
new file mode 100644
index 0000000..91f3b21
--- /dev/null
+++ b/component/image-cropper/image-cropper.js
@@ -0,0 +1,1117 @@
+Component({
+ properties: {
+ /**
+ * 图片路径
+ */
+ 'imgSrc': {
+ type: String
+ },
+ /**
+ * 裁剪框高度
+ */
+ 'height': {
+ type: Number,
+ value: 200
+ },
+ /**
+ * 裁剪框宽度
+ */
+ 'width': {
+ type: Number,
+ value: 200
+ },
+ /**
+ * 裁剪框最小尺寸
+ */
+ 'min_width': {
+ type: Number,
+ value: 100
+ },
+ 'min_height': {
+ type: Number,
+ value: 100
+ },
+ /**
+ * 裁剪框最大尺寸
+ */
+ 'max_width': {
+ type: Number,
+ value: 300
+ },
+ 'max_height': {
+ type: Number,
+ value: 300
+ },
+ /**
+ * 裁剪框禁止拖动
+ */
+ 'disable_width': {
+ type: Boolean,
+ value: false
+ },
+ 'disable_height': {
+ type: Boolean,
+ value: false
+ },
+ /**
+ * 锁定裁剪框比例
+ */
+ 'disable_ratio': {
+ type: Boolean,
+ value: false
+ },
+ /**
+ * 生成的图片尺寸相对剪裁框的比例
+ */
+ 'export_scale': {
+ type: Number,
+ value: 3
+ },
+ /**
+ * 生成的图片质量0-1
+ */
+ 'quality': {
+ type: Number,
+ value: 1
+ },
+ 'cut_top': {
+ type: Number,
+ value: null
+ },
+ 'cut_left': {
+ type: Number,
+ value: null
+ },
+ /**
+ * canvas上边距(不设置默认不显示)
+ */
+ 'canvas_top': {
+ type: Number,
+ value: null
+ },
+ /**
+ * canvas左边距(不设置默认不显示)
+ */
+ 'canvas_left': {
+ type: Number,
+ value: null
+ },
+ /**
+ * 图片宽度
+ */
+ 'img_width': {
+ type: null,
+ value: null
+ },
+ /**
+ * 图片高度
+ */
+ 'img_height': {
+ type: null,
+ value: null
+ },
+ /**
+ * 图片缩放比
+ */
+ 'scale': {
+ type: Number,
+ value: 1
+ },
+ /**
+ * 图片旋转角度
+ */
+ 'angle': {
+ type: Number,
+ value: 0
+ },
+ /**
+ * 最小缩放比
+ */
+ 'min_scale': {
+ type: Number,
+ value: 0.5
+ },
+ /**
+ * 最大缩放比
+ */
+ 'max_scale': {
+ type: Number,
+ value: 2
+ },
+ /**
+ * 是否禁用旋转
+ */
+ 'disable_rotate': {
+ type: Boolean,
+ value: false
+ },
+ /**
+ * 是否限制移动范围(剪裁框只能在图片内)
+ */
+ 'limit_move': {
+ type: Boolean,
+ value: false
+ }
+ },
+ data: {
+ el: 'image-cropper', //暂时无用
+ info: wx.getSystemInfoSync(),
+ MOVE_THROTTLE: null, //触摸移动节流settimeout
+ MOVE_THROTTLE_FLAG: true, //节流标识
+ INIT_IMGWIDTH: 0, //图片设置尺寸,此值不变(记录最初设定的尺寸)
+ INIT_IMGHEIGHT: 0, //图片设置尺寸,此值不变(记录最初设定的尺寸)
+ TIME_BG: null, //背景变暗延时函数
+ TIME_CUT_CENTER: null,
+ _touch_img_relative: [{
+ x: 0,
+ y: 0
+ }], //鼠标和图片中心的相对位置
+ _flag_cut_touch: false, //是否是拖动裁剪框
+ _hypotenuse_length: 0, //双指触摸时斜边长度
+ _flag_img_endtouch: false, //是否结束触摸
+ _flag_bright: true, //背景是否亮
+ _canvas_overflow: true, //canvas缩略图是否在屏幕外面
+ _canvas_width: 200,
+ _canvas_height: 200,
+ origin_x: 0.5, //图片旋转中心
+ origin_y: 0.5, //图片旋转中心
+ _cut_animation: false, //是否开启图片和裁剪框过渡
+ _img_top: wx.getSystemInfoSync().windowHeight / 2, //图片上边距
+ _img_left: wx.getSystemInfoSync().windowWidth / 2, //图片左边距
+ watch: {
+ //监听截取框宽高变化
+ width(value, that) {
+ if (value < that.data.min_width) {
+ that.setData({
+ width: that.data.min_width
+ });
+ }
+ that._computeCutSize();
+ },
+ height(value, that) {
+ if (value < that.data.min_height) {
+ that.setData({
+ height: that.data.min_height
+ });
+ }
+ that._computeCutSize();
+ },
+ angle(value, that) {
+ //停止居中裁剪框,继续修改图片位置
+ that._moveStop();
+ if (that.data.limit_move) {
+ if (that.data.angle % 90) {
+ that.setData({
+ angle: Math.round(that.data.angle / 90) * 90
+ });
+ return;
+ }
+ }
+ },
+ _cut_animation(value, that) {
+ //开启过渡300毫秒之后自动关闭
+ clearTimeout(that.data._cut_animation_time);
+ if (value) {
+ that.data._cut_animation_time = setTimeout(() => {
+ that.setData({
+ _cut_animation: false
+ });
+ }, 300)
+ }
+ },
+ limit_move(value, that) {
+ if (value) {
+ if (that.data.angle % 90) {
+ that.setData({
+ angle: Math.round(that.data.angle / 90) * 90
+ });
+ }
+ that._imgMarginDetectionScale();
+ !that.data._canvas_overflow && that._draw();
+ }
+ },
+ canvas_top(value, that) {
+ that._canvasDetectionPosition();
+ },
+ canvas_left(value, that) {
+ that._canvasDetectionPosition();
+ },
+ imgSrc(value, that) {
+ that.pushImg();
+ },
+ cut_top(value, that) {
+ that._cutDetectionPosition();
+ if (that.data.limit_move) {
+ !that.data._canvas_overflow && that._draw();
+ }
+ },
+ cut_left(value, that) {
+ that._cutDetectionPosition();
+ if (that.data.limit_move) {
+ !that.data._canvas_overflow && that._draw();
+ }
+ }
+ }
+ },
+ attached() {
+ this.data.info = wx.getSystemInfoSync();
+ //启用数据监听
+ this._watcher();
+ this.data.INIT_IMGWIDTH = this.data.img_width;
+ this.data.INIT_IMGHEIGHT = this.data.img_height;
+ this.setData({
+ _canvas_height: this.data.height,
+ _canvas_width: this.data.width,
+ });
+ this._initCanvas();
+ this.data.imgSrc && (this.data.imgSrc = this.data.imgSrc);
+ //根据开发者设置的图片目标尺寸计算实际尺寸
+ this._initImageSize();
+ //设置裁剪框大小>设置图片尺寸>绘制canvas
+ this._computeCutSize();
+ //检查裁剪框是否在范围内
+ this._cutDetectionPosition();
+ //检查canvas是否在范围内
+ this._canvasDetectionPosition();
+ //初始化完成
+ this.triggerEvent('load', {
+ cropper: this
+ });
+ },
+ methods: {
+ /**
+ * 上传图片
+ */
+ upload() {
+ let that = this;
+ wx.chooseImage({
+ count: 1,
+ sizeType: ['original', 'compressed'],
+ sourceType: ['album', 'camera'],
+ success(res) {
+ const tempFilePaths = res.tempFilePaths[0];
+ that.pushImg(tempFilePaths);
+ wx.showLoading({
+ title: '加载中...'
+ })
+ }
+ })
+ },
+ /**
+ * 返回图片信息
+ */
+ getImg(getCallback) {
+ this._draw(() => {
+ wx.canvasToTempFilePath({
+ width: this.data.width * this.data.export_scale,
+ height: Math.round(this.data.height * this.data.export_scale),
+ destWidth: this.data.width * this.data.export_scale,
+ destHeight: Math.round(this.data.height) * this.data.export_scale,
+ fileType: 'png',
+ quality: this.data.quality,
+ canvasId: this.data.el,
+ success: (res) => {
+ getCallback({
+ url: res.tempFilePath,
+ width: this.data.width * this.data.export_scale,
+ height: this.data.height * this.data.export_scale
+ });
+ }
+ }, this)
+ });
+ },
+ /**
+ * 设置图片动画
+ * {
+ * x:10,//图片在原有基础上向下移动10px
+ * y:10,//图片在原有基础上向右移动10px
+ * angle:10,//图片在原有基础上旋转10deg
+ * scale:0.5,//图片在原有基础上增加0.5倍
+ * }
+ */
+ setTransform(transform) {
+ if (!transform) return;
+ if (!this.data.disable_rotate) {
+ this.setData({
+ angle: transform.angle ? this.data.angle + transform.angle : this.data.angle
+ });
+ }
+ var scale = this.data.scale;
+ if (transform.scale) {
+ scale = this.data.scale + transform.scale;
+ scale = scale <= this.data.min_scale ? this.data.min_scale : scale;
+ scale = scale >= this.data.max_scale ? this.data.max_scale : scale;
+ }
+ this.data.scale = scale;
+ let cutX = this.data.cut_left;
+ let cutY = this.data.cut_top;
+ if (transform.cutX) {
+ this.setData({
+ cut_left: cutX + transform.cutX
+ });
+ this.data.watch.cut_left(null, this);
+ }
+ if (transform.cutY) {
+ this.setData({
+ cut_top: cutY + transform.cutY
+ });
+ this.data.watch.cut_top(null, this);
+ }
+ this.data._img_top = transform.y ? this.data._img_top + transform.y : this.data._img_top;
+ this.data._img_left = transform.x ? this.data._img_left + transform.x : this.data._img_left;
+ //图像边缘检测,防止截取到空白
+ this._imgMarginDetectionScale();
+ //停止居中裁剪框,继续修改图片位置
+ this._moveDuring();
+ this.setData({
+ scale: this.data.scale,
+ _img_top: this.data._img_top,
+ _img_left: this.data._img_left
+ });
+ !this.data._canvas_overflow && this._draw();
+ //可以居中裁剪框了
+ this._moveStop(); //结束操作
+ },
+ /**
+ * 设置剪裁框位置
+ */
+ setCutXY(x, y) {
+ this.setData({
+ cut_top: y,
+ cut_left: x
+ });
+ },
+ /**
+ * 设置剪裁框尺寸
+ */
+ setCutSize(w, h) {
+ this.setData({
+ width: w,
+ height: h
+ });
+ this._computeCutSize();
+ },
+ /**
+ * 设置剪裁框和图片居中
+ */
+ setCutCenter() {
+ let cut_top = (this.data.info.windowHeight - this.data.height) * 0.5;
+ let cut_left = (this.data.info.windowWidth - this.data.width) * 0.5;
+ //顺序不能变
+ this.setData({
+ _img_top: this.data._img_top - this.data.cut_top + cut_top,
+ cut_top: cut_top, //截取的框上边距
+ _img_left: this.data._img_left - this.data.cut_left + cut_left,
+ cut_left: cut_left, //截取的框左边距
+ });
+ },
+ _setCutCenter() {
+ let cut_top = (this.data.info.windowHeight - this.data.height) * 0.5;
+ let cut_left = (this.data.info.windowWidth - this.data.width) * 0.5;
+ this.setData({
+ cut_top: cut_top, //截取的框上边距
+ cut_left: cut_left, //截取的框左边距
+ });
+ },
+ /**
+ * 设置剪裁框宽度-即将废弃
+ */
+ setWidth(width) {
+ this.setData({
+ width: width
+ });
+ this._computeCutSize();
+ },
+ /**
+ * 设置剪裁框高度-即将废弃
+ */
+ setHeight(height) {
+ this.setData({
+ height: height
+ });
+ this._computeCutSize();
+ },
+ /**
+ * 是否锁定旋转
+ */
+ setDisableRotate(value) {
+ this.data.disable_rotate = value;
+ },
+ /**
+ * 是否限制移动
+ */
+ setLimitMove(value) {
+ this.setData({
+ _cut_animation: true,
+ limit_move: !!value
+ });
+ },
+ /**
+ * 初始化图片,包括位置、大小、旋转角度
+ */
+ imgReset() {
+ this.setData({
+ scale: 1,
+ angle: 0,
+ _img_top: wx.getSystemInfoSync().windowHeight / 2,
+ _img_left: wx.getSystemInfoSync().windowWidth / 2,
+ })
+ },
+ /**
+ * 加载(更换)图片
+ */
+ pushImg(src) {
+ if (src) {
+ this.setData({
+ imgSrc: src
+ });
+ //发现是手动赋值直接返回,交给watch处理
+ return;
+ }
+
+ // getImageInfo接口传入 src: '' 会导致内存泄漏
+
+ if (!this.data.imgSrc) return;
+ wx.getImageInfo({
+ src: this.data.imgSrc,
+ success: (res) => {
+ this.data.imageObject = res;
+ //图片非本地路径需要换成本地路径
+ if (this.data.imgSrc.search(/tmp/) == -1) {
+ this.setData({
+ imgSrc: res.path
+ });
+ }
+ //计算最后图片尺寸
+ this._imgComputeSize();
+ if (this.data.limit_move) {
+ //限制移动,不留空白处理
+ this._imgMarginDetectionScale();
+ }
+ this._draw();
+ },
+ fail: (err) => {
+ this.setData({
+ imgSrc: ''
+ });
+ }
+ });
+ },
+ imageLoad(e) {
+ setTimeout(() => {
+ this.triggerEvent('imageload', this.data.imageObject);
+
+ }, 1000)
+ },
+ /**
+ * 设置图片放大缩小
+ */
+ setScale(scale) {
+ if (!scale) return;
+ this.setData({
+ scale: scale
+ });
+ !this.data._canvas_overflow && this._draw();
+ },
+ /**
+ * 设置图片旋转角度
+ */
+ setAngle(angle) {
+ if (!angle) return;
+ this.setData({
+ _cut_animation: true,
+ angle: angle
+ });
+ this._imgMarginDetectionScale();
+ !this.data._canvas_overflow && this._draw();
+ },
+ _initCanvas() {
+ //初始化canvas
+ if (!this.data.ctx) {
+ this.data.ctx = wx.createCanvasContext("image-cropper", this);
+ }
+ },
+ /**
+ * 根据开发者设置的图片目标尺寸计算实际尺寸
+ */
+ _initImageSize() {
+ //处理宽高特殊单位 %>px
+ if (this.data.INIT_IMGWIDTH && typeof this.data.INIT_IMGWIDTH == "string" && this.data.INIT_IMGWIDTH.indexOf("%") != -1) {
+ let width = this.data.INIT_IMGWIDTH.replace("%", "");
+ this.data.INIT_IMGWIDTH = this.data.img_width = this.data.info.windowWidth / 100 * width;
+ }
+ if (this.data.INIT_IMGHEIGHT && typeof this.data.INIT_IMGHEIGHT == "string" && this.data.INIT_IMGHEIGHT.indexOf("%") != -1) {
+ let height = this.data.img_height.replace("%", "");
+ this.data.INIT_IMGHEIGHT = this.data.img_height = this.data.info.windowHeight / 100 * height;
+ }
+ },
+ /**
+ * 检测剪裁框位置是否在允许的范围内(屏幕内)
+ */
+ _cutDetectionPosition() {
+ let _cutDetectionPositionTop = () => {
+ //检测上边距是否在范围内
+ if (this.data.cut_top < 0) {
+ this.setData({
+ cut_top: 0
+ });
+ }
+ if (this.data.cut_top > this.data.info.windowHeight - this.data.height) {
+ this.setData({
+ cut_top: this.data.info.windowHeight - this.data.height
+ });
+ }
+ },
+ _cutDetectionPositionLeft = () => {
+ //检测左边距是否在范围内
+ if (this.data.cut_left < 0) {
+ this.setData({
+ cut_left: 0
+ });
+ }
+ if (this.data.cut_left > this.data.info.windowWidth - this.data.width) {
+ this.setData({
+ cut_left: this.data.info.windowWidth - this.data.width
+ });
+ }
+ };
+ //裁剪框坐标处理(如果只写一个参数则另一个默认为0,都不写默认居中)
+ if (this.data.cut_top == null && this.data.cut_left == null) {
+ this._setCutCenter();
+ } else if (this.data.cut_top != null && this.data.cut_left != null) {
+ _cutDetectionPositionTop();
+ _cutDetectionPositionLeft();
+ } else if (this.data.cut_top != null && this.data.cut_left == null) {
+ _cutDetectionPositionTop();
+ this.setData({
+ cut_left: (this.data.info.windowWidth - this.data.width) / 2
+ });
+ } else if (this.data.cut_top == null && this.data.cut_left != null) {
+ _cutDetectionPositionLeft();
+ this.setData({
+ cut_top: (this.data.info.windowHeight - this.data.height) / 2
+ });
+ }
+ },
+ /**
+ * 检测canvas位置是否在允许的范围内(屏幕内)如果在屏幕外则不开启实时渲染
+ * 如果只写一个参数则另一个默认为0,都不写默认超出屏幕外
+ */
+ _canvasDetectionPosition() {
+ if (this.data.canvas_top == null && this.data.canvas_left == null) {
+ this.data._canvas_overflow = false;
+ this.setData({
+ canvas_top: -5000,
+ canvas_left: -5000
+ });
+ } else if (this.data.canvas_top != null && this.data.canvas_left != null) {
+ if (this.data.canvas_top < -this.data.height || this.data.canvas_top > this.data.info.windowHeight) {
+ this.data._canvas_overflow = true;
+ } else {
+ this.data._canvas_overflow = false;
+ }
+ } else if (this.data.canvas_top != null && this.data.canvas_left == null) {
+ this.setData({
+ canvas_left: 0
+ });
+ } else if (this.data.canvas_top == null && this.data.canvas_left != null) {
+ this.setData({
+ canvas_top: 0
+ });
+ if (this.data.canvas_left < -this.data.width || this.data.canvas_left > this.data.info.windowWidth) {
+ this.data._canvas_overflow = true;
+ } else {
+ this.data._canvas_overflow = false;
+ }
+ }
+ },
+ /**
+ * 图片边缘检测-位置
+ */
+ _imgMarginDetectionPosition(scale) {
+ if (!this.data.limit_move) return;
+ let left = this.data._img_left;
+ let top = this.data._img_top;
+ var scale = scale || this.data.scale;
+ let img_width = this.data.img_width;
+ let img_height = this.data.img_height;
+ if (this.data.angle / 90 % 2) {
+ img_width = this.data.img_height;
+ img_height = this.data.img_width;
+ }
+ left = this.data.cut_left + img_width * scale / 2 >= left ? left : this.data.cut_left + img_width * scale / 2;
+ left = this.data.cut_left + this.data.width - img_width * scale / 2 <= left ? left : this.data.cut_left + this.data.width - img_width * scale / 2;
+ top = this.data.cut_top + img_height * scale / 2 >= top ? top : this.data.cut_top + img_height * scale / 2;
+ top = this.data.cut_top + this.data.height - img_height * scale / 2 <= top ? top : this.data.cut_top + this.data.height - img_height * scale / 2;
+ this.setData({
+ _img_left: left,
+ _img_top: top,
+ scale: scale
+ })
+ },
+ /**
+ * 图片边缘检测-缩放
+ */
+ _imgMarginDetectionScale() {
+ if (!this.data.limit_move) return;
+ let scale = this.data.scale;
+ let img_width = this.data.img_width;
+ let img_height = this.data.img_height;
+ if (this.data.angle / 90 % 2) {
+ img_width = this.data.img_height;
+ img_height = this.data.img_width;
+ }
+ if (img_width * scale < this.data.width) {
+ scale = this.data.width / img_width;
+ }
+ if (img_height * scale < this.data.height) {
+ scale = Math.max(scale, this.data.height / img_height);
+ }
+ this._imgMarginDetectionPosition(scale);
+ },
+ _setData(obj) {
+ let data = {};
+ for (var key in obj) {
+ if (this.data[key] != obj[key]) {
+ data[key] = obj[key];
+ }
+ }
+ this.setData(data);
+ return data;
+ },
+ /**
+ * 计算图片尺寸
+ */
+ _imgComputeSize() {
+ let img_width = this.data.img_width,
+ img_height = this.data.img_height;
+ if (!this.data.INIT_IMGHEIGHT && !this.data.INIT_IMGWIDTH) {
+ //默认按图片最小边 = 对应裁剪框尺寸
+ img_width = this.data.imageObject.width;
+ img_height = this.data.imageObject.height;
+ if (img_width / img_height > this.data.width / this.data.height) {
+ img_height = this.data.height;
+ img_width = this.data.imageObject.width / this.data.imageObject.height * img_height;
+ } else {
+ img_width = this.data.width;
+ img_height = this.data.imageObject.height / this.data.imageObject.width * img_width;
+ }
+ } else if (this.data.INIT_IMGHEIGHT && !this.data.INIT_IMGWIDTH) {
+ img_width = this.data.imageObject.width / this.data.imageObject.height * this.data.INIT_IMGHEIGHT;
+ } else if (!this.data.INIT_IMGHEIGHT && this.data.INIT_IMGWIDTH) {
+ img_height = this.data.imageObject.height / this.data.imageObject.width * this.data.INIT_IMGWIDTH;
+ }
+ this.setData({
+ img_width: img_width,
+ img_height: img_height
+ });
+ },
+ //改变截取框大小
+ _computeCutSize() {
+ if (this.data.width > this.data.info.windowWidth) {
+ this.setData({
+ width: this.data.info.windowWidth,
+ });
+ } else if (this.data.width + this.data.cut_left > this.data.info.windowWidth) {
+ this.setData({
+ cut_left: this.data.info.windowWidth - this.data.cut_left,
+ });
+ };
+ if (this.data.height > this.data.info.windowHeight) {
+ this.setData({
+ height: this.data.info.windowHeight,
+ });
+ } else if (this.data.height + this.data.cut_top > this.data.info.windowHeight) {
+ this.setData({
+ cut_top: this.data.info.windowHeight - this.data.cut_top,
+ });
+ }!this.data._canvas_overflow && this._draw();
+ },
+ //开始触摸
+ _start(event) {
+ this.data._flag_img_endtouch = false;
+ if (event.touches.length == 1) {
+ //单指拖动
+ this.data._touch_img_relative[0] = {
+ x: (event.touches[0].clientX - this.data._img_left),
+ y: (event.touches[0].clientY - this.data._img_top)
+ }
+ } else {
+ //双指放大
+ let width = Math.abs(event.touches[0].clientX - event.touches[1].clientX);
+ let height = Math.abs(event.touches[0].clientY - event.touches[1].clientY);
+ this.data._touch_img_relative = [{
+ x: (event.touches[0].clientX - this.data._img_left),
+ y: (event.touches[0].clientY - this.data._img_top)
+ }, {
+ x: (event.touches[1].clientX - this.data._img_left),
+ y: (event.touches[1].clientY - this.data._img_top)
+ }];
+ this.data._hypotenuse_length = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
+ }!this.data._canvas_overflow && this._draw();
+ },
+ _move_throttle() {
+ //安卓需要节流
+ if (this.data.info.platform == 'android') {
+ clearTimeout(this.data.MOVE_THROTTLE);
+ this.data.MOVE_THROTTLE = setTimeout(() => {
+ this.data.MOVE_THROTTLE_FLAG = true;
+ }, 1000 / 40)
+ return this.data.MOVE_THROTTLE_FLAG;
+ } else {
+ this.data.MOVE_THROTTLE_FLAG = true;
+ }
+ },
+ _move(event) {
+ if (this.data._flag_img_endtouch || !this.data.MOVE_THROTTLE_FLAG) return;
+ this.data.MOVE_THROTTLE_FLAG = false;
+ this._move_throttle();
+ this._moveDuring();
+ if (event.touches.length == 1) {
+ //单指拖动
+ let left = (event.touches[0].clientX - this.data._touch_img_relative[0].x),
+ top = (event.touches[0].clientY - this.data._touch_img_relative[0].y);
+ //图像边缘检测,防止截取到空白
+ this.data._img_left = left;
+ this.data._img_top = top;
+ this._imgMarginDetectionPosition();
+ this.setData({
+ _img_left: this.data._img_left,
+ _img_top: this.data._img_top
+ });
+ } else {
+ //双指放大
+ let width = (Math.abs(event.touches[0].clientX - event.touches[1].clientX)),
+ height = (Math.abs(event.touches[0].clientY - event.touches[1].clientY)),
+ hypotenuse = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2)),
+ scale = this.data.scale * (hypotenuse / this.data._hypotenuse_length),
+ current_deg = 0;
+ scale = scale <= this.data.min_scale ? this.data.min_scale : scale;
+ scale = scale >= this.data.max_scale ? this.data.max_scale : scale;
+ //图像边缘检测,防止截取到空白
+ this.data.scale = scale;
+ this._imgMarginDetectionScale();
+ //双指旋转(如果没禁用旋转)
+ let _touch_img_relative = [{
+ x: (event.touches[0].clientX - this.data._img_left),
+ y: (event.touches[0].clientY - this.data._img_top)
+ }, {
+ x: (event.touches[1].clientX - this.data._img_left),
+ y: (event.touches[1].clientY - this.data._img_top)
+ }];
+ if (!this.data.disable_rotate) {
+ let first_atan = 180 / Math.PI * Math.atan2(_touch_img_relative[0].y, _touch_img_relative[0].x);
+ let first_atan_old = 180 / Math.PI * Math.atan2(this.data._touch_img_relative[0].y, this.data._touch_img_relative[0].x);
+ let second_atan = 180 / Math.PI * Math.atan2(_touch_img_relative[1].y, _touch_img_relative[1].x);
+ let second_atan_old = 180 / Math.PI * Math.atan2(this.data._touch_img_relative[1].y, this.data._touch_img_relative[1].x);
+ //当前旋转的角度
+ let first_deg = first_atan - first_atan_old,
+ second_deg = second_atan - second_atan_old;
+ if (first_deg != 0) {
+ current_deg = first_deg;
+ } else if (second_deg != 0) {
+ current_deg = second_deg;
+ }
+ }
+ this.data._touch_img_relative = _touch_img_relative;
+ this.data._hypotenuse_length = Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
+ //更新视图
+ this.setData({
+ angle: this.data.angle + current_deg,
+ scale: this.data.scale
+ });
+ }!this.data._canvas_overflow && this._draw();
+ },
+ //结束操作
+ _end(event) {
+ this.data._flag_img_endtouch = true;
+ this._moveStop();
+ },
+ //点击中间剪裁框处理
+ _click(event) {
+ if (!this.data.imgSrc) {
+ //调起上传
+ this.upload();
+ return;
+ }
+ this._draw(() => {
+ let x = event.detail ? event.detail.x : event.touches[0].clientX;
+ let y = event.detail ? event.detail.y : event.touches[0].clientY;
+ if ((x >= this.data.cut_left && x <= (this.data.cut_left + this.data.width)) && (y >= this.data.cut_top && y <= (this.data.cut_top + this.data.height))) {
+ //生成图片并回调
+ wx.canvasToTempFilePath({
+ width: this.data.width * this.data.export_scale,
+ height: Math.round(this.data.height * this.data.export_scale),
+ destWidth: this.data.width * this.data.export_scale,
+ destHeight: Math.round(this.data.height) * this.data.export_scale,
+ fileType: 'png',
+ quality: this.data.quality,
+ canvasId: this.data.el,
+ success: (res) => {
+ this.triggerEvent('tapcut', {
+ url: res.tempFilePath,
+ width: this.data.width * this.data.export_scale,
+ height: this.data.height * this.data.export_scale
+ });
+ }
+ }, this)
+ }
+ });
+ },
+ //渲染
+ _draw(callback) {
+ if (!this.data.imgSrc) return;
+ let draw = () => {
+ //图片实际大小
+ let img_width = this.data.img_width * this.data.scale * this.data.export_scale;
+ let img_height = this.data.img_height * this.data.scale * this.data.export_scale;
+ //canvas和图片的相对距离
+ var xpos = this.data._img_left - this.data.cut_left;
+ var ypos = this.data._img_top - this.data.cut_top;
+ //旋转画布
+ this.data.ctx.translate(xpos * this.data.export_scale, ypos * this.data.export_scale);
+ this.data.ctx.rotate(this.data.angle * Math.PI / 180);
+ this.data.ctx.drawImage(this.data.imgSrc, -img_width / 2, -img_height / 2, img_width, img_height);
+ this.data.ctx.draw(false, () => {
+ callback && callback();
+ });
+ }
+ if (this.data.ctx.width != this.data.width || this.data.ctx.height != this.data.height) {
+ //优化拖动裁剪框,所以必须把宽高设置放在离用户触发渲染最近的地方
+ this.setData({
+ _canvas_height: this.data.height,
+ _canvas_width: this.data.width,
+ }, () => {
+ //延迟40毫秒防止点击过快出现拉伸或裁剪过多
+ setTimeout(() => {
+ draw();
+ }, 40);
+ });
+ } else {
+ draw();
+ }
+ },
+ //裁剪框处理
+ _cutTouchMove(e) {
+ if (this.data._flag_cut_touch && this.data.MOVE_THROTTLE_FLAG) {
+ if (this.data.disable_ratio && (this.data.disable_width || this.data.disable_height)) return;
+ //节流
+ this.data.MOVE_THROTTLE_FLAG = false;
+ this._move_throttle();
+ let width = this.data.width,
+ height = this.data.height,
+ cut_top = this.data.cut_top,
+ cut_left = this.data.cut_left,
+ size_correct = () => {
+ width = width <= this.data.max_width ? width >= this.data.min_width ? width : this.data.min_width : this.data.max_width;
+ height = height <= this.data.max_height ? height >= this.data.min_height ? height : this.data.min_height : this.data.max_height;
+ },
+ size_inspect = () => {
+ if ((width > this.data.max_width || width < this.data.min_width || height > this.data.max_height || height < this.data.min_height) && this.data.disable_ratio) {
+ size_correct();
+ return false;
+ } else {
+ size_correct();
+ return true;
+ }
+ };
+ height = this.data.CUT_START.height + ((this.data.CUT_START.corner > 1 && this.data.CUT_START.corner < 4 ? 1 : -1) * (this.data.CUT_START.y - e.touches[0].clientY));
+ switch (this.data.CUT_START.corner) {
+ case 1:
+ width = this.data.CUT_START.width + this.data.CUT_START.x - e.touches[0].clientX;
+ if (this.data.disable_ratio) {
+ height = width / (this.data.width / this.data.height)
+ }
+ if (!size_inspect()) return;
+ cut_left = this.data.CUT_START.cut_left - (width - this.data.CUT_START.width);
+ break
+ case 2:
+ width = this.data.CUT_START.width + this.data.CUT_START.x - e.touches[0].clientX;
+ if (this.data.disable_ratio) {
+ height = width / (this.data.width / this.data.height)
+ }
+ if (!size_inspect()) return;
+ cut_top = this.data.CUT_START.cut_top - (height - this.data.CUT_START.height)
+ cut_left = this.data.CUT_START.cut_left - (width - this.data.CUT_START.width)
+ break
+ case 3:
+ width = this.data.CUT_START.width - this.data.CUT_START.x + e.touches[0].clientX;
+ if (this.data.disable_ratio) {
+ height = width / (this.data.width / this.data.height)
+ }
+ if (!size_inspect()) return;
+ cut_top = this.data.CUT_START.cut_top - (height - this.data.CUT_START.height);
+ break
+ case 4:
+ width = this.data.CUT_START.width - this.data.CUT_START.x + e.touches[0].clientX;
+ if (this.data.disable_ratio) {
+ height = width / (this.data.width / this.data.height)
+ }
+ if (!size_inspect()) return;
+ break
+ }
+ if (!this.data.disable_width && !this.data.disable_height) {
+ this.setData({
+ width: width,
+ cut_left: cut_left,
+ height: height,
+ cut_top: cut_top,
+ })
+ } else if (!this.data.disable_width) {
+ this.setData({
+ width: width,
+ cut_left: cut_left
+ })
+ } else if (!this.data.disable_height) {
+ this.setData({
+ height: height,
+ cut_top: cut_top
+ })
+ }
+ this._imgMarginDetectionScale();
+ }
+ },
+ _cutTouchStart(e) {
+ let currentX = e.touches[0].clientX;
+ let currentY = e.touches[0].clientY;
+ let cutbox_top4 = this.data.cut_top + this.data.height - 30;
+ let cutbox_bottom4 = this.data.cut_top + this.data.height + 20;
+ let cutbox_left4 = this.data.cut_left + this.data.width - 30;
+ let cutbox_right4 = this.data.cut_left + this.data.width + 30;
+
+ let cutbox_top3 = this.data.cut_top - 30;
+ let cutbox_bottom3 = this.data.cut_top + 30;
+ let cutbox_left3 = this.data.cut_left + this.data.width - 30;
+ let cutbox_right3 = this.data.cut_left + this.data.width + 30;
+
+ let cutbox_top2 = this.data.cut_top - 30;
+ let cutbox_bottom2 = this.data.cut_top + 30;
+ let cutbox_left2 = this.data.cut_left - 30;
+ let cutbox_right2 = this.data.cut_left + 30;
+
+ let cutbox_top1 = this.data.cut_top + this.data.height - 30;
+ let cutbox_bottom1 = this.data.cut_top + this.data.height + 30;
+ let cutbox_left1 = this.data.cut_left - 30;
+ let cutbox_right1 = this.data.cut_left + 30;
+ if (currentX > cutbox_left4 && currentX < cutbox_right4 && currentY > cutbox_top4 && currentY < cutbox_bottom4) {
+ this._moveDuring();
+ this.data._flag_cut_touch = true;
+ this.data._flag_img_endtouch = true;
+ this.data.CUT_START = {
+ width: this.data.width,
+ height: this.data.height,
+ x: currentX,
+ y: currentY,
+ corner: 4
+ }
+ } else if (currentX > cutbox_left3 && currentX < cutbox_right3 && currentY > cutbox_top3 && currentY < cutbox_bottom3) {
+ this._moveDuring();
+ this.data._flag_cut_touch = true;
+ this.data._flag_img_endtouch = true;
+ this.data.CUT_START = {
+ width: this.data.width,
+ height: this.data.height,
+ x: currentX,
+ y: currentY,
+ cut_top: this.data.cut_top,
+ cut_left: this.data.cut_left,
+ corner: 3
+ }
+ } else if (currentX > cutbox_left2 && currentX < cutbox_right2 && currentY > cutbox_top2 && currentY < cutbox_bottom2) {
+ this._moveDuring();
+ this.data._flag_cut_touch = true;
+ this.data._flag_img_endtouch = true;
+ this.data.CUT_START = {
+ width: this.data.width,
+ height: this.data.height,
+ cut_top: this.data.cut_top,
+ cut_left: this.data.cut_left,
+ x: currentX,
+ y: currentY,
+ corner: 2
+ }
+ } else if (currentX > cutbox_left1 && currentX < cutbox_right1 && currentY > cutbox_top1 && currentY < cutbox_bottom1) {
+ this._moveDuring();
+ this.data._flag_cut_touch = true;
+ this.data._flag_img_endtouch = true;
+ this.data.CUT_START = {
+ width: this.data.width,
+ height: this.data.height,
+ cut_top: this.data.cut_top,
+ cut_left: this.data.cut_left,
+ x: currentX,
+ y: currentY,
+ corner: 1
+ }
+ }
+ },
+ _cutTouchEnd(e) {
+ this._moveStop();
+ this.data._flag_cut_touch = false;
+ },
+ //停止移动时需要做的操作
+ _moveStop() {
+ //清空之前的自动居中延迟函数并添加最新的
+ clearTimeout(this.data.TIME_CUT_CENTER);
+ this.data.TIME_CUT_CENTER = setTimeout(() => {
+ //动画启动
+ if (!this.data._cut_animation) {
+ this.setData({
+ _cut_animation: true
+ });
+ }
+ this.setCutCenter();
+ }, 1000)
+ //清空之前的背景变化延迟函数并添加最新的
+ clearTimeout(this.data.TIME_BG);
+ this.data.TIME_BG = setTimeout(() => {
+ if (this.data._flag_bright) {
+ this.setData({
+ _flag_bright: false
+ });
+ }
+ }, 2000)
+ },
+ //移动中
+ _moveDuring() {
+ //清空之前的自动居中延迟函数
+ clearTimeout(this.data.TIME_CUT_CENTER);
+ //清空之前的背景变化延迟函数
+ clearTimeout(this.data.TIME_BG);
+ //高亮背景
+ if (!this.data._flag_bright) {
+ this.setData({
+ _flag_bright: true
+ });
+ }
+ },
+ //监听器
+ _watcher() {
+ Object.keys(this.data).forEach(v => {
+ this._observe(this.data, v, this.data.watch[v]);
+ })
+ },
+ _observe(obj, key, watchFun) {
+ var val = obj[key];
+ Object.defineProperty(obj, key, {
+ configurable: true,
+ enumerable: true,
+ set: (value) => {
+ val = value;
+ watchFun && watchFun(val, this);
+ },
+ get() {
+ if (val && '_img_top|img_left||width|height|min_width|max_width|min_height|max_height|export_scale|cut_top|cut_left|canvas_top|canvas_left|img_width|img_height|scale|angle|min_scale|max_scale'.indexOf(key) != -1) {
+ let ret = parseFloat(parseFloat(val).toFixed(3));
+ if (typeof val == "string" && val.indexOf("%") != -1) {
+ ret += '%';
+ }
+ return ret;
+ }
+ return val;
+ }
+ })
+ },
+ _preventTouchMove() {}
+ }
+})
\ No newline at end of file
diff --git a/component/image-cropper/image-cropper.json b/component/image-cropper/image-cropper.json
new file mode 100644
index 0000000..d577ade
--- /dev/null
+++ b/component/image-cropper/image-cropper.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
\ No newline at end of file
diff --git a/component/image-cropper/image-cropper.wxml b/component/image-cropper/image-cropper.wxml
new file mode 100644
index 0000000..a4a7526
--- /dev/null
+++ b/component/image-cropper/image-cropper.wxml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/component/image-cropper/image-cropper.wxss b/component/image-cropper/image-cropper.wxss
new file mode 100644
index 0000000..80eb895
--- /dev/null
+++ b/component/image-cropper/image-cropper.wxss
@@ -0,0 +1,143 @@
+.image-cropper {
+ background: rgba(14, 13, 13, .8);
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ z-index: 1;
+}
+
+.image-cropper .main {
+ position: absolute;
+ width: 100vw;
+ height: 100vh;
+ overflow: hidden;
+}
+
+.image-cropper .content {
+ z-index: 9;
+ position: absolute;
+ width: 100vw;
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ pointer-events: none;
+}
+
+.image-cropper .bg_black {
+ background: rgba(0, 0, 0, 0.8) !important;
+}
+
+.image-cropper .bg_gray {
+ background: rgba(0, 0, 0, 0.45);
+ transition-duration: .35s;
+}
+
+.image-cropper .content>.content_top {
+ pointer-events: none;
+}
+
+.image-cropper .content>.content_middle {
+ display: flex;
+ height: 200px;
+ width: 100%;
+}
+
+.image-cropper .content_middle_middle {
+ width: 200px;
+ box-sizing: border-box;
+ position: relative;
+ transition-duration: .3s;
+}
+
+.image-cropper .content_middle_right {
+ flex: auto;
+}
+
+.image-cropper .content>.content_bottom {
+ flex: auto;
+}
+
+.image-cropper .img {
+ z-index: 2;
+ top: 0;
+ left: 0;
+ position: absolute;
+ border: none;
+ width: 100%;
+ backface-visibility: hidden;
+ transform-origin: center;
+}
+
+.image-cropper .image-cropper-canvas {
+ position: fixed;
+ background: white;
+ width: 150px;
+ height: 150px;
+ z-index: 10;
+ top: -200%;
+ pointer-events: none;
+}
+
+.image-cropper .border {
+ background: white;
+ pointer-events: auto;
+ position: absolute;
+}
+
+.image-cropper .border-top-left {
+ left: -2.5px;
+ top: -2.5px;
+ height: 2.5px;
+ width: 33rpx;
+}
+
+.image-cropper .border-top-right {
+ right: -2.5px;
+ top: -2.5px;
+ height: 2.5px;
+ width: 33rpx;
+}
+
+.image-cropper .border-right-top {
+ top: -1px;
+ width: 2.5px;
+ height: 30rpx;
+ right: -2.5px;
+}
+
+.image-cropper .border-right-bottom {
+ width: 2.5px;
+ height: 30rpx;
+ right: -2.5px;
+ bottom: -1px;
+}
+
+.image-cropper .border-bottom-left {
+ height: 2.5px;
+ width: 33rpx;
+ bottom: -2.5px;
+ left: -2.5px;
+}
+
+.image-cropper .border-bottom-right {
+ height: 2.5px;
+ width: 33rpx;
+ bottom: -2.5px;
+ right: -2.5px;
+}
+
+.image-cropper .border-left-top {
+ top: -1px;
+ width: 2.5px;
+ height: 30rpx;
+ left: -2.5px;
+}
+
+.image-cropper .border-left-bottom {
+ width: 2.5px;
+ height: 30rpx;
+ left: -2.5px;
+ bottom: -1px;
+}
\ No newline at end of file
diff --git a/config/api.js b/config/api.js
new file mode 100644
index 0000000..a1c406a
--- /dev/null
+++ b/config/api.js
@@ -0,0 +1,54 @@
+// 以下是业务服务器API地址
+// 本机开发时使用
+// var WxApiRoot = 'http://localhost:8080/wx/';
+// 局域网测试使用
+// var WxApiRoot = 'http://192.168.10.172:58080/app-api/member/';
+//var WxKFApiRoot = 'http://192.168.10.172:58081/kfapp-api/member/';
+
+//var WxApiRoot = 'http://192.168.10.172:58080/app-api/member/';
+// 云平台部署时使用
+//var WxApiRoot = 'http://139.224.118.219:58080/app-api/member/';
+
+// 云平台上线时使用
+var WxApiRoot = 'https://xytj.btlsoln.com/app-api/member/';
+var WxKFApiRoot = 'https://xytj.btlsoln.com/kfapp-api/member/';
+
+module.exports = {
+ uploadimg: WxApiRoot + 'dept-info/upload', //图片文件上传服务器
+ createRefund: WxApiRoot + 'dept-info/createRefund', //图片文件上传服务器
+
+ deptinfo: WxApiRoot + 'dept-info/list-all-simple', //部门数据
+ studentinfo: WxApiRoot + 'dept-info/list-student', //学生数据
+ iteminfo: WxApiRoot + 'dept-info/list-item', //项目数据
+ xyrwinfo: WxApiRoot + 'dept-info/list-xyrw', //任务信息
+ createstudent: WxApiRoot + 'dept-info/create', //新建体检人
+ updatestudent: WxApiRoot + 'dept-info/update', //修改体检人
+ deletestudent: WxApiRoot + 'dept-info/delete', //删除体检人
+ studentByparent: WxApiRoot + 'dept-info/list-simple-student', //获取家长下的学生
+ studentByInit: WxApiRoot + 'dept-info/list-init-student', //获取待确认学生
+ addUser: WxApiRoot + 'dept-info/his/addUser', //下园学生建档
+
+
+ orderinfo: WxApiRoot + 'order-info/payorder', // 缴费项目
+ confirmOrder: WxApiRoot + 'order-info/confirmOrder', // 缴费项目
+ updateOrder: WxApiRoot + 'order-info/updateOrder', // 缴费项目
+ listOrder: WxApiRoot + 'order-info/listOrder', // 缴费项目
+
+ kfdeptinfo: WxKFApiRoot + 'dept-info/list-all-simple', //部门数据
+ kfstudentinfo: WxKFApiRoot + 'dept-info/list-student', //学生数据
+ kfiteminfo: WxKFApiRoot + 'dept-info/list-item', //项目数据
+ kfxyrwinfo: WxKFApiRoot + 'dept-info/list-xyrw', //任务信息
+ kfcreatestudent: WxKFApiRoot + 'dept-info/create', //新建体检人
+ kfupdatestudent: WxKFApiRoot + 'dept-info/update', //修改体检人
+ kfdeletestudent: WxKFApiRoot + 'dept-info/delete', //删除体检人
+ kfstudentByparent: WxKFApiRoot + 'dept-info/list-simple-student', //获取家长下的学生
+ kfstudentByInit: WxKFApiRoot + 'dept-info/list-init-student', //获取待确认学生
+ kfaddUser: WxKFApiRoot + 'dept-info/his/addUser', //下园学生建档
+
+
+ kforderinfo: WxKFApiRoot + 'order-info/payorder', // 缴费项目
+ kfconfirmOrder: WxKFApiRoot + 'order-info/confirmOrder', // 缴费项目
+ kfupdateOrder: WxKFApiRoot + 'order-info/updateOrder', // 缴费项目
+ kflistOrder: WxKFApiRoot + 'order-info/listOrder', // 缴费项目
+
+};
\ No newline at end of file
diff --git a/config/common.js b/config/common.js
new file mode 100644
index 0000000..bbd2041
--- /dev/null
+++ b/config/common.js
@@ -0,0 +1,28 @@
+const checkGlobalOpenId = () => {
+ return new Promise((resolve, reject) => {
+ wx.login({
+ success: (res) => {
+ if (res.code) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getOpenid',
+ method: 'GET',
+ data: {
+ code: res.code
+ },
+ success: res => {
+ if (res.data) {
+ resolve(res.data)
+ }
+ },
+ fail: err => {
+ reject(err)
+ }
+ })
+ }
+ },
+ })
+ })
+}
+module.exports = {
+ checkGlobalOpenId
+}
\ No newline at end of file
diff --git a/config/crypto-js.js b/config/crypto-js.js
new file mode 100644
index 0000000..17f2b11
--- /dev/null
+++ b/config/crypto-js.js
@@ -0,0 +1,5988 @@
+;(function (root, factory) {
+ if (typeof exports === "object") {
+ // CommonJS
+ module.exports = exports = factory();
+ }
+ else if (typeof define === "function" && define.amd) {
+ // AMD
+ define([], factory);
+ }
+ else {
+ // Global (browser)
+ root.CryptoJS = factory();
+ }
+}(this, function () {
+
+ /**
+ * CryptoJS core components.
+ */
+ var CryptoJS = CryptoJS || (function (Math, undefined) {
+ /*
+ * Local polyfil of Object.create
+ */
+ var create = Object.create || (function () {
+ function F() {};
+
+ return function (obj) {
+ var subtype;
+
+ F.prototype = obj;
+
+ subtype = new F();
+
+ F.prototype = null;
+
+ return subtype;
+ };
+ }())
+
+ /**
+ * CryptoJS namespace.
+ */
+ var C = {};
+
+ /**
+ * Library namespace.
+ */
+ var C_lib = C.lib = {};
+
+ /**
+ * Base object for prototypal inheritance.
+ */
+ var Base = C_lib.Base = (function () {
+
+
+ return {
+ /**
+ * Creates a new object that inherits from this object.
+ *
+ * @param {Object} overrides Properties to copy into the new object.
+ *
+ * @return {Object} The new object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var MyType = CryptoJS.lib.Base.extend({
+ * field: 'value',
+ *
+ * method: function () {
+ * }
+ * });
+ */
+ extend: function (overrides) {
+ // Spawn
+ var subtype = create(this);
+
+ // Augment
+ if (overrides) {
+ subtype.mixIn(overrides);
+ }
+
+ // Create default initializer
+ if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
+ subtype.init = function () {
+ subtype.$super.init.apply(this, arguments);
+ };
+ }
+
+ // Initializer's prototype is the subtype object
+ subtype.init.prototype = subtype;
+
+ // Reference supertype
+ subtype.$super = this;
+
+ return subtype;
+ },
+
+ /**
+ * Extends this object and runs the init method.
+ * Arguments to create() will be passed to init().
+ *
+ * @return {Object} The new object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var instance = MyType.create();
+ */
+ create: function () {
+ var instance = this.extend();
+ instance.init.apply(instance, arguments);
+
+ return instance;
+ },
+
+ /**
+ * Initializes a newly created object.
+ * Override this method to add some logic when your objects are created.
+ *
+ * @example
+ *
+ * var MyType = CryptoJS.lib.Base.extend({
+ * init: function () {
+ * // ...
+ * }
+ * });
+ */
+ init: function () {
+ },
+
+ /**
+ * Copies properties into this object.
+ *
+ * @param {Object} properties The properties to mix in.
+ *
+ * @example
+ *
+ * MyType.mixIn({
+ * field: 'value'
+ * });
+ */
+ mixIn: function (properties) {
+ for (var propertyName in properties) {
+ if (properties.hasOwnProperty(propertyName)) {
+ this[propertyName] = properties[propertyName];
+ }
+ }
+
+ // IE won't copy toString using the loop above
+ if (properties.hasOwnProperty('toString')) {
+ this.toString = properties.toString;
+ }
+ },
+
+ /**
+ * Creates a copy of this object.
+ *
+ * @return {Object} The clone.
+ *
+ * @example
+ *
+ * var clone = instance.clone();
+ */
+ clone: function () {
+ return this.init.prototype.extend(this);
+ }
+ };
+ }());
+
+ /**
+ * An array of 32-bit words.
+ *
+ * @property {Array} words The array of 32-bit words.
+ * @property {number} sigBytes The number of significant bytes in this word array.
+ */
+ var WordArray = C_lib.WordArray = Base.extend({
+ /**
+ * Initializes a newly created word array.
+ *
+ * @param {Array} words (Optional) An array of 32-bit words.
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.lib.WordArray.create();
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
+ */
+ init: function (words, sigBytes) {
+ words = this.words = words || [];
+
+ if (sigBytes != undefined) {
+ this.sigBytes = sigBytes;
+ } else {
+ this.sigBytes = words.length * 4;
+ }
+ },
+
+ /**
+ * Converts this word array to a string.
+ *
+ * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
+ *
+ * @return {string} The stringified word array.
+ *
+ * @example
+ *
+ * var string = wordArray + '';
+ * var string = wordArray.toString();
+ * var string = wordArray.toString(CryptoJS.enc.Utf8);
+ */
+ toString: function (encoder) {
+ return (encoder || Hex).stringify(this);
+ },
+
+ /**
+ * Concatenates a word array to this word array.
+ *
+ * @param {WordArray} wordArray The word array to append.
+ *
+ * @return {WordArray} This word array.
+ *
+ * @example
+ *
+ * wordArray1.concat(wordArray2);
+ */
+ concat: function (wordArray) {
+ // Shortcuts
+ var thisWords = this.words;
+ var thatWords = wordArray.words;
+ var thisSigBytes = this.sigBytes;
+ var thatSigBytes = wordArray.sigBytes;
+
+ // Clamp excess bits
+ this.clamp();
+
+ // Concat
+ if (thisSigBytes % 4) {
+ // Copy one byte at a time
+ for (var i = 0; i < thatSigBytes; i++) {
+ var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
+ }
+ } else {
+ // Copy one word at a time
+ for (var i = 0; i < thatSigBytes; i += 4) {
+ thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
+ }
+ }
+ this.sigBytes += thatSigBytes;
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Removes insignificant bits.
+ *
+ * @example
+ *
+ * wordArray.clamp();
+ */
+ clamp: function () {
+ // Shortcuts
+ var words = this.words;
+ var sigBytes = this.sigBytes;
+
+ // Clamp
+ words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);
+ words.length = Math.ceil(sigBytes / 4);
+ },
+
+ /**
+ * Creates a copy of this word array.
+ *
+ * @return {WordArray} The clone.
+ *
+ * @example
+ *
+ * var clone = wordArray.clone();
+ */
+ clone: function () {
+ var clone = Base.clone.call(this);
+ clone.words = this.words.slice(0);
+
+ return clone;
+ },
+
+ /**
+ * Creates a word array filled with random bytes.
+ *
+ * @param {number} nBytes The number of random bytes to generate.
+ *
+ * @return {WordArray} The random word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.lib.WordArray.random(16);
+ */
+ random: function (nBytes) {
+ var words = [];
+
+ var r = (function (m_w) {
+ var m_w = m_w;
+ var m_z = 0x3ade68b1;
+ var mask = 0xffffffff;
+
+ return function () {
+ m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask;
+ m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask;
+ var result = ((m_z << 0x10) + m_w) & mask;
+ result /= 0x100000000;
+ result += 0.5;
+ return result * (Math.random() > .5 ? 1 : -1);
+ }
+ });
+
+ for (var i = 0, rcache; i < nBytes; i += 4) {
+ var _r = r((rcache || Math.random()) * 0x100000000);
+
+ rcache = _r() * 0x3ade67b7;
+ words.push((_r() * 0x100000000) | 0);
+ }
+
+ return new WordArray.init(words, nBytes);
+ }
+ });
+
+ /**
+ * Encoder namespace.
+ */
+ var C_enc = C.enc = {};
+
+ /**
+ * Hex encoding strategy.
+ */
+ var Hex = C_enc.Hex = {
+ /**
+ * Converts a word array to a hex string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The hex string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var hexChars = [];
+ for (var i = 0; i < sigBytes; i++) {
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ hexChars.push((bite >>> 4).toString(16));
+ hexChars.push((bite & 0x0f).toString(16));
+ }
+
+ return hexChars.join('');
+ },
+
+ /**
+ * Converts a hex string to a word array.
+ *
+ * @param {string} hexStr The hex string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Hex.parse(hexString);
+ */
+ parse: function (hexStr) {
+ // Shortcut
+ var hexStrLength = hexStr.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < hexStrLength; i += 2) {
+ words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);
+ }
+
+ return new WordArray.init(words, hexStrLength / 2);
+ }
+ };
+
+ /**
+ * Latin1 encoding strategy.
+ */
+ var Latin1 = C_enc.Latin1 = {
+ /**
+ * Converts a word array to a Latin1 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The Latin1 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var latin1Chars = [];
+ for (var i = 0; i < sigBytes; i++) {
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ latin1Chars.push(String.fromCharCode(bite));
+ }
+
+ return latin1Chars.join('');
+ },
+
+ /**
+ * Converts a Latin1 string to a word array.
+ *
+ * @param {string} latin1Str The Latin1 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
+ */
+ parse: function (latin1Str) {
+ // Shortcut
+ var latin1StrLength = latin1Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < latin1StrLength; i++) {
+ words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);
+ }
+
+ return new WordArray.init(words, latin1StrLength);
+ }
+ };
+
+ /**
+ * UTF-8 encoding strategy.
+ */
+ var Utf8 = C_enc.Utf8 = {
+ /**
+ * Converts a word array to a UTF-8 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-8 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ try {
+ return decodeURIComponent(escape(Latin1.stringify(wordArray)));
+ } catch (e) {
+ throw new Error('Malformed UTF-8 data');
+ }
+ },
+
+ /**
+ * Converts a UTF-8 string to a word array.
+ *
+ * @param {string} utf8Str The UTF-8 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
+ */
+ parse: function (utf8Str) {
+ return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
+ }
+ };
+
+ /**
+ * Abstract buffered block algorithm template.
+ *
+ * The property blockSize must be implemented in a concrete subtype.
+ *
+ * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
+ */
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
+ /**
+ * Resets this block algorithm's data buffer to its initial state.
+ *
+ * @example
+ *
+ * bufferedBlockAlgorithm.reset();
+ */
+ reset: function () {
+ // Initial values
+ this._data = new WordArray.init();
+ this._nDataBytes = 0;
+ },
+
+ /**
+ * Adds new data to this block algorithm's buffer.
+ *
+ * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
+ *
+ * @example
+ *
+ * bufferedBlockAlgorithm._append('data');
+ * bufferedBlockAlgorithm._append(wordArray);
+ */
+ _append: function (data) {
+ // Convert string to WordArray, else assume WordArray already
+ if (typeof data == 'string') {
+ data = Utf8.parse(data);
+ }
+
+ // Append
+ this._data.concat(data);
+ this._nDataBytes += data.sigBytes;
+ },
+
+ /**
+ * Processes available data blocks.
+ *
+ * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
+ *
+ * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
+ *
+ * @return {WordArray} The processed data.
+ *
+ * @example
+ *
+ * var processedData = bufferedBlockAlgorithm._process();
+ * var processedData = bufferedBlockAlgorithm._process(!!'flush');
+ */
+ _process: function (doFlush) {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+ var dataSigBytes = data.sigBytes;
+ var blockSize = this.blockSize;
+ var blockSizeBytes = blockSize * 4;
+
+ // Count blocks ready
+ var nBlocksReady = dataSigBytes / blockSizeBytes;
+ if (doFlush) {
+ // Round up to include partial blocks
+ nBlocksReady = Math.ceil(nBlocksReady);
+ } else {
+ // Round down to include only full blocks,
+ // less the number of blocks that must remain in the buffer
+ nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
+ }
+
+ // Count words ready
+ var nWordsReady = nBlocksReady * blockSize;
+
+ // Count bytes ready
+ var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
+
+ // Process blocks
+ if (nWordsReady) {
+ for (var offset = 0; offset < nWordsReady; offset += blockSize) {
+ // Perform concrete-algorithm logic
+ this._doProcessBlock(dataWords, offset);
+ }
+
+ // Remove processed words
+ var processedWords = dataWords.splice(0, nWordsReady);
+ data.sigBytes -= nBytesReady;
+ }
+
+ // Return processed words
+ return new WordArray.init(processedWords, nBytesReady);
+ },
+
+ /**
+ * Creates a copy of this object.
+ *
+ * @return {Object} The clone.
+ *
+ * @example
+ *
+ * var clone = bufferedBlockAlgorithm.clone();
+ */
+ clone: function () {
+ var clone = Base.clone.call(this);
+ clone._data = this._data.clone();
+
+ return clone;
+ },
+
+ _minBufferSize: 0
+ });
+
+ /**
+ * Abstract hasher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
+ */
+ var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
+ /**
+ * Configuration options.
+ */
+ cfg: Base.extend(),
+
+ /**
+ * Initializes a newly created hasher.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
+ *
+ * @example
+ *
+ * var hasher = CryptoJS.algo.SHA256.create();
+ */
+ init: function (cfg) {
+ // Apply config defaults
+ this.cfg = this.cfg.extend(cfg);
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this hasher to its initial state.
+ *
+ * @example
+ *
+ * hasher.reset();
+ */
+ reset: function () {
+ // Reset data buffer
+ BufferedBlockAlgorithm.reset.call(this);
+
+ // Perform concrete-hasher logic
+ this._doReset();
+ },
+
+ /**
+ * Updates this hasher with a message.
+ *
+ * @param {WordArray|string} messageUpdate The message to append.
+ *
+ * @return {Hasher} This hasher.
+ *
+ * @example
+ *
+ * hasher.update('message');
+ * hasher.update(wordArray);
+ */
+ update: function (messageUpdate) {
+ // Append
+ this._append(messageUpdate);
+
+ // Update the hash
+ this._process();
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Finalizes the hash computation.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @example
+ *
+ * var hash = hasher.finalize();
+ * var hash = hasher.finalize('message');
+ * var hash = hasher.finalize(wordArray);
+ */
+ finalize: function (messageUpdate) {
+ // Final message update
+ if (messageUpdate) {
+ this._append(messageUpdate);
+ }
+
+ // Perform concrete-hasher logic
+ var hash = this._doFinalize();
+
+ return hash;
+ },
+
+ blockSize: 512/32,
+
+ /**
+ * Creates a shortcut function to a hasher's object interface.
+ *
+ * @param {Hasher} hasher The hasher to create a helper for.
+ *
+ * @return {Function} The shortcut function.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
+ */
+ _createHelper: function (hasher) {
+ return function (message, cfg) {
+ return new hasher.init(cfg).finalize(message);
+ };
+ },
+
+ /**
+ * Creates a shortcut function to the HMAC's object interface.
+ *
+ * @param {Hasher} hasher The hasher to use in this HMAC helper.
+ *
+ * @return {Function} The shortcut function.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
+ */
+ _createHmacHelper: function (hasher) {
+ return function (message, key) {
+ return new C_algo.HMAC.init(hasher, key).finalize(message);
+ };
+ }
+ });
+
+ /**
+ * Algorithm namespace.
+ */
+ var C_algo = C.algo = {};
+
+ return C;
+ }(Math));
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_enc = C.enc;
+
+ /**
+ * Base64 encoding strategy.
+ */
+ var Base64 = C_enc.Base64 = {
+ /**
+ * Converts a word array to a Base64 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The Base64 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+ var map = this._map;
+
+ // Clamp excess bits
+ wordArray.clamp();
+
+ // Convert
+ var base64Chars = [];
+ for (var i = 0; i < sigBytes; i += 3) {
+ var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
+ var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
+
+ var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
+
+ for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {
+ base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
+ }
+ }
+
+ // Add padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ while (base64Chars.length % 4) {
+ base64Chars.push(paddingChar);
+ }
+ }
+
+ return base64Chars.join('');
+ },
+
+ /**
+ * Converts a Base64 string to a word array.
+ *
+ * @param {string} base64Str The Base64 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Base64.parse(base64String);
+ */
+ parse: function (base64Str) {
+ // Shortcuts
+ var base64StrLength = base64Str.length;
+ var map = this._map;
+ var reverseMap = this._reverseMap;
+
+ if (!reverseMap) {
+ reverseMap = this._reverseMap = [];
+ for (var j = 0; j < map.length; j++) {
+ reverseMap[map.charCodeAt(j)] = j;
+ }
+ }
+
+ // Ignore padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ var paddingIndex = base64Str.indexOf(paddingChar);
+ if (paddingIndex !== -1) {
+ base64StrLength = paddingIndex;
+ }
+ }
+
+ // Convert
+ return parseLoop(base64Str, base64StrLength, reverseMap);
+
+ },
+
+ _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
+ };
+
+ function parseLoop(base64Str, base64StrLength, reverseMap) {
+ var words = [];
+ var nBytes = 0;
+ for (var i = 0; i < base64StrLength; i++) {
+ if (i % 4) {
+ var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
+ var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
+ words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8);
+ nBytes++;
+ }
+ }
+ return WordArray.create(words, nBytes);
+ }
+ }());
+
+
+ (function (Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Constants table
+ var T = [];
+
+ // Compute constants
+ (function () {
+ for (var i = 0; i < 64; i++) {
+ T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;
+ }
+ }());
+
+ /**
+ * MD5 hash algorithm.
+ */
+ var MD5 = C_algo.MD5 = Hasher.extend({
+ _doReset: function () {
+ this._hash = new WordArray.init([
+ 0x67452301, 0xefcdab89,
+ 0x98badcfe, 0x10325476
+ ]);
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Swap endian
+ for (var i = 0; i < 16; i++) {
+ // Shortcuts
+ var offset_i = offset + i;
+ var M_offset_i = M[offset_i];
+
+ M[offset_i] = (
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ );
+ }
+
+ // Shortcuts
+ var H = this._hash.words;
+
+ var M_offset_0 = M[offset + 0];
+ var M_offset_1 = M[offset + 1];
+ var M_offset_2 = M[offset + 2];
+ var M_offset_3 = M[offset + 3];
+ var M_offset_4 = M[offset + 4];
+ var M_offset_5 = M[offset + 5];
+ var M_offset_6 = M[offset + 6];
+ var M_offset_7 = M[offset + 7];
+ var M_offset_8 = M[offset + 8];
+ var M_offset_9 = M[offset + 9];
+ var M_offset_10 = M[offset + 10];
+ var M_offset_11 = M[offset + 11];
+ var M_offset_12 = M[offset + 12];
+ var M_offset_13 = M[offset + 13];
+ var M_offset_14 = M[offset + 14];
+ var M_offset_15 = M[offset + 15];
+
+ // Working varialbes
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+
+ // Computation
+ a = FF(a, b, c, d, M_offset_0, 7, T[0]);
+ d = FF(d, a, b, c, M_offset_1, 12, T[1]);
+ c = FF(c, d, a, b, M_offset_2, 17, T[2]);
+ b = FF(b, c, d, a, M_offset_3, 22, T[3]);
+ a = FF(a, b, c, d, M_offset_4, 7, T[4]);
+ d = FF(d, a, b, c, M_offset_5, 12, T[5]);
+ c = FF(c, d, a, b, M_offset_6, 17, T[6]);
+ b = FF(b, c, d, a, M_offset_7, 22, T[7]);
+ a = FF(a, b, c, d, M_offset_8, 7, T[8]);
+ d = FF(d, a, b, c, M_offset_9, 12, T[9]);
+ c = FF(c, d, a, b, M_offset_10, 17, T[10]);
+ b = FF(b, c, d, a, M_offset_11, 22, T[11]);
+ a = FF(a, b, c, d, M_offset_12, 7, T[12]);
+ d = FF(d, a, b, c, M_offset_13, 12, T[13]);
+ c = FF(c, d, a, b, M_offset_14, 17, T[14]);
+ b = FF(b, c, d, a, M_offset_15, 22, T[15]);
+
+ a = GG(a, b, c, d, M_offset_1, 5, T[16]);
+ d = GG(d, a, b, c, M_offset_6, 9, T[17]);
+ c = GG(c, d, a, b, M_offset_11, 14, T[18]);
+ b = GG(b, c, d, a, M_offset_0, 20, T[19]);
+ a = GG(a, b, c, d, M_offset_5, 5, T[20]);
+ d = GG(d, a, b, c, M_offset_10, 9, T[21]);
+ c = GG(c, d, a, b, M_offset_15, 14, T[22]);
+ b = GG(b, c, d, a, M_offset_4, 20, T[23]);
+ a = GG(a, b, c, d, M_offset_9, 5, T[24]);
+ d = GG(d, a, b, c, M_offset_14, 9, T[25]);
+ c = GG(c, d, a, b, M_offset_3, 14, T[26]);
+ b = GG(b, c, d, a, M_offset_8, 20, T[27]);
+ a = GG(a, b, c, d, M_offset_13, 5, T[28]);
+ d = GG(d, a, b, c, M_offset_2, 9, T[29]);
+ c = GG(c, d, a, b, M_offset_7, 14, T[30]);
+ b = GG(b, c, d, a, M_offset_12, 20, T[31]);
+
+ a = HH(a, b, c, d, M_offset_5, 4, T[32]);
+ d = HH(d, a, b, c, M_offset_8, 11, T[33]);
+ c = HH(c, d, a, b, M_offset_11, 16, T[34]);
+ b = HH(b, c, d, a, M_offset_14, 23, T[35]);
+ a = HH(a, b, c, d, M_offset_1, 4, T[36]);
+ d = HH(d, a, b, c, M_offset_4, 11, T[37]);
+ c = HH(c, d, a, b, M_offset_7, 16, T[38]);
+ b = HH(b, c, d, a, M_offset_10, 23, T[39]);
+ a = HH(a, b, c, d, M_offset_13, 4, T[40]);
+ d = HH(d, a, b, c, M_offset_0, 11, T[41]);
+ c = HH(c, d, a, b, M_offset_3, 16, T[42]);
+ b = HH(b, c, d, a, M_offset_6, 23, T[43]);
+ a = HH(a, b, c, d, M_offset_9, 4, T[44]);
+ d = HH(d, a, b, c, M_offset_12, 11, T[45]);
+ c = HH(c, d, a, b, M_offset_15, 16, T[46]);
+ b = HH(b, c, d, a, M_offset_2, 23, T[47]);
+
+ a = II(a, b, c, d, M_offset_0, 6, T[48]);
+ d = II(d, a, b, c, M_offset_7, 10, T[49]);
+ c = II(c, d, a, b, M_offset_14, 15, T[50]);
+ b = II(b, c, d, a, M_offset_5, 21, T[51]);
+ a = II(a, b, c, d, M_offset_12, 6, T[52]);
+ d = II(d, a, b, c, M_offset_3, 10, T[53]);
+ c = II(c, d, a, b, M_offset_10, 15, T[54]);
+ b = II(b, c, d, a, M_offset_1, 21, T[55]);
+ a = II(a, b, c, d, M_offset_8, 6, T[56]);
+ d = II(d, a, b, c, M_offset_15, 10, T[57]);
+ c = II(c, d, a, b, M_offset_6, 15, T[58]);
+ b = II(b, c, d, a, M_offset_13, 21, T[59]);
+ a = II(a, b, c, d, M_offset_4, 6, T[60]);
+ d = II(d, a, b, c, M_offset_11, 10, T[61]);
+ c = II(c, d, a, b, M_offset_2, 15, T[62]);
+ b = II(b, c, d, a, M_offset_9, 21, T[63]);
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+
+ var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
+ var nBitsTotalL = nBitsTotal;
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (
+ (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)
+ );
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
+ (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)
+ );
+
+ data.sigBytes = (dataWords.length + 1) * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var hash = this._hash;
+ var H = hash.words;
+
+ // Swap endian
+ for (var i = 0; i < 4; i++) {
+ // Shortcut
+ var H_i = H[i];
+
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ }
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ function FF(a, b, c, d, x, s, t) {
+ var n = a + ((b & c) | (~b & d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function GG(a, b, c, d, x, s, t) {
+ var n = a + ((b & d) | (c & ~d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function HH(a, b, c, d, x, s, t) {
+ var n = a + (b ^ c ^ d) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function II(a, b, c, d, x, s, t) {
+ var n = a + (c ^ (b | ~d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.MD5('message');
+ * var hash = CryptoJS.MD5(wordArray);
+ */
+ C.MD5 = Hasher._createHelper(MD5);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacMD5(message, key);
+ */
+ C.HmacMD5 = Hasher._createHmacHelper(MD5);
+ }(Math));
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Reusable object
+ var W = [];
+
+ /**
+ * SHA-1 hash algorithm.
+ */
+ var SHA1 = C_algo.SHA1 = Hasher.extend({
+ _doReset: function () {
+ this._hash = new WordArray.init([
+ 0x67452301, 0xefcdab89,
+ 0x98badcfe, 0x10325476,
+ 0xc3d2e1f0
+ ]);
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcut
+ var H = this._hash.words;
+
+ // Working variables
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+ var e = H[4];
+
+ // Computation
+ for (var i = 0; i < 80; i++) {
+ if (i < 16) {
+ W[i] = M[offset + i] | 0;
+ } else {
+ var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
+ W[i] = (n << 1) | (n >>> 31);
+ }
+
+ var t = ((a << 5) | (a >>> 27)) + e + W[i];
+ if (i < 20) {
+ t += ((b & c) | (~b & d)) + 0x5a827999;
+ } else if (i < 40) {
+ t += (b ^ c ^ d) + 0x6ed9eba1;
+ } else if (i < 60) {
+ t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;
+ } else /* if (i < 80) */ {
+ t += (b ^ c ^ d) - 0x359d3e2a;
+ }
+
+ e = d;
+ d = c;
+ c = (b << 30) | (b >>> 2);
+ b = a;
+ a = t;
+ }
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ H[4] = (H[4] + e) | 0;
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Return final computed hash
+ return this._hash;
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA1('message');
+ * var hash = CryptoJS.SHA1(wordArray);
+ */
+ C.SHA1 = Hasher._createHelper(SHA1);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA1(message, key);
+ */
+ C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
+ }());
+
+
+ (function (Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Initialization and round constants tables
+ var H = [];
+ var K = [];
+
+ // Compute constants
+ (function () {
+ function isPrime(n) {
+ var sqrtN = Math.sqrt(n);
+ for (var factor = 2; factor <= sqrtN; factor++) {
+ if (!(n % factor)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ function getFractionalBits(n) {
+ return ((n - (n | 0)) * 0x100000000) | 0;
+ }
+
+ var n = 2;
+ var nPrime = 0;
+ while (nPrime < 64) {
+ if (isPrime(n)) {
+ if (nPrime < 8) {
+ H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
+ }
+ K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
+
+ nPrime++;
+ }
+
+ n++;
+ }
+ }());
+
+ // Reusable object
+ var W = [];
+
+ /**
+ * SHA-256 hash algorithm.
+ */
+ var SHA256 = C_algo.SHA256 = Hasher.extend({
+ _doReset: function () {
+ this._hash = new WordArray.init(H.slice(0));
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcut
+ var H = this._hash.words;
+
+ // Working variables
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+ var e = H[4];
+ var f = H[5];
+ var g = H[6];
+ var h = H[7];
+
+ // Computation
+ for (var i = 0; i < 64; i++) {
+ if (i < 16) {
+ W[i] = M[offset + i] | 0;
+ } else {
+ var gamma0x = W[i - 15];
+ var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
+ ((gamma0x << 14) | (gamma0x >>> 18)) ^
+ (gamma0x >>> 3);
+
+ var gamma1x = W[i - 2];
+ var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
+ ((gamma1x << 13) | (gamma1x >>> 19)) ^
+ (gamma1x >>> 10);
+
+ W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
+ }
+
+ var ch = (e & f) ^ (~e & g);
+ var maj = (a & b) ^ (a & c) ^ (b & c);
+
+ var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));
+ var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
+
+ var t1 = h + sigma1 + ch + K[i] + W[i];
+ var t2 = sigma0 + maj;
+
+ h = g;
+ g = f;
+ f = e;
+ e = (d + t1) | 0;
+ d = c;
+ c = b;
+ b = a;
+ a = (t1 + t2) | 0;
+ }
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ H[4] = (H[4] + e) | 0;
+ H[5] = (H[5] + f) | 0;
+ H[6] = (H[6] + g) | 0;
+ H[7] = (H[7] + h) | 0;
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Return final computed hash
+ return this._hash;
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA256('message');
+ * var hash = CryptoJS.SHA256(wordArray);
+ */
+ C.SHA256 = Hasher._createHelper(SHA256);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA256(message, key);
+ */
+ C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
+ }(Math));
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_enc = C.enc;
+
+ /**
+ * UTF-16 BE encoding strategy.
+ */
+ var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
+ /**
+ * Converts a word array to a UTF-16 BE string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-16 BE string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var utf16Chars = [];
+ for (var i = 0; i < sigBytes; i += 2) {
+ var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;
+ utf16Chars.push(String.fromCharCode(codePoint));
+ }
+
+ return utf16Chars.join('');
+ },
+
+ /**
+ * Converts a UTF-16 BE string to a word array.
+ *
+ * @param {string} utf16Str The UTF-16 BE string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
+ */
+ parse: function (utf16Str) {
+ // Shortcut
+ var utf16StrLength = utf16Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < utf16StrLength; i++) {
+ words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);
+ }
+
+ return WordArray.create(words, utf16StrLength * 2);
+ }
+ };
+
+ /**
+ * UTF-16 LE encoding strategy.
+ */
+ C_enc.Utf16LE = {
+ /**
+ * Converts a word array to a UTF-16 LE string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-16 LE string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
+ */
+ stringify: function (wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var utf16Chars = [];
+ for (var i = 0; i < sigBytes; i += 2) {
+ var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);
+ utf16Chars.push(String.fromCharCode(codePoint));
+ }
+
+ return utf16Chars.join('');
+ },
+
+ /**
+ * Converts a UTF-16 LE string to a word array.
+ *
+ * @param {string} utf16Str The UTF-16 LE string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
+ */
+ parse: function (utf16Str) {
+ // Shortcut
+ var utf16StrLength = utf16Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < utf16StrLength; i++) {
+ words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));
+ }
+
+ return WordArray.create(words, utf16StrLength * 2);
+ }
+ };
+
+ function swapEndian(word) {
+ return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);
+ }
+ }());
+
+
+ (function () {
+ // Check if typed arrays are supported
+ if (typeof ArrayBuffer != 'function') {
+ return;
+ }
+
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+
+ // Reference original init
+ var superInit = WordArray.init;
+
+ // Augment WordArray.init to handle typed arrays
+ var subInit = WordArray.init = function (typedArray) {
+ // Convert buffers to uint8
+ if (typedArray instanceof ArrayBuffer) {
+ typedArray = new Uint8Array(typedArray);
+ }
+
+ // Convert other array views to uint8
+ if (
+ typedArray instanceof Int8Array ||
+ (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) ||
+ typedArray instanceof Int16Array ||
+ typedArray instanceof Uint16Array ||
+ typedArray instanceof Int32Array ||
+ typedArray instanceof Uint32Array ||
+ typedArray instanceof Float32Array ||
+ typedArray instanceof Float64Array
+ ) {
+ typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
+ }
+
+ // Handle Uint8Array
+ if (typedArray instanceof Uint8Array) {
+ // Shortcut
+ var typedArrayByteLength = typedArray.byteLength;
+
+ // Extract bytes
+ var words = [];
+ for (var i = 0; i < typedArrayByteLength; i++) {
+ words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);
+ }
+
+ // Initialize this word array
+ superInit.call(this, words, typedArrayByteLength);
+ } else {
+ // Else call normal init
+ superInit.apply(this, arguments);
+ }
+ };
+
+ subInit.prototype = WordArray;
+ }());
+
+
+ /** @preserve
+ (c) 2012 by Cédric Mesnil. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ (function (Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Constants table
+ var _zl = WordArray.create([
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);
+ var _zr = WordArray.create([
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);
+ var _sl = WordArray.create([
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);
+ var _sr = WordArray.create([
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);
+
+ var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
+ var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
+
+ /**
+ * RIPEMD160 hash algorithm.
+ */
+ var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
+ _doReset: function () {
+ this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
+ },
+
+ _doProcessBlock: function (M, offset) {
+
+ // Swap endian
+ for (var i = 0; i < 16; i++) {
+ // Shortcuts
+ var offset_i = offset + i;
+ var M_offset_i = M[offset_i];
+
+ // Swap
+ M[offset_i] = (
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ );
+ }
+ // Shortcut
+ var H = this._hash.words;
+ var hl = _hl.words;
+ var hr = _hr.words;
+ var zl = _zl.words;
+ var zr = _zr.words;
+ var sl = _sl.words;
+ var sr = _sr.words;
+
+ // Working variables
+ var al, bl, cl, dl, el;
+ var ar, br, cr, dr, er;
+
+ ar = al = H[0];
+ br = bl = H[1];
+ cr = cl = H[2];
+ dr = dl = H[3];
+ er = el = H[4];
+ // Computation
+ var t;
+ for (var i = 0; i < 80; i += 1) {
+ t = (al + M[offset+zl[i]])|0;
+ if (i<16){
+ t += f1(bl,cl,dl) + hl[0];
+ } else if (i<32) {
+ t += f2(bl,cl,dl) + hl[1];
+ } else if (i<48) {
+ t += f3(bl,cl,dl) + hl[2];
+ } else if (i<64) {
+ t += f4(bl,cl,dl) + hl[3];
+ } else {// if (i<80) {
+ t += f5(bl,cl,dl) + hl[4];
+ }
+ t = t|0;
+ t = rotl(t,sl[i]);
+ t = (t+el)|0;
+ al = el;
+ el = dl;
+ dl = rotl(cl, 10);
+ cl = bl;
+ bl = t;
+
+ t = (ar + M[offset+zr[i]])|0;
+ if (i<16){
+ t += f5(br,cr,dr) + hr[0];
+ } else if (i<32) {
+ t += f4(br,cr,dr) + hr[1];
+ } else if (i<48) {
+ t += f3(br,cr,dr) + hr[2];
+ } else if (i<64) {
+ t += f2(br,cr,dr) + hr[3];
+ } else {// if (i<80) {
+ t += f1(br,cr,dr) + hr[4];
+ }
+ t = t|0;
+ t = rotl(t,sr[i]) ;
+ t = (t+er)|0;
+ ar = er;
+ er = dr;
+ dr = rotl(cr, 10);
+ cr = br;
+ br = t;
+ }
+ // Intermediate hash value
+ t = (H[1] + cl + dr)|0;
+ H[1] = (H[2] + dl + er)|0;
+ H[2] = (H[3] + el + ar)|0;
+ H[3] = (H[4] + al + br)|0;
+ H[4] = (H[0] + bl + cr)|0;
+ H[0] = t;
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
+ (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
+ );
+ data.sigBytes = (dataWords.length + 1) * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var hash = this._hash;
+ var H = hash.words;
+
+ // Swap endian
+ for (var i = 0; i < 5; i++) {
+ // Shortcut
+ var H_i = H[i];
+
+ // Swap
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ }
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+
+ function f1(x, y, z) {
+ return ((x) ^ (y) ^ (z));
+
+ }
+
+ function f2(x, y, z) {
+ return (((x)&(y)) | ((~x)&(z)));
+ }
+
+ function f3(x, y, z) {
+ return (((x) | (~(y))) ^ (z));
+ }
+
+ function f4(x, y, z) {
+ return (((x) & (z)) | ((y)&(~(z))));
+ }
+
+ function f5(x, y, z) {
+ return ((x) ^ ((y) |(~(z))));
+
+ }
+
+ function rotl(x,n) {
+ return (x<>>(32-n));
+ }
+
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.RIPEMD160('message');
+ * var hash = CryptoJS.RIPEMD160(wordArray);
+ */
+ C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacRIPEMD160(message, key);
+ */
+ C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
+ }(Math));
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var C_enc = C.enc;
+ var Utf8 = C_enc.Utf8;
+ var C_algo = C.algo;
+
+ /**
+ * HMAC algorithm.
+ */
+ var HMAC = C_algo.HMAC = Base.extend({
+ /**
+ * Initializes a newly created HMAC.
+ *
+ * @param {Hasher} hasher The hash algorithm to use.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @example
+ *
+ * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
+ */
+ init: function (hasher, key) {
+ // Init hasher
+ hasher = this._hasher = new hasher.init();
+
+ // Convert string to WordArray, else assume WordArray already
+ if (typeof key == 'string') {
+ key = Utf8.parse(key);
+ }
+
+ // Shortcuts
+ var hasherBlockSize = hasher.blockSize;
+ var hasherBlockSizeBytes = hasherBlockSize * 4;
+
+ // Allow arbitrary length keys
+ if (key.sigBytes > hasherBlockSizeBytes) {
+ key = hasher.finalize(key);
+ }
+
+ // Clamp excess bits
+ key.clamp();
+
+ // Clone key for inner and outer pads
+ var oKey = this._oKey = key.clone();
+ var iKey = this._iKey = key.clone();
+
+ // Shortcuts
+ var oKeyWords = oKey.words;
+ var iKeyWords = iKey.words;
+
+ // XOR keys with pad constants
+ for (var i = 0; i < hasherBlockSize; i++) {
+ oKeyWords[i] ^= 0x5c5c5c5c;
+ iKeyWords[i] ^= 0x36363636;
+ }
+ oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this HMAC to its initial state.
+ *
+ * @example
+ *
+ * hmacHasher.reset();
+ */
+ reset: function () {
+ // Shortcut
+ var hasher = this._hasher;
+
+ // Reset
+ hasher.reset();
+ hasher.update(this._iKey);
+ },
+
+ /**
+ * Updates this HMAC with a message.
+ *
+ * @param {WordArray|string} messageUpdate The message to append.
+ *
+ * @return {HMAC} This HMAC instance.
+ *
+ * @example
+ *
+ * hmacHasher.update('message');
+ * hmacHasher.update(wordArray);
+ */
+ update: function (messageUpdate) {
+ this._hasher.update(messageUpdate);
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Finalizes the HMAC computation.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @example
+ *
+ * var hmac = hmacHasher.finalize();
+ * var hmac = hmacHasher.finalize('message');
+ * var hmac = hmacHasher.finalize(wordArray);
+ */
+ finalize: function (messageUpdate) {
+ // Shortcut
+ var hasher = this._hasher;
+
+ // Compute HMAC
+ var innerHash = hasher.finalize(messageUpdate);
+ hasher.reset();
+ var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));
+
+ return hmac;
+ }
+ });
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var SHA1 = C_algo.SHA1;
+ var HMAC = C_algo.HMAC;
+
+ /**
+ * Password-Based Key Derivation Function 2 algorithm.
+ */
+ var PBKDF2 = C_algo.PBKDF2 = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
+ * @property {Hasher} hasher The hasher to use. Default: SHA1
+ * @property {number} iterations The number of iterations to perform. Default: 1
+ */
+ cfg: Base.extend({
+ keySize: 128/32,
+ hasher: SHA1,
+ iterations: 1
+ }),
+
+ /**
+ * Initializes a newly created key derivation function.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for the derivation.
+ *
+ * @example
+ *
+ * var kdf = CryptoJS.algo.PBKDF2.create();
+ * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
+ * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
+ */
+ init: function (cfg) {
+ this.cfg = this.cfg.extend(cfg);
+ },
+
+ /**
+ * Computes the Password-Based Key Derivation Function 2.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @example
+ *
+ * var key = kdf.compute(password, salt);
+ */
+ compute: function (password, salt) {
+ // Shortcut
+ var cfg = this.cfg;
+
+ // Init HMAC
+ var hmac = HMAC.create(cfg.hasher, password);
+
+ // Initial values
+ var derivedKey = WordArray.create();
+ var blockIndex = WordArray.create([0x00000001]);
+
+ // Shortcuts
+ var derivedKeyWords = derivedKey.words;
+ var blockIndexWords = blockIndex.words;
+ var keySize = cfg.keySize;
+ var iterations = cfg.iterations;
+
+ // Generate key
+ while (derivedKeyWords.length < keySize) {
+ var block = hmac.update(salt).finalize(blockIndex);
+ hmac.reset();
+
+ // Shortcuts
+ var blockWords = block.words;
+ var blockWordsLength = blockWords.length;
+
+ // Iterations
+ var intermediate = block;
+ for (var i = 1; i < iterations; i++) {
+ intermediate = hmac.finalize(intermediate);
+ hmac.reset();
+
+ // Shortcut
+ var intermediateWords = intermediate.words;
+
+ // XOR intermediate with block
+ for (var j = 0; j < blockWordsLength; j++) {
+ blockWords[j] ^= intermediateWords[j];
+ }
+ }
+
+ derivedKey.concat(block);
+ blockIndexWords[0]++;
+ }
+ derivedKey.sigBytes = keySize * 4;
+
+ return derivedKey;
+ }
+ });
+
+ /**
+ * Computes the Password-Based Key Derivation Function 2.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ * @param {Object} cfg (Optional) The configuration options to use for this computation.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var key = CryptoJS.PBKDF2(password, salt);
+ * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
+ * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
+ */
+ C.PBKDF2 = function (password, salt, cfg) {
+ return PBKDF2.create(cfg).compute(password, salt);
+ };
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var MD5 = C_algo.MD5;
+
+ /**
+ * This key derivation function is meant to conform with EVP_BytesToKey.
+ * www.openssl.org/docs/crypto/EVP_BytesToKey.html
+ */
+ var EvpKDF = C_algo.EvpKDF = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
+ * @property {Hasher} hasher The hash algorithm to use. Default: MD5
+ * @property {number} iterations The number of iterations to perform. Default: 1
+ */
+ cfg: Base.extend({
+ keySize: 128/32,
+ hasher: MD5,
+ iterations: 1
+ }),
+
+ /**
+ * Initializes a newly created key derivation function.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for the derivation.
+ *
+ * @example
+ *
+ * var kdf = CryptoJS.algo.EvpKDF.create();
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
+ */
+ init: function (cfg) {
+ this.cfg = this.cfg.extend(cfg);
+ },
+
+ /**
+ * Derives a key from a password.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @example
+ *
+ * var key = kdf.compute(password, salt);
+ */
+ compute: function (password, salt) {
+ // Shortcut
+ var cfg = this.cfg;
+
+ // Init hasher
+ var hasher = cfg.hasher.create();
+
+ // Initial values
+ var derivedKey = WordArray.create();
+
+ // Shortcuts
+ var derivedKeyWords = derivedKey.words;
+ var keySize = cfg.keySize;
+ var iterations = cfg.iterations;
+
+ // Generate key
+ while (derivedKeyWords.length < keySize) {
+ if (block) {
+ hasher.update(block);
+ }
+ var block = hasher.update(password).finalize(salt);
+ hasher.reset();
+
+ // Iterations
+ for (var i = 1; i < iterations; i++) {
+ block = hasher.finalize(block);
+ hasher.reset();
+ }
+
+ derivedKey.concat(block);
+ }
+ derivedKey.sigBytes = keySize * 4;
+
+ return derivedKey;
+ }
+ });
+
+ /**
+ * Derives a key from a password.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ * @param {Object} cfg (Optional) The configuration options to use for this computation.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var key = CryptoJS.EvpKDF(password, salt);
+ * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
+ * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
+ */
+ C.EvpKDF = function (password, salt, cfg) {
+ return EvpKDF.create(cfg).compute(password, salt);
+ };
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var SHA256 = C_algo.SHA256;
+
+ /**
+ * SHA-224 hash algorithm.
+ */
+ var SHA224 = C_algo.SHA224 = SHA256.extend({
+ _doReset: function () {
+ this._hash = new WordArray.init([
+ 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
+ 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
+ ]);
+ },
+
+ _doFinalize: function () {
+ var hash = SHA256._doFinalize.call(this);
+
+ hash.sigBytes -= 4;
+
+ return hash;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA224('message');
+ * var hash = CryptoJS.SHA224(wordArray);
+ */
+ C.SHA224 = SHA256._createHelper(SHA224);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA224(message, key);
+ */
+ C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
+ }());
+
+
+ (function (undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var X32WordArray = C_lib.WordArray;
+
+ /**
+ * x64 namespace.
+ */
+ var C_x64 = C.x64 = {};
+
+ /**
+ * A 64-bit word.
+ */
+ var X64Word = C_x64.Word = Base.extend({
+ /**
+ * Initializes a newly created 64-bit word.
+ *
+ * @param {number} high The high 32 bits.
+ * @param {number} low The low 32 bits.
+ *
+ * @example
+ *
+ * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
+ */
+ init: function (high, low) {
+ this.high = high;
+ this.low = low;
+ }
+
+ /**
+ * Bitwise NOTs this word.
+ *
+ * @return {X64Word} A new x64-Word object after negating.
+ *
+ * @example
+ *
+ * var negated = x64Word.not();
+ */
+ // not: function () {
+ // var high = ~this.high;
+ // var low = ~this.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise ANDs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to AND with this word.
+ *
+ * @return {X64Word} A new x64-Word object after ANDing.
+ *
+ * @example
+ *
+ * var anded = x64Word.and(anotherX64Word);
+ */
+ // and: function (word) {
+ // var high = this.high & word.high;
+ // var low = this.low & word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise ORs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to OR with this word.
+ *
+ * @return {X64Word} A new x64-Word object after ORing.
+ *
+ * @example
+ *
+ * var ored = x64Word.or(anotherX64Word);
+ */
+ // or: function (word) {
+ // var high = this.high | word.high;
+ // var low = this.low | word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise XORs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to XOR with this word.
+ *
+ * @return {X64Word} A new x64-Word object after XORing.
+ *
+ * @example
+ *
+ * var xored = x64Word.xor(anotherX64Word);
+ */
+ // xor: function (word) {
+ // var high = this.high ^ word.high;
+ // var low = this.low ^ word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Shifts this word n bits to the left.
+ *
+ * @param {number} n The number of bits to shift.
+ *
+ * @return {X64Word} A new x64-Word object after shifting.
+ *
+ * @example
+ *
+ * var shifted = x64Word.shiftL(25);
+ */
+ // shiftL: function (n) {
+ // if (n < 32) {
+ // var high = (this.high << n) | (this.low >>> (32 - n));
+ // var low = this.low << n;
+ // } else {
+ // var high = this.low << (n - 32);
+ // var low = 0;
+ // }
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Shifts this word n bits to the right.
+ *
+ * @param {number} n The number of bits to shift.
+ *
+ * @return {X64Word} A new x64-Word object after shifting.
+ *
+ * @example
+ *
+ * var shifted = x64Word.shiftR(7);
+ */
+ // shiftR: function (n) {
+ // if (n < 32) {
+ // var low = (this.low >>> n) | (this.high << (32 - n));
+ // var high = this.high >>> n;
+ // } else {
+ // var low = this.high >>> (n - 32);
+ // var high = 0;
+ // }
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Rotates this word n bits to the left.
+ *
+ * @param {number} n The number of bits to rotate.
+ *
+ * @return {X64Word} A new x64-Word object after rotating.
+ *
+ * @example
+ *
+ * var rotated = x64Word.rotL(25);
+ */
+ // rotL: function (n) {
+ // return this.shiftL(n).or(this.shiftR(64 - n));
+ // },
+
+ /**
+ * Rotates this word n bits to the right.
+ *
+ * @param {number} n The number of bits to rotate.
+ *
+ * @return {X64Word} A new x64-Word object after rotating.
+ *
+ * @example
+ *
+ * var rotated = x64Word.rotR(7);
+ */
+ // rotR: function (n) {
+ // return this.shiftR(n).or(this.shiftL(64 - n));
+ // },
+
+ /**
+ * Adds this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to add with this word.
+ *
+ * @return {X64Word} A new x64-Word object after adding.
+ *
+ * @example
+ *
+ * var added = x64Word.add(anotherX64Word);
+ */
+ // add: function (word) {
+ // var low = (this.low + word.low) | 0;
+ // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
+ // var high = (this.high + word.high + carry) | 0;
+
+ // return X64Word.create(high, low);
+ // }
+ });
+
+ /**
+ * An array of 64-bit words.
+ *
+ * @property {Array} words The array of CryptoJS.x64.Word objects.
+ * @property {number} sigBytes The number of significant bytes in this word array.
+ */
+ var X64WordArray = C_x64.WordArray = Base.extend({
+ /**
+ * Initializes a newly created word array.
+ *
+ * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create();
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create([
+ * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
+ * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
+ * ]);
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create([
+ * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
+ * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
+ * ], 10);
+ */
+ init: function (words, sigBytes) {
+ words = this.words = words || [];
+
+ if (sigBytes != undefined) {
+ this.sigBytes = sigBytes;
+ } else {
+ this.sigBytes = words.length * 8;
+ }
+ },
+
+ /**
+ * Converts this 64-bit word array to a 32-bit word array.
+ *
+ * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
+ *
+ * @example
+ *
+ * var x32WordArray = x64WordArray.toX32();
+ */
+ toX32: function () {
+ // Shortcuts
+ var x64Words = this.words;
+ var x64WordsLength = x64Words.length;
+
+ // Convert
+ var x32Words = [];
+ for (var i = 0; i < x64WordsLength; i++) {
+ var x64Word = x64Words[i];
+ x32Words.push(x64Word.high);
+ x32Words.push(x64Word.low);
+ }
+
+ return X32WordArray.create(x32Words, this.sigBytes);
+ },
+
+ /**
+ * Creates a copy of this word array.
+ *
+ * @return {X64WordArray} The clone.
+ *
+ * @example
+ *
+ * var clone = x64WordArray.clone();
+ */
+ clone: function () {
+ var clone = Base.clone.call(this);
+
+ // Clone "words" array
+ var words = clone.words = this.words.slice(0);
+
+ // Clone each X64Word object
+ var wordsLength = words.length;
+ for (var i = 0; i < wordsLength; i++) {
+ words[i] = words[i].clone();
+ }
+
+ return clone;
+ }
+ });
+ }());
+
+
+ (function (Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var C_algo = C.algo;
+
+ // Constants tables
+ var RHO_OFFSETS = [];
+ var PI_INDEXES = [];
+ var ROUND_CONSTANTS = [];
+
+ // Compute Constants
+ (function () {
+ // Compute rho offset constants
+ var x = 1, y = 0;
+ for (var t = 0; t < 24; t++) {
+ RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;
+
+ var newX = y % 5;
+ var newY = (2 * x + 3 * y) % 5;
+ x = newX;
+ y = newY;
+ }
+
+ // Compute pi index constants
+ for (var x = 0; x < 5; x++) {
+ for (var y = 0; y < 5; y++) {
+ PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;
+ }
+ }
+
+ // Compute round constants
+ var LFSR = 0x01;
+ for (var i = 0; i < 24; i++) {
+ var roundConstantMsw = 0;
+ var roundConstantLsw = 0;
+
+ for (var j = 0; j < 7; j++) {
+ if (LFSR & 0x01) {
+ var bitPosition = (1 << j) - 1;
+ if (bitPosition < 32) {
+ roundConstantLsw ^= 1 << bitPosition;
+ } else /* if (bitPosition >= 32) */ {
+ roundConstantMsw ^= 1 << (bitPosition - 32);
+ }
+ }
+
+ // Compute next LFSR
+ if (LFSR & 0x80) {
+ // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
+ LFSR = (LFSR << 1) ^ 0x71;
+ } else {
+ LFSR <<= 1;
+ }
+ }
+
+ ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
+ }
+ }());
+
+ // Reusable objects for temporary values
+ var T = [];
+ (function () {
+ for (var i = 0; i < 25; i++) {
+ T[i] = X64Word.create();
+ }
+ }());
+
+ /**
+ * SHA-3 hash algorithm.
+ */
+ var SHA3 = C_algo.SHA3 = Hasher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} outputLength
+ * The desired number of bits in the output hash.
+ * Only values permitted are: 224, 256, 384, 512.
+ * Default: 512
+ */
+ cfg: Hasher.cfg.extend({
+ outputLength: 512
+ }),
+
+ _doReset: function () {
+ var state = this._state = []
+ for (var i = 0; i < 25; i++) {
+ state[i] = new X64Word.init();
+ }
+
+ this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcuts
+ var state = this._state;
+ var nBlockSizeLanes = this.blockSize / 2;
+
+ // Absorb
+ for (var i = 0; i < nBlockSizeLanes; i++) {
+ // Shortcuts
+ var M2i = M[offset + 2 * i];
+ var M2i1 = M[offset + 2 * i + 1];
+
+ // Swap endian
+ M2i = (
+ (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |
+ (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)
+ );
+ M2i1 = (
+ (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |
+ (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)
+ );
+
+ // Absorb message into state
+ var lane = state[i];
+ lane.high ^= M2i1;
+ lane.low ^= M2i;
+ }
+
+ // Rounds
+ for (var round = 0; round < 24; round++) {
+ // Theta
+ for (var x = 0; x < 5; x++) {
+ // Mix column lanes
+ var tMsw = 0, tLsw = 0;
+ for (var y = 0; y < 5; y++) {
+ var lane = state[x + 5 * y];
+ tMsw ^= lane.high;
+ tLsw ^= lane.low;
+ }
+
+ // Temporary values
+ var Tx = T[x];
+ Tx.high = tMsw;
+ Tx.low = tLsw;
+ }
+ for (var x = 0; x < 5; x++) {
+ // Shortcuts
+ var Tx4 = T[(x + 4) % 5];
+ var Tx1 = T[(x + 1) % 5];
+ var Tx1Msw = Tx1.high;
+ var Tx1Lsw = Tx1.low;
+
+ // Mix surrounding columns
+ var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));
+ var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));
+ for (var y = 0; y < 5; y++) {
+ var lane = state[x + 5 * y];
+ lane.high ^= tMsw;
+ lane.low ^= tLsw;
+ }
+ }
+
+ // Rho Pi
+ for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
+ // Shortcuts
+ var lane = state[laneIndex];
+ var laneMsw = lane.high;
+ var laneLsw = lane.low;
+ var rhoOffset = RHO_OFFSETS[laneIndex];
+
+ // Rotate lanes
+ if (rhoOffset < 32) {
+ var tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));
+ var tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));
+ } else /* if (rhoOffset >= 32) */ {
+ var tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));
+ var tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));
+ }
+
+ // Transpose lanes
+ var TPiLane = T[PI_INDEXES[laneIndex]];
+ TPiLane.high = tMsw;
+ TPiLane.low = tLsw;
+ }
+
+ // Rho pi at x = y = 0
+ var T0 = T[0];
+ var state0 = state[0];
+ T0.high = state0.high;
+ T0.low = state0.low;
+
+ // Chi
+ for (var x = 0; x < 5; x++) {
+ for (var y = 0; y < 5; y++) {
+ // Shortcuts
+ var laneIndex = x + 5 * y;
+ var lane = state[laneIndex];
+ var TLane = T[laneIndex];
+ var Tx1Lane = T[((x + 1) % 5) + 5 * y];
+ var Tx2Lane = T[((x + 2) % 5) + 5 * y];
+
+ // Mix rows
+ lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);
+ lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);
+ }
+ }
+
+ // Iota
+ var lane = state[0];
+ var roundConstant = ROUND_CONSTANTS[round];
+ lane.high ^= roundConstant.high;
+ lane.low ^= roundConstant.low;;
+ }
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+ var blockSizeBits = this.blockSize * 32;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);
+ dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var state = this._state;
+ var outputLengthBytes = this.cfg.outputLength / 8;
+ var outputLengthLanes = outputLengthBytes / 8;
+
+ // Squeeze
+ var hashWords = [];
+ for (var i = 0; i < outputLengthLanes; i++) {
+ // Shortcuts
+ var lane = state[i];
+ var laneMsw = lane.high;
+ var laneLsw = lane.low;
+
+ // Swap endian
+ laneMsw = (
+ (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |
+ (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)
+ );
+ laneLsw = (
+ (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |
+ (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)
+ );
+
+ // Squeeze state to retrieve hash
+ hashWords.push(laneLsw);
+ hashWords.push(laneMsw);
+ }
+
+ // Return final computed hash
+ return new WordArray.init(hashWords, outputLengthBytes);
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+
+ var state = clone._state = this._state.slice(0);
+ for (var i = 0; i < 25; i++) {
+ state[i] = state[i].clone();
+ }
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA3('message');
+ * var hash = CryptoJS.SHA3(wordArray);
+ */
+ C.SHA3 = Hasher._createHelper(SHA3);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA3(message, key);
+ */
+ C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
+ }(Math));
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Hasher = C_lib.Hasher;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var X64WordArray = C_x64.WordArray;
+ var C_algo = C.algo;
+
+ function X64Word_create() {
+ return X64Word.create.apply(X64Word, arguments);
+ }
+
+ // Constants
+ var K = [
+ X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),
+ X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),
+ X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),
+ X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),
+ X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),
+ X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),
+ X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),
+ X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),
+ X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),
+ X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),
+ X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),
+ X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),
+ X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),
+ X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),
+ X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),
+ X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),
+ X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),
+ X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),
+ X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),
+ X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),
+ X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),
+ X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),
+ X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),
+ X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),
+ X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),
+ X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),
+ X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),
+ X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),
+ X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),
+ X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),
+ X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),
+ X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),
+ X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),
+ X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),
+ X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),
+ X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),
+ X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),
+ X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),
+ X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),
+ X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)
+ ];
+
+ // Reusable objects
+ var W = [];
+ (function () {
+ for (var i = 0; i < 80; i++) {
+ W[i] = X64Word_create();
+ }
+ }());
+
+ /**
+ * SHA-512 hash algorithm.
+ */
+ var SHA512 = C_algo.SHA512 = Hasher.extend({
+ _doReset: function () {
+ this._hash = new X64WordArray.init([
+ new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),
+ new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),
+ new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),
+ new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)
+ ]);
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcuts
+ var H = this._hash.words;
+
+ var H0 = H[0];
+ var H1 = H[1];
+ var H2 = H[2];
+ var H3 = H[3];
+ var H4 = H[4];
+ var H5 = H[5];
+ var H6 = H[6];
+ var H7 = H[7];
+
+ var H0h = H0.high;
+ var H0l = H0.low;
+ var H1h = H1.high;
+ var H1l = H1.low;
+ var H2h = H2.high;
+ var H2l = H2.low;
+ var H3h = H3.high;
+ var H3l = H3.low;
+ var H4h = H4.high;
+ var H4l = H4.low;
+ var H5h = H5.high;
+ var H5l = H5.low;
+ var H6h = H6.high;
+ var H6l = H6.low;
+ var H7h = H7.high;
+ var H7l = H7.low;
+
+ // Working variables
+ var ah = H0h;
+ var al = H0l;
+ var bh = H1h;
+ var bl = H1l;
+ var ch = H2h;
+ var cl = H2l;
+ var dh = H3h;
+ var dl = H3l;
+ var eh = H4h;
+ var el = H4l;
+ var fh = H5h;
+ var fl = H5l;
+ var gh = H6h;
+ var gl = H6l;
+ var hh = H7h;
+ var hl = H7l;
+
+ // Rounds
+ for (var i = 0; i < 80; i++) {
+ // Shortcut
+ var Wi = W[i];
+
+ // Extend message
+ if (i < 16) {
+ var Wih = Wi.high = M[offset + i * 2] | 0;
+ var Wil = Wi.low = M[offset + i * 2 + 1] | 0;
+ } else {
+ // Gamma0
+ var gamma0x = W[i - 15];
+ var gamma0xh = gamma0x.high;
+ var gamma0xl = gamma0x.low;
+ var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);
+ var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));
+
+ // Gamma1
+ var gamma1x = W[i - 2];
+ var gamma1xh = gamma1x.high;
+ var gamma1xl = gamma1x.low;
+ var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);
+ var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));
+
+ // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
+ var Wi7 = W[i - 7];
+ var Wi7h = Wi7.high;
+ var Wi7l = Wi7.low;
+
+ var Wi16 = W[i - 16];
+ var Wi16h = Wi16.high;
+ var Wi16l = Wi16.low;
+
+ var Wil = gamma0l + Wi7l;
+ var Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);
+ var Wil = Wil + gamma1l;
+ var Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);
+ var Wil = Wil + Wi16l;
+ var Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);
+
+ Wi.high = Wih;
+ Wi.low = Wil;
+ }
+
+ var chh = (eh & fh) ^ (~eh & gh);
+ var chl = (el & fl) ^ (~el & gl);
+ var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);
+ var majl = (al & bl) ^ (al & cl) ^ (bl & cl);
+
+ var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));
+ var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));
+ var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));
+ var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));
+
+ // t1 = h + sigma1 + ch + K[i] + W[i]
+ var Ki = K[i];
+ var Kih = Ki.high;
+ var Kil = Ki.low;
+
+ var t1l = hl + sigma1l;
+ var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);
+ var t1l = t1l + chl;
+ var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);
+ var t1l = t1l + Kil;
+ var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);
+ var t1l = t1l + Wil;
+ var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);
+
+ // t2 = sigma0 + maj
+ var t2l = sigma0l + majl;
+ var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);
+
+ // Update working variables
+ hh = gh;
+ hl = gl;
+ gh = fh;
+ gl = fl;
+ fh = eh;
+ fl = el;
+ el = (dl + t1l) | 0;
+ eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;
+ dh = ch;
+ dl = cl;
+ ch = bh;
+ cl = bl;
+ bh = ah;
+ bl = al;
+ al = (t1l + t2l) | 0;
+ ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;
+ }
+
+ // Intermediate hash value
+ H0l = H0.low = (H0l + al);
+ H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));
+ H1l = H1.low = (H1l + bl);
+ H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));
+ H2l = H2.low = (H2l + cl);
+ H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));
+ H3l = H3.low = (H3l + dl);
+ H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));
+ H4l = H4.low = (H4l + el);
+ H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));
+ H5l = H5.low = (H5l + fl);
+ H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));
+ H6l = H6.low = (H6l + gl);
+ H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));
+ H7l = H7.low = (H7l + hl);
+ H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));
+ },
+
+ _doFinalize: function () {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Convert hash to 32-bit word array before returning
+ var hash = this._hash.toX32();
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function () {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ },
+
+ blockSize: 1024/32
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA512('message');
+ * var hash = CryptoJS.SHA512(wordArray);
+ */
+ C.SHA512 = Hasher._createHelper(SHA512);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA512(message, key);
+ */
+ C.HmacSHA512 = Hasher._createHmacHelper(SHA512);
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var X64WordArray = C_x64.WordArray;
+ var C_algo = C.algo;
+ var SHA512 = C_algo.SHA512;
+
+ /**
+ * SHA-384 hash algorithm.
+ */
+ var SHA384 = C_algo.SHA384 = SHA512.extend({
+ _doReset: function () {
+ this._hash = new X64WordArray.init([
+ new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
+ new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
+ new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
+ new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)
+ ]);
+ },
+
+ _doFinalize: function () {
+ var hash = SHA512._doFinalize.call(this);
+
+ hash.sigBytes -= 16;
+
+ return hash;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA384('message');
+ * var hash = CryptoJS.SHA384(wordArray);
+ */
+ C.SHA384 = SHA512._createHelper(SHA384);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA384(message, key);
+ */
+ C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
+ }());
+
+
+ /**
+ * Cipher core components.
+ */
+ CryptoJS.lib.Cipher || (function (undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
+ var C_enc = C.enc;
+ var Utf8 = C_enc.Utf8;
+ var Base64 = C_enc.Base64;
+ var C_algo = C.algo;
+ var EvpKDF = C_algo.EvpKDF;
+
+ /**
+ * Abstract base cipher template.
+ *
+ * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
+ * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
+ * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
+ * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
+ */
+ var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {WordArray} iv The IV to use for this operation.
+ */
+ cfg: Base.extend(),
+
+ /**
+ * Creates this cipher in encryption mode.
+ *
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {Cipher} A cipher instance.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
+ */
+ createEncryptor: function (key, cfg) {
+ return this.create(this._ENC_XFORM_MODE, key, cfg);
+ },
+
+ /**
+ * Creates this cipher in decryption mode.
+ *
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {Cipher} A cipher instance.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
+ */
+ createDecryptor: function (key, cfg) {
+ return this.create(this._DEC_XFORM_MODE, key, cfg);
+ },
+
+ /**
+ * Initializes a newly created cipher.
+ *
+ * @param {number} xformMode Either the encryption or decryption transormation mode constant.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
+ */
+ init: function (xformMode, key, cfg) {
+ // Apply config defaults
+ this.cfg = this.cfg.extend(cfg);
+
+ // Store transform mode and key
+ this._xformMode = xformMode;
+ this._key = key;
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this cipher to its initial state.
+ *
+ * @example
+ *
+ * cipher.reset();
+ */
+ reset: function () {
+ // Reset data buffer
+ BufferedBlockAlgorithm.reset.call(this);
+
+ // Perform concrete-cipher logic
+ this._doReset();
+ },
+
+ /**
+ * Adds data to be encrypted or decrypted.
+ *
+ * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
+ *
+ * @return {WordArray} The data after processing.
+ *
+ * @example
+ *
+ * var encrypted = cipher.process('data');
+ * var encrypted = cipher.process(wordArray);
+ */
+ process: function (dataUpdate) {
+ // Append
+ this._append(dataUpdate);
+
+ // Process available blocks
+ return this._process();
+ },
+
+ /**
+ * Finalizes the encryption or decryption process.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
+ *
+ * @return {WordArray} The data after final processing.
+ *
+ * @example
+ *
+ * var encrypted = cipher.finalize();
+ * var encrypted = cipher.finalize('data');
+ * var encrypted = cipher.finalize(wordArray);
+ */
+ finalize: function (dataUpdate) {
+ // Final data update
+ if (dataUpdate) {
+ this._append(dataUpdate);
+ }
+
+ // Perform concrete-cipher logic
+ var finalProcessedData = this._doFinalize();
+
+ return finalProcessedData;
+ },
+
+ keySize: 128/32,
+
+ ivSize: 128/32,
+
+ _ENC_XFORM_MODE: 1,
+
+ _DEC_XFORM_MODE: 2,
+
+ /**
+ * Creates shortcut functions to a cipher's object interface.
+ *
+ * @param {Cipher} cipher The cipher to create a helper for.
+ *
+ * @return {Object} An object with encrypt and decrypt shortcut functions.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
+ */
+ _createHelper: (function () {
+ function selectCipherStrategy(key) {
+ if (typeof key == 'string') {
+ return PasswordBasedCipher;
+ } else {
+ return SerializableCipher;
+ }
+ }
+
+ return function (cipher) {
+ return {
+ encrypt: function (message, key, cfg) {
+ return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
+ },
+
+ decrypt: function (ciphertext, key, cfg) {
+ return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
+ }
+ };
+ };
+ }())
+ });
+
+ /**
+ * Abstract base stream cipher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
+ */
+ var StreamCipher = C_lib.StreamCipher = Cipher.extend({
+ _doFinalize: function () {
+ // Process partial blocks
+ var finalProcessedBlocks = this._process(!!'flush');
+
+ return finalProcessedBlocks;
+ },
+
+ blockSize: 1
+ });
+
+ /**
+ * Mode namespace.
+ */
+ var C_mode = C.mode = {};
+
+ /**
+ * Abstract base block cipher mode template.
+ */
+ var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
+ /**
+ * Creates this mode for encryption.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
+ */
+ createEncryptor: function (cipher, iv) {
+ return this.Encryptor.create(cipher, iv);
+ },
+
+ /**
+ * Creates this mode for decryption.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
+ */
+ createDecryptor: function (cipher, iv) {
+ return this.Decryptor.create(cipher, iv);
+ },
+
+ /**
+ * Initializes a newly created mode.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
+ */
+ init: function (cipher, iv) {
+ this._cipher = cipher;
+ this._iv = iv;
+ }
+ });
+
+ /**
+ * Cipher Block Chaining mode.
+ */
+ var CBC = C_mode.CBC = (function () {
+ /**
+ * Abstract base CBC mode.
+ */
+ var CBC = BlockCipherMode.extend();
+
+ /**
+ * CBC encryptor.
+ */
+ CBC.Encryptor = CBC.extend({
+ /**
+ * Processes the data block at offset.
+ *
+ * @param {Array} words The data words to operate on.
+ * @param {number} offset The offset where the block starts.
+ *
+ * @example
+ *
+ * mode.processBlock(data.words, offset);
+ */
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // XOR and encrypt
+ xorBlock.call(this, words, offset, blockSize);
+ cipher.encryptBlock(words, offset);
+
+ // Remember this block to use with next block
+ this._prevBlock = words.slice(offset, offset + blockSize);
+ }
+ });
+
+ /**
+ * CBC decryptor.
+ */
+ CBC.Decryptor = CBC.extend({
+ /**
+ * Processes the data block at offset.
+ *
+ * @param {Array} words The data words to operate on.
+ * @param {number} offset The offset where the block starts.
+ *
+ * @example
+ *
+ * mode.processBlock(data.words, offset);
+ */
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // Remember this block to use with next block
+ var thisBlock = words.slice(offset, offset + blockSize);
+
+ // Decrypt and XOR
+ cipher.decryptBlock(words, offset);
+ xorBlock.call(this, words, offset, blockSize);
+
+ // This block becomes the previous block
+ this._prevBlock = thisBlock;
+ }
+ });
+
+ function xorBlock(words, offset, blockSize) {
+ // Shortcut
+ var iv = this._iv;
+
+ // Choose mixing block
+ if (iv) {
+ var block = iv;
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ } else {
+ var block = this._prevBlock;
+ }
+
+ // XOR blocks
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= block[i];
+ }
+ }
+
+ return CBC;
+ }());
+
+ /**
+ * Padding namespace.
+ */
+ var C_pad = C.pad = {};
+
+ /**
+ * PKCS #5/7 padding strategy.
+ */
+ var Pkcs7 = C_pad.Pkcs7 = {
+ /**
+ * Pads data using the algorithm defined in PKCS #5/7.
+ *
+ * @param {WordArray} data The data to pad.
+ * @param {number} blockSize The multiple that the data should be padded to.
+ *
+ * @static
+ *
+ * @example
+ *
+ * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
+ */
+ pad: function (data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
+
+ // Create padding word
+ var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;
+
+ // Create padding
+ var paddingWords = [];
+ for (var i = 0; i < nPaddingBytes; i += 4) {
+ paddingWords.push(paddingWord);
+ }
+ var padding = WordArray.create(paddingWords, nPaddingBytes);
+
+ // Add padding
+ data.concat(padding);
+ },
+
+ /**
+ * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
+ *
+ * @param {WordArray} data The data to unpad.
+ *
+ * @static
+ *
+ * @example
+ *
+ * CryptoJS.pad.Pkcs7.unpad(wordArray);
+ */
+ unpad: function (data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+ /**
+ * Abstract base block cipher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
+ */
+ var BlockCipher = C_lib.BlockCipher = Cipher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {Mode} mode The block mode to use. Default: CBC
+ * @property {Padding} padding The padding strategy to use. Default: Pkcs7
+ */
+ cfg: Cipher.cfg.extend({
+ mode: CBC,
+ padding: Pkcs7
+ }),
+
+ reset: function () {
+ // Reset cipher
+ Cipher.reset.call(this);
+
+ // Shortcuts
+ var cfg = this.cfg;
+ var iv = cfg.iv;
+ var mode = cfg.mode;
+
+ // Reset block mode
+ if (this._xformMode == this._ENC_XFORM_MODE) {
+ var modeCreator = mode.createEncryptor;
+ } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
+ var modeCreator = mode.createDecryptor;
+ // Keep at least one block in the buffer for unpadding
+ this._minBufferSize = 1;
+ }
+
+ if (this._mode && this._mode.__creator == modeCreator) {
+ this._mode.init(this, iv && iv.words);
+ } else {
+ this._mode = modeCreator.call(mode, this, iv && iv.words);
+ this._mode.__creator = modeCreator;
+ }
+ },
+
+ _doProcessBlock: function (words, offset) {
+ this._mode.processBlock(words, offset);
+ },
+
+ _doFinalize: function () {
+ // Shortcut
+ var padding = this.cfg.padding;
+
+ // Finalize
+ if (this._xformMode == this._ENC_XFORM_MODE) {
+ // Pad data
+ padding.pad(this._data, this.blockSize);
+
+ // Process final blocks
+ var finalProcessedBlocks = this._process(!!'flush');
+ } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
+ // Process final blocks
+ var finalProcessedBlocks = this._process(!!'flush');
+
+ // Unpad data
+ padding.unpad(finalProcessedBlocks);
+ }
+
+ return finalProcessedBlocks;
+ },
+
+ blockSize: 128/32
+ });
+
+ /**
+ * A collection of cipher parameters.
+ *
+ * @property {WordArray} ciphertext The raw ciphertext.
+ * @property {WordArray} key The key to this ciphertext.
+ * @property {WordArray} iv The IV used in the ciphering operation.
+ * @property {WordArray} salt The salt used with a key derivation function.
+ * @property {Cipher} algorithm The cipher algorithm.
+ * @property {Mode} mode The block mode used in the ciphering operation.
+ * @property {Padding} padding The padding scheme used in the ciphering operation.
+ * @property {number} blockSize The block size of the cipher.
+ * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
+ */
+ var CipherParams = C_lib.CipherParams = Base.extend({
+ /**
+ * Initializes a newly created cipher params object.
+ *
+ * @param {Object} cipherParams An object with any of the possible cipher parameters.
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.lib.CipherParams.create({
+ * ciphertext: ciphertextWordArray,
+ * key: keyWordArray,
+ * iv: ivWordArray,
+ * salt: saltWordArray,
+ * algorithm: CryptoJS.algo.AES,
+ * mode: CryptoJS.mode.CBC,
+ * padding: CryptoJS.pad.PKCS7,
+ * blockSize: 4,
+ * formatter: CryptoJS.format.OpenSSL
+ * });
+ */
+ init: function (cipherParams) {
+ this.mixIn(cipherParams);
+ },
+
+ /**
+ * Converts this cipher params object to a string.
+ *
+ * @param {Format} formatter (Optional) The formatting strategy to use.
+ *
+ * @return {string} The stringified cipher params.
+ *
+ * @throws Error If neither the formatter nor the default formatter is set.
+ *
+ * @example
+ *
+ * var string = cipherParams + '';
+ * var string = cipherParams.toString();
+ * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
+ */
+ toString: function (formatter) {
+ return (formatter || this.formatter).stringify(this);
+ }
+ });
+
+ /**
+ * Format namespace.
+ */
+ var C_format = C.format = {};
+
+ /**
+ * OpenSSL formatting strategy.
+ */
+ var OpenSSLFormatter = C_format.OpenSSL = {
+ /**
+ * Converts a cipher params object to an OpenSSL-compatible string.
+ *
+ * @param {CipherParams} cipherParams The cipher params object.
+ *
+ * @return {string} The OpenSSL-compatible string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
+ */
+ stringify: function (cipherParams) {
+ // Shortcuts
+ var ciphertext = cipherParams.ciphertext;
+ var salt = cipherParams.salt;
+
+ // Format
+ if (salt) {
+ var wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
+ } else {
+ var wordArray = ciphertext;
+ }
+
+ return wordArray.toString(Base64);
+ },
+
+ /**
+ * Converts an OpenSSL-compatible string to a cipher params object.
+ *
+ * @param {string} openSSLStr The OpenSSL-compatible string.
+ *
+ * @return {CipherParams} The cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
+ */
+ parse: function (openSSLStr) {
+ // Parse base64
+ var ciphertext = Base64.parse(openSSLStr);
+
+ // Shortcut
+ var ciphertextWords = ciphertext.words;
+
+ // Test for salt
+ if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
+ // Extract salt
+ var salt = WordArray.create(ciphertextWords.slice(2, 4));
+
+ // Remove salt from ciphertext
+ ciphertextWords.splice(0, 4);
+ ciphertext.sigBytes -= 16;
+ }
+
+ return CipherParams.create({ ciphertext: ciphertext, salt: salt });
+ }
+ };
+
+ /**
+ * A cipher wrapper that returns ciphertext as a serializable cipher params object.
+ */
+ var SerializableCipher = C_lib.SerializableCipher = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
+ */
+ cfg: Base.extend({
+ format: OpenSSLFormatter
+ }),
+
+ /**
+ * Encrypts a message.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {WordArray|string} message The message to encrypt.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {CipherParams} A cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ */
+ encrypt: function (cipher, message, key, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Encrypt
+ var encryptor = cipher.createEncryptor(key, cfg);
+ var ciphertext = encryptor.finalize(message);
+
+ // Shortcut
+ var cipherCfg = encryptor.cfg;
+
+ // Create and return serializable cipher params
+ return CipherParams.create({
+ ciphertext: ciphertext,
+ key: key,
+ iv: cipherCfg.iv,
+ algorithm: cipher,
+ mode: cipherCfg.mode,
+ padding: cipherCfg.padding,
+ blockSize: cipher.blockSize,
+ formatter: cfg.format
+ });
+ },
+
+ /**
+ * Decrypts serialized ciphertext.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {WordArray} The plaintext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ */
+ decrypt: function (cipher, ciphertext, key, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Convert string to CipherParams
+ ciphertext = this._parse(ciphertext, cfg.format);
+
+ // Decrypt
+ var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
+
+ return plaintext;
+ },
+
+ /**
+ * Converts serialized ciphertext to CipherParams,
+ * else assumed CipherParams already and returns ciphertext unchanged.
+ *
+ * @param {CipherParams|string} ciphertext The ciphertext.
+ * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
+ *
+ * @return {CipherParams} The unserialized ciphertext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
+ */
+ _parse: function (ciphertext, format) {
+ if (typeof ciphertext == 'string') {
+ return format.parse(ciphertext, this);
+ } else {
+ return ciphertext;
+ }
+ }
+ });
+
+ /**
+ * Key derivation function namespace.
+ */
+ var C_kdf = C.kdf = {};
+
+ /**
+ * OpenSSL key derivation function.
+ */
+ var OpenSSLKdf = C_kdf.OpenSSL = {
+ /**
+ * Derives a key and IV from a password.
+ *
+ * @param {string} password The password to derive from.
+ * @param {number} keySize The size in words of the key to generate.
+ * @param {number} ivSize The size in words of the IV to generate.
+ * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
+ *
+ * @return {CipherParams} A cipher params object with the key, IV, and salt.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
+ */
+ execute: function (password, keySize, ivSize, salt) {
+ // Generate random salt
+ if (!salt) {
+ salt = WordArray.random(64/8);
+ }
+
+ // Derive key and IV
+ var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
+
+ // Separate key and IV
+ var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
+ key.sigBytes = keySize * 4;
+
+ // Return params
+ return CipherParams.create({ key: key, iv: iv, salt: salt });
+ }
+ };
+
+ /**
+ * A serializable cipher wrapper that derives the key from a password,
+ * and returns ciphertext as a serializable cipher params object.
+ */
+ var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
+ */
+ cfg: SerializableCipher.cfg.extend({
+ kdf: OpenSSLKdf
+ }),
+
+ /**
+ * Encrypts a message using a password.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {WordArray|string} message The message to encrypt.
+ * @param {string} password The password.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {CipherParams} A cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
+ */
+ encrypt: function (cipher, message, password, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Derive key and other params
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
+
+ // Add IV to config
+ cfg.iv = derivedParams.iv;
+
+ // Encrypt
+ var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
+
+ // Mix in derived params
+ ciphertext.mixIn(derivedParams);
+
+ return ciphertext;
+ },
+
+ /**
+ * Decrypts serialized ciphertext using a password.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
+ * @param {string} password The password.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {WordArray} The plaintext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
+ */
+ decrypt: function (cipher, ciphertext, password, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Convert string to CipherParams
+ ciphertext = this._parse(ciphertext, cfg.format);
+
+ // Derive key and other params
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
+
+ // Add IV to config
+ cfg.iv = derivedParams.iv;
+
+ // Decrypt
+ var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
+
+ return plaintext;
+ }
+ });
+ }());
+
+
+ /**
+ * Cipher Feedback block mode.
+ */
+ CryptoJS.mode.CFB = (function () {
+ var CFB = CryptoJS.lib.BlockCipherMode.extend();
+
+ CFB.Encryptor = CFB.extend({
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
+
+ // Remember this block to use with next block
+ this._prevBlock = words.slice(offset, offset + blockSize);
+ }
+ });
+
+ CFB.Decryptor = CFB.extend({
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // Remember this block to use with next block
+ var thisBlock = words.slice(offset, offset + blockSize);
+
+ generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
+
+ // This block becomes the previous block
+ this._prevBlock = thisBlock;
+ }
+ });
+
+ function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
+ // Shortcut
+ var iv = this._iv;
+
+ // Generate keystream
+ if (iv) {
+ var keystream = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ } else {
+ var keystream = this._prevBlock;
+ }
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+
+ return CFB;
+ }());
+
+
+ /**
+ * Electronic Codebook block mode.
+ */
+ CryptoJS.mode.ECB = (function () {
+ var ECB = CryptoJS.lib.BlockCipherMode.extend();
+
+ ECB.Encryptor = ECB.extend({
+ processBlock: function (words, offset) {
+ this._cipher.encryptBlock(words, offset);
+ }
+ });
+
+ ECB.Decryptor = ECB.extend({
+ processBlock: function (words, offset) {
+ this._cipher.decryptBlock(words, offset);
+ }
+ });
+
+ return ECB;
+ }());
+
+
+ /**
+ * ANSI X.923 padding strategy.
+ */
+ CryptoJS.pad.AnsiX923 = {
+ pad: function (data, blockSize) {
+ // Shortcuts
+ var dataSigBytes = data.sigBytes;
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
+
+ // Compute last byte position
+ var lastBytePos = dataSigBytes + nPaddingBytes - 1;
+
+ // Pad
+ data.clamp();
+ data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);
+ data.sigBytes += nPaddingBytes;
+ },
+
+ unpad: function (data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+
+ /**
+ * ISO 10126 padding strategy.
+ */
+ CryptoJS.pad.Iso10126 = {
+ pad: function (data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
+
+ // Pad
+ data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
+ concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
+ },
+
+ unpad: function (data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+
+ /**
+ * ISO/IEC 9797-1 Padding Method 2.
+ */
+ CryptoJS.pad.Iso97971 = {
+ pad: function (data, blockSize) {
+ // Add 0x80 byte
+ data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
+
+ // Zero pad the rest
+ CryptoJS.pad.ZeroPadding.pad(data, blockSize);
+ },
+
+ unpad: function (data) {
+ // Remove zero padding
+ CryptoJS.pad.ZeroPadding.unpad(data);
+
+ // Remove one more byte -- the 0x80 byte
+ data.sigBytes--;
+ }
+ };
+
+
+ /**
+ * Output Feedback block mode.
+ */
+ CryptoJS.mode.OFB = (function () {
+ var OFB = CryptoJS.lib.BlockCipherMode.extend();
+
+ var Encryptor = OFB.Encryptor = OFB.extend({
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var keystream = this._keystream;
+
+ // Generate keystream
+ if (iv) {
+ keystream = this._keystream = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ OFB.Decryptor = Encryptor;
+
+ return OFB;
+ }());
+
+
+ /**
+ * A noop padding strategy.
+ */
+ CryptoJS.pad.NoPadding = {
+ pad: function () {
+ },
+
+ unpad: function () {
+ }
+ };
+
+
+ (function (undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var CipherParams = C_lib.CipherParams;
+ var C_enc = C.enc;
+ var Hex = C_enc.Hex;
+ var C_format = C.format;
+
+ var HexFormatter = C_format.Hex = {
+ /**
+ * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
+ *
+ * @param {CipherParams} cipherParams The cipher params object.
+ *
+ * @return {string} The hexadecimally encoded string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
+ */
+ stringify: function (cipherParams) {
+ return cipherParams.ciphertext.toString(Hex);
+ },
+
+ /**
+ * Converts a hexadecimally encoded ciphertext string to a cipher params object.
+ *
+ * @param {string} input The hexadecimally encoded string.
+ *
+ * @return {CipherParams} The cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.format.Hex.parse(hexString);
+ */
+ parse: function (input) {
+ var ciphertext = Hex.parse(input);
+ return CipherParams.create({ ciphertext: ciphertext });
+ }
+ };
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var BlockCipher = C_lib.BlockCipher;
+ var C_algo = C.algo;
+
+ // Lookup tables
+ var SBOX = [];
+ var INV_SBOX = [];
+ var SUB_MIX_0 = [];
+ var SUB_MIX_1 = [];
+ var SUB_MIX_2 = [];
+ var SUB_MIX_3 = [];
+ var INV_SUB_MIX_0 = [];
+ var INV_SUB_MIX_1 = [];
+ var INV_SUB_MIX_2 = [];
+ var INV_SUB_MIX_3 = [];
+
+ // Compute lookup tables
+ (function () {
+ // Compute double table
+ var d = [];
+ for (var i = 0; i < 256; i++) {
+ if (i < 128) {
+ d[i] = i << 1;
+ } else {
+ d[i] = (i << 1) ^ 0x11b;
+ }
+ }
+
+ // Walk GF(2^8)
+ var x = 0;
+ var xi = 0;
+ for (var i = 0; i < 256; i++) {
+ // Compute sbox
+ var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);
+ sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;
+ SBOX[x] = sx;
+ INV_SBOX[sx] = x;
+
+ // Compute multiplication
+ var x2 = d[x];
+ var x4 = d[x2];
+ var x8 = d[x4];
+
+ // Compute sub bytes, mix columns tables
+ var t = (d[sx] * 0x101) ^ (sx * 0x1010100);
+ SUB_MIX_0[x] = (t << 24) | (t >>> 8);
+ SUB_MIX_1[x] = (t << 16) | (t >>> 16);
+ SUB_MIX_2[x] = (t << 8) | (t >>> 24);
+ SUB_MIX_3[x] = t;
+
+ // Compute inv sub bytes, inv mix columns tables
+ var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);
+ INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);
+ INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);
+ INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);
+ INV_SUB_MIX_3[sx] = t;
+
+ // Compute next counter
+ if (!x) {
+ x = xi = 1;
+ } else {
+ x = x2 ^ d[d[d[x8 ^ x2]]];
+ xi ^= d[d[xi]];
+ }
+ }
+ }());
+
+ // Precomputed Rcon lookup
+ var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
+
+ /**
+ * AES block cipher algorithm.
+ */
+ var AES = C_algo.AES = BlockCipher.extend({
+ _doReset: function () {
+ // Skip reset of nRounds has been set before and key did not change
+ if (this._nRounds && this._keyPriorReset === this._key) {
+ return;
+ }
+
+ // Shortcuts
+ var key = this._keyPriorReset = this._key;
+ var keyWords = key.words;
+ var keySize = key.sigBytes / 4;
+
+ // Compute number of rounds
+ var nRounds = this._nRounds = keySize + 6;
+
+ // Compute number of key schedule rows
+ var ksRows = (nRounds + 1) * 4;
+
+ // Compute key schedule
+ var keySchedule = this._keySchedule = [];
+ for (var ksRow = 0; ksRow < ksRows; ksRow++) {
+ if (ksRow < keySize) {
+ keySchedule[ksRow] = keyWords[ksRow];
+ } else {
+ var t = keySchedule[ksRow - 1];
+
+ if (!(ksRow % keySize)) {
+ // Rot word
+ t = (t << 8) | (t >>> 24);
+
+ // Sub word
+ t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
+
+ // Mix Rcon
+ t ^= RCON[(ksRow / keySize) | 0] << 24;
+ } else if (keySize > 6 && ksRow % keySize == 4) {
+ // Sub word
+ t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
+ }
+
+ keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
+ }
+ }
+
+ // Compute inv key schedule
+ var invKeySchedule = this._invKeySchedule = [];
+ for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
+ var ksRow = ksRows - invKsRow;
+
+ if (invKsRow % 4) {
+ var t = keySchedule[ksRow];
+ } else {
+ var t = keySchedule[ksRow - 4];
+ }
+
+ if (invKsRow < 4 || ksRow <= 4) {
+ invKeySchedule[invKsRow] = t;
+ } else {
+ invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^
+ INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
+ }
+ }
+ },
+
+ encryptBlock: function (M, offset) {
+ this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
+ },
+
+ decryptBlock: function (M, offset) {
+ // Swap 2nd and 4th rows
+ var t = M[offset + 1];
+ M[offset + 1] = M[offset + 3];
+ M[offset + 3] = t;
+
+ this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
+
+ // Inv swap 2nd and 4th rows
+ var t = M[offset + 1];
+ M[offset + 1] = M[offset + 3];
+ M[offset + 3] = t;
+ },
+
+ _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
+ // Shortcut
+ var nRounds = this._nRounds;
+
+ // Get input, add round key
+ var s0 = M[offset] ^ keySchedule[0];
+ var s1 = M[offset + 1] ^ keySchedule[1];
+ var s2 = M[offset + 2] ^ keySchedule[2];
+ var s3 = M[offset + 3] ^ keySchedule[3];
+
+ // Key schedule row counter
+ var ksRow = 4;
+
+ // Rounds
+ for (var round = 1; round < nRounds; round++) {
+ // Shift rows, sub bytes, mix columns, add round key
+ var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
+ var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
+ var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
+ var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];
+
+ // Update state
+ s0 = t0;
+ s1 = t1;
+ s2 = t2;
+ s3 = t3;
+ }
+
+ // Shift rows, sub bytes, add round key
+ var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
+ var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
+ var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
+ var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
+
+ // Set output
+ M[offset] = t0;
+ M[offset + 1] = t1;
+ M[offset + 2] = t2;
+ M[offset + 3] = t3;
+ },
+
+ keySize: 256/32
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
+ */
+ C.AES = BlockCipher._createHelper(AES);
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var BlockCipher = C_lib.BlockCipher;
+ var C_algo = C.algo;
+
+ // Permuted Choice 1 constants
+ var PC1 = [
+ 57, 49, 41, 33, 25, 17, 9, 1,
+ 58, 50, 42, 34, 26, 18, 10, 2,
+ 59, 51, 43, 35, 27, 19, 11, 3,
+ 60, 52, 44, 36, 63, 55, 47, 39,
+ 31, 23, 15, 7, 62, 54, 46, 38,
+ 30, 22, 14, 6, 61, 53, 45, 37,
+ 29, 21, 13, 5, 28, 20, 12, 4
+ ];
+
+ // Permuted Choice 2 constants
+ var PC2 = [
+ 14, 17, 11, 24, 1, 5,
+ 3, 28, 15, 6, 21, 10,
+ 23, 19, 12, 4, 26, 8,
+ 16, 7, 27, 20, 13, 2,
+ 41, 52, 31, 37, 47, 55,
+ 30, 40, 51, 45, 33, 48,
+ 44, 49, 39, 56, 34, 53,
+ 46, 42, 50, 36, 29, 32
+ ];
+
+ // Cumulative bit shift constants
+ var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
+
+ // SBOXes and round permutation constants
+ var SBOX_P = [
+ {
+ 0x0: 0x808200,
+ 0x10000000: 0x8000,
+ 0x20000000: 0x808002,
+ 0x30000000: 0x2,
+ 0x40000000: 0x200,
+ 0x50000000: 0x808202,
+ 0x60000000: 0x800202,
+ 0x70000000: 0x800000,
+ 0x80000000: 0x202,
+ 0x90000000: 0x800200,
+ 0xa0000000: 0x8200,
+ 0xb0000000: 0x808000,
+ 0xc0000000: 0x8002,
+ 0xd0000000: 0x800002,
+ 0xe0000000: 0x0,
+ 0xf0000000: 0x8202,
+ 0x8000000: 0x0,
+ 0x18000000: 0x808202,
+ 0x28000000: 0x8202,
+ 0x38000000: 0x8000,
+ 0x48000000: 0x808200,
+ 0x58000000: 0x200,
+ 0x68000000: 0x808002,
+ 0x78000000: 0x2,
+ 0x88000000: 0x800200,
+ 0x98000000: 0x8200,
+ 0xa8000000: 0x808000,
+ 0xb8000000: 0x800202,
+ 0xc8000000: 0x800002,
+ 0xd8000000: 0x8002,
+ 0xe8000000: 0x202,
+ 0xf8000000: 0x800000,
+ 0x1: 0x8000,
+ 0x10000001: 0x2,
+ 0x20000001: 0x808200,
+ 0x30000001: 0x800000,
+ 0x40000001: 0x808002,
+ 0x50000001: 0x8200,
+ 0x60000001: 0x200,
+ 0x70000001: 0x800202,
+ 0x80000001: 0x808202,
+ 0x90000001: 0x808000,
+ 0xa0000001: 0x800002,
+ 0xb0000001: 0x8202,
+ 0xc0000001: 0x202,
+ 0xd0000001: 0x800200,
+ 0xe0000001: 0x8002,
+ 0xf0000001: 0x0,
+ 0x8000001: 0x808202,
+ 0x18000001: 0x808000,
+ 0x28000001: 0x800000,
+ 0x38000001: 0x200,
+ 0x48000001: 0x8000,
+ 0x58000001: 0x800002,
+ 0x68000001: 0x2,
+ 0x78000001: 0x8202,
+ 0x88000001: 0x8002,
+ 0x98000001: 0x800202,
+ 0xa8000001: 0x202,
+ 0xb8000001: 0x808200,
+ 0xc8000001: 0x800200,
+ 0xd8000001: 0x0,
+ 0xe8000001: 0x8200,
+ 0xf8000001: 0x808002
+ },
+ {
+ 0x0: 0x40084010,
+ 0x1000000: 0x4000,
+ 0x2000000: 0x80000,
+ 0x3000000: 0x40080010,
+ 0x4000000: 0x40000010,
+ 0x5000000: 0x40084000,
+ 0x6000000: 0x40004000,
+ 0x7000000: 0x10,
+ 0x8000000: 0x84000,
+ 0x9000000: 0x40004010,
+ 0xa000000: 0x40000000,
+ 0xb000000: 0x84010,
+ 0xc000000: 0x80010,
+ 0xd000000: 0x0,
+ 0xe000000: 0x4010,
+ 0xf000000: 0x40080000,
+ 0x800000: 0x40004000,
+ 0x1800000: 0x84010,
+ 0x2800000: 0x10,
+ 0x3800000: 0x40004010,
+ 0x4800000: 0x40084010,
+ 0x5800000: 0x40000000,
+ 0x6800000: 0x80000,
+ 0x7800000: 0x40080010,
+ 0x8800000: 0x80010,
+ 0x9800000: 0x0,
+ 0xa800000: 0x4000,
+ 0xb800000: 0x40080000,
+ 0xc800000: 0x40000010,
+ 0xd800000: 0x84000,
+ 0xe800000: 0x40084000,
+ 0xf800000: 0x4010,
+ 0x10000000: 0x0,
+ 0x11000000: 0x40080010,
+ 0x12000000: 0x40004010,
+ 0x13000000: 0x40084000,
+ 0x14000000: 0x40080000,
+ 0x15000000: 0x10,
+ 0x16000000: 0x84010,
+ 0x17000000: 0x4000,
+ 0x18000000: 0x4010,
+ 0x19000000: 0x80000,
+ 0x1a000000: 0x80010,
+ 0x1b000000: 0x40000010,
+ 0x1c000000: 0x84000,
+ 0x1d000000: 0x40004000,
+ 0x1e000000: 0x40000000,
+ 0x1f000000: 0x40084010,
+ 0x10800000: 0x84010,
+ 0x11800000: 0x80000,
+ 0x12800000: 0x40080000,
+ 0x13800000: 0x4000,
+ 0x14800000: 0x40004000,
+ 0x15800000: 0x40084010,
+ 0x16800000: 0x10,
+ 0x17800000: 0x40000000,
+ 0x18800000: 0x40084000,
+ 0x19800000: 0x40000010,
+ 0x1a800000: 0x40004010,
+ 0x1b800000: 0x80010,
+ 0x1c800000: 0x0,
+ 0x1d800000: 0x4010,
+ 0x1e800000: 0x40080010,
+ 0x1f800000: 0x84000
+ },
+ {
+ 0x0: 0x104,
+ 0x100000: 0x0,
+ 0x200000: 0x4000100,
+ 0x300000: 0x10104,
+ 0x400000: 0x10004,
+ 0x500000: 0x4000004,
+ 0x600000: 0x4010104,
+ 0x700000: 0x4010000,
+ 0x800000: 0x4000000,
+ 0x900000: 0x4010100,
+ 0xa00000: 0x10100,
+ 0xb00000: 0x4010004,
+ 0xc00000: 0x4000104,
+ 0xd00000: 0x10000,
+ 0xe00000: 0x4,
+ 0xf00000: 0x100,
+ 0x80000: 0x4010100,
+ 0x180000: 0x4010004,
+ 0x280000: 0x0,
+ 0x380000: 0x4000100,
+ 0x480000: 0x4000004,
+ 0x580000: 0x10000,
+ 0x680000: 0x10004,
+ 0x780000: 0x104,
+ 0x880000: 0x4,
+ 0x980000: 0x100,
+ 0xa80000: 0x4010000,
+ 0xb80000: 0x10104,
+ 0xc80000: 0x10100,
+ 0xd80000: 0x4000104,
+ 0xe80000: 0x4010104,
+ 0xf80000: 0x4000000,
+ 0x1000000: 0x4010100,
+ 0x1100000: 0x10004,
+ 0x1200000: 0x10000,
+ 0x1300000: 0x4000100,
+ 0x1400000: 0x100,
+ 0x1500000: 0x4010104,
+ 0x1600000: 0x4000004,
+ 0x1700000: 0x0,
+ 0x1800000: 0x4000104,
+ 0x1900000: 0x4000000,
+ 0x1a00000: 0x4,
+ 0x1b00000: 0x10100,
+ 0x1c00000: 0x4010000,
+ 0x1d00000: 0x104,
+ 0x1e00000: 0x10104,
+ 0x1f00000: 0x4010004,
+ 0x1080000: 0x4000000,
+ 0x1180000: 0x104,
+ 0x1280000: 0x4010100,
+ 0x1380000: 0x0,
+ 0x1480000: 0x10004,
+ 0x1580000: 0x4000100,
+ 0x1680000: 0x100,
+ 0x1780000: 0x4010004,
+ 0x1880000: 0x10000,
+ 0x1980000: 0x4010104,
+ 0x1a80000: 0x10104,
+ 0x1b80000: 0x4000004,
+ 0x1c80000: 0x4000104,
+ 0x1d80000: 0x4010000,
+ 0x1e80000: 0x4,
+ 0x1f80000: 0x10100
+ },
+ {
+ 0x0: 0x80401000,
+ 0x10000: 0x80001040,
+ 0x20000: 0x401040,
+ 0x30000: 0x80400000,
+ 0x40000: 0x0,
+ 0x50000: 0x401000,
+ 0x60000: 0x80000040,
+ 0x70000: 0x400040,
+ 0x80000: 0x80000000,
+ 0x90000: 0x400000,
+ 0xa0000: 0x40,
+ 0xb0000: 0x80001000,
+ 0xc0000: 0x80400040,
+ 0xd0000: 0x1040,
+ 0xe0000: 0x1000,
+ 0xf0000: 0x80401040,
+ 0x8000: 0x80001040,
+ 0x18000: 0x40,
+ 0x28000: 0x80400040,
+ 0x38000: 0x80001000,
+ 0x48000: 0x401000,
+ 0x58000: 0x80401040,
+ 0x68000: 0x0,
+ 0x78000: 0x80400000,
+ 0x88000: 0x1000,
+ 0x98000: 0x80401000,
+ 0xa8000: 0x400000,
+ 0xb8000: 0x1040,
+ 0xc8000: 0x80000000,
+ 0xd8000: 0x400040,
+ 0xe8000: 0x401040,
+ 0xf8000: 0x80000040,
+ 0x100000: 0x400040,
+ 0x110000: 0x401000,
+ 0x120000: 0x80000040,
+ 0x130000: 0x0,
+ 0x140000: 0x1040,
+ 0x150000: 0x80400040,
+ 0x160000: 0x80401000,
+ 0x170000: 0x80001040,
+ 0x180000: 0x80401040,
+ 0x190000: 0x80000000,
+ 0x1a0000: 0x80400000,
+ 0x1b0000: 0x401040,
+ 0x1c0000: 0x80001000,
+ 0x1d0000: 0x400000,
+ 0x1e0000: 0x40,
+ 0x1f0000: 0x1000,
+ 0x108000: 0x80400000,
+ 0x118000: 0x80401040,
+ 0x128000: 0x0,
+ 0x138000: 0x401000,
+ 0x148000: 0x400040,
+ 0x158000: 0x80000000,
+ 0x168000: 0x80001040,
+ 0x178000: 0x40,
+ 0x188000: 0x80000040,
+ 0x198000: 0x1000,
+ 0x1a8000: 0x80001000,
+ 0x1b8000: 0x80400040,
+ 0x1c8000: 0x1040,
+ 0x1d8000: 0x80401000,
+ 0x1e8000: 0x400000,
+ 0x1f8000: 0x401040
+ },
+ {
+ 0x0: 0x80,
+ 0x1000: 0x1040000,
+ 0x2000: 0x40000,
+ 0x3000: 0x20000000,
+ 0x4000: 0x20040080,
+ 0x5000: 0x1000080,
+ 0x6000: 0x21000080,
+ 0x7000: 0x40080,
+ 0x8000: 0x1000000,
+ 0x9000: 0x20040000,
+ 0xa000: 0x20000080,
+ 0xb000: 0x21040080,
+ 0xc000: 0x21040000,
+ 0xd000: 0x0,
+ 0xe000: 0x1040080,
+ 0xf000: 0x21000000,
+ 0x800: 0x1040080,
+ 0x1800: 0x21000080,
+ 0x2800: 0x80,
+ 0x3800: 0x1040000,
+ 0x4800: 0x40000,
+ 0x5800: 0x20040080,
+ 0x6800: 0x21040000,
+ 0x7800: 0x20000000,
+ 0x8800: 0x20040000,
+ 0x9800: 0x0,
+ 0xa800: 0x21040080,
+ 0xb800: 0x1000080,
+ 0xc800: 0x20000080,
+ 0xd800: 0x21000000,
+ 0xe800: 0x1000000,
+ 0xf800: 0x40080,
+ 0x10000: 0x40000,
+ 0x11000: 0x80,
+ 0x12000: 0x20000000,
+ 0x13000: 0x21000080,
+ 0x14000: 0x1000080,
+ 0x15000: 0x21040000,
+ 0x16000: 0x20040080,
+ 0x17000: 0x1000000,
+ 0x18000: 0x21040080,
+ 0x19000: 0x21000000,
+ 0x1a000: 0x1040000,
+ 0x1b000: 0x20040000,
+ 0x1c000: 0x40080,
+ 0x1d000: 0x20000080,
+ 0x1e000: 0x0,
+ 0x1f000: 0x1040080,
+ 0x10800: 0x21000080,
+ 0x11800: 0x1000000,
+ 0x12800: 0x1040000,
+ 0x13800: 0x20040080,
+ 0x14800: 0x20000000,
+ 0x15800: 0x1040080,
+ 0x16800: 0x80,
+ 0x17800: 0x21040000,
+ 0x18800: 0x40080,
+ 0x19800: 0x21040080,
+ 0x1a800: 0x0,
+ 0x1b800: 0x21000000,
+ 0x1c800: 0x1000080,
+ 0x1d800: 0x40000,
+ 0x1e800: 0x20040000,
+ 0x1f800: 0x20000080
+ },
+ {
+ 0x0: 0x10000008,
+ 0x100: 0x2000,
+ 0x200: 0x10200000,
+ 0x300: 0x10202008,
+ 0x400: 0x10002000,
+ 0x500: 0x200000,
+ 0x600: 0x200008,
+ 0x700: 0x10000000,
+ 0x800: 0x0,
+ 0x900: 0x10002008,
+ 0xa00: 0x202000,
+ 0xb00: 0x8,
+ 0xc00: 0x10200008,
+ 0xd00: 0x202008,
+ 0xe00: 0x2008,
+ 0xf00: 0x10202000,
+ 0x80: 0x10200000,
+ 0x180: 0x10202008,
+ 0x280: 0x8,
+ 0x380: 0x200000,
+ 0x480: 0x202008,
+ 0x580: 0x10000008,
+ 0x680: 0x10002000,
+ 0x780: 0x2008,
+ 0x880: 0x200008,
+ 0x980: 0x2000,
+ 0xa80: 0x10002008,
+ 0xb80: 0x10200008,
+ 0xc80: 0x0,
+ 0xd80: 0x10202000,
+ 0xe80: 0x202000,
+ 0xf80: 0x10000000,
+ 0x1000: 0x10002000,
+ 0x1100: 0x10200008,
+ 0x1200: 0x10202008,
+ 0x1300: 0x2008,
+ 0x1400: 0x200000,
+ 0x1500: 0x10000000,
+ 0x1600: 0x10000008,
+ 0x1700: 0x202000,
+ 0x1800: 0x202008,
+ 0x1900: 0x0,
+ 0x1a00: 0x8,
+ 0x1b00: 0x10200000,
+ 0x1c00: 0x2000,
+ 0x1d00: 0x10002008,
+ 0x1e00: 0x10202000,
+ 0x1f00: 0x200008,
+ 0x1080: 0x8,
+ 0x1180: 0x202000,
+ 0x1280: 0x200000,
+ 0x1380: 0x10000008,
+ 0x1480: 0x10002000,
+ 0x1580: 0x2008,
+ 0x1680: 0x10202008,
+ 0x1780: 0x10200000,
+ 0x1880: 0x10202000,
+ 0x1980: 0x10200008,
+ 0x1a80: 0x2000,
+ 0x1b80: 0x202008,
+ 0x1c80: 0x200008,
+ 0x1d80: 0x0,
+ 0x1e80: 0x10000000,
+ 0x1f80: 0x10002008
+ },
+ {
+ 0x0: 0x100000,
+ 0x10: 0x2000401,
+ 0x20: 0x400,
+ 0x30: 0x100401,
+ 0x40: 0x2100401,
+ 0x50: 0x0,
+ 0x60: 0x1,
+ 0x70: 0x2100001,
+ 0x80: 0x2000400,
+ 0x90: 0x100001,
+ 0xa0: 0x2000001,
+ 0xb0: 0x2100400,
+ 0xc0: 0x2100000,
+ 0xd0: 0x401,
+ 0xe0: 0x100400,
+ 0xf0: 0x2000000,
+ 0x8: 0x2100001,
+ 0x18: 0x0,
+ 0x28: 0x2000401,
+ 0x38: 0x2100400,
+ 0x48: 0x100000,
+ 0x58: 0x2000001,
+ 0x68: 0x2000000,
+ 0x78: 0x401,
+ 0x88: 0x100401,
+ 0x98: 0x2000400,
+ 0xa8: 0x2100000,
+ 0xb8: 0x100001,
+ 0xc8: 0x400,
+ 0xd8: 0x2100401,
+ 0xe8: 0x1,
+ 0xf8: 0x100400,
+ 0x100: 0x2000000,
+ 0x110: 0x100000,
+ 0x120: 0x2000401,
+ 0x130: 0x2100001,
+ 0x140: 0x100001,
+ 0x150: 0x2000400,
+ 0x160: 0x2100400,
+ 0x170: 0x100401,
+ 0x180: 0x401,
+ 0x190: 0x2100401,
+ 0x1a0: 0x100400,
+ 0x1b0: 0x1,
+ 0x1c0: 0x0,
+ 0x1d0: 0x2100000,
+ 0x1e0: 0x2000001,
+ 0x1f0: 0x400,
+ 0x108: 0x100400,
+ 0x118: 0x2000401,
+ 0x128: 0x2100001,
+ 0x138: 0x1,
+ 0x148: 0x2000000,
+ 0x158: 0x100000,
+ 0x168: 0x401,
+ 0x178: 0x2100400,
+ 0x188: 0x2000001,
+ 0x198: 0x2100000,
+ 0x1a8: 0x0,
+ 0x1b8: 0x2100401,
+ 0x1c8: 0x100401,
+ 0x1d8: 0x400,
+ 0x1e8: 0x2000400,
+ 0x1f8: 0x100001
+ },
+ {
+ 0x0: 0x8000820,
+ 0x1: 0x20000,
+ 0x2: 0x8000000,
+ 0x3: 0x20,
+ 0x4: 0x20020,
+ 0x5: 0x8020820,
+ 0x6: 0x8020800,
+ 0x7: 0x800,
+ 0x8: 0x8020000,
+ 0x9: 0x8000800,
+ 0xa: 0x20800,
+ 0xb: 0x8020020,
+ 0xc: 0x820,
+ 0xd: 0x0,
+ 0xe: 0x8000020,
+ 0xf: 0x20820,
+ 0x80000000: 0x800,
+ 0x80000001: 0x8020820,
+ 0x80000002: 0x8000820,
+ 0x80000003: 0x8000000,
+ 0x80000004: 0x8020000,
+ 0x80000005: 0x20800,
+ 0x80000006: 0x20820,
+ 0x80000007: 0x20,
+ 0x80000008: 0x8000020,
+ 0x80000009: 0x820,
+ 0x8000000a: 0x20020,
+ 0x8000000b: 0x8020800,
+ 0x8000000c: 0x0,
+ 0x8000000d: 0x8020020,
+ 0x8000000e: 0x8000800,
+ 0x8000000f: 0x20000,
+ 0x10: 0x20820,
+ 0x11: 0x8020800,
+ 0x12: 0x20,
+ 0x13: 0x800,
+ 0x14: 0x8000800,
+ 0x15: 0x8000020,
+ 0x16: 0x8020020,
+ 0x17: 0x20000,
+ 0x18: 0x0,
+ 0x19: 0x20020,
+ 0x1a: 0x8020000,
+ 0x1b: 0x8000820,
+ 0x1c: 0x8020820,
+ 0x1d: 0x20800,
+ 0x1e: 0x820,
+ 0x1f: 0x8000000,
+ 0x80000010: 0x20000,
+ 0x80000011: 0x800,
+ 0x80000012: 0x8020020,
+ 0x80000013: 0x20820,
+ 0x80000014: 0x20,
+ 0x80000015: 0x8020000,
+ 0x80000016: 0x8000000,
+ 0x80000017: 0x8000820,
+ 0x80000018: 0x8020820,
+ 0x80000019: 0x8000020,
+ 0x8000001a: 0x8000800,
+ 0x8000001b: 0x0,
+ 0x8000001c: 0x20800,
+ 0x8000001d: 0x820,
+ 0x8000001e: 0x20020,
+ 0x8000001f: 0x8020800
+ }
+ ];
+
+ // Masks that select the SBOX input
+ var SBOX_MASK = [
+ 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,
+ 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f
+ ];
+
+ /**
+ * DES block cipher algorithm.
+ */
+ var DES = C_algo.DES = BlockCipher.extend({
+ _doReset: function () {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+
+ // Select 56 bits according to PC1
+ var keyBits = [];
+ for (var i = 0; i < 56; i++) {
+ var keyBitPos = PC1[i] - 1;
+ keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;
+ }
+
+ // Assemble 16 subkeys
+ var subKeys = this._subKeys = [];
+ for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
+ // Create subkey
+ var subKey = subKeys[nSubKey] = [];
+
+ // Shortcut
+ var bitShift = BIT_SHIFTS[nSubKey];
+
+ // Select 48 bits according to PC2
+ for (var i = 0; i < 24; i++) {
+ // Select from the left 28 key bits
+ subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);
+
+ // Select from the right 28 key bits
+ subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);
+ }
+
+ // Since each subkey is applied to an expanded 32-bit input,
+ // the subkey can be broken into 8 values scaled to 32-bits,
+ // which allows the key to be used without expansion
+ subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);
+ for (var i = 1; i < 7; i++) {
+ subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);
+ }
+ subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);
+ }
+
+ // Compute inverse subkeys
+ var invSubKeys = this._invSubKeys = [];
+ for (var i = 0; i < 16; i++) {
+ invSubKeys[i] = subKeys[15 - i];
+ }
+ },
+
+ encryptBlock: function (M, offset) {
+ this._doCryptBlock(M, offset, this._subKeys);
+ },
+
+ decryptBlock: function (M, offset) {
+ this._doCryptBlock(M, offset, this._invSubKeys);
+ },
+
+ _doCryptBlock: function (M, offset, subKeys) {
+ // Get input
+ this._lBlock = M[offset];
+ this._rBlock = M[offset + 1];
+
+ // Initial permutation
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
+ exchangeLR.call(this, 16, 0x0000ffff);
+ exchangeRL.call(this, 2, 0x33333333);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeLR.call(this, 1, 0x55555555);
+
+ // Rounds
+ for (var round = 0; round < 16; round++) {
+ // Shortcuts
+ var subKey = subKeys[round];
+ var lBlock = this._lBlock;
+ var rBlock = this._rBlock;
+
+ // Feistel function
+ var f = 0;
+ for (var i = 0; i < 8; i++) {
+ f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
+ }
+ this._lBlock = rBlock;
+ this._rBlock = lBlock ^ f;
+ }
+
+ // Undo swap from last round
+ var t = this._lBlock;
+ this._lBlock = this._rBlock;
+ this._rBlock = t;
+
+ // Final permutation
+ exchangeLR.call(this, 1, 0x55555555);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeRL.call(this, 2, 0x33333333);
+ exchangeLR.call(this, 16, 0x0000ffff);
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
+
+ // Set output
+ M[offset] = this._lBlock;
+ M[offset + 1] = this._rBlock;
+ },
+
+ keySize: 64/32,
+
+ ivSize: 64/32,
+
+ blockSize: 64/32
+ });
+
+ // Swap bits across the left and right words
+ function exchangeLR(offset, mask) {
+ var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;
+ this._rBlock ^= t;
+ this._lBlock ^= t << offset;
+ }
+
+ function exchangeRL(offset, mask) {
+ var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;
+ this._lBlock ^= t;
+ this._rBlock ^= t << offset;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
+ */
+ C.DES = BlockCipher._createHelper(DES);
+
+ /**
+ * Triple-DES block cipher algorithm.
+ */
+ var TripleDES = C_algo.TripleDES = BlockCipher.extend({
+ _doReset: function () {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+
+ // Create DES instances
+ this._des1 = DES.createEncryptor(WordArray.create(keyWords.slice(0, 2)));
+ this._des2 = DES.createEncryptor(WordArray.create(keyWords.slice(2, 4)));
+ this._des3 = DES.createEncryptor(WordArray.create(keyWords.slice(4, 6)));
+ },
+
+ encryptBlock: function (M, offset) {
+ this._des1.encryptBlock(M, offset);
+ this._des2.decryptBlock(M, offset);
+ this._des3.encryptBlock(M, offset);
+ },
+
+ decryptBlock: function (M, offset) {
+ this._des3.decryptBlock(M, offset);
+ this._des2.encryptBlock(M, offset);
+ this._des1.decryptBlock(M, offset);
+ },
+
+ keySize: 192/32,
+
+ ivSize: 64/32,
+
+ blockSize: 64/32
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
+ */
+ C.TripleDES = BlockCipher._createHelper(TripleDES);
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ /**
+ * RC4 stream cipher algorithm.
+ */
+ var RC4 = C_algo.RC4 = StreamCipher.extend({
+ _doReset: function () {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+ var keySigBytes = key.sigBytes;
+
+ // Init sbox
+ var S = this._S = [];
+ for (var i = 0; i < 256; i++) {
+ S[i] = i;
+ }
+
+ // Key setup
+ for (var i = 0, j = 0; i < 256; i++) {
+ var keyByteIndex = i % keySigBytes;
+ var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;
+
+ j = (j + S[i] + keyByte) % 256;
+
+ // Swap
+ var t = S[i];
+ S[i] = S[j];
+ S[j] = t;
+ }
+
+ // Counters
+ this._i = this._j = 0;
+ },
+
+ _doProcessBlock: function (M, offset) {
+ M[offset] ^= generateKeystreamWord.call(this);
+ },
+
+ keySize: 256/32,
+
+ ivSize: 0
+ });
+
+ function generateKeystreamWord() {
+ // Shortcuts
+ var S = this._S;
+ var i = this._i;
+ var j = this._j;
+
+ // Generate keystream word
+ var keystreamWord = 0;
+ for (var n = 0; n < 4; n++) {
+ i = (i + 1) % 256;
+ j = (j + S[i]) % 256;
+
+ // Swap
+ var t = S[i];
+ S[i] = S[j];
+ S[j] = t;
+
+ keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);
+ }
+
+ // Update counters
+ this._i = i;
+ this._j = j;
+
+ return keystreamWord;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
+ */
+ C.RC4 = StreamCipher._createHelper(RC4);
+
+ /**
+ * Modified RC4 stream cipher algorithm.
+ */
+ var RC4Drop = C_algo.RC4Drop = RC4.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} drop The number of keystream words to drop. Default 192
+ */
+ cfg: RC4.cfg.extend({
+ drop: 192
+ }),
+
+ _doReset: function () {
+ RC4._doReset.call(this);
+
+ // Drop
+ for (var i = this.cfg.drop; i > 0; i--) {
+ generateKeystreamWord.call(this);
+ }
+ }
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
+ */
+ C.RC4Drop = StreamCipher._createHelper(RC4Drop);
+ }());
+
+
+ /** @preserve
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
+ * derived from CryptoJS.mode.CTR
+ * Jan Hruby jhruby.web@gmail.com
+ */
+ CryptoJS.mode.CTRGladman = (function () {
+ var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
+
+ function incWord(word)
+ {
+ if (((word >> 24) & 0xff) === 0xff) { //overflow
+ var b1 = (word >> 16)&0xff;
+ var b2 = (word >> 8)&0xff;
+ var b3 = word & 0xff;
+
+ if (b1 === 0xff) // overflow b1
+ {
+ b1 = 0;
+ if (b2 === 0xff)
+ {
+ b2 = 0;
+ if (b3 === 0xff)
+ {
+ b3 = 0;
+ }
+ else
+ {
+ ++b3;
+ }
+ }
+ else
+ {
+ ++b2;
+ }
+ }
+ else
+ {
+ ++b1;
+ }
+
+ word = 0;
+ word += (b1 << 16);
+ word += (b2 << 8);
+ word += b3;
+ }
+ else
+ {
+ word += (0x01 << 24);
+ }
+ return word;
+ }
+
+ function incCounter(counter)
+ {
+ if ((counter[0] = incWord(counter[0])) === 0)
+ {
+ // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
+ counter[1] = incWord(counter[1]);
+ }
+ return counter;
+ }
+
+ var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var counter = this._counter;
+
+ // Generate keystream
+ if (iv) {
+ counter = this._counter = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+
+ incCounter(counter);
+
+ var keystream = counter.slice(0);
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ CTRGladman.Decryptor = Encryptor;
+
+ return CTRGladman;
+ }());
+
+
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ // Reusable objects
+ var S = [];
+ var C_ = [];
+ var G = [];
+
+ /**
+ * Rabbit stream cipher algorithm
+ */
+ var Rabbit = C_algo.Rabbit = StreamCipher.extend({
+ _doReset: function () {
+ // Shortcuts
+ var K = this._key.words;
+ var iv = this.cfg.iv;
+
+ // Swap endian
+ for (var i = 0; i < 4; i++) {
+ K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |
+ (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);
+ }
+
+ // Generate initial state values
+ var X = this._X = [
+ K[0], (K[3] << 16) | (K[2] >>> 16),
+ K[1], (K[0] << 16) | (K[3] >>> 16),
+ K[2], (K[1] << 16) | (K[0] >>> 16),
+ K[3], (K[2] << 16) | (K[1] >>> 16)
+ ];
+
+ // Generate initial counter values
+ var C = this._C = [
+ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),
+ (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),
+ (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),
+ (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)
+ ];
+
+ // Carry bit
+ this._b = 0;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+
+ // Modify the counters
+ for (var i = 0; i < 8; i++) {
+ C[i] ^= X[(i + 4) & 7];
+ }
+
+ // IV setup
+ if (iv) {
+ // Shortcuts
+ var IV = iv.words;
+ var IV_0 = IV[0];
+ var IV_1 = IV[1];
+
+ // Generate four subvectors
+ var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
+ var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
+ var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+
+ // Modify counter values
+ C[0] ^= i0;
+ C[1] ^= i1;
+ C[2] ^= i2;
+ C[3] ^= i3;
+ C[4] ^= i0;
+ C[5] ^= i1;
+ C[6] ^= i2;
+ C[7] ^= i3;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+ }
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcut
+ var X = this._X;
+
+ // Iterate the system
+ nextState.call(this);
+
+ // Generate four keystream words
+ S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);
+ S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);
+ S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);
+ S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);
+
+ for (var i = 0; i < 4; i++) {
+ // Swap endian
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+
+ // Encrypt
+ M[offset + i] ^= S[i];
+ }
+ },
+
+ blockSize: 128/32,
+
+ ivSize: 64/32
+ });
+
+ function nextState() {
+ // Shortcuts
+ var X = this._X;
+ var C = this._C;
+
+ // Save old counter values
+ for (var i = 0; i < 8; i++) {
+ C_[i] = C[i];
+ }
+
+ // Calculate new counter values
+ C[0] = (C[0] + 0x4d34d34d + this._b) | 0;
+ C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;
+ C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;
+ C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;
+ C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;
+ C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;
+ C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;
+ C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;
+ this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;
+
+ // Calculate the g-values
+ for (var i = 0; i < 8; i++) {
+ var gx = X[i] + C[i];
+
+ // Construct high and low argument for squaring
+ var ga = gx & 0xffff;
+ var gb = gx >>> 16;
+
+ // Calculate high and low result of squaring
+ var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;
+ var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);
+
+ // High XOR low
+ G[i] = gh ^ gl;
+ }
+
+ // Calculate new state values
+ X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
+ */
+ C.Rabbit = StreamCipher._createHelper(Rabbit);
+ }());
+
+
+ /**
+ * Counter block mode.
+ */
+ CryptoJS.mode.CTR = (function () {
+ var CTR = CryptoJS.lib.BlockCipherMode.extend();
+
+ var Encryptor = CTR.Encryptor = CTR.extend({
+ processBlock: function (words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var counter = this._counter;
+
+ // Generate keystream
+ if (iv) {
+ counter = this._counter = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+ var keystream = counter.slice(0);
+ cipher.encryptBlock(keystream, 0);
+
+ // Increment counter
+ counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ CTR.Decryptor = Encryptor;
+
+ return CTR;
+ }());
+
+
+ (function () {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ // Reusable objects
+ var S = [];
+ var C_ = [];
+ var G = [];
+
+ /**
+ * Rabbit stream cipher algorithm.
+ *
+ * This is a legacy version that neglected to convert the key to little-endian.
+ * This error doesn't affect the cipher's security,
+ * but it does affect its compatibility with other implementations.
+ */
+ var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
+ _doReset: function () {
+ // Shortcuts
+ var K = this._key.words;
+ var iv = this.cfg.iv;
+
+ // Generate initial state values
+ var X = this._X = [
+ K[0], (K[3] << 16) | (K[2] >>> 16),
+ K[1], (K[0] << 16) | (K[3] >>> 16),
+ K[2], (K[1] << 16) | (K[0] >>> 16),
+ K[3], (K[2] << 16) | (K[1] >>> 16)
+ ];
+
+ // Generate initial counter values
+ var C = this._C = [
+ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),
+ (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),
+ (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),
+ (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)
+ ];
+
+ // Carry bit
+ this._b = 0;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+
+ // Modify the counters
+ for (var i = 0; i < 8; i++) {
+ C[i] ^= X[(i + 4) & 7];
+ }
+
+ // IV setup
+ if (iv) {
+ // Shortcuts
+ var IV = iv.words;
+ var IV_0 = IV[0];
+ var IV_1 = IV[1];
+
+ // Generate four subvectors
+ var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
+ var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
+ var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+
+ // Modify counter values
+ C[0] ^= i0;
+ C[1] ^= i1;
+ C[2] ^= i2;
+ C[3] ^= i3;
+ C[4] ^= i0;
+ C[5] ^= i1;
+ C[6] ^= i2;
+ C[7] ^= i3;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+ }
+ },
+
+ _doProcessBlock: function (M, offset) {
+ // Shortcut
+ var X = this._X;
+
+ // Iterate the system
+ nextState.call(this);
+
+ // Generate four keystream words
+ S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);
+ S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);
+ S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);
+ S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);
+
+ for (var i = 0; i < 4; i++) {
+ // Swap endian
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+
+ // Encrypt
+ M[offset + i] ^= S[i];
+ }
+ },
+
+ blockSize: 128/32,
+
+ ivSize: 64/32
+ });
+
+ function nextState() {
+ // Shortcuts
+ var X = this._X;
+ var C = this._C;
+
+ // Save old counter values
+ for (var i = 0; i < 8; i++) {
+ C_[i] = C[i];
+ }
+
+ // Calculate new counter values
+ C[0] = (C[0] + 0x4d34d34d + this._b) | 0;
+ C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;
+ C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;
+ C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;
+ C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;
+ C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;
+ C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;
+ C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;
+ this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;
+
+ // Calculate the g-values
+ for (var i = 0; i < 8; i++) {
+ var gx = X[i] + C[i];
+
+ // Construct high and low argument for squaring
+ var ga = gx & 0xffff;
+ var gb = gx >>> 16;
+
+ // Calculate high and low result of squaring
+ var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;
+ var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);
+
+ // High XOR low
+ G[i] = gh ^ gl;
+ }
+
+ // Calculate new state values
+ X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
+ */
+ C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
+ }());
+
+
+ /**
+ * Zero padding strategy.
+ */
+ CryptoJS.pad.ZeroPadding = {
+ pad: function (data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Pad
+ data.clamp();
+ data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);
+ },
+
+ unpad: function (data) {
+ // Shortcut
+ var dataWords = data.words;
+
+ // Unpad
+ var i = data.sigBytes - 1;
+ while (!((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {
+ i--;
+ }
+ data.sigBytes = i + 1;
+ }
+ };
+
+
+ return CryptoJS;
+
+}));
\ No newline at end of file
diff --git a/config/crypto.js b/config/crypto.js
new file mode 100644
index 0000000..8e0ec7d
--- /dev/null
+++ b/config/crypto.js
@@ -0,0 +1,35 @@
+var CryptoJS = require('./crypto-js')
+
+const aecConfig = {
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+}
+var key = 'hqe0nb384oyjwnprd386jmslvoyt2io1'
+var iv = 'udfe1j8woobdmy51xbz7j4814aw9atdx'
+key = CryptoJS.enc.Utf8.parse(key)
+iv = CryptoJS.enc.Utf8.parse(iv)
+//加密方法
+function AES_EN(text) {
+ const encrypted = CryptoJS.AES.encrypt(text, key, {
+ iv,
+ ...aecConfig
+ })
+ return encrypted.ciphertext.toString()
+}
+//解密方法
+function AES_DE(text) {
+
+ text = CryptoJS.enc.Hex.parse(text)
+ const decrypt = CryptoJS.AES.decrypt({
+ ciphertext: text
+ }, key, {
+ iv,
+ ...aecConfig
+ })
+ const decryptedStr = decrypt.toString(CryptoJS.enc.Utf8)
+ return decryptedStr.toString()
+}
+export {
+ AES_EN,
+ AES_DE
+}
\ No newline at end of file
diff --git a/images/dzpj.jpg b/images/dzpj.jpg
new file mode 100644
index 0000000..80394f1
Binary files /dev/null and b/images/dzpj.jpg differ
diff --git a/images/icon-close.png b/images/icon-close.png
new file mode 100644
index 0000000..b04655b
Binary files /dev/null and b/images/icon-close.png differ
diff --git a/images/index01.png b/images/index01.png
new file mode 100644
index 0000000..746028b
Binary files /dev/null and b/images/index01.png differ
diff --git a/images/index02.png b/images/index02.png
new file mode 100644
index 0000000..0104127
Binary files /dev/null and b/images/index02.png differ
diff --git a/images/info-icon.png b/images/info-icon.png
new file mode 100644
index 0000000..170d26c
Binary files /dev/null and b/images/info-icon.png differ
diff --git a/images/ma.jpg b/images/ma.jpg
new file mode 100644
index 0000000..e8fcf25
Binary files /dev/null and b/images/ma.jpg differ
diff --git a/images/medical-logo.png b/images/medical-logo.png
new file mode 100644
index 0000000..7696807
Binary files /dev/null and b/images/medical-logo.png differ
diff --git a/images/my01.png b/images/my01.png
new file mode 100644
index 0000000..46e0a59
Binary files /dev/null and b/images/my01.png differ
diff --git a/images/my02.png b/images/my02.png
new file mode 100644
index 0000000..213b0d0
Binary files /dev/null and b/images/my02.png differ
diff --git a/images/pj.jpg b/images/pj.jpg
new file mode 100644
index 0000000..6ea50af
Binary files /dev/null and b/images/pj.jpg differ
diff --git a/images/wei.svg b/images/wei.svg
new file mode 100644
index 0000000..eb77067
--- /dev/null
+++ b/images/wei.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/action-sheet/index.d.ts b/miniprogram_npm/@vant/weapp/action-sheet/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/action-sheet/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/action-sheet/index.js b/miniprogram_npm/@vant/weapp/action-sheet/index.js
new file mode 100644
index 0000000..8403b68
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/action-sheet/index.js
@@ -0,0 +1,78 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+(0, component_1.VantComponent)({
+ classes: ['list-class'],
+ mixins: [button_1.button],
+ props: {
+ show: Boolean,
+ title: String,
+ cancelText: String,
+ description: String,
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ actions: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickAction: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var _a = this.data, actions = _a.actions, closeOnClickAction = _a.closeOnClickAction, canIUseGetUserProfile = _a.canIUseGetUserProfile;
+ var item = actions[index];
+ if (item) {
+ this.$emit('select', item);
+ if (closeOnClickAction) {
+ this.onClose();
+ }
+ if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: item.getUserProfileDesc || ' ',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ }
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ this.onClose();
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/action-sheet/index.json b/miniprogram_npm/@vant/weapp/action-sheet/index.json
new file mode 100644
index 0000000..19bf989
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/action-sheet/index.json
@@ -0,0 +1,8 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-popup": "../popup/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/action-sheet/index.wxml b/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
new file mode 100644
index 0000000..6311e33
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/action-sheet/index.wxml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ {{ description }}
+
+
+
+
+
+
+
+
+
+ {{ cancelText }}
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/action-sheet/index.wxss b/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
new file mode 100644
index 0000000..eedd361
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/action-sheet/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-action-sheet{color:var(--action-sheet-item-text-color,#323233);max-height:var(--action-sheet-max-height,90%)!important}.van-action-sheet__cancel,.van-action-sheet__item{background-color:var(--action-sheet-item-background,#fff);font-size:var(--action-sheet-item-font-size,16px);line-height:var(--action-sheet-item-line-height,22px);padding:14px 16px;text-align:center}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{background-color:var(--action-sheet-cancel-padding-color,#f7f8fa);display:block;height:var(--action-sheet-cancel-padding-top,8px)}.van-action-sheet__item--disabled{color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{color:var(--action-sheet-subname-color,#969799);font-size:var(--action-sheet-subname-font-size,12px);line-height:var(--action-sheet-subname-line-height,20px);margin-top:var(--padding-xs,8px)}.van-action-sheet__header{font-size:var(--action-sheet-header-font-size,16px);font-weight:var(--font-weight-bold,500);line-height:var(--action-sheet-header-height,48px);text-align:center}.van-action-sheet__description{color:var(--action-sheet-description-color,#969799);font-size:var(--action-sheet-description-font-size,14px);line-height:var(--action-sheet-description-line-height,20px);padding:20px var(--padding-md,16px);text-align:center}.van-action-sheet__close{color:var(--action-sheet-close-icon-color,#c8c9cc);font-size:var(--action-sheet-close-icon-size,22px)!important;line-height:inherit!important;padding:var(--action-sheet-close-icon-padding,0 16px);position:absolute!important;right:0;top:0}.van-action-sheet__loading{display:flex!important}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/area/index.d.ts b/miniprogram_npm/@vant/weapp/area/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/area/index.js b/miniprogram_npm/@vant/weapp/area/index.js
new file mode 100644
index 0000000..73de66d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.js
@@ -0,0 +1,235 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("../picker/shared");
+var utils_1 = require("../common/utils");
+var EMPTY_CODE = '000000';
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { showToolbar: {
+ type: Boolean,
+ value: true,
+ }, value: {
+ type: String,
+ observer: function (value) {
+ this.code = value;
+ this.setValues();
+ },
+ }, areaList: {
+ type: Object,
+ value: {},
+ observer: 'setValues',
+ }, columnsNum: {
+ type: null,
+ value: 3,
+ }, columnsPlaceholder: {
+ type: Array,
+ observer: function (val) {
+ this.setData({
+ typeToColumnsPlaceholder: {
+ province: val[0] || '',
+ city: val[1] || '',
+ county: val[2] || '',
+ },
+ });
+ },
+ } }),
+ data: {
+ columns: [{ values: [] }, { values: [] }, { values: [] }],
+ typeToColumnsPlaceholder: {},
+ },
+ mounted: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.setValues();
+ });
+ },
+ methods: {
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-area__picker');
+ }
+ return this.picker;
+ },
+ onCancel: function (event) {
+ this.emit('cancel', event.detail);
+ },
+ onConfirm: function (event) {
+ var index = event.detail.index;
+ var value = event.detail.value;
+ value = this.parseValues(value);
+ this.emit('confirm', { value: value, index: index });
+ },
+ emit: function (type, detail) {
+ detail.values = detail.value;
+ delete detail.value;
+ this.$emit(type, detail);
+ },
+ parseValues: function (values) {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ return values.map(function (value, index) {
+ if (value &&
+ (!value.code || value.name === columnsPlaceholder[index])) {
+ return __assign(__assign({}, value), { code: '', name: '' });
+ }
+ return value;
+ });
+ },
+ onChange: function (event) {
+ var _this = this;
+ var _a;
+ var _b = event.detail, index = _b.index, picker = _b.picker, value = _b.value;
+ this.code = value[index].code;
+ (_a = this.setValues()) === null || _a === void 0 ? void 0 : _a.then(function () {
+ _this.$emit('change', {
+ picker: picker,
+ values: _this.parseValues(picker.getValues()),
+ index: index,
+ });
+ });
+ },
+ getConfig: function (type) {
+ var areaList = this.data.areaList;
+ return (areaList && areaList["".concat(type, "_list")]) || {};
+ },
+ getList: function (type, code) {
+ if (type !== 'province' && !code) {
+ return [];
+ }
+ var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
+ var list = this.getConfig(type);
+ var result = Object.keys(list).map(function (code) { return ({
+ code: code,
+ name: list[code],
+ }); });
+ if (code != null) {
+ // oversea code
+ if (code[0] === '9' && type === 'city') {
+ code = '9';
+ }
+ result = result.filter(function (item) { return item.code.indexOf(code) === 0; });
+ }
+ if (typeToColumnsPlaceholder[type] && result.length) {
+ // set columns placeholder
+ var codeFill = type === 'province'
+ ? ''
+ : type === 'city'
+ ? EMPTY_CODE.slice(2, 4)
+ : EMPTY_CODE.slice(4, 6);
+ result.unshift({
+ code: "".concat(code).concat(codeFill),
+ name: typeToColumnsPlaceholder[type],
+ });
+ }
+ return result;
+ },
+ getIndex: function (type, code) {
+ var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+ var list = this.getList(type, code.slice(0, compareNum - 2));
+ // oversea code
+ if (code[0] === '9' && type === 'province') {
+ compareNum = 1;
+ }
+ code = code.slice(0, compareNum);
+ for (var i = 0; i < list.length; i++) {
+ if (list[i].code.slice(0, compareNum) === code) {
+ return i;
+ }
+ }
+ return 0;
+ },
+ setValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return;
+ }
+ var code = this.code || this.getDefaultCode();
+ var provinceList = this.getList('province');
+ var cityList = this.getList('city', code.slice(0, 2));
+ var stack = [];
+ var indexes = [];
+ var columnsNum = this.data.columnsNum;
+ if (columnsNum >= 1) {
+ stack.push(picker.setColumnValues(0, provinceList, false));
+ indexes.push(this.getIndex('province', code));
+ }
+ if (columnsNum >= 2) {
+ stack.push(picker.setColumnValues(1, cityList, false));
+ indexes.push(this.getIndex('city', code));
+ if (cityList.length && code.slice(2, 4) === '00') {
+ code = cityList[0].code;
+ }
+ }
+ if (columnsNum === 3) {
+ stack.push(picker.setColumnValues(2, this.getList('county', code.slice(0, 4)), false));
+ indexes.push(this.getIndex('county', code));
+ }
+ return Promise.all(stack)
+ .catch(function () { })
+ .then(function () { return picker.setIndexes(indexes); })
+ .catch(function () { });
+ },
+ getDefaultCode: function () {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ if (columnsPlaceholder.length) {
+ return EMPTY_CODE;
+ }
+ var countyCodes = Object.keys(this.getConfig('county'));
+ if (countyCodes[0]) {
+ return countyCodes[0];
+ }
+ var cityCodes = Object.keys(this.getConfig('city'));
+ if (cityCodes[0]) {
+ return cityCodes[0];
+ }
+ return '';
+ },
+ getValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return [];
+ }
+ return this.parseValues(picker.getValues().filter(function (value) { return !!value; }));
+ },
+ getDetail: function () {
+ var values = this.getValues();
+ var area = {
+ code: '',
+ country: '',
+ province: '',
+ city: '',
+ county: '',
+ };
+ if (!values.length) {
+ return area;
+ }
+ var names = values.map(function (item) { return item.name; });
+ area.code = values[values.length - 1].code;
+ if (area.code[0] === '9') {
+ area.country = names[1] || '';
+ area.province = names[2] || '';
+ }
+ else {
+ area.province = names[0] || '';
+ area.city = names[1] || '';
+ area.county = names[2] || '';
+ }
+ return area;
+ },
+ reset: function (code) {
+ this.code = code || '';
+ return this.setValues();
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/area/index.json b/miniprogram_npm/@vant/weapp/area/index.json
new file mode 100644
index 0000000..a778e91
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-picker": "../picker/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/area/index.wxml b/miniprogram_npm/@vant/weapp/area/index.wxml
new file mode 100644
index 0000000..3a437b7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.wxml
@@ -0,0 +1,20 @@
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/area/index.wxs b/miniprogram_npm/@vant/weapp/area/index.wxs
new file mode 100644
index 0000000..07723c1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.wxs
@@ -0,0 +1,8 @@
+/* eslint-disable */
+function displayColumns(columns, columnsNum) {
+ return columns.slice(0, +columnsNum);
+}
+
+module.exports = {
+ displayColumns: displayColumns,
+};
diff --git a/miniprogram_npm/@vant/weapp/area/index.wxss b/miniprogram_npm/@vant/weapp/area/index.wxss
new file mode 100644
index 0000000..99694d6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/area/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/button/index.d.ts b/miniprogram_npm/@vant/weapp/button/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/button/index.js b/miniprogram_npm/@vant/weapp/button/index.js
new file mode 100644
index 0000000..984135c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.js
@@ -0,0 +1,67 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var version_1 = require("../common/version");
+var mixins = [button_1.button];
+if ((0, version_1.canIUseFormFieldButton)()) {
+ mixins.push('wx://form-field-button');
+}
+(0, component_1.VantComponent)({
+ mixins: mixins,
+ classes: ['hover-class', 'loading-class'],
+ data: {
+ baseStyle: '',
+ },
+ props: {
+ formType: String,
+ icon: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ plain: Boolean,
+ block: Boolean,
+ round: Boolean,
+ square: Boolean,
+ loading: Boolean,
+ hairline: Boolean,
+ disabled: Boolean,
+ loadingText: String,
+ customStyle: String,
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ type: {
+ type: String,
+ value: 'default',
+ },
+ dataset: null,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loadingSize: {
+ type: String,
+ value: '20px',
+ },
+ color: String,
+ },
+ methods: {
+ onClick: function (event) {
+ var _this = this;
+ this.$emit('click', event);
+ var _a = this.data, canIUseGetUserProfile = _a.canIUseGetUserProfile, openType = _a.openType, getUserProfileDesc = _a.getUserProfileDesc, lang = _a.lang;
+ if (openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: getUserProfileDesc || ' ',
+ lang: lang || 'en',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/button/index.json b/miniprogram_npm/@vant/weapp/button/index.json
new file mode 100644
index 0000000..e00a588
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/button/index.wxml b/miniprogram_npm/@vant/weapp/button/index.wxml
new file mode 100644
index 0000000..e7f60f1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.wxml
@@ -0,0 +1,56 @@
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/button/index.wxs b/miniprogram_npm/@vant/weapp/button/index.wxs
new file mode 100644
index 0000000..8b649fe
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.wxs
@@ -0,0 +1,39 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ if (!data.color) {
+ return data.customStyle;
+ }
+
+ var properties = {
+ color: data.plain ? data.color : '#fff',
+ background: data.plain ? null : data.color,
+ };
+
+ // hide border when color is linear-gradient
+ if (data.color.indexOf('gradient') !== -1) {
+ properties.border = 0;
+ } else {
+ properties['border-color'] = data.color;
+ }
+
+ return style([properties, data.customStyle]);
+}
+
+function loadingColor(data) {
+ if (data.plain) {
+ return data.color ? data.color : '#c9c9c9';
+ }
+
+ if (data.type === 'default') {
+ return '#c9c9c9';
+ }
+
+ return '#fff';
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ loadingColor: loadingColor,
+};
diff --git a/miniprogram_npm/@vant/weapp/button/index.wxss b/miniprogram_npm/@vant/weapp/button/index.wxss
new file mode 100644
index 0000000..bd8bb5a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/button/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,2px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);height:var(--button-default-height,44px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.van-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.van-button:after{border-width:0}.van-button--active:before{opacity:.15}.van-button--unclickable:after{display:none}.van-button--default{background:var(--button-default-background-color,#fff);border:var(--button-border-width,1px) solid var(--button-default-border-color,#ebedf0);color:var(--button-default-color,#323233)}.van-button--primary{background:var(--button-primary-background-color,#07c160);border:var(--button-border-width,1px) solid var(--button-primary-border-color,#07c160);color:var(--button-primary-color,#fff)}.van-button--info{background:var(--button-info-background-color,#1989fa);border:var(--button-border-width,1px) solid var(--button-info-border-color,#1989fa);color:var(--button-info-color,#fff)}.van-button--danger{background:var(--button-danger-background-color,#ee0a24);border:var(--button-border-width,1px) solid var(--button-danger-border-color,#ee0a24);color:var(--button-danger-color,#fff)}.van-button--warning{background:var(--button-warning-background-color,#ff976a);border:var(--button-border-width,1px) solid var(--button-warning-border-color,#ff976a);color:var(--button-warning-color,#fff)}.van-button--plain{background:var(--button-plain-background-color,#fff)}.van-button--plain.van-button--primary{color:var(--button-primary-background-color,#07c160)}.van-button--plain.van-button--info{color:var(--button-info-background-color,#1989fa)}.van-button--plain.van-button--danger{color:var(--button-danger-background-color,#ee0a24)}.van-button--plain.van-button--warning{color:var(--button-warning-background-color,#ff976a)}.van-button--large{height:var(--button-large-height,50px);width:100%}.van-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.van-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.van-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.van-button--mini+.van-button--mini{margin-left:5px}.van-button--block{display:flex;width:100%}.van-button--round{border-radius:var(--button-round-border-radius,999px)}.van-button--square{border-radius:0}.van-button--disabled{opacity:var(--button-disabled-opacity,.5)}.van-button__text{display:inline}.van-button__icon+.van-button__text:not(:empty),.van-button__loading-text{margin-left:4px}.van-button__icon{line-height:inherit!important;min-width:1em;vertical-align:top}.van-button--hairline{border-width:0;padding-top:1px}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 2px)*2);border-width:1px}.van-button--hairline.van-button--round:after{border-radius:var(--button-round-border-radius,999px)}.van-button--hairline.van-button--square:after{border-radius:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/calendar/calendar.wxml b/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
new file mode 100644
index 0000000..2ddb048
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/calendar.wxml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/header/index.d.ts b/miniprogram_npm/@vant/weapp/calendar/components/header/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/header/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/header/index.js b/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
new file mode 100644
index 0000000..544b3a4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/header/index.js
@@ -0,0 +1,45 @@
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ subtitle: String,
+ showTitle: Boolean,
+ showSubtitle: Boolean,
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'initWeekDay',
+ },
+ },
+ data: {
+ weekdays: [],
+ },
+ created: function () {
+ this.initWeekDay();
+ },
+ methods: {
+ initWeekDay: function () {
+ var defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
+ var firstDayOfWeek = this.data.firstDayOfWeek || 0;
+ this.setData({
+ weekdays: __spreadArray(__spreadArray([], defaultWeeks.slice(firstDayOfWeek, 7), true), defaultWeeks.slice(0, firstDayOfWeek), true),
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/header/index.json b/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/header/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml b/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
new file mode 100644
index 0000000..7e56c83
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml
@@ -0,0 +1,16 @@
+
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss b/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
new file mode 100644
index 0000000..272537e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxss
@@ -0,0 +1 @@
+@import '../../../common/index.wxss';.van-calendar__header{box-shadow:var(--calendar-header-box-shadow,0 2px 10px hsla(220,1%,50%,.16));flex-shrink:0}.van-calendar__header-subtitle,.van-calendar__header-title{font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--calendar-weekdays-font-size,12px);line-height:var(--calendar-weekdays-height,30px);text-align:center}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.d.ts b/miniprogram_npm/@vant/weapp/calendar/components/month/index.d.ts
new file mode 100644
index 0000000..3ccf85a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.d.ts
@@ -0,0 +1,6 @@
+export interface Day {
+ date: Date;
+ type: string;
+ text: number;
+ bottomInfo?: string;
+}
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.js b/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
new file mode 100644
index 0000000..4d137f5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.js
@@ -0,0 +1,158 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
+var utils_1 = require("../../utils");
+(0, component_1.VantComponent)({
+ props: {
+ date: {
+ type: null,
+ observer: 'setDays',
+ },
+ type: {
+ type: String,
+ observer: 'setDays',
+ },
+ color: String,
+ minDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ maxDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ showMark: Boolean,
+ rowHeight: null,
+ formatter: {
+ type: null,
+ observer: 'setDays',
+ },
+ currentDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'setDays',
+ },
+ allowSameDay: Boolean,
+ showSubtitle: Boolean,
+ showMonthTitle: Boolean,
+ },
+ data: {
+ visible: true,
+ days: [],
+ },
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.days[index];
+ if (item.type !== 'disabled') {
+ this.$emit('click', item);
+ }
+ },
+ setDays: function () {
+ var days = [];
+ var startDate = new Date(this.data.date);
+ var year = startDate.getFullYear();
+ var month = startDate.getMonth();
+ var totalDay = (0, utils_1.getMonthEndDay)(startDate.getFullYear(), startDate.getMonth() + 1);
+ for (var day = 1; day <= totalDay; day++) {
+ var date = new Date(year, month, day);
+ var type = this.getDayType(date);
+ var config = {
+ date: date,
+ type: type,
+ text: day,
+ bottomInfo: this.getBottomInfo(type),
+ };
+ if (this.data.formatter) {
+ config = this.data.formatter(config);
+ }
+ days.push(config);
+ }
+ this.setData({ days: days });
+ },
+ getMultipleDayType: function (day) {
+ var currentDate = this.data.currentDate;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var isSelected = function (date) {
+ return currentDate.some(function (item) { return (0, utils_1.compareDay)(item, date) === 0; });
+ };
+ if (isSelected(day)) {
+ var prevDay = (0, utils_1.getPrevDay)(day);
+ var nextDay = (0, utils_1.getNextDay)(day);
+ var prevSelected = isSelected(prevDay);
+ var nextSelected = isSelected(nextDay);
+ if (prevSelected && nextSelected) {
+ return 'multiple-middle';
+ }
+ if (prevSelected) {
+ return 'end';
+ }
+ return nextSelected ? 'start' : 'multiple-selected';
+ }
+ return '';
+ },
+ getRangeDayType: function (day) {
+ var _a = this.data, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var startDay = currentDate[0], endDay = currentDate[1];
+ if (!startDay) {
+ return '';
+ }
+ var compareToStart = (0, utils_1.compareDay)(day, startDay);
+ if (!endDay) {
+ return compareToStart === 0 ? 'start' : '';
+ }
+ var compareToEnd = (0, utils_1.compareDay)(day, endDay);
+ if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
+ return 'start-end';
+ }
+ if (compareToStart === 0) {
+ return 'start';
+ }
+ if (compareToEnd === 0) {
+ return 'end';
+ }
+ if (compareToStart > 0 && compareToEnd < 0) {
+ return 'middle';
+ }
+ return '';
+ },
+ getDayType: function (day) {
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, currentDate = _a.currentDate;
+ if ((0, utils_1.compareDay)(day, minDate) < 0 || (0, utils_1.compareDay)(day, maxDate) > 0) {
+ return 'disabled';
+ }
+ if (type === 'single') {
+ return (0, utils_1.compareDay)(day, currentDate) === 0 ? 'selected' : '';
+ }
+ if (type === 'multiple') {
+ return this.getMultipleDayType(day);
+ }
+ /* istanbul ignore else */
+ if (type === 'range') {
+ return this.getRangeDayType(day);
+ }
+ return '';
+ },
+ getBottomInfo: function (type) {
+ if (this.data.type === 'range') {
+ if (type === 'start') {
+ return '开始';
+ }
+ if (type === 'end') {
+ return '结束';
+ }
+ if (type === 'start-end') {
+ return '开始/结束';
+ }
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.json b/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
new file mode 100644
index 0000000..0c73b2f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ {{ computed.formatMonthTitle(date) }}
+
+
+
+
+ {{ computed.getMark(date) }}
+
+
+
+
+ {{ item.topInfo }}
+ {{ item.text }}
+
+ {{ item.bottomInfo }}
+
+
+
+
+ {{ item.topInfo }}
+ {{ item.text }}
+
+ {{ item.bottomInfo }}
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
new file mode 100644
index 0000000..55e45a5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxs
@@ -0,0 +1,71 @@
+/* eslint-disable */
+var utils = require('../../utils.wxs');
+
+function getMark(date) {
+ return getDate(date).getMonth() + 1;
+}
+
+var ROW_HEIGHT = 64;
+
+function getDayStyle(type, index, date, rowHeight, color, firstDayOfWeek) {
+ var style = [];
+ var current = getDate(date).getDay() || 7;
+ var offset = current < firstDayOfWeek ? (7 - firstDayOfWeek + current) :
+ current === 7 && firstDayOfWeek === 0 ? 0 :
+ (current - firstDayOfWeek);
+
+ if (index === 0) {
+ style.push(['margin-left', (100 * offset) / 7 + '%']);
+ }
+
+ if (rowHeight !== ROW_HEIGHT) {
+ style.push(['height', rowHeight + 'px']);
+ }
+
+ if (color) {
+ if (
+ type === 'start' ||
+ type === 'end' ||
+ type === 'start-end' ||
+ type === 'multiple-selected' ||
+ type === 'multiple-middle'
+ ) {
+ style.push(['background', color]);
+ } else if (type === 'middle') {
+ style.push(['color', color]);
+ }
+ }
+
+ return style
+ .map(function(item) {
+ return item.join(':');
+ })
+ .join(';');
+}
+
+function formatMonthTitle(date) {
+ date = getDate(date);
+ return date.getFullYear() + '年' + (date.getMonth() + 1) + '月';
+}
+
+function getMonthStyle(visible, date, rowHeight) {
+ if (!visible) {
+ date = getDate(date);
+
+ var totalDay = utils.getMonthEndDay(
+ date.getFullYear(),
+ date.getMonth() + 1
+ );
+ var offset = getDate(date).getDay();
+ var padding = Math.ceil((totalDay + offset) / 7) * rowHeight;
+
+ return 'padding-bottom:' + padding + 'px';
+ }
+}
+
+module.exports = {
+ getMark: getMark,
+ getDayStyle: getDayStyle,
+ formatMonthTitle: formatMonthTitle,
+ getMonthStyle: getMonthStyle
+};
diff --git a/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
new file mode 100644
index 0000000..9aee73d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxss
@@ -0,0 +1 @@
+@import '../../../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:100%}.van-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.van-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{color:var(--calendar-month-mark-color,rgba(242,243,245,.8));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.van-calendar__day,.van-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.van-calendar__day{font-size:var(--calendar-day-font-size,16px);height:var(--calendar-day-height,64px);position:relative;width:14.285%}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#ee0a24);color:var(--calendar-range-edge-color,#fff)}.van-calendar__day--start{border-radius:4px 0 0 4px}.van-calendar__day--end{border-radius:0 4px 4px 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:4px}.van-calendar__day--middle{color:var(--calendar-range-middle-color,#ee0a24)}.van-calendar__day--middle:after{background-color:currentColor;bottom:0;content:"";left:0;opacity:var(--calendar-range-middle-background-opacity,.1);position:absolute;right:0;top:0}.van-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.van-calendar__bottom-info,.van-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#ee0a24);border-radius:4px;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,54px);width:var(--calendar-selected-day-size,54px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.d.ts b/miniprogram_npm/@vant/weapp/calendar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.js b/miniprogram_npm/@vant/weapp/calendar/index.js
new file mode 100644
index 0000000..7a7324d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.js
@@ -0,0 +1,383 @@
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var toast_1 = __importDefault(require("../toast/toast"));
+var utils_2 = require("../common/utils");
+var initialMinDate = (0, utils_1.getToday)().getTime();
+var initialMaxDate = (function () {
+ var now = (0, utils_1.getToday)();
+ return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()).getTime();
+})();
+var getTime = function (date) {
+ return date instanceof Date ? date.getTime() : date;
+};
+(0, component_1.VantComponent)({
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ color: String,
+ show: {
+ type: Boolean,
+ observer: function (val) {
+ if (val) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ },
+ formatter: null,
+ confirmText: {
+ type: String,
+ value: '确定',
+ },
+ confirmDisabledText: {
+ type: String,
+ value: '确定',
+ },
+ rangePrompt: String,
+ showRangePrompt: {
+ type: Boolean,
+ value: true,
+ },
+ defaultDate: {
+ type: null,
+ value: (0, utils_1.getToday)().getTime(),
+ observer: function (val) {
+ this.setData({ currentDate: val });
+ this.scrollIntoView();
+ },
+ },
+ allowSameDay: Boolean,
+ type: {
+ type: String,
+ value: 'single',
+ observer: 'reset',
+ },
+ minDate: {
+ type: Number,
+ value: initialMinDate,
+ },
+ maxDate: {
+ type: Number,
+ value: initialMaxDate,
+ },
+ position: {
+ type: String,
+ value: 'bottom',
+ },
+ rowHeight: {
+ type: null,
+ value: utils_1.ROW_HEIGHT,
+ },
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ poppable: {
+ type: Boolean,
+ value: true,
+ },
+ showMark: {
+ type: Boolean,
+ value: true,
+ },
+ showTitle: {
+ type: Boolean,
+ value: true,
+ },
+ showConfirm: {
+ type: Boolean,
+ value: true,
+ },
+ showSubtitle: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ maxRange: {
+ type: null,
+ value: null,
+ },
+ minRange: {
+ type: Number,
+ value: 1,
+ },
+ firstDayOfWeek: {
+ type: Number,
+ value: 0,
+ },
+ readonly: Boolean,
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ subtitle: '',
+ currentDate: null,
+ scrollIntoView: '',
+ },
+ watch: {
+ minDate: function () {
+ this.initRect();
+ },
+ maxDate: function () {
+ this.initRect();
+ },
+ },
+ created: function () {
+ this.setData({
+ currentDate: this.getInitialDate(this.data.defaultDate),
+ });
+ },
+ mounted: function () {
+ if (this.data.show || !this.data.poppable) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ methods: {
+ reset: function () {
+ this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
+ this.scrollIntoView();
+ },
+ initRect: function () {
+ var _this = this;
+ if (this.contentObserver != null) {
+ this.contentObserver.disconnect();
+ }
+ var contentObserver = this.createIntersectionObserver({
+ thresholds: [0, 0.1, 0.9, 1],
+ observeAll: true,
+ });
+ this.contentObserver = contentObserver;
+ contentObserver.relativeTo('.van-calendar__body');
+ contentObserver.observe('.month', function (res) {
+ if (res.boundingClientRect.top <= res.relativeRect.top) {
+ // @ts-ignore
+ _this.setData({ subtitle: (0, utils_1.formatMonthTitle)(res.dataset.date) });
+ }
+ });
+ },
+ limitDateRange: function (date, minDate, maxDate) {
+ if (minDate === void 0) { minDate = null; }
+ if (maxDate === void 0) { maxDate = null; }
+ minDate = minDate || this.data.minDate;
+ maxDate = maxDate || this.data.maxDate;
+ if ((0, utils_1.compareDay)(date, minDate) === -1) {
+ return minDate;
+ }
+ if ((0, utils_1.compareDay)(date, maxDate) === 1) {
+ return maxDate;
+ }
+ return date;
+ },
+ getInitialDate: function (defaultDate) {
+ var _this = this;
+ if (defaultDate === void 0) { defaultDate = null; }
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, allowSameDay = _a.allowSameDay;
+ if (!defaultDate)
+ return [];
+ var now = (0, utils_1.getToday)().getTime();
+ if (type === 'range') {
+ if (!Array.isArray(defaultDate)) {
+ defaultDate = [];
+ }
+ var _b = defaultDate || [], startDay = _b[0], endDay = _b[1];
+ var startDate = getTime(startDay || now);
+ var start = this.limitDateRange(startDate, minDate, allowSameDay ? startDate : (0, utils_1.getPrevDay)(new Date(maxDate)).getTime());
+ var date = getTime(endDay || now);
+ var end = this.limitDateRange(date, allowSameDay ? date : (0, utils_1.getNextDay)(new Date(minDate)).getTime());
+ return [start, end];
+ }
+ if (type === 'multiple') {
+ if (Array.isArray(defaultDate)) {
+ return defaultDate.map(function (date) { return _this.limitDateRange(date); });
+ }
+ return [this.limitDateRange(now)];
+ }
+ if (!defaultDate || Array.isArray(defaultDate)) {
+ defaultDate = now;
+ }
+ return this.limitDateRange(defaultDate);
+ },
+ scrollIntoView: function () {
+ var _this = this;
+ (0, utils_2.requestAnimationFrame)(function () {
+ var _a = _this.data, currentDate = _a.currentDate, type = _a.type, show = _a.show, poppable = _a.poppable, minDate = _a.minDate, maxDate = _a.maxDate;
+ if (!currentDate)
+ return;
+ // @ts-ignore
+ var targetDate = type === 'single' ? currentDate : currentDate[0];
+ var displayed = show || !poppable;
+ if (!targetDate || !displayed) {
+ return;
+ }
+ var months = (0, utils_1.getMonths)(minDate, maxDate);
+ months.some(function (month, index) {
+ if ((0, utils_1.compareMonth)(month, targetDate) === 0) {
+ _this.setData({ scrollIntoView: "month".concat(index) });
+ return true;
+ }
+ return false;
+ });
+ });
+ },
+ onOpen: function () {
+ this.$emit('open');
+ },
+ onOpened: function () {
+ this.$emit('opened');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClosed: function () {
+ this.$emit('closed');
+ },
+ onClickDay: function (event) {
+ if (this.data.readonly) {
+ return;
+ }
+ var date = event.detail.date;
+ var _a = this.data, type = _a.type, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (type === 'range') {
+ // @ts-ignore
+ var startDay_1 = currentDate[0], endDay = currentDate[1];
+ if (startDay_1 && !endDay) {
+ var compareToStart = (0, utils_1.compareDay)(date, startDay_1);
+ if (compareToStart === 1) {
+ var days_1 = this.selectComponent('.month').data.days;
+ days_1.some(function (day, index) {
+ var isDisabled = day.type === 'disabled' &&
+ getTime(startDay_1) < getTime(day.date) &&
+ getTime(day.date) < getTime(date);
+ if (isDisabled) {
+ (date = days_1[index - 1].date);
+ }
+ return isDisabled;
+ });
+ this.select([startDay_1, date], true);
+ }
+ else if (compareToStart === -1) {
+ this.select([date, null]);
+ }
+ else if (allowSameDay) {
+ this.select([date, date], true);
+ }
+ }
+ else {
+ this.select([date, null]);
+ }
+ }
+ else if (type === 'multiple') {
+ var selectedIndex_1;
+ // @ts-ignore
+ var selected = currentDate.some(function (dateItem, index) {
+ var equal = (0, utils_1.compareDay)(dateItem, date) === 0;
+ if (equal) {
+ selectedIndex_1 = index;
+ }
+ return equal;
+ });
+ if (selected) {
+ // @ts-ignore
+ var cancelDate = currentDate.splice(selectedIndex_1, 1);
+ this.setData({ currentDate: currentDate });
+ this.unselect(cancelDate);
+ }
+ else {
+ // @ts-ignore
+ this.select(__spreadArray(__spreadArray([], currentDate, true), [date], false));
+ }
+ }
+ else {
+ this.select(date, true);
+ }
+ },
+ unselect: function (dateArray) {
+ var date = dateArray[0];
+ if (date) {
+ this.$emit('unselect', (0, utils_1.copyDates)(date));
+ }
+ },
+ select: function (date, complete) {
+ if (complete && this.data.type === 'range') {
+ var valid = this.checkRange(date);
+ if (!valid) {
+ // auto selected to max range if showConfirm
+ if (this.data.showConfirm) {
+ this.emit([
+ date[0],
+ (0, utils_1.getDayByOffset)(date[0], this.data.maxRange - 1),
+ ]);
+ }
+ else {
+ this.emit(date);
+ }
+ return;
+ }
+ }
+ this.emit(date);
+ if (complete && !this.data.showConfirm) {
+ this.onConfirm();
+ }
+ },
+ emit: function (date) {
+ this.setData({
+ currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
+ });
+ this.$emit('select', (0, utils_1.copyDates)(date));
+ },
+ checkRange: function (date) {
+ var _a = this.data, maxRange = _a.maxRange, rangePrompt = _a.rangePrompt, showRangePrompt = _a.showRangePrompt;
+ if (maxRange && (0, utils_1.calcDateNum)(date) > maxRange) {
+ if (showRangePrompt) {
+ (0, toast_1.default)({
+ context: this,
+ message: rangePrompt || "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 ".concat(maxRange, " \u5929"),
+ });
+ }
+ this.$emit('over-range');
+ return false;
+ }
+ return true;
+ },
+ onConfirm: function () {
+ var _this = this;
+ if (this.data.type === 'range' &&
+ !this.checkRange(this.data.currentDate)) {
+ return;
+ }
+ wx.nextTick(function () {
+ // @ts-ignore
+ _this.$emit('confirm', (0, utils_1.copyDates)(_this.data.currentDate));
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.json b/miniprogram_npm/@vant/weapp/calendar/index.json
new file mode 100644
index 0000000..397d5ae
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.json
@@ -0,0 +1,10 @@
+{
+ "component": true,
+ "usingComponents": {
+ "header": "./components/header/index",
+ "month": "./components/month/index",
+ "van-button": "../button/index",
+ "van-popup": "../popup/index",
+ "van-toast": "../toast/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.wxml b/miniprogram_npm/@vant/weapp/calendar/index.wxml
new file mode 100644
index 0000000..9d0fc6b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.wxml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.wxs b/miniprogram_npm/@vant/weapp/calendar/index.wxs
new file mode 100644
index 0000000..0a56646
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.wxs
@@ -0,0 +1,37 @@
+/* eslint-disable */
+var utils = require('./utils.wxs');
+
+function getMonths(minDate, maxDate) {
+ var months = [];
+ var cursor = getDate(minDate);
+
+ cursor.setDate(1);
+
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
+
+ return months;
+}
+
+function getButtonDisabled(type, currentDate, minRange) {
+ if (currentDate == null) {
+ return true;
+ }
+
+ if (type === 'range') {
+ return !currentDate[0] || !currentDate[1];
+ }
+
+ if (type === 'multiple') {
+ return currentDate.length < minRange;
+ }
+
+ return !currentDate;
+}
+
+module.exports = {
+ getMonths: getMonths,
+ getButtonDisabled: getButtonDisabled
+};
diff --git a/miniprogram_npm/@vant/weapp/calendar/index.wxss b/miniprogram_npm/@vant/weapp/calendar/index.wxss
new file mode 100644
index 0000000..a1f1cf0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,#fff);display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,90%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/calendar/utils.d.ts b/miniprogram_npm/@vant/weapp/calendar/utils.d.ts
new file mode 100644
index 0000000..889e6e7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/utils.d.ts
@@ -0,0 +1,12 @@
+export declare const ROW_HEIGHT = 64;
+export declare function formatMonthTitle(date: Date): string;
+export declare function compareMonth(date1: Date | number, date2: Date | number): 0 | 1 | -1;
+export declare function compareDay(day1: Date | number, day2: Date | number): 0 | 1 | -1;
+export declare function getDayByOffset(date: Date, offset: number): Date;
+export declare function getPrevDay(date: Date): Date;
+export declare function getNextDay(date: Date): Date;
+export declare function getToday(): Date;
+export declare function calcDateNum(date: [Date, Date]): number;
+export declare function copyDates(dates: Date | Date[]): Date | Date[];
+export declare function getMonthEndDay(year: number, month: number): number;
+export declare function getMonths(minDate: number, maxDate: number): number[];
diff --git a/miniprogram_npm/@vant/weapp/calendar/utils.js b/miniprogram_npm/@vant/weapp/calendar/utils.js
new file mode 100644
index 0000000..c9e5df7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/utils.js
@@ -0,0 +1,97 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getMonths = exports.getMonthEndDay = exports.copyDates = exports.calcDateNum = exports.getToday = exports.getNextDay = exports.getPrevDay = exports.getDayByOffset = exports.compareDay = exports.compareMonth = exports.formatMonthTitle = exports.ROW_HEIGHT = void 0;
+exports.ROW_HEIGHT = 64;
+function formatMonthTitle(date) {
+ if (!(date instanceof Date)) {
+ date = new Date(date);
+ }
+ return "".concat(date.getFullYear(), "\u5E74").concat(date.getMonth() + 1, "\u6708");
+}
+exports.formatMonthTitle = formatMonthTitle;
+function compareMonth(date1, date2) {
+ if (!(date1 instanceof Date)) {
+ date1 = new Date(date1);
+ }
+ if (!(date2 instanceof Date)) {
+ date2 = new Date(date2);
+ }
+ var year1 = date1.getFullYear();
+ var year2 = date2.getFullYear();
+ var month1 = date1.getMonth();
+ var month2 = date2.getMonth();
+ if (year1 === year2) {
+ return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
+ }
+ return year1 > year2 ? 1 : -1;
+}
+exports.compareMonth = compareMonth;
+function compareDay(day1, day2) {
+ if (!(day1 instanceof Date)) {
+ day1 = new Date(day1);
+ }
+ if (!(day2 instanceof Date)) {
+ day2 = new Date(day2);
+ }
+ var compareMonthResult = compareMonth(day1, day2);
+ if (compareMonthResult === 0) {
+ var date1 = day1.getDate();
+ var date2 = day2.getDate();
+ return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
+ }
+ return compareMonthResult;
+}
+exports.compareDay = compareDay;
+function getDayByOffset(date, offset) {
+ date = new Date(date);
+ date.setDate(date.getDate() + offset);
+ return date;
+}
+exports.getDayByOffset = getDayByOffset;
+function getPrevDay(date) {
+ return getDayByOffset(date, -1);
+}
+exports.getPrevDay = getPrevDay;
+function getNextDay(date) {
+ return getDayByOffset(date, 1);
+}
+exports.getNextDay = getNextDay;
+function getToday() {
+ var today = new Date();
+ today.setHours(0, 0, 0, 0);
+ return today;
+}
+exports.getToday = getToday;
+function calcDateNum(date) {
+ var day1 = new Date(date[0]).getTime();
+ var day2 = new Date(date[1]).getTime();
+ return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
+}
+exports.calcDateNum = calcDateNum;
+function copyDates(dates) {
+ if (Array.isArray(dates)) {
+ return dates.map(function (date) {
+ if (date === null) {
+ return date;
+ }
+ return new Date(date);
+ });
+ }
+ return new Date(dates);
+}
+exports.copyDates = copyDates;
+function getMonthEndDay(year, month) {
+ return 32 - new Date(year, month - 1, 32).getDate();
+}
+exports.getMonthEndDay = getMonthEndDay;
+function getMonths(minDate, maxDate) {
+ var months = [];
+ var cursor = new Date(minDate);
+ cursor.setDate(1);
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (compareMonth(cursor, maxDate) !== 1);
+ return months;
+}
+exports.getMonths = getMonths;
diff --git a/miniprogram_npm/@vant/weapp/calendar/utils.wxs b/miniprogram_npm/@vant/weapp/calendar/utils.wxs
new file mode 100644
index 0000000..e57f6b3
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/calendar/utils.wxs
@@ -0,0 +1,25 @@
+/* eslint-disable */
+function getMonthEndDay(year, month) {
+ return 32 - getDate(year, month - 1, 32).getDate();
+}
+
+function compareMonth(date1, date2) {
+ date1 = getDate(date1);
+ date2 = getDate(date2);
+
+ var year1 = date1.getFullYear();
+ var year2 = date2.getFullYear();
+ var month1 = date1.getMonth();
+ var month2 = date2.getMonth();
+
+ if (year1 === year2) {
+ return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
+ }
+
+ return year1 > year2 ? 1 : -1;
+}
+
+module.exports = {
+ getMonthEndDay: getMonthEndDay,
+ compareMonth: compareMonth
+};
diff --git a/miniprogram_npm/@vant/weapp/card/index.d.ts b/miniprogram_npm/@vant/weapp/card/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/card/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/card/index.js b/miniprogram_npm/@vant/weapp/card/index.js
new file mode 100644
index 0000000..2815655
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/card/index.js
@@ -0,0 +1,51 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'num-class',
+ 'desc-class',
+ 'thumb-class',
+ 'title-class',
+ 'price-class',
+ 'origin-price-class',
+ ],
+ mixins: [link_1.link],
+ props: {
+ tag: String,
+ num: String,
+ desc: String,
+ thumb: String,
+ title: String,
+ price: {
+ type: String,
+ observer: 'updatePrice',
+ },
+ centered: Boolean,
+ lazyLoad: Boolean,
+ thumbLink: String,
+ originPrice: String,
+ thumbMode: {
+ type: String,
+ value: 'aspectFit',
+ },
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ },
+ methods: {
+ updatePrice: function () {
+ var price = this.data.price;
+ var priceArr = price.toString().split('.');
+ this.setData({
+ integerStr: priceArr[0],
+ decimalStr: priceArr[1] ? ".".concat(priceArr[1]) : '',
+ });
+ },
+ onClickThumb: function () {
+ this.jumpLink('thumbLink');
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/card/index.json b/miniprogram_npm/@vant/weapp/card/index.json
new file mode 100644
index 0000000..e917407
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/card/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-tag": "../tag/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/card/index.wxml b/miniprogram_npm/@vant/weapp/card/index.wxml
new file mode 100644
index 0000000..62173e4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/card/index.wxml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/card/index.wxss b/miniprogram_npm/@vant/weapp/card/index.wxss
new file mode 100644
index 0000000..0f4d7c5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/card/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-card{background-color:var(--card-background-color,#fafafa);box-sizing:border-box;color:var(--card-text-color,#323233);font-size:var(--card-font-size,12px);padding:var(--card-padding,8px 16px);position:relative}.van-card__header{display:flex}.van-card__header--center{align-items:center;justify-content:center}.van-card__thumb{flex:none;height:var(--card-thumb-size,88px);margin-right:var(--padding-xs,8px);position:relative;width:var(--card-thumb-size,88px)}.van-card__thumb:empty{display:none}.van-card__img{border-radius:8px;height:100%;width:100%}.van-card__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-height:var(--card-thumb-size,88px);min-width:0;position:relative}.van-card__content--center{justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{font-weight:700;line-height:var(--card-title-line-height,16px)}.van-card__desc{color:var(--card-desc-color,#646566);line-height:var(--card-desc-line-height,20px)}.van-card__bottom{line-height:20px}.van-card__price{color:var(--card-price-color,#ee0a24);display:inline-block;font-size:var(--card-price-font-size,12px);font-weight:700}.van-card__price-integer{font-size:var(--card-price-integer-font-size,16px)}.van-card__price-decimal,.van-card__price-integer{font-family:var(--card-price-font-family,Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif)}.van-card__origin-price{color:var(--card-origin-price-color,#646566);display:inline-block;font-size:var(--card-origin-price-font-size,10px);margin-left:5px;text-decoration:line-through}.van-card__num{float:right}.van-card__tag{left:0;position:absolute!important;top:2px}.van-card__footer{flex:none;text-align:right;width:100%}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.d.ts b/miniprogram_npm/@vant/weapp/cascader/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.js b/miniprogram_npm/@vant/weapp/cascader/index.js
new file mode 100644
index 0000000..1b45831
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.js
@@ -0,0 +1,223 @@
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var FieldName;
+(function (FieldName) {
+ FieldName["TEXT"] = "text";
+ FieldName["VALUE"] = "value";
+ FieldName["CHILDREN"] = "children";
+})(FieldName || (FieldName = {}));
+var defaultFieldNames = {
+ text: FieldName.TEXT,
+ value: FieldName.VALUE,
+ children: FieldName.CHILDREN,
+};
+(0, component_1.VantComponent)({
+ props: {
+ title: String,
+ value: {
+ type: String,
+ },
+ placeholder: {
+ type: String,
+ value: '请选择',
+ },
+ activeColor: {
+ type: String,
+ value: '#1989fa',
+ },
+ options: {
+ type: Array,
+ value: [],
+ },
+ swipeable: {
+ type: Boolean,
+ value: false,
+ },
+ closeable: {
+ type: Boolean,
+ value: true,
+ },
+ showHeader: {
+ type: Boolean,
+ value: true,
+ },
+ closeIcon: {
+ type: String,
+ value: 'cross',
+ },
+ fieldNames: {
+ type: Object,
+ value: defaultFieldNames,
+ observer: 'updateFieldNames',
+ },
+ useTitleSlot: Boolean,
+ },
+ data: {
+ tabs: [],
+ activeTab: 0,
+ textKey: FieldName.TEXT,
+ valueKey: FieldName.VALUE,
+ childrenKey: FieldName.CHILDREN,
+ innerValue: '',
+ },
+ watch: {
+ options: function () {
+ this.updateTabs();
+ },
+ value: function (newVal) {
+ this.updateValue(newVal);
+ },
+ },
+ created: function () {
+ this.updateTabs();
+ },
+ methods: {
+ updateValue: function (val) {
+ var _this = this;
+ if (val !== undefined) {
+ var values = this.data.tabs.map(function (tab) { return tab.selected && tab.selected[_this.data.valueKey]; });
+ if (values.indexOf(val) > -1) {
+ return;
+ }
+ }
+ this.innerValue = val;
+ this.updateTabs();
+ },
+ updateFieldNames: function () {
+ var _a = this.data.fieldNames || defaultFieldNames, _b = _a.text, text = _b === void 0 ? 'text' : _b, _c = _a.value, value = _c === void 0 ? 'value' : _c, _d = _a.children, children = _d === void 0 ? 'children' : _d;
+ this.setData({
+ textKey: text,
+ valueKey: value,
+ childrenKey: children,
+ });
+ },
+ getSelectedOptionsByValue: function (options, value) {
+ for (var i = 0; i < options.length; i++) {
+ var option = options[i];
+ if (option[this.data.valueKey] === value) {
+ return [option];
+ }
+ if (option[this.data.childrenKey]) {
+ var selectedOptions = this.getSelectedOptionsByValue(option[this.data.childrenKey], value);
+ if (selectedOptions) {
+ return __spreadArray([option], selectedOptions, true);
+ }
+ }
+ }
+ },
+ updateTabs: function () {
+ var _this = this;
+ var options = this.data.options;
+ var innerValue = this.innerValue;
+ if (!options.length) {
+ return;
+ }
+ if (innerValue !== undefined) {
+ var selectedOptions = this.getSelectedOptionsByValue(options, innerValue);
+ if (selectedOptions) {
+ var optionsCursor_1 = options;
+ var tabs_1 = selectedOptions.map(function (option) {
+ var tab = {
+ options: optionsCursor_1,
+ selected: option,
+ };
+ var next = optionsCursor_1.find(function (item) { return item[_this.data.valueKey] === option[_this.data.valueKey]; });
+ if (next) {
+ optionsCursor_1 = next[_this.data.childrenKey];
+ }
+ return tab;
+ });
+ if (optionsCursor_1) {
+ tabs_1.push({
+ options: optionsCursor_1,
+ selected: null,
+ });
+ }
+ this.setData({
+ tabs: tabs_1,
+ });
+ wx.nextTick(function () {
+ _this.setData({
+ activeTab: tabs_1.length - 1,
+ });
+ });
+ return;
+ }
+ }
+ this.setData({
+ tabs: [
+ {
+ options: options,
+ selected: null,
+ },
+ ],
+ });
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClickTab: function (e) {
+ var _a = e.detail, tabIndex = _a.index, title = _a.title;
+ this.$emit('click-tab', { title: title, tabIndex: tabIndex });
+ this.setData({
+ activeTab: tabIndex,
+ });
+ },
+ // 选中
+ onSelect: function (e) {
+ var _this = this;
+ var _a = e.currentTarget.dataset, option = _a.option, tabIndex = _a.tabIndex;
+ if (option && option.disabled) {
+ return;
+ }
+ var _b = this.data, valueKey = _b.valueKey, childrenKey = _b.childrenKey;
+ var tabs = this.data.tabs;
+ tabs[tabIndex].selected = option;
+ if (tabs.length > tabIndex + 1) {
+ tabs = tabs.slice(0, tabIndex + 1);
+ }
+ if (option[childrenKey]) {
+ var nextTab = {
+ options: option[childrenKey],
+ selected: null,
+ };
+ if (tabs[tabIndex + 1]) {
+ tabs[tabIndex + 1] = nextTab;
+ }
+ else {
+ tabs.push(nextTab);
+ }
+ wx.nextTick(function () {
+ _this.setData({
+ activeTab: tabIndex + 1,
+ });
+ });
+ }
+ this.setData({
+ tabs: tabs,
+ });
+ var selectedOptions = tabs.map(function (tab) { return tab.selected; }).filter(Boolean);
+ var value = option[valueKey];
+ var params = {
+ value: value,
+ tabIndex: tabIndex,
+ selectedOptions: selectedOptions,
+ };
+ this.innerValue = value;
+ this.$emit('change', params);
+ if (!option[childrenKey]) {
+ this.$emit('finish', params);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.json b/miniprogram_npm/@vant/weapp/cascader/index.json
new file mode 100644
index 0000000..d0f75eb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.json
@@ -0,0 +1,8 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-tab": "../tab/index",
+ "van-tabs": "../tabs/index"
+ }
+}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.wxml b/miniprogram_npm/@vant/weapp/cascader/index.wxml
new file mode 100644
index 0000000..9417234
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.wxml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ option[textKey] }}
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.wxs b/miniprogram_npm/@vant/weapp/cascader/index.wxs
new file mode 100644
index 0000000..b1aab58
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.wxs
@@ -0,0 +1,24 @@
+var utils = require('../wxs/utils.wxs');
+var style = require('../wxs/style.wxs');
+
+function isSelected(tab, valueKey, option) {
+ return tab.selected && tab.selected[valueKey] === option[valueKey]
+}
+
+function optionClass(tab, valueKey, option) {
+ return utils.bem('cascader__option', { selected: isSelected(tab, valueKey, option), disabled: option.disabled })
+}
+
+function optionStyle(data) {
+ var color = data.option.color || (isSelected(data.tab, data.valueKey, data.option) ? data.activeColor : undefined);
+ return style({
+ color
+ });
+}
+
+
+module.exports = {
+ isSelected: isSelected,
+ optionClass: optionClass,
+ optionStyle: optionStyle,
+};
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/cascader/index.wxss b/miniprogram_npm/@vant/weapp/cascader/index.wxss
new file mode 100644
index 0000000..7062486
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cascader/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.van-cascader__title{font-size:16px;font-weight:600;line-height:20px}.van-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.van-cascader__tabs-wrap{height:48px!important;padding:0 8px}.van-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.van-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.van-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.van-cascader__option:active{background-color:#f2f3f5}.van-cascader__option--selected{color:#1989fa;font-weight:600}.van-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.van-cascader__option--disabled:active{background-color:initial}.van-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/cell-group/index.d.ts b/miniprogram_npm/@vant/weapp/cell-group/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell-group/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/cell-group/index.js b/miniprogram_npm/@vant/weapp/cell-group/index.js
new file mode 100644
index 0000000..34a93a6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell-group/index.js
@@ -0,0 +1,13 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ title: String,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ inset: Boolean,
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/cell-group/index.json b/miniprogram_npm/@vant/weapp/cell-group/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell-group/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/cell-group/index.wxml b/miniprogram_npm/@vant/weapp/cell-group/index.wxml
new file mode 100644
index 0000000..311e064
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell-group/index.wxml
@@ -0,0 +1,11 @@
+
+
+
+ {{ title }}
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/cell-group/index.wxss b/miniprogram_npm/@vant/weapp/cell-group/index.wxss
new file mode 100644
index 0000000..08b252f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell-group/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,8px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.van-cell-group__title{color:var(--cell-group-title-color,#969799);font-size:var(--cell-group-title-font-size,14px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.van-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/cell/index.d.ts b/miniprogram_npm/@vant/weapp/cell/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/cell/index.js b/miniprogram_npm/@vant/weapp/cell/index.js
new file mode 100644
index 0000000..80f3039
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.js
@@ -0,0 +1,40 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'title-class',
+ 'label-class',
+ 'value-class',
+ 'right-icon-class',
+ 'hover-class',
+ ],
+ mixins: [link_1.link],
+ props: {
+ title: null,
+ value: null,
+ icon: String,
+ size: String,
+ label: String,
+ center: Boolean,
+ isLink: Boolean,
+ required: Boolean,
+ clickable: Boolean,
+ titleWidth: String,
+ customStyle: String,
+ arrowDirection: String,
+ useLabelSlot: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ titleStyle: String,
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/cell/index.json b/miniprogram_npm/@vant/weapp/cell/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/cell/index.wxml b/miniprogram_npm/@vant/weapp/cell/index.wxml
new file mode 100644
index 0000000..8387c3c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.wxml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+ {{ label }}
+
+
+
+
+ {{ value }}
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/cell/index.wxs b/miniprogram_npm/@vant/weapp/cell/index.wxs
new file mode 100644
index 0000000..e3500c4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.wxs
@@ -0,0 +1,17 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function titleStyle(data) {
+ return style([
+ {
+ 'max-width': addUnit(data.titleWidth),
+ 'min-width': addUnit(data.titleWidth),
+ },
+ data.titleStyle,
+ ]);
+}
+
+module.exports = {
+ titleStyle: titleStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/cell/index.wxss b/miniprogram_npm/@vant/weapp/cell/index.wxss
new file mode 100644
index 0000000..1802f8e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/cell/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-cell{background-color:var(--cell-background-color,#fff);box-sizing:border-box;color:var(--cell-text-color,#323233);display:flex;font-size:var(--cell-font-size,14px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,10px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.van-cell:after{border-bottom:1px solid #ebedf0;bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.van-cell--borderless:after{display:none}.van-cell-group{background-color:var(--cell-background-color,#fff)}.van-cell__label{color:var(--cell-label-color,#969799);font-size:var(--cell-label-font-size,12px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.van-cell__value{color:var(--cell-value-color,#969799);overflow:hidden;text-align:right;vertical-align:middle}.van-cell__title,.van-cell__value{flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,16px);height:var(--cell-line-height,24px)}.van-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{color:var(--cell-right-icon-color,#969799);margin-left:var(--padding-base,4px)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:var(--cell-line-height,24px)}.van-cell--clickable.van-cell--hover{background-color:var(--cell-active-color,#f2f3f5)}.van-cell--required{overflow:visible}.van-cell--required:before{color:var(--cell-required-color,#ee0a24);content:"*";font-size:var(--cell-font-size,14px);left:var(--padding-xs,8px);position:absolute}.van-cell--center{align-items:center}.van-cell--large{padding-bottom:var(--cell-large-vertical-padding,12px);padding-top:var(--cell-large-vertical-padding,12px)}.van-cell--large .van-cell__title{font-size:var(--cell-large-title-font-size,16px)}.van-cell--large .van-cell__value{font-size:var(--cell-large-value-font-size,16px)}.van-cell--large .van-cell__label{font-size:var(--cell-large-label-font-size,14px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/checkbox-group/index.d.ts b/miniprogram_npm/@vant/weapp/checkbox-group/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox-group/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/checkbox-group/index.js b/miniprogram_npm/@vant/weapp/checkbox-group/index.js
new file mode 100644
index 0000000..80c93a1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox-group/index.js
@@ -0,0 +1,39 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useChildren)('checkbox', function (target) {
+ this.updateChild(target);
+ }),
+ props: {
+ max: Number,
+ value: {
+ type: Array,
+ observer: 'updateChildren',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ value: 'vertical',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ var _this = this;
+ this.children.forEach(function (child) { return _this.updateChild(child); });
+ },
+ updateChild: function (child) {
+ var _a = this.data, value = _a.value, disabled = _a.disabled, direction = _a.direction;
+ child.setData({
+ value: value.indexOf(child.data.name) !== -1,
+ parentDisabled: disabled,
+ direction: direction,
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/checkbox-group/index.json b/miniprogram_npm/@vant/weapp/checkbox-group/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox-group/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml b/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
new file mode 100644
index 0000000..638bf9d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss b/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
new file mode 100644
index 0000000..c5666d7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.d.ts b/miniprogram_npm/@vant/weapp/checkbox/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.js b/miniprogram_npm/@vant/weapp/checkbox/index.js
new file mode 100644
index 0000000..6247365
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.js
@@ -0,0 +1,79 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+function emit(target, value) {
+ target.$emit('input', value);
+ target.$emit('change', value);
+}
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useParent)('checkbox-group'),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ value: Boolean,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
+ },
+ data: {
+ parentDisabled: false,
+ direction: 'vertical',
+ },
+ methods: {
+ emitChange: function (value) {
+ if (this.parent) {
+ this.setParentValue(this.parent, value);
+ }
+ else {
+ emit(this, value);
+ }
+ },
+ toggle: function () {
+ var _a = this.data, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, labelDisabled = _a.labelDisabled, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !labelDisabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ setParentValue: function (parent, value) {
+ var parentValue = parent.data.value.slice();
+ var name = this.data.name;
+ var max = parent.data.max;
+ if (value) {
+ if (max && parentValue.length >= max) {
+ return;
+ }
+ if (parentValue.indexOf(name) === -1) {
+ parentValue.push(name);
+ emit(parent, parentValue);
+ }
+ }
+ else {
+ var index = parentValue.indexOf(name);
+ if (index !== -1) {
+ parentValue.splice(index, 1);
+ emit(parent, parentValue);
+ }
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.json b/miniprogram_npm/@vant/weapp/checkbox/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.wxml b/miniprogram_npm/@vant/weapp/checkbox/index.wxml
new file mode 100644
index 0000000..39a7bb0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.wxml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.wxs b/miniprogram_npm/@vant/weapp/checkbox/index.wxs
new file mode 100644
index 0000000..eb9c772
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.wxs
@@ -0,0 +1,20 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
+ var styles = {
+ 'font-size': addUnit(iconSize),
+ };
+
+ if (checkedColor && value && !disabled && !parentDisabled) {
+ styles['border-color'] = checkedColor;
+ styles['background-color'] = checkedColor;
+ }
+
+ return style(styles);
+}
+
+module.exports = {
+ iconStyle: iconStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/checkbox/index.wxss b/miniprogram_npm/@vant/weapp/checkbox/index.wxss
new file mode 100644
index 0000000..da2272a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/checkbox/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{flex:none}.van-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.van-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,#ebedf0);border-color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,#c8c9cc)}.van-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,#323233);padding-left:var(--checkbox-label-margin,10px)}.van-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,#c8c9cc)}.van-checkbox__label:empty{margin:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/circle/canvas.d.ts b/miniprogram_npm/@vant/weapp/circle/canvas.d.ts
new file mode 100644
index 0000000..8a0b71e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/canvas.d.ts
@@ -0,0 +1,4 @@
+///
+type CanvasContext = WechatMiniprogram.CanvasContext;
+export declare function adaptor(ctx: CanvasContext & Record): CanvasContext;
+export {};
diff --git a/miniprogram_npm/@vant/weapp/circle/canvas.js b/miniprogram_npm/@vant/weapp/circle/canvas.js
new file mode 100644
index 0000000..d81df74
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/canvas.js
@@ -0,0 +1,47 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.adaptor = void 0;
+function adaptor(ctx) {
+ // @ts-ignore
+ return Object.assign(ctx, {
+ setStrokeStyle: function (val) {
+ ctx.strokeStyle = val;
+ },
+ setLineWidth: function (val) {
+ ctx.lineWidth = val;
+ },
+ setLineCap: function (val) {
+ ctx.lineCap = val;
+ },
+ setFillStyle: function (val) {
+ ctx.fillStyle = val;
+ },
+ setFontSize: function (val) {
+ ctx.font = String(val);
+ },
+ setGlobalAlpha: function (val) {
+ ctx.globalAlpha = val;
+ },
+ setLineJoin: function (val) {
+ ctx.lineJoin = val;
+ },
+ setTextAlign: function (val) {
+ ctx.textAlign = val;
+ },
+ setMiterLimit: function (val) {
+ ctx.miterLimit = val;
+ },
+ setShadow: function (offsetX, offsetY, blur, color) {
+ ctx.shadowOffsetX = offsetX;
+ ctx.shadowOffsetY = offsetY;
+ ctx.shadowBlur = blur;
+ ctx.shadowColor = color;
+ },
+ setTextBaseline: function (val) {
+ ctx.textBaseline = val;
+ },
+ createCircularGradient: function () { },
+ draw: function () { },
+ });
+}
+exports.adaptor = adaptor;
diff --git a/miniprogram_npm/@vant/weapp/circle/index.d.ts b/miniprogram_npm/@vant/weapp/circle/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/circle/index.js b/miniprogram_npm/@vant/weapp/circle/index.js
new file mode 100644
index 0000000..e131e4b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/index.js
@@ -0,0 +1,207 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var version_1 = require("../common/version");
+var canvas_1 = require("./canvas");
+function format(rate) {
+ return Math.min(Math.max(rate, 0), 100);
+}
+var PERIMETER = 2 * Math.PI;
+var BEGIN_ANGLE = -Math.PI / 2;
+var STEP = 1;
+(0, component_1.VantComponent)({
+ props: {
+ text: String,
+ lineCap: {
+ type: String,
+ value: 'round',
+ },
+ value: {
+ type: Number,
+ value: 0,
+ observer: 'reRender',
+ },
+ speed: {
+ type: Number,
+ value: 50,
+ },
+ size: {
+ type: Number,
+ value: 100,
+ observer: function () {
+ this.drawCircle(this.currentValue);
+ },
+ },
+ fill: String,
+ layerColor: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ color: {
+ type: null,
+ value: color_1.BLUE,
+ observer: function () {
+ var _this = this;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ },
+ type: {
+ type: String,
+ value: '',
+ },
+ strokeWidth: {
+ type: Number,
+ value: 4,
+ },
+ clockwise: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ hoverColor: color_1.BLUE,
+ },
+ methods: {
+ getContext: function () {
+ var _this = this;
+ var _a = this.data, type = _a.type, size = _a.size;
+ if (type === '' || !(0, version_1.canIUseCanvas2d)()) {
+ var ctx = wx.createCanvasContext('van-circle', this);
+ return Promise.resolve(ctx);
+ }
+ var dpr = (0, utils_1.getSystemInfoSync)().pixelRatio;
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(_this)
+ .select('#van-circle')
+ .node()
+ .exec(function (res) {
+ var canvas = res[0].node;
+ var ctx = canvas.getContext(type);
+ if (!_this.inited) {
+ _this.inited = true;
+ canvas.width = size * dpr;
+ canvas.height = size * dpr;
+ ctx.scale(dpr, dpr);
+ }
+ resolve((0, canvas_1.adaptor)(ctx));
+ });
+ });
+ },
+ setHoverColor: function () {
+ var _this = this;
+ var _a = this.data, color = _a.color, size = _a.size;
+ if ((0, validator_1.isObj)(color)) {
+ return this.getContext().then(function (context) {
+ if (!context)
+ return;
+ var LinearColor = context.createLinearGradient(size, 0, 0, 0);
+ Object.keys(color)
+ .sort(function (a, b) { return parseFloat(a) - parseFloat(b); })
+ .map(function (key) {
+ return LinearColor.addColorStop(parseFloat(key) / 100, color[key]);
+ });
+ _this.hoverColor = LinearColor;
+ });
+ }
+ this.hoverColor = color;
+ return Promise.resolve();
+ },
+ presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
+ var _a = this.data, strokeWidth = _a.strokeWidth, lineCap = _a.lineCap, clockwise = _a.clockwise, size = _a.size;
+ var position = size / 2;
+ var radius = position - strokeWidth / 2;
+ context.setStrokeStyle(strokeStyle);
+ context.setLineWidth(strokeWidth);
+ context.setLineCap(lineCap);
+ context.beginPath();
+ context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
+ context.stroke();
+ if (fill) {
+ context.setFillStyle(fill);
+ context.fill();
+ }
+ },
+ renderLayerCircle: function (context) {
+ var _a = this.data, layerColor = _a.layerColor, fill = _a.fill;
+ this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
+ },
+ renderHoverCircle: function (context, formatValue) {
+ var clockwise = this.data.clockwise;
+ // 结束角度
+ var progress = PERIMETER * (formatValue / 100);
+ var endAngle = clockwise
+ ? BEGIN_ANGLE + progress
+ : 3 * Math.PI - (BEGIN_ANGLE + progress);
+ this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
+ },
+ drawCircle: function (currentValue) {
+ var _this = this;
+ var size = this.data.size;
+ this.getContext().then(function (context) {
+ if (!context)
+ return;
+ context.clearRect(0, 0, size, size);
+ _this.renderLayerCircle(context);
+ var formatValue = format(currentValue);
+ if (formatValue !== 0) {
+ _this.renderHoverCircle(context, formatValue);
+ }
+ context.draw();
+ });
+ },
+ reRender: function () {
+ var _this = this;
+ // tofector 动画暂时没有想到好的解决方案
+ var _a = this.data, value = _a.value, speed = _a.speed;
+ if (speed <= 0 || speed > 1000) {
+ this.drawCircle(value);
+ return;
+ }
+ this.clearMockInterval();
+ this.currentValue = this.currentValue || 0;
+ var run = function () {
+ _this.interval = setTimeout(function () {
+ if (_this.currentValue !== value) {
+ if (Math.abs(_this.currentValue - value) < STEP) {
+ _this.currentValue = value;
+ }
+ else if (_this.currentValue < value) {
+ _this.currentValue += STEP;
+ }
+ else {
+ _this.currentValue -= STEP;
+ }
+ _this.drawCircle(_this.currentValue);
+ run();
+ }
+ else {
+ _this.clearMockInterval();
+ }
+ }, 1000 / speed);
+ };
+ run();
+ },
+ clearMockInterval: function () {
+ if (this.interval) {
+ clearTimeout(this.interval);
+ this.interval = null;
+ }
+ },
+ },
+ mounted: function () {
+ var _this = this;
+ this.currentValue = this.data.value;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ destroyed: function () {
+ this.clearMockInterval();
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/circle/index.json b/miniprogram_npm/@vant/weapp/circle/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/circle/index.wxml b/miniprogram_npm/@vant/weapp/circle/index.wxml
new file mode 100644
index 0000000..52bc59f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/index.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+ {{ text }}
+
diff --git a/miniprogram_npm/@vant/weapp/circle/index.wxss b/miniprogram_npm/@vant/weapp/circle/index.wxss
new file mode 100644
index 0000000..2200751
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/circle/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-circle{display:inline-block;position:relative;text-align:center}.van-circle__text{color:var(--circle-text-color,#323233);left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/col/index.d.ts b/miniprogram_npm/@vant/weapp/col/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/col/index.js b/miniprogram_npm/@vant/weapp/col/index.js
new file mode 100644
index 0000000..63c56eb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.js
@@ -0,0 +1,11 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('row'),
+ props: {
+ span: Number,
+ offset: Number,
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/col/index.json b/miniprogram_npm/@vant/weapp/col/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/col/index.wxml b/miniprogram_npm/@vant/weapp/col/index.wxml
new file mode 100644
index 0000000..975348b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/col/index.wxs b/miniprogram_npm/@vant/weapp/col/index.wxs
new file mode 100644
index 0000000..507c1cb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.wxs
@@ -0,0 +1,18 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ if (!data.gutter) {
+ return '';
+ }
+
+ return style({
+ 'padding-right': addUnit(data.gutter / 2),
+ 'padding-left': addUnit(data.gutter / 2),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/col/index.wxss b/miniprogram_npm/@vant/weapp/col/index.wxss
new file mode 100644
index 0000000..2fa265e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/col/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-col{box-sizing:border-box;float:left}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/animate.d.ts b/miniprogram_npm/@vant/weapp/collapse-item/animate.d.ts
new file mode 100644
index 0000000..32157b6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/animate.d.ts
@@ -0,0 +1,2 @@
+///
+export declare function setContentAnimate(context: WechatMiniprogram.Component.TrivialInstance, expanded: boolean, mounted: boolean): void;
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/animate.js b/miniprogram_npm/@vant/weapp/collapse-item/animate.js
new file mode 100644
index 0000000..5734087
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/animate.js
@@ -0,0 +1,43 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.setContentAnimate = void 0;
+var utils_1 = require("../common/utils");
+function useAnimation(context, expanded, mounted, height) {
+ var animation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'ease-in-out',
+ });
+ if (expanded) {
+ if (height === 0) {
+ animation.height('auto').top(1).step();
+ }
+ else {
+ animation
+ .height(height)
+ .top(1)
+ .step({
+ duration: mounted ? 300 : 1,
+ })
+ .height('auto')
+ .step();
+ }
+ context.setData({
+ animation: animation.export(),
+ });
+ return;
+ }
+ animation.height(height).top(0).step({ duration: 1 }).height(0).step({
+ duration: 300,
+ });
+ context.setData({
+ animation: animation.export(),
+ });
+}
+function setContentAnimate(context, expanded, mounted) {
+ (0, utils_1.getRect)(context, '.van-collapse-item__content')
+ .then(function (rect) { return rect.height; })
+ .then(function (height) {
+ useAnimation(context, expanded, mounted, height);
+ });
+}
+exports.setContentAnimate = setContentAnimate;
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/index.d.ts b/miniprogram_npm/@vant/weapp/collapse-item/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/index.js b/miniprogram_npm/@vant/weapp/collapse-item/index.js
new file mode 100644
index 0000000..982490e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/index.js
@@ -0,0 +1,62 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var animate_1 = require("./animate");
+(0, component_1.VantComponent)({
+ classes: ['title-class', 'content-class'],
+ relation: (0, relation_1.useParent)('collapse'),
+ props: {
+ size: String,
+ name: null,
+ title: null,
+ value: null,
+ icon: String,
+ label: String,
+ disabled: Boolean,
+ clickable: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ isLink: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ expanded: false,
+ },
+ mounted: function () {
+ this.updateExpanded();
+ this.mounted = true;
+ },
+ methods: {
+ updateExpanded: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, accordion = _a.accordion;
+ var _b = this.parent.children, children = _b === void 0 ? [] : _b;
+ var name = this.data.name;
+ var index = children.indexOf(this);
+ var currentName = name == null ? index : name;
+ var expanded = accordion
+ ? value === currentName
+ : (value || []).some(function (name) { return name === currentName; });
+ if (expanded !== this.data.expanded) {
+ (0, animate_1.setContentAnimate)(this, expanded, this.mounted);
+ }
+ this.setData({ index: index, expanded: expanded });
+ },
+ onClick: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ var _a = this.data, name = _a.name, expanded = _a.expanded;
+ var index = this.parent.children.indexOf(this);
+ var currentName = name == null ? index : name;
+ this.parent.switch(currentName, !expanded);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/index.json b/miniprogram_npm/@vant/weapp/collapse-item/index.json
new file mode 100644
index 0000000..0e5425c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/index.wxml b/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
new file mode 100644
index 0000000..f11d0d4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/index.wxml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/collapse-item/index.wxss b/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
new file mode 100644
index 0000000..4a65b5a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse-item/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{background-color:var(--collapse-item-content-background-color,#fff);color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/collapse/index.d.ts b/miniprogram_npm/@vant/weapp/collapse/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/collapse/index.js b/miniprogram_npm/@vant/weapp/collapse/index.js
new file mode 100644
index 0000000..943d542
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse/index.js
@@ -0,0 +1,48 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('collapse-item'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateExpanded',
+ },
+ accordion: {
+ type: Boolean,
+ observer: 'updateExpanded',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ methods: {
+ updateExpanded: function () {
+ this.children.forEach(function (child) {
+ child.updateExpanded();
+ });
+ },
+ switch: function (name, expanded) {
+ var _a = this.data, accordion = _a.accordion, value = _a.value;
+ var changeItem = name;
+ if (!accordion) {
+ name = expanded
+ ? (value || []).concat(name)
+ : (value || []).filter(function (activeName) { return activeName !== name; });
+ }
+ else {
+ name = expanded ? name : '';
+ }
+ if (expanded) {
+ this.$emit('open', changeItem);
+ }
+ else {
+ this.$emit('close', changeItem);
+ }
+ this.$emit('change', name);
+ this.$emit('input', name);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/collapse/index.json b/miniprogram_npm/@vant/weapp/collapse/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/collapse/index.wxml b/miniprogram_npm/@vant/weapp/collapse/index.wxml
new file mode 100644
index 0000000..fd4e171
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse/index.wxml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/collapse/index.wxss b/miniprogram_npm/@vant/weapp/collapse/index.wxss
new file mode 100644
index 0000000..99694d6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/collapse/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/common/color.d.ts b/miniprogram_npm/@vant/weapp/common/color.d.ts
new file mode 100644
index 0000000..386f307
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/color.d.ts
@@ -0,0 +1,7 @@
+export declare const RED = "#ee0a24";
+export declare const BLUE = "#1989fa";
+export declare const WHITE = "#fff";
+export declare const GREEN = "#07c160";
+export declare const ORANGE = "#ff976a";
+export declare const GRAY = "#323233";
+export declare const GRAY_DARK = "#969799";
diff --git a/miniprogram_npm/@vant/weapp/common/color.js b/miniprogram_npm/@vant/weapp/common/color.js
new file mode 100644
index 0000000..008a45a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/color.js
@@ -0,0 +1,10 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
+exports.RED = '#ee0a24';
+exports.BLUE = '#1989fa';
+exports.WHITE = '#fff';
+exports.GREEN = '#07c160';
+exports.ORANGE = '#ff976a';
+exports.GRAY = '#323233';
+exports.GRAY_DARK = '#969799';
diff --git a/miniprogram_npm/@vant/weapp/common/component.d.ts b/miniprogram_npm/@vant/weapp/common/component.d.ts
new file mode 100644
index 0000000..1d0fd27
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/component.d.ts
@@ -0,0 +1,4 @@
+///
+import { VantComponentOptions } from 'definitions/index';
+declare function VantComponent(vantOptions: VantComponentOptions): void;
+export { VantComponent };
diff --git a/miniprogram_npm/@vant/weapp/common/component.js b/miniprogram_npm/@vant/weapp/common/component.js
new file mode 100644
index 0000000..66da00e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/component.js
@@ -0,0 +1,49 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.VantComponent = void 0;
+var basic_1 = require("../mixins/basic");
+function mapKeys(source, target, map) {
+ Object.keys(map).forEach(function (key) {
+ if (source[key]) {
+ target[map[key]] = source[key];
+ }
+ });
+}
+function VantComponent(vantOptions) {
+ var options = {};
+ mapKeys(vantOptions, options, {
+ data: 'data',
+ props: 'properties',
+ watch: 'observers',
+ mixins: 'behaviors',
+ methods: 'methods',
+ beforeCreate: 'created',
+ created: 'attached',
+ mounted: 'ready',
+ destroyed: 'detached',
+ classes: 'externalClasses',
+ });
+ // add default externalClasses
+ options.externalClasses = options.externalClasses || [];
+ options.externalClasses.push('custom-class');
+ // add default behaviors
+ options.behaviors = options.behaviors || [];
+ options.behaviors.push(basic_1.basic);
+ // add relations
+ var relation = vantOptions.relation;
+ if (relation) {
+ options.relations = relation.relations;
+ options.behaviors.push(relation.mixin);
+ }
+ // map field to form-field behavior
+ if (vantOptions.field) {
+ options.behaviors.push('wx://form-field');
+ }
+ // add default options
+ options.options = {
+ multipleSlots: true,
+ addGlobalClass: true,
+ };
+ Component(options);
+}
+exports.VantComponent = VantComponent;
diff --git a/miniprogram_npm/@vant/weapp/common/index.wxss b/miniprogram_npm/@vant/weapp/common/index.wxss
new file mode 100644
index 0000000..a73bb7a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/index.wxss
@@ -0,0 +1 @@
+.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/common/relation.d.ts b/miniprogram_npm/@vant/weapp/common/relation.d.ts
new file mode 100644
index 0000000..10193fa
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/relation.d.ts
@@ -0,0 +1,15 @@
+///
+type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
+export declare function useParent(name: string, onEffect?: (this: TrivialInstance) => void): {
+ relations: {
+ [x: string]: WechatMiniprogram.Component.RelationOption;
+ };
+ mixin: string;
+};
+export declare function useChildren(name: string, onEffect?: (this: TrivialInstance, target: TrivialInstance) => void): {
+ relations: {
+ [x: string]: WechatMiniprogram.Component.RelationOption;
+ };
+ mixin: string;
+};
+export {};
diff --git a/miniprogram_npm/@vant/weapp/common/relation.js b/miniprogram_npm/@vant/weapp/common/relation.js
new file mode 100644
index 0000000..008256c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/relation.js
@@ -0,0 +1,65 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.useChildren = exports.useParent = void 0;
+function useParent(name, onEffect) {
+ var _a;
+ var path = "../".concat(name, "/index");
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'ancestor',
+ linked: function () {
+ onEffect && onEffect.call(this);
+ },
+ linkChanged: function () {
+ onEffect && onEffect.call(this);
+ },
+ unlinked: function () {
+ onEffect && onEffect.call(this);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'parent', {
+ get: function () { return _this.getRelationNodes(path)[0]; },
+ });
+ Object.defineProperty(this, 'index', {
+ // @ts-ignore
+ get: function () { var _a, _b; return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this); },
+ });
+ },
+ }),
+ };
+}
+exports.useParent = useParent;
+function useChildren(name, onEffect) {
+ var _a;
+ var path = "../".concat(name, "/index");
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'descendant',
+ linked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ linkChanged: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ unlinked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.getRelationNodes(path) || []; },
+ });
+ },
+ }),
+ };
+}
+exports.useChildren = useChildren;
diff --git a/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss b/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
new file mode 100644
index 0000000..442246f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss
@@ -0,0 +1 @@
+.van-clearfix:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss b/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
new file mode 100644
index 0000000..ee701df
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/style/ellipsis.wxss
@@ -0,0 +1 @@
+.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/common/style/hairline.wxss b/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
new file mode 100644
index 0000000..f7c6260
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/style/hairline.wxss
@@ -0,0 +1 @@
+.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss b/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss
new file mode 100644
index 0000000..e69de29
diff --git a/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss b/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss
new file mode 100644
index 0000000..e69de29
diff --git a/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss b/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss
new file mode 100644
index 0000000..e69de29
diff --git a/miniprogram_npm/@vant/weapp/common/style/var.wxss b/miniprogram_npm/@vant/weapp/common/style/var.wxss
new file mode 100644
index 0000000..e69de29
diff --git a/miniprogram_npm/@vant/weapp/common/utils.d.ts b/miniprogram_npm/@vant/weapp/common/utils.d.ts
new file mode 100644
index 0000000..a77d8c6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/utils.d.ts
@@ -0,0 +1,21 @@
+///
+///
+///
+///
+///
+export { isDef } from './validator';
+export { getSystemInfoSync } from './version';
+export declare function range(num: number, min: number, max: number): number;
+export declare function nextTick(cb: (...args: any[]) => void): void;
+export declare function addUnit(value?: string | number): string | undefined;
+export declare function requestAnimationFrame(cb: () => void): NodeJS.Timeout;
+export declare function pickExclude(obj: unknown, keys: string[]): {};
+export declare function getRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise;
+export declare function getAllRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise;
+export declare function groupSetData(context: WechatMiniprogram.Component.TrivialInstance, cb: () => void): void;
+export declare function toPromise(promiseLike: Promise | unknown): Promise;
+export declare function addNumber(num1: any, num2: any): number;
+export declare const clamp: (num: any, min: any, max: any) => number;
+export declare function getCurrentPage(): T & WechatMiniprogram.OptionalInterface & WechatMiniprogram.Page.InstanceProperties & WechatMiniprogram.Page.InstanceMethods & WechatMiniprogram.Page.Data & WechatMiniprogram.IAnyObject;
+export declare const isPC: boolean;
+export declare const isWxWork: boolean;
diff --git a/miniprogram_npm/@vant/weapp/common/utils.js b/miniprogram_npm/@vant/weapp/common/utils.js
new file mode 100644
index 0000000..1727628
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/utils.js
@@ -0,0 +1,109 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isWxWork = exports.isPC = exports.getCurrentPage = exports.clamp = exports.addNumber = exports.toPromise = exports.groupSetData = exports.getAllRect = exports.getRect = exports.pickExclude = exports.requestAnimationFrame = exports.addUnit = exports.nextTick = exports.range = exports.getSystemInfoSync = exports.isDef = void 0;
+var validator_1 = require("./validator");
+var version_1 = require("./version");
+var validator_2 = require("./validator");
+Object.defineProperty(exports, "isDef", { enumerable: true, get: function () { return validator_2.isDef; } });
+var version_2 = require("./version");
+Object.defineProperty(exports, "getSystemInfoSync", { enumerable: true, get: function () { return version_2.getSystemInfoSync; } });
+function range(num, min, max) {
+ return Math.min(Math.max(num, min), max);
+}
+exports.range = range;
+function nextTick(cb) {
+ if ((0, version_1.canIUseNextTick)()) {
+ wx.nextTick(cb);
+ }
+ else {
+ setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+ }
+}
+exports.nextTick = nextTick;
+function addUnit(value) {
+ if (!(0, validator_1.isDef)(value)) {
+ return undefined;
+ }
+ value = String(value);
+ return (0, validator_1.isNumber)(value) ? "".concat(value, "px") : value;
+}
+exports.addUnit = addUnit;
+function requestAnimationFrame(cb) {
+ return setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+}
+exports.requestAnimationFrame = requestAnimationFrame;
+function pickExclude(obj, keys) {
+ if (!(0, validator_1.isPlainObject)(obj)) {
+ return {};
+ }
+ return Object.keys(obj).reduce(function (prev, key) {
+ if (!keys.includes(key)) {
+ prev[key] = obj[key];
+ }
+ return prev;
+ }, {});
+}
+exports.pickExclude = pickExclude;
+function getRect(context, selector) {
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(context)
+ .select(selector)
+ .boundingClientRect()
+ .exec(function (rect) {
+ if (rect === void 0) { rect = []; }
+ return resolve(rect[0]);
+ });
+ });
+}
+exports.getRect = getRect;
+function getAllRect(context, selector) {
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(context)
+ .selectAll(selector)
+ .boundingClientRect()
+ .exec(function (rect) {
+ if (rect === void 0) { rect = []; }
+ return resolve(rect[0]);
+ });
+ });
+}
+exports.getAllRect = getAllRect;
+function groupSetData(context, cb) {
+ if ((0, version_1.canIUseGroupSetData)()) {
+ context.groupSetData(cb);
+ }
+ else {
+ cb();
+ }
+}
+exports.groupSetData = groupSetData;
+function toPromise(promiseLike) {
+ if ((0, validator_1.isPromise)(promiseLike)) {
+ return promiseLike;
+ }
+ return Promise.resolve(promiseLike);
+}
+exports.toPromise = toPromise;
+// 浮点数精度处理
+function addNumber(num1, num2) {
+ var cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
+}
+exports.addNumber = addNumber;
+// 限制value在[min, max]之间
+var clamp = function (num, min, max) { return Math.min(Math.max(num, min), max); };
+exports.clamp = clamp;
+function getCurrentPage() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+exports.getCurrentPage = getCurrentPage;
+exports.isPC = ['mac', 'windows'].includes((0, version_1.getSystemInfoSync)().platform);
+// 是否企业微信
+exports.isWxWork = (0, version_1.getSystemInfoSync)().environment === 'wxwork';
diff --git a/miniprogram_npm/@vant/weapp/common/validator.d.ts b/miniprogram_npm/@vant/weapp/common/validator.d.ts
new file mode 100644
index 0000000..152894a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/validator.d.ts
@@ -0,0 +1,9 @@
+export declare function isFunction(val: unknown): val is Function;
+export declare function isPlainObject(val: unknown): val is Record;
+export declare function isPromise(val: unknown): val is Promise;
+export declare function isDef(value: unknown): boolean;
+export declare function isObj(x: unknown): x is Record;
+export declare function isNumber(value: string): boolean;
+export declare function isBoolean(value: unknown): value is boolean;
+export declare function isImageUrl(url: string): boolean;
+export declare function isVideoUrl(url: string): boolean;
diff --git a/miniprogram_npm/@vant/weapp/common/validator.js b/miniprogram_npm/@vant/weapp/common/validator.js
new file mode 100644
index 0000000..169e796
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/validator.js
@@ -0,0 +1,43 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isVideoUrl = exports.isImageUrl = exports.isBoolean = exports.isNumber = exports.isObj = exports.isDef = exports.isPromise = exports.isPlainObject = exports.isFunction = void 0;
+// eslint-disable-next-line @typescript-eslint/ban-types
+function isFunction(val) {
+ return typeof val === 'function';
+}
+exports.isFunction = isFunction;
+function isPlainObject(val) {
+ return val !== null && typeof val === 'object' && !Array.isArray(val);
+}
+exports.isPlainObject = isPlainObject;
+function isPromise(val) {
+ return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
+}
+exports.isPromise = isPromise;
+function isDef(value) {
+ return value !== undefined && value !== null;
+}
+exports.isDef = isDef;
+function isObj(x) {
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+}
+exports.isObj = isObj;
+function isNumber(value) {
+ return /^\d+(\.\d+)?$/.test(value);
+}
+exports.isNumber = isNumber;
+function isBoolean(value) {
+ return typeof value === 'boolean';
+}
+exports.isBoolean = isBoolean;
+var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
+var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
+function isImageUrl(url) {
+ return IMAGE_REGEXP.test(url);
+}
+exports.isImageUrl = isImageUrl;
+function isVideoUrl(url) {
+ return VIDEO_REGEXP.test(url);
+}
+exports.isVideoUrl = isVideoUrl;
diff --git a/miniprogram_npm/@vant/weapp/common/version.d.ts b/miniprogram_npm/@vant/weapp/common/version.d.ts
new file mode 100644
index 0000000..3393221
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/version.d.ts
@@ -0,0 +1,15 @@
+///
+interface WxWorkSystemInfo extends WechatMiniprogram.SystemInfo {
+ environment?: 'wxwork';
+}
+interface SystemInfo extends WxWorkSystemInfo, WechatMiniprogram.SystemInfo {
+}
+export declare function getSystemInfoSync(): SystemInfo;
+export declare function canIUseModel(): boolean;
+export declare function canIUseFormFieldButton(): boolean;
+export declare function canIUseAnimate(): boolean;
+export declare function canIUseGroupSetData(): boolean;
+export declare function canIUseNextTick(): boolean;
+export declare function canIUseCanvas2d(): boolean;
+export declare function canIUseGetUserProfile(): boolean;
+export {};
diff --git a/miniprogram_npm/@vant/weapp/common/version.js b/miniprogram_npm/@vant/weapp/common/version.js
new file mode 100644
index 0000000..5937008
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/common/version.js
@@ -0,0 +1,70 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.canIUseGetUserProfile = exports.canIUseCanvas2d = exports.canIUseNextTick = exports.canIUseGroupSetData = exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = exports.getSystemInfoSync = void 0;
+var systemInfo;
+function getSystemInfoSync() {
+ if (systemInfo == null) {
+ systemInfo = wx.getSystemInfoSync();
+ }
+ return systemInfo;
+}
+exports.getSystemInfoSync = getSystemInfoSync;
+function compareVersion(v1, v2) {
+ v1 = v1.split('.');
+ v2 = v2.split('.');
+ var len = Math.max(v1.length, v2.length);
+ while (v1.length < len) {
+ v1.push('0');
+ }
+ while (v2.length < len) {
+ v2.push('0');
+ }
+ for (var i = 0; i < len; i++) {
+ var num1 = parseInt(v1[i], 10);
+ var num2 = parseInt(v2[i], 10);
+ if (num1 > num2) {
+ return 1;
+ }
+ if (num1 < num2) {
+ return -1;
+ }
+ }
+ return 0;
+}
+function gte(version) {
+ var system = getSystemInfoSync();
+ return compareVersion(system.SDKVersion, version) >= 0;
+}
+function canIUseModel() {
+ return gte('2.9.3');
+}
+exports.canIUseModel = canIUseModel;
+function canIUseFormFieldButton() {
+ return gte('2.10.3');
+}
+exports.canIUseFormFieldButton = canIUseFormFieldButton;
+function canIUseAnimate() {
+ return gte('2.9.0');
+}
+exports.canIUseAnimate = canIUseAnimate;
+function canIUseGroupSetData() {
+ return gte('2.4.0');
+}
+exports.canIUseGroupSetData = canIUseGroupSetData;
+function canIUseNextTick() {
+ try {
+ return wx.canIUse('nextTick');
+ }
+ catch (e) {
+ return gte('2.7.1');
+ }
+}
+exports.canIUseNextTick = canIUseNextTick;
+function canIUseCanvas2d() {
+ return gte('2.9.0');
+}
+exports.canIUseCanvas2d = canIUseCanvas2d;
+function canIUseGetUserProfile() {
+ return !!wx.getUserProfile;
+}
+exports.canIUseGetUserProfile = canIUseGetUserProfile;
diff --git a/miniprogram_npm/@vant/weapp/config-provider/index.d.ts b/miniprogram_npm/@vant/weapp/config-provider/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/config-provider/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/config-provider/index.js b/miniprogram_npm/@vant/weapp/config-provider/index.js
new file mode 100644
index 0000000..21fb1c4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/config-provider/index.js
@@ -0,0 +1,11 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ themeVars: {
+ type: Object,
+ value: {},
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/config-provider/index.json b/miniprogram_npm/@vant/weapp/config-provider/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/config-provider/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/config-provider/index.wxml b/miniprogram_npm/@vant/weapp/config-provider/index.wxml
new file mode 100644
index 0000000..3cfb461
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/config-provider/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/config-provider/index.wxs b/miniprogram_npm/@vant/weapp/config-provider/index.wxs
new file mode 100644
index 0000000..7ca0203
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/config-provider/index.wxs
@@ -0,0 +1,29 @@
+/* eslint-disable */
+var object = require('../wxs/object.wxs');
+var style = require('../wxs/style.wxs');
+
+function kebabCase(word) {
+ var newWord = word
+ .replace(getRegExp("[A-Z]", 'g'), function (i) {
+ return '-' + i;
+ })
+ .toLowerCase()
+ .replace(getRegExp("^-"), '');
+
+ return newWord;
+}
+
+function mapThemeVarsToCSSVars(themeVars) {
+ var cssVars = {};
+ object.keys(themeVars).forEach(function (key) {
+ var cssVarsKey = '--' + kebabCase(key);
+ cssVars[cssVarsKey] = themeVars[key];
+ });
+
+ return style(cssVars);
+}
+
+module.exports = {
+ kebabCase: kebabCase,
+ mapThemeVarsToCSSVars: mapThemeVarsToCSSVars,
+};
diff --git a/miniprogram_npm/@vant/weapp/count-down/index.d.ts b/miniprogram_npm/@vant/weapp/count-down/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/count-down/index.js b/miniprogram_npm/@vant/weapp/count-down/index.js
new file mode 100644
index 0000000..afc780b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/index.js
@@ -0,0 +1,104 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+function simpleTick(fn) {
+ return setTimeout(fn, 30);
+}
+(0, component_1.VantComponent)({
+ props: {
+ useSlot: Boolean,
+ millisecond: Boolean,
+ time: {
+ type: Number,
+ observer: 'reset',
+ },
+ format: {
+ type: String,
+ value: 'HH:mm:ss',
+ },
+ autoStart: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ timeData: (0, utils_1.parseTimeData)(0),
+ formattedTime: '0',
+ },
+ destroyed: function () {
+ clearTimeout(this.tid);
+ this.tid = null;
+ },
+ methods: {
+ // 开始
+ start: function () {
+ if (this.counting) {
+ return;
+ }
+ this.counting = true;
+ this.endTime = Date.now() + this.remain;
+ this.tick();
+ },
+ // 暂停
+ pause: function () {
+ this.counting = false;
+ clearTimeout(this.tid);
+ },
+ // 重置
+ reset: function () {
+ this.pause();
+ this.remain = this.data.time;
+ this.setRemain(this.remain);
+ if (this.data.autoStart) {
+ this.start();
+ }
+ },
+ tick: function () {
+ if (this.data.millisecond) {
+ this.microTick();
+ }
+ else {
+ this.macroTick();
+ }
+ },
+ microTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ _this.setRemain(_this.getRemain());
+ if (_this.remain !== 0) {
+ _this.microTick();
+ }
+ });
+ },
+ macroTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ var remain = _this.getRemain();
+ if (!(0, utils_1.isSameSecond)(remain, _this.remain) || remain === 0) {
+ _this.setRemain(remain);
+ }
+ if (_this.remain !== 0) {
+ _this.macroTick();
+ }
+ });
+ },
+ getRemain: function () {
+ return Math.max(this.endTime - Date.now(), 0);
+ },
+ setRemain: function (remain) {
+ this.remain = remain;
+ var timeData = (0, utils_1.parseTimeData)(remain);
+ if (this.data.useSlot) {
+ this.$emit('change', timeData);
+ }
+ this.setData({
+ formattedTime: (0, utils_1.parseFormat)(this.data.format, timeData),
+ });
+ if (remain === 0) {
+ this.pause();
+ this.$emit('finish');
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/count-down/index.json b/miniprogram_npm/@vant/weapp/count-down/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/count-down/index.wxml b/miniprogram_npm/@vant/weapp/count-down/index.wxml
new file mode 100644
index 0000000..e206e16
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/index.wxml
@@ -0,0 +1,4 @@
+
+
+ {{ formattedTime }}
+
diff --git a/miniprogram_npm/@vant/weapp/count-down/index.wxss b/miniprogram_npm/@vant/weapp/count-down/index.wxss
new file mode 100644
index 0000000..8b957f7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-count-down{color:var(--count-down-text-color,#323233);font-size:var(--count-down-font-size,14px);line-height:var(--count-down-line-height,20px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/count-down/utils.d.ts b/miniprogram_npm/@vant/weapp/count-down/utils.d.ts
new file mode 100644
index 0000000..876a6c1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/utils.d.ts
@@ -0,0 +1,10 @@
+export type TimeData = {
+ days: number;
+ hours: number;
+ minutes: number;
+ seconds: number;
+ milliseconds: number;
+};
+export declare function parseTimeData(time: number): TimeData;
+export declare function parseFormat(format: string, timeData: TimeData): string;
+export declare function isSameSecond(time1: number, time2: number): boolean;
diff --git a/miniprogram_npm/@vant/weapp/count-down/utils.js b/miniprogram_npm/@vant/weapp/count-down/utils.js
new file mode 100644
index 0000000..a7cfa5f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/count-down/utils.js
@@ -0,0 +1,64 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isSameSecond = exports.parseFormat = exports.parseTimeData = void 0;
+function padZero(num, targetLength) {
+ if (targetLength === void 0) { targetLength = 2; }
+ var str = num + '';
+ while (str.length < targetLength) {
+ str = '0' + str;
+ }
+ return str;
+}
+var SECOND = 1000;
+var MINUTE = 60 * SECOND;
+var HOUR = 60 * MINUTE;
+var DAY = 24 * HOUR;
+function parseTimeData(time) {
+ var days = Math.floor(time / DAY);
+ var hours = Math.floor((time % DAY) / HOUR);
+ var minutes = Math.floor((time % HOUR) / MINUTE);
+ var seconds = Math.floor((time % MINUTE) / SECOND);
+ var milliseconds = Math.floor(time % SECOND);
+ return {
+ days: days,
+ hours: hours,
+ minutes: minutes,
+ seconds: seconds,
+ milliseconds: milliseconds,
+ };
+}
+exports.parseTimeData = parseTimeData;
+function parseFormat(format, timeData) {
+ var days = timeData.days;
+ var hours = timeData.hours, minutes = timeData.minutes, seconds = timeData.seconds, milliseconds = timeData.milliseconds;
+ if (format.indexOf('DD') === -1) {
+ hours += days * 24;
+ }
+ else {
+ format = format.replace('DD', padZero(days));
+ }
+ if (format.indexOf('HH') === -1) {
+ minutes += hours * 60;
+ }
+ else {
+ format = format.replace('HH', padZero(hours));
+ }
+ if (format.indexOf('mm') === -1) {
+ seconds += minutes * 60;
+ }
+ else {
+ format = format.replace('mm', padZero(minutes));
+ }
+ if (format.indexOf('ss') === -1) {
+ milliseconds += seconds * 1000;
+ }
+ else {
+ format = format.replace('ss', padZero(seconds));
+ }
+ return format.replace('SSS', padZero(milliseconds, 3));
+}
+exports.parseFormat = parseFormat;
+function isSameSecond(time1, time2) {
+ return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
+}
+exports.isSameSecond = isSameSecond;
diff --git a/miniprogram_npm/@vant/weapp/datetime-picker/index.d.ts b/miniprogram_npm/@vant/weapp/datetime-picker/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/datetime-picker/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/datetime-picker/index.js b/miniprogram_npm/@vant/weapp/datetime-picker/index.js
new file mode 100644
index 0000000..e30afef
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/datetime-picker/index.js
@@ -0,0 +1,329 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
+ if (ar || !(i in from)) {
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
+ ar[i] = from[i];
+ }
+ }
+ return to.concat(ar || Array.prototype.slice.call(from));
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var shared_1 = require("../picker/shared");
+var currentYear = new Date().getFullYear();
+function isValidDate(date) {
+ return (0, validator_1.isDef)(date) && !isNaN(new Date(date).getTime());
+}
+function range(num, min, max) {
+ return Math.min(Math.max(num, min), max);
+}
+function padZero(val) {
+ return "00".concat(val).slice(-2);
+}
+function times(n, iteratee) {
+ var index = -1;
+ var result = Array(n < 0 ? 0 : n);
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
+}
+function getTrueValue(formattedValue) {
+ if (formattedValue === undefined) {
+ formattedValue = '1';
+ }
+ while (isNaN(parseInt(formattedValue, 10))) {
+ formattedValue = formattedValue.slice(1);
+ }
+ return parseInt(formattedValue, 10);
+}
+function getMonthEndDay(year, month) {
+ return 32 - new Date(year, month - 1, 32).getDate();
+}
+var defaultFormatter = function (type, value) { return value; };
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { value: {
+ type: null,
+ observer: 'updateValue',
+ }, filter: null, type: {
+ type: String,
+ value: 'datetime',
+ observer: 'updateValue',
+ }, showToolbar: {
+ type: Boolean,
+ value: true,
+ }, formatter: {
+ type: null,
+ value: defaultFormatter,
+ }, minDate: {
+ type: Number,
+ value: new Date(currentYear - 10, 0, 1).getTime(),
+ observer: 'updateValue',
+ }, maxDate: {
+ type: Number,
+ value: new Date(currentYear + 10, 11, 31).getTime(),
+ observer: 'updateValue',
+ }, minHour: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxHour: {
+ type: Number,
+ value: 23,
+ observer: 'updateValue',
+ }, minMinute: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxMinute: {
+ type: Number,
+ value: 59,
+ observer: 'updateValue',
+ } }),
+ data: {
+ innerValue: Date.now(),
+ columns: [],
+ },
+ methods: {
+ updateValue: function () {
+ var _this = this;
+ var data = this.data;
+ var val = this.correctValue(data.value);
+ var isEqual = val === data.innerValue;
+ this.updateColumnValue(val).then(function () {
+ if (!isEqual) {
+ _this.$emit('input', val);
+ }
+ });
+ },
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-datetime-picker');
+ var picker_1 = this.picker;
+ var setColumnValues_1 = picker_1.setColumnValues;
+ picker_1.setColumnValues = function () {
+ var args = [];
+ for (var _i = 0; _i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return setColumnValues_1.apply(picker_1, __spreadArray(__spreadArray([], args, true), [false], false));
+ };
+ }
+ return this.picker;
+ },
+ updateColumns: function () {
+ var _a = this.data.formatter, formatter = _a === void 0 ? defaultFormatter : _a;
+ var results = this.getOriginColumns().map(function (column) { return ({
+ values: column.values.map(function (value) { return formatter(column.type, value); }),
+ }); });
+ return this.set({ columns: results });
+ },
+ getOriginColumns: function () {
+ var filter = this.data.filter;
+ var results = this.getRanges().map(function (_a) {
+ var type = _a.type, range = _a.range;
+ var values = times(range[1] - range[0] + 1, function (index) {
+ var value = range[0] + index;
+ return type === 'year' ? "".concat(value) : padZero(value);
+ });
+ if (filter) {
+ values = filter(type, values);
+ }
+ return { type: type, values: values };
+ });
+ return results;
+ },
+ getRanges: function () {
+ var data = this.data;
+ if (data.type === 'time') {
+ return [
+ {
+ type: 'hour',
+ range: [data.minHour, data.maxHour],
+ },
+ {
+ type: 'minute',
+ range: [data.minMinute, data.maxMinute],
+ },
+ ];
+ }
+ var _a = this.getBoundary('max', data.innerValue), maxYear = _a.maxYear, maxDate = _a.maxDate, maxMonth = _a.maxMonth, maxHour = _a.maxHour, maxMinute = _a.maxMinute;
+ var _b = this.getBoundary('min', data.innerValue), minYear = _b.minYear, minDate = _b.minDate, minMonth = _b.minMonth, minHour = _b.minHour, minMinute = _b.minMinute;
+ var result = [
+ {
+ type: 'year',
+ range: [minYear, maxYear],
+ },
+ {
+ type: 'month',
+ range: [minMonth, maxMonth],
+ },
+ {
+ type: 'day',
+ range: [minDate, maxDate],
+ },
+ {
+ type: 'hour',
+ range: [minHour, maxHour],
+ },
+ {
+ type: 'minute',
+ range: [minMinute, maxMinute],
+ },
+ ];
+ if (data.type === 'date')
+ result.splice(3, 2);
+ if (data.type === 'year-month')
+ result.splice(2, 3);
+ return result;
+ },
+ correctValue: function (value) {
+ var data = this.data;
+ // validate value
+ var isDateType = data.type !== 'time';
+ if (isDateType && !isValidDate(value)) {
+ value = data.minDate;
+ }
+ else if (!isDateType && !value) {
+ var minHour = data.minHour;
+ value = "".concat(padZero(minHour), ":00");
+ }
+ // time type
+ if (!isDateType) {
+ var _a = value.split(':'), hour = _a[0], minute = _a[1];
+ hour = padZero(range(hour, data.minHour, data.maxHour));
+ minute = padZero(range(minute, data.minMinute, data.maxMinute));
+ return "".concat(hour, ":").concat(minute);
+ }
+ // date type
+ value = Math.max(value, data.minDate);
+ value = Math.min(value, data.maxDate);
+ return value;
+ },
+ getBoundary: function (type, innerValue) {
+ var _a;
+ var value = new Date(innerValue);
+ var boundary = new Date(this.data["".concat(type, "Date")]);
+ var year = boundary.getFullYear();
+ var month = 1;
+ var date = 1;
+ var hour = 0;
+ var minute = 0;
+ if (type === 'max') {
+ month = 12;
+ date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
+ hour = 23;
+ minute = 59;
+ }
+ if (value.getFullYear() === year) {
+ month = boundary.getMonth() + 1;
+ if (value.getMonth() + 1 === month) {
+ date = boundary.getDate();
+ if (value.getDate() === date) {
+ hour = boundary.getHours();
+ if (value.getHours() === hour) {
+ minute = boundary.getMinutes();
+ }
+ }
+ }
+ }
+ return _a = {},
+ _a["".concat(type, "Year")] = year,
+ _a["".concat(type, "Month")] = month,
+ _a["".concat(type, "Date")] = date,
+ _a["".concat(type, "Hour")] = hour,
+ _a["".concat(type, "Minute")] = minute,
+ _a;
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onConfirm: function () {
+ this.$emit('confirm', this.data.innerValue);
+ },
+ onChange: function () {
+ var _this = this;
+ var data = this.data;
+ var value;
+ var picker = this.getPicker();
+ var originColumns = this.getOriginColumns();
+ if (data.type === 'time') {
+ var indexes = picker.getIndexes();
+ value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1]
+ .values[indexes[1]]);
+ }
+ else {
+ var indexes = picker.getIndexes();
+ var values = indexes.map(function (value, index) { return originColumns[index].values[value]; });
+ var year = getTrueValue(values[0]);
+ var month = getTrueValue(values[1]);
+ var maxDate = getMonthEndDay(year, month);
+ var date = getTrueValue(values[2]);
+ if (data.type === 'year-month') {
+ date = 1;
+ }
+ date = date > maxDate ? maxDate : date;
+ var hour = 0;
+ var minute = 0;
+ if (data.type === 'datetime') {
+ hour = getTrueValue(values[3]);
+ minute = getTrueValue(values[4]);
+ }
+ value = new Date(year, month - 1, date, hour, minute);
+ }
+ value = this.correctValue(value);
+ this.updateColumnValue(value).then(function () {
+ _this.$emit('input', value);
+ _this.$emit('change', picker);
+ });
+ },
+ updateColumnValue: function (value) {
+ var _this = this;
+ var values = [];
+ var type = this.data.type;
+ var formatter = this.data.formatter || defaultFormatter;
+ var picker = this.getPicker();
+ if (type === 'time') {
+ var pair = value.split(':');
+ values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
+ }
+ else {
+ var date = new Date(value);
+ values = [
+ formatter('year', "".concat(date.getFullYear())),
+ formatter('month', padZero(date.getMonth() + 1)),
+ ];
+ if (type === 'date') {
+ values.push(formatter('day', padZero(date.getDate())));
+ }
+ if (type === 'datetime') {
+ values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
+ }
+ }
+ return this.set({ innerValue: value })
+ .then(function () { return _this.updateColumns(); })
+ .then(function () { return picker.setValues(values); });
+ },
+ },
+ created: function () {
+ var _this = this;
+ var innerValue = this.correctValue(this.data.value);
+ this.updateColumnValue(innerValue).then(function () {
+ _this.$emit('input', innerValue);
+ });
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/datetime-picker/index.json b/miniprogram_npm/@vant/weapp/datetime-picker/index.json
new file mode 100644
index 0000000..a778e91
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/datetime-picker/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-picker": "../picker/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml b/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
new file mode 100644
index 0000000..ade2202
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml
@@ -0,0 +1,16 @@
+
diff --git a/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss b/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss
new file mode 100644
index 0000000..99694d6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/definitions/index.d.ts b/miniprogram_npm/@vant/weapp/definitions/index.d.ts
new file mode 100644
index 0000000..d0554f6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/definitions/index.d.ts
@@ -0,0 +1,28 @@
+///
+interface VantComponentInstance {
+ parent: WechatMiniprogram.Component.TrivialInstance;
+ children: WechatMiniprogram.Component.TrivialInstance[];
+ index: number;
+ $emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
+}
+export type VantComponentOptions = {
+ data?: Data;
+ field?: boolean;
+ classes?: string[];
+ mixins?: string[];
+ props?: Props;
+ relation?: {
+ relations: Record;
+ mixin: string;
+ };
+ watch?: Record any>;
+ methods?: Methods;
+ beforeCreate?: () => void;
+ created?: () => void;
+ mounted?: () => void;
+ destroyed?: () => void;
+} & ThisType, Props, Methods> & Record>;
+export {};
diff --git a/miniprogram_npm/@vant/weapp/definitions/index.js b/miniprogram_npm/@vant/weapp/definitions/index.js
new file mode 100644
index 0000000..c8ad2e5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/definitions/index.js
@@ -0,0 +1,2 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/miniprogram_npm/@vant/weapp/dialog/dialog.d.ts b/miniprogram_npm/@vant/weapp/dialog/dialog.d.ts
new file mode 100644
index 0000000..db2da5f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/dialog.d.ts
@@ -0,0 +1,55 @@
+///
+///
+export type Action = 'confirm' | 'cancel' | 'overlay';
+type DialogContext = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
+interface DialogOptions {
+ lang?: string;
+ show?: boolean;
+ title?: string;
+ width?: string | number | null;
+ zIndex?: number;
+ theme?: string;
+ context?: (() => DialogContext) | DialogContext;
+ message?: string;
+ overlay?: boolean;
+ selector?: string;
+ ariaLabel?: string;
+ /**
+ * @deprecated use custom-class instead
+ */
+ className?: string;
+ customStyle?: string;
+ transition?: string;
+ /**
+ * @deprecated use beforeClose instead
+ */
+ asyncClose?: boolean;
+ beforeClose?: null | ((action: Action) => Promise | void);
+ businessId?: number;
+ sessionFrom?: string;
+ overlayStyle?: string;
+ appParameter?: string;
+ messageAlign?: string;
+ sendMessageImg?: string;
+ showMessageCard?: boolean;
+ sendMessagePath?: string;
+ sendMessageTitle?: string;
+ confirmButtonText?: string;
+ cancelButtonText?: string;
+ showConfirmButton?: boolean;
+ showCancelButton?: boolean;
+ closeOnClickOverlay?: boolean;
+ confirmButtonOpenType?: string;
+}
+declare const Dialog: {
+ (options: DialogOptions): Promise;
+ alert(options: DialogOptions): Promise;
+ confirm(options: DialogOptions): Promise;
+ close(): void;
+ stopLoading(): void;
+ currentOptions: DialogOptions;
+ defaultOptions: DialogOptions;
+ setDefaultOptions(options: DialogOptions): void;
+ resetDefaultOptions(): void;
+};
+export default Dialog;
diff --git a/miniprogram_npm/@vant/weapp/dialog/dialog.js b/miniprogram_npm/@vant/weapp/dialog/dialog.js
new file mode 100644
index 0000000..400f4f1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/dialog.js
@@ -0,0 +1,92 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var queue = [];
+var defaultOptions = {
+ show: false,
+ title: '',
+ width: null,
+ theme: 'default',
+ message: '',
+ zIndex: 100,
+ overlay: true,
+ selector: '#van-dialog',
+ className: '',
+ asyncClose: false,
+ beforeClose: null,
+ transition: 'scale',
+ customStyle: '',
+ messageAlign: '',
+ overlayStyle: '',
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ showConfirmButton: true,
+ showCancelButton: false,
+ closeOnClickOverlay: false,
+ confirmButtonOpenType: '',
+};
+var currentOptions = __assign({}, defaultOptions);
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+var Dialog = function (options) {
+ options = __assign(__assign({}, currentOptions), options);
+ return new Promise(function (resolve, reject) {
+ var context = (typeof options.context === 'function'
+ ? options.context()
+ : options.context) || getContext();
+ var dialog = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (dialog) {
+ dialog.setData(__assign({ callback: function (action, instance) {
+ action === 'confirm' ? resolve(instance) : reject(instance);
+ } }, options));
+ wx.nextTick(function () {
+ dialog.setData({ show: true });
+ });
+ queue.push(dialog);
+ }
+ else {
+ console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
+ }
+ });
+};
+Dialog.alert = function (options) { return Dialog(options); };
+Dialog.confirm = function (options) {
+ return Dialog(__assign({ showCancelButton: true }, options));
+};
+Dialog.close = function () {
+ queue.forEach(function (dialog) {
+ dialog.close();
+ });
+ queue = [];
+};
+Dialog.stopLoading = function () {
+ queue.forEach(function (dialog) {
+ dialog.stopLoading();
+ });
+};
+Dialog.currentOptions = currentOptions;
+Dialog.defaultOptions = defaultOptions;
+Dialog.setDefaultOptions = function (options) {
+ currentOptions = __assign(__assign({}, currentOptions), options);
+ Dialog.currentOptions = currentOptions;
+};
+Dialog.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+ Dialog.currentOptions = currentOptions;
+};
+Dialog.resetDefaultOptions();
+exports.default = Dialog;
diff --git a/miniprogram_npm/@vant/weapp/dialog/index.d.ts b/miniprogram_npm/@vant/weapp/dialog/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/dialog/index.js b/miniprogram_npm/@vant/weapp/dialog/index.js
new file mode 100644
index 0000000..b0acfa0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/index.js
@@ -0,0 +1,135 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ mixins: [button_1.button],
+ classes: ['cancle-button-class', 'confirm-button-class'],
+ props: {
+ show: {
+ type: Boolean,
+ observer: function (show) {
+ !show && this.stopLoading();
+ },
+ },
+ title: String,
+ message: String,
+ theme: {
+ type: String,
+ value: 'default',
+ },
+ confirmButtonId: String,
+ className: String,
+ customStyle: String,
+ asyncClose: Boolean,
+ messageAlign: String,
+ beforeClose: null,
+ overlayStyle: String,
+ useSlot: Boolean,
+ useTitleSlot: Boolean,
+ useConfirmButtonSlot: Boolean,
+ useCancelButtonSlot: Boolean,
+ showCancelButton: Boolean,
+ closeOnClickOverlay: Boolean,
+ confirmButtonOpenType: String,
+ width: null,
+ zIndex: {
+ type: Number,
+ value: 2000,
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonColor: {
+ type: String,
+ value: color_1.RED,
+ },
+ cancelButtonColor: {
+ type: String,
+ value: color_1.GRAY,
+ },
+ showConfirmButton: {
+ type: Boolean,
+ value: true,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ transition: {
+ type: String,
+ value: 'scale',
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ callback: (function () { }),
+ },
+ methods: {
+ onConfirm: function () {
+ this.handleAction('confirm');
+ },
+ onCancel: function () {
+ this.handleAction('cancel');
+ },
+ onClickOverlay: function () {
+ this.close('overlay');
+ },
+ close: function (action) {
+ var _this = this;
+ this.setData({ show: false });
+ wx.nextTick(function () {
+ _this.$emit('close', action);
+ var callback = _this.data.callback;
+ if (callback) {
+ callback(action, _this);
+ }
+ });
+ },
+ stopLoading: function () {
+ this.setData({
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ });
+ },
+ handleAction: function (action) {
+ var _a;
+ var _this = this;
+ this.$emit(action, { dialog: this });
+ var _b = this.data, asyncClose = _b.asyncClose, beforeClose = _b.beforeClose;
+ if (!asyncClose && !beforeClose) {
+ this.close(action);
+ return;
+ }
+ this.setData((_a = {},
+ _a["loading.".concat(action)] = true,
+ _a));
+ if (beforeClose) {
+ (0, utils_1.toPromise)(beforeClose(action)).then(function (value) {
+ if (value) {
+ _this.close(action);
+ }
+ else {
+ _this.stopLoading();
+ }
+ });
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/dialog/index.json b/miniprogram_npm/@vant/weapp/dialog/index.json
new file mode 100644
index 0000000..43417fc
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/index.json
@@ -0,0 +1,9 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "van-button": "../button/index",
+ "van-goods-action": "../goods-action/index",
+ "van-goods-action-button": "../goods-action-button/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/dialog/index.wxml b/miniprogram_npm/@vant/weapp/dialog/index.wxml
new file mode 100644
index 0000000..a1d8e3c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/index.wxml
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+ {{ message }}
+
+
+
+
+ {{ cancelButtonText }}
+
+
+ {{ confirmButtonText }}
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/dialog/index.wxss b/miniprogram_npm/@vant/weapp/dialog/index.wxss
new file mode 100644
index 0000000..507a789
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dialog/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-dialog{background-color:var(--dialog-background-color,#fff);border-radius:var(--dialog-border-radius,16px);font-size:var(--dialog-font-size,16px);overflow:hidden;top:45%!important;width:var(--dialog-width,320px)}@media (max-width:321px){.van-dialog{width:var(--dialog-small-screen-width,90%)}}.van-dialog__header{font-weight:var(--dialog-header-font-weight,500);line-height:var(--dialog-header-line-height,24px);padding-top:var(--dialog-header-padding-top,24px);text-align:center}.van-dialog__header--isolated{padding:var(--dialog-header-isolated-padding,24px 0)}.van-dialog__message{-webkit-overflow-scrolling:touch;font-size:var(--dialog-message-font-size,14px);line-height:var(--dialog-message-line-height,20px);max-height:var(--dialog-message-max-height,60vh);overflow-y:auto;padding:var(--dialog-message-padding,24px);text-align:center}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{color:var(--dialog-has-title-message-text-color,#646566);padding-top:var(--dialog-has-title-message-padding-top,8px)}.van-dialog__message--round-button{color:#323233;padding-bottom:16px}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex}.van-dialog__footer--round-button{padding:8px 24px 16px!important;position:relative!important}.van-dialog__button{flex:1}.van-dialog__cancel,.van-dialog__confirm{border:0!important}.van-dialog-bounce-enter{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-dialog-bounce-leave-active{opacity:0;transform:translate3d(-50%,-50%,0) scale(.9)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/divider/index.d.ts b/miniprogram_npm/@vant/weapp/divider/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/divider/index.js b/miniprogram_npm/@vant/weapp/divider/index.js
new file mode 100644
index 0000000..5c63844
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.js
@@ -0,0 +1,14 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ dashed: Boolean,
+ hairline: Boolean,
+ contentPosition: String,
+ fontSize: String,
+ borderColor: String,
+ textColor: String,
+ customStyle: String,
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/divider/index.json b/miniprogram_npm/@vant/weapp/divider/index.json
new file mode 100644
index 0000000..a89ef4d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/miniprogram_npm/@vant/weapp/divider/index.wxml b/miniprogram_npm/@vant/weapp/divider/index.wxml
new file mode 100644
index 0000000..f6a5a45
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/divider/index.wxs b/miniprogram_npm/@vant/weapp/divider/index.wxs
new file mode 100644
index 0000000..215b14f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.wxs
@@ -0,0 +1,18 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ 'border-color': data.borderColor,
+ color: data.textColor,
+ 'font-size': addUnit(data.fontSize),
+ },
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/divider/index.wxss b/miniprogram_npm/@vant/weapp/divider/index.wxss
new file mode 100644
index 0000000..e91dc44
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/divider/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-divider{align-items:center;border:0 solid var(--divider-border-color,#ebedf0);color:var(--divider-text-color,#969799);display:flex;font-size:var(--divider-font-size,14px);line-height:var(--divider-line-height,24px);margin:var(--divider-margin,16px 0)}.van-divider:after,.van-divider:before{border-color:inherit;border-style:inherit;border-width:1px 0 0;box-sizing:border-box;display:block;flex:1;height:1px}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:var(--divider-content-right-width,10%)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/index.d.ts b/miniprogram_npm/@vant/weapp/dropdown-item/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/index.js b/miniprogram_npm/@vant/weapp/dropdown-item/index.js
new file mode 100644
index 0000000..826c26a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/index.js
@@ -0,0 +1,136 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['item-title-class'],
+ field: true,
+ relation: (0, relation_1.useParent)('dropdown-menu', function () {
+ this.updateDataFromParent();
+ }),
+ props: {
+ value: {
+ type: null,
+ observer: 'rerender',
+ },
+ title: {
+ type: String,
+ observer: 'rerender',
+ },
+ disabled: Boolean,
+ titleClass: {
+ type: String,
+ observer: 'rerender',
+ },
+ options: {
+ type: Array,
+ value: [],
+ observer: 'rerender',
+ },
+ popupStyle: String,
+ useBeforeToggle: {
+ type: Boolean,
+ value: false,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ transition: true,
+ showPopup: false,
+ showWrapper: false,
+ displayTitle: '',
+ safeAreaTabBar: false,
+ },
+ methods: {
+ rerender: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ var _a;
+ (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.updateItemListData();
+ });
+ },
+ updateDataFromParent: function () {
+ if (this.parent) {
+ var _a = this.parent.data, overlay = _a.overlay, duration = _a.duration, activeColor = _a.activeColor, closeOnClickOverlay = _a.closeOnClickOverlay, direction = _a.direction, safeAreaTabBar = _a.safeAreaTabBar;
+ this.setData({
+ overlay: overlay,
+ duration: duration,
+ activeColor: activeColor,
+ closeOnClickOverlay: closeOnClickOverlay,
+ direction: direction,
+ safeAreaTabBar: safeAreaTabBar,
+ });
+ }
+ },
+ onOpen: function () {
+ this.$emit('open');
+ },
+ onOpened: function () {
+ this.$emit('opened');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClosed: function () {
+ this.$emit('closed');
+ this.setData({ showWrapper: false });
+ },
+ onOptionTap: function (event) {
+ var option = event.currentTarget.dataset.option;
+ var value = option.value;
+ var shouldEmitChange = this.data.value !== value;
+ this.setData({ showPopup: false, value: value });
+ this.$emit('close');
+ this.rerender();
+ if (shouldEmitChange) {
+ this.$emit('change', value);
+ }
+ },
+ toggle: function (show, options) {
+ var _this = this;
+ if (options === void 0) { options = {}; }
+ var showPopup = this.data.showPopup;
+ if (typeof show !== 'boolean') {
+ show = !showPopup;
+ }
+ if (show === showPopup) {
+ return;
+ }
+ this.onBeforeToggle(show).then(function (status) {
+ var _a;
+ if (!status) {
+ return;
+ }
+ _this.setData({
+ transition: !options.immediate,
+ showPopup: show,
+ });
+ if (show) {
+ (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then(function (wrapperStyle) {
+ _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
+ _this.rerender();
+ });
+ }
+ else {
+ _this.rerender();
+ }
+ });
+ },
+ onBeforeToggle: function (status) {
+ var _this = this;
+ var useBeforeToggle = this.data.useBeforeToggle;
+ if (!useBeforeToggle) {
+ return Promise.resolve(true);
+ }
+ return new Promise(function (resolve) {
+ _this.$emit('before-toggle', {
+ status: status,
+ callback: function (value) { return resolve(value); },
+ });
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/index.json b/miniprogram_npm/@vant/weapp/dropdown-item/index.json
new file mode 100644
index 0000000..88d5409
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/index.json
@@ -0,0 +1,8 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "van-cell": "../cell/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml b/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
new file mode 100644
index 0000000..63904f4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss b/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
new file mode 100644
index 0000000..80505e9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-dropdown-item{left:0;overflow:hidden;position:fixed;right:0}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/shared.d.ts b/miniprogram_npm/@vant/weapp/dropdown-item/shared.d.ts
new file mode 100644
index 0000000..774eb4c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/shared.d.ts
@@ -0,0 +1,5 @@
+export interface Option {
+ text: string;
+ value: string | number;
+ icon: string;
+}
diff --git a/miniprogram_npm/@vant/weapp/dropdown-item/shared.js b/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
new file mode 100644
index 0000000..c8ad2e5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-item/shared.js
@@ -0,0 +1,2 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.d.ts b/miniprogram_npm/@vant/weapp/dropdown-menu/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.js b/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
new file mode 100644
index 0000000..aed2921
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.js
@@ -0,0 +1,122 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+var ARRAY = [];
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['title-class'],
+ relation: (0, relation_1.useChildren)('dropdown-item', function () {
+ this.updateItemListData();
+ }),
+ props: {
+ activeColor: {
+ type: String,
+ observer: 'updateChildrenData',
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ zIndex: {
+ type: Number,
+ value: 10,
+ },
+ duration: {
+ type: Number,
+ value: 200,
+ observer: 'updateChildrenData',
+ },
+ direction: {
+ type: String,
+ value: 'down',
+ observer: 'updateChildrenData',
+ },
+ safeAreaTabBar: {
+ type: Boolean,
+ value: false,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOutside: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ itemListData: [],
+ },
+ beforeCreate: function () {
+ var windowHeight = (0, utils_1.getSystemInfoSync)().windowHeight;
+ this.windowHeight = windowHeight;
+ ARRAY.push(this);
+ },
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
+ },
+ methods: {
+ updateItemListData: function () {
+ this.setData({
+ itemListData: this.children.map(function (child) { return child.data; }),
+ });
+ },
+ updateChildrenData: function () {
+ this.children.forEach(function (child) {
+ child.updateDataFromParent();
+ });
+ },
+ toggleItem: function (active) {
+ this.children.forEach(function (item, index) {
+ var showPopup = item.data.showPopup;
+ if (index === active) {
+ item.toggle();
+ }
+ else if (showPopup) {
+ item.toggle(false, { immediate: true });
+ }
+ });
+ },
+ close: function () {
+ this.children.forEach(function (child) {
+ child.toggle(false, { immediate: true });
+ });
+ },
+ getChildWrapperStyle: function () {
+ var _this = this;
+ var _a = this.data, zIndex = _a.zIndex, direction = _a.direction;
+ return (0, utils_1.getRect)(this, '.van-dropdown-menu').then(function (rect) {
+ var _a = rect.top, top = _a === void 0 ? 0 : _a, _b = rect.bottom, bottom = _b === void 0 ? 0 : _b;
+ var offset = direction === 'down' ? bottom : _this.windowHeight - top;
+ var wrapperStyle = "z-index: ".concat(zIndex, ";");
+ if (direction === 'down') {
+ wrapperStyle += "top: ".concat((0, utils_1.addUnit)(offset), ";");
+ }
+ else {
+ wrapperStyle += "bottom: ".concat((0, utils_1.addUnit)(offset), ";");
+ }
+ return wrapperStyle;
+ });
+ },
+ onTitleTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (!child.data.disabled) {
+ ARRAY.forEach(function (menuItem) {
+ if (menuItem &&
+ menuItem.data.closeOnClickOutside &&
+ menuItem !== _this) {
+ menuItem.close();
+ }
+ });
+ this.toggleItem(index);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.json b/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
new file mode 100644
index 0000000..ec165a9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml
@@ -0,0 +1,23 @@
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
new file mode 100644
index 0000000..6538854
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
@@ -0,0 +1,16 @@
+/* eslint-disable */
+function displayTitle(item) {
+ if (item.title) {
+ return item.title;
+ }
+
+ var match = item.options.filter(function(option) {
+ return option.value === item.value;
+ });
+ var displayTitle = match.length ? match[0].text : '';
+ return displayTitle;
+}
+
+module.exports = {
+ displayTitle: displayTitle
+};
diff --git a/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
new file mode 100644
index 0000000..dba000e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-dropdown-menu{background-color:var(--dropdown-menu-background-color,#fff);box-shadow:var(--dropdown-menu-box-shadow,0 2px 12px hsla(210,1%,40%,.12));display:flex;height:var(--dropdown-menu-height,50px);-webkit-user-select:none;user-select:none}.van-dropdown-menu__item{align-items:center;display:flex;flex:1;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{box-sizing:border-box;color:var(--dropdown-menu-title-text-color,#323233);font-size:var(--dropdown-menu-title-font-size,15px);line-height:var(--dropdown-menu-title-line-height,18px);max-width:100%;padding:var(--dropdown-menu-title-padding,0 24px 0 8px);position:relative}.van-dropdown-menu__title:after{border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;content:"";margin-top:-5px;opacity:.8;position:absolute;right:11px;top:50%;transform:rotate(-45deg)}.van-dropdown-menu__title--active{color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/empty/index.d.ts b/miniprogram_npm/@vant/weapp/empty/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/empty/index.js b/miniprogram_npm/@vant/weapp/empty/index.js
new file mode 100644
index 0000000..755e638
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.js
@@ -0,0 +1,12 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ description: String,
+ image: {
+ type: String,
+ value: 'default',
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/empty/index.json b/miniprogram_npm/@vant/weapp/empty/index.json
new file mode 100644
index 0000000..a89ef4d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/miniprogram_npm/@vant/weapp/empty/index.wxml b/miniprogram_npm/@vant/weapp/empty/index.wxml
new file mode 100644
index 0000000..9c7b719
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.wxml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ description }}
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/empty/index.wxs b/miniprogram_npm/@vant/weapp/empty/index.wxs
new file mode 100644
index 0000000..cf92ece
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.wxs
@@ -0,0 +1,15 @@
+/* eslint-disable */
+var PRESETS = ['error', 'search', 'default', 'network'];
+
+function imageUrl(image) {
+ if (PRESETS.indexOf(image) !== -1) {
+ return 'https://img.yzcdn.cn/vant/empty-image-' + image + '.png';
+ }
+
+ return image;
+}
+
+module.exports = {
+ imageUrl: imageUrl,
+};
+
diff --git a/miniprogram_npm/@vant/weapp/empty/index.wxss b/miniprogram_npm/@vant/weapp/empty/index.wxss
new file mode 100644
index 0000000..0fb74fe
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/empty/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:32px 0}.van-empty__image{height:160px;width:160px}.van-empty__image:empty{display:none}.van-empty__image__img{height:100%;width:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{color:#969799;font-size:14px;line-height:20px;margin-top:16px;padding:0 60px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/field/index.d.ts b/miniprogram_npm/@vant/weapp/field/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/field/index.js b/miniprogram_npm/@vant/weapp/field/index.js
new file mode 100644
index 0000000..c20d266
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.js
@@ -0,0 +1,137 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var props_1 = require("./props");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['input-class', 'right-icon-class', 'label-class'],
+ props: __assign(__assign(__assign(__assign({}, props_1.commonProps), props_1.inputProps), props_1.textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, iconClass: String, clickable: Boolean, inputAlign: String, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, readonly: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearable: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearTrigger: {
+ type: String,
+ value: 'focus',
+ }, border: {
+ type: Boolean,
+ value: true,
+ }, titleWidth: {
+ type: String,
+ value: '6.2em',
+ }, clearIcon: {
+ type: String,
+ value: 'clear',
+ }, extraEventParams: {
+ type: Boolean,
+ value: false,
+ } }),
+ data: {
+ focused: false,
+ innerValue: '',
+ showClear: false,
+ },
+ created: function () {
+ this.value = this.data.value;
+ this.setData({ innerValue: this.value });
+ },
+ methods: {
+ formatValue: function (value) {
+ var maxlength = this.data.maxlength;
+ if (maxlength !== -1 && value.length > maxlength) {
+ return value.slice(0, maxlength);
+ }
+ return value;
+ },
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ var formatValue = this.formatValue(value);
+ this.value = formatValue;
+ this.setShowClear();
+ return this.emitChange(__assign(__assign({}, event.detail), { value: formatValue }));
+ },
+ onFocus: function (event) {
+ this.focused = true;
+ this.setShowClear();
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.focused = false;
+ this.setShowClear();
+ this.$emit('blur', event.detail);
+ },
+ onClickIcon: function () {
+ this.$emit('click-icon');
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
+ onClear: function () {
+ var _this = this;
+ this.setData({ innerValue: '' });
+ this.value = '';
+ this.setShowClear();
+ (0, utils_1.nextTick)(function () {
+ _this.emitChange({ value: '' });
+ _this.$emit('clear', '');
+ });
+ },
+ onConfirm: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ this.value = value;
+ this.setShowClear();
+ this.$emit('confirm', value);
+ },
+ setValue: function (value) {
+ this.value = value;
+ this.setShowClear();
+ if (value === '') {
+ this.setData({ innerValue: '' });
+ }
+ this.emitChange({ value: value });
+ },
+ onLineChange: function (event) {
+ this.$emit('linechange', event.detail);
+ },
+ onKeyboardHeightChange: function (event) {
+ this.$emit('keyboardheightchange', event.detail);
+ },
+ emitChange: function (detail) {
+ var extraEventParams = this.data.extraEventParams;
+ this.setData({ value: detail.value });
+ var result;
+ var data = extraEventParams
+ ? __assign(__assign({}, detail), { callback: function (data) {
+ result = data;
+ } }) : detail.value;
+ this.$emit('input', data);
+ this.$emit('change', data);
+ return result;
+ },
+ setShowClear: function () {
+ var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
+ var _b = this, focused = _b.focused, value = _b.value;
+ var showClear = false;
+ if (clearable && !readonly) {
+ var hasValue = !!value;
+ var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
+ showClear = hasValue && trigger;
+ }
+ this.setData({ showClear: showClear });
+ },
+ noop: function () { },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/field/index.json b/miniprogram_npm/@vant/weapp/field/index.json
new file mode 100644
index 0000000..5906c50
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/field/index.wxml b/miniprogram_npm/@vant/weapp/field/index.wxml
new file mode 100644
index 0000000..6018993
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.wxml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/field/index.wxs b/miniprogram_npm/@vant/weapp/field/index.wxs
new file mode 100644
index 0000000..78575b9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.wxs
@@ -0,0 +1,18 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function inputStyle(autosize) {
+ if (autosize && autosize.constructor === 'Object') {
+ return style({
+ 'min-height': addUnit(autosize.minHeight),
+ 'max-height': addUnit(autosize.maxHeight),
+ });
+ }
+
+ return '';
+}
+
+module.exports = {
+ inputStyle: inputStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/field/index.wxss b/miniprogram_npm/@vant/weapp/field/index.wxss
new file mode 100644
index 0000000..5f7d306
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-field{--cell-icon-size:var(--field-icon-size,16px)}.van-field__label{color:var(--field-label-color,#646566)}.van-field__label--disabled{color:var(--field-disabled-text-color,#c8c9cc)}.van-field__body{align-items:center;display:flex}.van-field__body--textarea{box-sizing:border-box;line-height:1.2em;min-height:var(--cell-line-height,24px);padding:3.6px 0}.van-field__control:empty+.van-field__control{display:block}.van-field__control{background-color:initial;border:0;box-sizing:border-box;color:var(--field-input-text-color,#323233);display:none;height:var(--cell-line-height,24px);line-height:inherit;margin:0;min-height:var(--cell-line-height,24px);padding:0;position:relative;resize:none;text-align:left;width:100%}.van-field__control:empty{display:none}.van-field__control--textarea{height:var(--field-text-area-min-height,18px);min-height:var(--field-text-area-min-height,18px)}.van-field__control--error{color:var(--field-input-error-text-color,#ee0a24)}.van-field__control--disabled{background-color:initial;color:var(--field-input-disabled-text-color,#c8c9cc);opacity:1}.van-field__control--center{text-align:center}.van-field__control--right{text-align:right}.van-field__control--custom{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__placeholder{color:var(--field-placeholder-text-color,#c8c9cc);left:0;pointer-events:none;position:absolute;right:0;top:0}.van-field__placeholder--error{color:var(--field-error-message-color,#ee0a24)}.van-field__icon-root{align-items:center;display:flex;min-height:var(--cell-line-height,24px)}.van-field__clear-root,.van-field__icon-container{line-height:inherit;margin-right:calc(var(--padding-xs, 8px)*-1);padding:0 var(--padding-xs,8px);vertical-align:middle}.van-field__button,.van-field__clear-root,.van-field__icon-container{flex-shrink:0}.van-field__clear-root{color:var(--field-clear-icon-color,#c8c9cc);font-size:var(--field-clear-icon-size,16px)}.van-field__icon-container{color:var(--field-icon-container-color,#969799);font-size:var(--field-icon-size,16px)}.van-field__icon-container:empty{display:none}.van-field__button{padding-left:var(--padding-xs,8px)}.van-field__button:empty{display:none}.van-field__error-message{color:var(--field-error-message-color,#ee0a24);display:block;font-size:var(--field-error-message-text-font-size,12px);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{color:var(--field-word-limit-color,#646566);font-size:var(--field-word-limit-font-size,12px);line-height:var(--field-word-limit-line-height,16px);margin-top:var(--padding-base,4px);text-align:right}.van-field__word-num{display:inline}.van-field__word-num--full{color:var(--field-word-num-full-color,#ee0a24)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/field/input.wxml b/miniprogram_npm/@vant/weapp/field/input.wxml
new file mode 100644
index 0000000..c10f4c4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/input.wxml
@@ -0,0 +1,30 @@
+
+
diff --git a/miniprogram_npm/@vant/weapp/field/props.d.ts b/miniprogram_npm/@vant/weapp/field/props.d.ts
new file mode 100644
index 0000000..5cd130a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/props.d.ts
@@ -0,0 +1,4 @@
+///
+export declare const commonProps: WechatMiniprogram.Component.PropertyOption;
+export declare const inputProps: WechatMiniprogram.Component.PropertyOption;
+export declare const textareaProps: WechatMiniprogram.Component.PropertyOption;
diff --git a/miniprogram_npm/@vant/weapp/field/props.js b/miniprogram_npm/@vant/weapp/field/props.js
new file mode 100644
index 0000000..3cb8dca
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/props.js
@@ -0,0 +1,67 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
+exports.commonProps = {
+ value: {
+ type: String,
+ observer: function (value) {
+ if (value !== this.value) {
+ this.setData({ innerValue: value });
+ this.value = value;
+ }
+ },
+ },
+ placeholder: String,
+ placeholderStyle: String,
+ placeholderClass: String,
+ disabled: Boolean,
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ cursorSpacing: {
+ type: Number,
+ value: 50,
+ },
+ autoFocus: Boolean,
+ focus: Boolean,
+ cursor: {
+ type: Number,
+ value: -1,
+ },
+ selectionStart: {
+ type: Number,
+ value: -1,
+ },
+ selectionEnd: {
+ type: Number,
+ value: -1,
+ },
+ adjustPosition: {
+ type: Boolean,
+ value: true,
+ },
+ holdKeyboard: Boolean,
+};
+exports.inputProps = {
+ type: {
+ type: String,
+ value: 'text',
+ },
+ password: Boolean,
+ confirmType: String,
+ confirmHold: Boolean,
+ alwaysEmbed: Boolean,
+};
+exports.textareaProps = {
+ autoHeight: Boolean,
+ fixed: Boolean,
+ showConfirmBar: {
+ type: Boolean,
+ value: true,
+ },
+ disableDefaultPadding: {
+ type: Boolean,
+ value: true,
+ },
+};
diff --git a/miniprogram_npm/@vant/weapp/field/textarea.wxml b/miniprogram_npm/@vant/weapp/field/textarea.wxml
new file mode 100644
index 0000000..945d03e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/textarea.wxml
@@ -0,0 +1,32 @@
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/field/types.d.ts b/miniprogram_npm/@vant/weapp/field/types.d.ts
new file mode 100644
index 0000000..357ccbe
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/types.d.ts
@@ -0,0 +1,8 @@
+export interface InputDetails {
+ /** 输入框内容 */
+ value: string;
+ /** 光标位置 */
+ cursor?: number;
+ /** keyCode 为键值 (目前工具还不支持返回keyCode参数) `2.1.0` 起支持 */
+ keyCode?: number;
+}
diff --git a/miniprogram_npm/@vant/weapp/field/types.js b/miniprogram_npm/@vant/weapp/field/types.js
new file mode 100644
index 0000000..c8ad2e5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/field/types.js
@@ -0,0 +1,2 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/miniprogram_npm/@vant/weapp/goods-action-button/index.d.ts b/miniprogram_npm/@vant/weapp/goods-action-button/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-button/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/goods-action-button/index.js b/miniprogram_npm/@vant/weapp/goods-action-button/index.js
new file mode 100644
index 0000000..8179e89
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-button/index.js
@@ -0,0 +1,46 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var button_1 = require("../mixins/button");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ mixins: [link_1.link, button_1.button],
+ relation: (0, relation_1.useParent)('goods-action'),
+ props: {
+ text: String,
+ color: String,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loading: Boolean,
+ disabled: Boolean,
+ plain: Boolean,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ customStyle: {
+ type: String,
+ value: '',
+ },
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ updateStyle: function () {
+ if (this.parent == null) {
+ return;
+ }
+ var index = this.index;
+ var _a = this.parent.children, children = _a === void 0 ? [] : _a;
+ this.setData({
+ isFirst: index === 0,
+ isLast: index === children.length - 1,
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/goods-action-button/index.json b/miniprogram_npm/@vant/weapp/goods-action-button/index.json
new file mode 100644
index 0000000..b567686
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-button/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-button": "../button/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml b/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
new file mode 100644
index 0000000..4530ab8
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml
@@ -0,0 +1,35 @@
+
+
+ {{ text }}
+
+
diff --git a/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss b/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
new file mode 100644
index 0000000..759a1d9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';:host{flex:1}.van-goods-action-button{--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(to right,#ffd01e,#ff8917));--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(to right,#ff6034,#ee0a24));--button-default-height:var(--goods-action-button-height,40px);--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:var(--goods-action-button-plain-color,#fff);--button-border-width:0;display:block}.van-goods-action-button--first{--button-border-radius:999px 0 0 var(--goods-action-button-border-radius,999px);margin-left:5px}.van-goods-action-button--last{--button-border-radius:0 999px var(--goods-action-button-border-radius,999px) 0;margin-right:5px}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:var(--goods-action-button-border-radius,999px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{font-weight:var(--font-weight-bold,500)!important;width:100%}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/goods-action-icon/index.d.ts b/miniprogram_npm/@vant/weapp/goods-action-icon/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-icon/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/goods-action-icon/index.js b/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
new file mode 100644
index 0000000..828e1f5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-icon/index.js
@@ -0,0 +1,29 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ classes: ['icon-class', 'text-class', 'info-class'],
+ mixins: [link_1.link, button_1.button],
+ props: {
+ text: String,
+ dot: Boolean,
+ info: String,
+ icon: String,
+ size: String,
+ color: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ disabled: Boolean,
+ loading: Boolean,
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/goods-action-icon/index.json b/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
new file mode 100644
index 0000000..93bfe8a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-icon/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-button": "../button/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml b/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
new file mode 100644
index 0000000..30c1a8c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml
@@ -0,0 +1,41 @@
+
+
+
+
+
+ {{ text }}
+
diff --git a/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss b/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
new file mode 100644
index 0000000..6e4758d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-goods-action-icon{border:none!important;color:var(--goods-action-icon-text-color,#646566)!important;display:flex!important;flex-direction:column;font-size:var(--goods-action-icon-font-size,10px)!important;height:var(--goods-action-icon-height,50px)!important;justify-content:center!important;line-height:1!important;min-width:var(--goods-action-icon-width,48px)}.van-goods-action-icon__icon{color:var(--goods-action-icon-color,#323233);display:flex;font-size:var(--goods-action-icon-size,18px);margin:0 auto 5px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/goods-action/index.d.ts b/miniprogram_npm/@vant/weapp/goods-action/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/goods-action/index.js b/miniprogram_npm/@vant/weapp/goods-action/index.js
new file mode 100644
index 0000000..e49bcbc
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action/index.js
@@ -0,0 +1,17 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('goods-action-button', function () {
+ this.children.forEach(function (item) {
+ item.updateStyle();
+ });
+ }),
+ props: {
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/goods-action/index.json b/miniprogram_npm/@vant/weapp/goods-action/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/goods-action/index.wxml b/miniprogram_npm/@vant/weapp/goods-action/index.wxml
new file mode 100644
index 0000000..569450c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/goods-action/index.wxss b/miniprogram_npm/@vant/weapp/goods-action/index.wxss
new file mode 100644
index 0000000..7793e77
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/goods-action/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-goods-action{align-items:center;background-color:var(--goods-action-background-color,#fff);bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.d.ts b/miniprogram_npm/@vant/weapp/grid-item/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.js b/miniprogram_npm/@vant/weapp/grid-item/index.js
new file mode 100644
index 0000000..a7d47a2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.js
@@ -0,0 +1,54 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var link_1 = require("../mixins/link");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('grid'),
+ classes: ['content-class', 'icon-class', 'text-class'],
+ mixins: [link_1.link],
+ props: {
+ icon: String,
+ iconColor: String,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ dot: Boolean,
+ info: null,
+ badge: null,
+ text: String,
+ useSlot: Boolean,
+ },
+ data: {
+ viewStyle: '',
+ },
+ mounted: function () {
+ this.updateStyle();
+ },
+ methods: {
+ updateStyle: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent, data = _a.data, children = _a.children;
+ var columnNum = data.columnNum, border = data.border, square = data.square, gutter = data.gutter, clickable = data.clickable, center = data.center, direction = data.direction, reverse = data.reverse, iconSize = data.iconSize;
+ this.setData({
+ center: center,
+ border: border,
+ square: square,
+ gutter: gutter,
+ clickable: clickable,
+ direction: direction,
+ reverse: reverse,
+ iconSize: iconSize,
+ index: children.indexOf(this),
+ columnNum: columnNum,
+ });
+ },
+ onClick: function () {
+ this.$emit('click');
+ this.jumpLink();
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.json b/miniprogram_npm/@vant/weapp/grid-item/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.wxml b/miniprogram_npm/@vant/weapp/grid-item/index.wxml
new file mode 100644
index 0000000..e95087d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.wxml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.wxs b/miniprogram_npm/@vant/weapp/grid-item/index.wxs
new file mode 100644
index 0000000..2cfe37d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.wxs
@@ -0,0 +1,32 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function wrapperStyle(data) {
+ var width = 100 / data.columnNum + '%';
+
+ return style({
+ width: width,
+ 'padding-top': data.square ? width : null,
+ 'padding-right': addUnit(data.gutter),
+ 'margin-top':
+ data.index >= data.columnNum && !data.square
+ ? addUnit(data.gutter)
+ : null,
+ });
+}
+
+function contentStyle(data) {
+ return data.square
+ ? style({
+ right: addUnit(data.gutter),
+ bottom: addUnit(data.gutter),
+ height: 'auto',
+ })
+ : '';
+}
+
+module.exports = {
+ wrapperStyle: wrapperStyle,
+ contentStyle: contentStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/grid-item/index.wxss b/miniprogram_npm/@vant/weapp/grid-item/index.wxss
new file mode 100644
index 0000000..acaea84
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid-item/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-grid-item{box-sizing:border-box;float:left;position:relative}.van-grid-item--square{height:0}.van-grid-item__content{background-color:var(--grid-item-content-background-color,#fff);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:var(--grid-item-content-padding,16px 8px)}.van-grid-item__content:after{border-width:0 1px 1px 0;z-index:1}.van-grid-item__content--surround:after{border-width:1px}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--square{left:0;position:absolute;right:0;top:0}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 8px}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 8px}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 8px 0 0}.van-grid-item__content--clickable:active{background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{align-items:center;display:flex;font-size:var(--grid-item-icon-size,26px);height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:var(--grid-item-text-color,#646566);font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/grid/index.d.ts b/miniprogram_npm/@vant/weapp/grid/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/grid/index.js b/miniprogram_npm/@vant/weapp/grid/index.js
new file mode 100644
index 0000000..28d14f4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.js
@@ -0,0 +1,57 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('grid-item'),
+ props: {
+ square: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ gutter: {
+ type: null,
+ value: 0,
+ observer: 'updateChildren',
+ },
+ clickable: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ columnNum: {
+ type: Number,
+ value: 4,
+ observer: 'updateChildren',
+ },
+ center: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ iconSize: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ reverse: {
+ type: Boolean,
+ value: false,
+ observer: 'updateChildren',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) {
+ child.updateStyle();
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/grid/index.json b/miniprogram_npm/@vant/weapp/grid/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/grid/index.wxml b/miniprogram_npm/@vant/weapp/grid/index.wxml
new file mode 100644
index 0000000..2e4118f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.wxml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/grid/index.wxs b/miniprogram_npm/@vant/weapp/grid/index.wxs
new file mode 100644
index 0000000..cd3b1bd
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.wxs
@@ -0,0 +1,13 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'padding-left': addUnit(data.gutter),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/grid/index.wxss b/miniprogram_npm/@vant/weapp/grid/index.wxss
new file mode 100644
index 0000000..e347440
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/grid/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-grid{box-sizing:border-box;overflow:hidden;position:relative}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/icon/index.d.ts b/miniprogram_npm/@vant/weapp/icon/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/icon/index.js b/miniprogram_npm/@vant/weapp/icon/index.js
new file mode 100644
index 0000000..6758092
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.js
@@ -0,0 +1,23 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['info-class'],
+ props: {
+ dot: Boolean,
+ info: null,
+ size: null,
+ color: String,
+ customStyle: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ name: String,
+ },
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/icon/index.json b/miniprogram_npm/@vant/weapp/icon/index.json
new file mode 100644
index 0000000..bf0ebe0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/icon/index.wxml b/miniprogram_npm/@vant/weapp/icon/index.wxml
new file mode 100644
index 0000000..91b47f9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.wxml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/icon/index.wxs b/miniprogram_npm/@vant/weapp/icon/index.wxs
new file mode 100644
index 0000000..a906f76
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.wxs
@@ -0,0 +1,43 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function isImage(name) {
+ return name.indexOf('/') !== -1;
+}
+
+function rootClass(data) {
+ var classes = ['custom-class'];
+
+ if (data.classPrefix !== 'van-icon') {
+ classes.push('van-icon--custom')
+ }
+
+ if (data.classPrefix != null) {
+ classes.push(data.classPrefix);
+ }
+
+ if (isImage(data.name)) {
+ classes.push('van-icon--image');
+ } else if (data.classPrefix != null) {
+ classes.push(data.classPrefix + '-' + data.name);
+ }
+
+ return classes.join(' ');
+}
+
+function rootStyle(data) {
+ return style([
+ {
+ color: data.color,
+ 'font-size': addUnit(data.size),
+ },
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ isImage: isImage,
+ rootClass: rootClass,
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/icon/index.wxss b/miniprogram_npm/@vant/weapp/icon/index.wxss
new file mode 100644
index 0000000..feb3d7e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/icon/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 vant-icon;font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon");font-size:inherit;position:relative}.van-icon,.van-icon:before{display:inline-block}.van-icon-contact:before{content:"\e753"}.van-icon-notes:before{content:"\e63c"}.van-icon-records:before{content:"\e63d"}.van-icon-cash-back-record:before{content:"\e63e"}.van-icon-newspaper:before{content:"\e63f"}.van-icon-discount:before{content:"\e640"}.van-icon-completed:before{content:"\e641"}.van-icon-user:before{content:"\e642"}.van-icon-description:before{content:"\e643"}.van-icon-list-switch:before{content:"\e6ad"}.van-icon-list-switching:before{content:"\e65a"}.van-icon-link-o:before{content:"\e751"}.van-icon-miniprogram-o:before{content:"\e752"}.van-icon-qq:before{content:"\e74e"}.van-icon-wechat-moments:before{content:"\e74f"}.van-icon-weibo:before{content:"\e750"}.van-icon-cash-o:before{content:"\e74d"}.van-icon-guide-o:before{content:"\e74c"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-shield-o:before{content:"\e74b"}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records-o:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record-o:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed-o:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact-o:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description-o:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount-o:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}@font-face{font-display:auto;font-family:vant-icon;font-style:normal;font-weight:400;src:url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff2?t=1694918397022) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_kfwma2yq1rs.woff?t=1694918397022) format("woff")}:host{align-items:center;display:inline-flex;justify-content:center}.van-icon--custom{position:relative}.van-icon--image{height:1em;width:1em}.van-icon__image{height:100%;width:100%}.van-icon__info{z-index:1}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/image/index.d.ts b/miniprogram_npm/@vant/weapp/image/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/image/index.js b/miniprogram_npm/@vant/weapp/image/index.js
new file mode 100644
index 0000000..40f6812
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.js
@@ -0,0 +1,66 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+(0, component_1.VantComponent)({
+ mixins: [button_1.button],
+ classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
+ props: {
+ src: {
+ type: String,
+ observer: function () {
+ this.setData({
+ error: false,
+ loading: true,
+ });
+ },
+ },
+ round: Boolean,
+ width: null,
+ height: null,
+ radius: null,
+ lazyLoad: Boolean,
+ useErrorSlot: Boolean,
+ useLoadingSlot: Boolean,
+ showMenuByLongpress: Boolean,
+ fit: {
+ type: String,
+ value: 'fill',
+ },
+ webp: {
+ type: Boolean,
+ value: false,
+ },
+ showError: {
+ type: Boolean,
+ value: true,
+ },
+ showLoading: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ error: false,
+ loading: true,
+ viewStyle: '',
+ },
+ methods: {
+ onLoad: function (event) {
+ this.setData({
+ loading: false,
+ });
+ this.$emit('load', event.detail);
+ },
+ onError: function (event) {
+ this.setData({
+ loading: false,
+ error: true,
+ });
+ this.$emit('error', event.detail);
+ },
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/image/index.json b/miniprogram_npm/@vant/weapp/image/index.json
new file mode 100644
index 0000000..e00a588
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/image/index.wxml b/miniprogram_npm/@vant/weapp/image/index.wxml
new file mode 100644
index 0000000..a6f573c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.wxml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/image/index.wxs b/miniprogram_npm/@vant/weapp/image/index.wxs
new file mode 100644
index 0000000..cec14b8
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.wxs
@@ -0,0 +1,32 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ width: addUnit(data.width),
+ height: addUnit(data.height),
+ 'border-radius': addUnit(data.radius),
+ },
+ data.radius ? 'overflow: hidden' : null,
+ ]);
+}
+
+var FIT_MODE_MAP = {
+ none: 'center',
+ fill: 'scaleToFill',
+ cover: 'aspectFill',
+ contain: 'aspectFit',
+ widthFix: 'widthFix',
+ heightFix: 'heightFix',
+};
+
+function mode(fit) {
+ return FIT_MODE_MAP[fit];
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ mode: mode,
+};
diff --git a/miniprogram_npm/@vant/weapp/image/index.wxss b/miniprogram_npm/@vant/weapp/image/index.wxss
new file mode 100644
index 0000000..a9c6ebb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/image/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-image{display:inline-block;position:relative}.van-image--round{border-radius:50%;overflow:hidden}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;height:100%;width:100%}.van-image__error,.van-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.van-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/index-anchor/index.d.ts b/miniprogram_npm/@vant/weapp/index-anchor/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-anchor/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/index-anchor/index.js b/miniprogram_npm/@vant/weapp/index-anchor/index.js
new file mode 100644
index 0000000..9a361a9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-anchor/index.js
@@ -0,0 +1,28 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('index-bar'),
+ props: {
+ useSlot: Boolean,
+ index: null,
+ },
+ data: {
+ active: false,
+ wrapperStyle: '',
+ anchorStyle: '',
+ },
+ methods: {
+ scrollIntoView: function (scrollTop) {
+ var _this = this;
+ (0, utils_1.getRect)(this, '.van-index-anchor-wrapper').then(function (rect) {
+ wx.pageScrollTo({
+ duration: 0,
+ scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
+ });
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/index-anchor/index.json b/miniprogram_npm/@vant/weapp/index-anchor/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-anchor/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/index-anchor/index.wxml b/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
new file mode 100644
index 0000000..49affa7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-anchor/index.wxml
@@ -0,0 +1,14 @@
+
+
+
+
+ {{ index }}
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/index-anchor/index.wxss b/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
new file mode 100644
index 0000000..4b91560
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-anchor/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,#323233);font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.van-index-anchor--active{background-color:var(--index-anchor-active-background-color,#fff);color:var(--index-anchor-active-text-color,#07c160);left:0;right:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/index-bar/index.d.ts b/miniprogram_npm/@vant/weapp/index-bar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-bar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/index-bar/index.js b/miniprogram_npm/@vant/weapp/index-bar/index.js
new file mode 100644
index 0000000..afc5412
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-bar/index.js
@@ -0,0 +1,243 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+var page_scroll_1 = require("../mixins/page-scroll");
+var indexList = function () {
+ var indexList = [];
+ var charCodeOfA = 'A'.charCodeAt(0);
+ for (var i = 0; i < 26; i++) {
+ indexList.push(String.fromCharCode(charCodeOfA + i));
+ }
+ return indexList;
+};
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('index-anchor', function () {
+ this.updateData();
+ }),
+ props: {
+ sticky: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ highlightColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ stickyOffsetTop: {
+ type: Number,
+ value: 0,
+ },
+ indexList: {
+ type: Array,
+ value: indexList(),
+ },
+ },
+ mixins: [
+ (0, page_scroll_1.pageScrollMixin)(function (event) {
+ this.scrollTop = (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
+ this.onScroll();
+ }),
+ ],
+ data: {
+ activeAnchorIndex: null,
+ showSidebar: false,
+ },
+ created: function () {
+ this.scrollTop = 0;
+ },
+ methods: {
+ updateData: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ if (_this.timer != null) {
+ clearTimeout(_this.timer);
+ }
+ _this.timer = setTimeout(function () {
+ _this.setData({
+ showSidebar: !!_this.children.length,
+ });
+ _this.setRect().then(function () {
+ _this.onScroll();
+ });
+ }, 0);
+ });
+ },
+ setRect: function () {
+ return Promise.all([
+ this.setAnchorsRect(),
+ this.setListRect(),
+ this.setSiderbarRect(),
+ ]);
+ },
+ setAnchorsRect: function () {
+ var _this = this;
+ return Promise.all(this.children.map(function (anchor) {
+ return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) {
+ Object.assign(anchor, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ }));
+ },
+ setListRect: function () {
+ var _this = this;
+ return (0, utils_1.getRect)(this, '.van-index-bar').then(function (rect) {
+ if (!(0, utils_1.isDef)(rect)) {
+ return;
+ }
+ Object.assign(_this, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ },
+ setSiderbarRect: function () {
+ var _this = this;
+ return (0, utils_1.getRect)(this, '.van-index-bar__sidebar').then(function (res) {
+ if (!(0, utils_1.isDef)(res)) {
+ return;
+ }
+ _this.sidebar = {
+ height: res.height,
+ top: res.top,
+ };
+ });
+ },
+ setDiffData: function (_a) {
+ var target = _a.target, data = _a.data;
+ var diffData = {};
+ Object.keys(data).forEach(function (key) {
+ if (target.data[key] !== data[key]) {
+ diffData[key] = data[key];
+ }
+ });
+ if (Object.keys(diffData).length) {
+ target.setData(diffData);
+ }
+ },
+ getAnchorRect: function (anchor) {
+ return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) { return ({
+ height: rect.height,
+ top: rect.top,
+ }); });
+ },
+ getActiveAnchorIndex: function () {
+ var _a = this, children = _a.children, scrollTop = _a.scrollTop;
+ var _b = this.data, sticky = _b.sticky, stickyOffsetTop = _b.stickyOffsetTop;
+ for (var i = this.children.length - 1; i >= 0; i--) {
+ var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
+ var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
+ if (reachTop + scrollTop >= children[i].top) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ onScroll: function () {
+ var _this = this;
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, scrollTop = _a.scrollTop;
+ if (!children.length) {
+ return;
+ }
+ var _c = this.data, sticky = _c.sticky, stickyOffsetTop = _c.stickyOffsetTop, zIndex = _c.zIndex, highlightColor = _c.highlightColor;
+ var active = this.getActiveAnchorIndex();
+ this.setDiffData({
+ target: this,
+ data: {
+ activeAnchorIndex: active,
+ },
+ });
+ if (sticky) {
+ var isActiveAnchorSticky_1 = false;
+ if (active !== -1) {
+ isActiveAnchorSticky_1 =
+ children[active].top <= stickyOffsetTop + scrollTop;
+ }
+ children.forEach(function (item, index) {
+ if (index === active) {
+ var wrapperStyle = '';
+ var anchorStyle = "\n color: ".concat(highlightColor, ";\n ");
+ if (isActiveAnchorSticky_1) {
+ wrapperStyle = "\n height: ".concat(children[index].height, "px;\n ");
+ anchorStyle = "\n position: fixed;\n top: ".concat(stickyOffsetTop, "px;\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
+ }
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ wrapperStyle: wrapperStyle,
+ },
+ });
+ }
+ else if (index === active - 1) {
+ var currentAnchor = children[index];
+ var currentOffsetTop = currentAnchor.top;
+ var targetOffsetTop = index === children.length - 1
+ ? _this.top
+ : children[index + 1].top;
+ var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
+ var translateY = parentOffsetHeight - currentAnchor.height;
+ var anchorStyle = "\n position: relative;\n transform: translate3d(0, ".concat(translateY, "px, 0);\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ },
+ });
+ }
+ else {
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: false,
+ anchorStyle: '',
+ wrapperStyle: '',
+ },
+ });
+ }
+ });
+ }
+ },
+ onClick: function (event) {
+ this.scrollToAnchor(event.target.dataset.index);
+ },
+ onTouchMove: function (event) {
+ var sidebarLength = this.children.length;
+ var touch = event.touches[0];
+ var itemHeight = this.sidebar.height / sidebarLength;
+ var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
+ if (index < 0) {
+ index = 0;
+ }
+ else if (index > sidebarLength - 1) {
+ index = sidebarLength - 1;
+ }
+ this.scrollToAnchor(index);
+ },
+ onTouchStop: function () {
+ this.scrollToAnchorIndex = null;
+ },
+ scrollToAnchor: function (index) {
+ var _this = this;
+ if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
+ return;
+ }
+ this.scrollToAnchorIndex = index;
+ var anchor = this.children.find(function (item) { return item.data.index === _this.data.indexList[index]; });
+ if (anchor) {
+ anchor.scrollIntoView(this.scrollTop);
+ this.$emit('select', anchor.data.index);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/index-bar/index.json b/miniprogram_npm/@vant/weapp/index-bar/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-bar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/index-bar/index.wxml b/miniprogram_npm/@vant/weapp/index-bar/index.wxml
new file mode 100644
index 0000000..19a59cf
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-bar/index.wxml
@@ -0,0 +1,22 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/index-bar/index.wxss b/miniprogram_npm/@vant/weapp/index-bar/index.wxss
new file mode 100644
index 0000000..8568801
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/index-bar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/info/index.d.ts b/miniprogram_npm/@vant/weapp/info/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/info/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/info/index.js b/miniprogram_npm/@vant/weapp/info/index.js
new file mode 100644
index 0000000..e61af73
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/info/index.js
@@ -0,0 +1,10 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ dot: Boolean,
+ info: null,
+ customStyle: String,
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/info/index.json b/miniprogram_npm/@vant/weapp/info/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/info/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/info/index.wxml b/miniprogram_npm/@vant/weapp/info/index.wxml
new file mode 100644
index 0000000..b39b524
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/info/index.wxml
@@ -0,0 +1,7 @@
+
+
+{{ dot ? '' : info }}
diff --git a/miniprogram_npm/@vant/weapp/info/index.wxss b/miniprogram_npm/@vant/weapp/info/index.wxss
new file mode 100644
index 0000000..375ed5a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/info/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-info{align-items:center;background-color:var(--info-background-color,#ee0a24);border:var(--info-border-width,1px) solid #fff;border-radius:var(--info-size,16px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,12px);font-weight:var(--info-font-weight,500);height:var(--info-size,16px);justify-content:center;min-width:var(--info-size,16px);padding:var(--info-padding,0 3px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.van-info--dot{background-color:var(--info-dot-color,#ee0a24);border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/loading/index.d.ts b/miniprogram_npm/@vant/weapp/loading/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/loading/index.js b/miniprogram_npm/@vant/weapp/loading/index.js
new file mode 100644
index 0000000..be9c0ef
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.js
@@ -0,0 +1,18 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ color: String,
+ vertical: Boolean,
+ type: {
+ type: String,
+ value: 'circular',
+ },
+ size: String,
+ textSize: String,
+ },
+ data: {
+ array12: Array.from({ length: 12 }),
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/loading/index.json b/miniprogram_npm/@vant/weapp/loading/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/loading/index.wxml b/miniprogram_npm/@vant/weapp/loading/index.wxml
new file mode 100644
index 0000000..7d4a539
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.wxml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/loading/index.wxs b/miniprogram_npm/@vant/weapp/loading/index.wxs
new file mode 100644
index 0000000..02a0b80
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.wxs
@@ -0,0 +1,22 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function spinnerStyle(data) {
+ return style({
+ color: data.color,
+ width: addUnit(data.size),
+ height: addUnit(data.size),
+ });
+}
+
+function textStyle(data) {
+ return style({
+ 'font-size': addUnit(data.textSize),
+ });
+}
+
+module.exports = {
+ spinnerStyle: spinnerStyle,
+ textStyle: textStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/loading/index.wxss b/miniprogram_npm/@vant/weapp/loading/index.wxss
new file mode 100644
index 0000000..fc84e84
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/loading/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.van-loading__spinner{animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.van-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.van-loading__text:empty{display:none}.van-loading--vertical{flex-direction:column}.van-loading--vertical .van-loading__text{margin:var(--padding-xs,8px) 0 0}.van-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.van-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.van-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.van-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.van-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.van-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.van-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.van-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.van-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.van-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.van-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.van-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.van-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.van-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes van-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/mixins/basic.d.ts b/miniprogram_npm/@vant/weapp/mixins/basic.d.ts
new file mode 100644
index 0000000..b273369
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/basic.d.ts
@@ -0,0 +1 @@
+export declare const basic: string;
diff --git a/miniprogram_npm/@vant/weapp/mixins/basic.js b/miniprogram_npm/@vant/weapp/mixins/basic.js
new file mode 100644
index 0000000..4373ad4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/basic.js
@@ -0,0 +1,14 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.basic = void 0;
+exports.basic = Behavior({
+ methods: {
+ $emit: function (name, detail, options) {
+ this.triggerEvent(name, detail, options);
+ },
+ set: function (data) {
+ this.setData(data);
+ return new Promise(function (resolve) { return wx.nextTick(resolve); });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/mixins/button.d.ts b/miniprogram_npm/@vant/weapp/mixins/button.d.ts
new file mode 100644
index 0000000..b51db87
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/button.d.ts
@@ -0,0 +1 @@
+export declare const button: string;
diff --git a/miniprogram_npm/@vant/weapp/mixins/button.js b/miniprogram_npm/@vant/weapp/mixins/button.js
new file mode 100644
index 0000000..8c1c499
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/button.js
@@ -0,0 +1,54 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.button = void 0;
+var version_1 = require("../common/version");
+exports.button = Behavior({
+ externalClasses: ['hover-class'],
+ properties: {
+ id: String,
+ buttonId: String,
+ lang: String,
+ businessId: Number,
+ sessionFrom: String,
+ sendMessageTitle: String,
+ sendMessagePath: String,
+ sendMessageImg: String,
+ showMessageCard: Boolean,
+ appParameter: String,
+ ariaLabel: String,
+ openType: String,
+ getUserProfileDesc: String,
+ },
+ data: {
+ canIUseGetUserProfile: (0, version_1.canIUseGetUserProfile)(),
+ },
+ methods: {
+ onGetUserInfo: function (event) {
+ this.triggerEvent('getuserinfo', event.detail);
+ },
+ onContact: function (event) {
+ this.triggerEvent('contact', event.detail);
+ },
+ onGetPhoneNumber: function (event) {
+ this.triggerEvent('getphonenumber', event.detail);
+ },
+ onGetRealTimePhoneNumber: function (event) {
+ this.triggerEvent('getrealtimephonenumber', event.detail);
+ },
+ onError: function (event) {
+ this.triggerEvent('error', event.detail);
+ },
+ onLaunchApp: function (event) {
+ this.triggerEvent('launchapp', event.detail);
+ },
+ onOpenSetting: function (event) {
+ this.triggerEvent('opensetting', event.detail);
+ },
+ onAgreePrivacyAuthorization: function (event) {
+ this.triggerEvent('agreeprivacyauthorization', event.detail);
+ },
+ onChooseAvatar: function (event) {
+ this.triggerEvent('chooseavatar', event.detail);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/mixins/link.d.ts b/miniprogram_npm/@vant/weapp/mixins/link.d.ts
new file mode 100644
index 0000000..d58043b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/link.d.ts
@@ -0,0 +1 @@
+export declare const link: string;
diff --git a/miniprogram_npm/@vant/weapp/mixins/link.js b/miniprogram_npm/@vant/weapp/mixins/link.js
new file mode 100644
index 0000000..14cb7e8
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/link.js
@@ -0,0 +1,27 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.link = void 0;
+exports.link = Behavior({
+ properties: {
+ url: String,
+ linkType: {
+ type: String,
+ value: 'navigateTo',
+ },
+ },
+ methods: {
+ jumpLink: function (urlKey) {
+ if (urlKey === void 0) { urlKey = 'url'; }
+ var url = this.data[urlKey];
+ if (url) {
+ if (this.data.linkType === 'navigateTo' &&
+ getCurrentPages().length > 9) {
+ wx.redirectTo({ url: url });
+ }
+ else {
+ wx[this.data.linkType]({ url: url });
+ }
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/mixins/page-scroll.d.ts b/miniprogram_npm/@vant/weapp/mixins/page-scroll.d.ts
new file mode 100644
index 0000000..4625447
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/page-scroll.d.ts
@@ -0,0 +1,6 @@
+///
+///
+type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption;
+type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void;
+export declare function pageScrollMixin(scroller: Scroller): string;
+export {};
diff --git a/miniprogram_npm/@vant/weapp/mixins/page-scroll.js b/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
new file mode 100644
index 0000000..fce7049
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/page-scroll.js
@@ -0,0 +1,47 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.pageScrollMixin = void 0;
+var validator_1 = require("../common/validator");
+var utils_1 = require("../common/utils");
+function onPageScroll(event) {
+ var _a = (0, utils_1.getCurrentPage)().vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
+ vanPageScroller.forEach(function (scroller) {
+ if (typeof scroller === 'function') {
+ // @ts-ignore
+ scroller(event);
+ }
+ });
+}
+function pageScrollMixin(scroller) {
+ return Behavior({
+ attached: function () {
+ var page = (0, utils_1.getCurrentPage)();
+ if (!(0, utils_1.isDef)(page)) {
+ return;
+ }
+ var _scroller = scroller.bind(this);
+ var _a = page.vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
+ if ((0, validator_1.isFunction)(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
+ vanPageScroller.push(page.onPageScroll.bind(page));
+ }
+ vanPageScroller.push(_scroller);
+ page.vanPageScroller = vanPageScroller;
+ page.onPageScroll = onPageScroll;
+ this._scroller = _scroller;
+ },
+ detached: function () {
+ var _this = this;
+ var page = (0, utils_1.getCurrentPage)();
+ if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.vanPageScroller)) {
+ return;
+ }
+ var vanPageScroller = page.vanPageScroller;
+ var index = vanPageScroller.findIndex(function (v) { return v === _this._scroller; });
+ if (index > -1) {
+ page.vanPageScroller.splice(index, 1);
+ }
+ this._scroller = undefined;
+ },
+ });
+}
+exports.pageScrollMixin = pageScrollMixin;
diff --git a/miniprogram_npm/@vant/weapp/mixins/touch.d.ts b/miniprogram_npm/@vant/weapp/mixins/touch.d.ts
new file mode 100644
index 0000000..35ee831
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/touch.d.ts
@@ -0,0 +1 @@
+export declare const touch: string;
diff --git a/miniprogram_npm/@vant/weapp/mixins/touch.js b/miniprogram_npm/@vant/weapp/mixins/touch.js
new file mode 100644
index 0000000..d762c2c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/touch.js
@@ -0,0 +1,40 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.touch = void 0;
+// @ts-nocheck
+var MIN_DISTANCE = 10;
+function getDirection(x, y) {
+ if (x > y && x > MIN_DISTANCE) {
+ return 'horizontal';
+ }
+ if (y > x && y > MIN_DISTANCE) {
+ return 'vertical';
+ }
+ return '';
+}
+exports.touch = Behavior({
+ methods: {
+ resetTouchStatus: function () {
+ this.direction = '';
+ this.deltaX = 0;
+ this.deltaY = 0;
+ this.offsetX = 0;
+ this.offsetY = 0;
+ },
+ touchStart: function (event) {
+ this.resetTouchStatus();
+ var touch = event.touches[0];
+ this.startX = touch.clientX;
+ this.startY = touch.clientY;
+ },
+ touchMove: function (event) {
+ var touch = event.touches[0];
+ this.deltaX = touch.clientX - this.startX;
+ this.deltaY = touch.clientY - this.startY;
+ this.offsetX = Math.abs(this.deltaX);
+ this.offsetY = Math.abs(this.deltaY);
+ this.direction =
+ this.direction || getDirection(this.offsetX, this.offsetY);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/mixins/transition.d.ts b/miniprogram_npm/@vant/weapp/mixins/transition.d.ts
new file mode 100644
index 0000000..dd829e5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/transition.d.ts
@@ -0,0 +1 @@
+export declare function transition(showDefaultValue: boolean): string;
diff --git a/miniprogram_npm/@vant/weapp/mixins/transition.js b/miniprogram_npm/@vant/weapp/mixins/transition.js
new file mode 100644
index 0000000..1731704
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/mixins/transition.js
@@ -0,0 +1,136 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.transition = void 0;
+// @ts-nocheck
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var getClassNames = function (name) { return ({
+ enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
+ 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
+ leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
+ 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class"),
+}); };
+function transition(showDefaultValue) {
+ return Behavior({
+ properties: {
+ customStyle: String,
+ // @ts-ignore
+ show: {
+ type: Boolean,
+ value: showDefaultValue,
+ observer: 'observeShow',
+ },
+ // @ts-ignore
+ duration: {
+ type: null,
+ value: 300,
+ observer: 'observeDuration',
+ },
+ name: {
+ type: String,
+ value: 'fade',
+ },
+ },
+ data: {
+ type: '',
+ inited: false,
+ display: false,
+ },
+ ready: function () {
+ if (this.data.show === true) {
+ this.observeShow(true, false);
+ }
+ },
+ methods: {
+ observeShow: function (value, old) {
+ if (value === old) {
+ return;
+ }
+ value ? this.enter() : this.leave();
+ },
+ enter: function () {
+ var _this = this;
+ if (this.enterFinishedPromise)
+ return;
+ this.enterFinishedPromise = new Promise(function (resolve) {
+ var _a = _this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = (0, validator_1.isObj)(duration) ? duration.enter : duration;
+ if (_this.status === 'enter') {
+ return;
+ }
+ _this.status = 'enter';
+ _this.$emit('before-enter');
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.$emit('enter');
+ _this.setData({
+ inited: true,
+ display: true,
+ classes: classNames.enter,
+ currentDuration: currentDuration,
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.transitionEnded = false;
+ _this.setData({ classes: classNames['enter-to'] });
+ resolve();
+ });
+ });
+ });
+ },
+ leave: function () {
+ var _this = this;
+ if (!this.enterFinishedPromise)
+ return;
+ this.enterFinishedPromise.then(function () {
+ if (!_this.data.display) {
+ return;
+ }
+ var _a = _this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = (0, validator_1.isObj)(duration) ? duration.leave : duration;
+ _this.status = 'leave';
+ _this.$emit('before-leave');
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.$emit('leave');
+ _this.setData({
+ classes: classNames.leave,
+ currentDuration: currentDuration,
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.transitionEnded = false;
+ setTimeout(function () {
+ _this.onTransitionEnd();
+ _this.enterFinishedPromise = null;
+ }, currentDuration);
+ _this.setData({ classes: classNames['leave-to'] });
+ });
+ });
+ });
+ },
+ onTransitionEnd: function () {
+ if (this.transitionEnded) {
+ return;
+ }
+ this.transitionEnded = true;
+ this.$emit("after-".concat(this.status));
+ var _a = this.data, show = _a.show, display = _a.display;
+ if (!show && display) {
+ this.setData({ display: false });
+ }
+ },
+ },
+ });
+}
+exports.transition = transition;
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.d.ts b/miniprogram_npm/@vant/weapp/nav-bar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.js b/miniprogram_npm/@vant/weapp/nav-bar/index.js
new file mode 100644
index 0000000..376b561
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.js
@@ -0,0 +1,68 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ classes: ['title-class'],
+ props: {
+ title: String,
+ fixed: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ leftText: String,
+ rightText: String,
+ customStyle: String,
+ leftArrow: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ height: 46,
+ },
+ created: function () {
+ var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
+ this.setData({
+ statusBarHeight: statusBarHeight,
+ height: 46 + statusBarHeight,
+ });
+ },
+ mounted: function () {
+ this.setHeight();
+ },
+ methods: {
+ onClickLeft: function () {
+ this.$emit('click-left');
+ },
+ onClickRight: function () {
+ this.$emit('click-right');
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ (0, utils_1.getRect)(_this, '.van-nav-bar').then(function (res) {
+ if (res && 'height' in res) {
+ _this.setData({ height: res.height });
+ }
+ });
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.json b/miniprogram_npm/@vant/weapp/nav-bar/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.wxml b/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
new file mode 100644
index 0000000..b6405fd
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.wxml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+ {{ leftText }}
+
+
+
+
+ {{ title }}
+
+
+
+ {{ rightText }}
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.wxs b/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
new file mode 100644
index 0000000..55b4158
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.wxs
@@ -0,0 +1,13 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function barStyle(data) {
+ return style({
+ 'z-index': data.zIndex,
+ 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
+ });
+}
+
+module.exports = {
+ barStyle: barStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/nav-bar/index.wxss b/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
new file mode 100644
index 0000000..d11c31e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/nav-bar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,#fff);box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,#1989fa);display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,#1989fa)!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,#323233);font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.d.ts b/miniprogram_npm/@vant/weapp/notice-bar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.js b/miniprogram_npm/@vant/weapp/notice-bar/index.js
new file mode 100644
index 0000000..db2a755
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.js
@@ -0,0 +1,125 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ text: {
+ type: String,
+ value: '',
+ observer: 'init',
+ },
+ mode: {
+ type: String,
+ value: '',
+ },
+ url: {
+ type: String,
+ value: '',
+ },
+ openType: {
+ type: String,
+ value: 'navigate',
+ },
+ delay: {
+ type: Number,
+ value: 1,
+ },
+ speed: {
+ type: Number,
+ value: 60,
+ observer: 'init',
+ },
+ scrollable: null,
+ leftIcon: {
+ type: String,
+ value: '',
+ },
+ color: String,
+ backgroundColor: String,
+ background: String,
+ wrapable: Boolean,
+ },
+ data: {
+ show: true,
+ },
+ created: function () {
+ this.resetAnimation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'linear',
+ });
+ },
+ destroyed: function () {
+ this.timer && clearTimeout(this.timer);
+ },
+ mounted: function () {
+ this.init();
+ },
+ methods: {
+ init: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ Promise.all([
+ (0, utils_1.getRect)(_this, '.van-notice-bar__content'),
+ (0, utils_1.getRect)(_this, '.van-notice-bar__wrap'),
+ ]).then(function (rects) {
+ var contentRect = rects[0], wrapRect = rects[1];
+ var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
+ if (contentRect == null ||
+ wrapRect == null ||
+ !contentRect.width ||
+ !wrapRect.width ||
+ scrollable === false) {
+ return;
+ }
+ if (scrollable || wrapRect.width < contentRect.width) {
+ var duration = ((wrapRect.width + contentRect.width) / speed) * 1000;
+ _this.wrapWidth = wrapRect.width;
+ _this.contentWidth = contentRect.width;
+ _this.duration = duration;
+ _this.animation = wx.createAnimation({
+ duration: duration,
+ timingFunction: 'linear',
+ delay: delay,
+ });
+ _this.scroll(true);
+ }
+ });
+ });
+ },
+ scroll: function (isInit) {
+ var _this = this;
+ if (isInit === void 0) { isInit = false; }
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({
+ animationData: this.resetAnimation
+ .translateX(isInit ? 0 : this.wrapWidth)
+ .step()
+ .export(),
+ });
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.setData({
+ animationData: _this.animation
+ .translateX(-_this.contentWidth)
+ .step()
+ .export(),
+ });
+ });
+ this.timer = setTimeout(function () {
+ _this.scroll();
+ }, this.duration + this.data.delay);
+ },
+ onClickIcon: function (event) {
+ if (this.data.mode === 'closeable') {
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({ show: false });
+ this.$emit('close', event.detail);
+ }
+ },
+ onClick: function (event) {
+ this.$emit('click', event);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.json b/miniprogram_npm/@vant/weapp/notice-bar/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.wxml b/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
new file mode 100644
index 0000000..21b0973
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.wxml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.wxs b/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
new file mode 100644
index 0000000..11e6456
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.wxs
@@ -0,0 +1,15 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ color: data.color,
+ 'background-color': data.backgroundColor,
+ background: data.background,
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/notice-bar/index.wxss b/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
new file mode 100644
index 0000000..497636c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notice-bar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,#ed6a0c);display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.van-notice-bar--withicon{padding-right:40px;position:relative}.van-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;right:15px;top:10px}.van-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/notify/index.d.ts b/miniprogram_npm/@vant/weapp/notify/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/notify/index.js b/miniprogram_npm/@vant/weapp/notify/index.js
new file mode 100644
index 0000000..a9526aa
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.js
@@ -0,0 +1,68 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ message: String,
+ background: String,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ color: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ duration: {
+ type: Number,
+ value: 3000,
+ },
+ zIndex: {
+ type: Number,
+ value: 110,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ top: null,
+ },
+ data: {
+ show: false,
+ onOpened: null,
+ onClose: null,
+ onClick: null,
+ },
+ created: function () {
+ var statusBarHeight = (0, utils_1.getSystemInfoSync)().statusBarHeight;
+ this.setData({ statusBarHeight: statusBarHeight });
+ },
+ methods: {
+ show: function () {
+ var _this = this;
+ var _a = this.data, duration = _a.duration, onOpened = _a.onOpened;
+ clearTimeout(this.timer);
+ this.setData({ show: true });
+ wx.nextTick(onOpened);
+ if (duration > 0 && duration !== Infinity) {
+ this.timer = setTimeout(function () {
+ _this.hide();
+ }, duration);
+ }
+ },
+ hide: function () {
+ var onClose = this.data.onClose;
+ clearTimeout(this.timer);
+ this.setData({ show: false });
+ wx.nextTick(onClose);
+ },
+ onTap: function (event) {
+ var onClick = this.data.onClick;
+ if (onClick) {
+ onClick(event.detail);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/notify/index.json b/miniprogram_npm/@vant/weapp/notify/index.json
new file mode 100644
index 0000000..c14a65f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/notify/index.wxml b/miniprogram_npm/@vant/weapp/notify/index.wxml
new file mode 100644
index 0000000..42d913e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.wxml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+ {{ message }}
+
+
diff --git a/miniprogram_npm/@vant/weapp/notify/index.wxs b/miniprogram_npm/@vant/weapp/notify/index.wxs
new file mode 100644
index 0000000..bbb94c2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.wxs
@@ -0,0 +1,22 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'z-index': data.zIndex,
+ top: addUnit(data.top),
+ });
+}
+
+function notifyStyle(data) {
+ return style({
+ background: data.background,
+ color: data.color,
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ notifyStyle: notifyStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/notify/index.wxss b/miniprogram_npm/@vant/weapp/notify/index.wxss
new file mode 100644
index 0000000..c030e9b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-notify{word-wrap:break-word;font-size:var(--notify-font-size,14px);line-height:var(--notify-line-height,20px);padding:var(--notify-padding,6px 15px);text-align:center}.van-notify__container{box-sizing:border-box;left:0;position:fixed;top:0;width:100%}.van-notify--primary{background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:var(--notify-warning-background-color,#ff976a)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/notify/notify.d.ts b/miniprogram_npm/@vant/weapp/notify/notify.d.ts
new file mode 100644
index 0000000..d5213cb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/notify.d.ts
@@ -0,0 +1,22 @@
+interface NotifyOptions {
+ type?: 'primary' | 'success' | 'danger' | 'warning';
+ color?: string;
+ zIndex?: number;
+ top?: number;
+ message: string;
+ context?: any;
+ duration?: number;
+ selector?: string;
+ background?: string;
+ safeAreaInsetTop?: boolean;
+ onClick?: () => void;
+ onOpened?: () => void;
+ onClose?: () => void;
+}
+declare function Notify(options: NotifyOptions | string): any;
+declare namespace Notify {
+ var clear: (options?: NotifyOptions | undefined) => void;
+ var setDefaultOptions: (options: NotifyOptions) => void;
+ var resetDefaultOptions: () => void;
+}
+export default Notify;
diff --git a/miniprogram_npm/@vant/weapp/notify/notify.js b/miniprogram_npm/@vant/weapp/notify/notify.js
new file mode 100644
index 0000000..d470431
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/notify/notify.js
@@ -0,0 +1,67 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var defaultOptions = {
+ selector: '#van-notify',
+ type: 'danger',
+ message: '',
+ background: '',
+ duration: 3000,
+ zIndex: 110,
+ top: 0,
+ color: color_1.WHITE,
+ safeAreaInsetTop: false,
+ onClick: function () { },
+ onOpened: function () { },
+ onClose: function () { },
+};
+var currentOptions = __assign({}, defaultOptions);
+function parseOptions(message) {
+ if (message == null) {
+ return {};
+ }
+ return typeof message === 'string' ? { message: message } : message;
+}
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+function Notify(options) {
+ options = __assign(__assign({}, currentOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (notify) {
+ notify.setData(options);
+ notify.show();
+ return notify;
+ }
+ console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
+}
+exports.default = Notify;
+Notify.clear = function (options) {
+ options = __assign(__assign({}, defaultOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ if (notify) {
+ notify.hide();
+ }
+};
+Notify.setDefaultOptions = function (options) {
+ Object.assign(currentOptions, options);
+};
+Notify.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+};
diff --git a/miniprogram_npm/@vant/weapp/overlay/index.d.ts b/miniprogram_npm/@vant/weapp/overlay/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/overlay/index.js b/miniprogram_npm/@vant/weapp/overlay/index.js
new file mode 100644
index 0000000..9b58b5f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/index.js
@@ -0,0 +1,32 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ show: Boolean,
+ customStyle: String,
+ duration: {
+ type: null,
+ value: 300,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
+ // for prevent touchmove
+ noop: function () { },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/overlay/index.json b/miniprogram_npm/@vant/weapp/overlay/index.json
new file mode 100644
index 0000000..c14a65f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/overlay/index.wxml b/miniprogram_npm/@vant/weapp/overlay/index.wxml
new file mode 100644
index 0000000..17fc56f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/index.wxml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/overlay/index.wxss b/miniprogram_npm/@vant/weapp/overlay/index.wxss
new file mode 100644
index 0000000..d1ad81a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/overlay/overlay.wxml b/miniprogram_npm/@vant/weapp/overlay/overlay.wxml
new file mode 100644
index 0000000..017e801
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/overlay/overlay.wxml
@@ -0,0 +1,10 @@
+
+
+
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/panel/index.d.ts b/miniprogram_npm/@vant/weapp/panel/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/panel/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/panel/index.js b/miniprogram_npm/@vant/weapp/panel/index.js
new file mode 100644
index 0000000..818b8c5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/panel/index.js
@@ -0,0 +1,11 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['header-class', 'footer-class'],
+ props: {
+ desc: String,
+ title: String,
+ status: String,
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/panel/index.json b/miniprogram_npm/@vant/weapp/panel/index.json
new file mode 100644
index 0000000..0e5425c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/panel/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-cell": "../cell/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/panel/index.wxml b/miniprogram_npm/@vant/weapp/panel/index.wxml
new file mode 100644
index 0000000..1843703
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/panel/index.wxml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/panel/index.wxss b/miniprogram_npm/@vant/weapp/panel/index.wxss
new file mode 100644
index 0000000..485edcd
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/panel/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-panel{background:var(--panel-background-color,#fff)}.van-panel__header-value{color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:var(--panel-footer-padding,8px 16px)}.van-panel__footer:empty{display:none}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.d.ts b/miniprogram_npm/@vant/weapp/picker-column/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.js b/miniprogram_npm/@vant/weapp/picker-column/index.js
new file mode 100644
index 0000000..9dbf17c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.js
@@ -0,0 +1,122 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var DEFAULT_DURATION = 200;
+(0, component_1.VantComponent)({
+ classes: ['active-class'],
+ props: {
+ valueKey: String,
+ className: String,
+ itemHeight: Number,
+ visibleItemCount: Number,
+ initialOptions: {
+ type: Array,
+ value: [],
+ },
+ defaultIndex: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setIndex(value);
+ },
+ },
+ },
+ data: {
+ startY: 0,
+ offset: 0,
+ duration: 0,
+ startOffset: 0,
+ options: [],
+ currentIndex: 0,
+ },
+ created: function () {
+ var _this = this;
+ var _a = this.data, defaultIndex = _a.defaultIndex, initialOptions = _a.initialOptions;
+ this.set({
+ currentIndex: defaultIndex,
+ options: initialOptions,
+ }).then(function () {
+ _this.setIndex(defaultIndex);
+ });
+ },
+ methods: {
+ getCount: function () {
+ return this.data.options.length;
+ },
+ onTouchStart: function (event) {
+ this.setData({
+ startY: event.touches[0].clientY,
+ startOffset: this.data.offset,
+ duration: 0,
+ });
+ },
+ onTouchMove: function (event) {
+ var data = this.data;
+ var deltaY = event.touches[0].clientY - data.startY;
+ this.setData({
+ offset: (0, utils_1.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
+ });
+ },
+ onTouchEnd: function () {
+ var data = this.data;
+ if (data.offset !== data.startOffset) {
+ this.setData({ duration: DEFAULT_DURATION });
+ var index = (0, utils_1.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
+ this.setIndex(index, true);
+ }
+ },
+ onClickItem: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.setIndex(index, true);
+ },
+ adjustIndex: function (index) {
+ var data = this.data;
+ var count = this.getCount();
+ index = (0, utils_1.range)(index, 0, count);
+ for (var i = index; i < count; i++) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ for (var i = index - 1; i >= 0; i--) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ },
+ isDisabled: function (option) {
+ return (0, validator_1.isObj)(option) && option.disabled;
+ },
+ getOptionText: function (option) {
+ var data = this.data;
+ return (0, validator_1.isObj)(option) && data.valueKey in option
+ ? option[data.valueKey]
+ : option;
+ },
+ setIndex: function (index, userAction) {
+ var _this = this;
+ var data = this.data;
+ index = this.adjustIndex(index) || 0;
+ var offset = -index * data.itemHeight;
+ if (index !== data.currentIndex) {
+ return this.set({ offset: offset, currentIndex: index }).then(function () {
+ userAction && _this.$emit('change', index);
+ });
+ }
+ return this.set({ offset: offset });
+ },
+ setValue: function (value) {
+ var options = this.data.options;
+ for (var i = 0; i < options.length; i++) {
+ if (this.getOptionText(options[i]) === value) {
+ return this.setIndex(i);
+ }
+ }
+ return Promise.resolve();
+ },
+ getValue: function () {
+ var data = this.data;
+ return data.options[data.currentIndex];
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.json b/miniprogram_npm/@vant/weapp/picker-column/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.wxml b/miniprogram_npm/@vant/weapp/picker-column/index.wxml
new file mode 100644
index 0000000..f2c8da2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ {{ computed.optionText(option, valueKey) }}
+
+
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.wxs b/miniprogram_npm/@vant/weapp/picker-column/index.wxs
new file mode 100644
index 0000000..2d5a611
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.wxs
@@ -0,0 +1,36 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function isObj(x) {
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
+}
+
+function optionText(option, valueKey) {
+ return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
+}
+
+function rootStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight * data.visibleItemCount),
+ });
+}
+
+function wrapperStyle(data) {
+ var offset = addUnit(
+ data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
+ );
+
+ return style({
+ transition: 'transform ' + data.duration + 'ms',
+ 'line-height': addUnit(data.itemHeight),
+ transform: 'translate3d(0, ' + offset + ', 0)',
+ });
+}
+
+module.exports = {
+ optionText: optionText,
+ rootStyle: rootStyle,
+ wrapperStyle: wrapperStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/picker-column/index.wxss b/miniprogram_npm/@vant/weapp/picker-column/index.wxss
new file mode 100644
index 0000000..519a438
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker-column/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-picker-column{color:var(--picker-option-text-color,#000);font-size:var(--picker-option-font-size,16px);overflow:hidden;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{color:var(--picker-option-selected-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-picker-column__item--disabled{opacity:var(--picker-option-disabled-opacity,.3)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/picker/index.d.ts b/miniprogram_npm/@vant/weapp/picker/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/picker/index.js b/miniprogram_npm/@vant/weapp/picker/index.js
new file mode 100644
index 0000000..06d1826
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.js
@@ -0,0 +1,161 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("./shared");
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { valueKey: {
+ type: String,
+ value: 'text',
+ }, toolbarPosition: {
+ type: String,
+ value: 'top',
+ }, defaultIndex: {
+ type: Number,
+ value: 0,
+ }, columns: {
+ type: Array,
+ value: [],
+ observer: function (columns) {
+ if (columns === void 0) { columns = []; }
+ this.simple = columns.length && !columns[0].values;
+ if (Array.isArray(this.children) && this.children.length) {
+ this.setColumns().catch(function () { });
+ }
+ },
+ } }),
+ beforeCreate: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.selectAllComponents('.van-picker__column') || []; },
+ });
+ },
+ methods: {
+ noop: function () { },
+ setColumns: function () {
+ var _this = this;
+ var data = this.data;
+ var columns = this.simple ? [{ values: data.columns }] : data.columns;
+ var stack = columns.map(function (column, index) {
+ return _this.setColumnValues(index, column.values);
+ });
+ return Promise.all(stack);
+ },
+ emit: function (event) {
+ var type = event.currentTarget.dataset.type;
+ if (this.simple) {
+ this.$emit(type, {
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit(type, {
+ value: this.getValues(),
+ index: this.getIndexes(),
+ });
+ }
+ },
+ onChange: function (event) {
+ if (this.simple) {
+ this.$emit('change', {
+ picker: this,
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit('change', {
+ picker: this,
+ value: this.getValues(),
+ index: event.currentTarget.dataset.index,
+ });
+ }
+ },
+ // get column instance by index
+ getColumn: function (index) {
+ return this.children[index];
+ },
+ // get column value by index
+ getColumnValue: function (index) {
+ var column = this.getColumn(index);
+ return column && column.getValue();
+ },
+ // set column value by index
+ setColumnValue: function (index, value) {
+ var column = this.getColumn(index);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValue: 对应列不存在'));
+ }
+ return column.setValue(value);
+ },
+ // get column option index by column index
+ getColumnIndex: function (columnIndex) {
+ return (this.getColumn(columnIndex) || {}).data.currentIndex;
+ },
+ // set column option index by column index
+ setColumnIndex: function (columnIndex, optionIndex) {
+ var column = this.getColumn(columnIndex);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
+ }
+ return column.setIndex(optionIndex);
+ },
+ // get options of column by index
+ getColumnValues: function (index) {
+ return (this.children[index] || {}).data.options;
+ },
+ // set options of column by index
+ setColumnValues: function (index, options, needReset) {
+ if (needReset === void 0) { needReset = true; }
+ var column = this.children[index];
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValues: 对应列不存在'));
+ }
+ var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
+ if (isSame) {
+ return Promise.resolve();
+ }
+ return column.set({ options: options }).then(function () {
+ if (needReset) {
+ column.setIndex(0);
+ }
+ });
+ },
+ // get values of all columns
+ getValues: function () {
+ return this.children.map(function (child) { return child.getValue(); });
+ },
+ // set values of all columns
+ setValues: function (values) {
+ var _this = this;
+ var stack = values.map(function (value, index) {
+ return _this.setColumnValue(index, value);
+ });
+ return Promise.all(stack);
+ },
+ // get indexes of all columns
+ getIndexes: function () {
+ return this.children.map(function (child) { return child.data.currentIndex; });
+ },
+ // set indexes of all columns
+ setIndexes: function (indexes) {
+ var _this = this;
+ var stack = indexes.map(function (optionIndex, columnIndex) {
+ return _this.setColumnIndex(columnIndex, optionIndex);
+ });
+ return Promise.all(stack);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/picker/index.json b/miniprogram_npm/@vant/weapp/picker/index.json
new file mode 100644
index 0000000..2fcec89
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "picker-column": "../picker-column/index",
+ "loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/picker/index.wxml b/miniprogram_npm/@vant/weapp/picker/index.wxml
new file mode 100644
index 0000000..8564ccc
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.wxml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/picker/index.wxs b/miniprogram_npm/@vant/weapp/picker/index.wxs
new file mode 100644
index 0000000..0abbd10
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.wxs
@@ -0,0 +1,42 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+var array = require('../wxs/array.wxs');
+
+function columnsStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight * data.visibleItemCount),
+ });
+}
+
+function maskStyle(data) {
+ return style({
+ 'background-size':
+ '100% ' + addUnit((data.itemHeight * (data.visibleItemCount - 1)) / 2),
+ });
+}
+
+function frameStyle(data) {
+ return style({
+ height: addUnit(data.itemHeight),
+ });
+}
+
+function columns(columns) {
+ if (!array.isArray(columns)) {
+ return [];
+ }
+
+ if (columns.length && !columns[0].values) {
+ return [{ values: columns }];
+ }
+
+ return columns;
+}
+
+module.exports = {
+ columnsStyle: columnsStyle,
+ frameStyle: frameStyle,
+ maskStyle: maskStyle,
+ columns: columns,
+};
diff --git a/miniprogram_npm/@vant/weapp/picker/index.wxss b/miniprogram_npm/@vant/weapp/picker/index.wxss
new file mode 100644
index 0000000..d924abb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;background-color:var(--picker-background-color,#fff);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;height:var(--picker-toolbar-height,44px);justify-content:space-between;line-height:var(--picker-toolbar-height,44px)}.van-picker__cancel,.van-picker__confirm{font-size:var(--picker-action-font-size,14px);padding:var(--picker-action-padding,0 16px)}.van-picker__cancel--hover,.van-picker__confirm--hover{opacity:.7}.van-picker__confirm{color:var(--picker-confirm-action-color,#576b95)}.van-picker__cancel{color:var(--picker-cancel-action-color,#969799)}.van-picker__title{font-size:var(--picker-option-font-size,16px);font-weight:var(--font-weight-bold,500);max-width:50%;text-align:center}.van-picker__columns{display:flex;position:relative}.van-picker__column{flex:1 1;width:0}.van-picker__loading{align-items:center;background-color:var(--picker-loading-mask-color,hsla(0,0%,100%,.9));bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:4}.van-picker__mask{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-image:linear-gradient(180deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4)),linear-gradient(0deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.4));background-position:top,bottom;background-repeat:no-repeat;height:100%;left:0;top:0;width:100%;z-index:2}.van-picker__frame,.van-picker__mask{pointer-events:none;position:absolute}.van-picker__frame{left:16px;right:16px;top:50%;transform:translateY(-50%);z-index:1}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/picker/shared.d.ts b/miniprogram_npm/@vant/weapp/picker/shared.d.ts
new file mode 100644
index 0000000..c548045
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/shared.d.ts
@@ -0,0 +1,21 @@
+export declare const pickerProps: {
+ title: StringConstructor;
+ loading: BooleanConstructor;
+ showToolbar: BooleanConstructor;
+ cancelButtonText: {
+ type: StringConstructor;
+ value: string;
+ };
+ confirmButtonText: {
+ type: StringConstructor;
+ value: string;
+ };
+ visibleItemCount: {
+ type: NumberConstructor;
+ value: number;
+ };
+ itemHeight: {
+ type: NumberConstructor;
+ value: number;
+ };
+};
diff --git a/miniprogram_npm/@vant/weapp/picker/shared.js b/miniprogram_npm/@vant/weapp/picker/shared.js
new file mode 100644
index 0000000..3d40a8c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/shared.js
@@ -0,0 +1,24 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.pickerProps = void 0;
+exports.pickerProps = {
+ title: String,
+ loading: Boolean,
+ showToolbar: Boolean,
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ visibleItemCount: {
+ type: Number,
+ value: 6,
+ },
+ itemHeight: {
+ type: Number,
+ value: 44,
+ },
+};
diff --git a/miniprogram_npm/@vant/weapp/picker/toolbar.wxml b/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
new file mode 100644
index 0000000..414f612
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/picker/toolbar.wxml
@@ -0,0 +1,23 @@
+
+
+ {{ cancelButtonText }}
+
+ {{
+ title
+ }}
+
+ {{ confirmButtonText }}
+
+
diff --git a/miniprogram_npm/@vant/weapp/popup/index.d.ts b/miniprogram_npm/@vant/weapp/popup/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/popup/index.js b/miniprogram_npm/@vant/weapp/popup/index.js
new file mode 100644
index 0000000..18b08e6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.js
@@ -0,0 +1,99 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
+(0, component_1.VantComponent)({
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ 'close-icon-class',
+ ],
+ mixins: [(0, transition_1.transition)(false)],
+ props: {
+ round: Boolean,
+ closeable: Boolean,
+ customStyle: String,
+ overlayStyle: String,
+ transition: {
+ type: String,
+ observer: 'observeClass',
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeIcon: {
+ type: String,
+ value: 'cross',
+ },
+ closeIconPosition: {
+ type: String,
+ value: 'top-right',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ position: {
+ type: String,
+ value: 'center',
+ observer: 'observeClass',
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ safeAreaTabBar: {
+ type: Boolean,
+ value: false,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ created: function () {
+ this.observeClass();
+ },
+ methods: {
+ onClickCloseIcon: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ if (this.data.closeOnClickOverlay) {
+ this.$emit('close');
+ }
+ },
+ observeClass: function () {
+ var _a = this.data, transition = _a.transition, position = _a.position, duration = _a.duration;
+ var updateData = {
+ name: transition || position,
+ };
+ if (transition === 'none') {
+ updateData.duration = 0;
+ this.originDuration = duration;
+ }
+ else if (this.originDuration != null) {
+ updateData.duration = this.originDuration;
+ }
+ this.setData(updateData);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/popup/index.json b/miniprogram_npm/@vant/weapp/popup/index.json
new file mode 100644
index 0000000..88a6eab
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-overlay": "../overlay/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/popup/index.wxml b/miniprogram_npm/@vant/weapp/popup/index.wxml
new file mode 100644
index 0000000..ab824b1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.wxml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/popup/index.wxs b/miniprogram_npm/@vant/weapp/popup/index.wxs
new file mode 100644
index 0000000..8d59f24
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.wxs
@@ -0,0 +1,18 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function popupStyle(data) {
+ return style([
+ {
+ 'z-index': data.zIndex,
+ '-webkit-transition-duration': data.currentDuration + 'ms',
+ 'transition-duration': data.currentDuration + 'ms',
+ },
+ data.display ? null : 'display: none',
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ popupStyle: popupStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/popup/index.wxss b/miniprogram_npm/@vant/weapp/popup/index.wxss
new file mode 100644
index 0000000..91983b4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-popup{-webkit-overflow-scrolling:touch;animation:ease both;background-color:var(--popup-background-color,#fff);box-sizing:border-box;max-height:100%;overflow-y:auto;position:fixed;transition-timing-function:ease}.van-popup--center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:var(--popup-round-border-radius,16px)}.van-popup--top{left:0;top:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--right{right:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px))}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0 0}.van-popup--left{left:0;top:50%;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) var(--popup-round-border-radius,var(--popup-round-border-radius,16px)) 0}.van-popup--bottom.van-popup--safe{padding-bottom:env(safe-area-inset-bottom)}.van-popup--bottom.van-popup--safeTabBar,.van-popup--top.van-popup--safeTabBar{bottom:var(--tabbar-height,50px)}.van-popup--safeTop{padding-top:env(safe-area-inset-top)}.van-popup__close-icon{color:var(--popup-close-icon-color,#969799);font-size:var(--popup-close-icon-size,18px);position:absolute;z-index:var(--popup-close-icon-z-index,1)}.van-popup__close-icon--top-left{left:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--top-right{right:var(--popup-close-icon-margin,16px);top:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-left{bottom:var(--popup-close-icon-margin,16px);left:var(--popup-close-icon-margin,16px)}.van-popup__close-icon--bottom-right{bottom:var(--popup-close-icon-margin,16px);right:var(--popup-close-icon-margin,16px)}.van-popup__close-icon:active{opacity:.6}.van-scale-enter-active,.van-scale-leave-active{transition-property:opacity,transform}.van-scale-enter,.van-scale-leave-to{opacity:0;transform:translate3d(-50%,-50%,0) scale(.7)}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-center-enter-active,.van-center-leave-active{transition-property:opacity}.van-center-enter,.van-center-leave-to{opacity:0}.van-bottom-enter-active,.van-bottom-leave-active,.van-left-enter-active,.van-left-leave-active,.van-right-enter-active,.van-right-leave-active,.van-top-enter-active,.van-top-leave-active{transition-property:transform}.van-bottom-enter,.van-bottom-leave-to{transform:translate3d(0,100%,0)}.van-top-enter,.van-top-leave-to{transform:translate3d(0,-100%,0)}.van-left-enter,.van-left-leave-to{transform:translate3d(-100%,-50%,0)}.van-right-enter,.van-right-leave-to{transform:translate3d(100%,-50%,0)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/popup/popup.wxml b/miniprogram_npm/@vant/weapp/popup/popup.wxml
new file mode 100644
index 0000000..bd8f508
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/popup/popup.wxml
@@ -0,0 +1,16 @@
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/progress/index.d.ts b/miniprogram_npm/@vant/weapp/progress/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/progress/index.js b/miniprogram_npm/@vant/weapp/progress/index.js
new file mode 100644
index 0000000..3bca928
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.js
@@ -0,0 +1,55 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ props: {
+ inactive: Boolean,
+ percentage: {
+ type: Number,
+ observer: 'setLeft',
+ },
+ pivotText: String,
+ pivotColor: String,
+ trackColor: String,
+ showPivot: {
+ type: Boolean,
+ value: true,
+ },
+ color: {
+ type: String,
+ value: color_1.BLUE,
+ },
+ textColor: {
+ type: String,
+ value: '#fff',
+ },
+ strokeWidth: {
+ type: null,
+ value: 4,
+ },
+ },
+ data: {
+ right: 0,
+ },
+ mounted: function () {
+ this.setLeft();
+ },
+ methods: {
+ setLeft: function () {
+ var _this = this;
+ Promise.all([
+ (0, utils_1.getRect)(this, '.van-progress'),
+ (0, utils_1.getRect)(this, '.van-progress__pivot'),
+ ]).then(function (_a) {
+ var portion = _a[0], pivot = _a[1];
+ if (portion && pivot) {
+ _this.setData({
+ right: (pivot.width * (_this.data.percentage - 100)) / 100,
+ });
+ }
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/progress/index.json b/miniprogram_npm/@vant/weapp/progress/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/progress/index.wxml b/miniprogram_npm/@vant/weapp/progress/index.wxml
new file mode 100644
index 0000000..e81514d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.wxml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+ {{ computed.pivotText(pivotText, percentage) }}
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/progress/index.wxs b/miniprogram_npm/@vant/weapp/progress/index.wxs
new file mode 100644
index 0000000..5b1e8e6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.wxs
@@ -0,0 +1,36 @@
+/* eslint-disable */
+var utils = require('../wxs/utils.wxs');
+var style = require('../wxs/style.wxs');
+
+function pivotText(pivotText, percentage) {
+ return pivotText || percentage + '%';
+}
+
+function rootStyle(data) {
+ return style({
+ 'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
+ 'background': data.trackColor,
+ });
+}
+
+function portionStyle(data) {
+ return style({
+ background: data.inactive ? '#cacaca' : data.color,
+ width: data.percentage ? data.percentage + '%' : '',
+ });
+}
+
+function pivotStyle(data) {
+ return style({
+ color: data.textColor,
+ right: data.right + 'px',
+ background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
+ });
+}
+
+module.exports = {
+ pivotText: pivotText,
+ rootStyle: rootStyle,
+ portionStyle: portionStyle,
+ pivotStyle: pivotStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/progress/index.wxss b/miniprogram_npm/@vant/weapp/progress/index.wxss
new file mode 100644
index 0000000..a08972a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/progress/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-progress{background:var(--progress-background-color,#ebedf0);border-radius:var(--progress-height,4px);height:var(--progress-height,4px);position:relative}.van-progress__portion{background:var(--progress-color,#1989fa);border-radius:inherit;height:100%;left:0;position:absolute}.van-progress__pivot{background-color:var(--progress-pivot-background-color,#1989fa);border-radius:1em;box-sizing:border-box;color:var(--progress-pivot-text-color,#fff);font-size:var(--progress-pivot-font-size,10px);line-height:var(--progress-pivot-line-height,1.6);min-width:3.6em;padding:var(--progress-pivot-padding,0 5px);position:absolute;text-align:center;top:50%;transform:translateY(-50%);word-break:keep-all}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/radio-group/index.d.ts b/miniprogram_npm/@vant/weapp/radio-group/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio-group/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/radio-group/index.js b/miniprogram_npm/@vant/weapp/radio-group/index.js
new file mode 100644
index 0000000..ddb2a60
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio-group/index.js
@@ -0,0 +1,24 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useChildren)('radio'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ direction: String,
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ },
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) { return child.updateFromParent(); });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/radio-group/index.json b/miniprogram_npm/@vant/weapp/radio-group/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio-group/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/radio-group/index.wxml b/miniprogram_npm/@vant/weapp/radio-group/index.wxml
new file mode 100644
index 0000000..0ab17af
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio-group/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/radio-group/index.wxss b/miniprogram_npm/@vant/weapp/radio-group/index.wxss
new file mode 100644
index 0000000..4e3b5d4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio-group/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-radio-group--horizontal{display:flex;flex-wrap:wrap}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/radio/index.d.ts b/miniprogram_npm/@vant/weapp/radio/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/radio/index.js b/miniprogram_npm/@vant/weapp/radio/index.js
new file mode 100644
index 0000000..61a86d5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.js
@@ -0,0 +1,68 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var version_1 = require("../common/version");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ field: true,
+ relation: (0, relation_1.useParent)('radio-group', function () {
+ this.updateFromParent();
+ }),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ name: null,
+ value: null,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
+ },
+ data: {
+ direction: '',
+ parentDisabled: false,
+ },
+ methods: {
+ updateFromParent: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, parentDisabled = _a.disabled, direction = _a.direction;
+ this.setData({
+ value: value,
+ direction: direction,
+ parentDisabled: parentDisabled,
+ });
+ },
+ emitChange: function (value) {
+ var instance = this.parent || this;
+ instance.$emit('input', value);
+ instance.$emit('change', value);
+ if ((0, version_1.canIUseModel)()) {
+ instance.setData({ value: value });
+ }
+ },
+ onChange: function () {
+ if (!this.data.disabled && !this.data.parentDisabled) {
+ this.emitChange(this.data.name);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, disabled = _a.disabled, parentDisabled = _a.parentDisabled, labelDisabled = _a.labelDisabled, name = _a.name;
+ if (!(disabled || parentDisabled) && !labelDisabled) {
+ this.emitChange(name);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/radio/index.json b/miniprogram_npm/@vant/weapp/radio/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/radio/index.wxml b/miniprogram_npm/@vant/weapp/radio/index.wxml
new file mode 100644
index 0000000..5f898c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.wxml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/radio/index.wxs b/miniprogram_npm/@vant/weapp/radio/index.wxs
new file mode 100644
index 0000000..a428aad
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.wxs
@@ -0,0 +1,33 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function iconStyle(data) {
+ var styles = {
+ 'font-size': addUnit(data.iconSize),
+ };
+
+ if (
+ data.checkedColor &&
+ !(data.disabled || data.parentDisabled) &&
+ data.value === data.name
+ ) {
+ styles['border-color'] = data.checkedColor;
+ styles['background-color'] = data.checkedColor;
+ }
+
+ return style(styles);
+}
+
+function iconCustomStyle(data) {
+ return style({
+ 'line-height': addUnit(data.iconSize),
+ 'font-size': '.8em',
+ display: 'block',
+ });
+}
+
+module.exports = {
+ iconStyle: iconStyle,
+ iconCustomStyle: iconCustomStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/radio/index.wxss b/miniprogram_npm/@vant/weapp/radio/index.wxss
new file mode 100644
index 0000000..257b0c7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/radio/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-radio{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{flex:none}.van-radio--horizontal{margin-right:var(--padding-sm,12px)}.van-radio__icon{align-items:center;border:1px solid var(--radio-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--radio-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--radio-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{background-color:var(--radio-checked-icon-color,#1989fa);border-color:var(--radio-checked-icon-color,#1989fa);color:#fff}.van-radio__icon--disabled{background-color:var(--radio-disabled-background-color,#ebedf0);border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;color:var(--radio-label-color,#323233);line-height:var(--radio-size,20px);padding-left:var(--radio-label-margin,10px)}.van-radio__label--left{float:left;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/rate/index.d.ts b/miniprogram_npm/@vant/weapp/rate/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/rate/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/rate/index.js b/miniprogram_npm/@vant/weapp/rate/index.js
new file mode 100644
index 0000000..30a96de
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/rate/index.js
@@ -0,0 +1,93 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['icon-class'],
+ props: {
+ value: {
+ type: Number,
+ observer: function (value) {
+ if (value !== this.data.innerValue) {
+ this.setData({ innerValue: value });
+ }
+ },
+ },
+ readonly: Boolean,
+ disabled: Boolean,
+ allowHalf: Boolean,
+ size: null,
+ icon: {
+ type: String,
+ value: 'star',
+ },
+ voidIcon: {
+ type: String,
+ value: 'star-o',
+ },
+ color: String,
+ voidColor: String,
+ disabledColor: String,
+ count: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({ innerCountArray: Array.from({ length: value }) });
+ },
+ },
+ gutter: null,
+ touchable: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ innerValue: 0,
+ innerCountArray: Array.from({ length: 5 }),
+ },
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var data = this.data;
+ var score = event.currentTarget.dataset.score;
+ if (!data.disabled && !data.readonly) {
+ this.setData({ innerValue: score + 1 });
+ if ((0, version_1.canIUseModel)()) {
+ this.setData({ value: score + 1 });
+ }
+ wx.nextTick(function () {
+ _this.$emit('input', score + 1);
+ _this.$emit('change', score + 1);
+ });
+ }
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ var touchable = this.data.touchable;
+ if (!touchable)
+ return;
+ var clientX = event.touches[0].clientX;
+ (0, utils_1.getAllRect)(this, '.van-rate__icon').then(function (list) {
+ var target = list
+ .sort(function (cur, next) { return cur.dataset.score - next.dataset.score; })
+ .find(function (item) { return clientX >= item.left && clientX <= item.right; });
+ if (target != null) {
+ _this.onSelect(__assign(__assign({}, event), { currentTarget: target }));
+ }
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/rate/index.json b/miniprogram_npm/@vant/weapp/rate/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/rate/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/rate/index.wxml b/miniprogram_npm/@vant/weapp/rate/index.wxml
new file mode 100644
index 0000000..049714c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/rate/index.wxml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/rate/index.wxss b/miniprogram_npm/@vant/weapp/rate/index.wxss
new file mode 100644
index 0000000..470e4f4
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/rate/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-rate{display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{padding:0 var(--rate-horizontal-padding,2px);position:relative}.van-rate__item:not(:last-child){padding-right:var(--rate-icon-gutter,4px)}.van-rate__icon{color:var(--rate-icon-void-color,#c8c9cc);display:block;font-size:var(--rate-icon-size,20px);height:100%}.van-rate__icon--half{left:var(--rate-horizontal-padding,2px);overflow:hidden;position:absolute;top:0;width:.5em}.van-rate__icon--full,.van-rate__icon--half{color:var(--rate-icon-full-color,#ee0a24)}.van-rate__icon--disabled{color:var(--rate-icon-disabled-color,#c8c9cc)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/row/index.d.ts b/miniprogram_npm/@vant/weapp/row/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/row/index.js b/miniprogram_npm/@vant/weapp/row/index.js
new file mode 100644
index 0000000..c27acd6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.js
@@ -0,0 +1,26 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('col', function (target) {
+ var gutter = this.data.gutter;
+ if (gutter) {
+ target.setData({ gutter: gutter });
+ }
+ }),
+ props: {
+ gutter: {
+ type: Number,
+ observer: 'setGutter',
+ },
+ },
+ methods: {
+ setGutter: function () {
+ var _this = this;
+ this.children.forEach(function (col) {
+ col.setData(_this.data);
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/row/index.json b/miniprogram_npm/@vant/weapp/row/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/row/index.wxml b/miniprogram_npm/@vant/weapp/row/index.wxml
new file mode 100644
index 0000000..69a4359
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/row/index.wxs b/miniprogram_npm/@vant/weapp/row/index.wxs
new file mode 100644
index 0000000..f5c5958
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.wxs
@@ -0,0 +1,18 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ if (!data.gutter) {
+ return '';
+ }
+
+ return style({
+ 'margin-right': addUnit(-data.gutter / 2),
+ 'margin-left': addUnit(-data.gutter / 2),
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/row/index.wxss b/miniprogram_npm/@vant/weapp/row/index.wxss
new file mode 100644
index 0000000..bb8946b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/row/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-row:after{clear:both;content:"";display:table}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/search/index.d.ts b/miniprogram_npm/@vant/weapp/search/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/search/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/search/index.js b/miniprogram_npm/@vant/weapp/search/index.js
new file mode 100644
index 0000000..b5348b0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/search/index.js
@@ -0,0 +1,100 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['field-class', 'input-class', 'cancel-class'],
+ props: {
+ value: {
+ type: String,
+ value: '',
+ },
+ label: String,
+ focus: Boolean,
+ error: Boolean,
+ disabled: Boolean,
+ readonly: Boolean,
+ inputAlign: String,
+ showAction: Boolean,
+ useActionSlot: Boolean,
+ useLeftIconSlot: Boolean,
+ useRightIconSlot: Boolean,
+ leftIcon: {
+ type: String,
+ value: 'search',
+ },
+ rightIcon: String,
+ placeholder: String,
+ placeholderStyle: String,
+ actionText: {
+ type: String,
+ value: '取消',
+ },
+ background: {
+ type: String,
+ value: '#ffffff',
+ },
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ shape: {
+ type: String,
+ value: 'square',
+ },
+ clearable: {
+ type: Boolean,
+ value: true,
+ },
+ clearTrigger: {
+ type: String,
+ value: 'focus',
+ },
+ clearIcon: {
+ type: String,
+ value: 'clear',
+ },
+ cursorSpacing: {
+ type: Number,
+ value: 0,
+ },
+ },
+ methods: {
+ onChange: function (event) {
+ if ((0, version_1.canIUseModel)()) {
+ this.setData({ value: event.detail });
+ }
+ this.$emit('change', event.detail);
+ },
+ onCancel: function () {
+ var _this = this;
+ /**
+ * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
+ * https://github.com/youzan/vant-weapp/issues/1768
+ */
+ setTimeout(function () {
+ if ((0, version_1.canIUseModel)()) {
+ _this.setData({ value: '' });
+ }
+ _this.$emit('cancel');
+ _this.$emit('change', '');
+ }, 200);
+ },
+ onSearch: function (event) {
+ this.$emit('search', event.detail);
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.$emit('blur', event.detail);
+ },
+ onClear: function (event) {
+ this.$emit('clear', event.detail);
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/search/index.json b/miniprogram_npm/@vant/weapp/search/index.json
new file mode 100644
index 0000000..b4cfe91
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/search/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-field": "../field/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/search/index.wxml b/miniprogram_npm/@vant/weapp/search/index.wxml
new file mode 100644
index 0000000..cbcb47a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/search/index.wxml
@@ -0,0 +1,54 @@
+
+
+
+
+ {{ label }}
+
+
+
+
+
+
+
+
+
+
+ {{ actionText }}
+
+
diff --git a/miniprogram_npm/@vant/weapp/search/index.wxss b/miniprogram_npm/@vant/weapp/search/index.wxss
new file mode 100644
index 0000000..4f306b0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/search/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-search{align-items:center;box-sizing:border-box;display:flex;padding:var(--search-padding,10px 12px)}.van-search__content{background-color:var(--search-background-color,#f7f8fa);border-radius:2px;display:flex;flex:1;padding-left:var(--padding-sm,12px)}.van-search__content--round{border-radius:999px}.van-search__label{color:var(--search-label-color,#323233);font-size:var(--search-label-font-size,14px);line-height:var(--search-input-height,34px);padding:var(--search-label-padding,0 5px)}.van-search__field{flex:1}.van-search__field__left-icon{color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{color:var(--search-action-text-color,#323233);font-size:var(--search-action-font-size,14px);line-height:var(--search-input-height,34px)}.van-search__action--hover{background-color:#f2f3f5}.van-search__action-button{padding:var(--search-action-padding,0 8px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.d.ts b/miniprogram_npm/@vant/weapp/share-sheet/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.js b/miniprogram_npm/@vant/weapp/share-sheet/index.js
new file mode 100644
index 0000000..11604a7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.js
@@ -0,0 +1,61 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ // whether to show popup
+ show: Boolean,
+ // overlay custom style
+ overlayStyle: String,
+ // z-index
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ title: String,
+ cancelText: {
+ type: String,
+ value: '取消',
+ },
+ description: String,
+ options: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: null,
+ value: 300,
+ },
+ rootPortal: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ methods: {
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ },
+ onCancel: function () {
+ this.onClose();
+ this.$emit('cancel');
+ },
+ onSelect: function (event) {
+ this.$emit('select', event.detail);
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.json b/miniprogram_npm/@vant/weapp/share-sheet/index.json
new file mode 100644
index 0000000..15a7c22
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-popup": "../popup/index",
+ "options": "./options"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.wxml b/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
new file mode 100644
index 0000000..72a5b25
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.wxml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.wxs b/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
new file mode 100644
index 0000000..2149ee9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.wxs
@@ -0,0 +1,12 @@
+/* eslint-disable */
+function isMulti(options) {
+ if (options == null || options[0] == null) {
+ return false;
+ }
+
+ return "Array" === options.constructor && "Array" === options[0].constructor;
+}
+
+module.exports = {
+ isMulti: isMulti
+};
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/index.wxss b/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
new file mode 100644
index 0000000..e8d8dae
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{color:#323233;font-size:14px;font-weight:400;line-height:20px;margin-top:8px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{color:#969799;display:block;font-size:12px;line-height:16px;margin-top:8px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{background:#fff;border:none;box-sizing:initial;display:block;font-size:16px;height:auto;line-height:48px;padding:0;text-align:center;width:100%}.van-share-sheet__cancel:before{background-color:#f7f8fa;content:" ";display:block;height:8px}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.d.ts b/miniprogram_npm/@vant/weapp/share-sheet/options.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.js b/miniprogram_npm/@vant/weapp/share-sheet/options.js
new file mode 100644
index 0000000..0432d4f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.js
@@ -0,0 +1,27 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ options: Array,
+ showBorder: Boolean,
+ },
+ methods: {
+ onSelect: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var option = this.data.options[index];
+ this.$emit('select', __assign(__assign({}, option), { index: index }));
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.json b/miniprogram_npm/@vant/weapp/share-sheet/options.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.wxml b/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
new file mode 100644
index 0000000..2983ebb
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.wxml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.wxs b/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
new file mode 100644
index 0000000..a116d32
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.wxs
@@ -0,0 +1,14 @@
+/* eslint-disable */
+var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];
+
+function getIconURL(icon) {
+ if (PRESET_ICONS.indexOf(icon) !== -1) {
+ return 'https://img.yzcdn.cn/vant/share-sheet-' + icon + '.png';
+ }
+
+ return icon;
+}
+
+module.exports = {
+ getIconURL: getIconURL,
+};
diff --git a/miniprogram_npm/@vant/weapp/share-sheet/options.wxss b/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
new file mode 100644
index 0000000..b7f5455
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/share-sheet/options.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-share-sheet__options{-webkit-overflow-scrolling:touch;display:flex;overflow-x:auto;overflow-y:visible;padding:16px 0 16px 8px;position:relative}.van-share-sheet__options--border:before{border-top:1px solid #ebedf0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:0;top:0;transform:scaleY(.5);transform-origin:center}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{align-items:center;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{background-color:initial;border:0;height:auto;line-height:inherit;padding:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{height:48px;margin:0 16px;width:48px}.van-share-sheet__name{color:#646566;font-size:12px;margin-top:8px;padding:0 4px}.van-share-sheet__option-description{color:#c8c9cc;font-size:12px;padding:0 4px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/sidebar-item/index.d.ts b/miniprogram_npm/@vant/weapp/sidebar-item/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar-item/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/sidebar-item/index.js b/miniprogram_npm/@vant/weapp/sidebar-item/index.js
new file mode 100644
index 0000000..eac568f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar-item/index.js
@@ -0,0 +1,32 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ classes: ['active-class', 'disabled-class'],
+ relation: (0, relation_1.useParent)('sidebar'),
+ props: {
+ dot: Boolean,
+ badge: null,
+ info: null,
+ title: String,
+ disabled: Boolean,
+ },
+ methods: {
+ onClick: function () {
+ var _this = this;
+ var parent = this.parent;
+ if (!parent || this.data.disabled) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ parent.setActive(index).then(function () {
+ _this.$emit('click', index);
+ parent.$emit('change', index);
+ });
+ },
+ setActive: function (selected) {
+ return this.setData({ selected: selected });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/sidebar-item/index.json b/miniprogram_npm/@vant/weapp/sidebar-item/index.json
new file mode 100644
index 0000000..bf0ebe0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar-item/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml b/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
new file mode 100644
index 0000000..c5c08a6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml
@@ -0,0 +1,18 @@
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss b/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
new file mode 100644
index 0000000..f1ce421
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-sidebar-item{background-color:var(--sidebar-background-color,#f7f8fa);border-left:3px solid transparent;box-sizing:border-box;color:var(--sidebar-text-color,#323233);display:block;font-size:var(--sidebar-font-size,14px);line-height:var(--sidebar-line-height,20px);overflow:hidden;padding:var(--sidebar-padding,20px 12px 20px 8px);-webkit-user-select:none;user-select:none}.van-sidebar-item__text{display:inline-block;position:relative;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{border-color:var(--sidebar-selected-border-color,#ee0a24);color:var(--sidebar-selected-text-color,#323233);font-weight:var(--sidebar-selected-font-weight,500)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:var(--sidebar-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/sidebar/index.d.ts b/miniprogram_npm/@vant/weapp/sidebar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/sidebar/index.js b/miniprogram_npm/@vant/weapp/sidebar/index.js
new file mode 100644
index 0000000..f3e0a58
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar/index.js
@@ -0,0 +1,36 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('sidebar-item', function () {
+ this.setActive(this.data.activeKey);
+ }),
+ props: {
+ activeKey: {
+ type: Number,
+ value: 0,
+ observer: 'setActive',
+ },
+ },
+ beforeCreate: function () {
+ this.currentActive = -1;
+ },
+ methods: {
+ setActive: function (activeKey) {
+ var _a = this, children = _a.children, currentActive = _a.currentActive;
+ if (!children.length) {
+ return Promise.resolve();
+ }
+ this.currentActive = activeKey;
+ var stack = [];
+ if (currentActive !== activeKey && children[currentActive]) {
+ stack.push(children[currentActive].setActive(false));
+ }
+ if (children[activeKey]) {
+ stack.push(children[activeKey].setActive(true));
+ }
+ return Promise.all(stack);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/sidebar/index.json b/miniprogram_npm/@vant/weapp/sidebar/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/sidebar/index.wxml b/miniprogram_npm/@vant/weapp/sidebar/index.wxml
new file mode 100644
index 0000000..96b11c7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar/index.wxml
@@ -0,0 +1,3 @@
+
diff --git a/miniprogram_npm/@vant/weapp/sidebar/index.wxss b/miniprogram_npm/@vant/weapp/sidebar/index.wxss
new file mode 100644
index 0000000..5a2d44f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sidebar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-sidebar{width:var(--sidebar-width,80px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/skeleton/index.d.ts b/miniprogram_npm/@vant/weapp/skeleton/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/skeleton/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/skeleton/index.js b/miniprogram_npm/@vant/weapp/skeleton/index.js
new file mode 100644
index 0000000..2ab3175
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/skeleton/index.js
@@ -0,0 +1,48 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['avatar-class', 'title-class', 'row-class'],
+ props: {
+ row: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setData({ rowArray: Array.from({ length: value }) });
+ },
+ },
+ title: Boolean,
+ avatar: Boolean,
+ loading: {
+ type: Boolean,
+ value: true,
+ },
+ animate: {
+ type: Boolean,
+ value: true,
+ },
+ avatarSize: {
+ type: String,
+ value: '32px',
+ },
+ avatarShape: {
+ type: String,
+ value: 'round',
+ },
+ titleWidth: {
+ type: String,
+ value: '40%',
+ },
+ rowWidth: {
+ type: null,
+ value: '100%',
+ observer: function (val) {
+ this.setData({ isArray: val instanceof Array });
+ },
+ },
+ },
+ data: {
+ isArray: false,
+ rowArray: [],
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/skeleton/index.json b/miniprogram_npm/@vant/weapp/skeleton/index.json
new file mode 100644
index 0000000..a89ef4d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/skeleton/index.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
diff --git a/miniprogram_npm/@vant/weapp/skeleton/index.wxml b/miniprogram_npm/@vant/weapp/skeleton/index.wxml
new file mode 100644
index 0000000..058e2ef
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/skeleton/index.wxml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/skeleton/index.wxss b/miniprogram_npm/@vant/weapp/skeleton/index.wxss
new file mode 100644
index 0000000..d59a5ed
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/skeleton/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-skeleton{box-sizing:border-box;display:flex;padding:var(--skeleton-padding,0 16px);width:100%}.van-skeleton__avatar{background-color:var(--skeleton-avatar-background-color,#f2f3f5);flex-shrink:0;margin-right:var(--padding-md,16px)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{background-color:var(--skeleton-row-background-color,#f2f3f5);height:var(--skeleton-row-height,16px)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{animation:van-skeleton-blink 1.2s ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/slider/index.d.ts b/miniprogram_npm/@vant/weapp/slider/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/slider/index.js b/miniprogram_npm/@vant/weapp/slider/index.js
new file mode 100644
index 0000000..92adca8
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.js
@@ -0,0 +1,206 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var version_1 = require("../common/version");
+var utils_1 = require("../common/utils");
+var DRAG_STATUS = {
+ START: 'start',
+ MOVING: 'moving',
+ END: 'end',
+};
+(0, component_1.VantComponent)({
+ mixins: [touch_1.touch],
+ props: {
+ range: Boolean,
+ disabled: Boolean,
+ useButtonSlot: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ max: {
+ type: Number,
+ value: 100,
+ },
+ min: {
+ type: Number,
+ value: 0,
+ },
+ step: {
+ type: Number,
+ value: 1,
+ },
+ value: {
+ type: null,
+ value: 0,
+ observer: function (val) {
+ if (val !== this.value) {
+ this.updateValue(val);
+ }
+ },
+ },
+ vertical: Boolean,
+ barHeight: null,
+ },
+ created: function () {
+ this.updateValue(this.data.value);
+ },
+ methods: {
+ onTouchStart: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var index = event.currentTarget.dataset.index;
+ if (typeof index === 'number') {
+ this.buttonIndex = index;
+ }
+ this.touchStart(event);
+ this.startValue = this.format(this.value);
+ this.newValue = this.value;
+ if (this.isRange(this.newValue)) {
+ this.startValue = this.newValue.map(function (val) { return _this.format(val); });
+ }
+ else {
+ this.startValue = this.format(this.newValue);
+ }
+ this.dragStatus = DRAG_STATUS.START;
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === DRAG_STATUS.START) {
+ this.$emit('drag-start');
+ }
+ this.touchMove(event);
+ this.dragStatus = DRAG_STATUS.MOVING;
+ (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
+ var vertical = _this.data.vertical;
+ var delta = vertical ? _this.deltaY : _this.deltaX;
+ var total = vertical ? rect.height : rect.width;
+ var diff = (delta / total) * _this.getRange();
+ if (_this.isRange(_this.startValue)) {
+ _this.newValue[_this.buttonIndex] =
+ _this.startValue[_this.buttonIndex] + diff;
+ }
+ else {
+ _this.newValue = _this.startValue + diff;
+ }
+ _this.updateValue(_this.newValue, false, true);
+ });
+ },
+ onTouchEnd: function () {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === DRAG_STATUS.MOVING) {
+ this.dragStatus = DRAG_STATUS.END;
+ (0, utils_1.nextTick)(function () {
+ _this.updateValue(_this.newValue, true);
+ _this.$emit('drag-end');
+ });
+ }
+ },
+ onClick: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var min = this.data.min;
+ (0, utils_1.getRect)(this, '.van-slider').then(function (rect) {
+ var vertical = _this.data.vertical;
+ var touch = event.touches[0];
+ var delta = vertical
+ ? touch.clientY - rect.top
+ : touch.clientX - rect.left;
+ var total = vertical ? rect.height : rect.width;
+ var value = Number(min) + (delta / total) * _this.getRange();
+ if (_this.isRange(_this.value)) {
+ var _a = _this.value, left = _a[0], right = _a[1];
+ var middle = (left + right) / 2;
+ if (value <= middle) {
+ _this.updateValue([value, right], true);
+ }
+ else {
+ _this.updateValue([left, value], true);
+ }
+ }
+ else {
+ _this.updateValue(value, true);
+ }
+ });
+ },
+ isRange: function (val) {
+ var range = this.data.range;
+ return range && Array.isArray(val);
+ },
+ handleOverlap: function (value) {
+ if (value[0] > value[1]) {
+ return value.slice(0).reverse();
+ }
+ return value;
+ },
+ updateValue: function (value, end, drag) {
+ var _this = this;
+ if (this.isRange(value)) {
+ value = this.handleOverlap(value).map(function (val) { return _this.format(val); });
+ }
+ else {
+ value = this.format(value);
+ }
+ this.value = value;
+ var vertical = this.data.vertical;
+ var mainAxis = vertical ? 'height' : 'width';
+ this.setData({
+ wrapperStyle: "\n background: ".concat(this.data.inactiveColor || '', ";\n ").concat(vertical ? 'width' : 'height', ": ").concat((0, utils_1.addUnit)(this.data.barHeight) || '', ";\n "),
+ barStyle: "\n ".concat(mainAxis, ": ").concat(this.calcMainAxis(), ";\n left: ").concat(vertical ? 0 : this.calcOffset(), ";\n top: ").concat(vertical ? this.calcOffset() : 0, ";\n ").concat(drag ? 'transition: none;' : '', "\n "),
+ });
+ if (drag) {
+ this.$emit('drag', { value: value });
+ }
+ if (end) {
+ this.$emit('change', value);
+ }
+ if ((drag || end) && (0, version_1.canIUseModel)()) {
+ this.setData({ value: value });
+ }
+ },
+ getScope: function () {
+ return Number(this.data.max) - Number(this.data.min);
+ },
+ getRange: function () {
+ var _a = this.data, max = _a.max, min = _a.min;
+ return max - min;
+ },
+ getOffsetWidth: function (current, min) {
+ var scope = this.getScope();
+ // 避免最小值小于最小step时出现负数情况
+ return "".concat(Math.max(((current - min) * 100) / scope, 0), "%");
+ },
+ // 计算选中条的长度百分比
+ calcMainAxis: function () {
+ var value = this.value;
+ var min = this.data.min;
+ if (this.isRange(value)) {
+ return this.getOffsetWidth(value[1], value[0]);
+ }
+ return this.getOffsetWidth(value, Number(min));
+ },
+ // 计算选中条的开始位置的偏移量
+ calcOffset: function () {
+ var value = this.value;
+ var min = this.data.min;
+ var scope = this.getScope();
+ if (this.isRange(value)) {
+ return "".concat(((value[0] - Number(min)) * 100) / scope, "%");
+ }
+ return '0%';
+ },
+ format: function (value) {
+ var min = +this.data.min;
+ var max = +this.data.max;
+ var step = +this.data.step;
+ value = (0, utils_1.clamp)(value, min, max);
+ var diff = Math.round((value - min) / step) * step;
+ return (0, utils_1.addNumber)(min, diff);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/slider/index.json b/miniprogram_npm/@vant/weapp/slider/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/slider/index.wxml b/miniprogram_npm/@vant/weapp/slider/index.wxml
new file mode 100644
index 0000000..7c0184f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.wxml
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/slider/index.wxs b/miniprogram_npm/@vant/weapp/slider/index.wxs
new file mode 100644
index 0000000..7c43e6e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.wxs
@@ -0,0 +1,14 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function barStyle(barHeight, activeColor) {
+ return style({
+ height: addUnit(barHeight),
+ background: activeColor,
+ });
+}
+
+module.exports = {
+ barStyle: barStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/slider/index.wxss b/miniprogram_npm/@vant/weapp/slider/index.wxss
new file mode 100644
index 0000000..d1587de
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/slider/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-slider{background-color:var(--slider-inactive-background-color,#ebedf0);border-radius:999px;height:var(--slider-bar-height,2px);position:relative}.van-slider:before{bottom:calc(var(--padding-xs, 8px)*-1);content:"";left:0;position:absolute;right:0;top:calc(var(--padding-xs, 8px)*-1)}.van-slider__bar{background-color:var(--slider-active-background-color,#1989fa);border-radius:inherit;height:100%;position:relative;transition:all .2s;width:100%}.van-slider__button{background-color:var(--slider-button-background-color,#fff);border-radius:var(--slider-button-border-radius,50%);box-shadow:var(--slider-button-box-shadow,0 1px 2px rgba(0,0,0,.5));height:var(--slider-button-height,24px);width:var(--slider-button-width,24px)}.van-slider__button-wrapper,.van-slider__button-wrapper-right{position:absolute;right:0;top:50%;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper-left{left:0;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{opacity:var(--slider-disabled-opacity,.5)}.van-slider--vertical{display:inline-block;height:100%;width:var(--slider-bar-height,2px)}.van-slider--vertical .van-slider__button-wrapper,.van-slider--vertical .van-slider__button-wrapper-right{bottom:0;right:50%;top:auto;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper-left{left:auto;right:50%;top:0;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{bottom:0;left:-8px;right:-8px;top:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.d.ts b/miniprogram_npm/@vant/weapp/stepper/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.js b/miniprogram_npm/@vant/weapp/stepper/index.js
new file mode 100644
index 0000000..1aa2c27
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.js
@@ -0,0 +1,203 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var LONG_PRESS_START_TIME = 600;
+var LONG_PRESS_INTERVAL = 200;
+// add num and avoid float number
+function add(num1, num2) {
+ var cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
+}
+function equal(value1, value2) {
+ return String(value1) === String(value2);
+}
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['input-class', 'plus-class', 'minus-class'],
+ props: {
+ value: {
+ type: null,
+ },
+ integer: {
+ type: Boolean,
+ observer: 'check',
+ },
+ disabled: Boolean,
+ inputWidth: String,
+ buttonSize: String,
+ asyncChange: Boolean,
+ disableInput: Boolean,
+ decimalLength: {
+ type: Number,
+ value: null,
+ observer: 'check',
+ },
+ min: {
+ type: null,
+ value: 1,
+ observer: 'check',
+ },
+ max: {
+ type: null,
+ value: Number.MAX_SAFE_INTEGER,
+ observer: 'check',
+ },
+ step: {
+ type: null,
+ value: 1,
+ },
+ showPlus: {
+ type: Boolean,
+ value: true,
+ },
+ showMinus: {
+ type: Boolean,
+ value: true,
+ },
+ disablePlus: Boolean,
+ disableMinus: Boolean,
+ longPress: {
+ type: Boolean,
+ value: true,
+ },
+ theme: String,
+ alwaysEmbed: Boolean,
+ },
+ data: {
+ currentValue: '',
+ },
+ watch: {
+ value: function () {
+ this.observeValue();
+ },
+ },
+ created: function () {
+ this.setData({
+ currentValue: this.format(this.data.value),
+ });
+ },
+ methods: {
+ observeValue: function () {
+ var value = this.data.value;
+ this.setData({ currentValue: this.format(value) });
+ },
+ check: function () {
+ var val = this.format(this.data.currentValue);
+ if (!equal(val, this.data.currentValue)) {
+ this.setData({ currentValue: val });
+ }
+ },
+ isDisabled: function (type) {
+ var _a = this.data, disabled = _a.disabled, disablePlus = _a.disablePlus, disableMinus = _a.disableMinus, currentValue = _a.currentValue, max = _a.max, min = _a.min;
+ if (type === 'plus') {
+ return disabled || disablePlus || +currentValue >= +max;
+ }
+ return disabled || disableMinus || +currentValue <= +min;
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ var value = this.format(event.detail.value);
+ this.setData({ currentValue: value });
+ this.emitChange(value);
+ this.$emit('blur', __assign(__assign({}, event.detail), { value: value }));
+ },
+ // filter illegal characters
+ filter: function (value) {
+ value = String(value).replace(/[^0-9.-]/g, '');
+ if (this.data.integer && value.indexOf('.') !== -1) {
+ value = value.split('.')[0];
+ }
+ return value;
+ },
+ // limit value range
+ format: function (value) {
+ value = this.filter(value);
+ // format range
+ value = value === '' ? 0 : +value;
+ value = Math.max(Math.min(this.data.max, value), this.data.min);
+ // format decimal
+ if ((0, validator_1.isDef)(this.data.decimalLength)) {
+ value = value.toFixed(this.data.decimalLength);
+ }
+ return value;
+ },
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ // allow input to be empty
+ if (value === '') {
+ return;
+ }
+ var formatted = this.filter(value);
+ // limit max decimal length
+ if ((0, validator_1.isDef)(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
+ var pair = formatted.split('.');
+ formatted = "".concat(pair[0], ".").concat(pair[1].slice(0, this.data.decimalLength));
+ }
+ this.emitChange(formatted);
+ },
+ emitChange: function (value) {
+ if (!this.data.asyncChange) {
+ this.setData({ currentValue: value });
+ }
+ this.$emit('change', value);
+ },
+ onChange: function () {
+ var type = this.type;
+ if (this.isDisabled(type)) {
+ this.$emit('overlimit', type);
+ return;
+ }
+ var diff = type === 'minus' ? -this.data.step : +this.data.step;
+ var value = this.format(add(+this.data.currentValue, diff));
+ this.emitChange(value);
+ this.$emit(type);
+ },
+ longPressStep: function () {
+ var _this = this;
+ this.longPressTimer = setTimeout(function () {
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_INTERVAL);
+ },
+ onTap: function (event) {
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.onChange();
+ },
+ onTouchStart: function (event) {
+ var _this = this;
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.isLongPress = false;
+ this.longPressTimer = setTimeout(function () {
+ _this.isLongPress = true;
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_START_TIME);
+ },
+ onTouchEnd: function () {
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.json b/miniprogram_npm/@vant/weapp/stepper/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.wxml b/miniprogram_npm/@vant/weapp/stepper/index.wxml
new file mode 100644
index 0000000..6dd44bc
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.wxml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.wxs b/miniprogram_npm/@vant/weapp/stepper/index.wxs
new file mode 100644
index 0000000..a13e818
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.wxs
@@ -0,0 +1,22 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function buttonStyle(data) {
+ return style({
+ width: addUnit(data.buttonSize),
+ height: addUnit(data.buttonSize),
+ });
+}
+
+function inputStyle(data) {
+ return style({
+ width: addUnit(data.inputWidth),
+ height: addUnit(data.buttonSize),
+ });
+}
+
+module.exports = {
+ buttonStyle: buttonStyle,
+ inputStyle: inputStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/stepper/index.wxss b/miniprogram_npm/@vant/weapp/stepper/index.wxss
new file mode 100644
index 0000000..2561a7e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/stepper/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-stepper{font-size:0}.van-stepper__minus,.van-stepper__plus{background-color:var(--stepper-background-color,#f2f3f5);border:0;box-sizing:border-box;color:var(--stepper-button-icon-color,#323233);display:inline-block;height:var(--stepper-input-height,28px);margin:1px;padding:var(--padding-base,4px);position:relative;vertical-align:middle;width:var(--stepper-input-height,28px)}.van-stepper__minus:before,.van-stepper__plus:before{height:1px;width:9px}.van-stepper__minus:after,.van-stepper__plus:after{height:9px;width:1px}.van-stepper__minus:empty.van-stepper__minus:after,.van-stepper__minus:empty.van-stepper__minus:before,.van-stepper__minus:empty.van-stepper__plus:after,.van-stepper__minus:empty.van-stepper__plus:before,.van-stepper__plus:empty.van-stepper__minus:after,.van-stepper__plus:empty.van-stepper__minus:before,.van-stepper__plus:empty.van-stepper__plus:after,.van-stepper__plus:empty.van-stepper__plus:before{background-color:currentColor;bottom:0;content:"";left:0;margin:auto;position:absolute;right:0;top:0}.van-stepper__minus--hover,.van-stepper__plus--hover{background-color:var(--stepper-active-color,#e8e8e8)}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--stepper-button-disabled-icon-color,#c8c9cc)}.van-stepper__minus--disabled,.van-stepper__minus--disabled.van-stepper__minus--hover,.van-stepper__minus--disabled.van-stepper__plus--hover,.van-stepper__plus--disabled,.van-stepper__plus--disabled.van-stepper__minus--hover,.van-stepper__plus--disabled.van-stepper__plus--hover{background-color:var(--stepper-button-disabled-color,#f7f8fa)}.van-stepper__minus{border-radius:var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0 0 var(--stepper-border-radius,var(--stepper-border-radius,4px))}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--stepper-border-radius,var(--stepper-border-radius,4px)) var(--stepper-border-radius,var(--stepper-border-radius,4px)) 0}.van-stepper--round .van-stepper__input{background-color:initial!important}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus:active,.van-stepper--round .van-stepper__plus:active{opacity:.7}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{background-color:#ee0a24;color:#fff}.van-stepper--round .van-stepper__minus{background-color:#fff;border:1px solid #ee0a24;color:#ee0a24}.van-stepper__input{-webkit-appearance:none;background-color:var(--stepper-background-color,#f2f3f5);border:0;border-radius:0;border-width:1px 0;box-sizing:border-box;color:var(--stepper-input-text-color,#323233);display:inline-block;font-size:var(--stepper-input-font-size,14px);height:var(--stepper-input-height,28px);margin:1px;min-height:0;padding:1px;text-align:center;vertical-align:middle;width:var(--stepper-input-width,32px)}.van-stepper__input--disabled{background-color:var(--stepper-input-disabled-background-color,#f2f3f5);color:var(--stepper-input-disabled-text-color,#c8c9cc)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/steps/index.d.ts b/miniprogram_npm/@vant/weapp/steps/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/steps/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/steps/index.js b/miniprogram_npm/@vant/weapp/steps/index.js
new file mode 100644
index 0000000..1a9986a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/steps/index.js
@@ -0,0 +1,35 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+(0, component_1.VantComponent)({
+ classes: ['desc-class'],
+ props: {
+ icon: String,
+ steps: Array,
+ active: Number,
+ direction: {
+ type: String,
+ value: 'horizontal',
+ },
+ activeColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ inactiveColor: {
+ type: String,
+ value: color_1.GRAY_DARK,
+ },
+ activeIcon: {
+ type: String,
+ value: 'checked',
+ },
+ inactiveIcon: String,
+ },
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('click-step', index);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/steps/index.json b/miniprogram_npm/@vant/weapp/steps/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/steps/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/steps/index.wxml b/miniprogram_npm/@vant/weapp/steps/index.wxml
new file mode 100644
index 0000000..00c8e10
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/steps/index.wxml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+ {{ item.text }}
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+function get(index, active) {
+ if (index < active) {
+ return 'finish';
+ } else if (index === active) {
+ return 'process';
+ }
+
+ return 'inactive';
+}
+
+module.exports = get;
+
diff --git a/miniprogram_npm/@vant/weapp/steps/index.wxss b/miniprogram_npm/@vant/weapp/steps/index.wxss
new file mode 100644
index 0000000..c653884
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/steps/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-steps{background-color:var(--steps-background-color,#fff);overflow:hidden}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{display:flex;overflow:hidden;position:relative}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{color:var(--step-text-color,#969799);flex:1;font-size:var(--step-font-size,14px);position:relative}.van-step--finish{color:var(--step-finish-text-color,#323233)}.van-step__circle{background-color:var(--step-circle-color,#969799);border-radius:50%;height:var(--step-circle-size,5px);width:var(--step-circle-size,5px)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;transform:none}.van-step--horizontal:last-child .van-step__circle-container{padding:0 0 0 8px;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{background-color:#fff;bottom:6px;padding:0 var(--padding-xs,8px);position:absolute;transform:translate3d(-50%,50%,0);z-index:1}.van-step--horizontal .van-step__title{display:inline-block;font-size:var(--step-horizontal-title-font-size,12px);transform:translate3d(-50%,0,0)}.van-step--horizontal .van-step__line{background-color:var(--step-line-color,#ebedf0);bottom:6px;height:1px;left:0;position:absolute;right:0;transform:translate3d(0,50%,0)}.van-step--horizontal.van-step--process{color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical{line-height:18px;padding:10px 10px 10px 0}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{background-color:#fff;content:"";height:20px;left:-15px;position:absolute;top:0;width:1px;z-index:1}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{left:-14px;position:absolute;top:19px;transform:translate3d(-50%,-50%,0);z-index:2}.van-step--vertical .van-step__icon{background-color:var(--steps-background-color,#fff);font-size:var(--step-icon-size,12px);line-height:1}.van-step--vertical .van-step__line{background-color:var(--step-line-color,#ebedf0);height:100%;transform:translate3d(-50%,0,0);width:1px;z-index:1}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.d.ts b/miniprogram_npm/@vant/weapp/sticky/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.js b/miniprogram_npm/@vant/weapp/sticky/index.js
new file mode 100644
index 0000000..ffeb125
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.js
@@ -0,0 +1,126 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var page_scroll_1 = require("../mixins/page-scroll");
+var ROOT_ELEMENT = '.van-sticky';
+(0, component_1.VantComponent)({
+ props: {
+ zIndex: {
+ type: Number,
+ value: 99,
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ observer: 'onScroll',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'onScroll',
+ },
+ container: {
+ type: null,
+ observer: 'onScroll',
+ },
+ scrollTop: {
+ type: null,
+ observer: function (val) {
+ this.onScroll({ scrollTop: val });
+ },
+ },
+ },
+ mixins: [
+ (0, page_scroll_1.pageScrollMixin)(function (event) {
+ if (this.data.scrollTop != null) {
+ return;
+ }
+ this.onScroll(event);
+ }),
+ ],
+ data: {
+ height: 0,
+ fixed: false,
+ transform: 0,
+ },
+ mounted: function () {
+ this.onScroll();
+ },
+ methods: {
+ onScroll: function (_a) {
+ var _this = this;
+ var _b = _a === void 0 ? {} : _a, scrollTop = _b.scrollTop;
+ var _c = this.data, container = _c.container, offsetTop = _c.offsetTop, disabled = _c.disabled;
+ if (disabled) {
+ this.setDataAfterDiff({
+ fixed: false,
+ transform: 0,
+ });
+ return;
+ }
+ this.scrollTop = scrollTop || this.scrollTop;
+ if (typeof container === 'function') {
+ Promise.all([(0, utils_1.getRect)(this, ROOT_ELEMENT), this.getContainerRect()])
+ .then(function (_a) {
+ var root = _a[0], container = _a[1];
+ if (offsetTop + root.height > container.height + container.top) {
+ _this.setDataAfterDiff({
+ fixed: false,
+ transform: container.height - root.height,
+ });
+ }
+ else if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({
+ fixed: true,
+ height: root.height,
+ transform: 0,
+ });
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false, transform: 0 });
+ }
+ })
+ .catch(function () { });
+ return;
+ }
+ (0, utils_1.getRect)(this, ROOT_ELEMENT).then(function (root) {
+ if (!(0, validator_1.isDef)(root) || (!root.width && !root.height)) {
+ return;
+ }
+ if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({ fixed: true, height: root.height });
+ _this.transform = 0;
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false });
+ }
+ });
+ },
+ setDataAfterDiff: function (data) {
+ var _this = this;
+ wx.nextTick(function () {
+ var diff = Object.keys(data).reduce(function (prev, key) {
+ if (data[key] !== _this.data[key]) {
+ prev[key] = data[key];
+ }
+ return prev;
+ }, {});
+ if (Object.keys(diff).length > 0) {
+ _this.setData(diff);
+ }
+ _this.$emit('scroll', {
+ scrollTop: _this.scrollTop,
+ isFixed: data.fixed || _this.data.fixed,
+ });
+ });
+ },
+ getContainerRect: function () {
+ var nodesRef = this.data.container();
+ if (!nodesRef) {
+ return Promise.reject(new Error('not found container'));
+ }
+ return new Promise(function (resolve) { return nodesRef.boundingClientRect(resolve).exec(); });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.json b/miniprogram_npm/@vant/weapp/sticky/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.wxml b/miniprogram_npm/@vant/weapp/sticky/index.wxml
new file mode 100644
index 0000000..15e9f4a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.wxml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.wxs b/miniprogram_npm/@vant/weapp/sticky/index.wxs
new file mode 100644
index 0000000..be99d89
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.wxs
@@ -0,0 +1,25 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function wrapStyle(data) {
+ return style({
+ transform: data.transform
+ ? 'translate3d(0, ' + data.transform + 'px, 0)'
+ : '',
+ top: data.fixed ? addUnit(data.offsetTop) : '',
+ 'z-index': data.zIndex,
+ });
+}
+
+function containerStyle(data) {
+ return style({
+ height: data.fixed ? addUnit(data.height) : '',
+ 'z-index': data.zIndex,
+ });
+}
+
+module.exports = {
+ wrapStyle: wrapStyle,
+ containerStyle: containerStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/sticky/index.wxss b/miniprogram_npm/@vant/weapp/sticky/index.wxss
new file mode 100644
index 0000000..34d76aa
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/sticky/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{left:0;position:fixed;right:0}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/submit-bar/index.d.ts b/miniprogram_npm/@vant/weapp/submit-bar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/submit-bar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/submit-bar/index.js b/miniprogram_npm/@vant/weapp/submit-bar/index.js
new file mode 100644
index 0000000..d3bfc25
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/submit-bar/index.js
@@ -0,0 +1,58 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: ['bar-class', 'price-class', 'button-class'],
+ props: {
+ tip: {
+ type: null,
+ observer: 'updateTip',
+ },
+ tipIcon: String,
+ type: Number,
+ price: {
+ type: null,
+ observer: 'updatePrice',
+ },
+ label: String,
+ loading: Boolean,
+ disabled: Boolean,
+ buttonText: String,
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ buttonType: {
+ type: String,
+ value: 'danger',
+ },
+ decimalLength: {
+ type: Number,
+ value: 2,
+ observer: 'updatePrice',
+ },
+ suffixLabel: String,
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ methods: {
+ updatePrice: function () {
+ var _a = this.data, price = _a.price, decimalLength = _a.decimalLength;
+ var priceStrArr = typeof price === 'number' &&
+ (price / 100).toFixed(decimalLength).split('.');
+ this.setData({
+ hasPrice: typeof price === 'number',
+ integerStr: priceStrArr && priceStrArr[0],
+ decimalStr: decimalLength && priceStrArr ? ".".concat(priceStrArr[1]) : '',
+ });
+ },
+ updateTip: function () {
+ this.setData({ hasTip: typeof this.data.tip === 'string' });
+ },
+ onSubmit: function (event) {
+ this.$emit('submit', event.detail);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/submit-bar/index.json b/miniprogram_npm/@vant/weapp/submit-bar/index.json
new file mode 100644
index 0000000..bda9b8d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/submit-bar/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-button": "../button/index",
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/submit-bar/index.wxml b/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
new file mode 100644
index 0000000..a56dd46
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/submit-bar/index.wxml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+ {{ tip }}
+
+
+
+
+
+
+
+ {{ label || '合计:' }}
+
+ {{ currency }}
+ {{ integerStr }}{{decimalStr}}
+
+ {{ suffixLabel }}
+
+
+ {{ loading ? '' : buttonText }}
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/submit-bar/index.wxss b/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
new file mode 100644
index 0000000..8379a30
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/submit-bar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-submit-bar{background-color:var(--submit-bar-background-color,#fff);bottom:0;left:0;position:fixed;-webkit-user-select:none;user-select:none;width:100%;z-index:var(--submit-bar-z-index,100)}.van-submit-bar__tip{background-color:var(--submit-bar-tip-background-color,#fff7cc);color:var(--submit-bar-tip-color,#f56723);font-size:var(--submit-bar-tip-font-size,12px);line-height:var(--submit-bar-tip-line-height,1.5);padding:var(--submit-bar-tip-padding,10px)}.van-submit-bar__tip:empty{display:none}.van-submit-bar__tip-icon{margin-right:4px;vertical-align:middle}.van-submit-bar__tip-text{display:inline;vertical-align:middle}.van-submit-bar__bar{align-items:center;background-color:var(--submit-bar-background-color,#fff);display:flex;font-size:var(--submit-bar-text-font-size,14px);height:var(--submit-bar-height,50px);justify-content:flex-end;padding:var(--submit-bar-padding,0 16px)}.van-submit-bar__safe{height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.van-submit-bar__text{color:var(--submit-bar-text-color,#323233);flex:1;font-weight:var(--font-weight-bold,500);padding-right:var(--padding-sm,12px);text-align:right}.van-submit-bar__price{color:var(--submit-bar-price-color,#ee0a24);font-size:var(--submit-bar-price-font-size,12px);font-weight:var(--font-weight-bold,500)}.van-submit-bar__price-integer{font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;font-size:20px}.van-submit-bar__currency{font-size:var(--submit-bar-currency-font-size,12px)}.van-submit-bar__suffix-label{margin-left:5px}.van-submit-bar__button{--button-default-height:var(--submit-bar-button-height,40px)!important;--button-line-height:var(--submit-bar-button-height,40px)!important;font-weight:var(--font-weight-bold,500);width:var(--submit-bar-button-width,110px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/swipe-cell/index.d.ts b/miniprogram_npm/@vant/weapp/swipe-cell/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/swipe-cell/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/swipe-cell/index.js b/miniprogram_npm/@vant/weapp/swipe-cell/index.js
new file mode 100644
index 0000000..1582b6c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/swipe-cell/index.js
@@ -0,0 +1,135 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
+var THRESHOLD = 0.3;
+var ARRAY = [];
+(0, component_1.VantComponent)({
+ props: {
+ disabled: Boolean,
+ leftWidth: {
+ type: Number,
+ value: 0,
+ observer: function (leftWidth) {
+ if (leftWidth === void 0) { leftWidth = 0; }
+ if (this.offset > 0) {
+ this.swipeMove(leftWidth);
+ }
+ },
+ },
+ rightWidth: {
+ type: Number,
+ value: 0,
+ observer: function (rightWidth) {
+ if (rightWidth === void 0) { rightWidth = 0; }
+ if (this.offset < 0) {
+ this.swipeMove(-rightWidth);
+ }
+ },
+ },
+ asyncClose: Boolean,
+ name: {
+ type: null,
+ value: '',
+ },
+ },
+ mixins: [touch_1.touch],
+ data: {
+ catchMove: false,
+ wrapperStyle: '',
+ },
+ created: function () {
+ this.offset = 0;
+ ARRAY.push(this);
+ },
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
+ },
+ methods: {
+ open: function (position) {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = position === 'left' ? leftWidth : -rightWidth;
+ this.swipeMove(offset);
+ this.$emit('open', {
+ position: position,
+ name: this.data.name,
+ });
+ },
+ close: function () {
+ this.swipeMove(0);
+ },
+ swipeMove: function (offset) {
+ if (offset === void 0) { offset = 0; }
+ this.offset = (0, utils_1.range)(offset, -this.data.rightWidth, this.data.leftWidth);
+ var transform = "translate3d(".concat(this.offset, "px, 0, 0)");
+ var transition = this.dragging
+ ? 'none'
+ : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
+ this.setData({
+ wrapperStyle: "\n -webkit-transform: ".concat(transform, ";\n -webkit-transition: ").concat(transition, ";\n transform: ").concat(transform, ";\n transition: ").concat(transition, ";\n "),
+ });
+ },
+ swipeLeaveTransition: function () {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = this.offset;
+ if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
+ this.open('right');
+ }
+ else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
+ this.open('left');
+ }
+ else {
+ this.swipeMove(0);
+ }
+ this.setData({ catchMove: false });
+ },
+ startDrag: function (event) {
+ if (this.data.disabled) {
+ return;
+ }
+ this.startOffset = this.offset;
+ this.touchStart(event);
+ },
+ noop: function () { },
+ onDrag: function (event) {
+ var _this = this;
+ if (this.data.disabled) {
+ return;
+ }
+ this.touchMove(event);
+ if (this.direction !== 'horizontal') {
+ return;
+ }
+ this.dragging = true;
+ ARRAY.filter(function (item) { return item !== _this && item.offset !== 0; }).forEach(function (item) { return item.close(); });
+ this.setData({ catchMove: true });
+ this.swipeMove(this.startOffset + this.deltaX);
+ },
+ endDrag: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ this.dragging = false;
+ this.swipeLeaveTransition();
+ },
+ onClick: function (event) {
+ var _a = event.currentTarget.dataset.key, position = _a === void 0 ? 'outside' : _a;
+ this.$emit('click', position);
+ if (!this.offset) {
+ return;
+ }
+ if (this.data.asyncClose) {
+ this.$emit('close', {
+ position: position,
+ instance: this,
+ name: this.data.name,
+ });
+ }
+ else {
+ this.swipeMove(0);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/swipe-cell/index.json b/miniprogram_npm/@vant/weapp/swipe-cell/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/swipe-cell/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml b/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
new file mode 100644
index 0000000..3f7f726
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss b/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
new file mode 100644
index 0000000..3a265bf
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/swipe-cell/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-swipe-cell{overflow:hidden;position:relative}.van-swipe-cell__left,.van-swipe-cell__right{height:100%;position:absolute;top:0}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/switch/index.d.ts b/miniprogram_npm/@vant/weapp/switch/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/switch/index.js b/miniprogram_npm/@vant/weapp/switch/index.js
new file mode 100644
index 0000000..1d2317f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.js
@@ -0,0 +1,38 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ field: true,
+ classes: ['node-class'],
+ props: {
+ checked: null,
+ loading: Boolean,
+ disabled: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ size: {
+ type: String,
+ value: '30',
+ },
+ activeValue: {
+ type: null,
+ value: true,
+ },
+ inactiveValue: {
+ type: null,
+ value: false,
+ },
+ },
+ methods: {
+ onClick: function () {
+ var _a = this.data, activeValue = _a.activeValue, inactiveValue = _a.inactiveValue, disabled = _a.disabled, loading = _a.loading;
+ if (disabled || loading) {
+ return;
+ }
+ var checked = this.data.checked === activeValue;
+ var value = checked ? inactiveValue : activeValue;
+ this.$emit('input', value);
+ this.$emit('change', value);
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/switch/index.json b/miniprogram_npm/@vant/weapp/switch/index.json
new file mode 100644
index 0000000..01077f5
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/switch/index.wxml b/miniprogram_npm/@vant/weapp/switch/index.wxml
new file mode 100644
index 0000000..4e9789b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.wxml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/switch/index.wxs b/miniprogram_npm/@vant/weapp/switch/index.wxs
new file mode 100644
index 0000000..3ae387a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.wxs
@@ -0,0 +1,26 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function rootStyle(data) {
+ var currentColor = data.checked === data.activeValue ? data.activeColor : data.inactiveColor;
+
+ return style({
+ 'font-size': addUnit(data.size),
+ 'background-color': currentColor,
+ });
+}
+
+var BLUE = '#1989fa';
+var GRAY_DARK = '#969799';
+
+function loadingColor(data) {
+ return data.checked === data.activeValue
+ ? data.activeColor || BLUE
+ : data.inactiveColor || GRAY_DARK;
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+ loadingColor: loadingColor,
+};
diff --git a/miniprogram_npm/@vant/weapp/switch/index.wxss b/miniprogram_npm/@vant/weapp/switch/index.wxss
new file mode 100644
index 0000000..35929de
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/switch/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-switch{background-color:var(--switch-background-color,#fff);border:var(--switch-border,1px solid rgba(0,0,0,.1));border-radius:var(--switch-node-size,1em);box-sizing:initial;display:inline-block;height:var(--switch-height,1em);position:relative;transition:background-color var(--switch-transition-duration,.3s);width:var(--switch-width,2em)}.van-switch__node{background-color:var(--switch-node-background-color,#fff);border-radius:100%;box-shadow:var(--switch-node-box-shadow,0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05));height:var(--switch-node-size,1em);left:0;position:absolute;top:0;transition:var(--switch-transition-duration,.3s) cubic-bezier(.3,1.05,.4,1.05);width:var(--switch-node-size,1em);z-index:var(--switch-node-z-index,1)}.van-switch__loading{height:50%;left:25%;position:absolute!important;top:25%;width:50%}.van-switch--on{background-color:var(--switch-on-background-color,#1989fa)}.van-switch--on .van-switch__node{transform:translateX(calc(var(--switch-width, 2em) - var(--switch-node-size, 1em)))}.van-switch--disabled{opacity:var(--switch-disabled-opacity,.4)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tab/index.d.ts b/miniprogram_npm/@vant/weapp/tab/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tab/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tab/index.js b/miniprogram_npm/@vant/weapp/tab/index.js
new file mode 100644
index 0000000..ae4d06b
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tab/index.js
@@ -0,0 +1,58 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useParent)('tabs'),
+ props: {
+ dot: {
+ type: Boolean,
+ observer: 'update',
+ },
+ info: {
+ type: null,
+ observer: 'update',
+ },
+ title: {
+ type: String,
+ observer: 'update',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'update',
+ },
+ titleStyle: {
+ type: String,
+ observer: 'update',
+ },
+ name: {
+ type: null,
+ value: '',
+ },
+ },
+ data: {
+ active: false,
+ },
+ methods: {
+ getComputedName: function () {
+ if (this.data.name !== '') {
+ return this.data.name;
+ }
+ return this.index;
+ },
+ updateRender: function (active, parent) {
+ var parentData = parent.data;
+ this.inited = this.inited || active;
+ this.setData({
+ active: active,
+ shouldRender: this.inited || !parentData.lazyRender,
+ shouldShow: active || parentData.animated,
+ });
+ },
+ update: function () {
+ if (this.parent) {
+ this.parent.updateTabs();
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tab/index.json b/miniprogram_npm/@vant/weapp/tab/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tab/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/tab/index.wxml b/miniprogram_npm/@vant/weapp/tab/index.wxml
new file mode 100644
index 0000000..f5e99f2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tab/index.wxml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tab/index.wxss b/miniprogram_npm/@vant/weapp/tab/index.wxss
new file mode 100644
index 0000000..1c90c88
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tab/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';:host{box-sizing:border-box;flex-shrink:0;width:100%}.van-tab__pane{-webkit-overflow-scrolling:touch;box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tabbar-item/index.d.ts b/miniprogram_npm/@vant/weapp/tabbar-item/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar-item/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tabbar-item/index.js b/miniprogram_npm/@vant/weapp/tabbar-item/index.js
new file mode 100644
index 0000000..58a5065
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar-item/index.js
@@ -0,0 +1,70 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ props: {
+ info: null,
+ name: null,
+ icon: String,
+ dot: Boolean,
+ url: {
+ type: String,
+ value: '',
+ },
+ linkType: {
+ type: String,
+ value: 'redirectTo',
+ },
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ },
+ relation: (0, relation_1.useParent)('tabbar'),
+ data: {
+ active: false,
+ activeColor: '',
+ inactiveColor: '',
+ },
+ methods: {
+ onClick: function () {
+ var parent = this.parent;
+ if (parent) {
+ var index = parent.children.indexOf(this);
+ var active = this.data.name || index;
+ if (active !== this.data.active) {
+ parent.$emit('change', active);
+ }
+ }
+ var _a = this.data, url = _a.url, linkType = _a.linkType;
+ if (url && wx[linkType]) {
+ return wx[linkType]({ url: url });
+ }
+ this.$emit('click');
+ },
+ updateFromParent: function () {
+ var parent = this.parent;
+ if (!parent) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ var parentData = parent.data;
+ var data = this.data;
+ var active = (data.name || index) === parentData.active;
+ var patch = {};
+ if (active !== data.active) {
+ patch.active = active;
+ }
+ if (parentData.activeColor !== data.activeColor) {
+ patch.activeColor = parentData.activeColor;
+ }
+ if (parentData.inactiveColor !== data.inactiveColor) {
+ patch.inactiveColor = parentData.inactiveColor;
+ }
+ if (Object.keys(patch).length > 0) {
+ this.setData(patch);
+ }
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tabbar-item/index.json b/miniprogram_npm/@vant/weapp/tabbar-item/index.json
new file mode 100644
index 0000000..16f174c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar-item/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-info": "../info/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml b/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
new file mode 100644
index 0000000..524728f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss b/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
new file mode 100644
index 0000000..21ee224
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar-item/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';:host{flex:1}.van-tabbar-item{align-items:center;color:var(--tabbar-item-text-color,#646566);display:flex;flex-direction:column;font-size:var(--tabbar-item-font-size,12px);height:100%;justify-content:center;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{font-size:var(--tabbar-item-icon-size,22px);margin-bottom:var(--tabbar-item-margin-bottom,4px);position:relative}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tabbar/index.d.ts b/miniprogram_npm/@vant/weapp/tabbar/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tabbar/index.js b/miniprogram_npm/@vant/weapp/tabbar/index.js
new file mode 100644
index 0000000..3db793d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar/index.js
@@ -0,0 +1,68 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+(0, component_1.VantComponent)({
+ relation: (0, relation_1.useChildren)('tabbar-item', function () {
+ this.updateChildren();
+ }),
+ props: {
+ active: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ activeColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ inactiveColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ fixed: {
+ type: Boolean,
+ value: true,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ },
+ data: {
+ height: 50,
+ },
+ methods: {
+ updateChildren: function () {
+ var children = this.children;
+ if (!Array.isArray(children) || !children.length) {
+ return;
+ }
+ children.forEach(function (child) { return child.updateFromParent(); });
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ (0, utils_1.getRect)(_this, '.van-tabbar').then(function (res) {
+ _this.setData({ height: res.height });
+ });
+ });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tabbar/index.json b/miniprogram_npm/@vant/weapp/tabbar/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/tabbar/index.wxml b/miniprogram_npm/@vant/weapp/tabbar/index.wxml
new file mode 100644
index 0000000..43bb111
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar/index.wxml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tabbar/index.wxss b/miniprogram_npm/@vant/weapp/tabbar/index.wxss
new file mode 100644
index 0000000..42b6c1e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabbar/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-tabbar{background-color:var(--tabbar-background-color,#fff);box-sizing:initial;display:flex;height:var(--tabbar-height,50px);width:100%}.van-tabbar--fixed{bottom:0;left:0;position:fixed}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.d.ts b/miniprogram_npm/@vant/weapp/tabs/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.js b/miniprogram_npm/@vant/weapp/tabs/index.js
new file mode 100644
index 0000000..3121957
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.js
@@ -0,0 +1,327 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var relation_1 = require("../common/relation");
+(0, component_1.VantComponent)({
+ mixins: [touch_1.touch],
+ classes: [
+ 'nav-class',
+ 'tab-class',
+ 'tab-active-class',
+ 'line-class',
+ 'wrap-class',
+ ],
+ relation: (0, relation_1.useChildren)('tab', function () {
+ this.updateTabs();
+ }),
+ props: {
+ sticky: Boolean,
+ border: Boolean,
+ swipeable: Boolean,
+ titleActiveColor: String,
+ titleInactiveColor: String,
+ color: String,
+ animated: {
+ type: Boolean,
+ observer: function () {
+ var _this = this;
+ this.children.forEach(function (child, index) {
+ return child.updateRender(index === _this.data.currentIndex, _this);
+ });
+ },
+ },
+ lineWidth: {
+ type: null,
+ value: 40,
+ observer: 'resize',
+ },
+ lineHeight: {
+ type: null,
+ value: -1,
+ },
+ active: {
+ type: null,
+ value: 0,
+ observer: function (name) {
+ if (name !== this.getCurrentName()) {
+ this.setCurrentIndexByName(name);
+ }
+ },
+ },
+ type: {
+ type: String,
+ value: 'line',
+ },
+ ellipsis: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: Number,
+ value: 0.3,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ swipeThreshold: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({
+ scrollable: this.children.length > value || !this.data.ellipsis,
+ });
+ },
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ },
+ lazyRender: {
+ type: Boolean,
+ value: true,
+ },
+ useBeforeChange: {
+ type: Boolean,
+ value: false,
+ },
+ },
+ data: {
+ tabs: [],
+ scrollLeft: 0,
+ scrollable: false,
+ currentIndex: 0,
+ container: null,
+ skipTransition: true,
+ scrollWithAnimation: false,
+ lineOffsetLeft: 0,
+ inited: false,
+ },
+ mounted: function () {
+ var _this = this;
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.swiping = true;
+ _this.setData({
+ container: function () { return _this.createSelectorQuery().select('.van-tabs'); },
+ });
+ _this.resize();
+ _this.scrollIntoView();
+ });
+ },
+ methods: {
+ updateTabs: function () {
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, data = _a.data;
+ this.setData({
+ tabs: children.map(function (child) { return child.data; }),
+ scrollable: this.children.length > data.swipeThreshold || !data.ellipsis,
+ });
+ this.setCurrentIndexByName(data.active || this.getCurrentName());
+ },
+ trigger: function (eventName, child) {
+ var currentIndex = this.data.currentIndex;
+ var data = this.getChildData(currentIndex, child);
+ if (!(0, validator_1.isDef)(data)) {
+ return;
+ }
+ this.$emit(eventName, data);
+ },
+ onTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (child.data.disabled) {
+ this.trigger('disabled', child);
+ return;
+ }
+ this.onBeforeChange(index).then(function () {
+ _this.setCurrentIndex(index);
+ (0, utils_1.nextTick)(function () {
+ _this.trigger('click');
+ });
+ });
+ },
+ // correct the index of active tab
+ setCurrentIndexByName: function (name) {
+ var _a = this.children, children = _a === void 0 ? [] : _a;
+ var matched = children.filter(function (child) { return child.getComputedName() === name; });
+ if (matched.length) {
+ this.setCurrentIndex(matched[0].index);
+ }
+ },
+ setCurrentIndex: function (currentIndex) {
+ var _this = this;
+ var _a = this, data = _a.data, _b = _a.children, children = _b === void 0 ? [] : _b;
+ if (!(0, validator_1.isDef)(currentIndex) ||
+ currentIndex >= children.length ||
+ currentIndex < 0) {
+ return;
+ }
+ (0, utils_1.groupSetData)(this, function () {
+ children.forEach(function (item, index) {
+ var active = index === currentIndex;
+ if (active !== item.data.active || !item.inited) {
+ item.updateRender(active, _this);
+ }
+ });
+ });
+ if (currentIndex === data.currentIndex) {
+ if (!data.inited) {
+ this.resize();
+ }
+ return;
+ }
+ var shouldEmitChange = data.currentIndex !== null;
+ this.setData({ currentIndex: currentIndex });
+ (0, utils_1.requestAnimationFrame)(function () {
+ _this.resize();
+ _this.scrollIntoView();
+ });
+ (0, utils_1.nextTick)(function () {
+ _this.trigger('input');
+ if (shouldEmitChange) {
+ _this.trigger('change');
+ }
+ });
+ },
+ getCurrentName: function () {
+ var activeTab = this.children[this.data.currentIndex];
+ if (activeTab) {
+ return activeTab.getComputedName();
+ }
+ },
+ resize: function () {
+ var _this = this;
+ if (this.data.type !== 'line') {
+ return;
+ }
+ var _a = this.data, currentIndex = _a.currentIndex, ellipsis = _a.ellipsis, skipTransition = _a.skipTransition;
+ Promise.all([
+ (0, utils_1.getAllRect)(this, '.van-tab'),
+ (0, utils_1.getRect)(this, '.van-tabs__line'),
+ ]).then(function (_a) {
+ var _b = _a[0], rects = _b === void 0 ? [] : _b, lineRect = _a[1];
+ var rect = rects[currentIndex];
+ if (rect == null) {
+ return;
+ }
+ var lineOffsetLeft = rects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ lineOffsetLeft +=
+ (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
+ _this.setData({ lineOffsetLeft: lineOffsetLeft, inited: true });
+ _this.swiping = true;
+ if (skipTransition) {
+ // waiting transition end
+ setTimeout(function () {
+ _this.setData({ skipTransition: false });
+ }, _this.data.duration);
+ }
+ });
+ },
+ // scroll active tab into view
+ scrollIntoView: function () {
+ var _this = this;
+ var _a = this.data, currentIndex = _a.currentIndex, scrollable = _a.scrollable, scrollWithAnimation = _a.scrollWithAnimation;
+ if (!scrollable) {
+ return;
+ }
+ Promise.all([
+ (0, utils_1.getAllRect)(this, '.van-tab'),
+ (0, utils_1.getRect)(this, '.van-tabs__nav'),
+ ]).then(function (_a) {
+ var tabRects = _a[0], navRect = _a[1];
+ var tabRect = tabRects[currentIndex];
+ var offsetLeft = tabRects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ _this.setData({
+ scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
+ });
+ if (!scrollWithAnimation) {
+ (0, utils_1.nextTick)(function () {
+ _this.setData({ scrollWithAnimation: true });
+ });
+ }
+ });
+ },
+ onTouchScroll: function (event) {
+ this.$emit('scroll', event.detail);
+ },
+ onTouchStart: function (event) {
+ if (!this.data.swipeable)
+ return;
+ this.swiping = true;
+ this.touchStart(event);
+ },
+ onTouchMove: function (event) {
+ if (!this.data.swipeable || !this.swiping)
+ return;
+ this.touchMove(event);
+ },
+ // watch swipe touch end
+ onTouchEnd: function () {
+ var _this = this;
+ if (!this.data.swipeable || !this.swiping)
+ return;
+ var _a = this, direction = _a.direction, deltaX = _a.deltaX, offsetX = _a.offsetX;
+ var minSwipeDistance = 50;
+ if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
+ var index_1 = this.getAvaiableTab(deltaX);
+ if (index_1 !== -1) {
+ this.onBeforeChange(index_1).then(function () { return _this.setCurrentIndex(index_1); });
+ }
+ }
+ this.swiping = false;
+ },
+ getAvaiableTab: function (direction) {
+ var _a = this.data, tabs = _a.tabs, currentIndex = _a.currentIndex;
+ var step = direction > 0 ? -1 : 1;
+ for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
+ var index = currentIndex + i;
+ if (index >= 0 &&
+ index < tabs.length &&
+ tabs[index] &&
+ !tabs[index].disabled) {
+ return index;
+ }
+ }
+ return -1;
+ },
+ onBeforeChange: function (index) {
+ var _this = this;
+ var useBeforeChange = this.data.useBeforeChange;
+ if (!useBeforeChange) {
+ return Promise.resolve();
+ }
+ return new Promise(function (resolve, reject) {
+ _this.$emit('before-change', __assign(__assign({}, _this.getChildData(index)), { callback: function (status) { return (status ? resolve() : reject()); } }));
+ });
+ },
+ getChildData: function (index, child) {
+ var currentChild = child || this.children[index];
+ if (!(0, validator_1.isDef)(currentChild)) {
+ return;
+ }
+ return {
+ index: currentChild.index,
+ name: currentChild.getComputedName(),
+ title: currentChild.data.title,
+ };
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.json b/miniprogram_npm/@vant/weapp/tabs/index.json
new file mode 100644
index 0000000..19c0bc3
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-info": "../info/index",
+ "van-sticky": "../sticky/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.wxml b/miniprogram_npm/@vant/weapp/tabs/index.wxml
new file mode 100644
index 0000000..05bb1e1
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.wxml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.wxs b/miniprogram_npm/@vant/weapp/tabs/index.wxs
new file mode 100644
index 0000000..4059c7f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.wxs
@@ -0,0 +1,83 @@
+/* eslint-disable */
+var utils = require('../wxs/utils.wxs');
+var style = require('../wxs/style.wxs');
+
+function tabClass(active, ellipsis) {
+ var classes = ['tab-class'];
+
+ if (active) {
+ classes.push('tab-active-class');
+ }
+
+ if (ellipsis) {
+ classes.push('van-ellipsis');
+ }
+
+ return classes.join(' ');
+}
+
+function tabStyle(data) {
+ var titleColor = data.active
+ ? data.titleActiveColor
+ : data.titleInactiveColor;
+
+ var ellipsis = data.scrollable && data.ellipsis;
+
+ // card theme color
+ if (data.type === 'card') {
+ return style({
+ 'border-color': data.color,
+ 'background-color': !data.disabled && data.active ? data.color : null,
+ color: titleColor || (!data.disabled && !data.active ? data.color : null),
+ 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
+ });
+ }
+
+ return style({
+ color: titleColor,
+ 'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
+ });
+}
+
+function navStyle(color, type) {
+ return style({
+ 'border-color': type === 'card' && color ? color : null,
+ });
+}
+
+function trackStyle(data) {
+ if (!data.animated) {
+ return '';
+ }
+
+ return style({
+ left: -100 * data.currentIndex + '%',
+ 'transition-duration': data.duration + 's',
+ '-webkit-transition-duration': data.duration + 's',
+ });
+}
+
+function lineStyle(data) {
+ return style({
+ width: utils.addUnit(data.lineWidth),
+ opacity: data.inited ? 1 : 0,
+ transform: 'translateX(' + data.lineOffsetLeft + 'px)',
+ '-webkit-transform': 'translateX(' + data.lineOffsetLeft + 'px)',
+ 'background-color': data.color,
+ height: data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
+ 'border-radius':
+ data.lineHeight !== -1 ? utils.addUnit(data.lineHeight) : null,
+ 'transition-duration': !data.skipTransition ? data.duration + 's' : null,
+ '-webkit-transition-duration': !data.skipTransition
+ ? data.duration + 's'
+ : null,
+ });
+}
+
+module.exports = {
+ tabClass: tabClass,
+ tabStyle: tabStyle,
+ trackStyle: trackStyle,
+ lineStyle: lineStyle,
+ navStyle: navStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/tabs/index.wxss b/miniprogram_npm/@vant/weapp/tabs/index.wxss
new file mode 100644
index 0000000..09a93af
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tabs/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-tabs{-webkit-tap-highlight-color:transparent;position:relative}.van-tabs__wrap{display:flex;overflow:hidden}.van-tabs__wrap--scrollable .van-tab{flex:0 0 22%}.van-tabs__wrap--scrollable .van-tab--complete{flex:1 0 auto!important;padding:0 12px}.van-tabs__wrap--scrollable .van-tabs__nav--complete{padding-left:8px;padding-right:8px}.van-tabs__scroll{background-color:var(--tabs-nav-background-color,#fff);overflow:auto}.van-tabs__scroll--line{box-sizing:initial;height:calc(100% + 15px)}.van-tabs__scroll--card{border:1px solid var(--tabs-default-color,#ee0a24);border-radius:2px;box-sizing:border-box;margin:0 var(--padding-md,16px);width:calc(100% - var(--padding-md, 16px)*2)}.van-tabs__scroll::-webkit-scrollbar{display:none}.van-tabs__nav{display:flex;position:relative;-webkit-user-select:none;user-select:none}.van-tabs__nav--card{box-sizing:border-box;height:var(--tabs-card-height,30px)}.van-tabs__nav--card .van-tab{border-right:1px solid var(--tabs-default-color,#ee0a24);color:var(--tabs-default-color,#ee0a24);line-height:calc(var(--tabs-card-height, 30px) - 2px)}.van-tabs__nav--card .van-tab:last-child{border-right:none}.van-tabs__nav--card .van-tab.van-tab--active{background-color:var(--tabs-default-color,#ee0a24);color:#fff}.van-tabs__nav--card .van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tabs__line{background-color:var(--tabs-bottom-bar-color,#ee0a24);border-radius:var(--tabs-bottom-bar-height,3px);bottom:0;height:var(--tabs-bottom-bar-height,3px);left:0;opacity:0;position:absolute;z-index:1}.van-tabs__track{height:100%;position:relative;width:100%}.van-tabs__track--animated{display:flex;transition-property:left}.van-tabs__content{overflow:hidden}.van-tabs--line{height:var(--tabs-line-height,44px)}.van-tabs--card{height:var(--tabs-card-height,30px)}.van-tab{box-sizing:border-box;color:var(--tab-text-color,#646566);cursor:pointer;flex:1;font-size:var(--tab-font-size,14px);line-height:var(--tabs-line-height,44px);min-width:0;padding:0 5px;position:relative;text-align:center}.van-tab--active{color:var(--tab-active-text-color,#323233);font-weight:var(--font-weight-bold,500)}.van-tab--disabled{color:var(--tab-disabled-text-color,#c8c9cc)}.van-tab__title__info{position:relative!important;top:-1px!important;transform:translateX(0)!important}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tag/index.d.ts b/miniprogram_npm/@vant/weapp/tag/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tag/index.js b/miniprogram_npm/@vant/weapp/tag/index.js
new file mode 100644
index 0000000..ec4069a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.js
@@ -0,0 +1,23 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ size: String,
+ mark: Boolean,
+ color: String,
+ plain: Boolean,
+ round: Boolean,
+ textColor: String,
+ type: {
+ type: String,
+ value: 'default',
+ },
+ closeable: Boolean,
+ },
+ methods: {
+ onClose: function () {
+ this.$emit('close');
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tag/index.json b/miniprogram_npm/@vant/weapp/tag/index.json
new file mode 100644
index 0000000..0a336c0
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/tag/index.wxml b/miniprogram_npm/@vant/weapp/tag/index.wxml
new file mode 100644
index 0000000..59352dd
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.wxml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tag/index.wxs b/miniprogram_npm/@vant/weapp/tag/index.wxs
new file mode 100644
index 0000000..12d1668
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.wxs
@@ -0,0 +1,13 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ return style({
+ 'background-color': data.plain ? '' : data.color,
+ color: data.textColor || data.plain ? data.textColor || data.color : '',
+ });
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/tag/index.wxss b/miniprogram_npm/@vant/weapp/tag/index.wxss
new file mode 100644
index 0000000..0f0cbae
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tag/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-tag{align-items:center;border-radius:var(--tag-border-radius,2px);color:var(--tag-text-color,#fff);display:inline-flex;font-size:var(--tag-font-size,12px);line-height:var(--tag-line-height,16px);padding:var(--tag-padding,0 4px);position:relative}.van-tag--default{background-color:var(--tag-default-color,#969799)}.van-tag--default.van-tag--plain{color:var(--tag-default-color,#969799)}.van-tag--danger{background-color:var(--tag-danger-color,#ee0a24)}.van-tag--danger.van-tag--plain{color:var(--tag-danger-color,#ee0a24)}.van-tag--primary{background-color:var(--tag-primary-color,#1989fa)}.van-tag--primary.van-tag--plain{color:var(--tag-primary-color,#1989fa)}.van-tag--success{background-color:var(--tag-success-color,#07c160)}.van-tag--success.van-tag--plain{color:var(--tag-success-color,#07c160)}.van-tag--warning{background-color:var(--tag-warning-color,#ff976a)}.van-tag--warning.van-tag--plain{color:var(--tag-warning-color,#ff976a)}.van-tag--plain{background-color:var(--tag-plain-background-color,#fff)}.van-tag--plain:before{border:1px solid;border-radius:inherit;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.van-tag--medium{padding:var(--tag-medium-padding,2px 6px)}.van-tag--large{border-radius:var(--tag-large-border-radius,4px);font-size:var(--tag-large-font-size,14px);padding:var(--tag-large-padding,4px 8px)}.van-tag--mark{border-radius:0 var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) var(--tag-round-border-radius,var(--tag-round-border-radius,999px)) 0}.van-tag--mark:after{content:"";display:block;width:2px}.van-tag--round{border-radius:var(--tag-round-border-radius,999px)}.van-tag__close{margin-left:2px;min-width:1em}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/toast/index.d.ts b/miniprogram_npm/@vant/weapp/toast/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/toast/index.js b/miniprogram_npm/@vant/weapp/toast/index.js
new file mode 100644
index 0000000..0c01366
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/index.js
@@ -0,0 +1,31 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ props: {
+ show: Boolean,
+ mask: Boolean,
+ message: String,
+ forbidClick: Boolean,
+ zIndex: {
+ type: Number,
+ value: 1000,
+ },
+ type: {
+ type: String,
+ value: 'text',
+ },
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ position: {
+ type: String,
+ value: 'middle',
+ },
+ },
+ methods: {
+ // for prevent touchmove
+ noop: function () { },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/toast/index.json b/miniprogram_npm/@vant/weapp/toast/index.json
new file mode 100644
index 0000000..9b1b78c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/index.json
@@ -0,0 +1,9 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index",
+ "van-overlay": "../overlay/index",
+ "van-transition": "../transition/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/toast/index.wxml b/miniprogram_npm/@vant/weapp/toast/index.wxml
new file mode 100644
index 0000000..69f143e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/index.wxml
@@ -0,0 +1,36 @@
+
+
+
+
+ {{ message }}
+
+
+
+
+
+
+
+
+ {{ message }}
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/toast/index.wxss b/miniprogram_npm/@vant/weapp/toast/index.wxss
new file mode 100644
index 0000000..3b7a34e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-toast{word-wrap:break-word;align-items:center;background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:var(--toast-border-radius,8px);box-sizing:initial;color:var(--toast-text-color,#fff);display:flex;flex-direction:column;font-size:var(--toast-font-size,14px);justify-content:center;line-height:var(--toast-line-height,20px);white-space:pre-wrap}.van-toast__container{left:50%;max-width:var(--toast-max-width,70%);position:fixed;top:50%;transform:translate(-50%,-50%);width:-webkit-fit-content;width:fit-content}.van-toast--text{min-width:var(--toast-text-min-width,96px);padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{min-height:var(--toast-default-min-height,88px);padding:var(--toast-default-padding,16px);width:var(--toast-default-width,88px)}.van-toast--icon .van-toast__icon{font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{transform:translateY(-30vh)}.van-toast--bottom{transform:translateY(30vh)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/toast/toast.d.ts b/miniprogram_npm/@vant/weapp/toast/toast.d.ts
new file mode 100644
index 0000000..de2a4a2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/toast.d.ts
@@ -0,0 +1,28 @@
+///
+///
+type ToastMessage = string | number;
+type ToastContext = WechatMiniprogram.Component.TrivialInstance | WechatMiniprogram.Page.TrivialInstance;
+interface ToastOptions {
+ show?: boolean;
+ type?: string;
+ mask?: boolean;
+ zIndex?: number;
+ context?: (() => ToastContext) | ToastContext;
+ position?: string;
+ duration?: number;
+ selector?: string;
+ forbidClick?: boolean;
+ loadingType?: string;
+ message?: ToastMessage;
+ onClose?: () => void;
+}
+declare function Toast(toastOptions: ToastOptions | ToastMessage): WechatMiniprogram.Component.TrivialInstance | undefined;
+declare namespace Toast {
+ var loading: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
+ var success: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
+ var fail: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
+ var clear: () => void;
+ var setDefaultOptions: (options: ToastOptions) => void;
+ var resetDefaultOptions: () => void;
+}
+export default Toast;
diff --git a/miniprogram_npm/@vant/weapp/toast/toast.js b/miniprogram_npm/@vant/weapp/toast/toast.js
new file mode 100644
index 0000000..f51a89a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/toast/toast.js
@@ -0,0 +1,83 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var validator_1 = require("../common/validator");
+var defaultOptions = {
+ type: 'text',
+ mask: false,
+ message: '',
+ show: true,
+ zIndex: 1000,
+ duration: 2000,
+ position: 'middle',
+ forbidClick: false,
+ loadingType: 'circular',
+ selector: '#van-toast',
+};
+var queue = [];
+var currentOptions = __assign({}, defaultOptions);
+function parseOptions(message) {
+ return (0, validator_1.isObj)(message) ? message : { message: message };
+}
+function getContext() {
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
+}
+function Toast(toastOptions) {
+ var options = __assign(__assign({}, currentOptions), parseOptions(toastOptions));
+ var context = (typeof options.context === 'function'
+ ? options.context()
+ : options.context) || getContext();
+ var toast = context.selectComponent(options.selector);
+ if (!toast) {
+ console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
+ return;
+ }
+ delete options.context;
+ delete options.selector;
+ toast.clear = function () {
+ toast.setData({ show: false });
+ if (options.onClose) {
+ options.onClose();
+ }
+ };
+ queue.push(toast);
+ toast.setData(options);
+ clearTimeout(toast.timer);
+ if (options.duration != null && options.duration > 0) {
+ toast.timer = setTimeout(function () {
+ toast.clear();
+ queue = queue.filter(function (item) { return item !== toast; });
+ }, options.duration);
+ }
+ return toast;
+}
+var createMethod = function (type) { return function (options) {
+ return Toast(__assign({ type: type }, parseOptions(options)));
+}; };
+Toast.loading = createMethod('loading');
+Toast.success = createMethod('success');
+Toast.fail = createMethod('fail');
+Toast.clear = function () {
+ queue.forEach(function (toast) {
+ toast.clear();
+ });
+ queue = [];
+};
+Toast.setDefaultOptions = function (options) {
+ Object.assign(currentOptions, options);
+};
+Toast.resetDefaultOptions = function () {
+ currentOptions = __assign({}, defaultOptions);
+};
+exports.default = Toast;
diff --git a/miniprogram_npm/@vant/weapp/transition/index.d.ts b/miniprogram_npm/@vant/weapp/transition/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/transition/index.js b/miniprogram_npm/@vant/weapp/transition/index.js
new file mode 100644
index 0000000..55fc8b8
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.js
@@ -0,0 +1,15 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
+(0, component_1.VantComponent)({
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ ],
+ mixins: [(0, transition_1.transition)(true)],
+});
diff --git a/miniprogram_npm/@vant/weapp/transition/index.json b/miniprogram_npm/@vant/weapp/transition/index.json
new file mode 100644
index 0000000..467ce29
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.json
@@ -0,0 +1,3 @@
+{
+ "component": true
+}
diff --git a/miniprogram_npm/@vant/weapp/transition/index.wxml b/miniprogram_npm/@vant/weapp/transition/index.wxml
new file mode 100644
index 0000000..2743785
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.wxml
@@ -0,0 +1,10 @@
+
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/transition/index.wxs b/miniprogram_npm/@vant/weapp/transition/index.wxs
new file mode 100644
index 0000000..e0babf6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.wxs
@@ -0,0 +1,17 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+
+function rootStyle(data) {
+ return style([
+ {
+ '-webkit-transition-duration': data.currentDuration + 'ms',
+ 'transition-duration': data.currentDuration + 'ms',
+ },
+ data.display ? null : 'display: none',
+ data.customStyle,
+ ]);
+}
+
+module.exports = {
+ rootStyle: rootStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/transition/index.wxss b/miniprogram_npm/@vant/weapp/transition/index.wxss
new file mode 100644
index 0000000..3a3d37f
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/transition/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-transition{transition-timing-function:ease}.van-fade-enter-active,.van-fade-leave-active{transition-property:opacity}.van-fade-enter,.van-fade-leave-to{opacity:0}.van-fade-down-enter-active,.van-fade-down-leave-active,.van-fade-left-enter-active,.van-fade-left-leave-active,.van-fade-right-enter-active,.van-fade-right-leave-active,.van-fade-up-enter-active,.van-fade-up-leave-active{transition-property:opacity,transform}.van-fade-up-enter,.van-fade-up-leave-to{opacity:0;transform:translate3d(0,100%,0)}.van-fade-down-enter,.van-fade-down-leave-to{opacity:0;transform:translate3d(0,-100%,0)}.van-fade-left-enter,.van-fade-left-leave-to{opacity:0;transform:translate3d(-100%,0,0)}.van-fade-right-enter,.van-fade-right-leave-to{opacity:0;transform:translate3d(100%,0,0)}.van-slide-down-enter-active,.van-slide-down-leave-active,.van-slide-left-enter-active,.van-slide-left-leave-active,.van-slide-right-enter-active,.van-slide-right-leave-active,.van-slide-up-enter-active,.van-slide-up-leave-active{transition-property:transform}.van-slide-up-enter,.van-slide-up-leave-to{transform:translate3d(0,100%,0)}.van-slide-down-enter,.van-slide-down-leave-to{transform:translate3d(0,-100%,0)}.van-slide-left-enter,.van-slide-left-leave-to{transform:translate3d(-100%,0,0)}.van-slide-right-enter,.van-slide-right-leave-to{transform:translate3d(100%,0,0)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.d.ts b/miniprogram_npm/@vant/weapp/tree-select/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.js b/miniprogram_npm/@vant/weapp/tree-select/index.js
new file mode 100644
index 0000000..b6f69b2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.js
@@ -0,0 +1,70 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+(0, component_1.VantComponent)({
+ classes: [
+ 'main-item-class',
+ 'content-item-class',
+ 'main-active-class',
+ 'content-active-class',
+ 'main-disabled-class',
+ 'content-disabled-class',
+ ],
+ props: {
+ items: {
+ type: Array,
+ observer: 'updateSubItems',
+ },
+ activeId: null,
+ mainActiveIndex: {
+ type: Number,
+ value: 0,
+ observer: 'updateSubItems',
+ },
+ height: {
+ type: null,
+ value: 300,
+ },
+ max: {
+ type: Number,
+ value: Infinity,
+ },
+ selectedIcon: {
+ type: String,
+ value: 'success',
+ },
+ },
+ data: {
+ subItems: [],
+ },
+ methods: {
+ // 当一个子项被选择时
+ onSelectItem: function (event) {
+ var item = event.currentTarget.dataset.item;
+ var isArray = Array.isArray(this.data.activeId);
+ // 判断有没有超出右侧选择的最大数
+ var isOverMax = isArray && this.data.activeId.length >= this.data.max;
+ // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
+ var isSelected = isArray
+ ? this.data.activeId.indexOf(item.id) > -1
+ : this.data.activeId === item.id;
+ if (!item.disabled && (!isOverMax || isSelected)) {
+ this.$emit('click-item', item);
+ }
+ },
+ // 当一个导航被点击时
+ onClickNav: function (event) {
+ var index = event.detail;
+ var item = this.data.items[index];
+ if (!item.disabled) {
+ this.$emit('click-nav', { index: index });
+ }
+ },
+ // 更新子项列表
+ updateSubItems: function () {
+ var _a = this.data, items = _a.items, mainActiveIndex = _a.mainActiveIndex;
+ var _b = (items[mainActiveIndex] || {}).children, children = _b === void 0 ? [] : _b;
+ this.setData({ subItems: children });
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.json b/miniprogram_npm/@vant/weapp/tree-select/index.json
new file mode 100644
index 0000000..42991a2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.json
@@ -0,0 +1,8 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-sidebar": "../sidebar/index",
+ "van-sidebar-item": "../sidebar-item/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.wxml b/miniprogram_npm/@vant/weapp/tree-select/index.wxml
new file mode 100644
index 0000000..2663e52
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.wxml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.wxs b/miniprogram_npm/@vant/weapp/tree-select/index.wxs
new file mode 100644
index 0000000..b1cbb39
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.wxs
@@ -0,0 +1,12 @@
+/* eslint-disable */
+var array = require('../wxs/array.wxs');
+
+function isActive (activeList, itemId) {
+ if (array.isArray(activeList)) {
+ return activeList.indexOf(itemId) > -1;
+ }
+
+ return activeList === itemId;
+}
+
+module.exports.isActive = isActive;
diff --git a/miniprogram_npm/@vant/weapp/tree-select/index.wxss b/miniprogram_npm/@vant/weapp/tree-select/index.wxss
new file mode 100644
index 0000000..5bef0ac
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/tree-select/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-tree-select{display:flex;font-size:var(--tree-select-font-size,14px);position:relative;-webkit-user-select:none;user-select:none}.van-tree-select__nav{--sidebar-padding:12px 8px 12px 12px;background-color:var(--tree-select-nav-background-color,#f7f8fa);flex:1}.van-tree-select__nav__inner{height:100%;width:100%!important}.van-tree-select__content{background-color:var(--tree-select-content-background-color,#fff);flex:2}.van-tree-select__item{font-weight:700;line-height:var(--tree-select-item-height,44px);padding:0 32px 0 var(--padding-md,16px);position:relative}.van-tree-select__item--active{color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;right:var(--padding-md,16px);top:50%;transform:translateY(-50%)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.d.ts b/miniprogram_npm/@vant/weapp/uploader/index.d.ts
new file mode 100644
index 0000000..cb0ff5c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.js b/miniprogram_npm/@vant/weapp/uploader/index.js
new file mode 100644
index 0000000..5492d40
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.js
@@ -0,0 +1,183 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var shared_1 = require("./shared");
+var validator_1 = require("../common/validator");
+(0, component_1.VantComponent)({
+ props: __assign(__assign(__assign(__assign({ disabled: Boolean, multiple: Boolean, uploadText: String, useBeforeRead: Boolean, afterRead: null, beforeRead: null, previewSize: {
+ type: null,
+ value: 80,
+ }, name: {
+ type: null,
+ value: '',
+ }, accept: {
+ type: String,
+ value: 'image',
+ }, fileList: {
+ type: Array,
+ value: [],
+ observer: 'formatFileList',
+ }, maxSize: {
+ type: Number,
+ value: Number.MAX_VALUE,
+ }, maxCount: {
+ type: Number,
+ value: 100,
+ }, deletable: {
+ type: Boolean,
+ value: true,
+ }, showUpload: {
+ type: Boolean,
+ value: true,
+ }, previewImage: {
+ type: Boolean,
+ value: true,
+ }, previewFullImage: {
+ type: Boolean,
+ value: true,
+ }, videoFit: {
+ type: String,
+ value: 'contain',
+ }, imageFit: {
+ type: String,
+ value: 'scaleToFill',
+ }, uploadIcon: {
+ type: String,
+ value: 'photograph',
+ } }, shared_1.imageProps), shared_1.videoProps), shared_1.mediaProps), shared_1.messageFileProps),
+ data: {
+ lists: [],
+ isInCount: true,
+ },
+ methods: {
+ formatFileList: function () {
+ var _a = this.data, _b = _a.fileList, fileList = _b === void 0 ? [] : _b, maxCount = _a.maxCount;
+ var lists = fileList.map(function (item) { return (__assign(__assign({}, item), { isImage: (0, utils_1.isImageFile)(item), isVideo: (0, utils_1.isVideoFile)(item), deletable: (0, validator_1.isBoolean)(item.deletable) ? item.deletable : true })); });
+ this.setData({ lists: lists, isInCount: lists.length < maxCount });
+ },
+ getDetail: function (index) {
+ return {
+ name: this.data.name,
+ index: index == null ? this.data.fileList.length : index,
+ };
+ },
+ startUpload: function () {
+ var _this = this;
+ var _a = this.data, maxCount = _a.maxCount, multiple = _a.multiple, lists = _a.lists, disabled = _a.disabled;
+ if (disabled)
+ return;
+ (0, utils_1.chooseFile)(__assign(__assign({}, this.data), { maxCount: maxCount - lists.length }))
+ .then(function (res) {
+ _this.onBeforeRead(multiple ? res : res[0]);
+ })
+ .catch(function (error) {
+ _this.$emit('error', error);
+ });
+ },
+ onBeforeRead: function (file) {
+ var _this = this;
+ var _a = this.data, beforeRead = _a.beforeRead, useBeforeRead = _a.useBeforeRead;
+ var res = true;
+ if (typeof beforeRead === 'function') {
+ res = beforeRead(file, this.getDetail());
+ }
+ if (useBeforeRead) {
+ res = new Promise(function (resolve, reject) {
+ _this.$emit('before-read', __assign(__assign({ file: file }, _this.getDetail()), { callback: function (ok) {
+ ok ? resolve() : reject();
+ } }));
+ });
+ }
+ if (!res) {
+ return;
+ }
+ if ((0, validator_1.isPromise)(res)) {
+ res.then(function (data) { return _this.onAfterRead(data || file); });
+ }
+ else {
+ this.onAfterRead(file);
+ }
+ },
+ onAfterRead: function (file) {
+ var _a = this.data, maxSize = _a.maxSize, afterRead = _a.afterRead;
+ var oversize = Array.isArray(file)
+ ? file.some(function (item) { return item.size > maxSize; })
+ : file.size > maxSize;
+ if (oversize) {
+ this.$emit('oversize', __assign({ file: file }, this.getDetail()));
+ return;
+ }
+ if (typeof afterRead === 'function') {
+ afterRead(file, this.getDetail());
+ }
+ this.$emit('after-read', __assign({ file: file }, this.getDetail()));
+ },
+ deleteItem: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('delete', __assign(__assign({}, this.getDetail(index)), { file: this.data.fileList[index] }));
+ },
+ onPreviewImage: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var _a = this.data, lists = _a.lists, showmenu = _a.showmenu;
+ var item = lists[index];
+ wx.previewImage({
+ urls: lists.filter(function (item) { return (0, utils_1.isImageFile)(item); }).map(function (item) { return item.url; }),
+ current: item.url,
+ showmenu: showmenu,
+ fail: function () {
+ wx.showToast({ title: '预览图片失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewVideo: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var lists = this.data.lists;
+ var sources = [];
+ var current = lists.reduce(function (sum, cur, curIndex) {
+ if (!(0, utils_1.isVideoFile)(cur)) {
+ return sum;
+ }
+ sources.push(__assign(__assign({}, cur), { type: 'video' }));
+ if (curIndex < index) {
+ sum++;
+ }
+ return sum;
+ }, 0);
+ wx.previewMedia({
+ sources: sources,
+ current: current,
+ fail: function () {
+ wx.showToast({ title: '预览视频失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewFile: function (event) {
+ var index = event.currentTarget.dataset.index;
+ wx.openDocument({
+ filePath: this.data.lists[index].url,
+ showMenu: true,
+ });
+ },
+ onClickPreview: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.lists[index];
+ this.$emit('click-preview', __assign(__assign({}, item), this.getDetail(index)));
+ },
+ },
+});
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.json b/miniprogram_npm/@vant/weapp/uploader/index.json
new file mode 100644
index 0000000..e00a588
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "van-icon": "../icon/index",
+ "van-loading": "../loading/index"
+ }
+}
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.wxml b/miniprogram_npm/@vant/weapp/uploader/index.wxml
new file mode 100644
index 0000000..3e61fd9
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.wxml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name || item.url }}
+
+
+
+
+ {{ item.message }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ uploadText }}
+
+
+
+
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.wxs b/miniprogram_npm/@vant/weapp/uploader/index.wxs
new file mode 100644
index 0000000..c567ec2
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.wxs
@@ -0,0 +1,17 @@
+/* eslint-disable */
+var style = require('../wxs/style.wxs');
+var addUnit = require('../wxs/add-unit.wxs');
+
+function sizeStyle(data) {
+ return "Array" === data.previewSize.constructor ? style({
+ width: addUnit(data.previewSize[0]),
+ height: addUnit(data.previewSize[1]),
+ }) : style({
+ width: addUnit(data.previewSize),
+ height: addUnit(data.previewSize),
+ });
+}
+
+module.exports = {
+ sizeStyle: sizeStyle,
+};
diff --git a/miniprogram_npm/@vant/weapp/uploader/index.wxss b/miniprogram_npm/@vant/weapp/uploader/index.wxss
new file mode 100644
index 0000000..11f8696
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/index.wxss
@@ -0,0 +1 @@
+@import '../common/index.wxss';.van-uploader{display:inline-block;position:relative}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__slot:empty{display:none}.van-uploader__slot:not(:empty)+.van-uploader__upload{display:none!important}.van-uploader__upload{align-items:center;background-color:var(--uploader-upload-background-color,#f7f8fa);box-sizing:border-box;display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;margin:0 8px 8px 0;position:relative;width:var(--uploader-size,80px)}.van-uploader__upload:active{background-color:var(--uploader-upload-active-color,#f2f3f5)}.van-uploader__upload-icon{color:var(--uploader-icon-color,#dcdee0);font-size:var(--uploader-icon-size,24px)}.van-uploader__upload-text{color:var(--uploader-text-color,#969799);font-size:var(--uploader-text-font-size,12px);margin-top:var(--padding-xs,8px)}.van-uploader__upload--disabled{opacity:var(--uploader-disabled-opacity,.5)}.van-uploader__preview{cursor:pointer;margin:0 8px 8px 0;position:relative}.van-uploader__preview-image{display:block;height:var(--uploader-size,80px);overflow:hidden;width:var(--uploader-size,80px)}.van-uploader__preview-delete,.van-uploader__preview-delete:after{height:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;width:var(--uploader-delete-icon-size,14px)}.van-uploader__preview-delete:after{background-color:var(--uploader-delete-background-color,rgba(0,0,0,.7));border-radius:0 0 0 12px;content:""}.van-uploader__preview-delete-icon{color:var(--uploader-delete-color,#fff);font-size:var(--uploader-delete-icon-size,14px);position:absolute;right:0;top:0;transform:scale(.7) translate(10%,-10%);z-index:1}.van-uploader__file{align-items:center;background-color:var(--uploader-file-background-color,#f7f8fa);display:flex;flex-direction:column;height:var(--uploader-size,80px);justify-content:center;width:var(--uploader-size,80px)}.van-uploader__file-icon{color:var(--uploader-file-icon-color,#646566);font-size:var(--uploader-file-icon-size,20px)}.van-uploader__file-name{box-sizing:border-box;color:var(--uploader-file-name-text-color,#646566);font-size:var(--uploader-file-name-font-size,12px);margin-top:var(--uploader-file-name-margin-top,8px);padding:var(--uploader-file-name-padding,0 4px);text-align:center;width:100%}.van-uploader__mask{align-items:center;background-color:var(--uploader-mask-background-color,rgba(50,50,51,.88));bottom:0;color:#fff;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;right:0;top:0}.van-uploader__mask-icon{font-size:var(--uploader-mask-icon-size,22px)}.van-uploader__mask-message{font-size:var(--uploader-mask-message-font-size,12px);line-height:var(--uploader-mask-message-line-height,14px);margin-top:6px;padding:0 var(--padding-base,4px)}.van-uploader__loading{color:var(--uploader-loading-icon-color,#fff)!important;height:var(--uploader-loading-icon-size,22px);width:var(--uploader-loading-icon-size,22px)}
\ No newline at end of file
diff --git a/miniprogram_npm/@vant/weapp/uploader/shared.d.ts b/miniprogram_npm/@vant/weapp/uploader/shared.d.ts
new file mode 100644
index 0000000..e0a0d7e
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/shared.d.ts
@@ -0,0 +1,53 @@
+export declare const imageProps: {
+ sizeType: {
+ type: ArrayConstructor;
+ value: string[];
+ };
+ capture: {
+ type: ArrayConstructor;
+ value: string[];
+ };
+ showmenu: {
+ type: BooleanConstructor;
+ value: boolean;
+ };
+};
+export declare const videoProps: {
+ capture: {
+ type: ArrayConstructor;
+ value: string[];
+ };
+ compressed: {
+ type: BooleanConstructor;
+ value: boolean;
+ };
+ maxDuration: {
+ type: NumberConstructor;
+ value: number;
+ };
+ camera: {
+ type: StringConstructor;
+ value: string;
+ };
+};
+export declare const mediaProps: {
+ capture: {
+ type: ArrayConstructor;
+ value: string[];
+ };
+ mediaType: {
+ type: ArrayConstructor;
+ value: string[];
+ };
+ maxDuration: {
+ type: NumberConstructor;
+ value: number;
+ };
+ camera: {
+ type: StringConstructor;
+ value: string;
+ };
+};
+export declare const messageFileProps: {
+ extension: null;
+};
diff --git a/miniprogram_npm/@vant/weapp/uploader/shared.js b/miniprogram_npm/@vant/weapp/uploader/shared.js
new file mode 100644
index 0000000..b88fea7
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/shared.js
@@ -0,0 +1,60 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.messageFileProps = exports.mediaProps = exports.videoProps = exports.imageProps = void 0;
+// props for image
+exports.imageProps = {
+ sizeType: {
+ type: Array,
+ value: ['original', 'compressed'],
+ },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ showmenu: {
+ type: Boolean,
+ value: true,
+ },
+};
+// props for video
+exports.videoProps = {
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ compressed: {
+ type: Boolean,
+ value: true,
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
+};
+// props for media
+exports.mediaProps = {
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ mediaType: {
+ type: Array,
+ value: ['image', 'video', 'mix'],
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
+};
+// props for file
+exports.messageFileProps = {
+ extension: null,
+};
diff --git a/miniprogram_npm/@vant/weapp/uploader/utils.d.ts b/miniprogram_npm/@vant/weapp/uploader/utils.d.ts
new file mode 100644
index 0000000..1e76ee6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/utils.d.ts
@@ -0,0 +1,24 @@
+export interface File {
+ url: string;
+ size?: number;
+ name?: string;
+ type: string;
+ duration?: number;
+ time?: number;
+ isImage?: boolean;
+ isVideo?: boolean;
+}
+export declare function isImageFile(item: File): boolean;
+export declare function isVideoFile(item: File): boolean;
+export declare function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, mediaType, extension, }: {
+ accept: any;
+ multiple: any;
+ capture: any;
+ compressed: any;
+ maxDuration: any;
+ sizeType: any;
+ camera: any;
+ maxCount: any;
+ mediaType: any;
+ extension: any;
+}): Promise;
diff --git a/miniprogram_npm/@vant/weapp/uploader/utils.js b/miniprogram_npm/@vant/weapp/uploader/utils.js
new file mode 100644
index 0000000..a5d49c6
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/uploader/utils.js
@@ -0,0 +1,112 @@
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
+ t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.chooseFile = exports.isVideoFile = exports.isImageFile = void 0;
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+function isImageFile(item) {
+ if (item.isImage != null) {
+ return item.isImage;
+ }
+ if (item.type) {
+ return item.type === 'image';
+ }
+ if (item.url) {
+ return (0, validator_1.isImageUrl)(item.url);
+ }
+ return false;
+}
+exports.isImageFile = isImageFile;
+function isVideoFile(item) {
+ if (item.isVideo != null) {
+ return item.isVideo;
+ }
+ if (item.type) {
+ return item.type === 'video';
+ }
+ if (item.url) {
+ return (0, validator_1.isVideoUrl)(item.url);
+ }
+ return false;
+}
+exports.isVideoFile = isVideoFile;
+function formatImage(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { type: 'image', url: item.tempFilePath || item.path, thumb: item.tempFilePath || item.path })); });
+}
+function formatVideo(res) {
+ return [
+ __assign(__assign({}, (0, utils_1.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }),
+ ];
+}
+function formatMedia(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), { type: item.fileType, url: item.tempFilePath, thumb: item.fileType === 'video' ? item.thumbTempFilePath : item.tempFilePath })); });
+}
+function formatFile(res) {
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, (0, utils_1.pickExclude)(item, ['path'])), { url: item.path })); });
+}
+function chooseFile(_a) {
+ var accept = _a.accept, multiple = _a.multiple, capture = _a.capture, compressed = _a.compressed, maxDuration = _a.maxDuration, sizeType = _a.sizeType, camera = _a.camera, maxCount = _a.maxCount, mediaType = _a.mediaType, extension = _a.extension;
+ return new Promise(function (resolve, reject) {
+ switch (accept) {
+ case 'image':
+ if (utils_1.isPC || utils_1.isWxWork) {
+ wx.chooseImage({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ sizeType: sizeType,
+ success: function (res) { return resolve(formatImage(res)); },
+ fail: reject,
+ });
+ }
+ else {
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ mediaType: ['image'],
+ sourceType: capture,
+ maxDuration: maxDuration,
+ sizeType: sizeType,
+ camera: camera,
+ success: function (res) { return resolve(formatImage(res)); },
+ fail: reject,
+ });
+ }
+ break;
+ case 'media':
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ mediaType: mediaType,
+ sourceType: capture,
+ maxDuration: maxDuration,
+ sizeType: sizeType,
+ camera: camera,
+ success: function (res) { return resolve(formatMedia(res)); },
+ fail: reject,
+ });
+ break;
+ case 'video':
+ wx.chooseVideo({
+ sourceType: capture,
+ compressed: compressed,
+ maxDuration: maxDuration,
+ camera: camera,
+ success: function (res) { return resolve(formatVideo(res)); },
+ fail: reject,
+ });
+ break;
+ default:
+ wx.chooseMessageFile(__assign(__assign({ count: multiple ? maxCount : 1, type: accept }, (extension ? { extension: extension } : {})), { success: function (res) { return resolve(formatFile(res)); }, fail: reject }));
+ break;
+ }
+ });
+}
+exports.chooseFile = chooseFile;
diff --git a/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs b/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
new file mode 100644
index 0000000..4f33462
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/add-unit.wxs
@@ -0,0 +1,12 @@
+/* eslint-disable */
+var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
+
+function addUnit(value) {
+ if (value == null) {
+ return undefined;
+ }
+
+ return REGEXP.test('' + value) ? value + 'px' : value;
+}
+
+module.exports = addUnit;
diff --git a/miniprogram_npm/@vant/weapp/wxs/array.wxs b/miniprogram_npm/@vant/weapp/wxs/array.wxs
new file mode 100644
index 0000000..610089c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/array.wxs
@@ -0,0 +1,5 @@
+function isArray(array) {
+ return array && array.constructor === 'Array';
+}
+
+module.exports.isArray = isArray;
diff --git a/miniprogram_npm/@vant/weapp/wxs/bem.wxs b/miniprogram_npm/@vant/weapp/wxs/bem.wxs
new file mode 100644
index 0000000..1efa129
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/bem.wxs
@@ -0,0 +1,39 @@
+/* eslint-disable */
+var array = require('./array.wxs');
+var object = require('./object.wxs');
+var PREFIX = 'van-';
+
+function join(name, mods) {
+ name = PREFIX + name;
+ mods = mods.map(function(mod) {
+ return name + '--' + mod;
+ });
+ mods.unshift(name);
+ return mods.join(' ');
+}
+
+function traversing(mods, conf) {
+ if (!conf) {
+ return;
+ }
+
+ if (typeof conf === 'string' || typeof conf === 'number') {
+ mods.push(conf);
+ } else if (array.isArray(conf)) {
+ conf.forEach(function(item) {
+ traversing(mods, item);
+ });
+ } else if (typeof conf === 'object') {
+ object.keys(conf).forEach(function(key) {
+ conf[key] && mods.push(key);
+ });
+ }
+}
+
+function bem(name, conf) {
+ var mods = [];
+ traversing(mods, conf);
+ return join(name, mods);
+}
+
+module.exports = bem;
diff --git a/miniprogram_npm/@vant/weapp/wxs/memoize.wxs b/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
new file mode 100644
index 0000000..8f7f46d
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/memoize.wxs
@@ -0,0 +1,55 @@
+/**
+ * Simple memoize
+ * wxs doesn't support fn.apply, so this memoize only support up to 2 args
+ */
+/* eslint-disable */
+
+function isPrimitive(value) {
+ var type = typeof value;
+ return (
+ type === 'boolean' ||
+ type === 'number' ||
+ type === 'string' ||
+ type === 'undefined' ||
+ value === null
+ );
+}
+
+// mock simple fn.call in wxs
+function call(fn, args) {
+ if (args.length === 2) {
+ return fn(args[0], args[1]);
+ }
+
+ if (args.length === 1) {
+ return fn(args[0]);
+ }
+
+ return fn();
+}
+
+function serializer(args) {
+ if (args.length === 1 && isPrimitive(args[0])) {
+ return args[0];
+ }
+ var obj = {};
+ for (var i = 0; i < args.length; i++) {
+ obj['key' + i] = args[i];
+ }
+ return JSON.stringify(obj);
+}
+
+function memoize(fn) {
+ var cache = {};
+
+ return function() {
+ var key = serializer(arguments);
+ if (cache[key] === undefined) {
+ cache[key] = call(fn, arguments);
+ }
+
+ return cache[key];
+ };
+}
+
+module.exports = memoize;
diff --git a/miniprogram_npm/@vant/weapp/wxs/object.wxs b/miniprogram_npm/@vant/weapp/wxs/object.wxs
new file mode 100644
index 0000000..e077107
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/object.wxs
@@ -0,0 +1,13 @@
+/* eslint-disable */
+var REGEXP = getRegExp('{|}|"', 'g');
+
+function keys(obj) {
+ return JSON.stringify(obj)
+ .replace(REGEXP, '')
+ .split(',')
+ .map(function(item) {
+ return item.split(':')[0];
+ });
+}
+
+module.exports.keys = keys;
diff --git a/miniprogram_npm/@vant/weapp/wxs/style.wxs b/miniprogram_npm/@vant/weapp/wxs/style.wxs
new file mode 100644
index 0000000..d88ca7c
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/style.wxs
@@ -0,0 +1,42 @@
+/* eslint-disable */
+var object = require('./object.wxs');
+var array = require('./array.wxs');
+
+function kebabCase(word) {
+ var newWord = word
+ .replace(getRegExp("[A-Z]", 'g'), function (i) {
+ return '-' + i;
+ })
+ .toLowerCase()
+
+ return newWord;
+}
+
+function style(styles) {
+ if (array.isArray(styles)) {
+ return styles
+ .filter(function (item) {
+ return item != null && item !== '';
+ })
+ .map(function (item) {
+ return style(item);
+ })
+ .join(';');
+ }
+
+ if ('Object' === styles.constructor) {
+ return object
+ .keys(styles)
+ .filter(function (key) {
+ return styles[key] != null && styles[key] !== '';
+ })
+ .map(function (key) {
+ return [kebabCase(key), [styles[key]]].join(':');
+ })
+ .join(';');
+ }
+
+ return styles;
+}
+
+module.exports = style;
diff --git a/miniprogram_npm/@vant/weapp/wxs/utils.wxs b/miniprogram_npm/@vant/weapp/wxs/utils.wxs
new file mode 100644
index 0000000..f66d33a
--- /dev/null
+++ b/miniprogram_npm/@vant/weapp/wxs/utils.wxs
@@ -0,0 +1,10 @@
+/* eslint-disable */
+var bem = require('./bem.wxs');
+var memoize = require('./memoize.wxs');
+var addUnit = require('./add-unit.wxs');
+
+module.exports = {
+ bem: memoize(bem),
+ memoize: memoize,
+ addUnit: addUnit
+};
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..a89e6cf
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,24 @@
+{
+ "name": "hrsmini",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "": {
+ "dependencies": {
+ "@vant/weapp": "^1.11.4"
+ }
+ },
+ "node_modules/@vant/weapp": {
+ "version": "1.11.4",
+ "resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.11.4.tgz",
+ "integrity": "sha512-egOsWO4hVMP1SQSqQ46jy8UD3WysvlnUecRzPM21Y3ovkOFZ6wlaO7oHQmTXRpwr+V41Qri1qEbtNjhVxFqdyw=="
+ }
+ },
+ "dependencies": {
+ "@vant/weapp": {
+ "version": "1.11.4",
+ "resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.11.4.tgz",
+ "integrity": "sha512-egOsWO4hVMP1SQSqQ46jy8UD3WysvlnUecRzPM21Y3ovkOFZ6wlaO7oHQmTXRpwr+V41Qri1qEbtNjhVxFqdyw=="
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..ffdc5e2
--- /dev/null
+++ b/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "@vant/weapp": "^1.11.4"
+ }
+}
diff --git a/pages/QA/QA.js b/pages/QA/QA.js
new file mode 100644
index 0000000..d574fb3
--- /dev/null
+++ b/pages/QA/QA.js
@@ -0,0 +1,138 @@
+// pages/QA/QA.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ questions: [],
+ showQuestions: [],
+ },
+ chooseYes(e) {
+ var departmentname = e.currentTarget.dataset.departmentname
+ wx.navigateTo({
+ url: '/pages/QAresult/Qaresult?departmentname=' + departmentname,
+ })
+ // console.log()
+ },
+ chooseNo(e) {
+ var tempList = this.data.showQuestions;
+ let a = tempList[tempList.length-1]
+ if(a.isLaseted=="1"){
+ var departmentname = e.currentTarget.dataset.departmentname
+ wx.navigateTo({
+ url: '/pages/QAresult/Qaresult?departmentname=' + departmentname,
+ })
+ return
+ }
+ for (var i = 0; i < tempList.length; i++) {
+ tempList[i]['isChoose'] = '1'
+ }
+ var tempData = this.data.questions.slice(tempList.length, tempList.length + 1)
+ console.log(tempData)
+ if (this.data.questions.length - tempList.length == 1) { //最后一个
+ console.log(tempData[0])
+ tempData[0]['isChoose'] = "0"
+ tempData[0]['isLaseted'] = "1"
+ } else {
+ tempData[0]['isChoose'] = '0';
+ tempData[0]['isLaseted'] = '0';
+ }
+ tempList.push(tempData[0])
+ console.log(tempList)
+ this.setData({
+ showQuestions: tempList
+ })
+ console.log("选择了否")
+ },
+ getQuestions(childid) {
+ // var childid = e.currentTarget.dataset.childid
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getQuestions',
+ method: "GET",
+ data: {
+ childId: childid,
+ },
+ success: res => {
+ this.setData({
+ questions: JSON.parse(res.data.data)
+ })
+ var temp = this.data.questions.slice(0, 1)
+ if (this.data.questions.length == 1) {
+ // 新增是否被选择过的状态,新增最后一个数组的状态
+ temp[0]['isChoose'] = "0"
+ temp[0]['isLaseted'] = "1"
+ console.log(temp)
+ } else {
+ temp[0]['isChoose'] = "0"
+ temp[0]['isLaseted'] = "0"
+ }
+ console.log(temp[0])
+ this.setData({
+ showQuestions: temp
+ })
+ console.log(this.data.showQuestions)
+ }
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ var childid = options.childid
+ // console.log(options.childid)
+ this.getQuestions(childid)
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '自测分诊'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/QA/QA.json b/pages/QA/QA.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/QA/QA.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/QA/QA.wxml b/pages/QA/QA.wxml
new file mode 100644
index 0000000..56d3fb2
--- /dev/null
+++ b/pages/QA/QA.wxml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.question}}
+
+
+ 是
+
+ 否
+
+
+
+
+
+
+
+
+ 否
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/QA/QA.wxss b/pages/QA/QA.wxss
new file mode 100644
index 0000000..439a3fe
--- /dev/null
+++ b/pages/QA/QA.wxss
@@ -0,0 +1,129 @@
+.chat_container {
+ width: 100vw;
+ height: 100vh;
+ background-color: #f6f6f6;
+}
+
+.qa_container {
+ width: 100vw;
+ height: 35vh;
+ /* background-color: #ffffff; */
+}
+
+.q_container {
+ width: 100vw;
+}
+
+.q_arrange {
+ /* height: 10vh; */
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ border-radius: 20rpx;
+ margin: 20rpx 20rpx 20rpx 20rpx;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+}
+
+.q_question_row {
+ width: 90vw;
+ display: flex;
+ flex-direction: column;
+ background-color: #ffffff;
+ border-radius: 3%;
+}
+
+.q_content {
+ text-align: center;
+ font-size: small;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+}
+
+.q_radio {
+ display: flex;
+ flex-direction: row;
+ height: 10vh;
+ font-size: small;
+ text-align: center;
+ align-items: center;
+ justify-content: center;
+
+}
+
+.q_radio_y {
+ width: 8vw;
+ height: 4vh;
+ border: solid 1rpx #69a4cc;
+ border-radius: 40%;
+ display: flex;
+ margin-right: 10vw;
+ align-items: center;
+ justify-content: center;
+ color: #6883ec;
+ /* width: ; */
+}
+
+.q_radio_n {
+ width: 8vw;
+ height: 4vh;
+ border: solid 1rpx #69a4cc;
+ border-radius: 40%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #6883ec;
+ /* width: ; */
+}
+
+.q_icon_class {
+ width: 10vw;
+ height: 6vh;
+ margin: 10rpx 10rpx 10rpx 10rpx;
+ padding: 5rpx 5rpx 5rpx 5rpx;
+ /* background-color: green; */
+}
+
+.q_icon {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4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KnqDXq/2GSA6OvpDQOipoXIwIjQQDn6U3iyTCEO8dpLwWhw4a4CoYQsyZhOAscRje/Cns9+kb/vqgeHyHDC+y2AwHPEpAtEqVRUADLvjWpAaZ8r88xNihK5Mk66CQxfXAk/UF8JpPoNafvbORt1W5+nEe152HWNEDgswRBoNmEJqtTqRw3jEJwPrHlhU9sKTy66u7WVTLuOA6X2O6pC5vBYsejcUy3EdD6d/0Fl0rkY5rPgrBoOm0YAASpVqMwLw6Uvi7lfXHLtzQYJ3RsIhi6qBkl0RyDkvoaajkcDR7svn38yqO5Bb7J5uR1oQwFK9Xv+v/vYDAkSrVHkAcHV6HMZLxtZHjy6ZN+223maYktsgZJ57K4ZMJTXQfWmKp57F2Prqzv0de7PzI0YK8J9P/lur9frXRgrg+onAiErag4sqn3ti2bUnWa5nYUJKKRDCNtR2gte/M4bheBu2fiY9elrXdyoezCvGhw0Gw7L+1f8Gi6JtbeKcZdoAAAAASUVORK5CYII=);
+ background-repeat: no-repeat;
+ background-position: center;
+ border-radius: 50%;
+}
+
+.answer_icon_class {
+ width: 10vw;
+ height: 6vh;
+ margin: 10rpx 10rpx 10rpx 10rpx;
+ padding: 5rpx 5rpx 5rpx 5rpx;
+}
+
+.answer_icon {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACFVJREFUaEO1WQt0VMUZ/uZusncuhC0J4eQhBwKJpZW0IRzKIwGCxQCVSjkKLY2ERmJDxRYRTQ0lWgqIgdp6rJ4iPYhAjwqkKEWkKKSlhoRnwsMIhiAYShKIkV0Tkr13H3fq3SQLyb5mVphz9uzZne///v+bmTt3/n8IbkNzOBzpuq5PJISMAvAdxthYP7RnAVwghJxmjB2WZbmMEOL4pu5JuASapqUyxnIJIQWMsf5h8pQSQt6SZXlXmPYQFtDR0ZEpSdJSAA+G69SP3QUAL1JKN4hycgtgjMVqmlYCIF/UCS+eEFLFGCumlO7jtuEBapo2+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ThujLHJiqL8tzfAr4AbN27ERURElAO424fx+CnA+DS3BJ0klhQNFkMBCZDOtQDtzuCTGhsDZI4B0lN9cIyxPEVRtvgjCHbBYQT/vldE1RnA+DTyXWLwLEG/AQ1PBps0DrjLu5stopSuD8QX9IrJbrcPkSRpG9uxexw+qQ03pvDsJmeAZY0POPJ+dyF/nuxFq98ggM/FQnhRiVnpJgzq83xx54kwQAt+ybdszUwwnb/MLBZfSDQBNsklxUHvK4ILKHr+EMAyQ3q6owA2jZY8+6HwDLDCdfGaydF0R2PjICcgv5NLlr8gLKC9aGW6CZJw0ZcjJiEIA7YrJcVzhQXYi1ZNJiD/EfJ2Z8AHaUnxvYGo/w81xSvdD+KsRwAAAABJRU5ErkJggg==);
+ background-repeat: no-repeat;
+ background-position: center;
+ border-radius: 50%;
+
+}
+
+.answer_no {
+ width: 10vw;
+ background-color: #ffffff;
+ text-align: center;
+ font-size: small;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+}
+
+.answer_arrange {
+ display: flex;
+ float: right;
+ flex-direction: row;
+ align-items: center;
+ border-radius: 20rpx;
+ margin: 20rpx 20rpx 20rpx 20rpx;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+
+}
+.answer-active {
+ background-color: grey;
+ color: grey;
+ pointer-events: none;
+}
diff --git a/pages/QAresult/Qaresult.js b/pages/QAresult/Qaresult.js
new file mode 100644
index 0000000..b9e823f
--- /dev/null
+++ b/pages/QAresult/Qaresult.js
@@ -0,0 +1,70 @@
+// pages/QAresult/Qaresult.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ departmentnameList: []
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ var departmentnames = options.departmentname
+ console.log(departmentnames)
+ this.setData({
+ departmentnameList: departmentnames.split(',')
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/QAresult/Qaresult.json b/pages/QAresult/Qaresult.json
new file mode 100644
index 0000000..b55b5a2
--- /dev/null
+++ b/pages/QAresult/Qaresult.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {
+ }
+}
\ No newline at end of file
diff --git a/pages/QAresult/Qaresult.wxml b/pages/QAresult/Qaresult.wxml
new file mode 100644
index 0000000..9641559
--- /dev/null
+++ b/pages/QAresult/Qaresult.wxml
@@ -0,0 +1,18 @@
+
+
+就诊建议
+请选择下面推荐科室挂号就诊
+
+
+推荐科室
+
+
+ {{item}}
+
+
+
+
+温馨提示:
+以上推荐科室仅供参考
+
+
\ No newline at end of file
diff --git a/pages/QAresult/Qaresult.wxss b/pages/QAresult/Qaresult.wxss
new file mode 100644
index 0000000..685bd55
--- /dev/null
+++ b/pages/QAresult/Qaresult.wxss
@@ -0,0 +1,65 @@
+/* pages/QAresult/Qaresult.wxss */
+
+.result_container {
+ width: 100vw;
+ height: 100vh;
+ background-color: #f6f6f6;
+ padding: 3rpx 3rpx 3rpx 3rpx;
+ /* margin: 10rpx 10rpx 10rpx 10rpx; */
+}
+
+.suggestion_container {
+ display: flex;
+ flex-direction: column;
+ padding: 3rpx 3rpx 3rpx 3rpx;
+ /* margin: 10rpx 10rpx 10rpx 10rpx; */
+}
+
+.suggestion_class {
+ padding: 3rpx 3rpx 3rpx 3rpx;
+ font-size: x-small;
+}
+
+.suggestion_font_class {
+ height: 6vh;
+ display: flex;
+ font-size: small;
+ justify-content: flex-start;
+ align-items: center;
+ background-color: #ffffff;
+ padding: 3rpx 3rpx 3rpx 3rpx;
+}
+
+.department_container{
+ display: flex;
+ flex-direction: column;
+ padding: 10rpx 10rpx 10rpx 10rpx;
+ /* margin: 10rpx 10rpx 10rpx 10rpx; */
+}
+.suggestion_department{
+ font-size: x-small;
+ padding: 3rpx 3rpx 3rpx 3rpx;
+}
+.department_list{
+ display: flex;
+ flex-direction: column;
+}
+.department_content{
+ height: 6vh;
+ display: flex;
+ font-size: small;
+ justify-content: flex-start;
+ align-items: center;
+ background-color: #ffffff;
+ padding: 3rpx 3rpx 3rpx 3rpx;
+}
+.ps_container{
+display: flex;
+}
+.question_tips{
+ font-size: x-small;
+ color: red;
+}
+.tips{
+ font-size: x-small;
+}
\ No newline at end of file
diff --git a/pages/addUserMessage/addUserMessage.js b/pages/addUserMessage/addUserMessage.js
new file mode 100644
index 0000000..0065d4c
--- /dev/null
+++ b/pages/addUserMessage/addUserMessage.js
@@ -0,0 +1,142 @@
+// pages/addUserMessage/addUserMessage.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ trueName:'',
+ carNum:'',
+ phoneNumber:""
+ },
+ getname(e) {
+ this.setData({
+ trueName: e.detail.value
+ })
+ },
+ getnum(e) {
+ this.setData({
+ carNum: e.detail.value
+ })
+ },
+ getnumber(e) {
+ this.setData({
+ phoneNumber: e.detail.value
+ })
+ },
+ saveUserMessage(){
+ if(this.data.trueName ==''||this.data.carNum ==''||this.data.phoneNumber ==''){
+ wx.showModal({
+ content: '请填写完整信息',
+ showCancel: false,
+ })
+ }else{
+ let reg =/^(((13[0-9]{1})|(14[0-9]{1})|(17[0-9]{1})|(15[0-3]{1})|(15[4-9]{1})|(18[0-9]{1})|(199))+\d{8})$/;;
+ let reg2 = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
+ if(!reg.test(this.data.phoneNumber)){
+ wx.showToast({
+ title: '请输入正确的手机号!',
+ icon:'none'
+ })
+ }else if(!reg2.test(this.data.carNum)){
+ wx.showToast({
+ title: '请输入正确的身份证号码!',
+ icon:'none'
+ })
+ }else{
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/addUser?hzxm&sfzh',
+ method:"GET",
+ data:{
+ hzxm:this.data.trueName,
+ sfzh:this.data.carNum,
+ lxdh:this.data.phoneNumber
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode ==0){
+ wx.showToast({
+ title: '建档成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+ }else{
+ wx.showToast({
+ title: res.data.errMsg,
+ icon:'error'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+ }
+ }
+ })
+ }
+ }
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '建立档案',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/addUserMessage/addUserMessage.json b/pages/addUserMessage/addUserMessage.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/addUserMessage/addUserMessage.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/addUserMessage/addUserMessage.wxml b/pages/addUserMessage/addUserMessage.wxml
new file mode 100644
index 0000000..1a6b3e4
--- /dev/null
+++ b/pages/addUserMessage/addUserMessage.wxml
@@ -0,0 +1,34 @@
+
+
+
+ 请认真填写档案信息信息
+
+
+ 姓名
+
+
+
+
+
+ 手机号
+
+
+
+
+
+ 身份证
+
+
+
+
+
+ 保存
+
+
+
\ No newline at end of file
diff --git a/pages/addUserMessage/addUserMessage.wxss b/pages/addUserMessage/addUserMessage.wxss
new file mode 100644
index 0000000..a5de561
--- /dev/null
+++ b/pages/addUserMessage/addUserMessage.wxss
@@ -0,0 +1,172 @@
+/* pages/addUserMessage/addUserMessage.wxss *//* pages/userMsgDel/userMsgDel.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+.title{
+ height: 120rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 120rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left{
+ height: 100%;
+ width: 180rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input2{
+ flex: 1;
+ height: 100%;
+ font-size: 30rpx;
+ color: #666;
+ line-height: 120rpx;
+}
+.input3{
+ flex: 1;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.sr{
+ border: 0;
+}
+.placeholder{
+ font-size: 30rpx;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.popWrap :last-child{
+ border: none;
+}
+.title1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 80rpx;
+ text-align: center
+}
+.msgItem1{
+ height: 160rpx;
+ width: 80%;
+ margin: 0 auto;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.kUp{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+}
+.k1{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #333;
+}
+.k2{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #666;
+ margin-left: 50rpx;
+}
+.KDown{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #666;
+}
+.msgItem{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ text-align: center;
+ line-height: 80rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left1{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.left1{
+ height: 100%;
+ width: 400rpx;
+}
+.switch{
+ height: 100%;
+ width: 100rpx;
+ display:flex;
+ align-items: center;
+ justify-content: center;
+}
+.msgDes{
+ height: 180rpx;
+ width: 100%;
+ padding: 20rpx 15rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ margin-top: 10rpx;
+ background: rgba(247,247,248);
+ font-size: 30rpx;
+ color: #666;
+ line-height: 50rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ margin-top: 30rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(3,112,255);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
diff --git a/pages/articleDetails/articleDetails.js b/pages/articleDetails/articleDetails.js
new file mode 100644
index 0000000..19e72f3
--- /dev/null
+++ b/pages/articleDetails/articleDetails.js
@@ -0,0 +1,104 @@
+// pages/articleDetails/articleDetails.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ hosId:'',
+ msgList:[]
+ },
+
+ getList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospitalArticle?hos_article_id=',
+ // url:'http://sayetest.f3322.org:5000/findHospitalArticle?hos_article_id',
+ method:"GET",
+ data:{
+ hos_article_id:this.data.hosId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"百科明细")
+ let data = res.data
+ data.map((item,index) => {
+ let str = item.IMG
+ let str2 = item.CONTENT
+
+ var html2 = str2.replaceAll("/showFile",'https://fy.btlsoln.com:8443/showFile')
+ var html3 = html2.replaceAll("
+
+
+
+ {{item.TITLE}}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/articleDetails/articleDetails.wxss b/pages/articleDetails/articleDetails.wxss
new file mode 100644
index 0000000..fe8c0cf
--- /dev/null
+++ b/pages/articleDetails/articleDetails.wxss
@@ -0,0 +1,57 @@
+/* pages/articleDetails/articleDetails.wxss */
+.banner{
+ margin: 30rpx 0;
+ width: 750rpx;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+.titleWrap{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+}
+.title{
+ height: 80rpx;
+ width: 100%;
+ font-size: 38rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.dateWrap{
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 100%;
+ display: flex;
+ font-size: 30rpx;
+ color: #666;
+}
+.ml{
+ margin-left: 30rpx;
+}
+.imgWrap{
+ height: 350rpx;
+ width: 100%;
+ margin-top: 20rpx;
+}
+.img{
+ height: 350rpx;
+ border-radius: 15rpx;
+}
+.imgWrap image{
+ height: 100%;
+ width:100%;
+ border-radius: 15rpx;
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+
+.msgWrap{
+ width: 100%;
+ margin-top: 20rpx;
+ color: #555;
+ font-size: 35rpx;
+ line-height: 180%
+}
\ No newline at end of file
diff --git a/pages/bgMsg/bgMsg.js b/pages/bgMsg/bgMsg.js
new file mode 100644
index 0000000..a26e741
--- /dev/null
+++ b/pages/bgMsg/bgMsg.js
@@ -0,0 +1,330 @@
+// pages/bgMsg/bgMsg.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ date: '',
+ show: false,
+ list:'',
+ minDate: new Date(2010, 0, 1).getTime(),
+ maxDate: new Date().getTime(),
+ currentDate: new Date().getTime(),
+ ksrq:'',
+ jsrq:'',
+ date1:'',//弹框开始日期
+ date2:"",//弹框结束日期
+ date3:"",//按钮显示开始日期
+ date4:"",//按钮显示结束日期
+ isSel:"0",
+ cardNum:'',
+ flag:'',
+ loadingHidden:true,
+ rqList:[
+ {name:'近一周',id:"0"},
+ {name:'近一月',id:"1"},
+ {name:'近半年',id:"2"},
+ {name:'近一年',id:"3"},
+ ],
+ curId:0,
+ },
+ daySGone(p_count){
+ var dd = new Date();
+ var tt = new Date();
+ dd.setDate(dd.getDate() - p_count);//获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var m = dd.getMonth() + 1;//获取当前月份的日期
+ var mm = tt.getMonth() + 1;//获取当前月份的日期
+ if( m <10){
+ m = '0'+m;
+ }
+ if( mm <10){
+ mm = '0'+mm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ if( d <10){
+ d = '0'+d;
+ }
+ if( dd <10){
+ dd = '0'+dd;
+ }
+ console.log( y + "-" + m + "-" + d,"前面日期")
+ console.log( yy + "-" + mm + "-" + dd,"当前日期")
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g,'')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g,'')
+ this.setData({
+ date3:ago,
+ date4:today
+ })
+ this.getList(agoStr,todayStr)
+ },
+ rqSel(e){
+ console.log(e.currentTarget.dataset.item.id)
+ let id = e.currentTarget.dataset.item.id
+ this.setData({
+ curId:id,
+ loadingHidden:false
+ })
+ if(id == 0){
+ this.daySGone(7)
+ }else if(id == 1){
+ this.daySGone(30)
+ }else if(id == 2){
+ this.daySGone(180)
+ }else{
+ this.daySGone(365)
+ }
+ },
+ // 初始化弹框以及接口时间
+ InitDays() {
+ var dd = new Date();
+ var tt = new Date();
+ var d7 = new Date();
+ dd.setDate(dd.getDate() - 30);//获取p_count天后的日期
+ d7.setDate(d7.getDate() - 7);//获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var yyy = d7.getFullYear();
+ var m = dd.getMonth() + 1;//获取当前月份的日期
+ var mm = tt.getMonth() + 1;//获取当前月份的日期
+ var mmm = d7.getMonth() + 1;//获取当前月份的日期
+ if( m <10){
+ m = '0'+m;
+ }
+ if( mm <10){
+ mm = '0'+mm;
+ }
+ if( mmm <10){
+ mmm = '0'+mmm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ var ddd = d7.getDate();
+ if( d <10){
+ d = '0'+d;
+ }
+ if( dd <10){
+ dd = '0'+dd;
+ }
+ if( ddd <10){
+ ddd = '0'+ddd;
+ }
+ //前一月
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g,'')
+ //前一周
+ let DS = yyy + "-" + mmm + "-" + ddd
+ let dsStr = DS.replace(/-/g,'')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g,'')
+ var cur = Date.parse(ago);
+ this.setData({
+ date1:ago,//弹框时间
+ date2:today,//弹框时间
+ date3:DS,
+ date4:today,
+ currentDate:cur,//当前激活时间
+ ksrq:dsStr,
+ jsrq:todayStr,
+ })
+ },
+ dateSel() {
+ this.setData({ show: true });
+ },
+ onClose() {
+ this.setData({ show: false });
+ },
+ onConfirm() {
+ let ksrq = this.data.ksrq
+ let jsrq = this.data.jsrq
+ if(ksrq == '' || jsrq ==''){
+ wx.showToast({
+ title: '日期不完整',
+ icon:"error"
+ })
+ }else{
+ // 开始日期小于结束日期
+ if(Number(ksrq) <= Number(jsrq)){
+ this.setData({
+ show: false,
+ loadingHidden: false,
+ curId:'',
+ date3:this.data.date1,
+ date4:this.data.date2
+ });
+ this.getList(ksrq,jsrq)
+ }else{
+ wx.showToast({
+ title: '日期格式错误',
+ icon:"error"
+ })
+ }
+ }
+ },
+ onInput(event){
+ var timestamp = event.detail;
+ var d = new Date(timestamp * 1);
+ var y = d.getFullYear()
+ var m = d.getMonth() + 1
+ var t = d.getDate()
+ var date = y+ "-" +(m > 9 ? m : "0" + m) +"-" +(t > 9 ? t : "0" + t)
+ let date2 = date.replace(/-/g,'')
+ console.log(date2)
+ if(this.data.isSel == 0){
+ this.setData({
+ date1:date,
+ ksrq:date2
+ })
+ }else if(this.data.isSel == 1){
+ this.setData({
+ date2:date,
+ jsrq:date2
+ })
+ }
+ },
+ date1Sel(e){
+ console.log(e.currentTarget.dataset.id)
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel:id
+ })
+ },
+ date2Sel(e){
+ console.log(e.currentTarget.dataset.id)
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel:id
+ })
+ },
+ getList(ksrq,jsrq){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getInspectReport?cardno&ksrq&jsrq&lb&brlx&bglx',
+ method:"GET",
+ data:{
+ ksrq:ksrq,
+ jsrq:jsrq,
+ cardno:this.data.cardNum,
+ bglx:this.data.id,
+ lb:'0',
+ brlx:"1",
+ id:''
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ let that = this
+ setTimeout(function(){
+ console.log(11111)
+ let data = res.data.list
+ data.map((item,index) => {
+ let num = item.reprq
+ var year = String(num).substr(0,4)
+ var month = String(num).substr(4,5).substr(0,2)
+ var date = String(num).substr(6,7).substr(0,2)
+ var time = String(num).substr(8,14)
+ var result2 = year+'-'+ month +'-'+date+'-'+time
+ item.reprq = result2
+ return data
+ })
+ if(data == ''){
+ that.setData({
+ flag:false,
+ })
+ }else{
+ that.setData({
+ flag:true,
+ list:res.data.list
+ })
+ }
+ that.setData({
+ loadingHidden: true
+ });
+ }, 500);
+ console.log(this.data.list,"报告")
+ }
+ })
+ },
+ navitoMsg(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let name = item.hzxm
+ let sex = item.sex
+ let age = item.age
+ let HisOrderName = item.HisOrderName
+ let repno = item.repno
+ let reprq = item.reprq
+ let cardno = item.cardno
+ let id = this.data.id
+ wx.navigateTo({
+ url: '/pages/bgXq/bgXq?name='+name+'&sex='+sex+'&age='+age+'&HisOrderName='+HisOrderName+'&repno='+repno+'&reprq='+reprq+'&cardno='+cardno+'&id='+id
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ console.log(options,'options')
+ this.setData({
+ cardNum:options.cardNum,
+ id:options.id,
+ loadingHidden: false,
+ })
+ this.getList()
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ this.InitDays()
+ wx.setNavigationBarTitle({
+ title: '报告查询',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/bgMsg/bgMsg.json b/pages/bgMsg/bgMsg.json
new file mode 100644
index 0000000..5e24167
--- /dev/null
+++ b/pages/bgMsg/bgMsg.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/bgMsg/bgMsg.wxml b/pages/bgMsg/bgMsg.wxml
new file mode 100644
index 0000000..88ced6c
--- /dev/null
+++ b/pages/bgMsg/bgMsg.wxml
@@ -0,0 +1,55 @@
+
+
+
+
+
+ {{item.name}}
+
+
+
+ {{date3}}
+ 至
+ {{date4}}
+
+
+ 选择时间
+
+
+
+
+ 加载中...
+
+
+
+ {{item.sjksmc}}
+
+
+ {{item.jcksmc}} {{item.HisOrderName}}
+ {{item.reprq}}
+
+ 查看详情
+
+
+
+ 暂无数据
+
+
+
+
+
+ {{date1}}
+ 至
+ {{date2}}
+
+
+
\ No newline at end of file
diff --git a/pages/bgMsg/bgMsg.wxss b/pages/bgMsg/bgMsg.wxss
new file mode 100644
index 0000000..45f4bb7
--- /dev/null
+++ b/pages/bgMsg/bgMsg.wxss
@@ -0,0 +1,172 @@
+/* pages/bgMsg/bgMsg.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.btnWrap{
+ height: 160rpx;
+ width: 100%;
+}
+.gdrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.dtrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.timeMsg{
+ height: 60rpx;
+ width: 450rpx;
+ font-size: 30rpx;
+ border-radius: 30rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.itemTi{
+ height: 100%;
+ width: 45%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.itemT{
+ height: 100%;
+ width: 10%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.btn1{
+ height: 60rpx;
+ width: 160rpx;
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ font-size: 32rpx;
+}
+.mr{
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.ac{
+ color: #fff;
+ background: rgba(0,110,255);
+}
+.btn2{
+ height: 60rpx;
+ width: 220rpx;
+ margin-left: 50rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.icon2{
+ height: 30rpx;
+ width: 30rpx;
+ margin-left: 10rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUhJREFUWEftlT1SwzAQhd9zQx+VdEDMEeiSO0AHJ3DIJBUcAiqYEJ8AOrhD0nEEHKCjVHoaL2NBZhKwLf8oCYXV2nr7zUrfitjy4pbrowFoOtB04P90QIWvAxHpb2IukBzp4OA2qbXSgdY4ugJ4sV4IuZ73/MtFjT9HoMazewFO1wFB4EH32mfL2al3oBXOJhB0nEIQ03nQ7v7OTAVQ4cuuiDcFsOcI4p2MOzo4/CgEkPykRtERPE4E2KkDQeATsXR1339Oy8nVUN29HQvjx1oA4p3o8/2nrAzrHPjR86YKBMnhQrfKAMnGanqu6lYLwNyJEnqm6VYbwHSiiJ4ZujkBKKBnpm5OAPL0tOnmDMBApOhJi25OAQxEGA1EaPQkZagD37xuZZd1DuQFfusJLL9uGwUoW6z0KHZRwJZR6whs4UW+NwBNB74ADGh0IdudMasAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+.item{
+ height: 220rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+}
+.zw{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 33rpx;
+ color: #666;
+}
+.title{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.msgWrap{
+ flex: 1;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.msgLeft{
+ height: 100%;
+ width: 70%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+.text{
+ height: 50%;
+ width: 100%;
+ font-size: 30rpx;
+ color: #666;
+ display: flex;
+ align-items: center;
+}
+.msgRight{
+ height: 100%;
+ width: 30%;
+ font-size: 33rpx;
+ color: rgba(0,110,255);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.dateWrap{
+ height: 80rpx;
+ width: 80%;
+ margin: 50rpx auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.dateItem{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: rgba(0,110,255);
+ background: rgba(230,241,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
+.dateActive{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: #fff;
+ background: rgba(0,110,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
\ No newline at end of file
diff --git a/pages/bgXq/bgXq.js b/pages/bgXq/bgXq.js
new file mode 100644
index 0000000..85a4fa4
--- /dev/null
+++ b/pages/bgXq/bgXq.js
@@ -0,0 +1,105 @@
+// pages/bgXq/bgXq.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ name:'',
+ sex:'',
+ age:'',
+ reprq:'',
+ HisOrderName:'',
+ list:[]
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ console.log(options,"接受")
+ this.setData({
+ name:options.name,
+ sex:options.sex,
+ age:options.age,
+ reprq:options.reprq,
+ HisOrderName:options.HisOrderName,
+ id:options.id
+ })
+ let repno = options.repno
+ let cardno = options.cardno
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getInspectReport?cardno&ksrq&repno&jsrq&lb&brlx',
+ method:"GET",
+ data:{
+ ksrq:'',
+ jsrq:'',
+ repno:repno,
+ cardno:cardno,
+ lb:'1',
+ brlx:"1"
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"报告详情")
+ this.setData({
+ list:res.data.list
+ })
+ }
+ })
+ wx.setNavigationBarTitle({
+ title: '报告详情',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/bgXq/bgXq.json b/pages/bgXq/bgXq.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/bgXq/bgXq.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/bgXq/bgXq.wxml b/pages/bgXq/bgXq.wxml
new file mode 100644
index 0000000..7af0ea1
--- /dev/null
+++ b/pages/bgXq/bgXq.wxml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ 姓名:{{name}}
+ 性别:{{sex}}
+ 年龄:{{age}}
+
+ 报告日期:{{reprq}}
+
+
+
+ {{item.xmdm}}:{{item.xmjg}}
+
+
+
+
+ 名称
+ 代码
+ 结果
+ 单位
+ 参考值
+
+
+ {{item.xmmc}}
+ {{item.xmdm}}
+ {{item.xmjg}}
+ {{item.xmdw}}
+ {{item.jgckz}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/bgXq/bgXq.wxss b/pages/bgXq/bgXq.wxss
new file mode 100644
index 0000000..79aaadf
--- /dev/null
+++ b/pages/bgXq/bgXq.wxss
@@ -0,0 +1,102 @@
+/* pages/bgXq/bgXq.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.item1{
+ height: 200rpx;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ background: rgba(245,249,255);
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ display: flex;
+ flex-direction: column;
+}
+.up{
+ height: 50%;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 35rpx;
+ color: #333;
+}
+
+.down{
+ height: 50%;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ font-size: 30rpx;
+ color: #666;
+}
+.item2{
+ width: 100%;
+ margin-top: 50rpx;
+ padding: 10rpx 20rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ background: #fff;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.msgItem{
+ width: 100%;
+ display: flex;
+ padding: 20rpx 0;
+ font-size: 33rpx;
+ color: #666;
+}
+.item3{
+ width: 100%;
+ margin-top: 50rpx;
+ border-radius: 10rpx;
+ background: #fff;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+}
+
+.xmTitle{
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ border-bottom: 1rpx solid #e2e2e2;
+}
+.xmMsg{
+ width: 100%;
+ display: flex;
+ padding: 0 20rpx;
+ box-sizing: border-box;
+ align-items: center;
+ border-bottom: 1rpx solid #e2e2e2;
+}
+.xmMsg view{
+ width: 20%;
+ padding: 20rpx 0;
+ word-wrap:break-word;
+ font-size: 25rpx;
+ color: #333;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.xmTitle view{
+ height: 100rpx;
+ width: 20%;
+ font-size: 30rpx;
+ color: #666;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
diff --git a/pages/bookingDetails/bookingDetails.js b/pages/bookingDetails/bookingDetails.js
new file mode 100644
index 0000000..391373a
--- /dev/null
+++ b/pages/bookingDetails/bookingDetails.js
@@ -0,0 +1,135 @@
+// pages/bookingDetails/bookingDetails.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ showData: {},
+ showDatas: [],
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ console.log(options)
+ this.setData({
+ showData: JSON.parse(options.item)
+ })
+ this.getShowDataPlugs()
+ },
+ getShowDataPlugs() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/booking/getDoctorScheduling?selectDate&selectKmdm',
+ method: "GET",
+ data: {
+ selectDate: this.data.showData.selectDate,
+ selectKmdm: this.data.showData.ysdm
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, "获取号源")
+ this.setData({
+ showDatas: res.data.list
+ })
+ }
+ })
+ },
+ naviToyy(e) { //调用预约接口,成功后跳转到预约成功页面
+ const bookIngDate =e.currentTarget.dataset.item.kssj;
+ let pbmxid = e.currentTarget.dataset.item.pbmxid
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/order?patid&pbmxid&czyh&yyhx&ksmc&ksdm&sjdjl&cardNo&patientName',
+ method: "GET",
+ data: {
+ pbmxid: pbmxid,
+ patid: wx.getStorageSync("painId"),
+ czyh: '01',
+ yyhx: "0",
+ ksmc: this.data.showData.ksmc,
+ ksdm: this.data.showData.ksdm,
+ sjdjl: bookIngDate,
+ jssj: e.currentTarget.dataset.item.jssj,
+ zxrq: e.currentTarget.dataset.item.zxrq,
+ cardNo: wx.getStorageSync('cardNo'),
+ patientName: wx.getStorageSync('trueName'),
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.setStorageSync('ksmc', this.data.showData.ksmc)
+ wx.setStorageSync('day', e.currentTarget.dataset.item.zxrq)
+ wx.setStorageSync('date', bookIngDate)
+ wx.setStorageSync('sjd', bookIngDate + '-' + e.currentTarget.dataset.item.jssj)
+ wx.setStorageSync('today', bookIngDate)
+ wx.setStorageSync('money', e.currentTarget.dataset.item.ghf)
+ wx.setStorageSync('sfId', wx.getStorageSync('sfId1'))
+ wx.setStorageSync('name', wx.getStorageSync('trueName'))
+ wx.setStorageSync('xh', res.data.list[0].xh)
+ wx.navigateTo({
+ url: '/pages/resInformation/resInformation',
+ })
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: "none"
+ })
+ }
+ },
+ fail(err) {}
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/bookingDetails/bookingDetails.json b/pages/bookingDetails/bookingDetails.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/bookingDetails/bookingDetails.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/bookingDetails/bookingDetails.wxml b/pages/bookingDetails/bookingDetails.wxml
new file mode 100644
index 0000000..49a01c4
--- /dev/null
+++ b/pages/bookingDetails/bookingDetails.wxml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+ {{showData.ysmc}}
+
+
+
+
+ {{showData.introduction}}
+
+
+
+
+
+
+
+
+
+
+
+ 预约
+
+
+
\ No newline at end of file
diff --git a/pages/bookingDetails/bookingDetails.wxss b/pages/bookingDetails/bookingDetails.wxss
new file mode 100644
index 0000000..cfaa256
--- /dev/null
+++ b/pages/bookingDetails/bookingDetails.wxss
@@ -0,0 +1,17 @@
+/* pages/bookingDetails/bookingDetails.wxss */
+.booking_confirm .van-button{
+
+ display: flex;
+ align-items: center;
+ margin-top: 1vh;
+}
+.name_title {
+ width: 35vw;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+}
+.details_class{
+ width: 30vw;
+}
\ No newline at end of file
diff --git a/pages/callnumber/callnumbers.js b/pages/callnumber/callnumbers.js
new file mode 100644
index 0000000..8b78ab3
--- /dev/null
+++ b/pages/callnumber/callnumbers.js
@@ -0,0 +1,234 @@
+// pages/callnumber/callnumbers.js
+import Dialog from '../../miniprogram_npm/@vant/weapp/dialog/dialog';
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ callNumberList: [],
+ show: false,
+ list: [],
+ name: '',
+ painId: '',
+ relate: '',
+ card: '', //sfz
+ cardNum: '', //jzk
+ cardType: '',
+ loadingHidden: true,
+
+ },
+ showPop() {
+ this.setData({
+ show: true
+ });
+ },
+ onClose() {
+ this.setData({
+ show: false
+ });
+ },
+ async confirm(e) {
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name: user.TRUE_NAME,
+ painId: user.PATIENT_ID,
+ relate: user.RELATE,
+ card: user.ID_CARD,
+ cardNum: user.MEDICAL_CARD,
+ cardType: user.CARD_TYPE,
+ show: false,
+ loadingHidden: false,
+ });
+ await this.getCallNumbers()
+ },
+ getPerList() {
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let data = res.data
+ console.log(data)
+ data.map((item, index) => {
+ if (item.TYPE == 0) {
+ this.setData({
+ name: item.TRUE_NAME,
+ painId: item.PATIENT_ID,
+ relate: item.RELATE,
+ cardNum: item.MEDICAL_CARD,
+ cardType: item.CARD_TYPE,
+ card: item.ID_CARD
+ })
+ }
+ })
+ if (res.data.length > 0) {
+ this.setData({
+ list: data
+ })
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ resolve("ok");
+ }
+ })
+ })
+ },
+ getCallNumbers() {
+ if (this.data.card && this.data.name) {
+
+ this.setData({
+ loadingHidden: false,
+ })
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/callNumbers/getCallNumberByIdentity',
+ method: "GET",
+ data: {
+ identity: this.data.cardNum,
+ sfzh: this.data.card,
+ // identity: wx.getStorageSync('cardNo'),
+ // sfzh: wx.getStorageSync("sfId1")
+ },
+ success: res => {
+ if (res.data.data == null) {
+ this.setData({
+ loadingHidden: true,
+ callNumberList: [],
+ })
+ // this.setData({
+
+ // })
+ wx.showToast({
+ title: '未获取到信息',
+ icon: 'error'
+ })
+ // Dialog.alert({
+ // title: '提示',
+ // message: '未查询到数据,请将当前就诊人设为默认就诊人,再进行查询',
+ // }).then(() => {
+ // wx.navigateTo({
+ // url: '/pages/userMgr/userMgr',
+ // })
+ // // on close
+ // });
+ } else {
+ // this.setData({
+
+ // })
+ this.setData({
+ loadingHidden: true,
+ callNumberList: JSON.parse(res.data.data)
+ })
+ }
+ resolve("ok")
+ }
+ })
+ })
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+
+ },
+
+ async getInitData() {
+ await this.getPerList()
+ await this.getCallNumbers()
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.getInitData()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '门诊排队查询'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/callnumber/callnumbers.json b/pages/callnumber/callnumbers.json
new file mode 100644
index 0000000..3483883
--- /dev/null
+++ b/pages/callnumber/callnumbers.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-dialog": "@vant/weapp/dialog/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/callnumber/callnumbers.wxml b/pages/callnumber/callnumbers.wxml
new file mode 100644
index 0000000..98f2792
--- /dev/null
+++ b/pages/callnumber/callnumbers.wxml
@@ -0,0 +1,82 @@
+
+
+
+
+
+ {{name}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+
+
+
+ {{cardNum}}
+ 切换就诊人
+
+
+ 加载中...
+
+
+
+
+
+
+
+ {{item.diagnosticNO}}
+
+
+
+
+ {{item.keshimc}}
+
+
+
+
+ {{item.doctorName}}
+
+
+
+
+
+
+ {{item.adiagnosticStatus}}
+
+
+
+ {{item.callNo-item.minCallNo}}
+
+
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/callnumber/callnumbers.wxss b/pages/callnumber/callnumbers.wxss
new file mode 100644
index 0000000..3237b70
--- /dev/null
+++ b/pages/callnumber/callnumbers.wxss
@@ -0,0 +1,167 @@
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.callNumbersClass {
+ width: 95vw;
+ background-color: #ffffff;
+ margin: 2vw 2vw 2vw 2vw;
+ padding: 5rpx 5rpx 5rpx 5rpx;
+ border-radius: 20rpx;
+}
+.callNumbers {
+ display: flex;
+ width: 94vw;
+ /* justify-content: center; */
+ /* align-items: center; */
+}
+.callNumbersHeader {
+ width: 47vw;
+ height: 5vh;
+ font-size: small;
+}
+
+.callNumbersEnd {
+ width: 47vw;
+ height: 5vh;
+ font-size: small;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 30rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ margin-right: 50rpx;
+ border-radius: 50%;
+ background-color: rgba(0,110,255);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
+ background-size:100%;
+ background-repeat: no-repeat;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: none;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
\ No newline at end of file
diff --git a/pages/category/category.js b/pages/category/category.js
new file mode 100644
index 0000000..a72c98f
--- /dev/null
+++ b/pages/category/category.js
@@ -0,0 +1,226 @@
+var util = require('../../utils/util.js');
+var api = require('../../config/api.js');
+
+var app = getApp();
+Page({
+ data: {
+ //已选的项目
+ disablecheck : true,
+ //上一个页面带来的信息
+ selectName: '',
+ selectNationId: '',
+ selectClassName: '',
+ selectSchoolName: '',
+ selectPatid: '',
+
+ //学生信息
+ studentlist:[],
+ studentSwitch: false,
+
+ standardList: [],
+ smStandardList: [],
+ smStandardContent: '',
+ addtionList: [],
+ smAddtionList: [],
+ id: 0,
+ currentCategory: {},
+ scrollLeft: 0,
+ scrollTop: 0,
+ scrollHeight: 0,
+ page: 1,
+ limit: 10
+ },
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ this.setData({
+ selectName:options.name,
+ selectNationId:options.nationid,
+ selectClassName:options.classname,
+ selectSchoolName:options.schoolname,
+ selectPatid: options.patid
+ })
+
+ var that = this;
+ wx.getSystemInfo({
+ success: function(res) {
+ that.setData({
+ scrollHeight: res.windowHeight
+ });
+ }
+ });
+ },
+
+ //checkbox status
+ onCheckOptionChange(event) {
+ let itemIndex = event.target.dataset.itemIndex;
+ let that = this;
+ // console.log(itemIndex);
+ // console.log(event);
+
+ //编辑状态
+ let tmpCartData = this.data.smAddtionList.map(function(element, index, array) {
+ if (index == itemIndex) {
+ element.checked = !element.checked;
+ }
+
+ return element;
+ });
+ that.setData({
+ smAddtionList: tmpCartData
+ });
+ },
+ //checkbox status
+ onCheckStandardChange(event) {
+ let itemIndex = event.target.dataset.itemIndex;
+ let that = this;
+ // console.log(itemIndex);
+ // console.log(event);
+
+ //编辑状态
+ let tmpCartData = this.data.smStandardList.map(function(element, index, array) {
+ if (index == itemIndex) {
+ element.checked = !element.checked;
+ }
+
+ return element;
+ });
+ that.setData({
+ smStandardList: tmpCartData
+ });
+ },
+
+ numFilter(value){
+ console.log(value);
+ const realVal = parseFloat(value).toFixed(2);//表示保留一位函数
+ return realVal;
+ },
+
+ onReady: function() {
+ // 页面渲染完成
+ },
+ onShow: function() {
+ // 页面显示
+ console.log("category onshow");
+ this.getstandardList();
+ this.getaddtionList();
+
+ //this.getPerList();
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ getstandardList: function() {
+ var that = this;
+
+ util.request(api.iteminfo, {
+ packageno: '666',
+ patid: this.data.selectPatid
+ })
+ .then(function(res) {
+ console.log(res.data);
+ that.setData({
+ standardList: res.data,
+ });
+
+ // 将后台返回的 res 数组数据进行新增一个字段
+ if(res.data != null){
+ res.data.forEach(function(item) {
+ // 获取图片数组length范围内的随机 index
+ //var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
+ item.checked = 0;
+ });
+ that.setData({
+ smStandardList: res.data,
+ smStandardContent: res.data[0].itemno
+ })
+ }
+
+ });
+
+
+ },
+ getaddtionList: function() {
+ var that = this;
+
+ util.request(api.iteminfo, {
+ packageno: '0',
+ patid: this.data.selectPatid
+ })
+ .then(function(res) {
+ console.log(res.data);
+ that.setData({
+ addtionList: res.data,
+ });
+
+ if(res.data != null){
+ // 将后台返回的 res 数组数据进行新增一个字段
+ res.data.forEach(function(item) {
+ // 获取图片数组length范围内的随机 index
+ //var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
+ item.checked = 0;
+ });
+ that.setData({
+ smAddtionList: res.data
+ })
+ }
+
+ });
+ console.log(this.data.smAddtionList.length, "smAddtionList length");
+
+ },
+ addFast: function(){
+ var filterNum = this.data.smStandardList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+
+ var filterNum1 = this.data.smAddtionList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+
+ if( (filterNum.length == 0) && (filterNum1.length == 0)){
+ wx.showToast({
+ title: '没有选择项目',
+ })
+ }else{
+ app.globalData.gStandardList = this.data.smStandardList;
+ app.globalData.gAddtionList = this.data.smAddtionList;
+ app.globalData.gStandardContent = this.data.smStandardContent;
+
+ // 设置好list,转到结算页面
+ try {
+ // wx.setStorageSync('cartId', res.data);
+ // wx.setStorageSync('grouponRulesId', checkedGroupon.id);
+ // wx.setStorageSync('grouponLinkId', that.data.grouponLink.id);
+
+ wx.navigateTo({
+ url: '/pages/checkout/checkout?name=' + this.data.selectName + '&nationid=' + this.data.selectNationId + '&classname=' + this.data.selectClassName + '&schoolname=' + this.data.selectSchoolName + '&patid=' + this.data.selectPatid,
+ })
+
+ } catch (e) {}
+ }
+ },
+ onTabItemTap(item) {
+ // 判断是否要阻止切换
+ console.log("切换tab");
+ if (app.globalData.hasXyrw == false) {
+ // 阻止切换
+ wx.switchTab({
+ url: '/pages/index/index'
+ })
+ return false;
+ }
+ // 允许切换
+ return true;
+ },
+ onUnload: function() {
+ // 页面关闭
+ }
+
+})
\ No newline at end of file
diff --git a/pages/category/category.json b/pages/category/category.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/category/category.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/category/category.wxml b/pages/category/category.wxml
new file mode 100644
index 0000000..6b19c72
--- /dev/null
+++ b/pages/category/category.wxml
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
+
+
+
+
+ 无数据
+
+
+
+
+
+请核对项目后,选择开单!开单后请及时缴费,超过开单当天24:00后,订单自动取消,如需缴费,请重新选择项目并开单!
+
+
+ 学校:
+ {{ selectSchoolName }}
+
+
+ 班级:
+ {{ selectClassName }}
+
+
+ 姓名:
+ {{ selectName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ ¥{{iitem.itemprice}}
+
+ {{iitem.itemname}}
+ ¥{{iitem.itemprice}}
+
+
+
+
+ {{ smStandardContent }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ {{iitem.itemname}}
+
+ ¥{{iitem.itemprice}}
+ ¥{{iitem.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交订单
+
diff --git a/pages/category/category.wxss b/pages/category/category.wxss
new file mode 100644
index 0000000..5659567
--- /dev/null
+++ b/pages/category/category.wxss
@@ -0,0 +1,554 @@
+.container {
+ background: #f9f9f9;
+ }
+
+ .tjb-info-right{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+ .tjb-info-content{
+ width: 220rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjinfo{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+
+ .tjinfo-left{
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjinfo-middle{
+ flex: auto;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+
+ .tjitem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-left-header{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ margin-left: 100rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-left{
+ height: 100%;
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 20rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-right{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-right-disable{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-content{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+ .tjitem-content-disable{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* text-decoration:line-through; */
+
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .container{
+ font-size: 24rpx;
+ color:#000;
+ line-height: 40rpx;
+ background-color: #f2f0f4;
+ }
+
+ .view_fengexian {
+ width: 96%;
+ height: 20rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+ /* 两个view的样式 */
+ .view_fengexian view {
+ width: 100%;
+ height: 2rpx;
+ /* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
+ background: rgb(241, 237, 237);
+ }
+
+ /* 字体的样式 */
+ .text_fengexian {
+ font-size: 25rpx;
+ color: rgb(253, 143, 143);
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+
+ .tjitem-line{
+ height: 100%;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 10rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .tjitem-list-wrap{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-list{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-list-disable{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-list-big{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list-big-disable{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-check-wrap{
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-top: 20rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-input{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputf{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputs{
+ display: flex !important;
+
+ }
+ .tjitem-sr{
+ border: 0;
+ }
+
+ .cart-bottom {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ height: 100rpx;
+ width: 100%;
+ background: #fff;
+ display: flex;
+ }
+ .item{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #fff;
+ }
+ .item-header{
+ height: 120px;
+ width: 100%;
+ display: flex;
+ background-color: rgba(52,120,247);
+ border-radius: 15rpx;
+ }
+ .item-header .item-header-cont {
+ font-size: 35rpx;
+ font-weight: bold;
+ justify-content: center;
+ width: 95%;
+ margin: 60rpx auto;
+ height: 80rpx;
+ display: flex;
+ align-items: center;
+ }
+
+ .area{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #f4f4f4;
+ }
+
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 80rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ }
+
+ .cate-nav {
+ position: fixed;
+ left: 0;
+ top: 0;
+ z-index: 1000;
+ }
+
+ .cate-nav-body {
+ height: 84rpx;
+ white-space: nowrap;
+ background: #fff;
+ border-top: 1px solid rgba(0, 0, 0, 0.15);
+ overflow: hidden;
+ }
+
+ .cate-nav .item {
+ display: inline-block;
+ height: 84rpx;
+ min-width: 130rpx;
+ padding: 0 15rpx;
+ }
+
+ .cate-nav .item .name {
+ display: block;
+ height: 84rpx;
+ padding: 0 20rpx;
+ line-height: 84rpx;
+ color: #333;
+ font-size: 30rpx;
+ width: auto;
+ }
+
+ .cate-nav .item.active .name {
+ color: #ab956d;
+ border-bottom: 2px solid #ab956d;
+ }
+
+ .cate-item {
+ margin-top: 94rpx;
+ margin-left: 25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .cate-item .h {
+ height: 145rpx;
+ width: 750rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .cate-item .h .name {
+ display: block;
+ height: 35rpx;
+ margin-bottom: 18rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .cate-item .h .desc {
+ display: block;
+ height: 24rpx;
+ font-size: 24rpx;
+ color: #999;
+ }
+
+ .cate-item .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+
+ }
+
+ .cate-item .b .item {
+ float: left;
+ background: #fff;
+ width: 165rpx;
+ margin-bottom: 6.25rpx;
+ padding-bottom: 33.333rpx;
+ height: auto;
+ overflow: hidden;
+ text-align: center;
+ /* border: 2px solid #ab956d; */
+
+ }
+
+ .cate-item .b .item-b {
+ margin-left: 10.25rpx;
+ }
+ .cate-item .b .item {
+ margin-left: 10.25rpx;
+ }
+
+ .cate-item .item .img {
+ width: 82rpx;
+ height: 82rpx;
+ }
+
+ .cate-item .item .name {
+ display: block;
+ width: 165.625rpx;
+ height: 70rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 28rpx;
+ color: #333;
+
+ /* text-overflow: -o-ellipsis-lastline;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ align-content: center; */
+
+ }
+
+ .cate-item .item .price {
+ display: block;
+ width: 165.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+
+ .bottom-btn {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ z-index: 10;
+ width: 750rpx;
+ height: 100rpx;
+ display: flex;
+ background: #fff;
+ margin-bottom: 0rpx;
+ margin-right: 100rpx;
+
+ }
+
+ .bottom-btn .l {
+ float: left;
+ height: 100rpx;
+ width: 162rpx;
+ border: 1px solid #f4f4f4;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .bottom-btn .l.l-collect {
+ border-right: none;
+ border-left: none;
+ text-align: center;
+ width: 90rpx;
+ }
+
+ .bottom-btn .l.l-collect .icon {
+ position: absolute;
+ top: 28rpx;
+ left: 20rpx;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .l.l-kefu {
+ position: relative;
+ height: 54rpx;
+ width: 63rpx;
+ }
+
+ .bottom-btn .l.l-cart .box {
+ position: relative;
+ height: 60rpx;
+ width: 60rpx;
+
+ }
+
+ .bottom-btn .l.l-cart .cart-count {
+ height: 28rpx;
+ width: 28rpx;
+ z-index: 10;
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: #7232dd;
+ text-align: center;
+ font-size: 18rpx;
+ color: #fff;
+ line-height: 28rpx;
+ border-radius: 50%;
+ }
+
+ .bottom-btn .l.l-cart .icon {
+ position: absolute;
+ top: 10rpx;
+ left: 0;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .c {
+ float: left;
+ background: #7232dd;
+ height: 80rpx;
+ line-height: 80rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 30px 30px 30px 30px;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
+ margin-right: 10rpx;
+ margin-left: 500rpx;
+
+ }
+
+ .bottom-btn .r {
+ border: 1px solid #CCB5F2;
+ background: #CCB5F2;
+ float: left;
+ height: 100rpx;
+ line-height: 96rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 15px 0px 0px 15px;
+
+ }
+
+
\ No newline at end of file
diff --git a/pages/categorykf/categorykf.js b/pages/categorykf/categorykf.js
new file mode 100644
index 0000000..fb8cde2
--- /dev/null
+++ b/pages/categorykf/categorykf.js
@@ -0,0 +1,221 @@
+var util = require('../../utils/util.js');
+var api = require('../../config/api.js');
+
+var app = getApp();
+Page({
+ data: {
+ //已选的项目
+ disablecheck : true,
+ //上一个页面带来的信息
+ selectName: '',
+ selectNationId: '',
+ selectClassName: '',
+ selectSchoolName: '',
+ selectPatid: '',
+
+ //学生信息
+ studentlist:[],
+ studentSwitch: false,
+
+ standardList: [],
+ smStandardList: [],
+ smStandardContent: '',
+ addtionList: [],
+ smAddtionList: [],
+ id: 0,
+ currentCategory: {},
+ scrollLeft: 0,
+ scrollTop: 0,
+ scrollHeight: 0,
+ page: 1,
+ limit: 10
+ },
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ this.setData({
+ selectName:options.name,
+ selectNationId:options.nationid,
+ selectClassName:options.classname,
+ selectSchoolName:options.schoolname,
+ selectPatid: options.patid
+ })
+
+ var that = this;
+ wx.getSystemInfo({
+ success: function(res) {
+ that.setData({
+ scrollHeight: res.windowHeight
+ });
+ }
+ });
+ },
+
+ //checkbox status
+ onCheckOptionChange(event) {
+ let itemIndex = event.target.dataset.itemIndex;
+ let that = this;
+ // console.log(itemIndex);
+ // console.log(event);
+
+ //编辑状态
+ let tmpCartData = this.data.smAddtionList.map(function(element, index, array) {
+ if (index == itemIndex) {
+ element.checked = !element.checked;
+ }
+
+ return element;
+ });
+ that.setData({
+ smAddtionList: tmpCartData
+ });
+ },
+ //checkbox status
+ onCheckStandardChange(event) {
+ let itemIndex = event.target.dataset.itemIndex;
+ let that = this;
+ // console.log(itemIndex);
+ // console.log(event);
+
+ //编辑状态
+ let tmpCartData = this.data.smStandardList.map(function(element, index, array) {
+ if (index == itemIndex) {
+ element.checked = !element.checked;
+ }
+
+ return element;
+ });
+ that.setData({
+ smStandardList: tmpCartData
+ });
+ },
+
+ numFilter(value){
+ console.log(value);
+ const realVal = parseFloat(value).toFixed(2);//表示保留一位函数
+ return realVal;
+ },
+
+ onReady: function() {
+ // 页面渲染完成
+ },
+ onShow: function() {
+ // 页面显示
+ console.log("category onshow");
+ this.getstandardList();
+ this.getaddtionList();
+
+ //this.getPerList();
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+
+ getstandardList: function() {
+ var that = this;
+
+ util.request(api.kfiteminfo, {
+ packageno: '666',
+ patid: this.data.selectPatid
+ })
+ .then(function(res) {
+ console.log(res.data);
+ that.setData({
+ standardList: res.data,
+ });
+
+ // 将后台返回的 res 数组数据进行新增一个字段
+ if(res.data != null){
+ res.data.forEach(function(item) {
+ // 获取图片数组length范围内的随机 index
+ //var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
+ item.checked = 0;
+ });
+ that.setData({
+ smStandardList: res.data,
+ smStandardContent: res.data[0].itemno
+ })
+ }
+
+ });
+
+
+ },
+ getaddtionList: function() {
+ var that = this;
+
+ util.request(api.kfiteminfo, {
+ packageno: '0',
+ patid: this.data.selectPatid
+ })
+ .then(function(res) {
+ console.log(res.data);
+ that.setData({
+ addtionList: res.data,
+ });
+
+ if(res.data != null){
+ // 将后台返回的 res 数组数据进行新增一个字段
+ res.data.forEach(function(item) {
+ // 获取图片数组length范围内的随机 index
+ //var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
+ item.checked = 0;
+ });
+ that.setData({
+ smAddtionList: res.data
+ })
+ }
+
+ });
+ console.log(this.data.smAddtionList.length, "smAddtionList length");
+
+ },
+ addFast: function(){
+ var filterNum = this.data.smStandardList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+
+ var filterNum1 = this.data.smAddtionList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+
+ if( (filterNum.length == 0) && (filterNum1.length == 0)){
+ wx.showToast({
+ title: '没有选择项目',
+ })
+ }else{
+ app.globalData.gStandardList = this.data.smStandardList;
+ app.globalData.gAddtionList = this.data.smAddtionList;
+ app.globalData.gStandardContent = this.data.smStandardContent;
+
+ // 设置好list,转到结算页面
+ try {
+ // wx.setStorageSync('cartId', res.data);
+ // wx.setStorageSync('grouponRulesId', checkedGroupon.id);
+ // wx.setStorageSync('grouponLinkId', that.data.grouponLink.id);
+
+ wx.navigateTo({
+ url: '/pages/checkoutkf/checkoutkf?name=' + this.data.selectName + '&nationid=' + this.data.selectNationId + '&classname=' + this.data.selectClassName + '&schoolname=' + this.data.selectSchoolName + '&patid=' + this.data.selectPatid,
+ })
+
+ } catch (e) {}
+ }
+ },
+ onTabItemTap(item) {
+ // 判断是否要阻止切换
+ console.log("切换tab");
+ if (app.globalData.hasXyrw == false) {
+ // 阻止切换
+ wx.switchTab({
+ url: '/pages/index/index'
+ })
+ return false;
+ }
+ // 允许切换
+ return true;
+ },
+ onUnload: function() {
+ // 页面关闭
+ }
+
+})
\ No newline at end of file
diff --git a/pages/categorykf/categorykf.json b/pages/categorykf/categorykf.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/categorykf/categorykf.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/categorykf/categorykf.wxml b/pages/categorykf/categorykf.wxml
new file mode 100644
index 0000000..eb64ede
--- /dev/null
+++ b/pages/categorykf/categorykf.wxml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+ 无数据
+
+
+
+
+
+请核对项目后,选择开单!开单后请及时缴费,超过开单当天24:00后,订单自动取消,如需缴费,请重新选择项目并开单!
+
+
+ 住址:
+ {{ selectSchoolName }}
+
+
+
+ 姓名:
+ {{ selectName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ {{iitem.itemname}}
+
+ ¥{{iitem.itemprice}}
+ ¥{{iitem.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交订单
+
diff --git a/pages/categorykf/categorykf.wxss b/pages/categorykf/categorykf.wxss
new file mode 100644
index 0000000..5659567
--- /dev/null
+++ b/pages/categorykf/categorykf.wxss
@@ -0,0 +1,554 @@
+.container {
+ background: #f9f9f9;
+ }
+
+ .tjb-info-right{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+ .tjb-info-content{
+ width: 220rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjinfo{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+
+ .tjinfo-left{
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjinfo-middle{
+ flex: auto;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+
+ .tjitem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-left-header{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ margin-left: 100rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-left{
+ height: 100%;
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 20rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-right{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-right-disable{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-content{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+ .tjitem-content-disable{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* text-decoration:line-through; */
+
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .container{
+ font-size: 24rpx;
+ color:#000;
+ line-height: 40rpx;
+ background-color: #f2f0f4;
+ }
+
+ .view_fengexian {
+ width: 96%;
+ height: 20rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+ /* 两个view的样式 */
+ .view_fengexian view {
+ width: 100%;
+ height: 2rpx;
+ /* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
+ background: rgb(241, 237, 237);
+ }
+
+ /* 字体的样式 */
+ .text_fengexian {
+ font-size: 25rpx;
+ color: rgb(253, 143, 143);
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+
+ .tjitem-line{
+ height: 100%;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 10rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .tjitem-list-wrap{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-list{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-list-disable{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-list-big{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list-big-disable{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* text-decoration:line-through; */
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-check-wrap{
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-top: 20rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-input{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputf{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputs{
+ display: flex !important;
+
+ }
+ .tjitem-sr{
+ border: 0;
+ }
+
+ .cart-bottom {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ height: 100rpx;
+ width: 100%;
+ background: #fff;
+ display: flex;
+ }
+ .item{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #fff;
+ }
+ .item-header{
+ height: 120px;
+ width: 100%;
+ display: flex;
+ background-color: rgba(52,120,247);
+ border-radius: 15rpx;
+ }
+ .item-header .item-header-cont {
+ font-size: 35rpx;
+ font-weight: bold;
+ justify-content: center;
+ width: 95%;
+ margin: 60rpx auto;
+ height: 80rpx;
+ display: flex;
+ align-items: center;
+ }
+
+ .area{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #f4f4f4;
+ }
+
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 80rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ }
+
+ .cate-nav {
+ position: fixed;
+ left: 0;
+ top: 0;
+ z-index: 1000;
+ }
+
+ .cate-nav-body {
+ height: 84rpx;
+ white-space: nowrap;
+ background: #fff;
+ border-top: 1px solid rgba(0, 0, 0, 0.15);
+ overflow: hidden;
+ }
+
+ .cate-nav .item {
+ display: inline-block;
+ height: 84rpx;
+ min-width: 130rpx;
+ padding: 0 15rpx;
+ }
+
+ .cate-nav .item .name {
+ display: block;
+ height: 84rpx;
+ padding: 0 20rpx;
+ line-height: 84rpx;
+ color: #333;
+ font-size: 30rpx;
+ width: auto;
+ }
+
+ .cate-nav .item.active .name {
+ color: #ab956d;
+ border-bottom: 2px solid #ab956d;
+ }
+
+ .cate-item {
+ margin-top: 94rpx;
+ margin-left: 25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .cate-item .h {
+ height: 145rpx;
+ width: 750rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .cate-item .h .name {
+ display: block;
+ height: 35rpx;
+ margin-bottom: 18rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .cate-item .h .desc {
+ display: block;
+ height: 24rpx;
+ font-size: 24rpx;
+ color: #999;
+ }
+
+ .cate-item .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+
+ }
+
+ .cate-item .b .item {
+ float: left;
+ background: #fff;
+ width: 165rpx;
+ margin-bottom: 6.25rpx;
+ padding-bottom: 33.333rpx;
+ height: auto;
+ overflow: hidden;
+ text-align: center;
+ /* border: 2px solid #ab956d; */
+
+ }
+
+ .cate-item .b .item-b {
+ margin-left: 10.25rpx;
+ }
+ .cate-item .b .item {
+ margin-left: 10.25rpx;
+ }
+
+ .cate-item .item .img {
+ width: 82rpx;
+ height: 82rpx;
+ }
+
+ .cate-item .item .name {
+ display: block;
+ width: 165.625rpx;
+ height: 70rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 28rpx;
+ color: #333;
+
+ /* text-overflow: -o-ellipsis-lastline;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ align-content: center; */
+
+ }
+
+ .cate-item .item .price {
+ display: block;
+ width: 165.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+
+ .bottom-btn {
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ z-index: 10;
+ width: 750rpx;
+ height: 100rpx;
+ display: flex;
+ background: #fff;
+ margin-bottom: 0rpx;
+ margin-right: 100rpx;
+
+ }
+
+ .bottom-btn .l {
+ float: left;
+ height: 100rpx;
+ width: 162rpx;
+ border: 1px solid #f4f4f4;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .bottom-btn .l.l-collect {
+ border-right: none;
+ border-left: none;
+ text-align: center;
+ width: 90rpx;
+ }
+
+ .bottom-btn .l.l-collect .icon {
+ position: absolute;
+ top: 28rpx;
+ left: 20rpx;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .l.l-kefu {
+ position: relative;
+ height: 54rpx;
+ width: 63rpx;
+ }
+
+ .bottom-btn .l.l-cart .box {
+ position: relative;
+ height: 60rpx;
+ width: 60rpx;
+
+ }
+
+ .bottom-btn .l.l-cart .cart-count {
+ height: 28rpx;
+ width: 28rpx;
+ z-index: 10;
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: #7232dd;
+ text-align: center;
+ font-size: 18rpx;
+ color: #fff;
+ line-height: 28rpx;
+ border-radius: 50%;
+ }
+
+ .bottom-btn .l.l-cart .icon {
+ position: absolute;
+ top: 10rpx;
+ left: 0;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .c {
+ float: left;
+ background: #7232dd;
+ height: 80rpx;
+ line-height: 80rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 30px 30px 30px 30px;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
+ margin-right: 10rpx;
+ margin-left: 500rpx;
+
+ }
+
+ .bottom-btn .r {
+ border: 1px solid #CCB5F2;
+ background: #CCB5F2;
+ float: left;
+ height: 100rpx;
+ line-height: 96rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 15px 0px 0px 15px;
+
+ }
+
+
\ No newline at end of file
diff --git a/pages/chat/chat.js b/pages/chat/chat.js
new file mode 100644
index 0000000..237b901
--- /dev/null
+++ b/pages/chat/chat.js
@@ -0,0 +1,74 @@
+// pages/chat/chat.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+ pay(){
+ wx.navigateTo({
+ url: '/pages/chatDetail/chatDetail',
+ })
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ wx.setNavigationBarTitle({
+ title: '待支付订单'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/chat/chat.json b/pages/chat/chat.json
new file mode 100644
index 0000000..aab6b5d
--- /dev/null
+++ b/pages/chat/chat.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {},
+ "navigationBarBackgroundColor": "#f9f9fa"
+}
\ No newline at end of file
diff --git a/pages/chat/chat.wxml b/pages/chat/chat.wxml
new file mode 100644
index 0000000..764bca6
--- /dev/null
+++ b/pages/chat/chat.wxml
@@ -0,0 +1,24 @@
+
+
+
+
+ 未知标题
+ 未知标题.医保支付
+ ¥1.31
+ 立即支付
+
+
+ 总金额
+ 1.77
+
+
+ 医保支付
+ -1.77
+
+
+ 合计待支付
+ 100
+
+
+
+
\ No newline at end of file
diff --git a/pages/chat/chat.wxss b/pages/chat/chat.wxss
new file mode 100644
index 0000000..84b2b50
--- /dev/null
+++ b/pages/chat/chat.wxss
@@ -0,0 +1,54 @@
+/* pages/chat/chat.wxss */
+.chat{
+ width: 100%;
+ height: 100vh;
+ background-color: #faf9fa;
+}
+.list{
+ margin:20rpx 30rpx 0;
+ height: 710rpx;
+ background-color: #fff;
+ font-size: 28rpx;
+ padding:60rpx 40rpx 0;
+ box-sizing: border-box;
+ color:#000;
+ border-radius: 8rpx;
+}
+.center{
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ margin-bottom: 60rpx;
+}
+.money{
+ margin-top: 60rpx;
+ font-size: 48rpx !important;
+ font-weight: 600;
+}
+.btn{
+ width: 280rpx;
+ height: 70rpx;
+ background-color: #7bc27e;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-radius: 8rpx;
+ color:#fff;
+ margin-top: 30rpx;
+}
+.flex{
+ display: flex;
+ justify-content: space-between;
+ height: 80rpx;
+ align-items: center;
+ color:#000;
+}
+.second{
+ margin-top: 30rpx;
+ border-top:1px solid #eee;
+ height: 110rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
\ No newline at end of file
diff --git a/pages/chatDetail/chatDetail.js b/pages/chatDetail/chatDetail.js
new file mode 100644
index 0000000..e7190ee
--- /dev/null
+++ b/pages/chatDetail/chatDetail.js
@@ -0,0 +1,93 @@
+// pages/chatDetail/chatDetail.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+ toPayment(){
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+
+ //获取详情
+ findWxPayResult(data){
+ let reqDTO = {
+ out_trade_no:data
+ }
+ wx.request({
+ url: 'http://192.168.0.97:8085/api/wxpay/findWxPayResult',
+ method:'POST',
+ data:reqDTO,
+ header:{
+ 'content-type':'application/json'
+ },
+ success: (res)=> {
+
+ }
+ })
+ },
+
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ wx.setNavigationBarTitle({
+ title: '门诊缴费详情'
+ })
+ this.findWxPayResult(options.id)
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/chatDetail/chatDetail.json b/pages/chatDetail/chatDetail.json
new file mode 100644
index 0000000..2707dce
--- /dev/null
+++ b/pages/chatDetail/chatDetail.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {},
+ "navigationBarBackgroundColor": "#efedef"
+}
\ No newline at end of file
diff --git a/pages/chatDetail/chatDetail.wxml b/pages/chatDetail/chatDetail.wxml
new file mode 100644
index 0000000..9cca321
--- /dev/null
+++ b/pages/chatDetail/chatDetail.wxml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+ 门诊缴费成功
+
+
+ 您已缴费成功,有取药,检验,检查等相关执行操作时,请前往对应的执行科室出示二维码扫码确认。
+
+
+
+
+ 就诊凭条
+ 凭以下二维码检查、检验、拿药
+
+ tu
+
+
+
+ 医院类型
+ 私立医院
+
+
+ 医院名称
+ 新疆库尔勒妇幼保健院
+
+
+ 缴费时间
+ 2022-10-09 12:32:23
+
+
+ 就诊人
+ 张三丰
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/chatDetail/chatDetail.wxss b/pages/chatDetail/chatDetail.wxss
new file mode 100644
index 0000000..f96329c
--- /dev/null
+++ b/pages/chatDetail/chatDetail.wxss
@@ -0,0 +1,104 @@
+/* pages/chatDetail/chatDetail.wxss */
+.detail{
+ width: 100%;
+ height: 100vh;
+ background-color: #f9f7fa;
+}
+.font{
+ width: 100%;
+ height: 190rpx;
+ padding:20rpx 20rpx 0;
+ box-sizing: border-box;
+ background-color: #fff;
+ border-bottom:2rpx solid #eee;
+}
+.success{
+ display: flex;
+ align-items: center;
+ font-size: 32rpx;
+ margin-bottom: 20rpx;
+ color:#abcac8;
+}
+.van-icon, .van-icon:before {
+ font-size: 60rpx !important;
+ margin-right: 8rpx;
+}
+.text{
+ font-size: 24rpx;
+ line-height: 40rpx;
+}
+.text1{
+ font-size: 32rpx;
+ color:#000;
+}
+.text2{
+ color:#e1be9f;
+ margin-left: 10rpx;
+}
+.picture{
+ width: 100%;
+ height: 580rpx;
+ background-color: #f3f4fc;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ font-size: 24rpx;
+ align-items: center;
+ padding-bottom:40rpx;
+}
+.img{
+ width: 540rpx;
+ height: 500rpx;
+ margin-top: 10rpx;
+ background-color: pink;
+ border-radius: 10rpx;
+}
+.list{
+ width: 100%;
+ background-color: #fff;
+ padding:0 28rpx;
+ box-sizing: border-box;
+}
+.list_item{
+ width: 100%;
+ height: 80rpx;
+ border-bottom:1px solid #eee;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.list_text{
+ font-size: 30rpx;
+ color:#000;
+}
+.list_text1{
+ font-size: 26rpx;
+ color:#666;
+}
+.bottom{
+ width: 100%;
+ height: 80rpx;
+ position: fixed;
+ bottom:100rpx;
+ z-index: 999;
+ display: flex;
+ justify-content: center;
+}
+.arrow{
+ width: 300rpx;
+ display: flex;
+ justify-content: space-between;
+}
+.van-icon, .van-icon:before {
+ font-size: 60rpx !important;
+}
+.right{
+ display: flex;
+ align-items: center;
+}
+.right >van-icon{
+ color:#e2e1e3;
+}
+.scroll{
+ height: calc(100vh - 180rpx);
+}
\ No newline at end of file
diff --git a/pages/checkout/checkout.js b/pages/checkout/checkout.js
new file mode 100644
index 0000000..c221674
--- /dev/null
+++ b/pages/checkout/checkout.js
@@ -0,0 +1,229 @@
+var util = require('../../utils/util.js');
+var api = require('../../config/api.js');
+
+var app = getApp();
+
+Page({
+ data: {
+ isTipsShow: false, //控制确认提示信息对话框
+
+ //上一个页面带来的信息
+ isShow: false,
+ selectName: '',
+ selectNationId: '',
+ selectClassName: '',
+ selectSchoolName: '',
+ selectPatid: '',
+ list: [], //成功开单信息
+ listfail: [], //失败开单信息
+
+ hideStadndard: null,
+ hideAddtion: null,
+ checkStandardList: [],
+ checkStandardContent: '',
+ checkAddtionList: [],
+ orderTotalPrice: 0.00, //基础总价
+ orderTotalPriceAddtion: 0.00, //附加总价
+ totalPrice: 0.00, //总价
+ totalPriceDisp: '',
+ message: ''
+ },
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ var that = this;
+
+ that.setData({
+ checkStandardList: app.globalData.gStandardList,
+ checkStandardContent: app.globalData.gStandardContent,
+ checkAddtionList: app.globalData.gAddtionList
+ });
+
+ this.setData({
+ selectName:options.name,
+ selectNationId:options.nationid,
+ selectClassName:options.classname,
+ selectSchoolName:options.schoolname,
+ selectPatid: options.patid
+ })
+ // console.log(this.data.checkStandardList);
+
+ var filterNum = this.data.checkStandardList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+ if(filterNum.length == 0) {
+ that.setData({
+ hideStadndard: 0,
+ checkStandardList: filterNum
+ });
+ }else{
+ that.setData({
+ hideStadndard: 1,
+ checkStandardList: filterNum
+ });
+ }
+ // console.log(this.data.hideStadndard);
+ console.log("filterNum");
+ console.log(filterNum);
+
+ var filterNum1 = this.data.checkAddtionList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+ if(filterNum1.length == 0) {
+ that.setData({
+ hideAddtion: 0,
+ checkAddtionList: filterNum1
+ });
+ }else{
+ that.setData({
+ hideAddtion: 1,
+ checkAddtionList: filterNum1
+ });
+ }
+ // console.log(this.data.hideAddtion);
+ console.log("filterNum1");
+ console.log(filterNum1);
+
+ //计算总金额
+ this.data.checkStandardList.forEach((item) => {
+ console.log(item);
+ this.data.orderTotalPrice = this.data.orderTotalPrice + parseFloat(item.itemprice)*100;
+ });
+ console.log(this.data.orderTotalPrice/100);
+
+ this.data.checkAddtionList.forEach((item) => {
+ console.log(item);
+ this.data.orderTotalPriceAddtion = this.data.orderTotalPriceAddtion + parseFloat(item.itemprice)*100;
+ });
+ console.log(this.data.orderTotalPriceAddtion/100);
+
+ this.data.totalPrice = (this.data.orderTotalPrice + this.data.orderTotalPriceAddtion) / 100;
+
+ this.setData({
+ totalPriceDisp: this.data.totalPrice.toString()
+ });
+ console.log(this.data.totalPriceDisp);
+
+ },
+/**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ //获取checkou信息
+ getCheckoutInfo: function() {
+ let that = this;
+ util.request(api.CartCheckout, {
+ cartId: that.data.cartId,
+ addressId: that.data.addressId,
+ couponId: that.data.couponId,
+ userCouponId: that.data.userCouponId,
+ grouponRulesId: that.data.grouponRulesId
+ }).then(function(res) {
+ if (res.errno === 0) {
+ that.setData({
+ checkedGoodsList: res.data.checkedGoodsList,
+ checkedAddress: res.data.checkedAddress,
+ availableCouponLength: res.data.availableCouponLength,
+ actualPrice: res.data.actualPrice,
+ couponPrice: res.data.couponPrice,
+ grouponPrice: res.data.grouponPrice,
+ freightPrice: res.data.freightPrice,
+ goodsTotalPrice: res.data.goodsTotalPrice,
+ orderTotalPrice: res.data.orderTotalPrice,
+ addressId: res.data.addressId,
+ couponId: res.data.couponId,
+ userCouponId: res.data.userCouponId,
+ grouponRulesId: res.data.grouponRulesId,
+ });
+ }
+ wx.hideLoading();
+ });
+ },
+ bindMessageInput: function(e) {
+ this.setData({
+ message: e.detail.value
+ });
+ },
+ onReady: function() {
+ // 页面渲染完成
+
+ },
+ onShow: function() {
+ // 页面显示
+ // wx.showLoading({
+ // title: '加载中...',
+ // });
+
+ //this.getCheckoutInfo();
+
+
+
+ },
+ onHide: function() {
+ // 页面隐藏
+
+ },
+ onUnload: function() {
+ // 页面关闭
+
+ },
+ onNavToJF: function() {
+ // setTimeout(item => {
+ // wx.navigateBack({
+ // delta: 3 //返回上一级页面
+ // })
+ // },1000)
+ wx.navigateBack({
+ delta: 3 //返回上一级页面
+ })
+
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+
+ onConfirmTips: function(){
+ util.requestPost(api.orderinfo, {
+ patid: this.data.selectPatid,
+ name: this.data.selectName,
+ className: this.data.selectClassName,
+ schoolName: this.data.selectSchoolName,
+ nationId: this.data.selectNationId,
+ iteminfo: this.data.checkStandardList,
+ itemkxinfo: this.data.checkAddtionList
+ }).then(res => {
+ console.log(res);
+ if (res.errCode === '0') {
+ this.setData({
+ list: res.list,
+ listfail: res.listF,
+ isShow: true
+ })
+ // wx.showToast({
+ // title: '开单成功',
+ // icon:'success'
+ // })
+
+ // setTimeout(item => {
+ // wx.navigateBack({
+ // delta: 3 //返回上一级页面
+ // })
+ // },1000)
+ } else {
+ util.showErrorToast(res.errmsg);
+ }
+ });
+ },
+ onCancelTips: function(){
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },
+ submitOrder: function() {
+ this.setData({
+ isTipsShow: true
+ });
+ console.log("tips");
+ }
+});
\ No newline at end of file
diff --git a/pages/checkout/checkout.json b/pages/checkout/checkout.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/checkout/checkout.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/checkout/checkout.wxml b/pages/checkout/checkout.wxml
new file mode 100644
index 0000000..b59d941
--- /dev/null
+++ b/pages/checkout/checkout.wxml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+ 学校:
+ {{ selectSchoolName }}
+
+
+ 班级:
+ {{ selectClassName }}
+
+
+ 姓名:
+ {{ selectName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ ¥{{iitem.itemprice}}
+
+
+
+ {{checkStandardContent}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ ¥{{iitem.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请再次核对已选项目和价格,一旦点击“确认”后,所选项目无法取消,请仔细核对,如需修改,请按“返回”键后重新选择项目!
+
+
+
+
+ 实付:¥{{totalPriceDisp}}
+ 确认
+
+
\ No newline at end of file
diff --git a/pages/checkout/checkout.wxss b/pages/checkout/checkout.wxss
new file mode 100644
index 0000000..5717a90
--- /dev/null
+++ b/pages/checkout/checkout.wxss
@@ -0,0 +1,564 @@
+page {
+ height: 100%;
+ background: #f4f4f4;
+ }
+ .item{
+ width: 100%;
+ display: flex;
+ /* justify-content: space-between; */
+ /* align-items: center; */
+ border-bottom: 1rpx solid #d10707;
+ }
+ .kdlist{
+ height: 600rpx;
+ width: 500rpx;
+ margin-left: 50rpx;
+ margin-top: 30rpx;
+ /* line-height: 120rpx; */
+ /* border: 1rpx solid #6306f8; */
+ }
+ .rwtips{
+ font-size: 30rpx;
+ font-weight: bold;
+ /* color: rgb(253, 6, 6); */
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ margin-left: 20rpx;
+ margin-right: 20rpx;
+ }
+ .tipsdialog{
+ color:rgb(253, 6, 6);
+ font-size: 30rpx;
+ font-weight: bold;
+ }
+
+ .tjb-info-right{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+ .tjb-info-content{
+ width: 220rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjinfo{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+
+ .tjinfo-left{
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjinfo-middle{
+ flex: auto;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+
+ .tjitem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-left-header{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ margin-left: 30rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-left{
+ height: 100%;
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 20rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-right{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-content{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .view_fengexian {
+ width: 96%;
+ height: 20rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+ /* 两个view的样式 */
+ .view_fengexian view {
+ width: 100%;
+ height: 2rpx;
+ /* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
+ background: rgb(241, 237, 237);
+ }
+
+ /* 字体的样式 */
+ .text_fengexian {
+ font-size: 25rpx;
+ color: rgb(253, 143, 143);
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+
+ .tjitem-line{
+ height: 100%;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 10rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .tjitem-list-wrap{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-left: 30rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #5b0af1; */
+
+ }
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list-big{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-check-wrap{
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-top: 20rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-input{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputf{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputs{
+ display: flex !important;
+
+ }
+ .tjitem-sr{
+ border: 0;
+ }
+
+ .area{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #f4f4f4;
+ }
+
+ .address-box {
+ width: 100%;
+ height: 166.55rpx;
+ background-size: 62.5rpx 10.5rpx;
+ margin-bottom: 20rpx;
+ padding-top: 10.5rpx;
+ }
+
+ .address-item {
+ display: flex;
+ height: 155.55rpx;
+ background: #fff;
+ padding: 41.6rpx 0 41.6rpx 31.25rpx;
+ }
+
+ .address-item.address-empty {
+ line-height: 75rpx;
+ text-align: center;
+ }
+
+ .address-box .l {
+ width: 125rpx;
+ height: 100%;
+ }
+
+ .address-box .l .name {
+ margin-left: 6.25rpx;
+ margin-top: -7.25rpx;
+ display: block;
+ width: 125rpx;
+ height: 43rpx;
+ line-height: 43rpx;
+ font-size: 30rpx;
+ color: #333;
+ margin-bottom: 5rpx;
+ }
+
+ .address-box .l .default {
+ margin-left: 6.25rpx;
+ display: block;
+ width: 62rpx;
+ height: 33rpx;
+ border-radius: 5rpx;
+ border: 1px solid #b4282d;
+ font-size: 20.5rpx;
+ text-align: center;
+ line-height: 29rpx;
+ color: #b4282d;
+ }
+
+ .address-box .m {
+ flex: 1;
+ height: 72.25rpx;
+ color: #999;
+ }
+
+ .address-box .mobile {
+ display: block;
+ height: 29rpx;
+ line-height: 29rpx;
+ margin-bottom: 6.25rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .address-box .address {
+ display: block;
+ height: 37.5rpx;
+ line-height: 37.5rpx;
+ font-size: 25rpx;
+ color: #666;
+ }
+
+ .address-box .r {
+ width: 77rpx;
+ height: 77rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .address-box .r image {
+ width: 52.078rpx;
+ height: 52.078rpx;
+ }
+
+ .coupon-box {
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ }
+
+ .coupon-box .coupon-item {
+ width: 100%;
+ height: 108.3rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ padding-left: 31.25rpx;
+ }
+
+ .coupon-box .l {
+ flex: 1;
+ height: 43rpx;
+ line-height: 43rpx;
+ padding-top: 35rpx;
+ }
+
+ .coupon-box .l .name {
+ float: left;
+ font-size: 30rpx;
+ color: #666;
+ }
+
+ .coupon-box .l .txt {
+ float: right;
+ font-size: 30rpx;
+ color: #666;
+ }
+
+ .coupon-box .r {
+ margin-top: 15.5rpx;
+ width: 77rpx;
+ height: 77rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .coupon-box .r image {
+ width: 52.078rpx;
+ height: 52.078rpx;
+ }
+
+ .message-box {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ /* border: 1px solid rgb(226, 4, 4); */
+ }
+
+ .message-box .message-item {
+ height: 52.078rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ margin-left: 31.25rpx;
+ padding-right: 31.25rpx;
+ padding-top: 26rpx;
+ /* border: 1px solid rgb(226, 4, 4); */
+ }
+
+ .order-box {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ }
+
+ .order-box .order-item {
+ height: 104.3rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ margin-left: 31.25rpx;
+ padding-right: 31.25rpx;
+ padding-top: 26rpx;
+ border-bottom: 1px solid #d9d9d9;
+ }
+
+ .order-box .order-item .l {
+ float: left;
+ height: 52rpx;
+ width: 50%;
+ line-height: 52rpx;
+ overflow: hidden;
+ }
+
+ .order-box .order-item .r {
+ float: right;
+ text-align: right;
+ width: 50%;
+ height: 52rpx;
+ line-height: 52rpx;
+ overflow: hidden;
+ }
+
+ .order-box .order-item.no-border {
+ border-bottom: none;
+ }
+
+ .goods-items {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ padding-left: 31.25rpx;
+ margin-bottom: 120rpx;
+ }
+
+ .goods-items .item {
+ height: 192rpx;
+ padding-right: 31.25rpx;
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.15);
+ }
+
+ .goods-items .item.no-border {
+ border-bottom: none;
+ }
+
+ .goods-items .item:last-child {
+ border-bottom: none;
+ }
+
+ .goods-items .img {
+ height: 145.83rpx;
+ width: 145.83rpx;
+ background-color: #f4f4f4;
+ margin-right: 20rpx;
+ }
+
+ .goods-items .img image {
+ height: 145.83rpx;
+ width: 145.83rpx;
+ }
+
+ .goods-items .info {
+ flex: 1;
+ height: 145.83rpx;
+ padding-top: 5rpx;
+ }
+
+ .goods-items .t {
+ height: 33rpx;
+ line-height: 33rpx;
+ margin-bottom: 10rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .goods-items .t .name {
+ display: block;
+ float: left;
+ }
+
+ .goods-items .t .number {
+ display: block;
+ float: right;
+ text-align: right;
+ }
+
+ .goods-items .m {
+ height: 29rpx;
+ overflow: hidden;
+ line-height: 29rpx;
+ margin-bottom: 25rpx;
+ font-size: 25rpx;
+ color: #666;
+ }
+
+ .goods-items .b {
+ height: 41rpx;
+ overflow: hidden;
+ line-height: 41rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .order-total {
+ position: fixed;
+ left: 0;
+ bottom: 0rpx;
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ }
+
+ .order-total .l {
+ flex: 1;
+ height: 100rpx;
+ line-height: 100rpx;
+ color: #7232dd;
+ background: #fff;
+ font-size: 33rpx;
+ padding-left: 31.25rpx;
+ border-top: 1rpx solid rgba(0, 0, 0, 0.2);
+ border-bottom: 1rpx solid rgba(0, 0, 0, 0.2);
+ }
+
+ .order-total .r {
+ width: 233rpx;
+ height: 100rpx;
+ background: #7232dd;
+ border: 1px solid #7232dd;
+ line-height: 100rpx;
+ text-align: center;
+ color: #fff;
+ font-size: 30rpx;
+ }
+
\ No newline at end of file
diff --git a/pages/checkoutkf/checkoutkf.js b/pages/checkoutkf/checkoutkf.js
new file mode 100644
index 0000000..0e8be9d
--- /dev/null
+++ b/pages/checkoutkf/checkoutkf.js
@@ -0,0 +1,219 @@
+var util = require('../../utils/util.js');
+var api = require('../../config/api.js');
+
+var app = getApp();
+
+Page({
+ data: {
+ isTipsShow: false, //控制确认提示信息对话框
+
+ //上一个页面带来的信息
+ isShow: false,
+ selectName: '',
+ selectNationId: '',
+ selectClassName: '',
+ selectSchoolName: '',
+ selectPatid: '',
+ list: [], //成功开单信息
+ listfail: [], //失败开单信息
+
+ hideStadndard: null,
+ hideAddtion: null,
+ checkStandardList: [],
+ checkStandardContent: '',
+ checkAddtionList: [],
+ orderTotalPrice: 0.00, //基础总价
+ orderTotalPriceAddtion: 0.00, //附加总价
+ totalPrice: 0.00, //总价
+ totalPriceDisp: '',
+ message: ''
+ },
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ var that = this;
+
+ that.setData({
+ checkStandardList: app.globalData.gStandardList,
+ checkStandardContent: app.globalData.gStandardContent,
+ checkAddtionList: app.globalData.gAddtionList
+ });
+
+ this.setData({
+ selectName:options.name,
+ selectNationId:options.nationid,
+ selectClassName:options.classname,
+ selectSchoolName:options.schoolname,
+ selectPatid: options.patid
+ })
+ // console.log(this.data.checkStandardList);
+
+ var filterNum = this.data.checkStandardList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+ if(filterNum.length == 0) {
+ that.setData({
+ hideStadndard: 0,
+ checkStandardList: filterNum
+ });
+ }else{
+ that.setData({
+ hideStadndard: 1,
+ checkStandardList: filterNum
+ });
+ }
+ // console.log(this.data.hideStadndard);
+ console.log("filterNum");
+ console.log(filterNum);
+
+ var filterNum1 = this.data.checkAddtionList.filter(function(person,index,arrs){
+ return person.checked==true
+ });
+ if(filterNum1.length == 0) {
+ that.setData({
+ hideAddtion: 0,
+ checkAddtionList: filterNum1
+ });
+ }else{
+ that.setData({
+ hideAddtion: 1,
+ checkAddtionList: filterNum1
+ });
+ }
+ // console.log(this.data.hideAddtion);
+ console.log("filterNum1");
+ console.log(filterNum1);
+
+ //计算总金额
+ this.data.checkStandardList.forEach((item) => {
+ console.log(item);
+ this.data.orderTotalPrice = this.data.orderTotalPrice + parseFloat(item.itemprice)*100;
+ });
+ console.log(this.data.orderTotalPrice/100);
+
+ this.data.checkAddtionList.forEach((item) => {
+ console.log(item);
+ this.data.orderTotalPriceAddtion = this.data.orderTotalPriceAddtion + parseFloat(item.itemprice)*100;
+ });
+ console.log(this.data.orderTotalPriceAddtion/100);
+
+ this.data.totalPrice = (this.data.orderTotalPrice + this.data.orderTotalPriceAddtion) / 100;
+
+ this.setData({
+ totalPriceDisp: this.data.totalPrice.toString()
+ });
+ console.log(this.data.totalPriceDisp);
+
+ },
+
+ //获取checkou信息
+ getCheckoutInfo: function() {
+ let that = this;
+ util.request(api.kfCartCheckout, {
+ cartId: that.data.cartId,
+ addressId: that.data.addressId,
+ couponId: that.data.couponId,
+ userCouponId: that.data.userCouponId,
+ grouponRulesId: that.data.grouponRulesId
+ }).then(function(res) {
+ if (res.errno === 0) {
+ that.setData({
+ checkedGoodsList: res.data.checkedGoodsList,
+ checkedAddress: res.data.checkedAddress,
+ availableCouponLength: res.data.availableCouponLength,
+ actualPrice: res.data.actualPrice,
+ couponPrice: res.data.couponPrice,
+ grouponPrice: res.data.grouponPrice,
+ freightPrice: res.data.freightPrice,
+ goodsTotalPrice: res.data.goodsTotalPrice,
+ orderTotalPrice: res.data.orderTotalPrice,
+ addressId: res.data.addressId,
+ couponId: res.data.couponId,
+ userCouponId: res.data.userCouponId,
+ grouponRulesId: res.data.grouponRulesId,
+ });
+ }
+ wx.hideLoading();
+ });
+ },
+ bindMessageInput: function(e) {
+ this.setData({
+ message: e.detail.value
+ });
+ },
+ onReady: function() {
+ // 页面渲染完成
+
+ },
+ onShow: function() {
+ // 页面显示
+ // wx.showLoading({
+ // title: '加载中...',
+ // });
+
+ //this.getCheckoutInfo();
+
+
+
+ },
+ onHide: function() {
+ // 页面隐藏
+
+ },
+ onUnload: function() {
+ // 页面关闭
+
+ },
+ onNavToJF: function() {
+ wx.navigateBack({
+ delta: 3 //返回上一级页面
+ })
+
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+
+ onConfirmTips: function(){
+ util.requestPost(api.kforderinfo, {
+ patid: this.data.selectPatid,
+ name: this.data.selectName,
+ className: this.data.selectClassName,
+ schoolName: this.data.selectSchoolName,
+ nationId: this.data.selectNationId,
+ iteminfo: this.data.checkStandardList,
+ itemkxinfo: this.data.checkAddtionList
+ }).then(res => {
+ console.log(res);
+ if (res.errCode === '0') {
+ this.setData({
+ list: res.list,
+ listfail: res.listF,
+ isShow: true
+ })
+ // wx.showToast({
+ // title: '开单成功',
+ // icon:'success'
+ // })
+
+ // setTimeout(item => {
+ // wx.navigateBack({
+ // delta: 3 //返回上一级页面
+ // })
+ // },1000)
+ } else {
+ util.showErrorToast(res.errmsg);
+ }
+ });
+ },
+ onCancelTips: function(){
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },
+ submitOrder: function() {
+ this.setData({
+ isTipsShow: true
+ });
+ console.log("tips");
+ }
+});
\ No newline at end of file
diff --git a/pages/checkoutkf/checkoutkf.json b/pages/checkoutkf/checkoutkf.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/checkoutkf/checkoutkf.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/checkoutkf/checkoutkf.wxml b/pages/checkoutkf/checkoutkf.wxml
new file mode 100644
index 0000000..e9e97d9
--- /dev/null
+++ b/pages/checkoutkf/checkoutkf.wxml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+ 住址:
+ {{ selectSchoolName }}
+
+
+
+ 姓名:
+ {{ selectName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{iitem.itemname}}
+ ¥{{iitem.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请再次核对已选项目和价格,一旦点击“确认”后,所选项目无法取消,请仔细核对,如需修改,请按“返回”键后重新选择项目!
+
+
+
+
+ 实付:¥{{totalPriceDisp}}
+ 确认
+
+
\ No newline at end of file
diff --git a/pages/checkoutkf/checkoutkf.wxss b/pages/checkoutkf/checkoutkf.wxss
new file mode 100644
index 0000000..5717a90
--- /dev/null
+++ b/pages/checkoutkf/checkoutkf.wxss
@@ -0,0 +1,564 @@
+page {
+ height: 100%;
+ background: #f4f4f4;
+ }
+ .item{
+ width: 100%;
+ display: flex;
+ /* justify-content: space-between; */
+ /* align-items: center; */
+ border-bottom: 1rpx solid #d10707;
+ }
+ .kdlist{
+ height: 600rpx;
+ width: 500rpx;
+ margin-left: 50rpx;
+ margin-top: 30rpx;
+ /* line-height: 120rpx; */
+ /* border: 1rpx solid #6306f8; */
+ }
+ .rwtips{
+ font-size: 30rpx;
+ font-weight: bold;
+ /* color: rgb(253, 6, 6); */
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ margin-left: 20rpx;
+ margin-right: 20rpx;
+ }
+ .tipsdialog{
+ color:rgb(253, 6, 6);
+ font-size: 30rpx;
+ font-weight: bold;
+ }
+
+ .tjb-info-right{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: row-reverse;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+ .tjb-info-content{
+ width: 220rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjinfo{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #0e0af1; */
+
+ }
+
+ .tjinfo-left{
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-left: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjinfo-middle{
+ flex: auto;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+
+ .tjitem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #f10a0a; */
+
+ }
+ .tjitem-left-header{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ margin-left: 30rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-left{
+ height: 100%;
+ width: 160rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 20rpx;
+ line-height: 120rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-right{
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ margin-right: 50rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-content{
+ height: 200rpx;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 50rpx;
+ margin-left: 30rpx;
+ margin-right: 50rpx;
+ margin-top: 10rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .view_fengexian {
+ width: 96%;
+ height: 20rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+ /* 两个view的样式 */
+ .view_fengexian view {
+ width: 100%;
+ height: 2rpx;
+ /* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
+ background: rgb(241, 237, 237);
+ }
+
+ /* 字体的样式 */
+ .text_fengexian {
+ font-size: 25rpx;
+ color: rgb(253, 143, 143);
+ margin: 0rpx 2% 0rpx 2%;
+ }
+
+
+ .tjitem-line{
+ height: 100%;
+ width: 100%;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 10rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #340af1; */
+ }
+
+ .tjitem-list-wrap{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-left: 30rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+ /* border: 1rpx solid #5b0af1; */
+
+ }
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-list-big{
+ flex: 1;
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+
+ .tjitem-check{
+ height: 100%;
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-left: 50rpx;
+ line-height: 80rpx;
+ /* border: 1rpx solid #85f10a; */
+ }
+ .tjitem-check-wrap{
+ width: 50rpx;
+ font-size: 25rpx;
+ color: #333;
+ margin-top: 20rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+
+ .tjitem-input{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputf{
+ flex: 1;
+ font-size: 25rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10a0a; */
+ }
+ .tjitem-inputs{
+ display: flex !important;
+
+ }
+ .tjitem-sr{
+ border: 0;
+ }
+
+ .area{
+ height: 100rpx;
+ margin-bottom: 100rpx;
+ position: relative;
+ background: #f4f4f4;
+ }
+
+ .address-box {
+ width: 100%;
+ height: 166.55rpx;
+ background-size: 62.5rpx 10.5rpx;
+ margin-bottom: 20rpx;
+ padding-top: 10.5rpx;
+ }
+
+ .address-item {
+ display: flex;
+ height: 155.55rpx;
+ background: #fff;
+ padding: 41.6rpx 0 41.6rpx 31.25rpx;
+ }
+
+ .address-item.address-empty {
+ line-height: 75rpx;
+ text-align: center;
+ }
+
+ .address-box .l {
+ width: 125rpx;
+ height: 100%;
+ }
+
+ .address-box .l .name {
+ margin-left: 6.25rpx;
+ margin-top: -7.25rpx;
+ display: block;
+ width: 125rpx;
+ height: 43rpx;
+ line-height: 43rpx;
+ font-size: 30rpx;
+ color: #333;
+ margin-bottom: 5rpx;
+ }
+
+ .address-box .l .default {
+ margin-left: 6.25rpx;
+ display: block;
+ width: 62rpx;
+ height: 33rpx;
+ border-radius: 5rpx;
+ border: 1px solid #b4282d;
+ font-size: 20.5rpx;
+ text-align: center;
+ line-height: 29rpx;
+ color: #b4282d;
+ }
+
+ .address-box .m {
+ flex: 1;
+ height: 72.25rpx;
+ color: #999;
+ }
+
+ .address-box .mobile {
+ display: block;
+ height: 29rpx;
+ line-height: 29rpx;
+ margin-bottom: 6.25rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .address-box .address {
+ display: block;
+ height: 37.5rpx;
+ line-height: 37.5rpx;
+ font-size: 25rpx;
+ color: #666;
+ }
+
+ .address-box .r {
+ width: 77rpx;
+ height: 77rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .address-box .r image {
+ width: 52.078rpx;
+ height: 52.078rpx;
+ }
+
+ .coupon-box {
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ }
+
+ .coupon-box .coupon-item {
+ width: 100%;
+ height: 108.3rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ padding-left: 31.25rpx;
+ }
+
+ .coupon-box .l {
+ flex: 1;
+ height: 43rpx;
+ line-height: 43rpx;
+ padding-top: 35rpx;
+ }
+
+ .coupon-box .l .name {
+ float: left;
+ font-size: 30rpx;
+ color: #666;
+ }
+
+ .coupon-box .l .txt {
+ float: right;
+ font-size: 30rpx;
+ color: #666;
+ }
+
+ .coupon-box .r {
+ margin-top: 15.5rpx;
+ width: 77rpx;
+ height: 77rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .coupon-box .r image {
+ width: 52.078rpx;
+ height: 52.078rpx;
+ }
+
+ .message-box {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ /* border: 1px solid rgb(226, 4, 4); */
+ }
+
+ .message-box .message-item {
+ height: 52.078rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ margin-left: 31.25rpx;
+ padding-right: 31.25rpx;
+ padding-top: 26rpx;
+ /* border: 1px solid rgb(226, 4, 4); */
+ }
+
+ .order-box {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ }
+
+ .order-box .order-item {
+ height: 104.3rpx;
+ overflow: hidden;
+ background: #fff;
+ display: flex;
+ margin-left: 31.25rpx;
+ padding-right: 31.25rpx;
+ padding-top: 26rpx;
+ border-bottom: 1px solid #d9d9d9;
+ }
+
+ .order-box .order-item .l {
+ float: left;
+ height: 52rpx;
+ width: 50%;
+ line-height: 52rpx;
+ overflow: hidden;
+ }
+
+ .order-box .order-item .r {
+ float: right;
+ text-align: right;
+ width: 50%;
+ height: 52rpx;
+ line-height: 52rpx;
+ overflow: hidden;
+ }
+
+ .order-box .order-item.no-border {
+ border-bottom: none;
+ }
+
+ .goods-items {
+ margin-top: 20rpx;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ padding-left: 31.25rpx;
+ margin-bottom: 120rpx;
+ }
+
+ .goods-items .item {
+ height: 192rpx;
+ padding-right: 31.25rpx;
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.15);
+ }
+
+ .goods-items .item.no-border {
+ border-bottom: none;
+ }
+
+ .goods-items .item:last-child {
+ border-bottom: none;
+ }
+
+ .goods-items .img {
+ height: 145.83rpx;
+ width: 145.83rpx;
+ background-color: #f4f4f4;
+ margin-right: 20rpx;
+ }
+
+ .goods-items .img image {
+ height: 145.83rpx;
+ width: 145.83rpx;
+ }
+
+ .goods-items .info {
+ flex: 1;
+ height: 145.83rpx;
+ padding-top: 5rpx;
+ }
+
+ .goods-items .t {
+ height: 33rpx;
+ line-height: 33rpx;
+ margin-bottom: 10rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .goods-items .t .name {
+ display: block;
+ float: left;
+ }
+
+ .goods-items .t .number {
+ display: block;
+ float: right;
+ text-align: right;
+ }
+
+ .goods-items .m {
+ height: 29rpx;
+ overflow: hidden;
+ line-height: 29rpx;
+ margin-bottom: 25rpx;
+ font-size: 25rpx;
+ color: #666;
+ }
+
+ .goods-items .b {
+ height: 41rpx;
+ overflow: hidden;
+ line-height: 41rpx;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .order-total {
+ position: fixed;
+ left: 0;
+ bottom: 0rpx;
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ }
+
+ .order-total .l {
+ flex: 1;
+ height: 100rpx;
+ line-height: 100rpx;
+ color: #7232dd;
+ background: #fff;
+ font-size: 33rpx;
+ padding-left: 31.25rpx;
+ border-top: 1rpx solid rgba(0, 0, 0, 0.2);
+ border-bottom: 1rpx solid rgba(0, 0, 0, 0.2);
+ }
+
+ .order-total .r {
+ width: 233rpx;
+ height: 100rpx;
+ background: #7232dd;
+ border: 1px solid #7232dd;
+ line-height: 100rpx;
+ text-align: center;
+ color: #fff;
+ font-size: 30rpx;
+ }
+
\ No newline at end of file
diff --git a/pages/confirmation/confirmation.js b/pages/confirmation/confirmation.js
new file mode 100644
index 0000000..8f58a7f
--- /dev/null
+++ b/pages/confirmation/confirmation.js
@@ -0,0 +1,187 @@
+// pages/confirmation/confirmation.js
+var app = getApp()
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ ksmc: '',
+ date: '',
+ date2: "",
+ week: '',
+ day: '',
+ money: '',
+ today: '',
+ pbmxid: '',
+ sfId: '',
+ name: '',
+ hosName: '',
+ hosLocation: '',
+ painId: '',
+ ksmc: "",
+ ksdm: '',
+ todayStr: ''
+ },
+ naviToDes() {
+ wx.navigateTo({
+ url: "/pages/explain/explain",
+ })
+ },
+ naviToDh() {
+ wx.openLocation({
+ latitude: app.globalData.lat,
+ longitude: app.globalData.lon,
+ scale: 12,
+ name: app.globalData.hosName,
+ address: app.globalData.hosLocation
+ })
+ },
+ confirmApply() {
+ let pbmxid = this.data.pbmxid
+ console.log(wx.getStorageSync('cardNo'))
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/order?patid&pbmxid&czyh&yyhx&ksmc&ksdm&sjdjl&cardNo&patientName',
+ method: "GET",
+ data: {
+ pbmxid: pbmxid,
+ patid: this.data.painId,
+ czyh: '01',
+ yyhx: "0",
+ ksmc: String(this.data.ksmc),
+ ksdm: this.data.ksdm,
+ sjdjl: this.data.date,
+ jssj: this.data.date2,
+ zxrq: this.data.zxrq,
+ cardNo: wx.getStorageSync('cardNo'),
+ patientName: wx.getStorageSync('trueName'),
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.setStorageSync('ksmc', this.data.ksmc)
+ wx.setStorageSync('day', this.data.day)
+ wx.setStorageSync('date', this.data.date)
+ wx.setStorageSync('sjd', this.data.date + '-' + this.data.date2)
+ wx.setStorageSync('today', this.data.today)
+ wx.setStorageSync('money', this.data.money)
+ wx.setStorageSync('sfId', this.data.sfId)
+ wx.setStorageSync('name', this.data.name)
+ wx.setStorageSync('name', this.data.name)
+ wx.setStorageSync('xh', res.data.list[0].xh)
+ wx.navigateTo({
+ url: '/pages/resInformation/resInformation',
+ })
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: "none"
+ })
+ }
+ },
+ fail(err) {}
+ })
+ },
+ initDate() {
+ var myDate = new Date((new Date));
+ var time = myDate.toJSON().substr(0, 10);
+ var today = time.split('-').join("")
+ this.setData({
+ todayStr: today
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.initDate()
+ let painId = wx.getStorageSync("painId")
+ let name = wx.getStorageSync('trueName')
+ let sfId = wx.getStorageSync('sfId1')
+ let num = options.day
+ let ksmc = options.ksmc
+ let ksdm = options.ksdm
+ var year = String(num).substr(0, 4)
+ var month = String(num).substr(4, 5).substr(0, 2)
+ var date = String(num).substr(6, 8)
+ var result = year + '年' + month + '月' + date + '日'
+ let num2 = options.today
+ var year = String(num2).substr(0, 4)
+ var month = String(num2).substr(5, 6).substr(0, 2)
+ var date = String(num2).substr(8, 9)
+ var result2 = year + '年' + month + '月' + date + '日'
+ this.setData({
+ ksmc: options.ksmc,
+ date: options.date,
+ date2: options.date2,
+ week: options.week,
+ money: options.num,
+ pbmxid: options.pbmxid,
+ zxrq: options.zxrq,
+ day: result,
+ today: result2,
+ name: name,
+ sfId: sfId,
+ painId: painId,
+ hosName: app.globalData.hosName,
+ hosLocation: app.globalData.hosLocation,
+ ksmc: ksmc,
+ ksdm: ksdm
+ })
+ wx.setNavigationBarTitle({
+ title: "确认预约信息"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/confirmation/confirmation.json b/pages/confirmation/confirmation.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/confirmation/confirmation.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/confirmation/confirmation.wxml b/pages/confirmation/confirmation.wxml
new file mode 100644
index 0000000..5fc7ee2
--- /dev/null
+++ b/pages/confirmation/confirmation.wxml
@@ -0,0 +1,53 @@
+
+
+
+
+ 就诊医院
+ {{hosName}}
+
+
+ 医院地址
+ {{hosLocation}}
+
+
+ 就诊科室
+ {{ksmc}}
+
+
+ 门诊时间
+ {{day}} {{week}}
+
+
+ 候诊时间
+ {{date}}-{{date2}}
+
+
+ 费用
+
+ ¥{{money}}
+ (就诊时支付)
+
+
+
+
+
+
+ 就诊人
+ {{name}}
+
+
+ 身份证号
+ {{sfId}}
+
+
+
+
+ 挂号前仔细阅读
+ 《预约须知》
+
+ 确认预约
+
+
\ No newline at end of file
diff --git a/pages/confirmation/confirmation.wxss b/pages/confirmation/confirmation.wxss
new file mode 100644
index 0000000..9a8176b
--- /dev/null
+++ b/pages/confirmation/confirmation.wxss
@@ -0,0 +1,88 @@
+/* pages/confirmation/confirmation.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.wrap :last-child{
+ border: none;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.left{
+ width: 25%;
+ font-size: 35rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.right{
+ width: 70%;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA49JREFUWEetV0uMFFUUPbd60I0Bumb4hs0MVd2Jxg+fBDf8EmAhfhaacScYg0O9mgFjcAEJARICCbAAZroKMMTPxii6cPwkiokoLoyBkMAGuhrBkECYmX49RDcwdF1TOky6Zl5Vve7h7brvueece9+3CE2MWf1XO3MGbQJREaClAHcCNARgGEDAwCCHY+dHe5/+S5eWdIAdA8HSukGbCbwJwMysHCI69MCoH/67pziSic0CtPvBQQbeB+OJLGw8zteYsa/mFj5Ly0vtQLsXDDLwSnPCcTSBtlWF1Z/EkWgg75d7iOnEdMQncjncJ93iXhWX0kDev/4ycfjNYxEfJwnrWDvaZ5+bzKk0oNn62wDujBMuALAwzTAD52rCXptpQKP620xGT81Z/G0j2XjeyQwj3VLYZxrzpnQg7wWfEPCWqhoGKjVh22mV5r0gIMBKwJyRwu5ONWD6wS0wFqkIDNDyEWFdTDPQ4VWWheALSRgp7FjRsR+zS+UXDKJLymSi76VjbdRZmKZf+Q7ML6mwbTNy84e2dN19FIsb6A/WGDn8nGDgQ+lY72oaOAXmLeppzD1fE12XmzbAwMGasHfpGMh7wQECdir3PYUrqk7xj6YNgOhj6Vhv6xgw/cpHYN6swo7lwjmNd0RsCszjwUy04Z5ahH6SwlqvZcCrnAV43RQs0R3pWLHzYso2NL3gBwAblPPHGKi5dl/qNiwF/UToTSjiNymslenbsHRtL8jYkyRiAK+NCHtQFe/wgldD4OukXOKwr+oWB1INdJy8uSCsj0X7OO1oPU2EX+p4eD4iy6FtJTNWA3gnSTw6xNr4wZJh95l/Ug1EQTOjCzrrYDKGwLurorB/6v8KtjmloafqdO8sgBdbEVPk/J7jWeuH3bmx6iNc4ntg9kB5Vc6gHxl4cjomCLhfD3nDaG/hV+W5kEZulq5vB4VHp2MAbLwn3cXHEhdmFnna7ZiVy8CnNWFHD9nEofUqNv3KZTA/myUYixNdkY71XFaOloGsK1YlonN1py7CyaRmqbwDRIezKvovzvyBdAtHdLBaHXhEZHrBlwBezyD+Sgr7DR3xpjowYaJU/hNEnUoB5hvSLXTpirdkYJ5fmTvGPPGiaRSbQTTvrmNF34rao6kpmOiCH3SD8Xl81eNN6dhfaCuPA1syEOW2exWfwVv/byOdqArLaVa8pSloFDG9cvQdACkKPa2IRzn/AmevNDA3aatcAAAAAElFTkSuQmCC);
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+.je{
+ color: rgba(198,36,29);
+}
+.des{
+ margin-left: 20rpx;
+ font-size: 33rpx;
+ color: #666;
+}
+.bottom{
+ width: 90%;
+ height: 200rpx;
+ margin: 40rpx auto;
+}
+.msgWrap{
+ height: 50rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.t1{
+ font-size: 30rpx;
+ color: rgb(165, 161, 161);
+}
+.t2{
+ font-size: 32rpx;
+ color: rgba(58,143,255);
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
diff --git a/pages/czMsg/czMsg.js b/pages/czMsg/czMsg.js
new file mode 100644
index 0000000..1bc659e
--- /dev/null
+++ b/pages/czMsg/czMsg.js
@@ -0,0 +1,84 @@
+// pages/czMsg/czMsg.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ cardno: "",
+ cardtype: "",
+ fph: "",
+ hzxm: "",
+ jyje: '',
+ lrrq: "",
+ lsh: "",
+ sex: "",
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ cardno: options.cardno,
+ cardtype: options.cardtype,
+ fph: options.fph,
+ hzxm: options.hzxm,
+ jyje: options.jyje,
+ lrrq:options.lrrq,
+ lsh: options.lsh,
+ sex:options.sex,
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '充值详情'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/czMsg/czMsg.json b/pages/czMsg/czMsg.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/czMsg/czMsg.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/czMsg/czMsg.wxml b/pages/czMsg/czMsg.wxml
new file mode 100644
index 0000000..f63deef
--- /dev/null
+++ b/pages/czMsg/czMsg.wxml
@@ -0,0 +1,41 @@
+
+
+
+
+ 姓名
+ {{hzxm}}
+
+
+ 性别
+ {{sex}}
+
+
+ 卡类型
+ 就诊卡
+ 保障卡
+ IC卡
+
+
+ 卡号
+ {{cardno}}
+
+
+ 金额
+ {{jyje}}
+
+
+
+
+ 流水号
+ {{lsh}}
+
+
+ 发票号
+ {{fph}}
+
+
+ 交易日期
+ {{lrrq}}
+
+
+
diff --git a/pages/czMsg/czMsg.wxss b/pages/czMsg/czMsg.wxss
new file mode 100644
index 0000000..00fa525
--- /dev/null
+++ b/pages/czMsg/czMsg.wxss
@@ -0,0 +1,57 @@
+/* pages/czMsg/czMsg.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.title{
+ height: 200rpx;
+ width: 100%;
+}
+.text{
+ height: 40rpx;
+ width: 100%;
+ text-align: center;
+ line-height: 40rpx;
+ font-size: 35rpx;
+ letter-spacing: 2rpx;
+ color: #333;
+}
+
+
+.wrap :last-child{
+ border: none;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.left{
+ width: 25%;
+ font-size: 35rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.right{
+ width: 70%;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+}
+
diff --git a/pages/department/department.js b/pages/department/department.js
new file mode 100644
index 0000000..40938d3
--- /dev/null
+++ b/pages/department/department.js
@@ -0,0 +1,94 @@
+// pages/department/department.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ curNav:1,
+ curIndex:0,
+ scrollTop:0,
+ },
+
+ changeTab:function(e){
+ let id = e.target.dataset.id,
+ index = parseInt(e.target.dataset.index);
+ // 把点击到的某一项,设为当前index
+ this.setData({
+ curNav: id,
+ curIndex: index,
+ })
+ },
+
+ toDetail:function(e){
+ console.log(e)
+ const id = e.target.id;
+ const title = e.target.dataset.title;
+
+ wx.navigateTo({
+ url: '../register/register?id='+id+'&title='+title,
+ success: function(res) {
+ console.log(111)
+ },
+ fail:function(res){
+ console.log(res)
+ }
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ console.log(options)
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/department/department.json b/pages/department/department.json
new file mode 100644
index 0000000..c863665
--- /dev/null
+++ b/pages/department/department.json
@@ -0,0 +1,7 @@
+{
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "科室列表",
+ "backgroundColor": "#fff",
+ "backgroundTextStyle": "light"
+}
\ No newline at end of file
diff --git a/pages/department/department.wxml b/pages/department/department.wxml
new file mode 100644
index 0000000..6474150
--- /dev/null
+++ b/pages/department/department.wxml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+ 该分类暂无数据
+
+
diff --git a/pages/department/department.wxss b/pages/department/department.wxss
new file mode 100644
index 0000000..9139733
--- /dev/null
+++ b/pages/department/department.wxss
@@ -0,0 +1,60 @@
+/* pages/department/department.wxss */
+page{
+ background: #F1F7F5;
+}
+
+.menu{
+ font-size: 28rpx;
+ color: #666;
+ background: #F1F7F5;
+ width: 206rpx;
+ position: absolute;
+ left: 0;
+ top: 20rpx;
+ bottom: 0;
+ padding-bottom: 30rpx;
+}
+.cd{
+ width: 200rpx;
+ height: 100rpx;
+ line-height: 100rpx;
+ border-bottom: 1px solid #eee;
+ border-left: 6rpx solid #F1F7F5;
+ text-indent: 30rpx;
+}
+.content{
+ width: 550rpx;
+ background: #fff;
+ position: absolute;
+ top: 20rpx;
+ bottom: 0;
+ right: 0;
+}
+::-webkit-scrollbar {
+ width: 0;
+ height: 0;
+ color: transparent;
+}
+.active{
+ width: 200rpx;
+ background: #fff;
+ border-left: 6rpx solid green;
+}
+.goods_con{
+ margin-left: 30rpx;
+ padding-bottom: 30rpx;
+}
+.goodslist{
+ width: 100%;
+ height:100rpx;
+ line-height: 100rpx;
+ font-size: 28rpx;
+ color: #333;
+ border-bottom: 1px solid #eee;
+}
+
+.nodata{
+ margin-top: 60rpx;
+ text-align: center;
+ font-size: 28rpx;
+}
\ No newline at end of file
diff --git a/pages/departmentChoose/departmentChoose.js b/pages/departmentChoose/departmentChoose.js
new file mode 100644
index 0000000..6cbcb03
--- /dev/null
+++ b/pages/departmentChoose/departmentChoose.js
@@ -0,0 +1,85 @@
+// pages/departmentChoose/departmentChoose.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ deptList: []
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ wx.setNavigationBarTitle({
+ title: '选择部门',
+ })
+ },
+ getDeptCategoryList() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHisDeptList',
+ method: "GET",
+ success: (res) => {
+ console.log(res)
+ this.setData({
+ deptList: res.data.data
+ })
+ }
+ })
+ },
+ navigateToDept(val) {
+ const deptId = val.currentTarget.dataset.ejks_id
+ wx.navigateTo({
+ url: '/pages/selectDepartment/selectDepartment?deptId=' + deptId,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ this.getDeptCategoryList()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/departmentChoose/departmentChoose.json b/pages/departmentChoose/departmentChoose.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/departmentChoose/departmentChoose.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/departmentChoose/departmentChoose.wxml b/pages/departmentChoose/departmentChoose.wxml
new file mode 100644
index 0000000..eccf8aa
--- /dev/null
+++ b/pages/departmentChoose/departmentChoose.wxml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/departmentChoose/departmentChoose.wxss b/pages/departmentChoose/departmentChoose.wxss
new file mode 100644
index 0000000..38de5ed
--- /dev/null
+++ b/pages/departmentChoose/departmentChoose.wxss
@@ -0,0 +1 @@
+/* pages/departmentChoose/departmentChoose.wxss */
\ No newline at end of file
diff --git a/pages/departmentMsg/departmentMsg.js b/pages/departmentMsg/departmentMsg.js
new file mode 100644
index 0000000..efd9489
--- /dev/null
+++ b/pages/departmentMsg/departmentMsg.js
@@ -0,0 +1,231 @@
+// pages/departmentMsg/departmentMsg.js
+// pages/articleDetails/articleDetails.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ minDate: '',
+ maxDate: '',
+ defaultDate: '',
+
+ selectDate: '',
+ selectDept: '',
+
+ doctorList: [],
+
+ },
+ // getWeek(date) {
+ // let myDate = new Date(date);
+ // let wk = myDate.getDay();
+ // let yy = String(myDate.getFullYear());
+ // let mm = myDate.getMonth() + 1;
+ // let dd = String(
+ // myDate.getDate() < 10 ? "0" + myDate.getDate() : myDate.getDate()
+ // );
+ // let hou = String(
+ // myDate.getHours() < 10 ? "0" + myDate.getHours() : myDate.getHours()
+ // );
+ // let min = String(
+ // myDate.getMinutes() < 10 ?
+ // "0" + myDate.getMinutes() :
+ // myDate.getMinutes()
+ // );
+ // let sec = String(
+ // myDate.getSeconds() < 10 ?
+ // "0" + myDate.getSeconds() :
+ // myDate.getSeconds()
+ // );
+ // let weeks = [
+ // "周日",
+ // "周一",
+ // "周二",
+ // "周三",
+ // "周四",
+ // "周五",
+ // "周六"
+ // ];
+ // let week = weeks[wk];
+ // let nowDate;
+ // let nowTime;
+ // let nowWeek;
+ // nowDate = yy + "-" + mm + "-" + dd;
+ // nowTime = hou + ":" + min + ":" + sec;
+ // nowWeek = week;
+ // return week;
+ // },
+ formatDate(date) {
+ date = new Date(date);
+ let year = date.getFullYear(); //年
+ let month = date.getMonth() + 1; //月
+ let day = date.getDate(); //天数
+ if (month >= 1 && month <= 9) {
+ month = `0${month}`;
+ }
+ if (day >= 1 && day <= 9) {
+ day = `0${day}`;
+ }
+ return `${year}${month}${day}`;
+ },
+ onConfirm(e) {
+ this.setData({
+ doctorList:[]
+ })
+ let str = this.formatDate(e.detail)
+ this.setData({
+ selectDate:str
+ })
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/booking/getDoctorList?selectDate&selectKsdm',
+ method: "GET",
+ data: {
+ selectDate: str,
+ selectKsdm: this.data.selectDept
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ // console.log(res, "获取医生信息")
+ this.setData({
+ doctorList: res.data.list
+ })
+ }
+ })
+ },
+
+ initData() {
+ this.setData({
+ doctorList:[]
+ })
+ var today= new Date()
+ let str = this.formatDate(today)
+ this.setData({
+ selectDate:str
+ })
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/booking/getDoctorList?selectDate&selectKsdm',
+ method: "GET",
+ data: {
+ selectDate: str,
+ selectKsdm: this.data.selectDept
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res)
+ this.setData({
+ doctorList: res.data.list
+ })
+
+ }
+ })
+ },
+ navigateToBooking(e){
+ console.log(e)
+ let a = e.currentTarget.dataset.item
+ a.selectDate = this.data.selectDate
+ wx.navigateTo({
+ url: `/pages/bookingDetails/bookingDetails?item=${JSON.stringify(a)}`,
+ })
+ },
+ // naviToyy(e) {
+ // let pbmxid = e.currentTarget.dataset.item.pbmxid
+ // let day = e.currentTarget.dataset.item.zxrq
+ // let week = e.currentTarget.dataset.item.weekday
+ // let date = e.currentTarget.dataset.item.kssj
+ // let date2 = e.currentTarget.dataset.item.jssj
+ // let zxrq = e.currentTarget.dataset.item.zxrq
+ // let ksmc = this.data.ksmc
+ // let ksdm = this.data.ksdm
+ // let num = e.currentTarget.dataset.item.ghf + e.currentTarget.dataset.item.zlf
+ // let today = this.data.today
+ // var t1 = this.data.t1
+ // var t2 = this.data.t2
+ // if ((t2 - t1) / (24 * 3600 * 1000) > 30) {
+ // wx.showToast({
+ // title: '暂未开放预约',
+ // icon: "error"
+ // })
+ // } else {
+ // wx.navigateTo({
+ // url: '/pages/confirmation/confirmation?pbmxid=' + pbmxid + '&day=' + day + '&week=' + week + '&date=' + date + '&ksmc=' + ksmc + '&num=' + num + '&ksdm=' + ksdm + '&today=' + today + '&date2=' + date2 + '&zxrq=' + zxrq,
+ // })
+ // }
+ // },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ selectDept: options.deptId
+ })
+ this.initData()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ var today = new Date(new Date().setHours(0, 0, 0, 0))
+ var todayTime = new Date(new Date().setHours(0, 0, 0, 0))
+ var weekend = today.setDate(today.getDate() + 6)
+ this.setData({
+ minDate: todayTime.valueOf(),
+ maxDate: weekend,
+ defaultDate: todayTime.valueOf()
+ })
+ // this.setData({
+ // days:[this.getDays(0).substr(8,2), this.getDays(1).substr(8,2), this.getDays(2).substr(8,2), this.getDays(3).substr(8,2), this.getDays(4).substr(8,2), this.getDays(5).substr(8,2), this.getDays(6).substr(8,2)],
+ // weeks:[this.getWeek(this.getDays(0)), this.getWeek(this.getDays(1)), this.getWeek(this.getDays(2)),
+ // this.getWeek(this.getDays(3)), this.getWeek(this.getDays(4)), this.getWeek(this.getDays(5)), this.getWeek(this.getDays(6))
+ // ],
+ // today:this.getDays(0)
+ // })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ // console.log(this.data.ksdm,"ksdm")
+ // let ksdm = this.data.ksdm
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/departmentMsg/departmentMsg.json b/pages/departmentMsg/departmentMsg.json
new file mode 100644
index 0000000..c5aa163
--- /dev/null
+++ b/pages/departmentMsg/departmentMsg.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-calendar": "@vant/weapp/calendar/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/departmentMsg/departmentMsg.wxml b/pages/departmentMsg/departmentMsg.wxml
new file mode 100644
index 0000000..3963ab8
--- /dev/null
+++ b/pages/departmentMsg/departmentMsg.wxml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.ysmc}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/departmentMsg/departmentMsg.wxss b/pages/departmentMsg/departmentMsg.wxss
new file mode 100644
index 0000000..4304ae2
--- /dev/null
+++ b/pages/departmentMsg/departmentMsg.wxss
@@ -0,0 +1,170 @@
+/* pages/departmentMsg/departmentMsg.wxss */
+.banner {
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+
+.content {
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+ display: flex;
+ flex-direction: column;
+}
+
+.item {
+ height: 300rpx;
+ width: 95%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+
+.weeks {
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.item1 {
+ height: 120rpx;
+ width: 14%;
+ text-align: center;
+ font-size: 32rpx;
+ color: #666;
+ line-height: 120rpx;
+}
+
+.days {
+ height: 150rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.item2 {
+ padding: 20rpx;
+ font-size: 32rpx;
+ text-align: center;
+ border-radius: 50%;
+ background: rgba(229, 241, 255);
+ color: #666;
+}
+
+.active {
+ background: rgba(0, 110, 255);
+ color: #fff;
+}
+
+.listWrap {
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+
+.item3 {
+ height: 150rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin-bottom: 30rpx;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 20rpx;
+ box-sizing: border-box;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.zw {
+ height: 150rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin-bottom: 30rpx;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 20rpx;
+ box-sizing: border-box;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: #666;
+ font-size: 35rpx;
+}
+
+.date {
+ width: 40%;
+ color: #333;
+ font-size: 38rpx;
+ padding-left: 20rpx;
+}
+
+.je {
+ width: 35%;
+ color: rgba(198, 36, 29);
+}
+
+.yyNum {
+ width: 25%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: rgba(0, 110, 255);
+ color: #fff;
+ font-size: 32rpx;
+ padding: 5px;
+ border-radius: 8rpx;
+}
+
+.ml {
+ margin-left: 5rpx;
+}
+
+.yyNum2 {
+ width: 25%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: rgba(242, 242, 242);
+ color: #666666;
+ font-size: 32rpx;
+ padding: 5px;
+ border-radius: 8rpx;
+}
+
+.calendar {
+ --calendar-height: 830rpx;
+ margin-bottom: 20rpx;
+}
+
+
+
+.textHidden {
+ display: -webkit-box;
+ overflow: hidden;
+ /*超出隐藏*/
+ text-overflow: ellipsis;
+ /*隐藏后添加省略号*/
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ /*想显示多少行*/
+}
+
+.name_title {
+ width: 35vw;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+}
+.titleClass {
+ display: -webkit-box;
+ overflow: visible;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ /*想显示多少行*/
+}
\ No newline at end of file
diff --git a/pages/deptcount/deptcount.js b/pages/deptcount/deptcount.js
new file mode 100644
index 0000000..1144517
--- /dev/null
+++ b/pages/deptcount/deptcount.js
@@ -0,0 +1,86 @@
+
+var app = getApp();
+let common = require('../../config/common.js')
+var crypto = require('../../config/crypto.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ url: 'https://fy.btlsoln.com:8090/#/dept?openid='
+
+ // url: 'https://nxwj.btlsoln.com:8090/#/dept?openid='
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ console.log(app.globalData.openId)
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ common.checkGlobalOpenId().then(res => {
+ // var result = crypto.AES_EN(res)
+ this.setData({
+ url: this.data.url + res
+ })
+ })
+ } else {
+ // var result = crypto.AES_EN(app.globalData.openId)
+ this.setData({
+ url: this.data.url + app.globalData.openId
+ })
+ }
+ console.log(this.data.url)
+
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/deptcount/deptcount.json b/pages/deptcount/deptcount.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/deptcount/deptcount.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/deptcount/deptcount.wxml b/pages/deptcount/deptcount.wxml
new file mode 100644
index 0000000..a44d8b9
--- /dev/null
+++ b/pages/deptcount/deptcount.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/deptcount/deptcount.wxss b/pages/deptcount/deptcount.wxss
new file mode 100644
index 0000000..90d7732
--- /dev/null
+++ b/pages/deptcount/deptcount.wxss
@@ -0,0 +1 @@
+/* pages/deptcount/deptcount.wxss */
\ No newline at end of file
diff --git a/pages/explain/explain.js b/pages/explain/explain.js
new file mode 100644
index 0000000..3d70a21
--- /dev/null
+++ b/pages/explain/explain.js
@@ -0,0 +1,88 @@
+// pages/explain/explain.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ content:[]
+ },
+ confirm(){
+ wx.navigateBack({
+
+ })
+ },
+ getMsg(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findOrderNotice',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"预约须知 ")
+ this.setData({
+ content:res.data.CONTENT
+ })
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ wx.setNavigationBarTitle({
+ title: "预约须知"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ this.getMsg()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/explain/explain.json b/pages/explain/explain.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/explain/explain.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/explain/explain.wxml b/pages/explain/explain.wxml
new file mode 100644
index 0000000..7e60045
--- /dev/null
+++ b/pages/explain/explain.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+ 确认
+
+
diff --git a/pages/explain/explain.wxss b/pages/explain/explain.wxss
new file mode 100644
index 0000000..350daea
--- /dev/null
+++ b/pages/explain/explain.wxss
@@ -0,0 +1,39 @@
+/* pages/explain/explain.wxss */
+.main{
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ height: 100%;
+ margin:30rpx auto;
+}
+.title{
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+}
+.item{
+ width: 100%;
+ font-size: 32rpx;
+ color: #666;
+ line-height: 50rpx;
+}
+.kg{
+ text-indent: 64rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
diff --git a/pages/feedBack/feedBack.js b/pages/feedBack/feedBack.js
new file mode 100644
index 0000000..69cebfd
--- /dev/null
+++ b/pages/feedBack/feedBack.js
@@ -0,0 +1,160 @@
+// pages/userMsgDel/userMsgDel.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ show:false,
+ typeList:[
+ {name:'挂号相关',type:'0'},
+ {name:'缴费相关',type:'1'},
+ {name:'使用问题',type:'2'},
+ ],
+ typeName:'',
+ typeId:'',
+ msgDes:'',
+ yx:'',
+ phone:''
+ },
+ save(){
+ let yx = this.data.yx
+ let phone = this.data.phone
+ let type = this.data.typeId
+ let msg = this.data.msgDes
+ if(yx == '' &&phone ==''){
+ wx.showModal({
+ title: '',
+ content: '至少输入一个联系方式,方便我们解决您的问题!',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ }
+ }
+ })
+ }else{
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/problemFeedback?type&content&phone&email',
+ method:"GET",
+ data:{
+ type:type,
+ content:msg,
+ phone:phone,
+ email:yx
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"提交反馈")
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '提交成功',
+ icon: 'success',
+ duration: 2000
+ })
+ }
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+ },
+ fail (err) {
+ console.error('失败', err)
+ }
+ })
+ }
+ },
+ showPop(){
+ this.setData({ show: true });
+ },
+ onClose() {
+ this.setData({ show: false, });
+ },
+ confirm(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ show: false,
+ typeName:item.name,
+ typeId:item.type
+ })
+ },
+
+ msgDes:function(e){
+ this.setData({
+ msgDes:e.detail.value
+ })
+ },
+ yx:function(e){
+ this.setData({
+ yx:e.detail.value
+ })
+ },
+ phone:function(e){
+ this.setData({
+ phone:e.detail.value
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title:'问题反馈'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/feedBack/feedBack.json b/pages/feedBack/feedBack.json
new file mode 100644
index 0000000..31a5700
--- /dev/null
+++ b/pages/feedBack/feedBack.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/feedBack/feedBack.wxml b/pages/feedBack/feedBack.wxml
new file mode 100644
index 0000000..c22c967
--- /dev/null
+++ b/pages/feedBack/feedBack.wxml
@@ -0,0 +1,43 @@
+
+
+
+ 请认填写反馈信息
+
+
+ 问题类型
+ 请选择问题类型
+ {{typeName}}
+
+
+ 问题描述
+
+
+
+
+
+ 联系邮箱
+
+
+
+
+
+ 手机号码
+
+
+
+
+ 提交
+
+
+
+
+ 选择问题类型
+ {{item.name}}
+
+
+
\ No newline at end of file
diff --git a/pages/feedBack/feedBack.wxss b/pages/feedBack/feedBack.wxss
new file mode 100644
index 0000000..58e41c8
--- /dev/null
+++ b/pages/feedBack/feedBack.wxss
@@ -0,0 +1,140 @@
+/* pages/userMsgDel/userMsgDel.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+.title{
+ height: 120rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 120rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left{
+ height: 100%;
+ width: 180rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input2{
+ flex: 1;
+ height: 100%;
+ font-size: 30rpx;
+ color: #666;
+ line-height: 120rpx;
+}
+.input3{
+ flex: 1;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.sr{
+ border: 0;
+}
+.placeholder{
+ font-size: 30rpx;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.popWrap :last-child{
+ border: none;
+}
+.title1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 80rpx;
+ text-align: center
+}
+.msgItem{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ text-align: center;
+ line-height: 80rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left1{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.left1{
+ height: 100%;
+ width: 400rpx;
+}
+.switch{
+ height: 100%;
+ width: 100rpx;
+ display:flex;
+ align-items: center;
+ justify-content: center;
+}
+.msgDes{
+ height: 80rpx;
+ width: 100%;
+ padding: 20rpx 15rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ margin-top: 10rpx;
+ background: rgba(247,247,248);
+ font-size: 30rpx;
+ color: #666;
+ line-height: 50rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ margin-top: 30rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(3,112,255);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
diff --git a/pages/ghMsg/ghMsg.js b/pages/ghMsg/ghMsg.js
new file mode 100644
index 0000000..6fded9d
--- /dev/null
+++ b/pages/ghMsg/ghMsg.js
@@ -0,0 +1,243 @@
+// pages/ghMsg/ghMsg.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ ksmc:'',
+ date:'',
+ week:'',
+ day:'',
+ money:'',
+ pbmxid:'',
+ sfId:'',
+ name:'',
+ hosName:'',
+ hosLocation:'',
+ isShow:'true',
+ id:'',
+ yylsh:'',
+ jlzt:'',
+ xh:''
+ },
+ naviToDh(){
+ wx.openLocation({
+ latitude: app.globalData.lat,
+ longitude: app.globalData.lon,
+ scale:12,
+ name:app.globalData.hosName,
+ address:app.globalData.hosLocation
+ })
+ },
+ cancel(){
+ var _this = this;
+ if(_this.data.id == 0){
+ let yylsh = _this.data.xh
+ wx.showModal({
+ title: '',
+ content: '确定取消这次预约吗?',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/cancelOrder?yylsh',
+ method:"GET",
+ data:{
+ yylsh:yylsh,
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '取消成功',
+ icon: 'success',
+ duration: 2000
+ })
+ }else{
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'error',
+ duration: 2000
+ })
+ }
+ setTimeout(item => {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ },1000)
+ _this.setData({
+ isShow:false
+ })
+ },
+ fail (err) {
+ console.error('失败', err)
+ }
+ })
+ }
+ }
+ })
+ }else{
+ let yylsh = _this.data.yylsh
+ wx.showModal({
+ title: '',
+ content: '确定取消这次预约吗?',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/cancelOrder?yylsh',
+ method:"GET",
+ data:{
+ yylsh:yylsh,
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '取消成功',
+ icon: 'success',
+ duration: 2000
+ })
+
+ }else{
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'error',
+ duration: 2000
+ })
+ }
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+ _this.setData({
+ isShow:false
+ })
+ },
+ fail (err) {
+ console.error('失败', err)
+ }
+ })
+ }
+ }
+ })
+ }
+
+ },
+
+ back(){
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ console.log(options,"999999")
+ let id = options.stateId
+ this.setData({
+ id:id
+ })
+ let ksmc = options.ksmc
+ let date = options.date
+ let num = options.time
+ let name = options.name
+ let sfId = options.card
+ let yylsh= options.yylsh
+ let jlzt = options.jlzt
+ // let sfId = options.name
+ var year = String(num).substr(0,4)
+ var month = String(num).substr(4,5).substr(0,2)
+ var date1 = String(num).substr(6,7)
+ var result2 = year+'年'+ month +'月'+date1+'日'
+ var day = options.time
+ var that = this
+ if(id == 0){
+ that.setData({
+ hosName:app.globalData.hosName,
+ hosLocation:app.globalData.hosLocation,
+ ksmc:wx.getStorageSync('ksmc') ,
+ day:wx.getStorageSync('day') ,
+ date:wx.getStorageSync('sjd') ,
+ money:wx.getStorageSync('money') ,
+ sfId:wx.getStorageSync('sfId') ,
+ name:wx.getStorageSync('name'),
+ xh:wx.getStorageSync('xh')
+ })
+ }else{
+ that.setData({
+ hosName:app.globalData.hosName,
+ hosLocation:app.globalData.hosLocation,
+ ksmc:ksmc,
+ date:date,
+ day:day,
+ name:name,
+ sfId:sfId,
+ yylsh:yylsh,
+ jlzt:jlzt,
+ })
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: "预约就诊详情"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/ghMsg/ghMsg.json b/pages/ghMsg/ghMsg.json
new file mode 100644
index 0000000..79be446
--- /dev/null
+++ b/pages/ghMsg/ghMsg.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+
+ }
+}
\ No newline at end of file
diff --git a/pages/ghMsg/ghMsg.wxml b/pages/ghMsg/ghMsg.wxml
new file mode 100644
index 0000000..3104643
--- /dev/null
+++ b/pages/ghMsg/ghMsg.wxml
@@ -0,0 +1,60 @@
+
+
+
+ 预约成功
+
+
+
+ 已取消
+
+
+
+ 就诊医院
+ {{hosName}}
+
+
+ 医院地址
+ {{hosLocation}}
+
+
+ 就诊科室
+ {{ksmc}}
+
+
+ 门诊时间
+ {{day}} {{week}}
+
+
+ 候诊时间
+ {{date}}
+
+
+ 费用
+
+ ¥{{money}}
+ (就诊时支付)
+
+
+
+
+
+
+ 就诊人
+ {{name}}
+
+
+ 身份证号
+ {{sfId}}
+
+
+
+ 取消预约
+ 已取消
+
+
+ 返回首页
+
+
\ No newline at end of file
diff --git a/pages/ghMsg/ghMsg.wxss b/pages/ghMsg/ghMsg.wxss
new file mode 100644
index 0000000..fc38739
--- /dev/null
+++ b/pages/ghMsg/ghMsg.wxss
@@ -0,0 +1,147 @@
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.title{
+ height: 200rpx;
+ width: 100%;
+}
+.text{
+ height: 40rpx;
+ width: 100%;
+ text-align: center;
+ line-height: 40rpx;
+ font-size: 35rpx;
+ letter-spacing: 2rpx;
+ color: #333;
+}
+.icon2{
+ height: 120rpx;
+ width: 120rpx;
+ margin: 50rpx auto;
+ background-color: rgba(0,110,255);
+ background-size: 100%;
+ border-radius: 50%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAABMZJREFUeF7t3fuODEEUBvCv4214HXELIYQgBCGIW3aDIAQhCCGErMu+D69zpNaZmN2dS3dNn+o6fb7+U2Zq63zfb2t356YBr9AJNKGn5/AggOAICIAAgicQfHyeAAQQPIHg4/MEIIDgCQQfnycAAQRPIPj4PAEIIHgCwcfnCUAAwRMIPj5PAAIInkDw8XkCEEDwBIKPzxOAAIInEHx8ngAEEDyB4OPzBCCA4AkEH58nAAEETyD4+DwBCCB4AsHH5wlAAMETCD4+TwACCJ5A8PF5AhBA8AQqGF9E9qZtNE3zp/R2eAKUTnzH19PyN/WfD5RGQAADApgqf59u4zeAoggIYCAAM8qf7KQoAgIYAMCC8osjIIDCAFqUXxQBARQE0KH8YggIoBCAjPKLICCAAgBWKD/tzvSXQgIwBlBz+VsPPhnPH3r52ssnAEOeHsonACMAXsonAAMAnsongJ4BeCufAHoE4LF8AugJgNfyCaAHAJ7LJ4AVAXgvnwBWADCG8gkgE8BYyieADABjKp8AOgIYW/mDARCRuwD2NE2z1rGDwW4+xvIHASAiNwE80ibXPSAYa/nFAYjIVQDPdnwbV41gzOUXBSAiFwG8mnOGV4lg7OUXAyAiZwG8W/IDvCoEEcovAkBETgH42PK3tyoQRCnfHICIHAPwtWX5k5sNiiBS+aYAROQggJ8dyx8UQbTyTQGkxUXkV3qzowcEEcs3B6AIfgA4VDOCqOUXAaAIvgM4XCOCyOUXA6AINgAcyUSw1jTNeuZ9594tevlFASiCbwCOZhbZKwKW/6+F4u8MEpH0Z2H68zDn6gUBy/8ffXEAehJ8AXA8RwCAlRCw/O2pDwJAEXwGcKIkApa/O+3BACiCTwBOlkDA8menPCgARZCeJ0jPF+RcrR42Zvnzox0cgCL4AOB0jgAACxGw/MWpVgFAEbwHcKZPBCx/eZrVAFAE6TUD6bUDOde2k4Dlt4uwKgCK4C2Ac+22v+tWWwhYfvv0qgOgCN4AON9+jG23TA8Z7wcw+fjVLsuYfiBTl42Uum2VABTBawAXSgVh/WlcBefo9KWqBaAI0otI04tJra9w3/mTQKsGoAheArhkKCBs+SnT6gEoghcALhsgCF2+GwCK4DmAKz0iCF++KwCKIL2rKL27aNWL5WuCLn4ETLctIk8BXFtBAMufCs8dAD0JngC4noGA5e8IzSUARfAYwI0OCFj+jLDcAlAE6W3m6e3myy6WPych1wAUwUMAtxYIYPkLwnEPQBE8AHB7xpwsf8nZOAoAiuA+gDtT87L8ZT8YvTwS2GKOrZuISHom8F7UJ3ba5jR9u9GcAJOhRCR98NRm6f+CNSf8Gu4zOgA1hOppDwTgqS2DvRKAQaieliQAT20Z7JUADEL1tCQBeGrLYK8EYBCqpyUJwFNbBnslAINQPS1JAJ7aMtgrARiE6mlJAvDUlsFeCcAgVE9LEoCntgz2SgAGoXpakgA8tWWwVwIwCNXTkgTgqS2DvRKAQaieliQAT20Z7JUADEL1tCQBeGrLYK8EYBCqpyUJwFNbBnslAINQPS1JAJ7aMtgrARiE6mlJAvDUlsFeCcAgVE9LEoCntgz2SgAGoXpakgA8tWWwVwIwCNXTkn8BYePYkCvSNSQAAAAASUVORK5CYII=);
+}
+.icon3{
+ height: 120rpx;
+ width: 120rpx;
+ display: flex;
+ align-items: center;
+ margin: 50rpx auto;
+ /* background-color: rgba(216,30,6) ; */
+ background-size: 100%;
+ border-radius: 50%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAFYNJREFUeF7tXQuUHFWZ/v7q6eokBHm5R5akq3kk6RrCY2VhwV1xQTYSXqviMpH18MqyC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HcCXWPRiK4I+AODH4RPS+0+TxwvsW8iVg8GLyTQFawZ6VQTMoyRR0ZRTQVAZScYNhuLG0Slu4PRzFdLtXwbRCuyvcXVMsK1uo8I0QazsOZdEpRuR4K3nWBerGPelRi7/gFT6a7XVySfQJnuUr5FHH+6FwQQmGhFu78aKi5zYtGHFz6SNHriVg8JXqx6saOzOk3fAeqZ0vInaCyVSHK0CkTP+UN4sntHcauOElRpcjNSc4wuzAPz6VVQR/JNXuFD8T5flfcxdtawQ6jRVz2LblFyL5OdgrCJfH7SZ15lILktqnL3Iveuj9Jsg+h8NmgeGJF+ilXFW03w75b15JFVSVC/lu4A9cxUHU1vVvA2DpJlrN8HQNhGPl5lgog73EnMu0DY5RPtgk+7KkQGTzeYp4MxnYmmi/cVYsxiA7PAmB1Uhl2HsTqaPp/oHhkHzpDzjEneNgAIboa/j/kWBl/VDOHiPiaBHvANurud7zFtBUBtgarRyAIESu5McV/gBvytNEAPzHGLgdlZmy1jLAAwiYAQm4Wv6TxWAJjAQIjdwscaADXmRNayLoPmg3AOM05t9nYY5fhEWAfGmiGf187tK4nKbLFssdwBxtKUAINh0DkGYX5cwSAW3Wes9X1eE+dFr9dvxwCgnumq5+xZAMTf31QyoLSn+QB+AuApBj/V7ZY2tIcN/Vk7EgD14jpvxYGYZp4NFkcFi2MiCyCpr5KGlCXhCwumdSBei37v8ahy/TWJ38BhOx4AY0koCmENEdsJH1kmZMF+FkTCXa32N5WAaVx1YSOgn4F+AAMY/rcfzP0gI0+MfNlAvovJmeMOSlTiCNR5rDr8P6TBq7Rr8yaYAAAAAElFTkSuQmCC);
+}
+.wrap :last-child{
+ border: none;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.left{
+ width: 25%;
+ font-size: 35rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.right{
+ width: 70%;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA49JREFUWEetV0uMFFUUPbd60I0Bumb4hs0MVd2Jxg+fBDf8EmAhfhaacScYg0O9mgFjcAEJARICCbAAZroKMMTPxii6cPwkiokoLoyBkMAGuhrBkECYmX49RDcwdF1TOky6Zl5Vve7h7brvueece9+3CE2MWf1XO3MGbQJREaClAHcCNARgGEDAwCCHY+dHe5/+S5eWdIAdA8HSukGbCbwJwMysHCI69MCoH/67pziSic0CtPvBQQbeB+OJLGw8zteYsa/mFj5Ly0vtQLsXDDLwSnPCcTSBtlWF1Z/EkWgg75d7iOnEdMQncjncJ93iXhWX0kDev/4ycfjNYxEfJwnrWDvaZ5+bzKk0oNn62wDujBMuALAwzTAD52rCXptpQKP620xGT81Z/G0j2XjeyQwj3VLYZxrzpnQg7wWfEPCWqhoGKjVh22mV5r0gIMBKwJyRwu5ONWD6wS0wFqkIDNDyEWFdTDPQ4VWWheALSRgp7FjRsR+zS+UXDKJLymSi76VjbdRZmKZf+Q7ML6mwbTNy84e2dN19FIsb6A/WGDn8nGDgQ+lY72oaOAXmLeppzD1fE12XmzbAwMGasHfpGMh7wQECdir3PYUrqk7xj6YNgOhj6Vhv6xgw/cpHYN6swo7lwjmNd0RsCszjwUy04Z5ahH6SwlqvZcCrnAV43RQs0R3pWLHzYso2NL3gBwAblPPHGKi5dl/qNiwF/UToTSjiNymslenbsHRtL8jYkyRiAK+NCHtQFe/wgldD4OukXOKwr+oWB1INdJy8uSCsj0X7OO1oPU2EX+p4eD4iy6FtJTNWA3gnSTw6xNr4wZJh95l/Ug1EQTOjCzrrYDKGwLurorB/6v8KtjmloafqdO8sgBdbEVPk/J7jWeuH3bmx6iNc4ntg9kB5Vc6gHxl4cjomCLhfD3nDaG/hV+W5kEZulq5vB4VHp2MAbLwn3cXHEhdmFnna7ZiVy8CnNWFHD9nEofUqNv3KZTA/myUYixNdkY71XFaOloGsK1YlonN1py7CyaRmqbwDRIezKvovzvyBdAtHdLBaHXhEZHrBlwBezyD+Sgr7DR3xpjowYaJU/hNEnUoB5hvSLXTpirdkYJ5fmTvGPPGiaRSbQTTvrmNF34rao6kpmOiCH3SD8Xl81eNN6dhfaCuPA1syEOW2exWfwVv/byOdqArLaVa8pSloFDG9cvQdACkKPa2IRzn/AmevNDA3aatcAAAAAElFTkSuQmCC);
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+.je{
+ color: rgba(198,36,29);
+}
+.des{
+ margin-left: 20rpx;
+ font-size: 33rpx;
+ color: #666;
+}
+.bottom{
+ width: 90%;
+ margin: 10rpx auto;
+}
+.msgWrap{
+ height: 50rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.t1{
+ font-size: 30rpx;
+ color: rgb(165, 161, 161);
+}
+.t2{
+ font-size: 32rpx;
+ color: rgba(58,143,255);
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ margin-top: 50rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgb(109, 110, 112);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn3{
+ height: 100rpx;
+ margin-top: 50rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(0,110,255);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
\ No newline at end of file
diff --git a/pages/healthEncyclopedia/healthEncyclopedia.js b/pages/healthEncyclopedia/healthEncyclopedia.js
new file mode 100644
index 0000000..be71278
--- /dev/null
+++ b/pages/healthEncyclopedia/healthEncyclopedia.js
@@ -0,0 +1,104 @@
+// pages/healthEncyclopedia/healthEncyclopedia.js
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ msgList:[],
+ url:''
+ },
+ naviToMsg(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let hosId = item.HOS_ARTICLE_ID
+ wx.navigateTo({
+ url: '/pages/articleDetails/articleDetails?hosId='+hosId,
+ })
+ },
+ getList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospitalArticle',
+ // url:'http://sayetest.f3322.org:5000/findHospitalArticle',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"健康百科")
+ let data = res.data
+ data.map((item,index) => {
+ let str = item.IMG
+ var html = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
+ item.IMG = html
+ return data
+ })
+ console.log(data,"新")
+ this.setData({
+ msgList:data
+ })
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ url:app.globalData.url2
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '健康百科'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ this.getList()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/healthEncyclopedia/healthEncyclopedia.json b/pages/healthEncyclopedia/healthEncyclopedia.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/healthEncyclopedia/healthEncyclopedia.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/healthEncyclopedia/healthEncyclopedia.wxml b/pages/healthEncyclopedia/healthEncyclopedia.wxml
new file mode 100644
index 0000000..d78229d
--- /dev/null
+++ b/pages/healthEncyclopedia/healthEncyclopedia.wxml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+ {{item.TITLE}}
+
+
+
\ No newline at end of file
diff --git a/pages/healthEncyclopedia/healthEncyclopedia.wxss b/pages/healthEncyclopedia/healthEncyclopedia.wxss
new file mode 100644
index 0000000..9751a21
--- /dev/null
+++ b/pages/healthEncyclopedia/healthEncyclopedia.wxss
@@ -0,0 +1,49 @@
+/* pages/healthEncyclopedia/healthEncyclopedia.wxss */
+.banner{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.item{
+ height: 200rpx;
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding: 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.imgWrap{
+ height: 100%;
+ width: 35%;
+ border-radius: 10rpx ;
+ /* background: rgba(230,241,255); */
+}
+.imgWrap image{
+ height: 100%;
+ width:100%;
+ border-radius: 15rpx;
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+.msgWrap{
+ height: 100%;
+ width: 60%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+.title{
+ font-size:30rpx;
+ color: #333;
+}
+.writer{
+ display: flex;
+ font-size: 25rpx;
+ color: #666;
+}
+.ml{
+ margin-left: 30rpx;
+}
\ No newline at end of file
diff --git a/pages/historicalvisitrecords/historicalvisitrecords.js b/pages/historicalvisitrecords/historicalvisitrecords.js
new file mode 100644
index 0000000..ada1b9f
--- /dev/null
+++ b/pages/historicalvisitrecords/historicalvisitrecords.js
@@ -0,0 +1,215 @@
+// pages/historicalvisitrecords/historicalvisitrecords.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ patientData: [],
+ show: false,
+ list: [],
+ name: '',
+ painId: '',
+ relate: '',
+ card: '', //sfz
+ cardNum: '', //jzk
+ cardType: '',
+ loadingHidden: true,
+ },
+ showPop() {
+ this.setData({
+ show: true
+ });
+ },
+ onClose() {
+ this.setData({
+ show: false
+ });
+ },
+ async confirm(e) {
+ console.log(e.currentTarget.dataset.item)
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name: user.TRUE_NAME,
+ painId: user.PATIENT_ID,
+ relate: user.RELATE,
+ card: user.ID_CARD,
+ cardNum: user.MEDICAL_CARD,
+ cardType: user.CARD_TYPE,
+ show: false,
+ loadingHidden: false,
+ });
+ await this.getPatientList()
+ },
+ getPatientList() {
+ if (this.data.card && this.data.name) {
+ this.setData({
+ loadingHidden: false,
+ })
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHistoricalVisits',
+ method: 'GET',
+ data: {
+ patientName: this.data.name,
+ idCard: this.data.card,
+ },
+ success: (result) => {
+ console.log(result)
+ if (result.data.data == null) {
+ wx.showToast({
+ title: '未获取到信息',
+ icon: 'error'
+ })
+ this.setData({
+ patientData: [],
+ loadingHidden: true,
+ })
+ } else {
+ this.setData({
+ loadingHidden: true,
+ patientData: JSON.parse(result.data.data)
+ })
+ }
+ resolve("ok")
+ },
+
+ })
+ })
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ },
+ getPerList() {
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let data = res.data
+ console.log(data)
+ data.map((item, index) => {
+ if (item.TYPE == 0) {
+ this.setData({
+ name: item.TRUE_NAME,
+ painId: item.PATIENT_ID,
+ relate: item.RELATE,
+ cardNum: item.MEDICAL_CARD,
+ cardType: item.CARD_TYPE,
+ card: item.ID_CARD
+ })
+ }
+ })
+ if (res.data.length > 0) {
+ this.setData({
+ list: data
+ })
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ resolve("ok");
+ }
+ })
+ })
+ },
+ async getInitData() {
+ await this.getPerList()
+ await this.getPatientList()
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.getInitData()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '历史就诊记录'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/historicalvisitrecords/historicalvisitrecords.json b/pages/historicalvisitrecords/historicalvisitrecords.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/historicalvisitrecords/historicalvisitrecords.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/historicalvisitrecords/historicalvisitrecords.wxml b/pages/historicalvisitrecords/historicalvisitrecords.wxml
new file mode 100644
index 0000000..d7b9f25
--- /dev/null
+++ b/pages/historicalvisitrecords/historicalvisitrecords.wxml
@@ -0,0 +1,69 @@
+
+
+
+
+
+ {{name}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+
+
+
+ {{cardNum}}
+ 切换就诊人
+
+
+ 加载中...
+
+
+
+
+
+ {{item.patientName}}
+
+
+
+ {{item.doctorName}}
+
+
+
+ {{item.deptName}}
+
+
+
+ {{item.icdName}}
+
+
+
+ {{item.registerDate}}
+
+
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/historicalvisitrecords/historicalvisitrecords.wxss b/pages/historicalvisitrecords/historicalvisitrecords.wxss
new file mode 100644
index 0000000..55237f8
--- /dev/null
+++ b/pages/historicalvisitrecords/historicalvisitrecords.wxss
@@ -0,0 +1,177 @@
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.historicalvisitContainer {
+ width: 100vw;
+ /* height: 100vh; */
+ background-color: #f6f6f6;
+}
+
+.historicalvisitsingle {
+ width: 95vw;
+ background-color: #ffffff;
+ margin: 2vw 2vw 2vw 2vw;
+ padding: 5rpx 5rpx 5rpx 5rpx;
+ border-radius: 20rpx;
+}
+
+.historicalvisitcol {
+ display: flex;
+ width: 100vw;
+ /* justify-content: center; */
+ align-items: center;
+
+
+}
+
+.historicalvisitcolheader {
+ width: 48vw;
+ height: 5vh;
+ font-size: small;
+}
+
+.historicalvisitcolend {
+ width: 48vw;
+ height: 5vh;
+ font-size: small;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 30rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ margin-right: 50rpx;
+ border-radius: 50%;
+ background-color: rgba(0,110,255);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
+ background-size:100%;
+ background-repeat: no-repeat;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: none;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
\ No newline at end of file
diff --git a/pages/hospitalizationPage/hospitalizationPage.js b/pages/hospitalizationPage/hospitalizationPage.js
new file mode 100644
index 0000000..e3b0494
--- /dev/null
+++ b/pages/hospitalizationPage/hospitalizationPage.js
@@ -0,0 +1,83 @@
+// pages/hospitalizationPage/hospitalizationPage.js
+var app = getApp();
+let common = require('../../config/common.js')
+var crypto = require('../../config/crypto.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ url: 'https://fy.btlsoln.com:8090/#/inhos?openid='
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ console.log(app.globalData.openId)
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ common.checkGlobalOpenId().then(res => {
+ // var result = crypto.AES_EN(res)
+ this.setData({
+ url: this.data.url + res
+ })
+ })
+ } else {
+ // var result = crypto.AES_EN(app.globalData.openId)
+ this.setData({
+ url: this.data.url + app.globalData.openId
+ })
+ }
+ console.log(this.data.url)
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/hospitalizationPage/hospitalizationPage.json b/pages/hospitalizationPage/hospitalizationPage.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/hospitalizationPage/hospitalizationPage.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/hospitalizationPage/hospitalizationPage.wxml b/pages/hospitalizationPage/hospitalizationPage.wxml
new file mode 100644
index 0000000..a44d8b9
--- /dev/null
+++ b/pages/hospitalizationPage/hospitalizationPage.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/hospitalizationPage/hospitalizationPage.wxss b/pages/hospitalizationPage/hospitalizationPage.wxss
new file mode 100644
index 0000000..7db843a
--- /dev/null
+++ b/pages/hospitalizationPage/hospitalizationPage.wxss
@@ -0,0 +1 @@
+/* pages/hospitalizationPage/hospitalizationPage.wxss */
\ No newline at end of file
diff --git a/pages/inHospitalStatistics/inHospitalStatistics.js b/pages/inHospitalStatistics/inHospitalStatistics.js
new file mode 100644
index 0000000..c28545d
--- /dev/null
+++ b/pages/inHospitalStatistics/inHospitalStatistics.js
@@ -0,0 +1,87 @@
+// pages/inHospitalStatistics/inHospitalStatistics.js
+var app = getApp();
+Page({
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ encryptData: ''
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ },
+
+ toRevenuePage() {
+ wx.navigateTo({
+ url: '/pages/revenuePage/revenuePage',
+ })
+ },
+ toOutpatientPage() {
+ wx.navigateTo({
+ url: '/pages/outpatientPage/outpatientPage',
+ })
+ },
+ toHospitalizationPage() {
+ wx.navigateTo({
+ url: '/pages/hospitalizationPage/hospitalizationPage',
+ })
+ },
+ toDeptCountPage() {
+ wx.navigateTo({
+ url: '/pages/deptcount/deptcount',
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '院内统计'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/inHospitalStatistics/inHospitalStatistics.json b/pages/inHospitalStatistics/inHospitalStatistics.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/inHospitalStatistics/inHospitalStatistics.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/inHospitalStatistics/inHospitalStatistics.wxml b/pages/inHospitalStatistics/inHospitalStatistics.wxml
new file mode 100644
index 0000000..ea18e35
--- /dev/null
+++ b/pages/inHospitalStatistics/inHospitalStatistics.wxml
@@ -0,0 +1,35 @@
+
+
+
+
+ 全院综合统计
+ 点击查看详情
+
+
+
+
+
+ 门诊统计
+ 点击查看详情
+
+
+
+
+
+ 住院统计
+ 点击查看详情
+
+
+
+
+
+
+ 科室统计(门诊)
+ 点击查看详情
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/inHospitalStatistics/inHospitalStatistics.wxss b/pages/inHospitalStatistics/inHospitalStatistics.wxss
new file mode 100644
index 0000000..4e5b4ab
--- /dev/null
+++ b/pages/inHospitalStatistics/inHospitalStatistics.wxss
@@ -0,0 +1,59 @@
+.item_container {
+ margin-top: 1.5vh;
+ height: 63vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-between;
+}
+.icon_hospitalization {
+ width: 96vw;
+ height: 20vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 15px;
+ background-size: cover;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/tjbg3.png);
+}
+
+.icon_outpatient {
+ width: 96vw;
+ height: 20vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 15px;
+ background-size: cover;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/tjbg2.png);
+}
+
+.place_holder {
+ width: 40vw;
+}
+
+.font_title {
+ font-size: x-large;
+}
+
+.font_detail {
+ font-size: xx-small;
+}
+
+.font_container {
+ height: 6vh;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+
+.icon_synthesis {
+ width: 96vw;
+ height: 20vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 15px;
+ background-size: cover;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/tjbg1.png);
+}
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
new file mode 100644
index 0000000..113603f
--- /dev/null
+++ b/pages/index/index.js
@@ -0,0 +1,472 @@
+// index.js
+// 获取应用实例
+const app = getApp()
+let common = require('../../config/common.js')
+Page({
+ data: {
+ // releaseData: ['o-ZxO4-oIddDT0ecgxNEkvApJ-N0', 'o-ZxO47Otvo5Rsq7kN-4PHvZIOt8', 'o-ZxO47fz4FjMvL5ESLKcl0YqVJ8', 'o-ZxO40Qxe6oCekxLWLuwLwraG4Y', 'o-ZxO40USy1Wnwc24hRL5SWX7XEw', 'o-ZxO49XU81BKOSnDzKVGWrAZXGg', 'o-ZxO47o9FYvO-Eor_JPCwzXS3ig', 'o-ZxO476Ml4-QsCeDDUDbI3frVFU'],
+ releaseData: [],
+ isComprehensive: false,
+ imgUrls: [],
+ url: '',
+ name: '',
+ showOver: false, //满意度弹窗是否显示
+ display: '',
+ list: [{
+ name: '报告查询',
+ icon: 'icon1',
+ id: '0'
+ },
+ {
+ name: '门诊费用',
+ icon: 'icon2',
+ id: "2"
+ },
+ {
+ name: '充值记录',
+ icon: 'icon3',
+ id: '3'
+ },
+ {
+ name: '电子健康卡',
+ icon: 'icon8',
+ id: "zc"
+ },
+ {
+ name: '门诊医保结算',
+ icon: 'icon12',
+ id: "zc1"
+ },
+ {
+ name: '就诊卡退费',
+ icon: 'icon28',
+ id: "tf"
+ },
+ ],
+ serviceList: [{
+ name: '医院介绍',
+ icon: 'icon4',
+ SRC: '/pages/introduction/introduction'
+ },
+ {
+ name: '医院导航',
+ icon: 'icon5',
+ SRC: '/pages/navigation/navigation'
+ },
+ {
+ name: '妇幼云影像',
+ icon: 'icon11',
+ id: "fy"
+ },
+ {
+ name: '电子票夹',
+ icon: 'icon10',
+ id: "dzpj"
+ },
+ {
+ name: '患者智能随访',
+ icon: 'icon13',
+ id: "hz"
+ },
+ {
+ name: '门诊排队查询',
+ icon: 'icon22',
+ SRC: '/pages/callnumber/callnumbers'
+ },
+ {
+ name: '智能导诊',
+ icon: 'icon21',
+ SRC: '/pages/intelligentGuidance/intelligentGuidance'
+ },
+ {
+ name: '满意度',
+ icon: 'icon9',
+ id: "my"
+ },
+ {
+ name: '就医指南',
+ icon: 'icon6',
+ SRC: '/pages/medicalGuide/medicalGuide'
+ },
+ {
+ name: '健康百科',
+ icon: 'icon7',
+ SRC: '/pages/healthEncyclopedia/healthEncyclopedia'
+ },
+ {
+ name: '下园体检',
+ icon: 'icon25',
+ SRC: '/pages/xytj/xytj'
+ },
+ {
+ name: '妇幼到您家',
+ icon: 'icon24',
+ SRC: '/pages/kfdj/kfdj'
+ },
+ {
+ name: '住院日结单',
+ icon: 'icon27',
+ SRC: '/pages/onehospitalization/onehospitalization'
+ },
+ // {
+ // name: '院内统计',
+ // icon: 'icon23',
+ // SRC: '/pages/inHospitalStatistics/inHospitalStatistics'
+ // },
+ ],
+ managerList: [{
+ name: '综合统计',
+ icon: 'icon26',
+ SRC: '/pages/inHospitalStatistics/inHospitalStatistics'
+ }],
+ isShowSetModel: false,
+ indicatorDots: false,
+ autoplay: true,
+ interval: 3000,
+ duration: 500,
+ circular: true,
+ canIUse: wx.canIUse('button.open-type.getUserInfo'),
+ canIUseGetUserProfile: false,
+ canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
+
+
+ },
+ imgClick(e) {
+ console.log(e, "图片点击")
+ let item = e.currentTarget.dataset.item
+ let title = e.currentTarget.dataset.item.TITLE
+ let state = 3
+ let imgId = item.HOS_NOTICE_ID
+ if (title != 'NOLINK') {
+ wx.navigateTo({
+ url: '/pages/message/message?state=' + state + '&imgId=' + imgId,
+ })
+ }
+ },
+ naviTo(e) {
+ if (app.globalData.openId == '') {
+ wx.showToast({
+ title: '用户信息未获取到',
+ icon: "none"
+ })
+ } else {
+ let id = e.currentTarget.dataset.item.id
+ if (id == 0) {
+ wx.navigateTo({
+ url: '/pages/selectBg/selectBg',
+ })
+ } else if (id == 'zc') {
+ console.log(app.globalData.openId, "登录未过期")
+ wx.navigateToMiniProgram({
+ appId: 'wx8cd9ae88f7c92d6f',
+ // path: '目标小程序页面路径',
+ //develop开发版;trial体验版;release正式版
+ envVersion: 'release',
+ success(res) {
+ // 打开成功
+ console.log("跳转小程序成功!", res);
+ }
+ })
+ } else if (id == 'zc1') {
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ } else if (id == 'tf'){
+ wx.navigateTo({
+ url: '/pages/userRefund/userRefund',
+ })
+ }else {
+ wx.navigateTo({
+ url: '/pages/record/record?id=' + id,
+ })
+ }
+ }
+
+ },
+ closeOver() {
+ this.setData({
+ showOver: false
+ })
+ },
+ closeOver1() {
+ this.setData({
+ showOver1: false
+ })
+ },
+ openOver() {
+ this.setData({
+ showOver: true
+ })
+ },
+ openOver1() {
+ this.setData({
+ showOver1: true
+ })
+ },
+ closeOverhz() {
+ this.setData({
+ showOverhz: false
+ })
+ },
+ naviToCz() {
+ wx.showModal({
+ title: '提示',
+ content: '此功能暂停使用',
+ success: function (res) {
+ if (res.confirm) {//这里是点击了确定以后
+ console.log('用户点击确定')
+ } else {//这里是点击了取消以后
+ console.log('用户点击取消')
+ }
+ }
+ })
+// 临时关掉充值
+ // if (app.globalData.openId == '') {
+ // wx.showToast({
+ // title: '用户信息未获取到',
+ // icon: "none"
+ // })
+ // } else {
+ // wx.navigateTo({
+ // url: '/pages/money/money',
+ // })
+ // }
+
+ },
+ naviToHos(e) {
+ if (e.currentTarget.dataset.item.name == '满意度') {
+ this.setData({
+ showOver: true
+ })
+ } else if (e.currentTarget.dataset.item.name == '电子票夹') {
+ // this.setData({
+ // showOver1:true
+ // })
+ wx.navigateToMiniProgram({
+ appId: 'wx8e0b79a7f627ca18',
+ path: "pages/index/index?agencyCode=ef91b9c3de0b4abcb1a6fccb5e05990a",
+ //develop开发版;trial体验版;release正式版
+ // envVersion: 'trial',
+ success(res) {
+ // console.log("跳转小程序成功!",res);
+ }
+ })
+ } else if (e.currentTarget.dataset.item.name == '妇幼云影像') {
+ let url = encodeURIComponent('https://fycloud.btlsoln.com:802/#/verify?orgCode=841000')
+ wx.navigateTo({
+ url: '/pages/webwiew/webview?url=' + url,
+ });
+ } else if (e.currentTarget.dataset.item.name == '患者智能随访') {
+ this.setData({
+ showOverhz: true
+ })
+ } else {
+ let url = e.currentTarget.dataset.item.SRC
+ wx.navigateTo({
+ url: url,
+ })
+ }
+ },
+ naviToManager(e) {
+ let url = e.currentTarget.dataset.item.SRC
+ wx.navigateTo({
+ url: url,
+ })
+ },
+
+ hzd() {
+ wx.navigateToMiniProgram({
+ appId: 'wx450ece464470b037',
+ path: "pages/hello/hello",
+ success(res) {
+ // 打开成功
+ console.log("跳转小程序成功!", res);
+ }
+ })
+ },
+ ysd() {
+ wx.navigateToMiniProgram({
+ appId: 'wx551c946891b46cf5',
+ path: "pages/hello/hello",
+ success(res) {
+ // 打开成功
+ console.log("跳转小程序成功!", res);
+ }
+ })
+ },
+ // 事件处理函数
+ bindViewTap() {
+ wx.navigateTo({
+ url: '../logs/logs'
+ })
+ },
+ formSubmit(e) {
+ console.log(e.detail.value)
+ },
+ bindDateChange: function (e) {
+ console.log('picker发送选择改变,携带值为', e.detail.value)
+ this.setData({
+ date: e.detail.value
+ })
+ },
+ guaH() {
+ if (app.globalData.openId == '') {
+ wx.showToast({
+ title: '用户信息未获取到',
+ icon: "none"
+ })
+ } else {
+ wx.navigateTo({
+ url: '/pages/selsecPer/selsecPer',
+ })
+ }
+ },
+ upLoad() {
+
+ },
+ getImgList() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/findHospitalNotice',
+ method: "GET",
+ data: {},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, 'lunbotu')
+ this.setData({
+ imgUrls: res.data
+ })
+ }
+ })
+ },
+ setRightRed() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/findMessageNotice?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.length > 0) {
+ wx.showTabBarRedDot({
+ index: 1,
+ });
+ } else {
+ wx.hideTabBarRedDot({
+ index: 1,
+ })
+ }
+ }
+ })
+ },
+ getReleaseData(){
+ // console.log("aaa")
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/countAutho/getAuther',
+ method: "GET",
+ data: {},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ // console.log(res)
+ this.setData({
+ releaseData: res.data.data
+ })
+ const tempData = this.data.releaseData
+ if (tempData.includes(app.globalData.openId)) {
+ this.setData({
+ isComprehensive: true
+ })
+ }
+ }
+ })
+ },
+ onLoad() {
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ wx.showToast({
+ title: '加载中',
+ icon: 'loading',
+ duration: 10000
+ });
+ common.checkGlobalOpenId().then(res => {
+ app.globalData.openId = res
+ // wx.setStorageSync("openid", res)
+ this.setData({
+ url: app.globalData.url2,
+ })
+ this.getImgList()
+ this.setRightRed()
+ this.getReleaseData()
+ if (wx.getUserProfile) {
+ this.setData({
+ canIUseGetUserProfile: true
+ })
+ }
+ // const tempData = this.data.releaseData
+ // if (tempData.includes(res)) {
+ // this.setData({
+ // isComprehensive: true
+ // })
+ // }
+ wx.setNavigationBarTitle({
+ title: "库尔勒市妇幼保健院"
+ })
+ wx.hideToast();
+ },
+ err => {
+ //初始化失败,弹框提示
+ })
+ } else {
+ // wx.setStorageSync("openid", res)
+ this.setData({
+ url: app.globalData.url2,
+ })
+ this.getImgList()
+ this.setRightRed()
+ this.getReleaseData()
+ if (wx.getUserProfile) {
+ this.setData({
+ canIUseGetUserProfile: true
+ })
+ }
+ // const tempData = this.data.releaseData
+
+ wx.setNavigationBarTitle({
+ title: "库尔勒市妇幼保健院"
+ })
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+
+ onShow: function (e) {
+
+ },
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ getUserProfile(e) {
+ // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
+ // 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
+ wx.getUserProfile({
+ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
+ success: (res) => {
+ console.log(res, "登录信息")
+ this.setData({
+ userInfo: res.userInfo,
+ hasUserInfo: true
+ })
+ }
+ })
+ },
+})
\ No newline at end of file
diff --git a/pages/index/index.json b/pages/index/index.json
new file mode 100644
index 0000000..125e8f3
--- /dev/null
+++ b/pages/index/index.json
@@ -0,0 +1,10 @@
+{
+ "navigationBarBackgroundColor": "#50CEBB",
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "首页",
+ "backgroundColor": "#fff",
+ "backgroundTextStyle": "light",
+ "usingComponents": {
+ "van-overlay": "@vant/weapp/overlay/index"
+ }
+}
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
new file mode 100644
index 0000000..c46ecd9
--- /dev/null
+++ b/pages/index/index.wxml
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 门诊服务
+
+
+
+
+ 预约就诊
+ 在线预约就诊
+
+
+
+
+
+
+ 在线充值
+ 就诊卡预存充值
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ 医院服务
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ 医院管理
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+ 长按二维码进入国家满意度平台
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 患者端
+ 医生端
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
new file mode 100644
index 0000000..4c55073
--- /dev/null
+++ b/pages/index/index.wxss
@@ -0,0 +1,314 @@
+/**index.wxss**/
+.container1 {
+ height: 100%;
+ width: 750rpx;
+}
+
+.banner {
+ margin-bottom: 30rpx;
+}
+
+.medicalGuide {
+ /* background-color: #0071FE; */
+ width: 100%;
+ height: 350rpx;
+}
+
+.wrap {
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+
+.slide-image {
+ width: 100%;
+ height: 100%;
+}
+
+.service {
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 80rpx;
+}
+
+.service icon {
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+}
+
+.service_con {
+ margin-top: 30rpx;
+ display: flex;
+ justify-content: space-between;
+}
+
+.service_con>view {
+ width: 330rpx;
+ height: 180rpx;
+ border-radius: 20rpx;
+ padding: 0 25rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.gh {
+ background: linear-gradient(to right, rgba(120, 213, 156) 0%, rgba(102, 195, 182) 100%);
+ color: #fff;
+}
+
+.ghIcon {
+ height: 90rpx;
+ width: 90rpx;
+ background-size: 100%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABXdJREFUaEPVmnnIpWMYxn9X/kA0lgkpW5aIskRjKXtIhCEkkxr7DLIUUYQIZez7UsjyB2IQx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op7IHFknboBjC3cN62slA2WfpEy4cUNS3Jq2grWeg+SYd0A9ivtEZaOwcaT/UEAyvnwBWS0pMaF0JrAF8Cb0naqm3jbeizncZCGgyHSEp3bzwfsN3JRFtIeqcNo23qsJ0zIGfBNEk/9wKQZbkMOEfShW0aH1WX7T2BJ9JX7cR/LwAJnXCB1yWFG/xnxPZNpfk1V9INHcd6MbLwz/DQ4ySlNppyKZ2713ICAzMkfdUPQKcX9J9ZhcrsnyHp0uqMTtSV6NRFU74Kldl/r9Dc3+oASNc4jCyt7pQWj09VHNlO6KT5m3L8xm4/+nXm0v9Pf+hrSTkj/nWx/TSwWxq+kmb3cmBQb/TW0r//SNJG/yYC26mlUju9KikR0VPqdKdDM0M3k153lhTePKliO/2odMV/lbRiP2MDAWSw7XTD5pRLukMlpXPXuthOqKZcCJt7Q1Jiv6/UAlBAHA/kAPkTCP28RtJPgwzU/d92bmfCoTcHrpKUmmeg1AZQQIRIZ4ZWAz4s10wh742lOB7nO7M9VFNtKAAFRFreqZnCHyLhuGnFp2NWK93azq1LuMIewPpFT25+ct26eJjZGBpAR3mpzZNq9wFCIyO5jX99wD1xZjor2JG0C8PW0noZWhoDqABZs2SpVIvJVmn9DZJHgbGPpNQ3jWVkAN2Wba9eXjXIexKddyXyisHYawaS8t2atA6gNc9qKvrfA/gbq2A6T1ZPsxAAAAAASUVORK5CYII=);
+}
+
+.pay {
+ background: linear-gradient(to right, rgba(238, 142, 113) 0%, rgba(237, 108, 111) 100%);
+ color: #fff;
+}
+
+.payIcon {
+ height: 90rpx;
+ width: 90rpx;
+ background-size: 100%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABYZJREFUaEPtWVvIFlUUXeul6KUrGVKEZVeKEiTo9pCE3e9lRZFUL5WaJUEaBGo9dMXMTOul+51MtDsVSXQzwigzI+hihkQWZvVQUaxYss/P/ON835yZ+f5AcM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98CaAE+uO0ZMAuMNgGVVFX3vEe1reJgCy695gCH+G8SkkF/faxHsA+Dke9iwiyl5K2gvA1RU1tlfTMoyA+UbDE8hdi2fC1miSP1YC8E1J77t4aJrMKkANbBNLciY3HXmRpBPtkFTRaadpc3zLOJKfNomLpDuoTRw9V1dklmkkk29bblQB2AnAJwDMhRpttCLQAQK4B8D1AMxAXVaaLfdegQgjt/dSYdIqCQ0CgCQ3jk1TLMNYaM89EAD2jFVwU7a2aqoKsa4AJJkuOJO7UHqP5PFV8/Rrq5hKLIxBrUIpWiNjmpw4hT2UQse3JpEcYrK1IVQwkhigb/2fja1iYlxIMrUbt1qEnNaiKyHXvZaZJN1NGDEpZfU3SDq59pRaALEnfgWwS1hZQPK6kUAgyYkvNZDXk3St3VeyAASI5QDODGv+3+3GRJfr5un7PL4T+KhMjdwNJH2A1Eo2gABxNwB/WkryYAD5snamCoVIUna8GOONDoxGAAKEl9jdtLS8Di8XG05+H5QTTdlvSWa5/pDhhpVrjsR6NxgISdPmbGkMIEC4hWIQvg4rzebi3f3M9RVenBaFefGRyeOTAB4i+Vm256HYCkCaJNooBuEuwUQATT6z2lk7/gRJv/1W0glAcUZJboT5S46vsRXefA/Ae8XXWpKt9k3Z7sAAtHp9Axi0HcAAXmInE/8BKU4vT4nVLAEAAAAASUVORK5CYII=);
+}
+
+.title text {
+ font-size: 35rpx;
+ font-weight: bold;
+}
+
+.title view {
+ font-size: 26rpx;
+ margin-top: 20rpx;
+}
+
+
+.serviceList {
+ display: flex;
+ flex-wrap: wrap;
+ /* justify-content: space-around; */
+}
+
+.serviceList>view {
+ /* width: 150rpx; */
+ width: 25%;
+ height: 150rpx;
+ margin-top: 30rpx;
+ text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+}
+.serviceList view text {
+ font-size: 26rpx;
+ /* font-weight: bold; */
+ display: inline-block;
+}
+
+/* .serviceList>view:nth-child(5) {
+ margin-top: 0rpx;
+} */
+
+/* .serviceList view text {
+ font-size: 26rpx;
+ display: inline-block;
+} */
+.iconWrap {
+ height: 60rpx;
+ width: 60rpx;
+ background-size: 100%;
+ background-repeat: no-repeat;
+ margin-bottom: 15rpx;
+}
+.icon26{
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAwCAYAAABe6Vn9AAAAAXNSR0IArs4c6QAABxJJREFUaEPdWGtsHNUV/s6snWDRBnvWQkDzA+S9m6RAgnhVVFVLqQoC8ZIQEUWwhlBwPHbyD4FaCcKfUDnqQ7Z37ECisGuFR9ICClRKqAQIhBIJR9BQN/aOnRAShUDWM8SpE0F25pQZZ7f7mN29s7uWpe6/nTnnO+ebe893zz2E/7MfNZpP++DBqB1qjhE7dwG0koH9INodss8l070rUo2OV4zXMELqoHETKRRj5k4QWkoSZ5wlogQ7nDR7xd75IlY3obbB1J0uEQD3B0hyp0vM6o2+HcBHyrRmQuHhyRg73AngFqlI/kbvkkKJ6bWRZB0YBa6BCP1w8GC4OdQUg7utQKsalQTA/wRR4pydSZ7uXTFdD64UoVyhuytCWFpPwIq+jGOsUKIeAalIqGqhzxezOgTEl1CNhT5f9AIJSAGhBhX6fBGTEpAcIVU3dgSU3vlKvEqZYb+lievLGXmE2nRjlIDrFiTD2oLuNDWx2s+V2vVDyxzY47XhLpxXiEmc7IlMlrQ+6rDxYzgYW7jUaotMrNw43dPxcQmhy7cdvmDmbGYKwGW1QS+I11jz7JmffPXkqlnf5lSNT2wAKc8uSGrBg45BwWpzrfi3bw1lH7bGU9cQKWsIXn+2JHicefeYYVCCFB4uR8bNoORgvWhg/IqQQp0gxe2gr5j3NKsHOAx2krbDiVPrlh+uZl629VH7jSXUxJ3MFAOhrO5XC1Dze8YoESc5QwlzvZiRxZFqTtv01IME785zmyxwHXZ7GJy0tOjLtWDkCLXpqX6AWmFnNlnrVnzmB6YOGbcRI8bAg7UEq+RDwMtMSJrdYk892B6hkraHsVtpor50V+Q9P/D24anrbYdjDRAQr9BDCiXTaztG6yGS9aWw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tco8V5sByGLpGry1po7Bdwxz2GEq3MH5LTG0cjDe29j3E912z0IFSaSCAEg7oABIIoBM1j6UC37tpNb8s1YLjN/uDU66vq7megCSCCCVG6FP8c6kLs2bu7EsGgJISoA8OT8Wa7Y1d8rubJjmXaY1g/RlCin/HkM3K6YZrElVVt50WAdRJnHbZtPBuj0Ocj0kotmrWZwAJKEu1syVcB5WrFpkR2LkrJSLg1jGHddTAkASBORdl3jcXV+3ASQDQJalh3b2i6+azFeWMciyrIvo7wAyP1hUECqIev2ECkIFGY13B3cjKgaqplJBqCB8tGEBOgACIAACILrqykLhIt3ieixClQF8vHqhbAzSGaSz/cGi6koFybyCTJ4CZgOdeVlABaGCsAUbFYRv8y66D7CJJ7NYzGItGcGzDfTtAtHFoot1pUD/8PlDMdVut/bz22UxI7Hll+O9wVeqGbMIjQAEQG4o8OHh83sXRfmZLc1HRWGK0trXa0Xx7OUXn3wTYY47NRlAAMQpgVI3BhAAST3HnfwDEABxSqDUjQEEQFLPcSf/AARAnBIodWMAAZDUc9zJPwABEKcESt0YQAAk9Rx38g9AAMQpgVI3BhAAST3HnfwDEABxSqDUjQEEQFLPcSf/AARAnBIodWMAWQJIYcyj1JMA/+YrcGHlsRHZbKpRJp8ebSoLx6PApQLGnox3Bqqba+cb6ES1wSUZloYCMQESw85LaWQFXswUcNmotPMKUjX6ztHwVNOXJOQooFHAZaPSlQDSPxzui5HHGmexQYGmCox3N9R5rjZs2sjrx9PNclEP2yYKuHSvquusBJDqwto57SbicCwKuFSPlQJCFSF521bAxzbXK6sglTjvH2q/sti2tJw/dgVcFgev+75SQCZdLQbssedicO33BcdKu1jXVQWS4HIs2gb5hCMYQKqGTMcka6ciZj3a6NDw1Spg5WC8t7HvsxEr72LdmP4te9ti7Bag+Axz4udqAYyZYkEBMmtUVU160lsvS9m0Ru4bsesAk3iS13bPjiaHWvO0+sd3xXi3Gf8HEF5Rkj7mPJ8AAAAASUVORK5CYII=);
+}
+.icon12 {
+ background-image: url(data:image/png;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CpNS2eCbBRdd7XM7XjnqDRIIG9QBIy6Xs2+3307e9sF3TfRZt4E2USTuZovzMoszEy961t9ieTHbYQhoI36WyvT6Znuvpwt87X7A+EShCCBZME2QEAcAiCIOJNAIEkIgCCSrAFZxCEAgogzCQSShAAIIskakEUcAiCIOJNAIEkI/B/LF8Nu1QM9cAAAAABJRU5ErkJggg==);
+}
+
+.icon10 {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABbCAYAAABESWqAAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAA3tSURBVHja7J17cFTXfcd/v3Pu3r27klZISJZ2tZIMMqBgQly7Nq4bU0DSSjgu1A71ZCYdmmE6bbHHMzXUZEwEFmBCjEteLk3jOLabNsm05GGcYksrgYlpZZMxrTM87FggIWm1WtBztdI+7r3nnP6BoYC1q30i7eZ+/5POvWfv73zu7zx+59xzUAgBhrJbxCgCA6IhA6IhA6IhA6IB0ZAB0ZAB0dB1klLNoMXd59Akef84wwfHVV6sckEBACwS0QAANC4kAQIoAgcAoIgcAKDarL9sYuwHOxtu/ygdhmw/NnjIp8Lq0QgvYAJQJld+J+m3G2++/+agCMa8X+OcUkRBELiZEkYAeJ6EgSLC3zVz9tqzLueRdEHEZCM22zv6Dr3vx0dOXY7QZH+8SKHwaJV0Yn9d5cpk89jR0XewfQg2d42rmE3eU2qh8EgleWNfXfX6WYH4zFHv4Z9eDK8LqDxlYxx5EjQ5lZMvrCm/P3Hv8x06Na4/8v6lMIUslLNAEn9SLp//br1j8S2DuKut5ysXmfytN3pD89JpjD1PgocqaNweubv149oekf/uCV9k3liYZX2bdl+5ov+hjX93T13V1oxCfLbd8/j/TOG3OwdDpkwY4siTYEmRHKm24tkDdfZ7poXX3ls7Sc0v9QX5Pe39QWsudU4WFcniofli6c6G6oT7CHF3bM6r5PnOwaApU0Z4p3TwTulmALj7/ZE+tnI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1XRfjGrndEuuJqfyYoY4Tw1/xcIzxQYJAXP145ZEssKSik504kUukPjNd69Rcsb7Y5fqiwHWuk8AkgSXjGnehFz8dIzrmX63FDvaywKifGPUKjB1w2cTty84v2I3KmagPOcefzgAAAAAnAn8JAwAAACBIAQAAACBIAQAAACBIAQAAACBIAQAAAACCFAAAAACCFAAAAACCFAAAAACCFAAAAACCFAAAAAAgSAEAAAAgSAEAAAAgSAEAAAAgSAEAAAAgSAEAAAAAghQAAAAAghQAAAAAghQAAAAAghQAAAAA/Iv/PwCk/aL46JdF7QAAAABJRU5ErkJggg==)
+}
+
+.image {
+ width: 50rpx;
+ height: 50rpx;
+}
+
+.icon13 {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdsAAAHMCAYAAACdqQIXAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAEztSURBVHja7N1pYBzVnS78/6mq7uqWurVLtqSWLUveMcZgwDjBQACz2WYzZocQEgaT3EBIBjJ3Jrl530kyc19IwiQzE0hIwGHHxqz2EJYEDCRgs9gYsPEiS9ZuLd2SutXVtZ73gywjCcmSrOpWVffz+wK2perqU8tTZ6lzGOecAAAAIHkEFAEAAADCFgAAAGELAAAACFsAAACELQAAAMIWAAAAELYAAAAIWwAAAIQtAAAAIGwBAAAQtgAAAICwBQAAQNgCAAAgbAEAAABhCwAAgLAFAABA2AIAAADCFgAAAGELAACAsAUAAACELQAAAMIWAAAAELYAAAAIWwAAAIQtAAAAIGwBAAAQtgAAAAhbAAAAsJmEIoBk+8W2SM4/nprf84v3O3LIMogxRoyTTETESVCJiDjn1PdfpjLGZCKLiIjY0KfDw7/Xj3FLPtpnc0bqoD8f/pyRMDb4E/v3k420/aG/P96nXU7egX82GWlj+R5H2X+Zc64O3f+R9i/Z+z/W/R5pfwfWBxhjZBEffnu87+cMifX0f/Bw7lpSoOKKhMnARrv5AByr93qsG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rXxtvMX7kAJAcIWJsW9bx2Uy0qKrinIzz6zpiN6kcSEeEdcK47plq+91xATBqfI4SX8FMMivzS450IxrMP/5UdudkP/bbwGfsbQReP7F5n3TXIz+NDF7vu/69DyGclY9z8xzpaGY91uqvZ/6O9FRlkesn9/hvu8hMHJJzHySYzPKpD1LI+g5Ho8kdn52ft0k9p7uuM71hyfdS+uckDYgmM98n7NtQU5uWf4fHK5LErFjLHDE2RYxDlX+39OICYzxmTh8AQaBtN7iIgYG/5m/MV2RsClQdu3GKnD/thIFwRZE/renI31whscSgLv+/4WM9Sjfd/+7zbi53BpyPcZ5/6P9cYx5M9H9l/Q1KN/gDBKOQlDyunox0MgkgeV0ZDv319eJpl9+yUwsixLJSaSx+PJ4QKjWCy264JpedfhqgWELQAAgIthNDIAAADCFgAAAGELAAAACFsAAACELQAAAMIWAAAAELYAAAAIWwAAAIQtAAAAIGwBAAAQtgAAAICwBQAAQNgCAAAgbAEAAABhCwAAgLAFAABA2AIAAADCFgAAAGELAACAsEURAAAAIGwBAAAQtgAAAICwBQAAQNgCAAAgbAEAAOCY/P8DAJyyhqvZZr2LAAAAAElFTkSuQmCC)
+}
+
+.icon21 {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAshJREFUWEfllktME1EUhv8zfaEi0sEAakiqYaorXbgQWMHGrYmJxkRjjJGgFBcYjdFNcUE06gppiRh1pQs3xujKDZj4TFzoAg0MwbowisK0IsSYtnN0aiptUzp3pg8Nzvae+5/vnPufe4dQ7DegemoJrSmZhPNVrHdjrBhJKmazN6SeB6GXAM+iDg+7qmtOTB9sXLCjbRtIDqt3AOzJl5SBUd3lOvy10/fOKpQtIG9YHSQgUCgZMW7NBpQDZQdae/3Lav1HbE4kUcJdVTd3pEkTiU3HWO5Q7RW1XXJgRCSJnkRH7LgyKhK7fIDQN+aW693GaK8wq7wiR2ZA1IXVswz0/xOmTkPIYfUJgLYlo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T4w38oZ2V2wCZG5oHjdaflX6rPvBeKWSgFLGYRfbJUmsYpJWVspMhfEN7HJ0bV1sAsB0s22oexPm0asJ7rfRBUhpR299MTYBzPyoY6SePJ2Fxr3TXb+IUhfy36/UhcB0nW2onxcEKKb1DoA7gnNJBATjVdvQurwaEhlrkKiwdV6xeEK8LgSSHq+MoB9lPnXVuNH+V1FAxuoC4eUI9MKYZjGFlfYm7URT72hKSCI7WyoNFMDUbRtqIREUT+r7jzULd/LnMCyiYfgpW089UozC6FoiMT3DDF0v0Wt2Wr2vhJ/5ViIzvG32kIWuPhhIuMlOax/NJfLMMB1D8z5ImS5nnH01PjvWKC9w7xbADQA3BrOZG8JpGlqNzk7Xsy4uUqgXBZ+VCzPGZcL647r2gR9Rs8O7ciKXD4xdcOLk5FoiWsZMHQB3EDDEwDfer5ClT50Nrd9Vkvc3t1doT0ys/noAAAAASUVORK5CYII=);
+}
+.hospitalList {
+ display: flex;
+ flex-wrap: wrap;
+ /* justify-content: space-between; */
+}
+
+.hospitalList>view {
+ /* width: 150rpx; */
+ width: 25%;
+ height: 150rpx;
+ margin-top: 30rpx;
+ text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+}
+
+.hospitalList view text {
+ font-size: 26rpx;
+ /* font-weight: bold; */
+ display: inline-block;
+}
+
+
+.bg {
+ display: none;
+ position: absolute;
+ top: 0%;
+ left: 0%;
+ width: 100%;
+ height: 100%;
+ background-color: black;
+ z-index: 1001;
+ -moz-opacity: 0.7;
+ opacity: 0.70;
+ filter: alpha(opacity=70);
+ overflow: hidden;
+}
+
+.van-overlay {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.an {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.du {
+ background-color: #fff;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ padding: 10px;
+ box-sizing: border-box;
+ width: 280px;
+ height: 280px;
+}
+
+.select_box {
+ background-color: #fff;
+ display: flex;
+ flex-direction: column;
+}
+
+.select_one {
+ border-bottom: 1px solid #eee;
+ width: 120px;
+ height: 50px;
+ line-height: 50px;
+ text-align: center;
+}
+
+.over_title {
+ font-size: 14px;
+ text-align: center;
+}
+
+.showImg {
+ width: 260px;
+ height: 260px;
+
+ background: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAwICQoJBwwKCQoNDAwOER0TERAQESMZGxUdKiUsKyklKCguNEI4LjE/MigoOk46P0RHSktKLTdRV1FIVkJJSkf/2wBDAQwNDREPESITEyJHMCgwR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0f/wAARCAGuAa4DASIAAhEBAxEB/8QAGgABAQEBAQEBAAAAAAAAAAAAAAcGCAUEAf/EADwQAAACBgUICQMFAQEBAAAAAAABAgUGERITAwQHFDEXITdVg6Sz0hUWIzJBRWbD4iUmQyJEYWKhM2WS/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+FaLKpqlX0leWFNJq1E6NOE0nPMiLMRGeJl4APuAZTKQyGtt2peQMpDIa23al5AGrAZTKQyGtt2peQMpDIa23al5AGrAZTKQyGtt2peQMpDIa23al5AGrAZTKQyGtt2peQMpDIa23al5AGrAeOo2jVDQT+iK3eJEMzs00YXvd3iJ+B4D2AAAGUykMhrbdqXkAasBlMpDIa23al5AykMhrbdqXkAasBlMpDIa23al5AykMhrbdqXkAasAAAAeOvGjVDPyOl63d58Uvs00onOf3SN2JYjzMpDIa23al5AGrAZTKQyGtt2peQasAAZ1ZtqzqpWFJUVgsZNZonRoSKRJzyJIs6KJlgZeI+bKQyGtt2peQBqwGdVjas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qLdsa9X1fTTqtSy4E4TRe6jRRPMkRHiR+AzwAKBZW0aoZ/pPpet3afKl9mmnE6N/dI3YliNA3jas6t2Or1QV6wnVmllwISKRF7qRFI85okWBH4iPgADqocqjqoAE+tUZxbtASs6Iql5kTZnaIIQvgd3jJ+B4CggA52WbFNEqVfSV5YK6TVqJ0ac+jSc8yRLMikZ4mXgM8L/ajo9Wey4qAgADV5N2v1TvNFzjesw0aoZJn6somgrd0WNVinUMtNOCJM00f1IkaJvRSI8x/wCihCAWo6QlnsuEgA1Tcff9y6pfUbjMvP4YI4YP+kL3wJYPc7OPkYNimiVDY1GvrBXyatRTI059Gk59GkiWYkjPEy8B9dhnnew9wVUAAAAZ1ZtqzqpWFJUVgsZNZonRoSKRJzyJIs6KJlgZeIxjcff9y6pfUbjMvP4YI4YP+kL3wJYPc7OMrajpCWey4SA1Vhnnew9wB8jBsU0SobGo19YK+TVqKZGnPo0nPo0kSzEkZ4mXgLAAAMplIZDW27UvIJC3axqi3bGvV9X006rUsuBOE0Xuo0UTzJER4kfgM8ACgWVtGqGf6T6Xrd2nypfZppxOjf3SN2JYjQN42rOrdjq9UFesJ1ZpZcCEikRe6kRSPOaJFgR+Ij4AA6qHKo6qAQC1HSEs9lwkBlBq7UdISz2XCQGUAaFhFjVFQ2NRr6wppNWopkacJpOfRpIlmRIzxMvAV7KQyGtt2peQQAAHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k=');
+ background-size: 100% 100%;
+}
\ No newline at end of file
diff --git a/pages/intelligentGuidance/intelligentGuidance.js b/pages/intelligentGuidance/intelligentGuidance.js
new file mode 100644
index 0000000..08e65a5
--- /dev/null
+++ b/pages/intelligentGuidance/intelligentGuidance.js
@@ -0,0 +1,855 @@
+// pages/intelligentGuidance/intelligentGuidance.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ type: 'bodyParts',
+
+ popupShow: false,
+ popupData: {},
+
+
+ bodyPartsShow: false,
+ questionsListShow: true,
+ questionListBodyArea: [],
+ selectSexOptions: ['男', '女'],
+ switchSex: 1,
+
+ selectAgeOptions: ['成人', '儿童'],
+ switchAge: 0,
+
+ bodyPosition: 0, //身位 0 身前,1身后
+
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: false,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ },
+ handlebodyParts(e) {
+ const type = e.currentTarget.dataset.type
+ this.setData({
+ type: type,
+ })
+ // console.log(type)
+ if (type === 'bodyParts') {
+ this.setData({
+ bodyPartsShow: false,
+ questionsListShow: true,
+ })
+ } else {
+ this.setData({
+ bodyPartsShow: true,
+ questionsListShow: false,
+ })
+ this.getAllBodyArea()
+ }
+ // if(type)
+ },
+ getAllBodyArea() {
+ let reqData = {}
+ if (!this.data.adultMaleFrontalShow || !this.data.adultMaleBackShow) { //成男
+ reqData = {
+ sex: '1',
+ adultOrChild: '1'
+ }
+ }
+ if (!this.data.adultFemaleBackShow || !this.data.adultFemaleFrontalShow) { //成女
+ reqData = {
+ sex: '0',
+ adultOrChild: '1'
+ }
+ }
+ if (!this.data.boyFrontalShow || !this.data.boyBackShow) {
+ reqData = {
+ sex: '1',
+ adultOrChild: '0'
+ }
+ }
+
+ if (!this.data.girlBackShow || !this.data.girlFrontShow) {
+ reqData = {
+ sex: '0',
+ adultOrChild: '0'
+ }
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getAllBodyArea',
+ method: "GET",
+ data: reqData,
+ success: res => {
+ this.setData({
+ questionListBodyArea: JSON.parse(res.data.data)
+ })
+ console.log(this.data.questionListBodyArea)
+ }
+ })
+ },
+ switchChangeSex(e) {
+ var currentTarget = e.currentTarget;
+ var tab = currentTarget.dataset.index;
+ if (tab == 0) {
+ this.setData({
+ switchSex: 0, //男
+ })
+ if (this.data.switchAge > 0) { //幼儿男,判断身前身后
+ if (this.data.bodyPosition > 0) { //幼儿男,身后
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: false,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //幼儿男,身前
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: false,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ } else { //成人男,判断身前身后
+ if (this.data.bodyPosition > 0) { //成人男,身后
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: false,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+
+ } else { //成人男,身前
+
+ this.setData({
+ adultMaleFrontalShow: false,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ } else {
+ this.setData({
+ switchSex: 1, //女
+ })
+ if (this.data.switchAge > 0) { //幼儿女,判断身前身后
+ if (this.data.bodyPosition > 0) { //幼儿女,身后
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: false,
+ girlFrontShow: true,
+ })
+
+ } else { //幼儿女,身前
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: false,
+ })
+ }
+ } else { // 成人女,判断身前身后
+ if (this.data.bodyPosition > 0) { //成人女,身后
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: false,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //成人女,身前
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: false,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ }
+ },
+ switchChangeAge(e) {
+ var currentTarget = e.currentTarget;
+ var tab = currentTarget.dataset.index;
+ if (tab == 0) {
+ this.setData({
+ switchAge: 0, //成人
+ })
+ if (this.data.switchSex > 0) { //成人女,判断身位
+ if (this.data.bodyPosition > 0) { //成人女,身后
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: false,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+
+ } else { //成人女,身前
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: false,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+
+ }
+ } else { //成人男,判断身位
+ if (this.data.bodyPosition > 0) { //成人男,身后
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: false,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //成人男,身前
+
+ this.setData({
+ adultMaleFrontalShow: false,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ } else {
+ this.setData({
+ switchAge: 1, //儿童
+ })
+
+ if (this.data.switchSex > 0) { //幼儿女,判断身位
+ if (this.data.bodyPosition > 0) { //幼儿女,身后
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: false,
+ girlFrontShow: true,
+ })
+ } else { //幼儿女,身前
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: false,
+ })
+ }
+ } else { //幼儿男,判断身位
+ if (this.data.bodyPosition > 0) { //幼儿男,身后
+
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: false,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //幼儿男,身前
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: false,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ }
+ },
+ handleReolve(e) { //旋转
+ if (this.data.bodyPosition > 0) { //切换为身前
+ this.setData({
+ bodyPosition: 0,
+ })
+ if (this.data.switchSex > 0) { //身前,女
+ if (this.data.switchAge > 0) { //身前,女,幼儿
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+ boyBackShow: true,
+ boyFrontalShow: true,
+ girlBackShow: true,
+ girlFrontShow: false,
+ })
+ } else { //身前,女,成人
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: false,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+
+ }
+ } else { //身前,男
+ if (this.data.switchAge > 0) { //身前,男,幼儿
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: false,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //身前,男,成人
+ this.setData({
+ adultMaleFrontalShow: false,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ } else { //切换为身后
+ this.setData({
+ bodyPosition: 1,
+ })
+
+ if (this.data.switchSex > 0) { //身后,女
+ if (this.data.switchAge > 0) { //身后,女,幼儿
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: false,
+ girlFrontShow: true,
+ })
+
+ } else { //身后,女,成人
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: false,
+ boyBackShow: true,
+ boyFrontalShow: true,
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+
+ }
+ } else { //身后,男
+ if (this.data.switchAge > 0) { //身后,男,幼儿
+
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: true,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: false,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ } else { //身后,男,成人
+ this.setData({
+ adultMaleFrontalShow: true,
+ adultMaleBackShow: false,
+
+ adultFemaleFrontalShow: true,
+ adultFemaleBackShow: true,
+
+ boyBackShow: true,
+ boyFrontalShow: true,
+
+ girlBackShow: true,
+ girlFrontShow: true,
+ })
+ }
+ }
+ }
+ },
+ hendleMaleMap() {
+ wx.showModal({
+ title: '提示',
+ content: '暂不支持男性,请到导诊台咨询',
+ complete: (res) => {
+ if (res.cancel) {}
+
+ if (res.confirm) {}
+ }
+ })
+ },
+ getOtherSymptomByType(e) {
+ console.log(e.currentTarget.dataset)
+ var bodyAreaType = e.currentTarget.dataset.bodyareatype
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getSymptom',
+ method: "GET",
+ data: {
+ bodyAreaType: bodyAreaType
+ },
+ success: res => {
+ this.setData({
+ popupShow: true
+ })
+ console.log("res is :" + res)
+ console.log(res.data.data)
+ this.setData({
+ popupData: JSON.parse(res.data.data)
+ })
+ }
+ })
+ },
+ getSymptomByType(bodyAreaType) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getSymptom',
+ method: "GET",
+ data: {
+ bodyAreaType: bodyAreaType
+ },
+ success: res => {
+ this.setData({
+ popupShow: true
+ })
+ console.log("res is :" + res)
+ console.log(res.data.data)
+ if (res.data.data != undefined) {
+ this.setData({
+ popupData: JSON.parse(res.data.data)
+ })
+ } else {
+ this.setData({
+ popupData: {}
+ })
+ }
+ }
+ })
+ },
+ handleFemaleHeadViewTap() {
+ console.log("这是成女头")
+ // this.getSymptomByType("1")
+ },
+ onClose() {
+ this.setData({
+ popupShow: false
+ })
+ },
+ toHistory() {
+ wx.navigateTo({
+ url: "/pages/historicalvisitrecords/historicalvisitrecords",
+ })
+ },
+ gotoQuestions(e) {
+ var childid = e.currentTarget.dataset.childid
+ wx.navigateTo({
+ url: '/pages/QA/QA?childid=' + childid,
+ })
+ console.log(e)
+ },
+ handleFemaleLeftArm() {
+ // this.getSymptomByType("6")
+ console.log("这是成女左大臂")
+ },
+ handleFemaleChest() {
+ if (!this.data.adultFemaleBackShow) {
+ // this.getSymptomByType("4")
+ console.log("这是成女后背")
+ } else {
+ // this.getSymptomByType("4")
+ // console.log("这是成女胸口")
+ }
+ },
+ handleFemaleRightArm() {
+ // this.getSymptomByType("6")
+ console.log("这是成女右大臂")
+ },
+ handleFemaleLeftSmallArm() {
+ // this.getSymptomByType("6")
+ console.log("这是成女左小臂")
+ },
+ handleFemaleRightSmallArm() {
+ // this.getSymptomByType("6")
+ console.log("这是成女右小臂")
+ },
+ handleFemaleBelly() {
+ if (!this.data.adultFemaleBackShow) {
+ // this.getSymptomByType("5")
+ console.log("这是成女腰部")
+ } else {
+ // this.getSymptomByType("5")
+ console.log("这是成女肚子")
+ }
+ },
+ handleFemaleAlvine() {
+ this.getSymptomByType("1")
+ console.log("这是成女小腹")
+ },
+ handleFemaleLeftHand() {
+ // this.getSymptomByType("6")
+ console.log("这是成女左手")
+ },
+ handleFemalePrivate() {
+ if (!this.data.adultFemaleBackShow) {
+ // this.getSymptomByType("7")
+ console.log("这是成女屁股")
+ } else {
+ this.getSymptomByType("2")
+ console.log("这是成女私处")
+ }
+ },
+ handleFemaleThigh() {
+ // this.getSymptomByType("8")
+ console.log("这是成大腿")
+ },
+ handleFemaleRightHand() {
+ // this.getSymptomByType("6")
+ console.log("这是成右手")
+ },
+ handleFemaleCalf() {
+ // this.getSymptomByType("8")
+ console.log("这是成女小腿")
+ },
+ handleFemaleFoot() {
+ // this.getSymptomByType("8")
+ console.log("这是成女脚")
+ },
+
+ //小孩子点击事件,四张图用一套点击事件,注意判断当前图片
+ handleBoyHead() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女头")
+ this.getSymptomByType("11")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男头")
+ this.getSymptomByType("4")
+ }
+ },
+ handleChildArm() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女左臂")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ this.getSymptomByType("9")
+ console.log("这是儿童男左臂")
+ }
+ },
+ handleChildHand() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女左手")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男左手")
+ this.getSymptomByType("9")
+ }
+ },
+ handleChildBelly() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ // console.log("这是儿童女肚子")
+ if (!this.data.girlBackShow) { //女孩身后
+ console.log("这是儿童女背部")
+ } else {
+ console.log("这是儿童女肚子")
+ this.getSymptomByType("14")
+ }
+ } else {
+ if (!this.data.boyBackShow) {
+ console.log("这是儿童男背部")
+ } else {
+ console.log("这是儿童男肚子")
+ this.getSymptomByType("7")
+ }
+ }
+ },
+ handleChildPrivate() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ if (!this.data.girlBackShow) { //女孩身后
+ console.log("这是儿童女屁股")
+ } else {
+ console.log("这是儿童女私处")
+ this.getSymptomByType("15")
+ }
+ } else {
+ if (!this.data.boyBackShow) {
+ console.log("这是儿童男屁股")
+ } else {
+ console.log("这是儿童男私处")
+ this.getSymptomByType("8")
+ }
+ }
+ },
+ handleChildRightArm() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女右臂")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男右臂")
+ this.getSymptomByType("9")
+ }
+ },
+ handleChildRightHand() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女右手")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男右手")
+ this.getSymptomByType("9")
+ }
+ },
+ handleChildLeg() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女腿")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男腿")
+ this.getSymptomByType("9")
+ }
+ },
+ handleChildFoot() {
+ if (this.data.switchSex > 0) { //先判断性别,再判断前后,大于0是女性
+ console.log("这是儿童女脚")
+ this.getSymptomByType("16")
+ // if (!this.data.girlBackShow) {//女孩身后
+ // console.log("女孩身后")
+ // }else{
+ // console.log("女孩前面")
+ // }
+ } else {
+ console.log("这是儿童男脚")
+ this.getSymptomByType("9")
+ }
+ },
+ methods: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ wx.setNavigationBarTitle({
+ title: '智能导诊'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/intelligentGuidance/intelligentGuidance.json b/pages/intelligentGuidance/intelligentGuidance.json
new file mode 100644
index 0000000..843fb78
--- /dev/null
+++ b/pages/intelligentGuidance/intelligentGuidance.json
@@ -0,0 +1,8 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-cell-group": "@vant/weapp/cell-group/index"
+ },
+ "disableScroll":true
+}
\ No newline at end of file
diff --git a/pages/intelligentGuidance/intelligentGuidance.wxml b/pages/intelligentGuidance/intelligentGuidance.wxml
new file mode 100644
index 0000000..2e6825e
--- /dev/null
+++ b/pages/intelligentGuidance/intelligentGuidance.wxml
@@ -0,0 +1,679 @@
+
+
+
+ 身体部位
+ 部位列表
+
+
+
+
+
+
+
+ {{ selectSexOptions[0] }}
+
+ {{ selectSexOptions[1] }}
+
+
+
+
+
+ {{ selectAgeOptions[0] }}
+
+ {{ selectAgeOptions[1] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史就诊 >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/intelligentGuidance/intelligentGuidance.wxss b/pages/intelligentGuidance/intelligentGuidance.wxss
new file mode 100644
index 0000000..654bc88
--- /dev/null
+++ b/pages/intelligentGuidance/intelligentGuidance.wxss
@@ -0,0 +1,670 @@
+.main {
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+
+.place_switch_sex {
+ position: relative;
+ left: 20rpx;
+ width: 220rpx;
+ height: 60rpx;
+}
+
+.place_switch_age {
+ margin-top: -35rpx;
+ position: absolute;
+ right: 20rpx;
+ /* top: 50%; */
+ transform: translateY(-50%);
+}
+
+.switch {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ width: 200rpx;
+ height: 54rpx;
+ border-radius: 54rpx;
+ background: #f7f7fb;
+}
+
+.switchNums {
+ width: 112rpx;
+ height: 54rpx;
+ line-height: 54rpx;
+ border-radius: 54rpx;
+ text-align: center;
+ color: #C1C1C1;
+ font-size: 28rpx;
+ font-weight: bold;
+}
+
+.currentNum {
+ background: #1989FA;
+ color: #ffffff;
+}
+
+.body_area_adult_male_frontal {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/adult_male_frontal.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_adult_male_back {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/adult_male_back.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_adult_female_frontal {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/adult_female_frontal.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_adult_female_back {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/adult_female_back.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_body_frontal {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/boy_frontal.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_body_back {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/boy_back.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_girl_front {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/girl_front.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.body_area_girl_back {
+ width: 100vw;
+ height: 85vh;
+ display: flex;
+ flex-direction: column;
+ margin-top: 5rpx;
+ justify-content: center;
+ background-image: url(https://hnwjyy.oss-cn-shanghai.aliyuncs.com/zndy0319/girl_back.png);
+ background-size: 85% 95%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+/* .body_img {
+ height: 85vh;
+} */
+
+.head_area {
+ /* margin-top: 3vh; */
+ display: flex;
+}
+
+.head_area_single {
+ width: 20vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.head_area_single_right_blank {
+ width: 15vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.head_area_single_right {
+ width: 25vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.history-font {
+ /* border: 1px solid red; */
+ font-size: small;
+ text-align: center;
+ float: left;
+ background-color: #1989FA;
+ color: #ffffff;
+ border-radius: 10rpx;
+}
+
+.chest_area {
+ display: flex;
+ /* margin-top: 17vh; */
+}
+
+.chest_area_single {
+ width: 23vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.chest_area_single_female {
+ width: 30vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.chest_area_single_armfemale {
+ width: 10vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.chest_area_single_femalechest {
+ width: 23vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.chest_area_single_chest {
+ width: 30vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.chest_area_single_arm {
+ width: 11vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+
+.abdomen_area {
+ display: flex;
+}
+
+.abdomen_area_single {
+ width: 20vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_single_female {
+ display: flex;
+ flex-direction: column;
+ width: 30vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_female_belly {
+ width: 30vw;
+ height: 9vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_female_alvine {
+ width: 30vw;
+ height: 4vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_single_female_forearm {
+ width: 10vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_single_forearm {
+ width: 15vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_single_abdomen {
+ display: flex;
+ flex-direction: column;
+ width: 30vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_belly {
+ width: 30vw;
+ height: 9vh;
+ /* border: 1px solid red; */
+}
+
+.abdomen_area_alvine {
+ width: 30vw;
+ height: 4vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area {
+ display: flex;
+}
+
+.thigh_area_single_blank {
+ width: 12vw;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_single {
+ width: 20vw;
+ height: 13vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_single_thigh {
+ width: 35vw;
+ height: 13vh;
+ display: flex;
+ flex-direction: column;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_privateparts {
+ width: 35vw;
+ height: 4vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_thigh {
+ width: 35vw;
+ height: 9vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_single_femaleblank {
+ width: 30vw;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_single_femalethigh {
+ display: flex;
+ flex-direction: column;
+ width: 28vw;
+ height: 20vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_femaleprivateparts {
+ width: 28vw;
+ height: 5vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_femalethigh {
+ width: 28vw;
+ height: 17vh;
+ /* border: 1px solid red; */
+}
+
+.thigh_area_single_femaleinterval {
+ width: 10vw;
+ /* border: 1px solid red; */
+}
+
+.calf_area {
+ display: flex;
+}
+
+.calf_area_single {
+ width: 20vw;
+ height: 18vh;
+ /* border: 1px solid red; */
+}
+
+.calf_area_femalesingle {
+ width: 20vw;
+ /* height: 15vh; */
+ /* border: 1px solid red; */
+}
+
+.calf_area_single_femalecalf {
+ width: 20vw;
+ height: 15vh;
+ /* border: 1px solid red; */
+}
+
+.calf_area_single_calf {
+ width: 28vw;
+ height: 18vh;
+ /* border: 1px solid red; */
+}
+
+
+.foot_area {
+ display: flex;
+}
+
+.foot_area_single {
+ width: 20vw;
+ height: 7vh;
+ display: flex;
+ flex-direction: row;
+ /* border: 1px solid red; */
+}
+
+.foot_icon_area {
+ width: 8vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.male_icon_place {
+ width: 12vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.foot_area_single_blank {
+ width: 15vw;
+ /* height: 6vh; */
+ /* border: 1px solid red; */
+}
+
+.foot_area_single_foot {
+ width: 23vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.foot_area_femalesingle {
+ width: 20vw;
+ height: 7vh;
+ display: flex;
+ flex-direction: row;
+ /* border: 1px solid red; */
+}
+
+.foot_area_female_icon_blank {
+ width: 8vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.female_icon_place {
+ width: 12vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.foot_area_single_femalefoot {
+ width: 20vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.revolve {
+ width: 20vw;
+ /* height: 6vh; */
+ /* border: 1px solid red; */
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.revolvefoot {
+ display: flex;
+}
+
+.revolvefootall {
+ width: 20vw;
+ height: 6vh;
+ /* border: 1px solid red; */
+}
+
+/* .femalerevolve{
+ width: 20vw;
+ border: 1px solid red;
+ background-repeat: no-repeat;
+ background-position: center;
+} */
+
+.revolveIcon {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABCdJREFUWEftlW1oHFUUht9zZ5OKVtOdTVKaVlLJ3sUq0hJB1CKIiilG8LuWgBXbYLIzprSi+AWlRQT9odXWnUmq1SpJ1YAKpphGLYUi9QMh+qPSzGxak9qE2N3ZRNtQN9k5OmmImzbNTmKECnv/Defcc59573vOJVxkiy4yHuSBct1IXqG8QrkUyBX37SHVtHcy85mUFtkwVnTLgUCwdHEtQFUATihC7E7UV/wwcWDr4cJgsmAzMVWCqTfjjr4y1HD1sX8FVNbUd2naPX0Du6hiwrMAf+1okVu8okHDfo+AtQC+A1AGYAkEVjr18hsvHjLsFgZqAO4CKAxCv+Kml53Urz01HdS0CoVi1jIm+jmrwCFHkyuxhYVaGj8D5i8dPVJd/GZ3xBVuFx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flex;
+ width: 98vw;
+ align-items: center;
+ justify-content: center;
+ /* padding: 10rpx 0; */
+ margin-bottom: 1vh;
+}
+
+.tab_type_left {
+ width: 48vw;
+ font-family: 'microsoft yahei ';
+ font-size: small;
+ text-align: center;
+ background-color: #878787;
+ border-bottom-left-radius: 9rpx;
+ border-top-left-radius: 9rpx;
+}
+
+.tab_type_right {
+ width: 48vw;
+ font-family: 'microsoft yahei ';
+ font-size: small;
+ text-align: center;
+ background-color: #878787;
+ border-bottom-right-radius: 9rpx;
+ border-top-right-radius: 9rpx;
+}
+
+.bodyParts-active {
+ background-color: #597ffe;
+}
+
+.questionsList-active {
+ background-color: #597ffe;
+}
+
+
+.boyHead_leftBlankArea {
+ width: 28vw;
+ height: 28vh;
+ /* border: 1px solid red; */
+}
+
+.boyHead_area {
+ width: 46vw;
+ height: 28vh;
+ /* border: 1px solid red; */
+}
+
+.boyHead_rightArea {
+ width: 26vw;
+ height: 28vh;
+ /* display: flex; */
+ /* border: 1px solid red; */
+}
+
+.label-container {
+ width: 23vw;
+ height: 2hw;
+ border-radius: 10rpx;
+ background-color: #1989FA;
+ color: #ffffff;
+ /* border: 1px solid red; */
+
+}
+
+.boyHeadLabel {
+ font-size: small;
+}
+
+.boyChest_blankArea {
+ width: 15vw;
+ height: 25vh;
+ /* border: 1px solid red; */
+}
+
+.boyChest_Area {
+ width: 23vw;
+ height: 25vh;
+ /* border: 1px solid red; */
+}
+
+.boy_chest_chest {
+ width: 23vw;
+ height: 18vh;
+ /* border: 1px solid red; */
+}
+
+.boy_chest_privateparts {
+ width: 23vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.boyChest_armArea {
+ width: 23vw;
+ height: 25vh;
+ display: flex;
+ flex-direction: column;
+ /* border: 1px solid red; */
+}
+
+.boy_arm_area {
+ width: 23vw;
+ height: 15vh;
+ /* border: 1px solid red; */
+}
+
+.boy_hand_area {
+ width: 23vw;
+ height: 10vh;
+ display: flex;
+ /* border: 1px solid red; */
+}
+
+.boy_hand_area_lefthand {
+ width: 15vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.hand_blank {
+ width: 6vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.boy_hand_area_righthand {
+ width: 15vw;
+ height: 10vh;
+ /* border: 1px solid red; */
+}
+
+.boyThigh_blankArea {
+ width: 33vw;
+ height: 22vh;
+ display: flex;
+ flex-direction: column;
+ /* border: 1px solid red; */
+}
+
+.boy_leg_area {
+ width: 32vw;
+ height: 15vh;
+ /* border: 1px solid red; */
+}
+
+.boy_foot_area {
+ width: 32vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.icon_place_revolve {
+ width: 32vw;
+ height: 15vh;
+ /* border: 1px solid red; */
+
+}
+
+.icon_place_revolve_bottome {
+ width: 33vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+ display: flex;
+ flex-direction: row;
+}
+
+.icon_place_revolve_leftblank {
+ width: 21vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.icon_place {
+ width: 12vw;
+ height: 7vh;
+ /* border: 1px solid red; */
+}
+
+.popup-head {
+ margin-top: 1vh;
+ height: 5vh;
+ text-align: center;
+ padding: 15rpx;
+ font-size: small;
+ font-family: 'microsoft yahei';
+}
\ No newline at end of file
diff --git a/pages/introduction/introduction.js b/pages/introduction/introduction.js
new file mode 100644
index 0000000..e2d1f3a
--- /dev/null
+++ b/pages/introduction/introduction.js
@@ -0,0 +1,87 @@
+// pages/introduction/introduction.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ html:''
+ },
+ getMsg(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospital',
+ // url:'http://sayetest.f3322.org:5000/findHospital',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"医院介绍")
+ let str = res.data.HOSPITAL_ABOUT,
+ s1 = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
+ s1 = s1.replace("
+
+
+
diff --git a/pages/introduction/introduction.wxss b/pages/introduction/introduction.wxss
new file mode 100644
index 0000000..03b3b04
--- /dev/null
+++ b/pages/introduction/introduction.wxss
@@ -0,0 +1,20 @@
+/* pages/introduction/introduction.wxss */
+.banner{
+ margin: 30rpx 0;
+ width: 750rpx;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+.imgWrap{
+ height: 300rpx;
+ width: 100%;
+ margin: 20rpx auto;
+ border-radius: 15rpx;
+}
+.text{
+ width: 100%;
+ margin-top: 20rpx;
+ color: #555;
+ font-size: 35rpx;
+ line-height: 180%
+}
\ No newline at end of file
diff --git a/pages/jfMsg/jfMsg.js b/pages/jfMsg/jfMsg.js
new file mode 100644
index 0000000..f93b435
--- /dev/null
+++ b/pages/jfMsg/jfMsg.js
@@ -0,0 +1,116 @@
+// pages/jfMsg/jfMsg.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ msgList:[],
+ ksmc:'',
+ sflb:'',
+ num:'',
+ name:'',
+ date:''
+ // cfdj: "1.044",单价
+ // cfks: "内科",
+ // cfrq: "2016060522:48:03",日期
+ // cfsl: "2",数量
+ // cfxh: 164440,序号
+ // cfys: "supervisor",医生
+ // czyh: "00",操作员
+ // xmmc: "[甲]$口服葡萄糖粉",名称
+ // ypdw: "包",单位
+ // ypgg: "50克*0.5包/包",规格
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ sflb:options.sflb,
+ ksmc:options.ksmc,
+ name:options.name,
+ card:options.card
+ })
+ let sjh = options.sjh
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getPayDetailList?cxlb=1&sjh&czyh=1',
+ method:"GET",
+ data:{
+ sjh:sjh
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res.data.list,"详情")
+ this.setData({
+ msgList:res.data.list,
+ })
+ let num2 = res.data.list[0].cfrq
+ var year = String(num2).substr(0,4)
+ var month = String(num2).substr(4,5).substr(0,2)
+ var date = String(num2).substr(6,7).substr(0,2)
+ var time = String(num2).substr(8,15)
+ var result2 = year+'/'+ month +'/'+date+' '+time
+ console.log(result2)
+ this.setData({
+ date : result2
+ })
+ }
+ })
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '缴费详情'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/jfMsg/jfMsg.json b/pages/jfMsg/jfMsg.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/jfMsg/jfMsg.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/jfMsg/jfMsg.wxml b/pages/jfMsg/jfMsg.wxml
new file mode 100644
index 0000000..dbb3e45
--- /dev/null
+++ b/pages/jfMsg/jfMsg.wxml
@@ -0,0 +1,54 @@
+
+
+
+
+
+ 费用类型
+ {{sflb}}
+
+
+ 就诊科室
+ {{ksmc}}
+
+
+ 就诊人
+ {{name}}
+
+
+ 卡号
+ {{card}}
+
+
+
+ 费用明细
+
+
+ {{item.xmmc}}
+
+
+
+ 单价:¥{{item.cfdj}}
+ 数量:{{item.cfsl}}/{{item.ypdw}}
+
+ ¥{{item.totalPrice}}
+
+
+
+
+
+ 处方序号
+ {{msgList[0].cfxh}}
+
+
+ 处方日期
+ {{date}}
+
+
+
\ No newline at end of file
diff --git a/pages/jfMsg/jfMsg.wxss b/pages/jfMsg/jfMsg.wxss
new file mode 100644
index 0000000..ed594f8
--- /dev/null
+++ b/pages/jfMsg/jfMsg.wxss
@@ -0,0 +1,134 @@
+/* pages/jfMsg/jfMsg.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.title{
+ height: 200rpx;
+ width: 100%;
+}
+.text{
+ height: 40rpx;
+ width: 100%;
+ text-align: center;
+ line-height: 40rpx;
+ font-size: 35rpx;
+ letter-spacing: 2rpx;
+ color: #333;
+}
+.icon2{
+ height: 120rpx;
+ width: 120rpx;
+ margin: 50rpx auto;
+ background-color: rgba(0,110,255);
+ background-size: 100%;
+ border-radius: 50%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAABMZJREFUeF7t3fuODEEUBvCv4214HXELIYQgBCGIW3aDIAQhCCGErMu+D69zpNaZmN2dS3dNn+o6fb7+U2Zq63zfb2t356YBr9AJNKGn5/AggOAICIAAgicQfHyeAAQQPIHg4/MEIIDgCQQfnycAAQRPIPj4PAEIIHgCwcfnCUAAwRMIPj5PAAIInkDw8XkCEEDwBIKPzxOAAIInEHx8ngAEEDyB4OPzBCCA4AkEH58nAAEETyD4+DwBCCB4AsHH5wlAAMETCD4+TwACCJ5A8PF5AhBA8AQqGF9E9qZtNE3zp/R2eAKUTnzH19PyN/WfD5RGQAADApgqf59u4zeAoggIYCAAM8qf7KQoAgIYAMCC8osjIIDCAFqUXxQBARQE0KH8YggIoBCAjPKLICCAAgBWKD/tzvSXQgIwBlBz+VsPPhnPH3r52ssnAEOeHsonACMAXsonAAMAnsongJ4BeCufAHoE4LF8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JAJ7aMtgrARiE6mlJAvDUlsFeCcAgVE9LEoCntgz2SgAGoXpakgA8tWWwVwIwCNXTkn8BYePYkCvSNSQAAAAASUVORK5CYII=);
+}
+.icon3{
+ height: 120rpx;
+ width: 120rpx;
+ display: flex;
+ align-items: center;
+ margin: 50rpx auto;
+ /* background-color: rgba(216,30,6) ; */
+ background-size: 100%;
+ border-radius: 50%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAFYNJREFUeF7tXQuUHFWZ/v7q6eokBHm5R5akq3kk6RrCY2VhwV1xQTYSXqviMpH18MqyCALLSlBBIg9FYdV4fKzLQw0J7nHVKIIJSQARBFyNJGACSVcnLGSqJ64cN7uiycx09XT9e25P96Qzmem691Z1d/VM7jlzcnL6/vf+/3+/urfqv/+DMAHbVmvK0UPEdsJHlglZsJ8F0TQAtb+pBEzj4f+DgH4G+gEMYPjffjD3g4w8MfJlA/kuJmeOO/jaRFMXdbpAG9+GA5JTUmcYjAsA/isAWQDJJslVApAH6Oc+YWVpsPjMiW9gd5PmasmwHQmA/FHJE7ls/DWIzyTGBQwkWqKtUZMQUGbCSjA9TQn/Z9nXSxvbwUeYOTsGAJtnJk81DDrHIMxnxqlhhG4WLRHW+Yy1vs9r5vaV1jVrnijHjTUAOmHRx1uMTgFDLAGw1Uqd74OvAsS5PiHaSgP0wBy3uCpu0sQKABNw4Uevd+yAEAsATIKFjy0Q2gqA3JFTjjR8voWHt/tJ1wj0gG/Q3d3bB7e3S/i2AWBLJnWtwXwzgJlNFH4AhG3k41UmvApgJzHvAmGXT7QLPu2qzG3wdIN5OhjTmWg6gMOIMYsNzAJjNoCpTeSxzye659je4tebOMe4Q7ccAHmr650M4xYA5zZB4PVEeMIv+08aSG7L9g3siGKO/MypM3yUZhsJYx4z3gPg5CjGHTXGaoJ/d9Yder4JY8cDAE7avBWEuyIUcDcRfgzwTxmJp+zewdc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p4NFkcFi2MiCyCpr5KGlCXhCwumdSBei37v8ahy/TWJ38BhOx4AY0koCmENEdsJH1kmZMF+FkTCXa32N5WAaVx1YSOgn4F+AAMY/rcfzP0gI0+MfNlAvovJmeMOSlTiCNR5rDr8P6TBq7Rr8yaYAAAAAElFTkSuQmCC);
+}
+.wrap :last-child{
+ border: none;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.left{
+ width: 25%;
+ font-size: 35rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.right{
+ width: 70%;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+}
+.msgWrap{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 80rpx;
+ width: 100%;
+ line-height: 80rpx;
+ color: #666;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.msgItem{
+ height: 150rpx;
+ width: 100%;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+.msgWrap :last-child{
+ border-bottom: none;
+}
+.msgItem-up{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.des{
+ height:70rpx;
+ width: 80%;
+ font-size: 30rpx;
+ color: #666;
+ line-height: 70rpx;
+ display: flex;
+}
+.des>view{
+ height: 100%;
+ margin-right: 15rpx;
+}
+.msgItem-down{
+ height: 70rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center
+}
+.jg{
+ height: 70rpx;
+ width: 20%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: rgba(244,99,99);
+ font-size: 35rpx;
+}
diff --git a/pages/kfdj/actionsheet.wxss b/pages/kfdj/actionsheet.wxss
new file mode 100644
index 0000000..95489ff
--- /dev/null
+++ b/pages/kfdj/actionsheet.wxss
@@ -0,0 +1,100 @@
+.actionsheet-mask {
+ position: fixed;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.4);
+ z-index: 1000;
+}
+.actionsheet-panel {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background-color: #fff;
+ z-index: 1001;
+ border-radius: 32rpx 32rpx 0 0;
+ max-height: 93vh;
+ overflow-y: auto;
+ padding-bottom: constant(safe-area-inset-bottom);
+ padding-bottom: env(safe-area-inset-bottom);
+}
+.actionsheet-hd {
+ display: flex;
+ justify-content: space-between;
+ /* width: 100%; */
+ padding: 54rpx 40rpx 34rpx;
+ /* position: fixed;
+ top:0px;
+ z-index:999;
+ height: 100rpx; */
+
+}
+.actionsheet-hd-tt {
+ font-size: 40rpx;
+ line-height: 56rpx;
+ letter-spacing: 2rpx;
+ font-weight: bold;
+ color: #303133;
+}
+.actionsheet-icon-close {
+ display: block;
+ width: 48rpx;
+ height: 48rpx;
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAMO0lEQVR4Ae1d228VxxkfH3MHE4TD3QIEAQcK5VJcLrYqxQ+VQqs2UlWhKoqgok956lMb5Q9AaR7aPPWpLUGoilBVqY16kfLgSBE2YMStBYTFRQaVOwZiGzAYcH+/zc7RnsvuXM7MnsXekdazZ/eb7/vm983O7ZsZN4iMhrt37zaNjo62NjY2tr58+bIVaraOjY21NDQ0NOG+CfdBHKo/hOdDuB/Cc97/D/d9hUKh78WLF32TJ0/umzdvHt9nLjRkRaOBgYHZAPx70KcTgL8FEDcATCf6gRdYjZ2BQb4E/y4Y5Kvm5ubBL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+ERKywAkRD+2H0x34tLfss6EEygQG2JErHSzrW0AMgTj46jbfgIhyk9LV4HxQkdMiA0xMsmTkQHIGH3aLyBsN658kBYiTSyICbExAZ+0xgZgIjQwn0Hgu7gm/JdADIgFMSE2pkGrFxTHFCsa+P9k/oreUaa2usbp6/o5gB9mtWNT8qUuNRmATDBpl/8jN4mmRWxVBUXlsNFBSWjD1Rt9Pp7vmVfm2bTBrYZJzV+AZMrBGr6Gj/H7l/LZOI0/AfC/ggGctH/ODCDBxog5/3e2EgyN2LkBKDP/h84ayIckXgwgxaOXlP9LcwlGTOzVAJSJtqERhtiDmOfne3X0x+TR+DHq90u4PkL38lPEVT1ZxkxjEng3gJQbGoL/m+BDXF6Px5cyTWOAfQ7XPgB/yDfwUrfUDCAFAnz+j4K38Xs37nlYePpHFkplvolHADaXZB7AaJYL01KdYkndANG88xRxHmQNQ7yH5+2IUzk5NSzd3YgPcqFsdK1mVL807utqgGgGeZZyeJxvJ6Y3OgHOt2EQJ/qxVCP8B9MG3JXSxc0Rcn1+VId63DvJoA/FeaAsz9Xk0Y4wCA8W5PmmLQCTB0w14T6IQ9lDeM4jF7jhkPfc/c9N0H3cCsrdiNwQF9JmKvo/EKRRXxn393kAAAAASUVORK5CYII=') center center no-repeat;
+ background-size: 100% 100%;
+}
+.actionsheet-box {
+ border: 2rpx solid #F8F8F8;
+ border-radius: 12rpx;
+ margin: 20rpx;
+}
+.actionsheet-box-hd {
+ position: relative;
+ font-size: 32rpx;
+ line-height: 44rpx;
+ font-weight: bold;
+ color: #303133;
+ margin: 50rpx 0 34rpx;
+ padding: 0 40rpx;
+}
+.actionsheet-box-hd:before {
+ content: '';
+ position: absolute;
+ left: 8rpx;
+ top: 50%;
+ width: 8rpx;
+ height: 34rpx;
+ transform: translateY(-50%);
+ background-color: #3B71EB;
+}
+.actionsheet-box-bd {
+ padding: 40rpx;
+ border-top: 2rpx solid #F8F8F8;
+}
+.actionsheet-box-item {
+ display: flex;
+ justify-content: space-between;
+ font-size: 28rpx;
+ line-height: 40rpx;
+}
+.actionsheet-box-item + .actionsheet-box-item {
+ margin-top: 24rpx;
+}
+.actionsheet-box-item-label {
+ color: #606266;
+}
+.actionsheet-box-item-sublabel {
+ color: #909399;
+}
+.actionsheet-box-item-value {
+ color: #606266;
+}
+.actionsheet-box-item-value.em {
+ color: #3B71EB;
+}
+
+
+
+
diff --git a/pages/kfdj/kfdj.js b/pages/kfdj/kfdj.js
new file mode 100644
index 0000000..3df47e1
--- /dev/null
+++ b/pages/kfdj/kfdj.js
@@ -0,0 +1,816 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+const user = require('../../utils/user.js');
+
+//获取应用实例
+const app = getApp();
+
+Page({
+ data: {
+ actionsheetVisible: false,
+ listStand: [],
+ listAddtion: [],
+
+ //学生信息
+ list:[],
+ loadingHidden: true,
+ flag: false,
+ openid: '',
+
+ //任务信息
+ xyrwList: [],
+ rwname: '',
+ rwstatus: '',
+ rwempty: 0,
+ batchno: '',
+ //默认为0,从根节点开始
+ parentid: 0,
+ //学生归属的学校id
+ deptid: 0,
+ //学生选择
+ studentxpList:[],
+ studentxpListBackup: [],
+ studentIndexes: '',
+ studentcurrent: '',
+ studentSwitch: false,
+
+ //班级选择
+ classxpList:[],
+ classxpListBackup: [],
+ classIndexes: '',
+ classcurrent: '',
+ classSwitch: false,
+ //学校选择
+ schoolxpList:[],
+ schoolxpListBackup: [],
+ schoolIndexes: '',
+ schoolcurrent: '',
+ schoolSwitch: false,
+
+ //社区选择
+ sqxpList:[],
+ sqxpListBackup: [],
+ sqIndexes: '',
+ sqcurrent: '',
+ sqSwitch: false,
+ //街道选择
+ deptxpList:[],
+ deptxpListBackup: [],
+ deptIndexes: '',
+ deptcurrent: '',
+ UserSwitch: false,
+ //体检部门信息
+ jdname: '',
+ sqname: '',
+ schoolname: '',
+ classname: '',
+ studentname: '',
+ xytjinfo: {
+ jdid: '',
+ jdname: '',
+ sqid: '',
+ sqname: '',
+ schoolid: '',
+ schoolname: '',
+ classid: '',
+ classname: ''
+ },
+ // 下拉框选项组件
+ dropvalue: '1',
+ droplists: [
+ {value:'1',text:'请选择项目名称'}
+ ],
+ imgUrls: ["https://fy.btlsoln.com:8443/showFile/hospitalNotice/20220507/1651912958699.jpg",
+ "https://fy.btlsoln.com:8443/showFile/hospitalNotice/20220507/1651912958699.jpg"],
+ indicatorDots: false,
+ autoplay: true,
+ interval: 3000,
+ duration: 500,
+ checked: true
+ },
+ naviToAdd(){
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/kfdjMgr/kfdjMgr',
+ })
+ },
+ handleActionsheet() {
+ this.actionsheetVisible = !this.actionsheetVisible;
+ this.setData({
+ actionsheetVisible: this.actionsheetVisible
+ });
+ },
+
+naviToDet: function(event) {
+ console.log("naviToDet");
+
+ console.log(event, "evnet");
+ const index = event.currentTarget.dataset.index
+ console.log(index, 'selectindex');
+ console.log(index.name, 'selectItem');
+
+ const selectName = index.name
+ const selectNationId = index.nationId
+ const selectClassName = index.className
+ const selectSchoolName = index.schoolName
+ const selectPatid = index.patid
+ wx.navigateTo({
+ url: '/pages/categorykf/categorykf?name=' + selectName + '&nationid=' + selectNationId + '&classname=' + selectClassName +
+ '&schoolname=' + selectSchoolName + '&patid=' + selectPatid,
+ })
+},
+naviToInfo: function(event) {
+ console.log("naviToInfo");
+ console.log(event, "evnet");
+ const index = event.currentTarget.dataset.index
+ console.log(index, 'selectindex');
+ if(index.feeflag == "1"){
+ this.getXyOrder(index.patid);
+ }
+},
+getXyOrder(patid){
+ let that = this;
+ util.requestPost(api.kflistOrder, {
+ patid: patid
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.errCode === '0') {
+ console.log("listOrder res:");
+ console.log(res);
+ that.setData({
+ listStand: res.listStand,
+ listAddtion: res.listAddtion,
+ actionsheetVisible: true
+ });
+
+ }
+ else{
+
+ }
+ });
+},
+
+//取学生列表
+getPerList(batchno){
+ var that = this;
+ util.request(api.kfstudentByparent, {
+ openid: app.globalData.openId,
+ batchno: batchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("list res:");
+ console.log(res);
+ console.log("list resdata:");
+ console.log(res.data);
+ that.setData({
+ list: res.data
+ });
+
+ console.log("list length", that.data.list.length);
+ if(that.data.list.length == 0 ){
+ that.setData({
+ loadingHidden: false,
+ flag: false
+ });
+ }else{
+ //有体检人,取出默认体检人
+ var filterNum = that.data.list.filter(function(person,index,arrs){
+ return person.defaultflag==0
+ });
+ console.log("fileter");
+ console.log(filterNum);
+
+ that.setData({
+ loadingHidden: true,
+ flag: true
+ });
+ }
+
+ that.setData({
+ loadingHidden: true
+ });
+ }
+ });
+},
+
+ //获取下园任务列表
+getXyrwList: function() {
+ var that = this;
+ util.request(api.kfxyrwinfo, {
+
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("xyrwinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ xyrwList: res.data
+ });
+
+ if(res.data.length == 0){
+ that.setData({
+ rwempty: 0
+ });
+ app.globalData.hasXyrw = false;
+ }else{
+ that.setData({
+ rwempty: 1,
+ rwname: res.data[0].batchName,
+ rwstatus: res.data[0].batchStatus
+ });
+ app.globalData.hasXyrw = true;
+ }
+
+ if(res.data[0].batchStatus == '1') {
+ that.setData({
+ rwstatus: '开始',
+ batchno: res.data[0].batchno
+ });
+ that.getPerList(res.data[0].batchno);
+ }
+ }
+ });
+},
+
+//学生
+studentList: function() {
+ var that = this;
+ util.request(api.kfstudentinfo, {
+ deptid: this.data.deptid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("studentinfo res:");
+ console.log(res);
+ console.log("studentinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ studentxpList: res.data,
+ studentxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ studentOn: function(){
+ this.setData({
+ studentSwitch: true
+ })
+ },
+ //关闭控件
+ studentShutdown: function(){
+ let List = [];
+ this.setData({
+ studentSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.studentxpListBackup.length;i++){
+ List.push(this.data.studentxpListBackup[i]);
+ }
+ this.setData({
+ studentxpList: List,
+ studentIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setstudentIndexes(event){
+ this.setData({
+ studentIndexes: event.detail,
+ });
+ console.log("studentIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+studentGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.studentIndexes){
+ this.data.studentxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.studentIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.studentxpListBackup
+ }
+ this.setData({
+ studentcurrent: this.data.studentIndexes,
+ studentxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+studentIdentification(event){
+ let List = [];
+ let Backups = this.data.studentxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.studentid = event.detail.value.id;
+ this.data.xytjinfo.studentname = event.detail.value.name;
+ this.setData({ studentname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ //this.setData({ parentid: event.detail.value.id});
+ //this.studengList();
+
+ console.log("set select studentid:" + this.data.xytjinfo.studengid);
+ console.log("set select studentname:" + this.data.xytjinfo.studengname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ studentxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.studentxpList);
+ console.log("pick after list backup");
+ console.log(this.data.studentxpListBackup);
+ this.studentShutdown();
+},
+ //班级
+classList: function() {
+ var that = this;
+ util.request(api.kfdeptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("classinfo res:");
+ console.log(res);
+ console.log("classinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ classxpList: res.data,
+ classxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ classOn: function(){
+ this.setData({
+ classSwitch: true
+ })
+ },
+ //关闭控件
+ classShutdown: function(){
+ let List = [];
+ this.setData({
+ classSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.classxpListBackup.length;i++){
+ List.push(this.data.classxpListBackup[i]);
+ }
+ this.setData({
+ classxpList: List,
+ classIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setclassIndexes(event){
+ this.setData({
+ classIndexes: event.detail,
+ });
+ console.log("classIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+classGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.classIndexes){
+ this.data.classxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.classIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.classxpListBackup
+ }
+ this.setData({
+ classcurrent: this.data.classIndexes,
+ classxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+classIdentification(event){
+ let List = [];
+ let Backups = this.data.classxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.classid = event.detail.value.id;
+ this.data.xytjinfo.classname = event.detail.value.name;
+ this.setData({ classname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ deptid: event.detail.value.id});
+ this.studentList();
+
+ console.log("set select classid:" + this.data.xytjinfo.classid);
+ console.log("set select classname:" + this.data.xytjinfo.classname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ classxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.classxpList);
+ console.log("pick after list backup");
+ console.log(this.data.classxpListBackup);
+ this.classShutdown();
+},
+//学校
+schoolList: function() {
+ var that = this;
+ util.request(api.kfdeptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("schoolinfo res:");
+ console.log(res);
+ console.log("schoolinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ schoolxpList: res.data,
+ schoolxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ schoolOn: function(){
+ this.setData({
+ schoolSwitch: true
+ })
+ },
+ //关闭控件
+ schoolShutdown: function(){
+ let List = [];
+ this.setData({
+ schoolSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.schoolxpListBackup.length;i++){
+ List.push(this.data.schoolxpListBackup[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ schoolIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setschoolIndexes(event){
+ this.setData({
+ schoolIndexes: event.detail,
+ });
+ console.log("schoolIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+schoolGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.schoolIndexes){
+ this.data.schoolxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.schoolIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.schoolxpListBackup
+ }
+ this.setData({
+ schoolcurrent: this.data.schoolIndexes,
+ schoolxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+schoolIdentification(event){
+ let List = [];
+ let Backups = this.data.schoolxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.schoolid = event.detail.value.id;
+ this.data.xytjinfo.schoolname = event.detail.value.name;
+ this.setData({ schoolname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.classList();
+
+ console.log("set select schoolid:" + this.data.xytjinfo.schoolid);
+ console.log("set select schoolname:" + this.data.xytjinfo.schoolname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.schoolxpList);
+ console.log("pick after list backup");
+ console.log(this.data.schoolxpListBackup);
+ this.schoolShutdown();
+},
+
+//社区
+sqList: function() {
+ var that = this;
+ util.request(api.kfdeptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("sqinfo res:");
+ console.log(res);
+ console.log("sqinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ sqxpList: res.data,
+ sqxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ sqOn: function(){
+ this.setData({
+ sqSwitch: true
+ })
+ },
+ //关闭控件
+ sqShutdown: function(){
+ let List = [];
+ this.setData({
+ sqSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.sqxpListBackup.length;i++){
+ List.push(this.data.sqxpListBackup[i]);
+ }
+ this.setData({
+ sqxpList: List,
+ sqIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setsqIndexes(event){
+ this.setData({
+ sqIndexes: event.detail,
+ });
+ console.log("sqIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+sqGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.sqIndexes){
+ this.data.sqxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.sqIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.sqxpListBackup
+ }
+ this.setData({
+ sqcurrent: this.data.sqIndexes,
+ sqxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+sqIdentification(event){
+ let List = [];
+ let Backups = this.data.sqxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.sqid = event.detail.value.id;
+ this.data.xytjinfo.sqname = event.detail.value.name;
+ this.setData({ sqname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.schoolList();
+
+ console.log("set select sqid:" + this.data.xytjinfo.sqid);
+ console.log("set select sqname:" + this.data.xytjinfo.sqname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ sqxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.sqxpList);
+ console.log("pick after list backup");
+ console.log(this.data.sqxpListBackup);
+ this.sqShutdown();
+},
+
+//街道
+ deptList: function() {
+ var that = this;
+ util.request(api.kfdeptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("deptinfo res:");
+ console.log(res);
+ console.log("deptinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ deptxpList: res.data,
+ deptxpListBackup: res.data
+ });
+ }
+ });
+ },
+
+ //条件输入事件
+ setDeptIndexes(event){
+ this.setData({
+ deptIndexes: event.detail,
+ });
+ console.log("deptIndexes:" + event.detail)
+ },
+ //点击确定搜索时触发事件
+ DeptGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.deptIndexes){
+ this.data.deptxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.deptIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.deptxpListBackup
+ }
+ this.setData({
+ deptcurrent: this.data.deptIndexes,
+ deptxpList: row
+ })
+ },
+
+ //开启控件
+ UserOn: function(){
+ this.setData({
+ UserSwitch: true
+ })
+ },
+ //关闭控件
+ UserShutdown: function(){
+ let List = [];
+ this.setData({
+ UserSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.deptxpListBackup.length;i++){
+ List.push(this.data.deptxpListBackup[i]);
+ }
+ this.setData({
+ deptxpList: List,
+ deptIndexes: ''
+ })
+
+ },
+
+//用户选择某个选项后触发事件
+UserIdentification(event){
+ let List = [];
+ let Backups = this.data.deptxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.jdid = event.detail.value.id;
+ this.data.xytjinfo.jdname = event.detail.value.name;
+ this.setData({ jdname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.sqList();
+ console.log("set select jdid:" + this.data.xytjinfo.jdid);
+ console.log("set select jdname:" + this.data.xytjinfo.jdname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ deptxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.deptxpList);
+ console.log("pick after list backup");
+ console.log(this.data.deptxpListBackup);
+ this.UserShutdown();
+},
+
+
+
+ onChange({ detail }) {
+ this.setData({ checked: detail });
+ },
+
+ onShareAppMessage: function() {
+ return {
+ title: '下园体检',
+ desc: '下园体检',
+ path: '/pages/index/index'
+ }
+ },
+
+ onPullDownRefresh() {
+ wx.showNavigationBarLoading() //在标题栏中显示加载
+ wx.hideNavigationBarLoading() //完成停止加载
+ wx.stopPullDownRefresh() //停止下拉刷新
+ },
+
+
+ getImgList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospitalNotice',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,'lunbotu')
+ this.setData({
+ imgUrls:res.data
+ })
+ }
+ })
+ },
+ onLoad: function(options) {
+ console.log("xytj load");
+
+ },
+ onReady: function() {
+ // 页面渲染完成
+ },
+ onShow: function() {
+ // 页面显示
+console.log("xytj onshow");
+ this.getXyrwList();
+ this.deptList();
+ // 页面初始化 options为页面跳转所带来的参数
+ //this.getPerList();
+
+ this.setData({
+ loadingHidden: false,
+ })
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+ onUnload: function() {
+ // 页面关闭
+ },
+
+})
\ No newline at end of file
diff --git a/pages/kfdj/kfdj.json b/pages/kfdj/kfdj.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/kfdj/kfdj.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/kfdj/kfdj.wxml b/pages/kfdj/kfdj.wxml
new file mode 100644
index 0000000..67cc2d5
--- /dev/null
+++ b/pages/kfdj/kfdj.wxml
@@ -0,0 +1,119 @@
+
+
+
+
+
+ 当前批次
+
+ {{ rwname }}
+
+
+ 当前无任务
+
+ 请点击姓名确定康复项目
+
+
+
+
+
+
+ 加载中...
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 未缴费
+
+
+ 已缴费
+
+
+
+
+ {{item.nationId}}
+
+
+
+ 查看详情
+
+
+
+
+
+ 暂无康复人信息,请点击下方“添加康复人”按钮,确认信息!
+ 添加康复人员
+
+
+
+
+
+
+
+ 缴费明细
+
+
+
+
+
+
+ 基本项目
+
+
+
+
+ {{items.itemname}}
+
+ {{items.itemprice}}
+
+
+
+
+ 可选项目
+
+
+
+
+ {{items.itemname}}
+
+ {{items.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/kfdj/kfdj.wxss b/pages/kfdj/kfdj.wxss
new file mode 100644
index 0000000..de343b9
--- /dev/null
+++ b/pages/kfdj/kfdj.wxss
@@ -0,0 +1,774 @@
+@import './actionsheet.wxss';
+
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ }
+ .content{
+ width: 90%;
+ margin: 0 auto;
+ }
+ .studentitem{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+ }
+ .zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+ }
+ .up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ /* border: 1rpx solid #f10a44; */
+
+ }
+ .name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+ }
+ .msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ /* border: 1rpx solid #85f10a; */
+
+ }
+ .t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ /* color: rgba(45,135,255);
+ background: rgba(226,237,254); */
+ }
+ .down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ }
+ .icon{
+ height: 50rpx;
+ display: flex;
+ align-items: center;
+ }
+ .mr{
+ font-size: 33rpx;
+ color: rgb(16, 150, 11);
+ margin-right: 15rpx;
+ }
+ .nofee{
+ font-size: 33rpx;
+ color: rgb(150, 11, 23);
+ margin-right: 15rpx;
+/* border: 1rpx solid #fd0404; */
+ }
+ .detail{
+ font-size: 33rpx;
+ color: rgba(52,120,247);
+ margin-right: 15rpx;
+ }
+ .sw{
+ margin-top: 5rpx;
+ }
+ .btn{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+ }
+
+
+ .popsearch{
+ margin-right: 15rpx;
+ }
+ .pickempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 80rpx;
+ }
+ .btnview{
+ justify-content: center;
+ display: flex;
+ margin-top: 80rpx;
+
+ }
+ .btnClass {
+ background: #4bc107 !important;
+ color: #fff !important;
+ }
+
+ .banner{
+ margin-bottom: 30rpx;
+ }
+ .slide-image{
+ width: 100%;
+ height: 100%;
+ }
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 20rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ }
+ .rwempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+ .rwtips{
+ font-size: 30rpx;
+ font-weight: bold;
+ color: rgb(253, 6, 6);
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+
+ .banner image {
+ width: 100%;
+ height: 417rpx;
+ }
+
+ .banner video {
+ height: 100%;
+ width: 100%;
+ }
+
+ .m-menu {
+ background: #fff;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ padding-bottom: 0rpx;
+ padding-top: 25rpx;
+ }
+
+ .m-menu .item {
+ width: 150rpx;
+ height: 126rpx;
+ }
+
+ .m-menu image {
+ display: block;
+ width: 58rpx;
+ height: 58rpx;
+ margin: 0 auto;
+ margin-bottom: 12rpx;
+ }
+
+ .m-menu text {
+ display: block;
+ font-size: 24rpx;
+ text-align: center;
+ margin: 0 auto;
+ line-height: 1;
+ color: #333;
+ }
+
+ .a-section {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ color: #333;
+ margin-top: 20rpx;
+ }
+
+ .a-section .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ }
+
+ .a-section .h .txt {
+ padding-right: 30rpx;
+ background-size: 16.656rpx 27rpx;
+ display: inline-block;
+ height: 36rpx;
+ font-size: 33rpx;
+ line-height: 36rpx;
+ }
+
+ .loc_light_icon {
+ color: #000;
+ font-size: 10px;
+ line-height: 30px;
+ text-align: center;
+ margin-top: 10px;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .loc_light {
+ color: #000;
+ font-size: 10px;
+ line-height: 10px;
+ text-align: left;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .dark,
+ .light {
+ color: #000;
+ font-size: 13px;
+ line-height: 18px;
+ text-align: left;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ }
+
+ .dark {
+ background-color: #39a9ed;
+ }
+
+ .light {
+ background-color: #fff;
+ }
+
+
+ .a-location .b{
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .wrap {
+ position: relative;
+ }
+
+ .a-brand .img {
+ position: absolute;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt {
+ position: absolute;
+ z-index: 2;
+ padding: 27rpx 31rpx;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt .brand {
+ display: block;
+ font-size: 33rpx;
+ height: 43rpx;
+ color: #fff;
+ }
+
+ .a-brand .mt .price, .a-brand .mt .unit {
+ font-size: 25rpx;
+ color: #fff;
+ }
+
+ .a-brand .item-1 {
+ float: left;
+ width: 375rpx;
+ height: 252rpx;
+ overflow: hidden;
+ border-top: 1rpx solid #fff;
+ margin-left: 1rpx;
+ }
+
+ .a-brand .item-1:nth-child(2n+1) {
+ margin-left: 0;
+ width: 374rpx;
+ }
+
+ .a-brand .item-1 .img {
+ width: 375rpx;
+ height: 253rpx;
+ }
+
+ .a-coupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-coupon .b .item {
+ position: relative;
+ height: 200rpx;
+ width: 700rpx;
+ background: linear-gradient(to right, #cfa568, #e3bf79);
+ margin-bottom: 10rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ padding-top: 30rpx;
+ }
+
+ .a-coupon .b .tag {
+ height: 32rpx;
+ background: #a48143;
+ padding-left: 16rpx;
+ padding-right: 16rpx;
+ position: absolute;
+ left: 20rpx;
+ color: #fff;
+ top: 20rpx;
+ font-size: 20rpx;
+ text-align: center;
+ line-height: 32rpx;
+ }
+
+ .a-coupon .b .content {
+ margin-top: 24rpx;
+ margin-left: 40rpx;
+ display: flex;
+ margin-right: 40rpx;
+ flex-direction: row;
+ }
+
+ .a-coupon .b .content .left {
+ flex: 1;
+ }
+
+ .a-coupon .b .discount {
+ font-size: 50rpx;
+ color: #b4282d;
+ }
+
+ .a-coupon .b .min {
+ color: #fff;
+ }
+
+ .a-coupon .b .content .right {
+ width: 400rpx;
+ }
+
+ .a-coupon .b .name {
+ font-size: 44rpx;
+ color: #fff;
+ margin-bottom: 14rpx;
+ }
+
+ .a-coupon .b .desc {
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .a-coupon .b .time {
+ font-size: 24rpx;
+ color: #fff;
+ line-height: 30rpx;
+ }
+
+ .a-groupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-groupon .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 244rpx;
+ width: 710rpx;
+ }
+
+ .a-groupon .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 220rpx;
+ height: 220rpx;
+ }
+
+ .a-groupon .b .right {
+ float: left;
+ height: 244rpx;
+ width: 476rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-groupon .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 244rpx;
+ width: 476rpx;
+ }
+
+ .a-groupon .b .name {
+ float: left;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-groupon .b .desc {
+ width: 476rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-groupon .b .price {
+ width: 476rpx;
+ display: flex;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-groupon .b .counterPrice {
+ text-decoration: line-through;
+ font-size: 28rpx;
+ color: #999;
+ }
+
+ .a-groupon .b .retailPrice {
+ margin-left: 30rpx;
+ font-size: 28rpx;
+ color: #a78845;
+ }
+
+ .a-new .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ padding: 0 31rpx 45rpx 31rpx;
+ }
+
+ .a-new .b .item {
+ float: left;
+ width: 302rpx;
+ margin-top: 10rpx;
+ margin-left: 21rpx;
+ margin-right: 21rpx;
+ }
+
+ .a-new .b .item-b {
+ margin-left: 42rpx;
+ }
+
+ .a-new .b .img {
+ width: 302rpx;
+ height: 302rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-new .b .name {
+ text-align: center;
+ display: block;
+ width: 302rpx;
+ height: 35rpx;
+ margin-bottom: 14rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .a-new .b .price {
+ display: block;
+ text-align: center;
+ line-height: 30rpx;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .a-popular {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-popular .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 264rpx;
+ width: 710rpx;
+ }
+
+ .a-popular .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 240rpx;
+ height: 240rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-popular .b .right {
+ float: left;
+ height: 264rpx;
+ width: 456rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-popular .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 264rpx;
+ width: 456rpx;
+ }
+
+ .a-popular .b .name {
+ width: 456rpx;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-popular .b .desc {
+ width: 456rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-popular .b .price {
+ width: 456rpx;
+ display: block;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-topic .b {
+ height: 533rpx;
+ width: 750rpx;
+ padding: 0 0 48rpx 0;
+ }
+
+ .a-topic .b .list {
+ height: 533rpx;
+ width: 750rpx;
+ white-space: nowrap;
+ }
+
+ .a-topic .b .item {
+ display: inline-block;
+ height: 533rpx;
+ width: 680.5rpx;
+ margin-left: 30rpx;
+ overflow: hidden;
+ }
+
+ .a-topic .b .item:last-child {
+ margin-right: 30rpx;
+ }
+
+ .a-topic .b .img {
+ height: 387.5rpx;
+ width: 680.5rpx;
+ margin-bottom: 30rpx;
+ }
+
+ .a-topic .b .np {
+ height: 35rpx;
+ margin-bottom: 13.5rpx;
+ color: #333;
+ font-size: 30rpx;
+ }
+
+ .a-topic .b .np .price {
+ margin-left: 20.8rpx;
+ color: #ab956d;
+ }
+
+ .a-topic .b .desc {
+ display: block;
+ height: 30rpx;
+ color: #999;
+ font-size: 24rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .good-grid {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ font-size: 33rpx;
+ color: #333;
+ }
+
+ .good-grid .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .b .item {
+ float: left;
+ background: #fff;
+ width: 365rpx;
+ margin-bottom: 6.25rpx;
+ height: 452rpx;
+ overflow: hidden;
+ text-align: center;
+ }
+
+ .good-grid .b .item .a {
+ height: 452rpx;
+ width: 100%;
+ }
+
+ .good-grid .b .item-b {
+ margin-left: 6.25rpx;
+ }
+
+ .good-grid .item .img {
+ margin-top: 20rpx;
+ width: 302rpx;
+ height: 302rpx;
+ }
+
+ .good-grid .item .name {
+ display: block;
+ width: 365.625rpx;
+ padding: 0 20rpx;
+ overflow: hidden;
+ height: 35rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .good-grid .item .price {
+ display: block;
+ width: 365.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .good-grid .t {
+ height: 100rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .search {
+ height: 88rpx;
+ width: 100%;
+ padding: 0 30rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ }
+
+ .search .van-icon-search {
+ line-height: 59rpx;
+ }
+
+ .search .input {
+ width: 690rpx;
+ height: 56rpx;
+ background: #ededed;
+ border-radius: 8rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .search .txt {
+ height: 42rpx;
+ line-height: 42rpx;
+ color: #666;
+ padding-left: 10rpx;
+ font-size: 30rpx;
+ }
\ No newline at end of file
diff --git a/pages/kfdjMgr/kfdjMgr.js b/pages/kfdjMgr/kfdjMgr.js
new file mode 100644
index 0000000..319a962
--- /dev/null
+++ b/pages/kfdjMgr/kfdjMgr.js
@@ -0,0 +1,372 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+const user = require('../../utils/user.js');
+
+//获取应用实例
+const app = getApp();
+
+Page({
+ data: {
+ isShow: false, //控制确认学生信息对话框
+ stulist: {},
+ xyrwList: [],
+ rwname:'',
+ rwempty: 0,
+ batchno: '',
+ nationId: '',
+ list:[],
+ loadingHidden: true,
+ flag: false,
+ openid: ''
+ },
+
+ isValidID:function (id) {
+ if (!/^\d{17}(\d|X)$/.test(id)) return false; // 检查格式是否正确
+
+ // 计算第18位校验码
+ const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
+ const checkCode = '10X98765432';
+ let sum = 0;
+ for (let i = 0; i < id.length - 1; i++) {
+ sum += parseInt(id[i], 10) * weights[i];
+ }
+ sum = sum % 11;
+
+ // 验证第18位校验码是否正确
+ return checkCode[sum] === id[17].toUpperCase();
+ },
+
+ btnAdd: function(){
+ if(this.isValidID(this.data.nationId) == false){
+ wx.showToast({
+ title: '身份证不合法!',
+ icon:'success',
+ duration: 1000
+ })
+ this.setData({ nationId: '', });
+ return;
+ }
+ //根据身份证号和批次号查询学生信息
+ var that = this;
+ util.request(api.kfstudentByInit, {
+ nationid: that.data.nationId,
+ batchno: this.data.batchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log(res.data);
+ if(res.data == null){
+ wx.showToast({
+ title: '无此康复人员',
+ icon:'error'
+ })
+ }else{
+ that.setData({
+ stulist: res.data,
+ isShow: true
+ });
+ }
+ }
+ });
+ },
+
+ onCancelStudent: function(){
+ },
+
+ onConfirmStudent: function(){
+ let that = this;
+ let cardNum = this.data.stulist.nationId;
+ // let type = this.data.type
+ let hzxm =this.data.stulist.name;
+ let sex = this.getSexFromIdCard(this.data.stulist.nationId)
+ let age = this.calculateAge(this.data.stulist.nationId)
+ let userid = this.data.stulist.id;
+ // let classid = this.data.xytjinfo.classid;
+ let classname = this.data.stulist.classname;
+ let schoolname = this.data.stulist.schoolname;
+ let sqName = this.data.stulist.sqName;
+ let cardtype = "";
+
+ console.log(hzxm)
+ console.log(cardNum)
+ console.log(sex)
+ console.log(age)
+ console.log(userid)
+
+ //家长确认学生信息,进行建档和关联就诊人操作
+ util.requestPost(api.kfcreatestudent, {
+ openid: app.globalData.openId,
+ name: hzxm,
+ deptId: userid,
+ sex: sex,
+ age: age,
+ className: classname,
+ schoolName: schoolname,
+ sqName: sqName,
+ nationId: cardNum
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("createstudent res:");
+ console.log(res);
+ console.log("createstudent resdata:");
+ console.log(res.data);
+ cardtype = res.data;
+
+ // if(type == 0)
+ // {
+ // // app.globalData.gdefaultflag = type;
+ // app.globalData.gname = hzxm;
+ // app.globalData.gsex = sex;
+ // app.globalData.gage = age;
+ // // app.globalData.gdeptId = classid;
+ // app.globalData.gclassName = classname;
+ // app.globalData.gschoolName = schoolname;
+ // app.globalData.gnationId = cardNum;
+ // }
+
+ //自动建档并关联到父openid
+ that.linkUser(hzxm, cardNum, cardtype);
+
+ wx.showToast({
+ title: '添加成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+
+ }
+ else{
+ wx.showToast({
+ title: res.msg,
+ icon:'error'
+ })
+ }
+ });
+ },
+
+ linkUser:function(gname, xPatid, cardtype){
+ //第二步 关联到父openid
+ console.log(xPatid, 'usrPatid');
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/patientBindWXUser?cardno&cardtype&openid&relate&type&hzxm',
+ method:"GET",
+ data:{
+ cardno: xPatid,
+ cardtype: cardtype,
+ relate: '1', //都是子女
+ type: '1', //不当做默认就诊人
+ openid: app.globalData.openId,
+ hzxm: gname
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '关联就诊人成功',
+ icon:'success'
+ })
+ return true;
+ }else{
+ wx.showToast({
+ title: "关联就诊人失败",
+ icon:'error'
+ })
+ return false;
+ }
+ }
+ })
+ },
+ //获取下园任务列表
+ getXyrwList: function() {
+ var that = this;
+ util.request(api.kfxyrwinfo, {
+
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("xyrwinfo resdata:");
+ console.log(res.data);
+ if(res.data.length == 0){
+ that.setData({
+ rwempty: 0
+ });
+ app.globalData.hasXyrw = false;
+ }else{
+ that.setData({
+ rwempty: 1,
+ xyrwList: res.data,
+ rwname: res.data[0].batchName,
+ batchno: res.data[0].batchno
+ });
+ app.globalData.hasXyrw = true;
+ that.getPerList(res.data[0].batchno);
+ }
+ }
+ });
+ },
+
+//取列表
+getPerList: function(resbatchno){
+ let that = this;
+ util.request(api.kfstudentByparent, {
+ openid: app.globalData.openId,
+ batchno: resbatchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("list res:");
+ console.log(res);
+ console.log("list resdata:");
+ console.log(res.data);
+ that.setData({
+ list: res.data
+ });
+
+ console.log("list length", that.data.list.length);
+ if(that.data.list.length == 0 ){
+ that.setData({
+ loadingHidden: false,
+ flag: false
+ });
+ }else{
+ //有体检人,取出默认体检人
+ var filterNum = that.data.list.filter(function(person,index,arrs){
+ return person.defaultflag==0
+ });
+ console.log("fileter");
+ console.log(filterNum);
+
+ that.setData({
+ loadingHidden: true,
+ flag: true
+ });
+ }
+
+ that.setData({
+ loadingHidden: true
+ });
+ }
+ })
+},
+ naviToAdd(){
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/studentMsgDel/studentMsgDel?state='+state,
+ })
+ },
+ naviToDet(e){
+ return;
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let idCard = item.nationId
+ let trueName = item.name
+ let type = item.defaultflag
+ let sex = item.sex
+ let age = item.age
+ let classid = item.deptId
+ let classname = item.className
+ let schoolname = item.schoolName
+ let state = 1
+ var id = 0;
+ id = item.id
+
+ wx.navigateTo({
+ url: '/pages/studentMsgDel/studentMsgDel?state='+state+'&classid='+classid+'&classname='+classname+'&schoolname='+schoolname+'&idCard='+idCard+'&trueName='+trueName+'&type='+type +'&sex='+sex +'&age='+age +'&id='+id,
+ })
+ },
+ naviToXytj(){
+ wx.navigateTo({
+ url: '/pages/xytj/xytj',
+ })
+ },
+
+
+ onChange({ detail }) {
+ this.setData({ checked: detail });
+ },
+
+ onShareAppMessage: function() {
+ },
+
+ onPullDownRefresh() {
+ },
+
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ this.getXyrwList();
+
+ this.setData({
+ loadingHidden: false,
+ })
+ },
+ onReady: function() {
+ // 页面渲染完成
+ wx.setNavigationBarTitle({
+ title: "管理康复人员"
+ })
+
+ },
+ onShow: function() {
+ // 页面显示
+ this.getPerList()
+ this.setData({
+ loadingHidden: false,
+ })
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+ onUnload: function() {
+ // 页面关闭
+ },
+
+ // 从身份证号码中提取性别信息
+ getSexFromIdCard: function(idCard){
+ var org_gender = idCard.substring(16, 17);
+ // var sex = org_gender % 2 == 1 ? "男" : "女";
+ var sex = org_gender % 2 == 1 ? 1 : 2;
+
+ return sex; // 这里假设身份证号码长度为18位并按照标准格式存放
+ },
+
+ // 从身份证号码中提取生日信息(格式为YYYYMMDD)
+ getBirthdayFromIdCard: function(idCard){
+ return idCard.substring(6, 14); // 这里假设身份证号码长度为18位并按照标准格式存放
+
+ },
+ // 将字符串类型的生日转换成Date对象
+ convertToDateObject: function(birthdayString){
+ const year = birthdayString.substr(0, 4);
+ const month = birthdayString.substr(4, 2);
+ const day = birthdayString.substr(6, 2);
+
+ return new Date(`${year}-${month}-${day}`);
+
+ },
+
+ // 计算年龄函数
+ calculateAge: function(idCard){
+ // 获取当前日期
+ const currentDate = new Date();
+
+ const birthdate = this.convertToDateObject(this.getBirthdayFromIdCard(idCard));
+ let age;
+
+ if (currentDate >= birthdate && !isNaN(currentDate)) {
+ age = Math.floor((currentDate - birthdate) / (365 * 24 * 60 * 60 * 1000));
+ } else {
+ console.error('无效的身份证号码或者未知错误');
+ }
+
+ return age || '';
+
+ }
+})
\ No newline at end of file
diff --git a/pages/kfdjMgr/kfdjMgr.json b/pages/kfdjMgr/kfdjMgr.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/kfdjMgr/kfdjMgr.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/kfdjMgr/kfdjMgr.wxml b/pages/kfdjMgr/kfdjMgr.wxml
new file mode 100644
index 0000000..cf8ee34
--- /dev/null
+++ b/pages/kfdjMgr/kfdjMgr.wxml
@@ -0,0 +1,139 @@
+
+
+
+
+ 当前批次
+
+ {{ rwname }}
+ 当前无任务
+
+
+
+
+ 加载中...
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 默认体检人
+
+
+
+
+ {{item.nationId}}
+
+
+
+ 暂无康复人员信息,请将康复人员的身份证号输入下方,再次确认康复人员的身份信息!
+
+ 身份证号:
+
+
+
+
+ 添加康复人员
+
+
+
+
+
+ 住址:
+
+ {{ stulist.schoolName }}
+
+
+
+
+
+ 姓名:
+
+ {{ stulist.name }}
+
+
+
+ 身份证:
+
+ {{ stulist.nationId }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/kfdjMgr/kfdjMgr.wxss b/pages/kfdjMgr/kfdjMgr.wxss
new file mode 100644
index 0000000..812662c
--- /dev/null
+++ b/pages/kfdjMgr/kfdjMgr.wxss
@@ -0,0 +1,959 @@
+/* pages/userMgr/userMgr.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ }
+ .content{
+ width: 90%;
+ margin: 0 auto;
+ }
+ .mobileItem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+ }
+ .left{
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #6306f8; */
+ }
+ .inputf{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #0af1a4; */
+ }
+ .input{
+ flex: 1;
+ font-size: 30rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10c0c; */
+ margin-left: 30rpx;
+ }
+ .confirmItem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #0e0d0d;
+ }
+ .confirmLeft{
+ height: 100%;
+ width: 200rpx;
+ font-size: 30rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ align-items: left;
+ /* border: 1rpx solid #6306f8; */
+ }
+
+ .tips{
+ display: flex;
+ justify-content: center; /* 水平居中 */
+ align-items: center; /* 垂直居中 */
+ height: 300rpx; /* 容器高度,根据需要设置 */
+ font-size: 40rpx;
+ }
+ .studentitem{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+ }
+ .zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+ }
+ .up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+ .name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+ }
+ .msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+ .t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ /* color: rgba(45,135,255);
+ background: rgba(226,237,254); */
+ }
+ .mr{
+ font-size: 30rpx;
+ color: #666;
+ }
+ .down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ }
+ .icon{
+ height: 50rpx;
+ display: flex;
+ align-items: center;
+ }
+ .mr{
+ font-size: 33rpx;
+ color: #333;
+ margin-right: 15rpx;
+ }
+ .sw{
+ margin-top: 5rpx;
+ }
+ .btn{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+ }
+
+ .popsearch{
+ margin-right: 15rpx;
+ }
+ .pickempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 80rpx;
+ }
+ .btnview{
+ justify-content: center;
+ display: flex;
+ margin-top: 80rpx;
+
+ }
+ .btnClass {
+ background: #4bc107 !important;
+ color: #fff !important;
+ }
+
+ .banner{
+ margin-bottom: 30rpx;
+ }
+ .slide-image{
+ width: 100%;
+ height: 100%;
+ }
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 20rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ /* border: 1rpx solid #0af1a4; */
+ }
+ .rwempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+ .Stulist{
+ height: 600rpx;
+ width: 500rpx;
+ margin-left: 50rpx;
+ margin-top: 30rpx;
+ /* line-height: 120rpx; */
+ /* border: 20rpx solid #030303; */
+ }
+
+ .itemStu{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+ }
+ .leftStu{
+ width: 30%;
+ font-size: 30rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+ }
+ .rightStu{
+ width: 66%;
+ height: 100%;
+ font-size: 30rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+ }
+ .wrapStu{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ }
+ .my-input-class {
+ border-radius: 8px; /* 增加圆角边框 */
+ /* border: 1px solid rgb(248, 21, 21); */
+
+ font-size: 35rpx;
+ }
+
+ .banner image {
+ width: 100%;
+ height: 417rpx;
+ }
+
+ .banner video {
+ height: 100%;
+ width: 100%;
+ }
+
+ .m-menu {
+ background: #fff;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ padding-bottom: 0rpx;
+ padding-top: 25rpx;
+ }
+
+ .m-menu .item {
+ width: 150rpx;
+ height: 126rpx;
+ }
+
+ .m-menu image {
+ display: block;
+ width: 58rpx;
+ height: 58rpx;
+ margin: 0 auto;
+ margin-bottom: 12rpx;
+ }
+
+ .m-menu text {
+ display: block;
+ font-size: 24rpx;
+ text-align: center;
+ margin: 0 auto;
+ line-height: 1;
+ color: #333;
+ }
+
+ .a-section {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ color: #333;
+ margin-top: 20rpx;
+ }
+
+ .a-section .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ }
+
+ .a-section .h .txt {
+ padding-right: 30rpx;
+ background-size: 16.656rpx 27rpx;
+ display: inline-block;
+ height: 36rpx;
+ font-size: 33rpx;
+ line-height: 36rpx;
+ }
+
+ .loc_light_icon {
+ color: #000;
+ font-size: 10px;
+ line-height: 30px;
+ text-align: center;
+ margin-top: 10px;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .loc_light {
+ color: #000;
+ font-size: 10px;
+ line-height: 10px;
+ text-align: left;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .dark,
+ .light {
+ color: #000;
+ font-size: 13px;
+ line-height: 18px;
+ text-align: left;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ }
+
+ .dark {
+ background-color: #39a9ed;
+ }
+
+ .light {
+ background-color: #fff;
+ }
+
+
+ .a-location .b{
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .wrap {
+ position: relative;
+ }
+
+ .a-brand .img {
+ position: absolute;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt {
+ position: absolute;
+ z-index: 2;
+ padding: 27rpx 31rpx;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt .brand {
+ display: block;
+ font-size: 33rpx;
+ height: 43rpx;
+ color: #fff;
+ }
+
+ .a-brand .mt .price, .a-brand .mt .unit {
+ font-size: 25rpx;
+ color: #fff;
+ }
+
+ .a-brand .item-1 {
+ float: left;
+ width: 375rpx;
+ height: 252rpx;
+ overflow: hidden;
+ border-top: 1rpx solid #fff;
+ margin-left: 1rpx;
+ }
+
+ .a-brand .item-1:nth-child(2n+1) {
+ margin-left: 0;
+ width: 374rpx;
+ }
+
+ .a-brand .item-1 .img {
+ width: 375rpx;
+ height: 253rpx;
+ }
+
+ .a-coupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-coupon .b .item {
+ position: relative;
+ height: 200rpx;
+ width: 700rpx;
+ background: linear-gradient(to right, #cfa568, #e3bf79);
+ margin-bottom: 10rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ padding-top: 30rpx;
+ }
+
+ .a-coupon .b .tag {
+ height: 32rpx;
+ background: #a48143;
+ padding-left: 16rpx;
+ padding-right: 16rpx;
+ position: absolute;
+ left: 20rpx;
+ color: #fff;
+ top: 20rpx;
+ font-size: 20rpx;
+ text-align: center;
+ line-height: 32rpx;
+ }
+
+ .a-coupon .b .content {
+ margin-top: 24rpx;
+ margin-left: 40rpx;
+ display: flex;
+ margin-right: 40rpx;
+ flex-direction: row;
+ }
+
+ .a-coupon .b .content .left {
+ flex: 1;
+ }
+
+ .a-coupon .b .discount {
+ font-size: 50rpx;
+ color: #b4282d;
+ }
+
+ .a-coupon .b .min {
+ color: #fff;
+ }
+
+ .a-coupon .b .content .right {
+ width: 400rpx;
+ }
+
+ .a-coupon .b .name {
+ font-size: 44rpx;
+ color: #fff;
+ margin-bottom: 14rpx;
+ }
+
+ .a-coupon .b .desc {
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .a-coupon .b .time {
+ font-size: 24rpx;
+ color: #fff;
+ line-height: 30rpx;
+ }
+
+ .a-groupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-groupon .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 244rpx;
+ width: 710rpx;
+ }
+
+ .a-groupon .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 220rpx;
+ height: 220rpx;
+ }
+
+ .a-groupon .b .right {
+ float: left;
+ height: 244rpx;
+ width: 476rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-groupon .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 244rpx;
+ width: 476rpx;
+ }
+
+ .a-groupon .b .name {
+ float: left;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-groupon .b .desc {
+ width: 476rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-groupon .b .price {
+ width: 476rpx;
+ display: flex;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-groupon .b .counterPrice {
+ text-decoration: line-through;
+ font-size: 28rpx;
+ color: #999;
+ }
+
+ .a-groupon .b .retailPrice {
+ margin-left: 30rpx;
+ font-size: 28rpx;
+ color: #a78845;
+ }
+
+ .a-new .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ padding: 0 31rpx 45rpx 31rpx;
+ }
+
+ .a-new .b .item {
+ float: left;
+ width: 302rpx;
+ margin-top: 10rpx;
+ margin-left: 21rpx;
+ margin-right: 21rpx;
+ }
+
+ .a-new .b .item-b {
+ margin-left: 42rpx;
+ }
+
+ .a-new .b .img {
+ width: 302rpx;
+ height: 302rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-new .b .name {
+ text-align: center;
+ display: block;
+ width: 302rpx;
+ height: 35rpx;
+ margin-bottom: 14rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .a-new .b .price {
+ display: block;
+ text-align: center;
+ line-height: 30rpx;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .a-popular {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-popular .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 264rpx;
+ width: 710rpx;
+ }
+
+ .a-popular .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 240rpx;
+ height: 240rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-popular .b .right {
+ float: left;
+ height: 264rpx;
+ width: 456rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-popular .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 264rpx;
+ width: 456rpx;
+ }
+
+ .a-popular .b .name {
+ width: 456rpx;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-popular .b .desc {
+ width: 456rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-popular .b .price {
+ width: 456rpx;
+ display: block;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-topic .b {
+ height: 533rpx;
+ width: 750rpx;
+ padding: 0 0 48rpx 0;
+ }
+
+ .a-topic .b .list {
+ height: 533rpx;
+ width: 750rpx;
+ white-space: nowrap;
+ }
+
+ .a-topic .b .item {
+ display: inline-block;
+ height: 533rpx;
+ width: 680.5rpx;
+ margin-left: 30rpx;
+ overflow: hidden;
+ }
+
+ .a-topic .b .item:last-child {
+ margin-right: 30rpx;
+ }
+
+ .a-topic .b .img {
+ height: 387.5rpx;
+ width: 680.5rpx;
+ margin-bottom: 30rpx;
+ }
+
+ .a-topic .b .np {
+ height: 35rpx;
+ margin-bottom: 13.5rpx;
+ color: #333;
+ font-size: 30rpx;
+ }
+
+ .a-topic .b .np .price {
+ margin-left: 20.8rpx;
+ color: #ab956d;
+ }
+
+ .a-topic .b .desc {
+ display: block;
+ height: 30rpx;
+ color: #999;
+ font-size: 24rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .good-grid {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ font-size: 33rpx;
+ color: #333;
+ }
+
+ .good-grid .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .b .item {
+ float: left;
+ background: #fff;
+ width: 365rpx;
+ margin-bottom: 6.25rpx;
+ height: 452rpx;
+ overflow: hidden;
+ text-align: center;
+ }
+
+ .good-grid .b .item .a {
+ height: 452rpx;
+ width: 100%;
+ }
+
+ .good-grid .b .item-b {
+ margin-left: 6.25rpx;
+ }
+
+ .good-grid .item .img {
+ margin-top: 20rpx;
+ width: 302rpx;
+ height: 302rpx;
+ }
+
+ .good-grid .item .name {
+ display: block;
+ width: 365.625rpx;
+ padding: 0 20rpx;
+ overflow: hidden;
+ height: 35rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .good-grid .item .price {
+ display: block;
+ width: 365.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .good-grid .t {
+ height: 100rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .search {
+ height: 88rpx;
+ width: 100%;
+ padding: 0 30rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ }
+
+ .search .van-icon-search {
+ line-height: 59rpx;
+ }
+
+ .search .input {
+ width: 690rpx;
+ height: 56rpx;
+ background: #ededed;
+ border-radius: 8rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .search .txt {
+ height: 42rpx;
+ line-height: 42rpx;
+ color: #666;
+ padding-left: 10rpx;
+ font-size: 30rpx;
+ }
+
+ .bottom-btn {
+ position: fixed;
+ float: middle;
+ left: 0;
+ bottom: 0;
+ z-index: 10;
+ width: 100%;
+ height: 100rpx;
+ display: flex;
+ background: #fff;
+ margin-bottom: 50rpx;
+ margin-right: 100rpx;
+ }
+ .bottom-btn .c {
+ float: middle;
+ background: #7232dd;
+ height: 80rpx;
+ line-height: 80rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 30px 30px 30px 30px;
+ margin-right: 50rpx;
+ margin-left: 50rpx;
+ }
+
+ .bottom-btn .l {
+ float: left;
+ height: 100rpx;
+ width: 162rpx;
+ border: 1px solid #f4f4f4;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .bottom-btn .l.l-collect {
+ border-right: none;
+ border-left: none;
+ text-align: center;
+ width: 90rpx;
+ }
+
+ .bottom-btn .l.l-collect .icon {
+ position: absolute;
+ top: 28rpx;
+ left: 20rpx;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .l.l-kefu {
+ position: relative;
+ height: 54rpx;
+ width: 63rpx;
+ }
+
+ .bottom-btn .l.l-cart .box {
+ position: relative;
+ height: 60rpx;
+ width: 60rpx;
+
+ }
+
+ .bottom-btn .l.l-cart .cart-count {
+ height: 28rpx;
+ width: 28rpx;
+ z-index: 10;
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: #7232dd;
+ text-align: center;
+ font-size: 18rpx;
+ color: #fff;
+ line-height: 28rpx;
+ border-radius: 50%;
+ }
+
+ .bottom-btn .l.l-cart .icon {
+ position: absolute;
+ top: 10rpx;
+ left: 0;
+ font-size: 44rpx;
+ }
+
+
+
+ .bottom-btn .r {
+ border: 1px solid #CCB5F2;
+ background: #CCB5F2;
+ float: left;
+ height: 100rpx;
+ line-height: 96rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 15px 0px 0px 15px;
+
+ }
+
+
\ No newline at end of file
diff --git a/pages/localNavigation/localNavigation.js b/pages/localNavigation/localNavigation.js
new file mode 100644
index 0000000..a01bd07
--- /dev/null
+++ b/pages/localNavigation/localNavigation.js
@@ -0,0 +1,96 @@
+// pages/localNavigation/localNavigation.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list:[],
+ imgalist:[
+ {id:0,src:'https://fy.btlsoln.com:8443/showFile/ueditor/lcsy.jpg'}
+ ],
+ src:['https://fy.btlsoln.com:8443/showFile/ueditor/lcsy.jpg']
+ },
+ previewImg(e){
+ console.log(e);
+ var current=e.target.dataset.src;
+ wx.previewImage({
+ current: '', // 当前显示图片的http链接
+ urls: this.data.src // 需要预览的图片http链接列表
+ })
+ },
+ getMsg(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospital',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ this.setData({
+ list:res.data.floorList
+ })
+ console.log(res,"医院导航")
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.getMsg()
+ },
+
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '楼层索引'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/localNavigation/localNavigation.json b/pages/localNavigation/localNavigation.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/localNavigation/localNavigation.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/localNavigation/localNavigation.wxml b/pages/localNavigation/localNavigation.wxml
new file mode 100644
index 0000000..c68bdbd
--- /dev/null
+++ b/pages/localNavigation/localNavigation.wxml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+ {{item.FLOOR_NAME}}
+ {{item.FLOOR_ABOUT}}
+
+
+
\ No newline at end of file
diff --git a/pages/localNavigation/localNavigation.wxss b/pages/localNavigation/localNavigation.wxss
new file mode 100644
index 0000000..884b6a8
--- /dev/null
+++ b/pages/localNavigation/localNavigation.wxss
@@ -0,0 +1,35 @@
+/* pages/localNavigation/localNavigation.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.img{
+ height: 400rpx;
+ width: 100%;
+}
+.content{
+ width: 90%;
+ padding-left: 30rpx;
+ margin: 0 auto;
+}
+.item{
+ /* height: 140rpx; */
+ width: 100%;
+ padding: 0 25rpx;
+ box-sizing: border-box;
+ border-bottom: 2rpx solid #e2dcdc;
+}
+.num{
+ height: 70rpx;
+ line-height: 70rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: rgba(75,135,248);
+}
+.msg{
+ /* height: 70rpx; */
+ line-height: 60rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #666;
+}
\ No newline at end of file
diff --git a/pages/logs/logs.js b/pages/logs/logs.js
new file mode 100644
index 0000000..6da68c8
--- /dev/null
+++ b/pages/logs/logs.js
@@ -0,0 +1,24 @@
+// logs.js
+const util = require('../../utils/util.js')
+
+Page({
+ data: {
+ logs: []
+ },
+ onLoad() {
+ this.setData({
+ logs: (wx.getStorageSync('logs') || []).map(log => {
+ return {
+ date: util.formatTime(new Date(log)),
+ timeStamp: log
+ }
+ })
+ })
+ },
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+})
diff --git a/pages/logs/logs.json b/pages/logs/logs.json
new file mode 100644
index 0000000..3ee76c1
--- /dev/null
+++ b/pages/logs/logs.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "查看启动日志",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/logs/logs.wxml b/pages/logs/logs.wxml
new file mode 100644
index 0000000..0b6b645
--- /dev/null
+++ b/pages/logs/logs.wxml
@@ -0,0 +1,6 @@
+
+
+
+ {{index + 1}}. {{log.date}}
+
+
diff --git a/pages/logs/logs.wxss b/pages/logs/logs.wxss
new file mode 100644
index 0000000..94d4b88
--- /dev/null
+++ b/pages/logs/logs.wxss
@@ -0,0 +1,8 @@
+.log-list {
+ display: flex;
+ flex-direction: column;
+ padding: 40rpx;
+}
+.log-item {
+ margin: 10rpx;
+}
diff --git a/pages/medicalGuide/medicalGuide.js b/pages/medicalGuide/medicalGuide.js
new file mode 100644
index 0000000..913300f
--- /dev/null
+++ b/pages/medicalGuide/medicalGuide.js
@@ -0,0 +1,92 @@
+// pages/medicalGuide/medicalGuide.js
+const app = getApp()
+Page({
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ menuList:[]
+ },
+ getList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findMedicalGuide',
+ // url:'http://sayetest.f3322.org:5000/findMedicalGuide',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"就医指南")
+ this.setData({
+ menuList:res.data
+ })
+ }
+ })
+ },
+ naviTo(e){
+ console.log(e.currentTarget.dataset.item.MEDICAL_GUIDE_ID)
+ let id = e.currentTarget.dataset.item.MEDICAL_GUIDE_ID
+ let state = 1
+ wx.navigateTo({
+ url: '/pages/message/message?id='+id+'&state='+state,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.getList()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '就医指南'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/medicalGuide/medicalGuide.json b/pages/medicalGuide/medicalGuide.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/medicalGuide/medicalGuide.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/medicalGuide/medicalGuide.wxml b/pages/medicalGuide/medicalGuide.wxml
new file mode 100644
index 0000000..3291d73
--- /dev/null
+++ b/pages/medicalGuide/medicalGuide.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+ {{item.TYPE_NAME}}
+ {{item2.NAME}}
+
+
+
diff --git a/pages/medicalGuide/medicalGuide.wxss b/pages/medicalGuide/medicalGuide.wxss
new file mode 100644
index 0000000..c7169c5
--- /dev/null
+++ b/pages/medicalGuide/medicalGuide.wxss
@@ -0,0 +1,30 @@
+/* pages/medicalGuide/medicalGuide.wxss *//* pages/my.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.wrap{
+ width: 100%;
+}
+.title{
+ height: 80rpx;
+ width: 100%;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #333;
+ font-weight: bold;
+ border-bottom: 1rpx solid #e2e0e0;
+}
+.item{
+ height: 80rpx;
+ width: 100%;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #333;
+ padding-left: 50rpx;
+ border-bottom: 1rpx solid #e2e0e0;
+}
\ No newline at end of file
diff --git a/pages/message/message.js b/pages/message/message.js
new file mode 100644
index 0000000..9f06a59
--- /dev/null
+++ b/pages/message/message.js
@@ -0,0 +1,151 @@
+// pages/message/message.js
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ content:'',
+ id:'',
+ msgList:'',
+ state:'',
+ ImgMsg:'',
+ url:'',
+ },
+ getList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findMedicalGuideById?medical_guide_id',
+ // url:'http://sayetest.f3322.org:5000/findMedicalGuideById?medical_guide_id',
+ method:"GET",
+ data:{
+ medical_guide_id:this.data.id
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ let data = res.data
+ data.map((item,index) => {
+ console.log(item,'item')
+ let str = item.CONTENT
+ var html = str.replaceAll("/showFile",'https://fy.btlsoln.com:8443/showFile')
+ var html2 = html.replaceAll("
{
+ // console.log(res.data,"图片说明")
+ let data = res.data
+ data.map((item,index) => {
+ let str = item.CONTENT
+
+ var html = str.replaceAll("/showFile",'https://fy.btlsoln.com:8443/showFile')
+ // var html2 = html.replaceAll("
+
+
+ {{content}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/message/message.wxss b/pages/message/message.wxss
new file mode 100644
index 0000000..e719662
--- /dev/null
+++ b/pages/message/message.wxss
@@ -0,0 +1,42 @@
+/* pages/notification/notification.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+.wrap{
+ height: 150rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ color: #333;
+ font-size: 33rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.img{
+ height: 350rpx;
+ width: 100%;
+ border-radius: 15rpx;
+}
+.imgWrap{
+ height: 350rpx;
+ width: 100%;
+ margin: 20rpx auto;
+ border-radius: 15rpx;
+}
+.text{
+ width: 100%;
+ margin-top: 20rpx;
+ color: #555;
+ font-size: 35rpx;
+ line-height: 180%
+}
\ No newline at end of file
diff --git a/pages/money/money.js b/pages/money/money.js
new file mode 100644
index 0000000..c6ff703
--- /dev/null
+++ b/pages/money/money.js
@@ -0,0 +1,331 @@
+// pages/record/record.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list:[],
+ moneyList:[
+ {id:0,num:"50"},
+ {id:1,num:"100"},
+ {id:2,num:"200"},
+ {id:3,num:"500"},
+ {id:4,num:"1000"},
+ ],
+ show:false,
+ name:'',
+ painId:'',
+ relate:'',
+ card:'',
+ cardNum:'',
+ cardType:'',
+ curId:'6',
+ money1:'',
+ money2:'',
+ ye:'',
+ money:''
+ },
+ confirmCz(){
+ let money = this.data.money
+ if(isNaN(parseFloat(money))){
+ wx.showToast(
+ {
+ title: '请输入正确金额',
+ icon: 'error'
+ }
+ );
+ }else if(money == ''){
+ wx.showToast(
+ {
+ title: '请选择充值金额',
+ icon: 'error'
+ }
+ );
+ }else if(money < 0.01){
+ wx.showToast({
+ title: '金额不低于0.01',
+ })
+ }else{
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPayRequest?openid&totalAmount&patid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId,
+ totalAmount:money,
+ patid:this.data.painId,
+ cardno:this.data.cardNum,
+ cardtype:this.data.cardType
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == "BAD_REQUEST") {
+ wx.showToast(
+ {
+ title: '请输入正确金额',
+ icon: 'error'
+ }
+ );
+ }else if(res.data.error){
+ wx.showToast({
+ title: '检查输入金额',
+ icon:"error"
+ })
+ }else if(res.data.errCode == "LossReported"){
+ wx.showToast({
+ title: res.data.errMsg,
+ icon:"none"
+ })
+ }else{
+ console.log(res,"获取银联商务支付信息")
+ let noncestr = res.data.miniPayRequest.nonceStr
+ let timeStamp = res.data.miniPayRequest.timeStamp
+ let package1 = res.data.miniPayRequest.package
+ let sign = res.data.miniPayRequest.paySign
+ let signType = res.data.miniPayRequest.signType
+ let merOrderId = res.data.merOrderId
+ wx.requestPayment({
+ timeStamp: timeStamp+'',
+ nonceStr: noncestr,
+ package:package1,
+ signType:signType,
+ paySign: sign,
+ success (res) {
+ console.log(res,"支付")
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/addHisRecharge?merOrderId',
+ method:"GET",
+ data:{
+ merOrderId:merOrderId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"支付回写")
+ }
+ })
+ },
+ fail (res) {
+ console.log(res,"fail")
+ },
+ complete (res) {
+ console.log(res,'支付完成');
+ },
+ })
+ }
+ },
+ })
+ }
+
+ },
+
+ naviToCz(){
+ wx.navigateTo({
+ url: '/pages/record/record?id=3',
+ })
+ },
+ sel(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ curId:item.id,
+ money:item.num
+ })
+ },
+ sel2(){
+ this.setData({
+ curId:5
+ })
+ },
+ getPerMsg(cardno,cardtype,hzxm){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getPatient?cardno&cardtype&hzxm',
+ method:"GET",
+ data:{
+ cardno:cardno,
+ cardtype:cardtype,
+ hzxm:hzxm
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res.data,"患者详细信息")
+ this.setData({
+ ye:res.data.list[0].zhye
+ })
+ }
+ })
+ },
+ getPerList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"患者")
+ if(res.data.length > 0){
+ let data = res.data
+ data.map((item,index) =>{
+ if(item.TYPE == 0){
+ let cardno = item.MEDICAL_CARD
+ let cardtype = item.CARD_TYPE
+ this.getPerMsg(cardno,cardtype,item.TRUE_NAME)
+ this.setData({
+ name:item.TRUE_NAME,
+ painId:item.PATIENT_ID,
+ relate:item.RELATE,
+ cardNum:item.MEDICAL_CARD,
+ cardType:item.CARD_TYPE
+ })
+ }
+ })
+ this.setData({
+ list:data
+ })
+ }else{
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ }else{
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+
+ showPop(){
+ this.setData({ show: true });
+ },
+ onClose() {
+ this.setData({ show: false });
+ },
+ confirm(e){
+ console.log(e.currentTarget.dataset.item)
+ let user = e.currentTarget.dataset.item
+ let cardNum = user.MEDICAL_CARD
+ let cardType = user.CARD_TYPE
+ this.setData({
+ name:user.TRUE_NAME,
+ painId:user.PATIENT_ID,
+ relate:user.RELATE,
+ card:user.ID_CARD,
+ cardNum:user.MEDICAL_CARD,
+ cardType:user.CARD_TYPE,
+ show:false
+ });
+ this.getPerMsg(cardNum,cardType,user.TRUE_NAME)
+ },
+ money:function(e){
+ let price = e.detail.value
+ // if(isNaN(parseFloat(price))){
+ // wx.showToast(
+ // {
+ // title: '请输入正确金额',
+ // icon: 'error'
+ // }
+ // );
+ // }else{
+ this.setData({
+ money:price
+ })
+ // }
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ if(app.globalData.openId == ""||app.globalData.openId==null){
+ common.checkGlobalOpenId().then(res=>{
+ console.log(res)
+ app.globalData.openId = res
+ this.getPerList()
+ },
+ err=>{
+ //初始化失败,弹框提示
+ })
+ }else{
+ this.getPerList()
+ }
+ this.setData({
+ name:app.globalData.name,
+ painId:app.globalData.painId,
+ type:app.globalData.relate,
+ card:app.globalData.sfId,
+ cardNum:app.globalData.cardNum
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: "门诊充值"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ // this.getPerList()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/money/money.json b/pages/money/money.json
new file mode 100644
index 0000000..31a5700
--- /dev/null
+++ b/pages/money/money.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/money/money.wxml b/pages/money/money.wxml
new file mode 100644
index 0000000..23c7b0b
--- /dev/null
+++ b/pages/money/money.wxml
@@ -0,0 +1,63 @@
+
+
+
+
+
+ {{name}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+
+
+
+ {{cardNum}}
+ 切换就诊人
+
+
+
+ 卡内余额
+ ¥{{ye}}
+
+ 自助退款功能正在开发中,退款请到收费窗口办理!
+ 在线充值(元)
+
+ {{item.num}}
+
+
+
+
+ 充值记录
+ 确认充值
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
diff --git a/pages/money/money.wxss b/pages/money/money.wxss
new file mode 100644
index 0000000..e8c8a44
--- /dev/null
+++ b/pages/money/money.wxss
@@ -0,0 +1,245 @@
+/* pages/record/record.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 30rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.mr{
+ font-size: 30rpx;
+ color: #666;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ margin-right: 50rpx;
+ border-radius: 50%;
+ background-color: rgba(0,110,255);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
+ background-size:100%;
+ background-repeat: no-repeat;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: none;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
+.jg{
+ height: 60rpx;
+ width: 100%;
+ line-height: 60rpx;
+ text-align: center;
+ font-size: 28rpx;
+ color: red;
+}
+.ye{
+ height: 120rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 20rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:30rpx;
+ box-sizing: border-box;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.c1{
+ font-size: 35rpx;
+ color: #666;
+}
+.c2{
+ font-size: 35rpx;
+ color: #333;
+}
+.title{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ line-height: 80rpx;
+ margin: 20rpx auto;
+}
+.itemWrap{
+ height: 200rpx;
+ width: 100%;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+}
+.item2{
+ height: 80rpx;
+ width: 30%;
+ background: rgba(242,242,242);
+ border-radius: 10rpx;
+ border: 1rpx solid #fff;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: #333;
+ font-size: 35rpx;
+}
+.active{
+ height: 80rpx;
+ width: 30%;
+ background: rgba(227,239,255);
+ border-radius: 10rpx;
+ border: 1rpx solid rgba(0,110,255);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: rgba(0,110,255);
+ font-size: 35rpx;
+}
+.sr{
+ border: 0;
+ text-align: center;
+}
+.placeholder{
+ color: #333;
+ font-size: 35rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.title2{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ line-height: 80rpx;
+ margin: 0 auto;
+ color: rgba(0,110,255);
+ text-align: right;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
\ No newline at end of file
diff --git a/pages/my/my.js b/pages/my/my.js
new file mode 100644
index 0000000..6e194ba
--- /dev/null
+++ b/pages/my/my.js
@@ -0,0 +1,250 @@
+// pages/my.js
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ hasPer: "",
+ htmlSnip: `
+
+
fsfsfsfs
+

+
+ `,
+ phone: '',
+ menuList: [{
+ id: 0,
+ name: '管理就诊人',
+ icon: "menu1"
+ },
+ {id:6,name:'管理体检人',icon:"menu1"},
+ {id:7,name:'管理康复人员',icon:"menu1"},
+ {
+ id: 1,
+ name: '预约就诊记录',
+ icon: "menu2"
+ },
+ {
+ id: 2,
+ name: '门诊缴费记录',
+ icon: "menu3"
+ },
+ {
+ id: 3,
+ name: '门诊充值记录',
+ icon: "menu4"
+ },
+ {
+ id: 4,
+ name: '历史就诊记录',
+ icon: "menu6"
+ },
+ {
+ id: 5,
+ name: '问题反馈',
+ icon: "menu5"
+ },
+ ],
+ num: ''
+ },
+ getPhoneNumber(e) {
+ console.log(e)
+ var that = this;
+ console.log(e.detail.errMsg == "getPhoneNumber:ok");
+ wx.request({
+ url: 'https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token',
+ method: "GEt",
+ data: {
+ access_token: access_token,
+ code: e.detail.iv
+ },
+ success: res => {
+ console.log(res.data, 123456789)
+ this.globalData.openId = res.data
+ }
+ })
+ },
+ getUserProfile(e) {
+ wx.getUserProfile({
+ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
+ success: (res) => {
+ console.log(res, "用户信息")
+ this.setData({
+ nickName: res.userInfo.nickName,
+ url: res.userInfo.avatarUrl
+ })
+ }
+ })
+ },
+ onTabItemTap: function (item) {
+ if (this.data.hasPer == true) {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ });
+ }
+ }
+ })
+ }
+ },
+ naviToMsg() {
+ wx.navigateTo({
+ url: '/pages/notification/notification',
+ })
+ },
+ naviTo(e) {
+ let id = e.currentTarget.dataset.item.id
+ if (id == 0) {
+ wx.navigateTo({
+ url: '/pages/userMgr/userMgr',
+ })
+ } else if (id == 1 || id == 2 || id == 3) {
+ wx.navigateTo({
+ url: '/pages/record/record?id=' + id,
+ })
+ } else if (id == 5) {
+ wx.navigateTo({
+ url: '/pages/feedBack/feedBack',
+ })
+ } else if (id == 4) {
+ wx.navigateTo({
+ url: '/pages/historicalvisitrecords/historicalvisitrecords',
+ })
+ }else if(id == 6){
+ wx.navigateTo({
+ url: '/pages/studentMgr/studentMgr',
+ })
+ }else if(id == 7){
+ wx.navigateTo({
+ url: '/pages/kfdjMgr/kfdjMgr',
+ })
+ }
+ },
+ getPhone() {
+ var tel = 18810399133;
+ tel = "" + tel;
+ var tel1 = tel.substr(0, 3) + "****" + tel.substr(7)
+ this.setData({
+ phone: tel1
+ })
+ },
+ getList() {
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findMessageNotice?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ this.setData({
+ num: res.data.length
+ })
+ if (res.data.length > 0) {
+ wx.showTabBarRedDot({
+ index: 1,
+ });
+ }else{
+ wx.hideTabBarRedDot({
+ index: 1,
+ })
+ }
+
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ if (wx.getUserProfile) {
+ this.setData({
+ isLogin: true
+ })
+ }
+ this.setData({
+ hasPer: app.globalData.hasPer
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ if(app.globalData.openId == ''){
+ wx.showModal({
+ title: '',
+ content: '未获取到用户信息,请关闭小程序重新打开!',
+ showCancel: false,
+ success: function(res) {
+ if (res.confirm) {
+ wx.switchTab({
+ url: '/pages/index/index',
+ });
+ }else{
+ wx.switchTab({
+ url: '/pages/index/index',
+ });
+ }
+ }
+ })
+ }
+ this.getList()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/my/my.json b/pages/my/my.json
new file mode 100644
index 0000000..691e84c
--- /dev/null
+++ b/pages/my/my.json
@@ -0,0 +1,10 @@
+{
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "个人中心",
+ "backgroundColor": "#fff",
+ "backgroundTextStyle": "light",
+ "usingComponents": {
+ "van-icon": "@vant/weapp/icon/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/my/my.wxml b/pages/my/my.wxml
new file mode 100644
index 0000000..87d099e
--- /dev/null
+++ b/pages/my/my.wxml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ >
+
+
+
diff --git a/pages/my/my.wxss b/pages/my/my.wxss
new file mode 100644
index 0000000..ca54949
--- /dev/null
+++ b/pages/my/my.wxss
@@ -0,0 +1,159 @@
+/* pages/my.wxss */
+.user {
+ height: 150rpx;
+ margin-bottom: 200rpx;
+ position: relative;
+ background: #fff;
+}
+
+.user-header {
+ height: 150px;
+ width: 100%;
+ display: flex;
+ background-color: rgba(52, 120, 247);
+ border-radius: 15rpx;
+}
+
+.user-header .user-header-cont {
+ width: 95%;
+ margin: 60rpx auto;
+ height: 200rpx;
+ display: flex;
+ align-items: center;
+}
+
+.user-header .user-header-cont .user-header-avatar {
+ display: block;
+ margin-left: 30rpx;
+ width: 130rpx;
+ height: 130rpx;
+ border-radius: 50%;
+ border: 5rpx solid #f8f8f8;
+ overflow: hidden;
+}
+
+.user-header .user-header-cont .user-header-msg {
+ display: block;
+ width: 350rpx;
+ height: 130rpx;
+ overflow: hidden;
+ margin-left: 20rpx;
+}
+
+.user-header .user-header-cont .user-header-icon {
+ width: 100rpx;
+ height: 130rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+}
+
+.user-header .user-header-cont .user-header-msg .user-header-text {
+ height: 135rpx;
+ width: 100%;
+ line-height: 135rpx;
+ font-size: 34rpx;
+ color: #fff;
+}
+
+.content {
+ position: relative;
+ top: 0rpx;
+ border-radius: 15rpx;
+ z-index: 999;
+ width: 95%;
+ margin: 0 auto;
+ height: 100%;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 20rpx;
+ box-sizing: border-box;
+ background: #fff;
+}
+
+.content :last-child {
+ border-bottom: none;
+}
+
+.item {
+ height: 120rpx;
+ width: 100%;
+ line-height: 120rpx;
+ border-bottom: 3rpx solid #f8f8f8;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.name {
+ height: 120rpx;
+ width: 350rpx;
+ font-size: 33rpx;
+ color: #666;
+}
+
+.icon2 {
+ height: 100rpx;
+ width: 100rpx;
+ background-color: rgba(230, 241, 255);
+ border-radius: 50%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.icon {
+ height: 120rpx;
+ width: 80rpx;
+ text-align: center;
+ color: #e2e2e2;
+ font-size: 35rpx;
+}
+
+.menu1 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAOlJREFUaEPtmMENgzAQBA0l0ANKb0kTaSL0huiBEiCvIEvBQuu9w7K1vBA6L/bMARZdqPzoKp9/0AJKG5QBGSAJqIVIgPTwpIFhWvZf+vocT+viGnomFwGpOWgB3uSvukAP8V0GUveRARkgCaiFSID0cBmgEZIB7RoYPvP7+Iy/Hsd5DCyuyQLZ93vYtn+IJ9fXxBy0mcsinzEI307f0ULAQuAWArKLlrb7FiqKFbi5DACwXEplwAUrECoDACyX0nYN6NeiccPgm7naf+4aA3SLa/chdkNmHCwDxkDhOBmAkRkPkAFjoHDcF4iaVjEOihJ9AAAAAElFTkSuQmCC);
+ background-size: 100%;
+}
+
+.menu2 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABBhJREFUaEPtmV1sFFU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6KC4mqrWQwzqD5PXTQNwHayW0WF6KAhkng6KkdVNBfAg/A9c7n2ULqqAVOkf79GiyumKU/NkNTAE8CiT8TM5+NEDM/AUsdMNkPuaOfsSEyOj5/qO+QKoJeaCysKX14PeDh193QLQGyafE1mFwvybldnLNjGcToKxHmD/gy2NMZxxgjHG+O9qkGwOXamSykDcqqP7f9Mnsa5jtdq1AOKWuVojqduulYFWBnRrx7fTLqFGnsDUyeCdk4Wd4EQe8jXoBKZe/yNPcLSPWev1qlH2LYBGRVK3nyWfgf8BTJq3TyTs0YkAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+
+.menu3 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABHlJREFUaEPtWU9oHFUY/31vVypGSjImaotCbXbcYsCKggUFjWILHixFrAiSg17SzDZRQdqTbXpV0JJ0J/Yinjx0V8Q/eBAkigoFD6LQaDOxTQs9aPdPbURoknmfvHVnHdfZmbebmXWFzmnhfe+93+/7/74lxPAZM85mSbg/hqMaR6wzzvw+ZV6OOpOiBKLWB+1zWQn3fQAjUbLtrBPwcdky90bt2RCBofxSxiUuAtipLmLgi6gLddYJGFVnVS3zsSj5jgn0z53fJtgtAvzAX9hBYHmskstOR10atm7kz06DxNFECRj5pTtBsgjQgwCvMegbpbUkCAzYzjwRLVcmMi8EEW/bAoMnF7ZI9wblNg8B9AcJGpNSTiZKIEQ5bRG4/R1naPUaimA8AuCqAMZKlvlRTUsRFqi5hu9r5WrNLhR1tjaBzW+eMdI3bioA/DjAFZY8Vj2Y/VRhirpEyXjAvGBvFaCJEFB5Hikugmg3iH4houfLB4Y/9xTa0wRue+P7vrW+mwoAngRwiVk8V80Nf+13h1YE+medUU9OCDmqsotnAXZxzFu7Mmk20m+sFsjMOJuqaRQYeArABWK5v5zLftucDVoR8LtNWOqsWGbDleMjMD2fHrj1jgIB+wj4WcJ9umrt+CEISE8SMOacAhjPAFhg4Neo4hSUhZQ2mcSj3t6aTEDF9gd0LBbQNf2/SIVU4q5mIb8WiOWXUdqvrZO4UrHM461k/zMCOg2VDsH/PQEdkv6C5zVzUTUmsBK32xHqgtORizWIdVtaHWC6MtcJBPmhrvbikOuaBVSfI1KYD3vEGLajXmqRX+ythE4QG7azH8ApAAVy5ZHyZPanZqQ9S6BFpT4tVtw9pcM7Vjwi/m40zAyxd6NhFjBs5zSAXbWehnEZhKsEDAO0XLEyd0X6S4RAojFwy4nFXSxIEQARvV6eyBxWv2+ecYbShBG/JhvJoBmwEAwp/1F//M/LRAkYtvMygLfqmAqcEq9Wx4cvtux/ei2IjROLuyHoMx/g3wh4bzXVd2RlfGupmYhqA3RcKrF2OqgSD9rOXgkcAvDw3+C4wkjvq1rbv9IBHCZjzDlHwZhOvBcayC8eIqKXAGz1ABFoqmxlZjeUhbpFQIEcPLm8Ra5fG/ce6yB61z9B68k6oHK7P9v0z/24TXD6fF3rxyuW+YpngZ4jUPf/DwGsgPkTJpQIlAWwp5ZapXyifDDbmBd1Eg/JptH65DgQWAyT6Ubt8E2nY3/QDNjn7hXk7pSMF+tThoJA6rWStf1sLGm0W0Hc6IfCJhGdFLKuEXjbuQeufBYpcapywFwIcqvmiXSrmOhaK9FJULa7J9EgbhdMJ/LXCQSlsk402eme2C2gPVrsFHHQvrjqQJyY2j1rQ92oumzAXvoA4P52L45LXllepVfDdr4DcB8zctWcaTefr/0nX1zA2jmnMbpRmwRGguqNFgHdl1U74HRk/X+ItJqS6xHIO3kiWDqXxi3D4NmqdfdUq3O1CKiHy/rqmmqbu/ql0tIpT2QvhV36J/pxe22jGqjQAAAAAElFTkSuQmCC);
+ background-size: 100%;
+}
+
+.menu4 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAa5JREFUaEPtWL1KA0EYnG/PB9BorxASH8BGsDlrO19Ay8CZzj5JLdhIrrYXbIRYqqViLZgEtLMxPy+Q/UICBi9Ed+/2NseF3Xa/ndmZ2WV/CDlvlPP5wwnIOkGXgEvA0IHIElq/6vhijU7AfGqIm/pwAu7AfNsLyte/wSMCCs33OkjUUmdPD3AIgYN+pfT2AxkVEHY4PS5LSCwb/WC37gRY8lcN6xJQe2S34r8ENsLOg112c3Ri+fTnJjaHXz7Cat2FpgdZDpo7BzINyZ0DmdoPwCXgEjB0QHsJsWxIKR6T0Akh/QUPoxtibo0kfc7u8h5qBPixOHQFyBEOh9VSIgHTp6mH6L1qjngy6YV1KjW6Aia7PdcJqIzIrF87gcxmqCCOIeAeLF+0dQhveynfMboCWIijQaXY0hYAoBB2PwDeiTMmdq22AEYwCEqhLsFW2N2T4Ffd+sR1ugISE9ge6ATYdliF7xJQOWS7f8UTaF8AdG7bRBN8krzfOys/z26082CbzfaxJKqakNgYS8xfwvMuvyvFyFmzWh9bNpyzjekSsO2wCt8loHLIdn/uExgDkSUhQDkkMnAAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+
+.menu5 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAx9JREFUaEPtWT1s01AQ/s5ECCRAtdsiwRSJOqgVSPx06wAVIwsMsMAAEmoVR8zARJlAjFR1miLUhQHRoRJipmWABQRTQfRR6FREUZxkgaHUhwwJcl27fnWdOKmSKXrv3r3vu3v37vyO0OI/anH8aBNI2oNSHugYFaeTAFq+rs+G7bshAc2cLzDTeSJ0hymqxzwzfhDxtGVkhoP0BxLQTMH1ABVVp2Xovlh9BzvHxF0m3Iy6WT3WEeNeMaff8ur2JaCZ80WAtHoAia6TLcvIdIYScAJW2YGZgI2mwPaH6CAkVpLSB+CCn6S9ikFvYK/zQBABv8UScCKJbAaDFAEGZkuGPhgJTcRFqilmCFhzfUf3ANt3rNzhERks6ujCUSXFl8Hcy8BJAHsBfAP4O5NilrI9T2T0aGOfRkDKbbds3QlI3l6PLEO/Fkai4QT8NgxMPsz3i7nMjY1INJSANi76YGMuzKrueSI6U8z2vAha01ACqimmCTjnBeOUAs5YQCny2jL0gaYgoJmiAmDfGjDVwE9Pft1V+bVyhUB5D9iyZehq4gT2PBDdO1NY9gCZswz9iHtMM8V7AMfcY6vgQxUj88WPRMOOUFCp7c2YmikeAlhz+9iEE+Ws7hBb92sYAZnA7ciL4wrjnVvWiY/dqUp6abj/Z1MTqJYFz6oJ7T9WZpilnJ5LPAY28kDX+EK/bdtvfGSmLEO/2DR5wA+Iai6cJdjPo4B31iQaA12FxQP26spbAAc9BEItX5NPlICaF5eI8dgvL8gEfeIe8K2LNlHRtgms+6SMYD0m5ZT7uBDbL2W/KRL3gOw5b+prdKskEr2F/h6B/OdJZk47/4lo0cr2XN0MqUQJtG+hpDNxy3ugI/8xrXDqlauUWLLp90A527soGwfxxgAgXcPIAgyT00zx1PvEGP1dCEBLPy3WrOU8MToZNcx6W5l3Mrj3SbGmT8oDjrA6JpaT6soEkXc+QUs5fb93Pqg/UABoaCuWjH8tT/i1mrZni6lmvX+PtTyUXLeGLWKa8Gst1TBu7zZr/Oc4fo1SHoh/2/g0tgnEZ8tomv4Aib6UT3oAmroAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+
+.menu6 {
+ height: 70rpx;
+ width: 70rpx;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABVRJREFUaEPtWV1oHFUU/s7dtKVQbXa2Imi7Tc3OlmKrgqIvESpCEdoolVZoHwRBEnc2PvTNqmAf1Ep9UNrOhAYUFKVgSwXbUt9aqIKCQn/Qkp2txtjiQ5OZxPqg0Z0jM7uTzM7OZGcms5pCF5aF2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IYJa3wf4LbNUfD3eUJ2xzg5X3iSm1xxcjLJZlrXgNaBW14B4vFGqyCfJzsCeizp3unUymzfKhfp6aMh+TeNnNf3srMrG2BlXLkmbjKTqO0A4FrbYW06jOU3fy4AtczjSSdzLTNoE3P7fwPPqpCLv947RQiCNC01aJLLDV7cRWyfdeEH38kCVYaFXyrQIeLMP8IihFAf9sQMJtFQhZSErCsGsqr9ChNnpEqaKhOo8flmFOiho+QnlDo9uZyFOzD0Pzn5gF/IG84u5ce63UbIcZtMsZfJXhlJ8PMy2rdLmF3U7KXAFSCvjhiKvnS8ZbQnYzi3ibgeErqxWHSDwES/YKBWPRKBOwifypiSv261SsDVgn/U9c/6SoRQfjDINIxNoVKJJ7HU3O4v5aFz5JatWdgmiXc3AHcjHDEV+Lgr4tos4KEj4KyZctwdnouPeV0x2jD9mKGvx31lmyhLzjobifW9r/PBuk3gRBzmm/ZLP3qQExEgS9TvWFPKTmZUCSTzlqnlRSw/gW7D1paDMySTA3XEWRMAL1lb1uoCtAG3wvei2T4XjYBon2Ed1vvIPcHpaKf4Ug2yoaWoE0gCTJMZtAkmylqbPvwQTc0+fNQVOAAAAAElFTkSuQmCC);
+ background-size: 100%;
+}
\ No newline at end of file
diff --git a/pages/navigation/navigation.js b/pages/navigation/navigation.js
new file mode 100644
index 0000000..2c1e82e
--- /dev/null
+++ b/pages/navigation/navigation.js
@@ -0,0 +1,103 @@
+// pages/Navigation/Navigation.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ name:'',
+ location:'',
+ bus:'',
+ phone:''
+ },
+ // 导航
+ navigationTo(e){
+ let id = e.currentTarget.dataset.id
+ if(id == 1){
+ wx.openLocation({
+ latitude: app.globalData.lat,
+ longitude: app.globalData.lon,
+ scale:12,
+ name:app.globalData.hosName,
+ address:app.globalData.hosLocation
+ })
+ }else{
+ let url=encodeURIComponent('https://his.ipalmap.com/navigation/dist/index.html#/search?appsId=10333')
+ wx.navigateTo({
+ url: '/pages/view/view?url='+ url,
+ });
+ // wx.navigateTo({
+ // url: '/pages/localNavigation/localNavigation',
+ // })
+ }
+ },
+ // 拨打电话
+ makePhone() {
+ wx.makePhoneCall({
+ phoneNumber: this.data.phone,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ name:app.globalData.hosName,
+ location:app.globalData.hosLocation,
+ bus:app.globalData.bus,
+ phone:app.globalData.hosPhone,
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '医院导航'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/navigation/navigation.json b/pages/navigation/navigation.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/navigation/navigation.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/navigation/navigation.wxml b/pages/navigation/navigation.wxml
new file mode 100644
index 0000000..5c8b203
--- /dev/null
+++ b/pages/navigation/navigation.wxml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+ {{name}}
+ {{location}}
+
+
+
+
+
+ 电话
+ {{phone}}
+
+
+
+
+
+ 公交
+ {{bus}}
+
+
+
+
+
+
+
+
+
+
+
+ 地图导航
+ >
+
+
+
+
+
+
+
+ 院内导航
+ >
+
+
+
+
\ No newline at end of file
diff --git a/pages/navigation/navigation.wxss b/pages/navigation/navigation.wxss
new file mode 100644
index 0000000..3cc95f4
--- /dev/null
+++ b/pages/navigation/navigation.wxss
@@ -0,0 +1,154 @@
+/* pages/Navigation/Navigation.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 450rpx;
+ width: 90%;
+ padding-left: 30rpx;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ box-sizing: border-box;
+}
+.item1{
+ height: 200rpx;
+ padding: 20rpx 0;
+ box-sizing: border-box;
+ border-bottom: 2rpx solid #eee9e9;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.img{
+ height: 140rpx;
+ width: 140rpx;
+ border-radius: 10rpx;
+ background-size: 100%;
+ background-image: url(data:image/webp;base64,UklGRqYzAABXRUJQVlA4IJozAADwEQGdASr0AfUBPpFEnUqlo6MhpnQJyLASCWNu++i+AzCQ8eMHqr/Q7nWP/Mn6D/D+mPYn7n/fPtv5dWyvNE8x/hfPL/qf2Q90f6I9gn9Q/1l/xfxp9HfmC/rX/g9Xv/mfuj7o/9l6g/+j/7vWw+hL5ePss/3X/welx1+vRX+h/4Xvg/xP+/6kD5/uVYD/m+uToE7J/mVqO+s/9R/VPcZhcOI/dTPP/I8//6z0GcW2eR8Mn2L6OZDPM4bdVedO1ISJH2N1V507RkObTCDeSfgdBhTMAGug1A7s/IMVxONb4LU1yiXPJHeWj58sl59AbS0QW+0pUIxMZv5AgN9gsbqrzp2pCRI+lT1Hb1ZlIMOHzujoOQUjzRGvHFveZdZPObKP45meAoHEiAMVLAVWlhpHblA/CjH10aNbpU84suQqDZaOabgBI+xuqvOnakPLhI82zQr1yJ2Ezht1V507UhIkfY3VXnTtSEiR9jdVedO1ISJH2N1V500C/UeOF8lmx5PnUpV07UhIkfY3VXnTtRydZjciZTPQTytfHr3KbQ0WAa7IEyS5X9qQkSPsbqrzp2l7SOboLdfZuY6kTb+mpaF4U5cAJiDQzMJ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V3q6BU1A4ogzFi80KmeqQSoxlJDEQtAiTyb2a7N65n6RSStIwfpYAwvR6BPXidXjj7/2Ah9NbvLJ1EeGe5lvSF6o91FMPii2lTjOolFyn9cM0pvLT2+uBgkr0bhPU91z9NcT+hKnf073ECnkb4uM4c6E+odvSqVN2Tm/U0KnX8R6dUSuJ6henmRo1w5DfbO2Ix66tU4EAKEVLhVhyu4PFcIvS66wBm/KdqzA63+d3fszpqEfauoyTSKYkFQIPmW2jd2/FdbB8EDytme+PvCeF4ttNzDygbTlx55OEZLFEFG3dny8RfRLURVrQ8XWzetdMuj1CKAhE5yxpsBuEhBDvoZa1wWzPDIpgJ6dcpPJiqr1gf9hq1D4GahIfaL1b68bWWyEmK3rQiHr8R8uVpYQKfcrd7KbIMIzidPTepC/SvOsfT5ndPD30Qg/Rpf+STrBBD9Zb1P9K5Q2mkJfCmqDFPnGotNrZmJDs0KcfP8kQL2XzuJoMyZ6TllW7BJJAOZ+7RSUNj2RLKysZySrMQRdBUafd0ajx3Q2NCDZ2c2BO28JwL3BN5DXGo3yQoc13LkDzMPRVCgXyBWKnMQbVtquzdATmAG5koH+bxvMRJxr6M370JEoAAAAAFR4dN1sGYnzAxYAiyxAKwieZBuz7MVn8FPgvFp6CWtzfyrDwF4nZiknsTw9B0JYaVwpR+lWKGi9hHloRaMBcuTazRaIO8t989S41SuQtMeiqVVPF2HtTomIxOzrOJXZvV1++fQBdyYagWGf5E9A7g5AAAAAAAAAAAAAAAAAA);
+ /* background: rgba(230,241,255); */
+}
+.msgWrap{
+ height: 140rpx;
+ width: 480rpx;
+}
+.name{
+ height: 70rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ font-size: 35rpx;
+ color: #333;
+}
+.address{
+ height: 70rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ font-size: 28rpx;
+ color: #666;
+}
+.item2{
+ height: 300rpx;
+ width: 100%;
+}
+.phoneWrap{
+ height: 250rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.phone{
+ height: 100rpx;
+ width: 100%;
+ border-bottom: 2rpx solid #eee9e9;
+ display: flex;
+ align-items: center;
+}
+.t1{
+ font-size: 35rpx;
+ color: #666;
+ width: 140rpx;
+}
+.t2{
+ padding-left: 30rpx;
+ font-size: 35rpx;
+ color: #333;
+}
+.icon{
+ margin-left: 30rpx;
+ height: 50rpx;
+ width: 50rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA+pJREFUWEfFl11oXEUUx/9n7m4ebfZuUB8aMXHvtlREqAVbP0KsDaXVfkBRREq1ok32bqIPJQr6kAqFQk0xmuy9baBPRaFp+xBahBZD/CgUxQ8EW9s7m9gHUSu7k0SsSN07R3btJtvN3biNu2Qehzvz/83/zJxzLmGJBy2xPgIBIk56E6A3EagHYKVFaP10V+t39YCdB2Cm5FEI7GTGcQKdB/OLIMSVbTXVHcB05AiAtSTE7mzXfWN5waYjcrX26Uuw3quS8fdqDTHrgOnIZwCMCNCajB37ulQo4ni9BDpIRmhttrPli1pClAKMgDmnkvHngwTMlDwOQVGViG2oF8D32kf3dI/1SZDAssHLLYZhTGofT1T6ZjFgpQ7MaB/bKm1uurIPjM3Kth5ejFClNXMAKfmr1nguCKDJle2aMU6EXdmEdaw+AI48y0RjU4nYwXKBqCvHmXFD2dbGWorn9yoJgfcOIFqVHdtRKmK+L+9ACDPM2DqVtE7XDaBxyGsTgj5UtrX8FoDDchU0LobCxt2/vdJ6rW4A+Y3NlHcORB8p2xooCpk3ASBwv+qyLtUXwPF2A9QnjL/XZTpX/TIL4Xifg3lMJVfsqytAwQVXniNN32aTsTfmAOTLAFKkuS3bHa9PJpwVG/I6IOiM0FiX6ba+mZ130x8z+I+phLW9li4El2NXDhLjMWGEN2c67y2EotGRWwUwCuCEsq1nawURCGCm0s0gPgvCtEpYjxTFGgdluzAwDtZv1+o+VOyImgYvr9FCXADRZ8q2nixCRNz0o8R8ngA3a1v2Qk4UckgDli/0ehZsyRoPT7YJ7X8KwkmVsPLlujDuHJi8KxfO5YvWD75PvTOvWhPlIGbKew1EewE0AzglQAfKy/wtmbDSSSKO9xSBzgTZHnXkBwy0gzCsNY/iRviqaMhtgEAPmCwQDrGgE5Tz3wRRZ5BrVTWlZurKPpDoC4IwnfQegPcAeKh4CAZS2vcPzfSs/LE4Fx2S27RAP4GiAugoulEVwM0smbd0oNIFXOZ4rWGICIzQz8WXM8/VkYsNkUy4nyC2KDvWUlUISjeJOldeYBhHCTz8XxewUkijjtzJwDFlW4XDV+3AXEKSG8EYZMYlQ/v7Mz0rv7qdnBB10i5DC2XHOxcF8G840s0Mfp0ILxGwP2tbB6qBKBa20sb3th0oFTKHvA4S9BaA38H6ZOjPv05d633wehBMxJ14mlifBmhY2bHC6RftQLlAxJUJYmwH6HFAj4Ly/xH4iYW4Thpxgl7PwBaA+5Ud7y1d/78cmAdyZOIByuV2gGgFQKsB3APCVWZ47OPdoH6zpgDV3IPyb5Yc4B9BUZAwigEO4gAAAABJRU5ErkJggg==);
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+
+.bus{
+ height: 150rpx;
+ width: 100%;
+ display: flex;
+ /* justify-content: space-between; */
+ align-items: center;
+}
+.g1{
+ font-size: 35rpx;
+ width: 140rpx;
+ color: #666;
+}
+.g2{
+ padding-left: 30rpx;
+ font-size: 35rpx;
+ color: #333;
+}
+.content2{
+ height: 200rpx;
+ width: 90%;
+ padding-left: 30rpx;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ box-sizing: border-box;
+}
+.br{
+ border-bottom: 2rpx solid #eee9e9;
+}
+.dhWrap{
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.icon2{
+ height: 80rpx;
+ width: 80rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ border-radius: 50%;
+ background: rgba(230,241,255);
+}
+.img2{
+ height: 100%;
+ width: 100%;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA49JREFUWEetV0uMFFUUPbd60I0Bumb4hs0MVd2Jxg+fBDf8EmAhfhaacScYg0O9mgFjcAEJARICCbAAZroKMMTPxii6cPwkiokoLoyBkMAGuhrBkECYmX49RDcwdF1TOky6Zl5Vve7h7brvueece9+3CE2MWf1XO3MGbQJREaClAHcCNARgGEDAwCCHY+dHe5/+S5eWdIAdA8HSukGbCbwJwMysHCI69MCoH/67pziSic0CtPvBQQbeB+OJLGw8zteYsa/mFj5Ly0vtQLsXDDLwSnPCcTSBtlWF1Z/EkWgg75d7iOnEdMQncjncJ93iXhWX0kDev/4ycfjNYxEfJwnrWDvaZ5+bzKk0oNn62wDujBMuALAwzTAD52rCXptpQKP620xGT81Z/G0j2XjeyQwj3VLYZxrzpnQg7wWfEPCWqhoGKjVh22mV5r0gIMBKwJyRwu5ONWD6wS0wFqkIDNDyEWFdTDPQ4VWWheALSRgp7FjRsR+zS+UXDKJLymSi76VjbdRZmKZf+Q7ML6mwbTNy84e2dN19FIsb6A/WGDn8nGDgQ+lY72oaOAXmLeppzD1fE12XmzbAwMGasHfpGMh7wQECdir3PYUrqk7xj6YNgOhj6Vhv6xgw/cpHYN6swo7lwjmNd0RsCszjwUy04Z5ahH6SwlqvZcCrnAV43RQs0R3pWLHzYso2NL3gBwAblPPHGKi5dl/qNiwF/UToTSjiNymslenbsHRtL8jYkyRiAK+NCHtQFe/wgldD4OukXOKwr+oWB1INdJy8uSCsj0X7OO1oPU2EX+p4eD4iy6FtJTNWA3gnSTw6xNr4wZJh95l/Ug1EQTOjCzrrYDKGwLurorB/6v8KtjmloafqdO8sgBdbEVPk/J7jWeuH3bmx6iNc4ntg9kB5Vc6gHxl4cjomCLhfD3nDaG/hV+W5kEZulq5vB4VHp2MAbLwn3cXHEhdmFnna7ZiVy8CnNWFHD9nEofUqNv3KZTA/myUYixNdkY71XFaOloGsK1YlonN1py7CyaRmqbwDRIezKvovzvyBdAtHdLBaHXhEZHrBlwBezyD+Sgr7DR3xpjowYaJU/hNEnUoB5hvSLXTpirdkYJ5fmTvGPPGiaRSbQTTvrmNF34rao6kpmOiCH3SD8Xl81eNN6dhfaCuPA1syEOW2exWfwVv/byOdqArLaVa8pSloFDG9cvQdACkKPa2IRzn/AmevNDA3aatcAAAAAElFTkSuQmCC);
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+
+.dhMsg{
+ flex: 1;
+ padding: 0 30rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.title{
+ font-size-adjust: 35rpx;
+ color: #555;
+}
+.icon3{
+ color: #e2e2e2;
+}
\ No newline at end of file
diff --git a/pages/newChatDetail/newChatDetail.js b/pages/newChatDetail/newChatDetail.js
new file mode 100644
index 0000000..0444cf3
--- /dev/null
+++ b/pages/newChatDetail/newChatDetail.js
@@ -0,0 +1,225 @@
+// pages/newChatDetail/newChatDetail.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ radio: '',
+ obj: {}
+ },
+ getYbDetail(id) {
+ let reqDTO = {
+ out_trade_no: id,
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/api/wxybpay/findWxybPayResult',
+ method: "POST",
+ data: reqDTO,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: async (res) => {
+ if (res.data.errCode == 0) {
+ // if(res.data.data.medTradeState=='SUCCESS'){
+ // res.data.data.text = '已支付'
+ // }else if(res.data.data.medTradeState=='REFUND'){
+ // res.data.data.text = '转入退款'
+ // }else if(res.data.data.medTradeState=='PAYING'){
+ // res.data.data.text = '支付中'
+ // }else if(res.data.data.medTradeState=='SYS_REFUNDED'){
+ // res.data.data.text = '支付失败'
+ // }else if(res.data.data.medTradeState=='SYS_REFUNDING'){
+ // res.data.data.text = '支付失败,异常处理中'
+ // }else if(res.data.data.medTradeState=='NOTPAY'){
+ // res.data.data.text = '未支付'
+ // }else if(res.data.data.medTradeState=='CLOSED'){
+ // res.data.data.text = '已关闭'
+ // }else{
+ // res.data.data.text = '未绑卡'
+ // }
+ this.setData({
+ obj: res.data.data
+ })
+ if(res.data.data.medTradeState=='SUCCESS'){
+ await this.sendMessage(this.data.obj)
+ }
+ } else {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ async sendMessage(data) {
+ console.log("开始推送消息")
+ let reqData = {
+ type: "jfcgwx",
+ operateTime: data.gmtOutCreate,
+ openId: app.globalData.openId,
+ amount: data.totalFee
+ }
+ console.log("reqData is :" + reqData)
+ //推送站内消息
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/generatePayMessage',
+ method: "GET",
+ data: reqData,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (responseData) => {
+ console.log(responseData)
+ }
+ })
+ },
+ getWxDetail(id) {
+ let reqDTO = {
+ out_trade_no: id,
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/api/wxpay/findWxPayResult',
+ method: "POST",
+ data: reqDTO,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: async (res) => {
+ if (res.data.errCode == 0) {
+ res.data.data.text = res.data.data.tradeStateDesc
+ res.data.data.hospOutTradeNo = res.data.data.outTradeNo
+ res.data.data.gmtOutCreate = res.data.data.timeEnd
+ // if(res.data.data.medTradeState=='SUCCESS'){
+ // res.data.data.text = '已支付'
+ // }else if(res.data.data.medTradeState=='REFUND'){
+ // res.data.data.text = '转入退款'
+ // }else if(res.data.data.medTradeState=='PAYING'){
+ // res.data.data.text = '支付中'
+ // }else if(res.data.data.medTradeState=='SYS_REFUNDED'){
+ // res.data.data.text = '支付失败'
+ // }else if(res.data.data.medTradeState=='SYS_REFUNDING'){
+ // res.data.data.text = '支付失败,异常处理中'
+ // }else if(res.data.data.medTradeState=='NOTPAY'){
+ // res.data.data.text = '未支付'
+ // }else if(res.data.data.medTradeState=='CLOSED'){
+ // res.data.data.text = '已关闭'
+ // }else{
+ // res.data.data.text = '未绑卡'
+ // }
+ this.setData({
+ obj: res.data.data
+ })
+ if(res.data.data.medTradeState=='SUCCESS'){
+ await this.sendMessage(this.data.obj)
+ }
+ } else {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ back() {
+ app.globalData.hosp_out_trade_no = ''
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ },
+ backPay() {
+ wx.setStorageSync('index', 0)
+ app.globalData.hosp_out_trade_no = ''
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+ backyPay() {
+ wx.setStorageSync('index', 1)
+ app.globalData.hosp_out_trade_no = ''
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ // let data = 'JJ20240104130042'
+ this.getYbDetail(options.hosp_out_trade_no)
+ // if(options.radioValue==0){
+ // this.getYbDetail(options.hosp_out_trade_no)
+ // }else{
+ // let data = 'JJ20240130131542'
+ // this.getWxDetail(data)
+ // // this.getWxDetail(options.hosp_out_trade_no)
+ // }
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/newChatDetail/newChatDetail.json b/pages/newChatDetail/newChatDetail.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/newChatDetail/newChatDetail.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/newChatDetail/newChatDetail.wxml b/pages/newChatDetail/newChatDetail.wxml
new file mode 100644
index 0000000..cb8e3fd
--- /dev/null
+++ b/pages/newChatDetail/newChatDetail.wxml
@@ -0,0 +1,76 @@
+
+
+
+
+
+ 支付成功
+
+
+
+
+
+
+
+
+
+
+
+ 收款机构
+ {{obj.hospitalName}}
+
+
+ 支付项目
+ {{obj.body}}
+
+
+ 支付金额
+ ¥{{obj.totalFee}}
+
+
+ 支付状态
+ {{obj.medTradeStateName}}
+ {{obj.medTradeStateName}}
+
+
+ 取药窗口/接单科室
+ 暂无
+
+
+
+
+
+ 订单号:
+ {{obj.hospOutTradeNo}}
+
+
+ 创建时间:
+ {{obj.gmtOutCreate}}
+
+
+
+
+ 温馨提示:
+ 1、您已成功在线缴费,如需发票,请到院内收费窗口申请开具发票。
+ 2、如需退费,请到院内收费窗口申请退费,退费执行成功后,相应金额将在24小时内退到您的支付账户。
+
+
+
+
+
+
+ 继续缴费
+
+
+
+ 查看缴费记录
+
+
+
+ 返回首页
+
+
+
+
diff --git a/pages/newChatDetail/newChatDetail.wxss b/pages/newChatDetail/newChatDetail.wxss
new file mode 100644
index 0000000..eba612d
--- /dev/null
+++ b/pages/newChatDetail/newChatDetail.wxss
@@ -0,0 +1,134 @@
+/* pages/newChatDetail/newChatDetail.wxss */
+.home{
+ width: 100%;
+ height: 100vh;
+ background-color: #f6f3ec;
+}
+.bg{
+ width: 100%;
+ height: 340rpx;
+ background-color: #4aa9fd;
+}
+.success{
+ padding-top:12rpx;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+.success_img{
+ width: 60rpx;
+ height: 60rpx;
+ border-radius: 30rpx;
+ background-color: #fff;
+ text-align: center;
+ line-height: 60rpx;
+}
+.pay{
+ color:#fff;
+ font-size:32rpx;
+ margin-top: 7rpx;
+}
+.van-icon {
+ color:#86c8e2;
+}
+.van-icon-success:before {
+ font-size: 60rpx;
+ line-height: 60rpx;
+}
+.detail{
+ width: 100%;
+ /* height: 300px; */
+ padding:0 20rpx;
+ box-sizing: border-box;
+ margin-top: -80px;
+}
+.content{
+ background-color:#f6f3ec;
+ height: 100%;
+ padding:7px 10px;
+ box-sizing: border-box;
+}
+.top{
+ width: 100%;
+ /* height: 150px; */
+ background-color: #fff;
+ border-radius: 5px;
+ padding:5px;
+ box-sizing: border-box;
+}
+.topay{
+ color:#a0d4c5;
+}
+.topay1{
+ color:red;
+}
+.flex{
+ display: flex;
+ font-size: 28rpx;
+ margin-bottom: 5px;
+}
+.text{
+ margin-right: 10px;
+ color:#666;
+}
+.bottom{
+ margin-top: 5px;
+ color:#666;
+}
+.container{
+ font-size: 28rpx;
+ color:#000;
+ line-height: 40rpx;
+}
+.fixedBottom{
+ position: fixed;
+ bottom:10px;
+ width: 100%;
+ padding:0 10px;
+ box-sizing: border-box;
+}
+.fixed_con{
+ width: 100%;
+ height: 60px;
+ background-color: #fff;
+ border-radius: 5px;
+ display: flex;
+ justify-content: center;
+}
+.colum{
+ width: 33.3%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: 26rpx;
+}
+.img{
+ width: 20px;
+ height: 20px;
+ margin-bottom: 3px;
+}
+.imgs{
+ width: 25px;
+ height: 25px;
+ margin-bottom: 3px;
+}
+.block{
+ display: flex;
+ margin:10px 0;
+}
+.boxs{
+ height: 12rpx;
+ width: 12rpx;
+ background-color: #292927;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+}
+.box2{
+ background-color: #b9bbb8;
+}
+.box3{
+ background-color: #979996;
+}
\ No newline at end of file
diff --git a/pages/notification/notification.js b/pages/notification/notification.js
new file mode 100644
index 0000000..61a8b4d
--- /dev/null
+++ b/pages/notification/notification.js
@@ -0,0 +1,145 @@
+// pages/notification/notification.js
+const app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ msgList: [],
+ show: ''
+ },
+ naviTo(e) {
+ console.log(e.currentTarget.dataset.item.ID)
+ let id = e.currentTarget.dataset.item.ID
+ let content = e.currentTarget.dataset.item.CONTENT
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/setMessageNoticeRead?id',
+ // url:'http://sayetest.f3322.org:5000/setMessageNoticeRead?id',
+ method: "GET",
+ data: {
+ id: id
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, "读取消息")
+ }
+ })
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/message/message?content=' + content + '&state=' + state,
+ })
+ },
+
+ getList() {
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findAllMessageNotice?openid= ',
+ // url:'http://sayetest.f3322.org:5000/findMessageNotice?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, "消息通知")
+ if (res.data == '') {
+ this.setData({
+ show: true
+ })
+ } else {
+ this.setData({
+ msgList: res.data,
+ show: false
+ })
+ }
+ }
+ })
+ },
+ clickRead() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/setMessageNoticeAllRead?openid= ',
+ // url:'http://sayetest.f3322.org:5000/findMessageNotice?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, "全部已读")
+ this.getList()
+
+ // if(res.data == ''){
+ // this.setData({
+ // show:true
+ // })
+ // }else{
+ // this.setData({
+ // msgList:res.data,
+ // show:false
+ // })
+ // }
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {},
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: '消息通知'
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ this.getList()
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/notification/notification.json b/pages/notification/notification.json
new file mode 100644
index 0000000..79be446
--- /dev/null
+++ b/pages/notification/notification.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+
+ }
+}
\ No newline at end of file
diff --git a/pages/notification/notification.wxml b/pages/notification/notification.wxml
new file mode 100644
index 0000000..269b23b
--- /dev/null
+++ b/pages/notification/notification.wxml
@@ -0,0 +1,20 @@
+
+
+
+ 一键已读
+
+
+
+
+
+ {{item.TITLE}}
+
+
+ {{item.CONTENT}}
+ 查看详情
+
+
+
+ 暂无通知
+
+
\ No newline at end of file
diff --git a/pages/notification/notification.wxss b/pages/notification/notification.wxss
new file mode 100644
index 0000000..57e4edb
--- /dev/null
+++ b/pages/notification/notification.wxss
@@ -0,0 +1,88 @@
+/* pages/notification/notification.wxss */
+.main {
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+
+.content {
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+
+.item {
+ height: 25vh;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+
+.item2 {
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 35rpx;
+ color: #333;
+}
+
+.title {
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ font-size: 35rpx;
+ color: #333;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.icon {
+ height: 80rpx;
+ width: 80rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAUFJREFUaEPtlk9Kw0AYxV9imOJG9ACKixYCrkqX7cqj6Ak8iSewR3Fll6WrQkEXRQ/Q4qZ0iIkEKfinSjLfAxl42Wa+b+b9fjOTJIj8SSJfPxTgvw3KgAwYCWgLGQGay2XAjNDYQAaMAM3lMmBGaGwgA0aA5nIZ+A3h7BzHh2V2Ub/fpMW8v8TajHtPA7qBxy6O3rbuFgmuvsxXYXzQ8Te9J7wyg1AD1IsvvLtPgMG+RVbANHP+khmCGmBx6u5+kP+epMI4f/HXLAu0AB973q2aLGyT+hPWmaAFWJxlQyB9aBIAKEf5czFpNvbvUQqw4xP9FqqDRH2I6wDRX6O7ENF+yD7fF9H+SjCuxjY9aNdom0mZYxWASTOklwyEUGPWyACTZkgvGQihxqyRASbNkF4yEEKNWSMDTJohvWQghBqz5h1dzlgxx+Kj6QAAAABJRU5ErkJggg==);
+ background-size: 100%;
+ background-repeat: no-repeat;
+}
+
+.msg {
+ height: 10vh;
+ width: 100%;
+ font-size: 30rpx;
+ color: #666;
+}
+
+.bottom {
+ height: 70rpx;
+ color: #333;
+ font-size: 30rpx;
+ line-height: 70rpx;
+ text-align: right;
+}
+
+.readed-container {
+ width: 100vw;
+ display: flex;
+ justify-content: flex-end;
+}
+
+.readed {
+ width: 20vw;
+ display: flex;
+ margin-right: 5vw;
+ padding: 5rpx 5rpx 5rpx 5rpx;
+ justify-content: center;
+ align-items: center;
+ font-size: small;
+ background-color: #E2EDFE;
+ border-radius: 10rpx;
+ color: #4393FE;
+}
\ No newline at end of file
diff --git a/pages/onehospitalization/onehospitalization.js b/pages/onehospitalization/onehospitalization.js
new file mode 100644
index 0000000..e4f3da7
--- /dev/null
+++ b/pages/onehospitalization/onehospitalization.js
@@ -0,0 +1,251 @@
+// pages/onehospitalization/onehospitalization.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ name: '',
+ painId: '',
+ show: false,
+ list1: [],
+ date: '',
+ showData: [],
+ cardNum: '',
+ cardType: '',
+ inHosNum: '',
+ },
+ async changeDate(e) {
+ console.log('picker发送选择改变,携带值为', e.detail.value)
+ this.setData({
+ date: e.detail.value
+ })
+ await this.getShowData()
+ },
+ showPop() {
+ this.setData({
+ show: true
+ });
+ this.getPerList()
+ },
+ //绑定就诊人
+ getPerList() {
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let data = res.data
+ console.log(data)
+ data.map((item, index) => {
+ if (item.TYPE == 0) {
+ this.setData({
+ name: item.TRUE_NAME,
+ painId: item.PATIENT_ID, //正式打开,测试切换功能可打开
+ // painId:'421322',
+ relate: item.RELATE,
+ cardNum: item.MEDICAL_CARD,
+ cardType: item.CARD_TYPE,
+ })
+ }
+
+ })
+ if (res.data.length > 0) {
+ this.setData({
+ list1: data
+ })
+ resolve(res.data)
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+
+ }
+ })
+ })
+
+ },
+ onClose() {
+ this.setData({
+ show: false
+ });
+ },
+ async initPage() {
+ await this.getPerList()
+ await this.getShowData()
+ },
+ async changePatient(e) {
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name: user.TRUE_NAME,
+ painId: user.PATIENT_ID,
+ relate: user.RELATE,
+ card: user.ID_CARD,
+ show: false,
+ cardNum: user.MEDICAL_CARD,
+ cardType: user.CARD_TYPE,
+ payList: [],
+ noData: false,
+ loadingHidden: true
+ });
+ await this.getShowData()
+ },
+ getInhosNum() {
+ return new Promise((resolve, reject) => {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getZyPatient?cardno&cardtype&hzxm',
+ data: {
+ cardno: this.data.cardNum,
+ cardtype: this.data.cardType,
+ hzxm: this.data.name
+ },
+ success: (res) => {
+ let tempList = res.data.list
+ if (tempList.length > 0) {
+ this.setData({
+ inHosNum: tempList[0].syxh
+ })
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'none'
+ })
+ return
+ }
+ resolve(res.data.list)
+ }
+ })
+ })
+ },
+ async getShowData() {
+ await this.getInhosNum()
+ return new Promise((resolve, reject) => {
+ var selectDate = this.data.date.replaceAll("-", "")
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getOneInHosMoney?selectDate&patient',
+ data: {
+ selectDate: selectDate,
+ patient: this.data.inHosNum
+ // selectDate: '20241103',
+ // patient: '20949'
+ },
+ success: (res) => {
+ if (res.data.list.length > 0) {
+ this.setData({
+ showData: res.data.list
+ })
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'none'
+ })
+ }
+ resolve(res.data.list)
+ }
+ })
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ const now = new Date();
+ const year = now.getFullYear();
+ const month = ('0' + (now.getMonth() + 1)).slice(-2);
+ const day = ('0' + now.getDate()).slice(-2);
+ const formattedTime = year + "-" + month + "-" + day;
+ this.setData({
+ date: formattedTime
+ })
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ common.checkGlobalOpenId().then(res => {
+ app.globalData.openId = res
+ this.initPage()
+ wx.setNavigationBarTitle({
+ title: '住院日结单'
+ })
+ },
+ err => {
+ //初始化失败,弹框提示
+ })
+ } else {
+ this.initPage()
+ wx.setNavigationBarTitle({
+ title: '住院日结单'
+ })
+ }
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/onehospitalization/onehospitalization.json b/pages/onehospitalization/onehospitalization.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/onehospitalization/onehospitalization.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/onehospitalization/onehospitalization.wxml b/pages/onehospitalization/onehospitalization.wxml
new file mode 100644
index 0000000..3fe46f9
--- /dev/null
+++ b/pages/onehospitalization/onehospitalization.wxml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
+
+ {{item.ypmc}}
+ {{item.ypdj}}
+ {{item.ypdw}}
+ {{item.ypsl}}
+ {{item.zje}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/onehospitalization/onehospitalization.wxss b/pages/onehospitalization/onehospitalization.wxss
new file mode 100644
index 0000000..a2559f0
--- /dev/null
+++ b/pages/onehospitalization/onehospitalization.wxss
@@ -0,0 +1,209 @@
+/* pages/onehospitalization/onehospitalization.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.hu {
+ height: 80rpx;
+ width: 100%;
+ background-color: #fcf6e6;
+ font-size: 24rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.tjitem-left {
+ height: 80rpx;
+ width: 70%;
+ display: flex;
+ /* justify-content: space-between; */
+ align-items: center;
+ margin-left: 20rpx;
+ /* color:#d78b6a; */
+
+ /* border:2rpx solid #d78b6a; */
+}
+
+.tjitem-right {
+ width: 250rpx;
+ height: 60rpx;
+ border: 2rpx solid #d78b6a;
+ color: #d78b6a;
+ font-size: 25rpx;
+ line-height: 60rpx;
+ margin-right: 80rpx;
+ /* align-items: center;
+ justify-content: center; */
+}
+
+.tjitem-right1 {
+ margin-left: 50rpx;
+ /* border:2rpx solid #7503f7; */
+}
+
+.popWrap {
+ height: 75%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+
+.title1 {
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+
+.userWrap {
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+
+.userItem {
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+
+.msg1 {
+ height: 160rpx;
+ width: 500rpx;
+}
+
+.up1 {
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+
+.name1 {
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+
+.guanxi1 {
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228, 240, 255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0, 110, 255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.down1 {
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1 {
+ color: rgb(180, 179, 179);
+ padding-right: 15rpx;
+}
+
+.font30 {
+ font-size: 30rpx;
+}
+
+.color3 {
+ color: #333;
+}
+
+.color6 {
+ color: #666;
+}
+
+.timeIcon {
+ color: #666;
+ font-size: 18rpx;
+ margin-left: 5rpx;
+}
+
+
+.item3 {
+ width: 100%;
+ /* margin-top: 50rpx; */
+ margin-top: 23vh;
+ border-radius: 10rpx;
+ background: #fff;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+}
+.item4 {
+ width: 100%;
+ margin-top: 3vh;
+ border-radius: 10rpx;
+ background: #fff;
+ box-shadow: 0px 0px 15rpx #e2e2e2;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+}
+.xmTitle {
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ border-bottom: 1rpx solid #e2e2e2;
+}
+
+.xmMsg {
+ width: 100%;
+ display: flex;
+ padding: 0 20rpx;
+ box-sizing: border-box;
+ align-items: center;
+ border-bottom: 1rpx solid #e2e2e2;
+}
+
+.xmMsg view {
+ width: 20%;
+ padding: 20rpx 0;
+ word-wrap: break-word;
+ font-size: 25rpx;
+ color: #333;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.xmTitle view {
+ height: 100rpx;
+ width: 20%;
+ font-size: 30rpx;
+ color: #666;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.headerLocation{
+ width: 90%;
+ background-color: #fff;
+ position: fixed;
+ top: 0;
+ z-index: 999;
+}
\ No newline at end of file
diff --git a/pages/outpatientPage/outpatientPage.js b/pages/outpatientPage/outpatientPage.js
new file mode 100644
index 0000000..4c26f1f
--- /dev/null
+++ b/pages/outpatientPage/outpatientPage.js
@@ -0,0 +1,84 @@
+// pages/outpatientPage/outpatientPage.js
+var app = getApp();
+let common = require('../../config/common.js')
+var crypto = require('../../config/crypto.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ // url: 'https://fy.btlsoln.com:8090/#/outpatient?openid=',
+ url: 'https://fy.btlsoln.com:8090/#/opd?openid='
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ console.log(app.globalData.openId)
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ common.checkGlobalOpenId().then(res => {
+ // var result = crypto.AES_EN(res)
+ this.setData({
+ url: this.data.url + res
+ })
+ })
+ } else {
+ // var result = crypto.AES_EN(app.globalData.openId)
+ this.setData({
+ url: this.data.url + app.globalData.openId
+ })
+ }
+ console.log(this.data.url)
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/outpatientPage/outpatientPage.json b/pages/outpatientPage/outpatientPage.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/outpatientPage/outpatientPage.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/outpatientPage/outpatientPage.wxml b/pages/outpatientPage/outpatientPage.wxml
new file mode 100644
index 0000000..a44d8b9
--- /dev/null
+++ b/pages/outpatientPage/outpatientPage.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/outpatientPage/outpatientPage.wxss b/pages/outpatientPage/outpatientPage.wxss
new file mode 100644
index 0000000..1cbe190
--- /dev/null
+++ b/pages/outpatientPage/outpatientPage.wxss
@@ -0,0 +1 @@
+/* pages/outpatientPage/outpatientPage.wxss */
\ No newline at end of file
diff --git a/pages/payment/payment.js b/pages/payment/payment.js
new file mode 100644
index 0000000..24cd18e
--- /dev/null
+++ b/pages/payment/payment.js
@@ -0,0 +1,474 @@
+// pages/payment/payment.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+ data: {
+ painId:'',
+ list:['未缴费','已缴费'],
+ currentIndex:0,
+ payList:[],
+ noData:false,
+ show:false,
+ list1:[],
+ name:'',
+ painId:'',
+ relate:'',
+ card:'',
+ cardNum:'',
+ loadingHidden: false,
+ date1:'',//弹框开始日期
+ date2:"",//弹框结束日期
+ date3:"",//按钮显示开始日期
+ date4:"",//按钮显示结束日期
+ rqList:[
+ {name:'近一周',id:"0"},
+ {name:'近一月',id:"1"},
+ {name:'近半年',id:"2"},
+ {name:'近一年',id:"3"},
+ ],
+ curId:0,
+ show2:false,
+ currentDate: "",
+ minDate: new Date(2010, 0, 1).getTime(),
+ maxDate: new Date().getTime(),
+ isSel:"0",
+ agoStr:'',
+ todayStr:'',
+ },
+ cateChange(e){
+ this.setData({currentIndex:e.target.dataset.info,noData:false,payList:[],loadingHidden:false,curId:0})
+ if(e.target.dataset.info==1){
+ this.InitDays()
+ }else{
+ this.getUnPayInfo()
+ }
+ },
+
+ //绑定就诊人
+ getPerList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ let data = res.data
+ data.map((item,index) => {
+ if(item.TYPE == 0){
+ this.setData({
+ name:item.TRUE_NAME,
+ painId:item.PATIENT_ID, //正式打开,测试切换功能可打开
+ // painId:'421322',
+ relate:item.RELATE,
+ cardNum:item.MEDICAL_CARD,
+ cardType:item.CARD_TYPE,
+ })
+ }
+ })
+ if(res.data.length > 0){
+ this.setData({
+ list1:data
+ })
+ if(this.data.currentIndex==0){
+ this.getUnPayInfo()
+ }else{
+ this.getJfList()
+ }
+ }else{
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ }else{
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ confirm(e){
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name:user.TRUE_NAME,
+ painId:user.PATIENT_ID,
+ relate:user.RELATE,
+ card:user.ID_CARD,
+ show:false,
+ cardNum:user.MEDICAL_CARD,
+ payList:[],
+ noData:false,
+ loadingHidden:true
+ });
+ if(this.data.currentIndex==0){
+ this.getUnPayInfo()
+ }else{
+ this.InitDays()
+ }
+
+ },
+ showPop(){
+ this.setData({ show: true });
+ this.getPerList()
+ },
+ onClose() {
+ this.setData({ show: false });
+ },
+ navito(e){
+ let item = e.currentTarget.dataset.info
+ let obj = JSON.stringify(e.currentTarget.dataset.info)
+ wx.navigateTo({
+ url: '/pages/topay/topay?orderId='+item.orderId+"&obj="+obj+"&money="+item.cfje,
+ })
+ },
+ getUnPayInfo(){
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getUnPayInfo',
+ method:"GET",
+ timeout:500000000000,
+ data:{
+ patid:this.data.painId
+ },
+ success: (res)=> {
+ this.FindPatientFeeInfo()
+ }
+ })
+ },
+ FindPatientFeeInfo(){
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/FindPatientFeeInfo',
+ method:"GET",
+ timeout:500000000000,
+ data:{
+ patid:this.data.painId
+ },
+ success: (res)=> {
+ if(res.data.errCode==0){
+ this.setData({
+ payList:res.data.data,
+ loadingHidden:true
+ })
+ }else if(res.data.errCode==-1){
+ this.setData({
+ noData:true,
+ loadingHidden:true
+ })
+ }
+ }
+ })
+ },
+ getJfList(ksrq,jsrq){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getPayList?patid&ksrq&jsrq&czyh=00',
+ method:"GET",
+ data:{
+ patid:this.data.painId, //正式打开,测试切换功能可打开
+ // patid:'1541347',
+ ksrq:ksrq,
+ jsrq:jsrq
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.list.length==0){
+ this.setData({
+ noData:true,
+ loadingHidden:true
+ })
+ }else{
+ this.setData({
+ payList:res.data.list,
+ noData:false,
+ loadingHidden:true
+ })
+ }
+ }
+ })
+ },
+ naviToJf(e){
+ let sjh = e.currentTarget.dataset.item.sjh
+ let sflb = e.currentTarget.dataset.item.sflb
+ let ksmc = e.currentTarget.dataset.item.ksmc
+ let name = this.data.name
+ let card = this.data.cardNum
+ wx.navigateTo({
+ url: '/pages/jfMsg/jfMsg?sjh='+sjh+'&name='+name+'&card='+card+'&sflb='+sflb+'&ksmc='+ksmc,
+ })
+ },
+ // 初始化弹框以及接口时间
+ InitDays() {
+ var dd = new Date();
+ var tt = new Date();
+ var d7 = new Date();
+ dd.setDate(dd.getDate() - 30);//获取p_count天后的日期
+ d7.setDate(d7.getDate() - 7);//获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var yyy = d7.getFullYear();
+ var m = dd.getMonth() + 1;//获取当前月份的日期
+ var mm = tt.getMonth() + 1;//获取当前月份的日期
+ var mmm = d7.getMonth() + 1;//获取当前月份的日期
+ if( m <10){
+ m = '0'+m;
+ }
+ if( mm <10){
+ mm = '0'+mm;
+ }
+ if( mmm <10){
+ mmm = '0'+mmm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ var ddd = d7.getDate();
+ if( d <10){
+ d = '0'+d;
+ }
+ if( dd <10){
+ dd = '0'+dd;
+ }
+ if( ddd <10){
+ ddd = '0'+ddd;
+ }
+ //前一月
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g,'')
+ //前一周
+ let DS = yyy + "-" + mmm + "-" + ddd
+ let dsStr = DS.replace(/-/g,'')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g,'')
+ var cur = Date.parse(ago);
+ this.setData({
+ date1:ago,//弹框时间
+ date2:today,//弹框时间
+ date3:DS,
+ date4:today,
+ currentDate:cur,//当前激活时间
+ ksrq:dsStr,
+ jsrq:todayStr,
+ })
+ this.getJfList(dsStr,todayStr)
+ },
+ rqSel(e){
+ let id = e.currentTarget.dataset.item.id
+ this.setData({
+ curId:id,
+ loadingHidden:false,
+ payList:[],
+ noData:false
+ })
+ if(id == 0){
+ this.daySGone(7)
+ }else if(id == 1){
+ this.daySGone(30)
+ }else if(id == 2){
+ this.daySGone(180)
+ }else{
+ this.daySGone(365)
+ }
+ },
+ daySGone(p_count){
+ var dd = new Date();
+ var tt = new Date();
+ dd.setDate(dd.getDate() - p_count);//获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var m = dd.getMonth() + 1;//获取当前月份的日期
+ var mm = tt.getMonth() + 1;//获取当前月份的日期
+ if( m <10){
+ m = '0'+m;
+ }
+ if( mm <10){
+ mm = '0'+mm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ if( d <10){
+ d = '0'+d;
+ }
+ if( dd <10){
+ dd = '0'+dd;
+ }
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g,'')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g,'')
+ this.setData({
+ date3:ago,
+ date4:today,
+ agoStr:agoStr,
+ todayStr:todayStr,
+ })
+ this.getJfList(agoStr,todayStr)
+ },
+ dateSel(){
+ this.setData({
+ show2:true
+ })
+ },
+ onClose2(){
+ this.setData({
+ show2:false
+ })
+ },
+ date1Sel(e){
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel:id
+ })
+ },
+ date2Sel(e){
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel:id
+ })
+ },
+ onConfirm2() {
+ let ksrq = this.data.ksrq
+ let jsrq = this.data.jsrq
+ this.setData({
+ payList:[]
+ })
+ if(ksrq == '' || jsrq ==''){
+ wx.showToast({
+ title: '日期不完整',
+ icon:"error"
+ })
+ }else{
+ // 开始日期小于结束日期
+ if(Number(ksrq) <= Number(jsrq)){
+ this.setData({
+ show2: false,
+ date3:this.data.date1,
+ date4:this.data.date2,
+ curId:'',
+ loadingHidden: false,
+ });
+ this.getJfList(ksrq,jsrq)
+ }else{
+ wx.showToast({
+ title: '日期格式错误',
+ icon:"error"
+ })
+ }
+ }
+ },
+ onInput(event){
+ var timestamp = event.detail;
+ var d = new Date(timestamp * 1);
+ var y = d.getFullYear()
+ var m = d.getMonth() + 1
+ var t = d.getDate()
+ var date = y+"-" +(m > 9 ? m : "0" + m) +"-" +(t > 9 ? t : "0" + t)
+ let date2 = date.replace(/-/g,'')
+ if(this.data.isSel == 0){
+ this.setData({
+ date1:date,
+ ksrq:date2
+ })
+ }else if(this.data.isSel == 1){
+ this.setData({
+ date2:date,
+ jsrq:date2
+ })
+ }
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ if(app.globalData.openId == ""||app.globalData.openId==null){
+ common.checkGlobalOpenId().then(res=>{
+ console.log(res)
+ app.globalData.openId = res
+ this.getPerList()
+ if(wx.getStorageSync('index')==''){
+ this.setData({currentIndex:0})
+ }else{
+ this.InitDays()
+ this.setData({currentIndex:wx.getStorageSync('index')})
+ }
+ wx.setNavigationBarTitle({
+ title: '门诊缴费'
+ })
+ },
+ err=>{
+ //初始化失败,弹框提示
+ })
+ }else{
+ this.getPerList()
+ if(wx.getStorageSync('index')==''){
+ this.setData({currentIndex:0})
+ }else{
+ this.InitDays()
+ this.setData({currentIndex:wx.getStorageSync('index')})
+ }
+ wx.setNavigationBarTitle({
+ title: '门诊缴费'
+ })
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+ wx.removeStorageSync('index')
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/payment/payment.json b/pages/payment/payment.json
new file mode 100644
index 0000000..9372cb7
--- /dev/null
+++ b/pages/payment/payment.json
@@ -0,0 +1,7 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index"
+ },
+ "navigationBarBackgroundColor": "#efedef"
+}
\ No newline at end of file
diff --git a/pages/payment/payment.wxml b/pages/payment/payment.wxml
new file mode 100644
index 0000000..df0699c
--- /dev/null
+++ b/pages/payment/payment.wxml
@@ -0,0 +1,109 @@
+
+
+ 医保移动支付结算须知:
+ 1、医保移动支付仅限本人使用,家庭共济患者须在门诊窗口进行医保结算;
+ 2、生育保险的项目,如:产前检查、流产、上环取环等无法使用医保移动支付,须在门诊窗口进行医保结算;
+ 3、医保主要用于参保人疾病诊断、疾病治疗所发生的政策范围内的检查、治疗、购药等费用,所有健康查体、养生保健项目均不属于基本医疗保险保障范围的支出,无法使用医保结算。
+
+
+加载中...
+
+ 当前就诊人: {{name}}
+
+ 切换就诊人
+
+
+
+ {{item}}
+
+
+ 医嘱明细在支付详情查看
+ 暂无数据
+
+
+
+ 就诊科室 :
+ {{item.out_ksmc}}
+
+ 就诊时间 : {{item.lrrq}}
+
+
+ ¥{{item.cfje}}
+
+ 去支付
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+ {{date3}}
+ 至
+ {{date4}}
+
+
+ 选择时间
+
+
+
+
+ 暂无数据
+
+
+
+ {{item.sflb}}
+ {{item.jlzt}}
+
+
+
+
+ 科室名称
+ {{item.ksmc}}
+
+
+ 病人类型
+ {{item.brlx}}
+
+
+ ¥{{item.fyze}}
+
+
+
+
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
+
+ {{date1}}
+ 至
+ {{date2}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/payment/payment.wxss b/pages/payment/payment.wxss
new file mode 100644
index 0000000..f1e0ed3
--- /dev/null
+++ b/pages/payment/payment.wxss
@@ -0,0 +1,418 @@
+/* pages/payment/payment.wxss */
+.containers{
+ width: 100%;
+ height: 100vh;
+ background-color: #f2f0f4;
+}
+.container{
+ font-size: 24rpx;
+ color:#000;
+ line-height: 40rpx;
+}
+.change{
+ width: 170rpx;
+ height: 40rpx;
+ border:2rpx solid #d78b6a;
+ color:#d78b6a;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.patlabel{
+ width: 170rpx;
+ height: 40rpx;
+ border:2rpx solid #d78b6a;
+ color:#d78b6a;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.hu{
+ height: 80rpx;
+ width: 100%;
+ background-color: #fcf6e6;
+ font-size: 24rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.tjitem-left{
+ height: 80rpx;
+ width: 70%;
+ display: flex;
+ /* justify-content: space-between; */
+ align-items: center;
+ margin-left: 20rpx;
+ /* color:#d78b6a; */
+
+ /* border:2rpx solid #d78b6a; */
+}
+.tjitem-right{
+ width: 250rpx;
+ height: 60rpx;
+ border:2rpx solid #d78b6a;
+ color:#d78b6a;
+ font-size: 25rpx;
+ line-height: 60rpx;
+ margin-right: 80rpx;
+ /* align-items: center;
+ justify-content: center; */
+}
+.tjitem-right1{
+ margin-left: 50rpx;
+ /* border:2rpx solid #7503f7; */
+}
+.around{
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 100%;
+ display: flex;
+ background-color: #fdfcff;
+ z-index:999;
+ margin-bottom: 6rpx;
+}
+.around>view{
+ width: 50%;
+ text-align: center;
+ font-size: 30rpx;
+ height: 100%;
+ border-bottom:6rpx solid #f2f0f4;
+}
+.active{
+ border-bottom:6rpx solid #2da9fa !important;
+ color:#2da9fa !important;
+}
+.list{
+ height: calc(100vh - 150rpx);
+ overflow-y: scroll;
+}
+.list::-webkit-scrollbar{
+ width: 0;
+}
+.item{
+ height: 230rpx;
+ width: 100%;
+ padding:36rpx 0 20rpx 0;
+ box-sizing: border-box;
+ background-color: #fefcfe;
+ font-size: 28rpx;
+ font-weight: 600;
+ margin-bottom: 24rpx;
+}
+.first{
+ height: 110rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ border-bottom: 2rpx solid #f2f0f4;
+ color:#333;
+ padding-bottom:26rpx;
+ box-sizing: border-box;
+}
+.text{
+ margin:0 40rpx;
+}
+.second{
+ height:84rpx;
+ display: flex;
+ justify-content: space-between;
+ padding:0 30rpx;
+ align-items: center;
+ box-sizing: border-box;
+}
+.money{
+ color:#c58265;
+ font-size: 30rpx !important;
+}
+.pay{
+ color:#9cc3e1;
+ margin-right: 16rpx;
+}
+
+.van-icon, .van-icon:before {
+ color:#999;
+}
+.noData{
+ font-size: 32rpx;
+ text-align: center;
+ margin-top: 100rpx;
+ color:#666;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: 0px;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
+.list-label{
+ font-size: small;
+ color: red;
+}
+.item3{
+ width: 100%;
+ border-radius: 5rpx;
+ margin-bottom: 20rpx;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ background-color: #fff;
+}
+.h1{
+ height: 240rpx;
+}
+.titleMsg{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #333;
+ border-bottom: 2rpx solid #f8f8f8;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.type{
+ font-size: 30rpx;
+ color: rgba(52,120,247);
+}
+.msgItem1{
+ height: 150rpx;
+ width: 100%;
+ margin: 10rpx auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+}
+.msgItem1-left{
+ height: 100%;
+ width: 75%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+}
+.jfItem{
+ height:60rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.c1{
+ height: 60rpx;
+ width: 120rpx;
+ line-height: 60rpx;
+ font-size: 30rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.c2{
+ font-size: 30rpx;
+ color: #333;
+ margin-left: 30rpx;
+}
+.msgItem1-right{
+ height: 100%;
+ width: 25%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: rgba(244,99,99);
+ font-size: 35rpx;
+}
+.btnWrap{
+ height: 160rpx;
+ width: 100%;
+ padding:0 20rpx;
+ box-sizing: border-box;
+ background-color: #fff;
+}
+.gdrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.btn1{
+ height: 60rpx;
+ width: 160rpx;
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ font-size: 32rpx;
+}
+.dtrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.timeMsg{
+ height: 60rpx;
+ width: 450rpx;
+ font-size: 30rpx;
+ border-radius: 30rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.itemTi{
+ height: 100%;
+ width: 45%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.itemT{
+ height: 100%;
+ width: 10%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.btn2{
+ height: 60rpx;
+ width: 220rpx;
+ margin-left: 50rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.icon2{
+ height: 30rpx;
+ width: 30rpx;
+ margin-left: 10rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUhJREFUWEftlT1SwzAQhd9zQx+VdEDMEeiSO0AHJ3DIJBUcAiqYEJ8AOrhD0nEEHKCjVHoaL2NBZhKwLf8oCYXV2nr7zUrfitjy4pbrowFoOtB04P90QIWvAxHpb2IukBzp4OA2qbXSgdY4ugJ4sV4IuZ73/MtFjT9HoMazewFO1wFB4EH32mfL2al3oBXOJhB0nEIQ03nQ7v7OTAVQ4cuuiDcFsOcI4p2MOzo4/CgEkPykRtERPE4E2KkDQeATsXR1339Oy8nVUN29HQvjx1oA4p3o8/2nrAzrHPjR86YKBMnhQrfKAMnGanqu6lYLwNyJEnqm6VYbwHSiiJ4ZujkBKKBnpm5OAPL0tOnmDMBApOhJi25OAQxEGA1EaPQkZagD37xuZZd1DuQFfusJLL9uGwUoW6z0KHZRwJZR6whs4UW+NwBNB74ADGh0IdudMasAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+.mr{
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.ac{
+ color: #fff;
+ background: rgba(0,110,255);
+}
+.dateWrap{
+ height: 80rpx;
+ width: 80%;
+ margin: 50rpx auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.dateItem{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: rgba(0,110,255);
+ background: rgba(230,241,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
+.dateActive{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: #fff;
+ background: rgba(0,110,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
+.zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+}
+.lists{
+ margin-top: 20rpx;
+ height:calc(100vh - 300rpx);
+ overflow-y: scroll;
+}
\ No newline at end of file
diff --git a/pages/record/record.js b/pages/record/record.js
new file mode 100644
index 0000000..1f78763
--- /dev/null
+++ b/pages/record/record.js
@@ -0,0 +1,637 @@
+// pages/record/record.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list: [],
+ yyList: [],
+ jfList: [],
+ czList: [],
+ id: '', //1预约,2缴费,3充值
+ title: '',
+ show: false,
+ show2: false,
+ name: '',
+ painId: '',
+ relate: '',
+ card: '', //sfz
+ cardNum: '', //jzk
+ cardType: '',
+ ksrq: '',
+ jsrq: '',
+ date1: '', //弹框开始日期
+ date2: "", //弹框结束日期
+ date3: "", //按钮显示开始日期
+ date4: "", //按钮显示结束日期
+ agoStr: '',
+ todayStr: '',
+ isSel: "0",
+ minDate: new Date(2010, 0, 1).getTime(),
+ maxDate: new Date().getTime(),
+ currentDate: "",
+ loadingHidden: true,
+ flag: '',
+ rqList: [{
+ name: '近一周',
+ id: "0"
+ },
+ {
+ name: '近一月',
+ id: "1"
+ },
+ {
+ name: '近半年',
+ id: "2"
+ },
+ {
+ name: '近一年',
+ id: "3"
+ },
+ ],
+ curId: 0,
+ },
+
+ daySGone(p_count) {
+ var dd = new Date();
+ var tt = new Date();
+ dd.setDate(dd.getDate() - p_count); //获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var m = dd.getMonth() + 1; //获取当前月份的日期
+ var mm = tt.getMonth() + 1; //获取当前月份的日期
+ if (m < 10) {
+ m = '0' + m;
+ }
+ if (mm < 10) {
+ mm = '0' + mm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ if (d < 10) {
+ d = '0' + d;
+ }
+ if (dd < 10) {
+ dd = '0' + dd;
+ }
+ console.log(y + "-" + m + "-" + d, "前面日期")
+ console.log(yy + "-" + mm + "-" + dd, "当前日期")
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g, '')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g, '')
+ this.setData({
+ date3: ago,
+ date4: today,
+ agoStr: agoStr,
+ todayStr: todayStr,
+ })
+ if (this.data.id == 2) {
+ this.getJfList(agoStr, todayStr)
+ } else if (this.data.id == 3) {
+ this.getCzList(agoStr, todayStr)
+ }
+ },
+ rqSel(e) {
+ console.log(e.currentTarget.dataset.item.id)
+ this.InitDays()
+ let id = e.currentTarget.dataset.item.id
+ this.setData({
+ curId: id,
+ loadingHidden: false
+ })
+ if (id == 0) {
+ this.daySGone(7)
+ } else if (id == 1) {
+ this.daySGone(30)
+ } else if (id == 2) {
+ this.daySGone(180)
+ } else {
+ this.daySGone(365)
+ }
+ },
+ // 初始化弹框以及接口时间
+ InitDays() {
+ var dd = new Date();
+ var tt = new Date();
+ var d7 = new Date();
+ dd.setDate(dd.getDate() - 30); //获取p_count天后的日期
+ d7.setDate(d7.getDate() - 7); //获取p_count天后的日期
+ var y = dd.getFullYear();
+ var yy = tt.getFullYear();
+ var yyy = d7.getFullYear();
+ var m = dd.getMonth() + 1; //获取当前月份的日期
+ var mm = tt.getMonth() + 1; //获取当前月份的日期
+ var mmm = d7.getMonth() + 1; //获取当前月份的日期
+ if (m < 10) {
+ m = '0' + m;
+ }
+ if (mm < 10) {
+ mm = '0' + mm;
+ }
+ if (mmm < 10) {
+ mmm = '0' + mmm;
+ }
+ var d = dd.getDate();
+ var dd = tt.getDate();
+ var ddd = d7.getDate();
+ if (d < 10) {
+ d = '0' + d;
+ }
+ if (dd < 10) {
+ dd = '0' + dd;
+ }
+ if (ddd < 10) {
+ ddd = '0' + ddd;
+ }
+ //前一月
+ let ago = y + "-" + m + "-" + d
+ let agoStr = ago.replace(/-/g, '')
+ //前一周
+ let DS = yyy + "-" + mmm + "-" + ddd
+ let dsStr = DS.replace(/-/g, '')
+ let today = yy + "-" + mm + "-" + dd
+ let todayStr = today.replace(/-/g, '')
+ var cur = Date.parse(ago);
+ this.setData({
+ date1: ago, //弹框时间
+ date2: today, //弹框时间
+ date3: DS,
+ date4: today,
+
+ currentDate: cur, //当前激活时间
+ ksrq: dsStr,
+ jsrq: todayStr,
+ })
+ },
+ getPerList() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method: "GET",
+ data: {
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let data = res.data
+ data.map((item, index) => {
+ if (item.TYPE == 0) {
+ this.setData({
+ name: item.TRUE_NAME,
+ painId: item.PATIENT_ID,
+ relate: item.RELATE,
+ cardNum: item.MEDICAL_CARD,
+ cardType: item.CARD_TYPE
+ })
+ }
+ })
+ if (res.data.length > 0) {
+ let id = this.data.id
+ if (id == 1) {
+ this.getYyList()
+ } else if (id == 2) {
+ this.getJfList()
+ } else {
+ this.getCzList()
+ }
+ this.setData({
+ list: data
+ })
+ } else {
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ } else {
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ getYyList() {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getOrder?patid',
+ method: "GET",
+ data: {
+ patid: this.data.painId
+ // patid:wx.getStorageSync('painId')
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ console.log(res, "预约")
+ let that = this
+ setTimeout(function () {
+ let data = res.data.list
+ data.map((item, index) => {
+ let num = item.yyrq
+ var year = String(num).substr(0, 4)
+ var month = String(num).substr(4, 5).substr(0, 2)
+ var date = String(num).substr(6, 7)
+ item.yyrq = year + '年' + month + '月' + date + '日'
+ return data
+ })
+ if (data == '') {
+ that.setData({
+ flag: false
+ })
+ } else {
+ that.setData({
+ flag: true,
+ yyList: data,
+ })
+ }
+ that.setData({
+ loadingHidden: true
+ });
+ }, 500);
+ }
+ })
+ },
+ getJfList(ksrq, jsrq) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getPayList?patid&ksrq&jsrq&czyh=00',
+ method: "GET",
+ data: {
+ patid: this.data.painId,
+ ksrq: ksrq,
+ jsrq: jsrq
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let that = this
+ setTimeout(function () {
+ if (res.data.list == '') {
+ that.setData({
+ flag: false
+ })
+ } else {
+ that.setData({
+ jfList: res.data.list,
+ flag: true
+ })
+ }
+ that.setData({
+ loadingHidden: true
+ });
+ }, 500);
+ console.log(res, "缴费")
+ }
+ })
+ },
+ getCzList(ksrq, jsrq) {
+ console.log(this.data.cardNum, "cardNumcardNumcardNum")
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getRecharge?cardno&kssj&jssj&cardtype',
+ method: "GET",
+ data: {
+ cardno: this.data.cardNum,
+ kssj: ksrq,
+ jssj: jsrq,
+ cardtype: this.data.cardType
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ let that = this
+ setTimeout(function () {
+ let data = res.data.list
+ data.map((item, index) => {
+ let num = item.lrrq
+ var year = String(num).substr(0, 4)
+ var month = String(num).substr(4, 5).substr(0, 2)
+ var date = String(num).substr(6, 7).substr(0, 2)
+ var h = String(num).substr(8, 9).substr(0, 2)
+ var m = String(num).substr(10, 11).substr(0, 2)
+ var s = String(num).substr(12, 13).substr(0, 2)
+ item.lrrq = year + '/' + month + '/' + date + " " + h + ":" + m + ":" + s
+ return data
+ })
+ if (data == '') {
+ that.setData({
+ flag: false
+ })
+ } else {
+ that.setData({
+ czList: data,
+ flag: true
+ })
+ }
+ console.log(data, "充值")
+ that.setData({
+ loadingHidden: true
+ });
+ }, 500);
+ }
+ })
+ },
+ dateSel() {
+ this.setData({
+ show2: true
+ })
+ },
+ onClose2() {
+ this.setData({
+ show2: false
+ })
+ },
+ date1Sel(e) {
+ console.log(e.currentTarget.dataset.id)
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel: id
+ })
+ },
+ date2Sel(e) {
+ console.log(e.currentTarget.dataset.id)
+ let id = e.currentTarget.dataset.id
+ this.setData({
+ isSel: id
+ })
+ },
+ onConfirm2() {
+ let ksrq = this.data.ksrq
+ let jsrq = this.data.jsrq
+ if (ksrq == '' || jsrq == '') {
+ wx.showToast({
+ title: '日期不完整',
+ icon: "error"
+ })
+ } else {
+ // 开始日期小于结束日期
+ if (Number(ksrq) <= Number(jsrq)) {
+ this.setData({
+ show2: false,
+ date3: this.data.date1,
+ date4: this.data.date2,
+ curId: '',
+ loadingHidden: false,
+ });
+ if (this.data.id == 2) {
+ this.getJfList(ksrq, jsrq)
+ } else if (this.data.id == 3) {
+ this.getCzList(ksrq, jsrq)
+ }
+ } else {
+ wx.showToast({
+ title: '日期格式错误',
+ icon: "error"
+ })
+ }
+ }
+ },
+ onInput(event) {
+ var timestamp = event.detail;
+ var d = new Date(timestamp * 1);
+ var y = d.getFullYear()
+ var m = d.getMonth() + 1
+ var t = d.getDate()
+ var date = y + "-" + (m > 9 ? m : "0" + m) + "-" + (t > 9 ? t : "0" + t)
+ let date2 = date.replace(/-/g, '')
+ console.log(date2)
+ if (this.data.isSel == 0) {
+ this.setData({
+ date1: date,
+ ksrq: date2
+ })
+ } else if (this.data.isSel == 1) {
+ this.setData({
+ date2: date,
+ jsrq: date2
+ })
+ }
+ },
+ naviToMsg(e) {
+ console.log(e, "挂号详情")
+ let ksmc = e.currentTarget.dataset.item.yyksmc
+ let date = e.currentTarget.dataset.item.sjd
+ let time = e.currentTarget.dataset.item.yyrq
+ let yylsh = e.currentTarget.dataset.item.yylsh
+ let jlzt = e.currentTarget.dataset.item.jlzt
+ let name = this.data.name
+ let card = this.data.card
+ wx.navigateTo({
+ url: '/pages/ghMsg/ghMsg?ksmc=' + ksmc + '&date=' + date + '&time=' + time + '&name=' + name + '&card=' + card + '&yylsh=' + yylsh + '&jlzt=' + jlzt,
+ })
+ },
+ showPop() {
+ this.setData({
+ show: true
+ });
+ },
+ onClose() {
+ this.setData({
+ show: false
+ });
+ },
+ confirm(e) {
+ console.log(e.currentTarget.dataset.item)
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name: user.TRUE_NAME,
+ painId: user.PATIENT_ID,
+ relate: user.RELATE,
+ card: user.ID_CARD,
+ cardNum: user.MEDICAL_CARD,
+ cardType: user.CARD_TYPE,
+ show: false,
+ loadingHidden: false,
+ });
+ let ksrq = this.data.agoStr
+ let jsrq = this.data.todayStr
+ console.log(ksrq, jsrq, "11111111111")
+ if (this.data.id == 1) {
+ this.getYyList()
+ } else if (this.data.id == 2) {
+ this.getJfList(ksrq, jsrq)
+ } else {
+ this.getCzList(ksrq, jsrq)
+ }
+ },
+ naviToJf(e) {
+ console.log(e.currentTarget.dataset.item)
+ let sjh = e.currentTarget.dataset.item.sjh
+ let sflb = e.currentTarget.dataset.item.sflb
+ let ksmc = e.currentTarget.dataset.item.ksmc
+ let name = this.data.name
+ let card = this.data.cardNum
+ wx.navigateTo({
+ url: '/pages/jfMsg/jfMsg?sjh=' + sjh + '&name=' + name + '&card=' + card + '&sflb=' + sflb + '&ksmc=' + ksmc,
+ })
+ },
+ naviToCzMsg(e) {
+ console.log(e.currentTarget.dataset.item)
+ let hzxm = e.currentTarget.dataset.item.hzxm
+ let sex = e.currentTarget.dataset.item.sex
+ let cardtype = e.currentTarget.dataset.item.cardtype
+ let cardno = e.currentTarget.dataset.item.cardno
+ let jyje = e.currentTarget.dataset.item.jyje
+ let lsh = e.currentTarget.dataset.item.lsh
+ let fph = e.currentTarget.dataset.item.fph
+ let lrrq = e.currentTarget.dataset.item.lrrq
+ wx.navigateTo({
+ url: '/pages/czMsg/czMsg?hzxm=' + hzxm + '&sex=' + sex + '&cardtype=' + cardtype + '&cardno=' + cardno + '&jyje=' + jyje +
+ '&lsh=' + lsh + '&fph=' + fph + '&lrrq=' + lrrq,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ if(app.globalData.openId == ""||app.globalData.openId==null){
+ common.checkGlobalOpenId().then(res=>{
+ console.log(res)
+ app.globalData.openId = res
+ this.getJfList()
+ this.InitDays()
+ this.getPerList()
+ this.setData({
+ // name:app.globalData.name,
+ // painId:app.globalData.painId,
+ // type:app.globalData.relate,
+ // card:app.globalData.sfId,
+ // cardNum:app.globalData.cardNum,
+ // cardType:app.globalData.cardType,
+ loadingHidden: false,
+ })
+ let id = options.id
+ this.setData({
+ id: id,
+ })
+ if (id == 1) {
+ // this.getYyList()
+ this.setData({
+ title: "预约就诊记录"
+ })
+ } else if (id == 2) {
+ // this.getJfList()
+ this.setData({
+ title: "门诊缴费记录"
+ })
+ } else {
+ // this.getCzList()
+ this.setData({
+ title: "门诊充值记录"
+ })
+ }
+ wx.setNavigationBarTitle({
+ title: this.data.title
+ })
+ },
+ err=>{
+ //初始化失败,弹框提示
+ })
+ }else{
+ this.getJfList()
+ this.InitDays()
+ this.getPerList()
+ this.setData({
+ // name:app.globalData.name,
+ // painId:app.globalData.painId,
+ // type:app.globalData.relate,
+ // card:app.globalData.sfId,
+ // cardNum:app.globalData.cardNum,
+ // cardType:app.globalData.cardType,
+ loadingHidden: false,
+ })
+ let id = options.id
+ this.setData({
+ id: id,
+ })
+ if (id == 1) {
+ // this.getYyList()
+ this.setData({
+ title: "预约就诊记录"
+ })
+ } else if (id == 2) {
+ // this.getJfList()
+ this.setData({
+ title: "门诊缴费记录"
+ })
+ } else {
+ // this.getCzList()
+ this.setData({
+ title: "门诊充值记录"
+ })
+ }
+ wx.setNavigationBarTitle({
+ title: this.data.title
+ })
+ }
+
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ console.log()
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ let id = this.data.id
+ console.log(id, "ididididi")
+ if (id == 1) {
+ this.getYyList()
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/record/record.json b/pages/record/record.json
new file mode 100644
index 0000000..5e24167
--- /dev/null
+++ b/pages/record/record.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/record/record.wxml b/pages/record/record.wxml
new file mode 100644
index 0000000..fd394e3
--- /dev/null
+++ b/pages/record/record.wxml
@@ -0,0 +1,150 @@
+
+
+
+
+
+ {{name}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+
+
+
+ {{cardNum}}
+ 切换就诊人
+
+
+
+ 近一年
+
+
+
+ {{item.name}}
+
+
+
+ {{date3}}
+ 至
+ {{date4}}
+
+
+ 选择时间
+
+
+
+
+ 加载中...
+
+
+
+ {{item.yyksmc}}门诊
+ 预约成功
+ 已取消
+
+
+
+ 就诊科室
+ {{item.yyksmc}}
+
+
+ 预约日期
+ {{item.yyrq}}
+
+
+
+
+
+
+ {{item.sflb}}
+ {{item.jlzt}}
+
+
+
+
+ 科室名称
+ {{item.ksmc}}
+
+
+ 病人类型
+ {{item.brlx}}
+
+
+ ¥{{item.fyze}}
+
+
+
+
+
+
+
+
+ 交易类型
+ 预交金收
+ 预交金红冲
+ 预交金退款
+ 扣卡
+ 扣卡取消
+
+
+ 交易日期
+ {{item.lrrq}}
+
+
+ {{item.jyje}}
+
+
+
+ 暂无数据
+ 暂无数据
+ 暂无数据
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+ >
+
+
+
+
+
+
+ {{date1}}
+ 至
+ {{date2}}
+
+
+
+
diff --git a/pages/record/record.wxss b/pages/record/record.wxss
new file mode 100644
index 0000000..ddee93f
--- /dev/null
+++ b/pages/record/record.wxss
@@ -0,0 +1,396 @@
+/* pages/record/record.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 30rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.mr{
+ font-size: 30rpx;
+ color: #666;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ margin-right: 50rpx;
+ border-radius: 50%;
+ background-color: rgba(0,110,255);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
+ background-size:100%;
+ background-repeat: no-repeat;
+}
+.btnWrap{
+ height: 160rpx;
+ width: 100%;
+}
+.btnWrap1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.btn11{
+ height: 60rpx;
+ width: 160rpx;
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ font-size: 32rpx;
+ color: #fff;
+ background: rgba(0,110,255);
+}
+.gdrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.dtrq{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.timeMsg{
+ height: 60rpx;
+ width: 450rpx;
+ font-size: 30rpx;
+ border-radius: 30rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.itemTi{
+ height: 100%;
+ width: 45%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.itemT{
+ height: 100%;
+ width: 10%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.btn1{
+ height: 60rpx;
+ width: 160rpx;
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ font-size: 32rpx;
+}
+.mr{
+ color: rgba(0,110,255);
+ background: rgba(226,237,254);
+}
+.ac{
+ color: #fff;
+ background: rgba(0,110,255);
+}
+.btn2{
+ height: 60rpx;
+ width: 220rpx;
+ margin-left: 50rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 60rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.icon2{
+ height: 30rpx;
+ width: 30rpx;
+ margin-left: 10rpx;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUhJREFUWEftlT1SwzAQhd9zQx+VdEDMEeiSO0AHJ3DIJBUcAiqYEJ8AOrhD0nEEHKCjVHoaL2NBZhKwLf8oCYXV2nr7zUrfitjy4pbrowFoOtB04P90QIWvAxHpb2IukBzp4OA2qbXSgdY4ugJ4sV4IuZ73/MtFjT9HoMazewFO1wFB4EH32mfL2al3oBXOJhB0nEIQ03nQ7v7OTAVQ4cuuiDcFsOcI4p2MOzo4/CgEkPykRtERPE4E2KkDQeATsXR1339Oy8nVUN29HQvjx1oA4p3o8/2nrAzrHPjR86YKBMnhQrfKAMnGanqu6lYLwNyJEnqm6VYbwHSiiJ4ZujkBKKBnpm5OAPL0tOnmDMBApOhJi25OAQxEGA1EaPQkZagD37xuZZd1DuQFfusJLL9uGwUoW6z0KHZRwJZR6whs4UW+NwBNB74ADGh0IdudMasAAAAASUVORK5CYII=);
+ background-size: 100%;
+}
+.item2{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.item3{
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+}
+.h1{
+ height: 250rpx;
+}
+.h2{
+ height: 150rpx;
+}
+.msgItem1{
+ height: 150rpx;
+ width: 100%;
+ margin: 10rpx auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+}
+.msgItem1-left{
+ height: 100%;
+ width: 75%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+}
+.jfItem{
+ height:60rpx;
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.msgItem1-right{
+ height: 100%;
+ width: 25%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: rgba(244,99,99);
+ font-size: 35rpx;
+}
+.msgItem1-right1{
+ height: 100%;
+ width: 25%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: rgba(245,154,35);
+ font-size: 35rpx;
+}
+
+.titleMsg{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #333;
+ border-bottom: 2rpx solid #f8f8f8;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.type{
+ font-size: 30rpx;
+ color: rgba(52,120,247);
+}
+.type1{
+ font-size: 30rpx;
+ color: #999;
+}
+.yymsg{
+ height: 120rpx;
+ width: 100%;
+ margin-top: 30rpx;
+}
+.msgItem{
+ height: 60rpx;
+ width: 100%;
+ display: flex;
+ /* justify-content: space-between; */
+ align-items: center
+}
+
+.c1{
+ height: 60rpx;
+ width: 120rpx;
+ line-height: 60rpx;
+ font-size: 30rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+}
+.c2{
+ font-size: 30rpx;
+ color: #333;
+ margin-left: 30rpx;
+}
+
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: none;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
+.zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+}
+.dateWrap{
+ height: 80rpx;
+ width: 80%;
+ margin: 50rpx auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.dateItem{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: rgba(0,110,255);
+ background: rgba(230,241,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
+.dateActive{
+ height: 100%;
+ width: 40%;
+ font-size: 30rpx;
+ color: #fff;
+ background: rgba(0,110,255);
+ border-radius: 15rpx;
+ text-align: center;
+ line-height: 80rpx;
+}
\ No newline at end of file
diff --git a/pages/register/register.js b/pages/register/register.js
new file mode 100644
index 0000000..fb70214
--- /dev/null
+++ b/pages/register/register.js
@@ -0,0 +1,125 @@
+// pages/register/register.js
+let id;
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ week:[]
+ },
+
+ //获取一周
+ getWeek(){
+ let arr = [];
+ for(let i=0;i<10;i++){
+ let param = {};
+ param.day = this.getDate(i).day;
+ param.week = this.getDate(i).w;
+ arr.push(param);
+
+ }
+ this.setData({week:arr})
+ console.log(arr,this.data.week)
+ },
+
+ getDate(count){
+ let today = new Date();
+ today.setDate(today.getDate()+count);
+ let month = today.getMonth() + 1;
+ let week = today.getDay();
+ let day = today.getDate();
+ let w;
+ month = month < 10 ? '0' + month : month;
+ day = day < 10 ? '0' + day : day;
+ switch (week) {
+ case 0:
+ w = '周日';
+ break;
+ case 1:
+ w = '周一';
+ break;
+ case 2:
+ w = '周二';
+ break;
+ case 3:
+ w = '周三';
+ break;
+ case 4:
+ w = '周四';
+ break;
+ case 5:
+ w = '周五';
+ break;
+ case 6:
+ w = '周六';
+ break;
+ }
+ if(count == 0){
+ w = '今日';
+ }
+ console.log(w,day);
+ return {w,day};
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ const title = options.title;
+ id = options.id;
+ wx.setNavigationBarTitle({
+ title: title,
+ })
+ this.getWeek();
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ //console.log(id)
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/register/register.json b/pages/register/register.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/register/register.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/register/register.wxml b/pages/register/register.wxml
new file mode 100644
index 0000000..400a31f
--- /dev/null
+++ b/pages/register/register.wxml
@@ -0,0 +1,48 @@
+
+
+
+
+ 今日
+ 3
+
+
+ 今日
+ 3
+
+
+ 今日
+ 3
+
+
+ 今日
+ 3
+
+
+ 今日
+ 3
+
+
+ 今日
+ 3
+
+
+ 今日
+ 03/11
+
+
+
+ 坐诊医生
+
+
+
+
+
+
+ 张三主任医师
+ 发顺丰水电费大飞fsdfsdfdsfdsfdsfdsfdsfsdfsdfsdfsdfdsfdffdsfdsf
+
+
+
+
+
+
diff --git a/pages/register/register.wxss b/pages/register/register.wxss
new file mode 100644
index 0000000..65954dd
--- /dev/null
+++ b/pages/register/register.wxss
@@ -0,0 +1,80 @@
+/* pages/register/register.wxss */
+.date{
+ width:100%;
+ height: 200rpx;
+ border:1px solid #eee;
+ margin: 30rpx 0;
+ display: flex;
+ justify-content:space-evenly;
+}
+.date view{
+ text-align: center;
+}
+.date view text{
+ display: block;
+ margin-top: 30rpx;
+}
+.week{
+ color: #999;
+ font-size: 28rpx;
+}
+.day{
+ width:80rpx;
+ height: 60rpx;
+ background-color: #DFEFFF;
+ text-align: center;
+ line-height: 60rpx;
+ border-radius: 30rpx;
+}
+.doctorList{
+ margin-top: 30rpx;
+}
+.doctor{
+ padding: 20rpx;
+ height: auto;
+ border: 1px solid #eee;
+ overflow: hidden;
+}
+.info{
+ display: flex;
+ border-bottom: 1px solid #eee;
+ padding-bottom: 20rpx;
+}
+.tx{
+ width: 100rpx;
+ height: 100rpx;
+ background-color: #DFEFFF;
+ border-radius: 10rpx;
+ margin-right: 20rpx;
+}
+.name{
+ flex: 1;
+}
+.name view{
+ font-size: 32rpx;
+}
+.name view text{
+ font-size: 24rpx;
+ margin-left: 20rpx;
+}
+.name>text{
+ font-size: 24rpx;
+ color: rgb(175, 173, 173);
+ margin-top: 10rpx;
+ display: block;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ overflow: hidden;
+ width: 526rpx;
+ white-space: nowrap;
+}
+.restTicket{
+ margin-top: 20rpx;
+}
+.restTicket button{
+ width: 160rpx!important;
+ background-color: #368af8;
+ color: #fff;
+ font-size: 28rpx!important;
+ float: right;
+}
\ No newline at end of file
diff --git a/pages/resInformation/resInformation.js b/pages/resInformation/resInformation.js
new file mode 100644
index 0000000..1e91815
--- /dev/null
+++ b/pages/resInformation/resInformation.js
@@ -0,0 +1,80 @@
+// pages/resInformation/resInformation.js
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+
+ naviToMsg(){
+ wx.navigateTo({
+ url: '/pages/ghMsg/ghMsg?stateId=0',
+ })
+ },
+ backIndex(){
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ wx.setNavigationBarTitle({
+ title: "预约信息"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/resInformation/resInformation.json b/pages/resInformation/resInformation.json
new file mode 100644
index 0000000..79be446
--- /dev/null
+++ b/pages/resInformation/resInformation.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+
+ }
+}
\ No newline at end of file
diff --git a/pages/resInformation/resInformation.wxml b/pages/resInformation/resInformation.wxml
new file mode 100644
index 0000000..1ed216f
--- /dev/null
+++ b/pages/resInformation/resInformation.wxml
@@ -0,0 +1,10 @@
+
+
+
+
+ 预约成功
+ 您已预约成功,请您持本人身份证按时就诊
+ 查看预约详情
+ 返回首页
+
+
\ No newline at end of file
diff --git a/pages/resInformation/resInformation.wxss b/pages/resInformation/resInformation.wxss
new file mode 100644
index 0000000..930e94c
--- /dev/null
+++ b/pages/resInformation/resInformation.wxss
@@ -0,0 +1,63 @@
+/* pages/resInformation/resInformation.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ height: 100vh;
+}
+.wrap{
+ width: 90%;
+ height: 100%;
+ margin: 40rpx auto;
+}
+.icon{
+ height: 120rpx;
+ width: 120rpx;
+ margin: 50rpx auto;
+ background-color: rgba(0,110,255);
+ background-size: 100%;
+ border-radius: 50%;
+ background-repeat: no-repeat;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAABMZJREFUeF7t3fuODEEUBvCv4214HXELIYQgBCGIW3aDIAQhCCGErMu+D69zpNaZmN2dS3dNn+o6fb7+U2Zq63zfb2t356YBr9AJNKGn5/AggOAICIAAgicQfHyeAAQQPIHg4/MEIIDgCQQfnycAAQRPIPj4PAEIIHgCwcfnCUAAwRMIPj5PAAIInkDw8XkCEEDwBIKPzxOAAIInEHx8ngAEEDyB4OPzBCCA4AkEH58nAAEETyD4+DwBCCB4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R98NRm6f+CNSf8Gu4zOgA1hOppDwTgqS2DvRKAQaieliQAT20Z7JUADEL1tCQBeGrLYK8EYBCqpyUJwFNbBnslAINQPS1JAJ7aMtgrARiE6mlJAvDUlsFeCcAgVE9LEoCntgz2SgAGoXpakgA8tWWwVwIwCNXTkgTgqS2DvRKAQaieliQAT20Z7JUADEL1tCQBeGrLYK8EYBCqpyUJwFNbBnslAINQPS1JAJ7aMtgrARiE6mlJAvDUlsFeCcAgVE9LEoCntgz2SgAGoXpakgA8tWWwVwIwCNXTkn8BYePYkCvSNSQAAAAASUVORK5CYII=);
+}
+.t1{
+ height: 80rpx;
+ width: 100%;
+ text-align: center;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ letter-spacing: 2rpx;
+ color: #333;
+}
+.t2{
+ height: 80rpx;
+ width: 100%;
+ text-align: center;
+ line-height: 80rpx;
+ font-size: 33rpx;
+ letter-spacing: 2rpx;
+ color: #666;
+}
+.btn1{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(52,120,247);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
\ No newline at end of file
diff --git a/pages/revenuePage/revenuePage.js b/pages/revenuePage/revenuePage.js
new file mode 100644
index 0000000..562457a
--- /dev/null
+++ b/pages/revenuePage/revenuePage.js
@@ -0,0 +1,84 @@
+// pages/revenuePage/revenuePage.js
+var app = getApp();
+let common = require('../../config/common.js')
+var crypto = require('../../config/crypto.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ url: 'https://fy.btlsoln.com:8090/#/integrative?openid='
+ //url: 'https://nxwj.btlsoln.com:8090/#/integrative?openid='
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ console.log("revenuepage", app.globalData.openId)
+ if (app.globalData.openId == "" || app.globalData.openId == null) {
+ common.checkGlobalOpenId().then(res => {
+ // var result = crypto.AES_EN(res)
+ this.setData({
+ url: this.data.url + res
+ })
+ })
+ } else {
+ // var result = crypto.AES_EN(app.globalData.openId)
+ this.setData({
+ url: this.data.url + app.globalData.openId
+ })
+ }
+ console.log(this.data.url)
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/revenuePage/revenuePage.json b/pages/revenuePage/revenuePage.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/revenuePage/revenuePage.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/revenuePage/revenuePage.wxml b/pages/revenuePage/revenuePage.wxml
new file mode 100644
index 0000000..a44d8b9
--- /dev/null
+++ b/pages/revenuePage/revenuePage.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/revenuePage/revenuePage.wxss b/pages/revenuePage/revenuePage.wxss
new file mode 100644
index 0000000..76618ca
--- /dev/null
+++ b/pages/revenuePage/revenuePage.wxss
@@ -0,0 +1 @@
+/* pages/revenuePage/revenuePage.wxss */
\ No newline at end of file
diff --git a/pages/selectBg/selectBg.js b/pages/selectBg/selectBg.js
new file mode 100644
index 0000000..e579fc0
--- /dev/null
+++ b/pages/selectBg/selectBg.js
@@ -0,0 +1,178 @@
+// pages/selectBg/selectBg.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list:[],
+ show:false,
+ name:'',
+ painId:'',
+ relate:'',
+ card:'',
+ cardNum:'',
+ menuList:[
+ // {name:"病理报告单",id:'0'},
+ {name:"检查报告单",id:'2'},
+ {name:"检验报告单",id:'1'},
+ ]
+ },
+ naviToMsg(e){
+ let cardNum = this.data.cardNum
+ console.log(e.currentTarget.dataset.item.id)
+ let id = e.currentTarget.dataset.item.id
+ wx.navigateTo({
+ url: '/pages/bgMsg/bgMsg?cardNum='+cardNum+'&id='+id,
+ })
+ },
+ getPerList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,"患者")
+ if(res.data.length > 0){
+
+ let data = res.data
+ data.map((item,index) => {
+ if(item.TYPE == 0){
+ this.setData({
+ name:item.TRUE_NAME,
+ painId:item.PATIENT_ID,
+ relate:item.RELATE,
+ cardNum:item.MEDICAL_CARD,
+ cardType:item.CARD_TYPE
+ })
+ }
+ })
+ this.setData({
+ list:data
+ })
+ }else{
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ }else{
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ showPop(){
+ this.setData({ show: true });
+ },
+ onClose() {
+ this.setData({ show: false });
+ },
+ confirm(e){
+ console.log(e.currentTarget.dataset.item)
+ let user = e.currentTarget.dataset.item
+ this.setData({
+ name:user.TRUE_NAME,
+ painId:user.PATIENT_ID,
+ relate:user.RELATE,
+ card:user.ID_CARD,
+ show:false,
+ cardNum:user.MEDICAL_CARD
+ });
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ if(app.globalData.openId == ""||app.globalData.openId==null){
+
+ wx.showToast({title: '加载中', icon: 'loading', duration: 30000});
+ common.checkGlobalOpenId().then(res=>{
+ app.globalData.openId = res
+ this.getPerList()
+ wx.hideToast();
+ },
+ err=>{
+ //初始化失败,弹框提示
+ })
+ }else{
+ this.getPerList()
+ }
+ // this.getPerList()
+ // this.setData({
+ // name:app.globalData.name,
+ // painId:app.globalData.painId,
+ // type:app.globalData.relate,
+ // card:app.globalData.sfId,
+ // cardNum:app.globalData.cardNum
+ // })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: "选择报告类型",
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/selectBg/selectBg.json b/pages/selectBg/selectBg.json
new file mode 100644
index 0000000..31a5700
--- /dev/null
+++ b/pages/selectBg/selectBg.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/selectBg/selectBg.wxml b/pages/selectBg/selectBg.wxml
new file mode 100644
index 0000000..1f8852b
--- /dev/null
+++ b/pages/selectBg/selectBg.wxml
@@ -0,0 +1,53 @@
+
+
+
+
+ {{name}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+
+
+
+ {{cardNum}}
+ 切换就诊人
+
+
+ 选择查询报告类型
+
+ {{item.name}}
+ >
+
+
+
+
+ 选择就诊人
+
+
+
+
+ {{item.TRUE_NAME}}
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ {{item.MEDICAL_CARD}}
+
+
+ >
+
+
+
+
+
diff --git a/pages/selectBg/selectBg.wxss b/pages/selectBg/selectBg.wxss
new file mode 100644
index 0000000..c6b5983
--- /dev/null
+++ b/pages/selectBg/selectBg.wxss
@@ -0,0 +1,180 @@
+/* pages/record/record.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 30rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.mr{
+ font-size: 30rpx;
+ color: #666;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+.icon{
+ height: 50rpx;
+ width: 50rpx;
+ padding: 10rpx;
+ box-sizing: border-box;
+ border-radius: 50%;
+ background-color: rgba(0,110,255);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
+ background-size:100%;
+ background-repeat: no-repeat;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.title1{
+ height: 100rpx;
+ width: 100%;
+ line-height: 100rpx;
+ text-align: center;
+ font-size: 33rpx;
+ color: #333;
+}
+.userWrap{
+ height: 100%;
+ width: 95%;
+ margin: 0 auto;
+}
+.userWrap :last-child{
+ border-bottom: none;
+}
+.userItem{
+ height: 160rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.msg1{
+ height: 160rpx;
+ width: 500rpx;
+}
+.up1{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ align-items: center
+}
+.name1{
+ font-size: 33rpx;
+ height: 80rpx;
+ color: #333;
+ line-height: 80rpx;
+}
+.guanxi1{
+ height: 60rpx;
+ width: 120rpx;
+ margin-left: 20rpx;
+ background: rgba(228,240,255);
+ border-radius: 30rpx;
+ text-align: center;
+ line-height: 80rpx;
+ color: rgba(0,110,255);
+ font-size: 32rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.down1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: rgb(158, 154, 154);
+ line-height: 80rpx;
+}
+.icon1{
+ color: rgb(180, 179, 179);
+ padding-right:15rpx ;
+}
+
+.bt{
+ height: 100rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 100rpx;
+ border-bottom: 3rpx solid #f8f8f8;
+ display: flex;
+ align-items: center;
+}
+.item2{
+ height: 120rpx;
+ width: 100%;
+ line-height: 120rpx;
+ border-bottom: 3rpx solid #f8f8f8;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name2{
+ height: 120rpx;
+ width: 350rpx;
+ font-size: 33rpx;
+ color: #666;
+}
+
+.icon2{
+ height: 120rpx;
+ width: 80rpx;
+ text-align: center;
+ color: #e2e2e2;
+ font-size: 35rpx;
+}
\ No newline at end of file
diff --git a/pages/selectDepartment/selectDepartment.js b/pages/selectDepartment/selectDepartment.js
new file mode 100644
index 0000000..e9513c5
--- /dev/null
+++ b/pages/selectDepartment/selectDepartment.js
@@ -0,0 +1,110 @@
+// pages/selectDepartment/selectDepartment.js
+const util = require('../../utils/util.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ keyword: '',
+ originList: [], // 原始完整数据(从后台或缓存来)
+ filteredList: [], // 过滤后用于渲染
+ officeList: [],
+ deptList: []
+ },
+
+ // 选择科室
+ naviToYs(e) {
+ let deptId = e.currentTarget.dataset.id
+ // let ksmc = e.currentTarget.dataset.item.ksmc
+ wx.navigateTo({
+ url: '/pages/departmentMsg/departmentMsg?deptId=' + deptId,
+ })
+ },
+ // 获取科室列表
+ getOfficeList(options) {
+ wx.request({
+ // url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHisDept?deptId=' + options.deptId,
+ url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHisDeptAdd',
+ method: "GET",
+ success: (res) => {
+ console.log(res)
+ this.setData({
+ originList: res.data.data,
+ filteredList: res.data.data
+ // deptList: res.data.data
+ })
+ }
+ })
+ },
+ // 实时过滤
+ onSearch(e) {
+ const key = e.detail.trim();
+ const { originList } = this.data;
+ const filtered = key
+ ? originList.filter(i =>
+ i.name.includes(key)
+ )
+ : originList;
+ this.setData({ keyword: key, filteredList: filtered });
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
+ wx.setNavigationBarTitle({
+ title: '选择科室',
+ })
+ this.getOfficeList(options)
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/selectDepartment/selectDepartment.json b/pages/selectDepartment/selectDepartment.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/selectDepartment/selectDepartment.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/selectDepartment/selectDepartment.wxml b/pages/selectDepartment/selectDepartment.wxml
new file mode 100644
index 0000000..e5edbbd
--- /dev/null
+++ b/pages/selectDepartment/selectDepartment.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/selectDepartment/selectDepartment.wxss b/pages/selectDepartment/selectDepartment.wxss
new file mode 100644
index 0000000..9ce9402
--- /dev/null
+++ b/pages/selectDepartment/selectDepartment.wxss
@@ -0,0 +1,32 @@
+/* pages/selectDepartment/selectDepartment.wxss */
+.main{
+ margin: 30rpx 0;
+ height: 100vh;
+ width: 750rpx;
+}
+.container{
+ height: 100%;
+ width: 100%;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ line-height: 120rpx;
+ border-bottom: 2rpx solid #e2dcdc;
+ display: flex;
+ justify-content: space-between;
+}
+.name{
+ height: 120rpx;
+ width: 300rpx;
+ padding-left: 30rpx;
+ font-size: 34rpx;
+ color: #444;
+}
+.icon{
+ height: 120rpx;
+ width: 150rpx;
+ text-align: center;
+ color: #e2e2e2;
+ font-size: 35rpx;
+}
diff --git a/pages/selsecPer/selsecPer.js b/pages/selsecPer/selsecPer.js
new file mode 100644
index 0000000..6d958db
--- /dev/null
+++ b/pages/selsecPer/selsecPer.js
@@ -0,0 +1,140 @@
+// pages/selsecPer/selsecPer.js
+var app = getApp()
+let common = require('../../config/common.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list:[]
+ },
+ jiuZhen(e){
+ console.log(e.currentTarget.dataset.item,"选择就诊人")
+ let painId = e.currentTarget.dataset.item.PATIENT_ID
+ let trueName = e.currentTarget.dataset.item.TRUE_NAME
+ let sfId = e.currentTarget.dataset.item.ID_CARD
+ let carNum = e.currentTarget.dataset.item.MEDICAL_CARD
+ wx.setStorageSync('painId', painId)
+ wx.setStorageSync('trueName', trueName)
+ wx.setStorageSync('sfId1', sfId)
+ wx.setStorageSync('cardNo', carNum)
+ wx.navigateTo({
+ url: '/pages/selectDepartment/selectDepartment',
+ // url: '/pages/departmentChoose/departmentChoose',
+ })
+ },
+ getPerList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res.data,"患者")
+ if(res.data.length > 0){
+ let data1 = res.data
+ data1.map((item,index) => {
+ if(item.TYPE == 0){
+ data1.unshift(data1.splice(index , 1)[0]);
+ }
+ })
+ this.setData({
+ list:data1
+ })
+ }else{
+ wx.showModal({
+ title: '',
+ content: '您还未绑定就诊人,请先绑定就诊人信息!',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state=0',
+ })
+ }else{
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ if(app.globalData.openId == ""||app.globalData.openId==null){
+ common.checkGlobalOpenId().then(res=>{
+ console.log(res)
+ app.globalData.openId = res
+ this.getPerList()
+ },
+ err=>{
+ //初始化失败,弹框提示
+ })
+ }else{
+ this.getPerList()
+ }
+ wx.setNavigationBarTitle({
+ title: '选择就诊人',
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/selsecPer/selsecPer.json b/pages/selsecPer/selsecPer.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/selsecPer/selsecPer.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/selsecPer/selsecPer.wxml b/pages/selsecPer/selsecPer.wxml
new file mode 100644
index 0000000..dde0d0a
--- /dev/null
+++ b/pages/selsecPer/selsecPer.wxml
@@ -0,0 +1,20 @@
+
+
+
+ 请选择就诊人
+
+
+ {{item.TRUE_NAME}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+ 默认就诊人
+
+
+ {{item.MEDICAL_CARD}}
+
+
+
\ No newline at end of file
diff --git a/pages/selsecPer/selsecPer.wxss b/pages/selsecPer/selsecPer.wxss
new file mode 100644
index 0000000..75cdae0
--- /dev/null
+++ b/pages/selsecPer/selsecPer.wxss
@@ -0,0 +1,67 @@
+/* pages/selsecPer/selsecPer.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.title{
+ height: 60rpx;
+ width: 100%;
+ font-size: 33rpx;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.mr{
+ font-size: 30rpx;
+ color: #666;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
\ No newline at end of file
diff --git a/pages/studentMgr/studentMgr.js b/pages/studentMgr/studentMgr.js
new file mode 100644
index 0000000..33b5f80
--- /dev/null
+++ b/pages/studentMgr/studentMgr.js
@@ -0,0 +1,373 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+const user = require('../../utils/user.js');
+
+//获取应用实例
+const app = getApp();
+
+Page({
+ data: {
+ isShow: false, //控制确认学生信息对话框
+ stulist: {},
+ xyrwList: [],
+ rwname:'',
+ rwempty: 0,
+ batchno: '',
+ nationId: '',
+ list:[],
+ loadingHidden: true,
+ flag: false,
+ openid: ''
+ },
+
+ isValidID:function (id) {
+ if (!/^\d{17}(\d|X)$/.test(id)) return false; // 检查格式是否正确
+
+ // 计算第18位校验码
+ const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
+ const checkCode = '10X98765432';
+ let sum = 0;
+ for (let i = 0; i < id.length - 1; i++) {
+ sum += parseInt(id[i], 10) * weights[i];
+ }
+ sum = sum % 11;
+
+ // 验证第18位校验码是否正确
+ return checkCode[sum] === id[17].toUpperCase();
+ },
+
+ btnAdd: function(){
+ if(this.isValidID(this.data.nationId) == false){
+ wx.showToast({
+ title: '身份证不合法!',
+ icon:'success',
+ duration: 1000
+ })
+ this.setData({ nationId: '', });
+ return;
+ }
+ //根据身份证号和批次号查询学生信息
+ var that = this;
+ util.request(api.studentByInit, {
+ nationid: that.data.nationId,
+ batchno: this.data.batchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log(res.data);
+ if(res.data == null){
+ wx.showToast({
+ title: '无此学生信息',
+ icon:'error'
+ })
+ }else{
+ that.setData({
+ stulist: res.data,
+ isShow: true
+ });
+ }
+ }
+ });
+ },
+
+ onCancelStudent: function(){
+ },
+
+ onConfirmStudent: function(){
+ let that = this;
+ let cardNum = this.data.stulist.nationId;
+ // let type = this.data.type
+ let hzxm =this.data.stulist.name;
+ let sex = this.getSexFromIdCard(this.data.stulist.nationId)
+ let age = this.calculateAge(this.data.stulist.nationId)
+ let userid = this.data.stulist.id;
+ // let classid = this.data.xytjinfo.classid;
+ let classname = this.data.stulist.classname;
+ let schoolname = this.data.stulist.schoolname;
+ let mobile = this.data.stulist.mobile;
+ let sqName = this.data.stulist.sqName;
+ let cardtype = "";
+ console.log(mobile)
+ console.log(hzxm)
+ console.log(cardNum)
+ console.log(sex)
+ console.log(age)
+ console.log(userid)
+
+ //家长确认学生信息,进行建档和关联就诊人操作
+ util.requestPost(api.createstudent, {
+ openid: app.globalData.openId,
+ name: hzxm,
+ deptId: userid,
+ sex: sex,
+ age: age,
+ mobile: mobile,
+ className: classname,
+ schoolName: schoolname,
+ sqName: sqName,
+ nationId: cardNum
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("createstudent res:");
+ console.log(res);
+ console.log("createstudent resdata:");
+ console.log(res.data);
+ cardtype = res.data;
+ // if(type == 0)
+ // {
+ // // app.globalData.gdefaultflag = type;
+ // app.globalData.gname = hzxm;
+ // app.globalData.gsex = sex;
+ // app.globalData.gage = age;
+ // // app.globalData.gdeptId = classid;
+ // app.globalData.gclassName = classname;
+ // app.globalData.gschoolName = schoolname;
+ // app.globalData.gnationId = cardNum;
+ // }
+
+ //自动建档并关联到父openid
+ that.linkUser(hzxm, cardNum, cardtype);
+
+ wx.showToast({
+ title: '添加成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+
+ }
+ else{
+ wx.showToast({
+ title: res.msg,
+ icon:'error'
+ })
+ }
+ });
+ },
+
+ linkUser:function(gname, xPatid, cardtype){
+ //第二步 关联到父openid
+ console.log(xPatid, 'usrPatid');
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/patientBindWXUser?cardno&cardtype&openid&relate&type&hzxm',
+ method:"GET",
+ data:{
+ cardno: xPatid,
+ cardtype: cardtype,
+ relate: '1', //都是子女
+ type: '1', //不当做默认就诊人
+ openid: app.globalData.openId,
+ hzxm: gname
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '关联就诊人成功',
+ icon:'success'
+ })
+ return true;
+ }else{
+ wx.showToast({
+ title: "关联就诊人失败",
+ icon:'error'
+ })
+ return false;
+ }
+ }
+ })
+ },
+ //获取下园任务列表
+ getXyrwList: function() {
+ var that = this;
+ util.request(api.xyrwinfo, {
+
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("xyrwinfo resdata:");
+ console.log(res.data);
+ if(res.data.length == 0){
+ that.setData({
+ rwempty: 0
+ });
+ app.globalData.hasXyrw = false;
+ }else{
+ that.setData({
+ rwempty: 1,
+ xyrwList: res.data,
+ rwname: res.data[0].batchName,
+ batchno: res.data[0].batchno
+ });
+ app.globalData.hasXyrw = true;
+ that.getPerList(res.data[0].batchno);
+ }
+ }
+ });
+ },
+
+//取列表
+getPerList: function(resbatchno){
+ let that = this;
+ util.request(api.studentByparent, {
+ openid: app.globalData.openId,
+ batchno: resbatchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("list res:");
+ console.log(res);
+ console.log("list resdata:");
+ console.log(res.data);
+ that.setData({
+ list: res.data
+ });
+
+ console.log("list length", that.data.list.length);
+ if(that.data.list.length == 0 ){
+ that.setData({
+ loadingHidden: false,
+ flag: false
+ });
+ }else{
+ //有体检人,取出默认体检人
+ var filterNum = that.data.list.filter(function(person,index,arrs){
+ return person.defaultflag==0
+ });
+ console.log("fileter");
+ console.log(filterNum);
+
+ that.setData({
+ loadingHidden: true,
+ flag: true
+ });
+ }
+
+ that.setData({
+ loadingHidden: true
+ });
+ }
+ })
+},
+ naviToAdd(){
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/studentMsgDel/studentMsgDel?state='+state,
+ })
+ },
+ naviToDet(e){
+ return;
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let idCard = item.nationId
+ let trueName = item.name
+ let type = item.defaultflag
+ let sex = item.sex
+ let age = item.age
+ let classid = item.deptId
+ let classname = item.className
+ let schoolname = item.schoolName
+ let state = 1
+ var id = 0;
+ id = item.id
+
+ wx.navigateTo({
+ url: '/pages/studentMsgDel/studentMsgDel?state='+state+'&classid='+classid+'&classname='+classname+'&schoolname='+schoolname+'&idCard='+idCard+'&trueName='+trueName+'&type='+type +'&sex='+sex +'&age='+age +'&id='+id,
+ })
+ },
+ naviToXytj(){
+ wx.navigateTo({
+ url: '/pages/xytj/xytj',
+ })
+ },
+
+
+ onChange({ detail }) {
+ this.setData({ checked: detail });
+ },
+
+ onShareAppMessage: function() {
+ },
+
+ onPullDownRefresh() {
+ },
+
+ onLoad: function(options) {
+ // 页面初始化 options为页面跳转所带来的参数
+ this.getXyrwList();
+
+ this.setData({
+ loadingHidden: false,
+ })
+ },
+ onReady: function() {
+ // 页面渲染完成
+ wx.setNavigationBarTitle({
+ title: "管理体检人"
+ })
+
+ },
+ onShow: function() {
+ // 页面显示
+ this.getPerList()
+ this.setData({
+ loadingHidden: false,
+ })
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+ onUnload: function() {
+ // 页面关闭
+ },
+
+ // 从身份证号码中提取性别信息
+ getSexFromIdCard: function(idCard){
+ var org_gender = idCard.substring(16, 17);
+ // var sex = org_gender % 2 == 1 ? "男" : "女";
+ var sex = org_gender % 2 == 1 ? 1 : 2;
+
+ return sex; // 这里假设身份证号码长度为18位并按照标准格式存放
+ },
+
+ // 从身份证号码中提取生日信息(格式为YYYYMMDD)
+ getBirthdayFromIdCard: function(idCard){
+ return idCard.substring(6, 14); // 这里假设身份证号码长度为18位并按照标准格式存放
+
+ },
+ // 将字符串类型的生日转换成Date对象
+ convertToDateObject: function(birthdayString){
+ const year = birthdayString.substr(0, 4);
+ const month = birthdayString.substr(4, 2);
+ const day = birthdayString.substr(6, 2);
+
+ return new Date(`${year}-${month}-${day}`);
+
+ },
+
+ // 计算年龄函数
+ calculateAge: function(idCard){
+ // 获取当前日期
+ const currentDate = new Date();
+
+ const birthdate = this.convertToDateObject(this.getBirthdayFromIdCard(idCard));
+ let age;
+
+ if (currentDate >= birthdate && !isNaN(currentDate)) {
+ age = Math.floor((currentDate - birthdate) / (365 * 24 * 60 * 60 * 1000));
+ } else {
+ console.error('无效的身份证号码或者未知错误');
+ }
+
+ return age || '';
+
+ }
+})
\ No newline at end of file
diff --git a/pages/studentMgr/studentMgr.json b/pages/studentMgr/studentMgr.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/studentMgr/studentMgr.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/studentMgr/studentMgr.wxml b/pages/studentMgr/studentMgr.wxml
new file mode 100644
index 0000000..23f6ce1
--- /dev/null
+++ b/pages/studentMgr/studentMgr.wxml
@@ -0,0 +1,139 @@
+
+
+
+
+ 当前批次
+
+ {{ rwname }}
+ 当前无任务
+
+
+
+
+ 加载中...
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 默认体检人
+
+
+
+
+ {{item.nationId}}
+
+
+
+ 暂无体检人信息,请将下园体检的学生身份证号输入下方,再次确认学生的身份信息!
+
+ 身份证号:
+
+
+
+
+ 添加体检人
+
+
+
+
+
+ 学校:
+
+ {{ stulist.schoolName }}
+
+
+
+
+ 班级:
+
+ {{ stulist.className }}
+
+
+
+ 姓名:
+
+ {{ stulist.name }}
+
+
+
+ 身份证:
+
+ {{ stulist.nationId }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/studentMgr/studentMgr.wxss b/pages/studentMgr/studentMgr.wxss
new file mode 100644
index 0000000..812662c
--- /dev/null
+++ b/pages/studentMgr/studentMgr.wxss
@@ -0,0 +1,959 @@
+/* pages/userMgr/userMgr.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ }
+ .content{
+ width: 90%;
+ margin: 0 auto;
+ }
+ .mobileItem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+ }
+ .left{
+ height: 100%;
+ width: 200rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #6306f8; */
+ }
+ .inputf{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #0af1a4; */
+ }
+ .input{
+ flex: 1;
+ font-size: 30rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10c0c; */
+ margin-left: 30rpx;
+ }
+ .confirmItem{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #0e0d0d;
+ }
+ .confirmLeft{
+ height: 100%;
+ width: 200rpx;
+ font-size: 30rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+ align-items: left;
+ /* border: 1rpx solid #6306f8; */
+ }
+
+ .tips{
+ display: flex;
+ justify-content: center; /* 水平居中 */
+ align-items: center; /* 垂直居中 */
+ height: 300rpx; /* 容器高度,根据需要设置 */
+ font-size: 40rpx;
+ }
+ .studentitem{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+ }
+ .zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+ }
+ .up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+ .name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+ }
+ .msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+ .t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ /* color: rgba(45,135,255);
+ background: rgba(226,237,254); */
+ }
+ .mr{
+ font-size: 30rpx;
+ color: #666;
+ }
+ .down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ }
+ .icon{
+ height: 50rpx;
+ display: flex;
+ align-items: center;
+ }
+ .mr{
+ font-size: 33rpx;
+ color: #333;
+ margin-right: 15rpx;
+ }
+ .sw{
+ margin-top: 5rpx;
+ }
+ .btn{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+ }
+
+ .popsearch{
+ margin-right: 15rpx;
+ }
+ .pickempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 80rpx;
+ }
+ .btnview{
+ justify-content: center;
+ display: flex;
+ margin-top: 80rpx;
+
+ }
+ .btnClass {
+ background: #4bc107 !important;
+ color: #fff !important;
+ }
+
+ .banner{
+ margin-bottom: 30rpx;
+ }
+ .slide-image{
+ width: 100%;
+ height: 100%;
+ }
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 20rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ /* border: 1rpx solid #0af1a4; */
+ }
+ .rwempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+ .Stulist{
+ height: 600rpx;
+ width: 500rpx;
+ margin-left: 50rpx;
+ margin-top: 30rpx;
+ /* line-height: 120rpx; */
+ /* border: 20rpx solid #030303; */
+ }
+
+ .itemStu{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+ }
+ .leftStu{
+ width: 30%;
+ font-size: 30rpx;
+ color: #666;
+ text-align-last:justify;
+ text-align:justify;
+ text-justify:distribute-all-lines;
+ }
+ .rightStu{
+ width: 66%;
+ height: 100%;
+ font-size: 30rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+ }
+ .wrapStu{
+ width: 90%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ }
+ .my-input-class {
+ border-radius: 8px; /* 增加圆角边框 */
+ /* border: 1px solid rgb(248, 21, 21); */
+
+ font-size: 35rpx;
+ }
+
+ .banner image {
+ width: 100%;
+ height: 417rpx;
+ }
+
+ .banner video {
+ height: 100%;
+ width: 100%;
+ }
+
+ .m-menu {
+ background: #fff;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ padding-bottom: 0rpx;
+ padding-top: 25rpx;
+ }
+
+ .m-menu .item {
+ width: 150rpx;
+ height: 126rpx;
+ }
+
+ .m-menu image {
+ display: block;
+ width: 58rpx;
+ height: 58rpx;
+ margin: 0 auto;
+ margin-bottom: 12rpx;
+ }
+
+ .m-menu text {
+ display: block;
+ font-size: 24rpx;
+ text-align: center;
+ margin: 0 auto;
+ line-height: 1;
+ color: #333;
+ }
+
+ .a-section {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ color: #333;
+ margin-top: 20rpx;
+ }
+
+ .a-section .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ }
+
+ .a-section .h .txt {
+ padding-right: 30rpx;
+ background-size: 16.656rpx 27rpx;
+ display: inline-block;
+ height: 36rpx;
+ font-size: 33rpx;
+ line-height: 36rpx;
+ }
+
+ .loc_light_icon {
+ color: #000;
+ font-size: 10px;
+ line-height: 30px;
+ text-align: center;
+ margin-top: 10px;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .loc_light {
+ color: #000;
+ font-size: 10px;
+ line-height: 10px;
+ text-align: left;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .dark,
+ .light {
+ color: #000;
+ font-size: 13px;
+ line-height: 18px;
+ text-align: left;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ }
+
+ .dark {
+ background-color: #39a9ed;
+ }
+
+ .light {
+ background-color: #fff;
+ }
+
+
+ .a-location .b{
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .wrap {
+ position: relative;
+ }
+
+ .a-brand .img {
+ position: absolute;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt {
+ position: absolute;
+ z-index: 2;
+ padding: 27rpx 31rpx;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt .brand {
+ display: block;
+ font-size: 33rpx;
+ height: 43rpx;
+ color: #fff;
+ }
+
+ .a-brand .mt .price, .a-brand .mt .unit {
+ font-size: 25rpx;
+ color: #fff;
+ }
+
+ .a-brand .item-1 {
+ float: left;
+ width: 375rpx;
+ height: 252rpx;
+ overflow: hidden;
+ border-top: 1rpx solid #fff;
+ margin-left: 1rpx;
+ }
+
+ .a-brand .item-1:nth-child(2n+1) {
+ margin-left: 0;
+ width: 374rpx;
+ }
+
+ .a-brand .item-1 .img {
+ width: 375rpx;
+ height: 253rpx;
+ }
+
+ .a-coupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-coupon .b .item {
+ position: relative;
+ height: 200rpx;
+ width: 700rpx;
+ background: linear-gradient(to right, #cfa568, #e3bf79);
+ margin-bottom: 10rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ padding-top: 30rpx;
+ }
+
+ .a-coupon .b .tag {
+ height: 32rpx;
+ background: #a48143;
+ padding-left: 16rpx;
+ padding-right: 16rpx;
+ position: absolute;
+ left: 20rpx;
+ color: #fff;
+ top: 20rpx;
+ font-size: 20rpx;
+ text-align: center;
+ line-height: 32rpx;
+ }
+
+ .a-coupon .b .content {
+ margin-top: 24rpx;
+ margin-left: 40rpx;
+ display: flex;
+ margin-right: 40rpx;
+ flex-direction: row;
+ }
+
+ .a-coupon .b .content .left {
+ flex: 1;
+ }
+
+ .a-coupon .b .discount {
+ font-size: 50rpx;
+ color: #b4282d;
+ }
+
+ .a-coupon .b .min {
+ color: #fff;
+ }
+
+ .a-coupon .b .content .right {
+ width: 400rpx;
+ }
+
+ .a-coupon .b .name {
+ font-size: 44rpx;
+ color: #fff;
+ margin-bottom: 14rpx;
+ }
+
+ .a-coupon .b .desc {
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .a-coupon .b .time {
+ font-size: 24rpx;
+ color: #fff;
+ line-height: 30rpx;
+ }
+
+ .a-groupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-groupon .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 244rpx;
+ width: 710rpx;
+ }
+
+ .a-groupon .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 220rpx;
+ height: 220rpx;
+ }
+
+ .a-groupon .b .right {
+ float: left;
+ height: 244rpx;
+ width: 476rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-groupon .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 244rpx;
+ width: 476rpx;
+ }
+
+ .a-groupon .b .name {
+ float: left;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-groupon .b .desc {
+ width: 476rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-groupon .b .price {
+ width: 476rpx;
+ display: flex;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-groupon .b .counterPrice {
+ text-decoration: line-through;
+ font-size: 28rpx;
+ color: #999;
+ }
+
+ .a-groupon .b .retailPrice {
+ margin-left: 30rpx;
+ font-size: 28rpx;
+ color: #a78845;
+ }
+
+ .a-new .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ padding: 0 31rpx 45rpx 31rpx;
+ }
+
+ .a-new .b .item {
+ float: left;
+ width: 302rpx;
+ margin-top: 10rpx;
+ margin-left: 21rpx;
+ margin-right: 21rpx;
+ }
+
+ .a-new .b .item-b {
+ margin-left: 42rpx;
+ }
+
+ .a-new .b .img {
+ width: 302rpx;
+ height: 302rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-new .b .name {
+ text-align: center;
+ display: block;
+ width: 302rpx;
+ height: 35rpx;
+ margin-bottom: 14rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .a-new .b .price {
+ display: block;
+ text-align: center;
+ line-height: 30rpx;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .a-popular {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-popular .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 264rpx;
+ width: 710rpx;
+ }
+
+ .a-popular .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 240rpx;
+ height: 240rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-popular .b .right {
+ float: left;
+ height: 264rpx;
+ width: 456rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-popular .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 264rpx;
+ width: 456rpx;
+ }
+
+ .a-popular .b .name {
+ width: 456rpx;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-popular .b .desc {
+ width: 456rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-popular .b .price {
+ width: 456rpx;
+ display: block;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-topic .b {
+ height: 533rpx;
+ width: 750rpx;
+ padding: 0 0 48rpx 0;
+ }
+
+ .a-topic .b .list {
+ height: 533rpx;
+ width: 750rpx;
+ white-space: nowrap;
+ }
+
+ .a-topic .b .item {
+ display: inline-block;
+ height: 533rpx;
+ width: 680.5rpx;
+ margin-left: 30rpx;
+ overflow: hidden;
+ }
+
+ .a-topic .b .item:last-child {
+ margin-right: 30rpx;
+ }
+
+ .a-topic .b .img {
+ height: 387.5rpx;
+ width: 680.5rpx;
+ margin-bottom: 30rpx;
+ }
+
+ .a-topic .b .np {
+ height: 35rpx;
+ margin-bottom: 13.5rpx;
+ color: #333;
+ font-size: 30rpx;
+ }
+
+ .a-topic .b .np .price {
+ margin-left: 20.8rpx;
+ color: #ab956d;
+ }
+
+ .a-topic .b .desc {
+ display: block;
+ height: 30rpx;
+ color: #999;
+ font-size: 24rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .good-grid {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ font-size: 33rpx;
+ color: #333;
+ }
+
+ .good-grid .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .b .item {
+ float: left;
+ background: #fff;
+ width: 365rpx;
+ margin-bottom: 6.25rpx;
+ height: 452rpx;
+ overflow: hidden;
+ text-align: center;
+ }
+
+ .good-grid .b .item .a {
+ height: 452rpx;
+ width: 100%;
+ }
+
+ .good-grid .b .item-b {
+ margin-left: 6.25rpx;
+ }
+
+ .good-grid .item .img {
+ margin-top: 20rpx;
+ width: 302rpx;
+ height: 302rpx;
+ }
+
+ .good-grid .item .name {
+ display: block;
+ width: 365.625rpx;
+ padding: 0 20rpx;
+ overflow: hidden;
+ height: 35rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .good-grid .item .price {
+ display: block;
+ width: 365.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .good-grid .t {
+ height: 100rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .search {
+ height: 88rpx;
+ width: 100%;
+ padding: 0 30rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ }
+
+ .search .van-icon-search {
+ line-height: 59rpx;
+ }
+
+ .search .input {
+ width: 690rpx;
+ height: 56rpx;
+ background: #ededed;
+ border-radius: 8rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .search .txt {
+ height: 42rpx;
+ line-height: 42rpx;
+ color: #666;
+ padding-left: 10rpx;
+ font-size: 30rpx;
+ }
+
+ .bottom-btn {
+ position: fixed;
+ float: middle;
+ left: 0;
+ bottom: 0;
+ z-index: 10;
+ width: 100%;
+ height: 100rpx;
+ display: flex;
+ background: #fff;
+ margin-bottom: 50rpx;
+ margin-right: 100rpx;
+ }
+ .bottom-btn .c {
+ float: middle;
+ background: #7232dd;
+ height: 80rpx;
+ line-height: 80rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 30px 30px 30px 30px;
+ margin-right: 50rpx;
+ margin-left: 50rpx;
+ }
+
+ .bottom-btn .l {
+ float: left;
+ height: 100rpx;
+ width: 162rpx;
+ border: 1px solid #f4f4f4;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .bottom-btn .l.l-collect {
+ border-right: none;
+ border-left: none;
+ text-align: center;
+ width: 90rpx;
+ }
+
+ .bottom-btn .l.l-collect .icon {
+ position: absolute;
+ top: 28rpx;
+ left: 20rpx;
+ font-size: 44rpx;
+ }
+
+ .bottom-btn .l.l-kefu {
+ position: relative;
+ height: 54rpx;
+ width: 63rpx;
+ }
+
+ .bottom-btn .l.l-cart .box {
+ position: relative;
+ height: 60rpx;
+ width: 60rpx;
+
+ }
+
+ .bottom-btn .l.l-cart .cart-count {
+ height: 28rpx;
+ width: 28rpx;
+ z-index: 10;
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: #7232dd;
+ text-align: center;
+ font-size: 18rpx;
+ color: #fff;
+ line-height: 28rpx;
+ border-radius: 50%;
+ }
+
+ .bottom-btn .l.l-cart .icon {
+ position: absolute;
+ top: 10rpx;
+ left: 0;
+ font-size: 44rpx;
+ }
+
+
+
+ .bottom-btn .r {
+ border: 1px solid #CCB5F2;
+ background: #CCB5F2;
+ float: left;
+ height: 100rpx;
+ line-height: 96rpx;
+ flex: 1;
+ text-align: center;
+ color: #fff;
+ border-radius: 15px 0px 0px 15px;
+
+ }
+
+
\ No newline at end of file
diff --git a/pages/studentMsgDel/studentMsgDel.js b/pages/studentMsgDel/studentMsgDel.js
new file mode 100644
index 0000000..ca173b6
--- /dev/null
+++ b/pages/studentMsgDel/studentMsgDel.js
@@ -0,0 +1,818 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+const user = require('../../utils/user.js');
+
+//获取应用实例
+const app = getApp();
+//var app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ //默认为0,从根节点开始
+ parentid: 0,
+ //学生归属的学校id
+ deptid: 0,
+
+ //班级选择
+ classxpList:[],
+ classxpListBackup: [],
+ classIndexes: '',
+ classcurrent: '',
+ classSwitch: false,
+ //学校选择
+ schoolxpList:[],
+ schoolxpListBackup: [],
+ schoolIndexes: '',
+ schoolcurrent: '',
+ schoolSwitch: false,
+
+ //体检部门信息
+ schoolname: '',
+ classname: '',
+ studentname: '',
+ xytjinfo: {
+ jdid: '',
+ jdname: '',
+ sqid: '',
+ sqname: '',
+ schoolid: '',
+ schoolname: '',
+ classid: '',
+ classname: ''
+ },
+
+ // show:false,
+ // show2:false,
+ // show3:false,
+ showsex: false,
+ relateSex:[
+ {name:'男',value:'1'},
+ {name:'女',value:'2'},
+ ],
+ // relate:[
+ // {name:'本人',relate:'0'},
+ // {name:'子女',relate:'1'},
+ // {name:'夫妻',relate:'2'},
+ // {name:'父母',relate:'3'},
+ // {name:'朋友',relate:'4'},
+ // ],
+ // cardType: [
+ // // { name: '病历卡', value: 0 },
+ // { name: '就诊卡', value: 1 ,msg:"请输入就诊卡号"},
+ // // { name: '保障卡', value: 3 },
+ // { name: '社保卡', value: 1 ,msg:'请输入社保卡号'},
+ // { name: '身份证(电子健康卡)', value: 4 ,msg:'请输入身份证号码'},
+ // ],
+ state:'',//新增编辑状态
+ type:'',//是否默认
+ checked: '',//默认按钮选中状态
+ idCard:'',//身份证
+ trueName:'',//姓名
+ sex: '', //性别
+ sexdisp: '', //性别显示
+ age: '', //年龄
+ id: 0, //学生表主键id
+ xschoolname: '',
+ xclassname: '',
+ xclassid: '',
+
+ sfzList:[],
+ msg:"请输入号码",
+ relateNmae:'',//关系名
+ relateId:'',//关系值
+ carNum:'',//就诊卡
+ title:'',//标题
+ cardT:'',//证件类型
+ disabled:'',
+ zjh:'',//证件号
+ usrPatid:'' //学生就诊卡
+ },
+
+ showPopSex(){
+ this.setData({ showsex: true });
+ },
+
+ onCloseSex(){
+ this.setData({ showsex: false });
+ },
+
+ confirmSex(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ sex : item.value,
+ sexdisp: item.name,
+ showsex: false
+ })
+ },
+
+
+ onChange({ detail }) {
+ this.setData({ checked: detail });
+ },
+ del(){
+ var userid = 0;
+ userid = this.data.id;
+
+ wx.showModal({
+ title: '',
+ content: '确定删除此体检人信息吗?',
+ cancelText:"否",
+ confirmText:'是',
+
+ success: function(res) {
+ if (res.confirm) {
+ util.requestForm(api.deletestudent, {
+ id: userid
+ }, "DELETE")
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("deletestudent res:");
+ console.log(res);
+ console.log("deletestudent resdata:");
+ console.log(res.data);
+
+ wx.showToast({
+ title: '删除成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+
+ }
+ });
+ }
+ }
+ })
+ },
+ save(){
+ //是否默认体检人
+ if(this.data.checked == true){
+ this.setData({
+ type:0
+ })
+ }else{
+ this.setData({
+ type:1
+ })
+ }
+
+ // let relate = this.data.relateId
+ // let cardType = this.data.cardV
+ // let medical_card = this.data.carNum
+ let that = this;
+ let cardNum = this.data.idCard
+ let type = this.data.type
+ let hzxm =this.data.trueName
+ let sex = this.getSexFromIdCard(this.data.idCard)
+ let age = this.calculateAge(this.data.idCard)
+ let userid = this.data.id;
+ let classid = this.data.xytjinfo.classid;
+ let classname = this.data.xytjinfo.classname;
+ let schoolname = this.data.xytjinfo.schoolname;
+
+ console.log(hzxm)
+ console.log(cardNum)
+ console.log(type)
+ console.log(sex)
+ console.log(age)
+ console.log(this.data.state)
+
+ //state 0 -- 新增
+ if(this.data.state == 0){
+ if(cardNum ==''){
+ wx.showModal({
+ content: '请填写完整身份证号码',
+ showCancel: false,
+ })
+ }else{
+ util.requestPost(api.createstudent, {
+ openid: app.globalData.openId,
+ defaultflag: type,
+ name: hzxm,
+ sex: sex,
+ age: age,
+ deptId: classid,
+ className: classname,
+ schoolName: schoolname,
+ nationId: cardNum
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("createstudent res:");
+ console.log(res);
+ console.log("createstudent resdata:");
+ console.log(res.data);
+
+ if(type == 0)
+ {
+ app.globalData.gdefaultflag = type;
+ app.globalData.gname = hzxm;
+ app.globalData.gsex = sex;
+ app.globalData.gage = age;
+ app.globalData.gdeptId = classid;
+ app.globalData.gclassName = classname;
+ app.globalData.gschoolName = schoolname;
+ app.globalData.gnationId = cardNum;
+ }
+
+ //自动建档并关联到父openid
+ that.linkUser(hzxm, cardNum);
+
+ wx.showToast({
+ title: '添加成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+
+ }
+ else{
+ wx.showToast({
+ title: res.msg,
+ icon:'error'
+ })
+ }
+ });
+ }
+ }else{
+
+ //如果已经是默认体检人,不允许改变,需要先设置其他人为默认
+ console.log("默认 体检人");
+ console.log(app.globalData.gnationId);
+ if(type == 1 && (app.globalData.gnationId === cardNum) ){
+ wx.showModal({
+ content: '至少一个人为默认体检人',
+ showCancel: false,
+ })
+ }else{
+ wx.showModal({
+ title: '',
+ content: '确定更改此体检人信息吗?',
+ cancelText:"否",
+ confirmText:'是',
+ success: function(res) {
+ if (res.confirm) {
+
+ util.requestPost(api.updatestudent, {
+ openid: app.globalData.openId,
+ defaultflag: type,
+ name: hzxm,
+ sex: sex,
+ nationId: cardNum,
+ id: userid,
+ deptId: classid,
+ className: classname,
+ schoolName: schoolname,
+ age: age
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("updatestudent res:");
+ console.log(res);
+ console.log("updatestudent resdata:");
+ console.log(res.data);
+
+ console.log(hzxm)
+ console.log(cardNum)
+ console.log(type)
+ console.log(sex)
+ console.log(age)
+
+ if(type == 0){
+ app.globalData.gdefaultflag = type;
+ app.globalData.gname = hzxm;
+ app.globalData.gsex = sex;
+ app.globalData.gage = age;
+ app.globalData.gdeptId = classid;
+ app.globalData.gclassName = classname;
+ app.globalData.gschoolName = schoolname;
+ app.globalData.gnationId = cardNum;
+ }
+ wx.showToast({
+ title: '编辑成功',
+ icon:'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ },1000)
+
+ }
+ else{
+ wx.showToast({
+ title: res.msg,
+ icon:'error'
+ })
+ }
+
+ });
+ }
+ }
+ })
+ }
+
+ }
+ },
+
+ linkUser:function(gname, xPatid){
+ //第二步 关联到父openid
+ console.log(xPatid, 'usrPatid');
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/patientBindWXUser?cardno&cardtype&openid&relate&type&hzxm',
+ method:"GET",
+ data:{
+ cardno: xPatid,
+ cardtype: '1',
+ relate: '1', //都是子女
+ type: '1', //不当做默认就诊人
+ openid: app.globalData.openId,
+ hzxm: gname
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ wx.showToast({
+ title: '关联就诊人成功',
+ icon:'success'
+ })
+ return true;
+ }else{
+ wx.showToast({
+ title: "关联就诊人失败",
+ icon:'error'
+ })
+ return false;
+ }
+ }
+ })
+ },
+
+ checkUser(gname, gnationId){
+ let that = this;
+ //查档
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/his/getPatient?cardno&cardtype&hzxm',
+ method:"GET",
+ data:{
+ cardno: gnationId,
+ cardtype: '4', //只支持身份证建档
+ hzxm: gname
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode == 0){
+ console.log(res.data,'exist user')
+ console.log(res.data.list[0].brzt,'exist user')
+ if(res.data.list[0].brzt == 'R'){
+ //需要建档
+ //第一步 先做身份证建档
+ console.log("开始建档");
+ util.requestForm(api.addUser, {
+ hzxm: gname,
+ sfzh: gnationId,
+ lxdh: ''
+ })
+ .then(function(res) {
+ console.log(res, 'adduser res');
+ if (res.errCode == 0) {
+ console.log(res.list[0].patid, 'patid');
+
+ that.setData({
+ usrPatid: res.list[0].patid
+ })
+ wx.showToast({
+ title: '自动建档成功',
+ icon:'success'
+ })
+ // that.linkUser(gname, res.list[0].patid);
+
+ that.linkUser(gname, gnationId);
+ }
+ else{
+ wx.showToast({
+ title: res.errMsg,
+ icon:'error'
+ })
+ return false;
+ }
+ });
+ }
+ else{
+ //已经建档
+ // that.linkUser(gname, res.data.list[0].patid);
+ that.linkUser(gname, gnationId);
+ }
+ }else{
+ console.log(res.data,'error for check user')
+ }
+ },
+ fail: (res)=> {
+ console.log(res.data,'exception for check user')
+ return false;
+ }
+ })
+ },
+
+ showModal(error) {
+ wx.showModal({
+ content: error.msg,
+ showCancel: false,
+ })
+ },
+ trueName:function(e){
+ this.setData({
+ trueName:e.detail.value
+ })
+ },
+ change_trueName(e){
+ let hzxm =e.detail.value.replace(/\./g,'·')
+ hzxm =hzxm.replace(/\。/g,'·')
+ this.setData({
+ trueName:hzxm
+ })
+ },
+ zjh:function(e){
+ this.setData({
+ zjh:e.detail.value
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
+ // url: '/pages/studentMsgDel/studentMsgDel?state='+state+'&idCard='+idCard+'&trueName='+trueName+'&type='+type +'&sex='+sex +'&age='+age+'&state='+state,
+ console.log(options,"编辑")
+ this.setData({
+ state:options.state,
+ id: options.id
+ })
+
+ if(options.sex == 1){
+ this.setData({
+ sexdisp: '男'
+ })
+ }else if(options.sex == 2){
+ this.setData({
+ sexdisp: '女'
+ })
+ }
+
+ if(options.type == 0){
+ this.setData({
+ checked:true,
+ type: 0
+ })
+ }else {
+ this.setData({
+ checked:false,
+ type: 1
+ })
+ }
+ if(options.state == 0){
+ this.setData({
+ title:"添加体检人"
+ })
+ }else{
+ this.setData({
+ title:"编辑体检人",
+ trueName:options.trueName,
+ idCard:options.idCard,
+ sex:options.sex,
+ age:options.age,
+ id: options.id,
+ schoolname: options.schoolname,
+ classname: options.classname,
+ disabled:"disabled"
+ })
+ }
+
+ //设置值
+ this.data.xytjinfo.schoolname = options.schoolname;
+ this.data.xytjinfo.classname = options.classname;
+ this.data.xytjinfo.classid = options.classid;
+ this.schoolList();
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: this.data.title
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ },
+
+ //班级
+ classList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("classinfo res:");
+ console.log(res);
+ console.log("classinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ classxpList: res.data,
+ classxpListBackup: res.data
+ });
+ }
+ });
+ },
+ //开启控件
+ classOn: function(){
+ this.setData({
+ classSwitch: true
+ })
+ },
+ //关闭控件
+ classShutdown: function(){
+ let List = [];
+ this.setData({
+ classSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.classxpListBackup.length;i++){
+ List.push(this.data.classxpListBackup[i]);
+ }
+ this.setData({
+ classxpList: List,
+ classIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setclassIndexes(event){
+ this.setData({
+ classIndexes: event.detail,
+ });
+ console.log("classIndexes:" + event.detail)
+ },
+ //点击确定搜索时触发事件
+ classGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.classIndexes){
+ this.data.classxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.classIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.classxpListBackup
+ }
+ this.setData({
+ classcurrent: this.data.classIndexes,
+ classxpList: row
+ })
+ },
+ //用户选择某个选项后触发事件
+ classIdentification(event){
+ let List = [];
+ let Backups = this.data.classxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.classid = event.detail.value.id;
+ this.data.xytjinfo.classname = event.detail.value.name;
+ this.setData({ classname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ // this.setData({ deptid: event.detail.value.id});
+ // this.studentList();
+
+ console.log("set select classid:" + this.data.xytjinfo.classid);
+ console.log("set select classname:" + this.data.xytjinfo.classname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ classxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.classxpList);
+ console.log("pick after list backup");
+ console.log(this.data.classxpListBackup);
+ this.classShutdown();
+ },
+ //学校
+ schoolList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("schoolinfo res:");
+ console.log(res);
+ console.log("schoolinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ schoolxpList: res.data,
+ schoolxpListBackup: res.data
+ });
+ }
+ });
+ },
+ //开启控件
+ schoolOn: function(){
+ this.setData({
+ schoolSwitch: true
+ })
+ },
+ //关闭控件
+ schoolShutdown: function(){
+ let List = [];
+ this.setData({
+ schoolSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.schoolxpListBackup.length;i++){
+ List.push(this.data.schoolxpListBackup[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ schoolIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setschoolIndexes(event){
+ this.setData({
+ schoolIndexes: event.detail,
+ });
+ console.log("schoolIndexes:" + event.detail)
+ },
+ //点击确定搜索时触发事件
+ schoolGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.schoolIndexes){
+ this.data.schoolxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.schoolIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.schoolxpListBackup
+ }
+ this.setData({
+ schoolcurrent: this.data.schoolIndexes,
+ schoolxpList: row
+ })
+ },
+ //用户选择某个选项后触发事件
+ schoolIdentification(event){
+ let List = [];
+ let Backups = this.data.schoolxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.schoolid = event.detail.value.id;
+ this.data.xytjinfo.schoolname = event.detail.value.name;
+ this.setData({ schoolname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.classList();
+
+ console.log("set select schoolid:" + this.data.xytjinfo.schoolid);
+ console.log("set select schoolname:" + this.data.xytjinfo.schoolname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.schoolxpList);
+ console.log("pick after list backup");
+ console.log(this.data.schoolxpListBackup);
+ this.schoolShutdown();
+ },
+
+
+ // 从身份证号码中提取性别信息
+ getSexFromIdCard: function(idCard){
+ var org_gender = idCard.substring(16, 17);
+ // var sex = org_gender % 2 == 1 ? "男" : "女";
+ var sex = org_gender % 2 == 1 ? 1 : 2;
+
+ return sex; // 这里假设身份证号码长度为18位并按照标准格式存放
+ },
+
+ // 从身份证号码中提取生日信息(格式为YYYYMMDD)
+ getBirthdayFromIdCard: function(idCard){
+ return idCard.substring(6, 14); // 这里假设身份证号码长度为18位并按照标准格式存放
+
+ },
+ // 将字符串类型的生日转换成Date对象
+ convertToDateObject: function(birthdayString){
+ const year = birthdayString.substr(0, 4);
+ const month = birthdayString.substr(4, 2);
+ const day = birthdayString.substr(6, 2);
+
+ return new Date(`${year}-${month}-${day}`);
+
+ },
+
+ // 计算年龄函数
+ calculateAge: function(idCard){
+ // 获取当前日期
+ const currentDate = new Date();
+
+ const birthdate = this.convertToDateObject(this.getBirthdayFromIdCard(idCard));
+ let age;
+
+ if (currentDate >= birthdate && !isNaN(currentDate)) {
+ age = Math.floor((currentDate - birthdate) / (365 * 24 * 60 * 60 * 1000));
+ } else {
+ console.error('无效的身份证号码或者未知错误');
+ }
+
+ return age || '';
+
+ },
+
+ // 调用示例
+ // const idCardNumber = 'xxxxxxxxx'; // 输入真实的身份证号码
+ // console.log(calculateAge(idCardNumber));
+
+
+})
diff --git a/pages/studentMsgDel/studentMsgDel.json b/pages/studentMsgDel/studentMsgDel.json
new file mode 100644
index 0000000..b67f3d1
--- /dev/null
+++ b/pages/studentMsgDel/studentMsgDel.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-switch": "@vant/weapp/switch/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/studentMsgDel/studentMsgDel.wxml b/pages/studentMsgDel/studentMsgDel.wxml
new file mode 100644
index 0000000..f79c64b
--- /dev/null
+++ b/pages/studentMsgDel/studentMsgDel.wxml
@@ -0,0 +1,203 @@
+
+
+
+ 请认真填写体检人信息
+
+
+
+
+ 学校
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 无数据
+
+
+
+
+
+
+
+ 班级
+
+
+
+
+
+
+
+
+ 搜索
+
+
+ 无数据
+
+
+
+
+
+
+
+
+ 姓名
+
+
+
+
+
+
+
+ 身份证号
+
+
+
+
+
+
+ 设为默认体检人
+
+
+
+
+ 添加体检人请使用儿童的身份证号。
+ 保存
+ 删除体检人
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/studentMsgDel/studentMsgDel.wxss b/pages/studentMsgDel/studentMsgDel.wxss
new file mode 100644
index 0000000..c0c3f20
--- /dev/null
+++ b/pages/studentMsgDel/studentMsgDel.wxss
@@ -0,0 +1,225 @@
+/* pages/userMsgDel/userMsgDel.wxss */
+.my-input-class {
+ border-radius: 8px; /* 增加圆角边框 */
+ /* border: 1px solid rgb(248, 21, 21); */
+
+ font-size: 35rpx;
+}
+.inputf{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #0af1a4; */
+}
+
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+.title{
+ height: 120rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 120rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left{
+ height: 100%;
+ width: 140rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #6306f8; */
+}
+.input{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ /* border: 1rpx solid #f10c0c; */
+ margin-left: 30rpx;
+}
+.inputs{
+ display: flex !important;
+
+}
+.sr1{
+ flex:1;
+ padding-left:43px;
+ box-sizing: border-box;
+}
+.add{
+ width: 40px;
+ height: 25px;
+ text-align: center;
+ line-height: 25px;
+ /* border:1px solid #eee; */
+ border-radius: 4px;
+ font-size: 13px;
+ margin-left: 3px;
+ background-color: #006eff;
+ color:#fff;
+}
+.sp{
+ display: flex;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input2{
+ flex: 1;
+ height: 100%;
+ font-size: 30rpx;
+ color: #666;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+}
+.input3{
+ flex: 1;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+ margin-left: 30rpx;
+}
+.sr{
+ border: 0;
+
+ /* border: 1rpx solid #f50808; */
+
+}
+.placeholder{
+ font-size: 30rpx;
+ /* border: 1rpx solid #f50808; */
+
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.popWrap :last-child{
+ border: none;
+}
+.title1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 80rpx;
+ text-align: center
+}
+.msgItem1{
+ height: 160rpx;
+ width: 80%;
+ margin: 0 auto;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.kUp{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+}
+.k1{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #333;
+}
+.k2{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ /* margin-left: 10rpx; */
+}
+.KDown{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #666;
+}
+.msgItem{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ text-align: center;
+ line-height: 80rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left1{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.left1{
+ height: 100%;
+ width: 400rpx;
+}
+.switch{
+ height: 100%;
+ width: 100rpx;
+ display:flex;
+ align-items: center;
+ justify-content: center;
+}
+.msgDes{
+ height: 180rpx;
+ width: 100%;
+ padding: 20rpx 15rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ margin-top: 10rpx;
+ background: rgba(247,247,248);
+ font-size: 30rpx;
+ color: #666;
+ line-height: 50rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ margin-top: 30rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(3,112,255);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+
+
diff --git a/pages/topay/topay.js b/pages/topay/topay.js
new file mode 100644
index 0000000..169691f
--- /dev/null
+++ b/pages/topay/topay.js
@@ -0,0 +1,153 @@
+var app = getApp()
+Page({
+ data: {
+ showRight:false,
+ radioValue:'',
+ orderId:'',
+ money:'',
+ paramsData:{},
+ leate:'',
+ dataList: [],
+ show1:false,
+ options1:{},
+ showtips:false,
+ list:{}
+ },
+
+ radioChange(e) {
+ const dataList = this.data.dataList
+ for (let i = 0, len = dataList.length; i < len; ++i) {
+ dataList[i].checked = dataList[i].value === e.detail.value
+ }
+ app.globalData.radioVal = e.detail.value
+ this.setData({showRight:true,radioValue:e.detail.value})
+ },
+ toChat(){
+ this.setData({
+ showtips: true
+ });
+
+ if(this.data.radioValue!=''){
+ app.globalData.paramsData = this.data.paramsData
+ if(this.data.radioValue==0){
+ wx.navigateToMiniProgram({
+ appId: 'wxe183cd55df4b4369',
+ // path:"auth/pages/bindcard/auth/index?openType=getAuthCode&cityCode=652800&channel=AAE0HBXIxnvWQyQR_gXP8rhD&orgChnlCrtfCodg=BqK1kMStlhVDgN2uHf4EsLK/F2LjZPYJ81nK2eYQqxv0IyCmhxf/THj7Z767n/jc&orgCodg=H65280100086&bizType=04107&orgAppId=1GRUDB4KB2BE3F60C80A0000CF92F159",
+ path:"auth/pages/bindcard/auth/index?openType=getAuthCode&cityCode=652800&channel=AAE0HBXIxnvWQyQR_gXP8rhD&orgChnlCrtfCodg=BqK1kMStlhVDgN2uHf4EsLK/F2LjZPYJ81nK2eYQqxv0IyCmhxf/THj7Z767n/jc&orgCodg=H65280100086&bizType=04107&orgAppId=1HR3CJDB700675430B0A000085775E9C",
+
+ //develop开发版;trial体验版;release正式版
+ envVersion: 'release',
+ success(res) {
+ // console.log("跳转小程序成功!",res);
+ }
+ })
+ }else{
+ app.PreSettlement()
+ }
+ }
+ },
+
+
+ toPayment(){
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+
+ //监测app.js中show变化
+ watchBack(name, value) {
+ if (name === 'show') {
+ this.setData({
+ show1: value,
+ });
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ app.watch('show', this.watchBack)
+ wx.setNavigationBarTitle({
+ title: '订单支付'
+ })
+ let a = JSON.parse(options.obj)
+ // console.log(a,'aa')
+ app.globalData.paramsData1 = a
+
+ this.setData({
+ orderId:options.orderId,
+ money:options.money,
+ paramsData:a,
+ options1:options,
+ // show1:app.globalData.show
+ })
+ },
+
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ let obj = [
+ {value: '0', name: '医保支付',icon:false}
+ ]
+ let obj1 =[
+ {value: '1', name: '微信支付',icon:true}
+ ]
+ console.log(this.data.paramsData, "paramsdata");
+ if(this.data.paramsData.memo == '体检开单写入'){
+ this.setData({
+ leate: 1,
+ dataList:obj1
+ })
+ }else{
+ this.setData({
+ dataList:obj
+ })
+ }
+ },
+
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/topay/topay.json b/pages/topay/topay.json
new file mode 100644
index 0000000..cacec98
--- /dev/null
+++ b/pages/topay/topay.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-dialog": "@vant/weapp/dialog/index"
+ },
+ "navigationBarBackgroundColor": "#efedef"
+}
\ No newline at end of file
diff --git a/pages/topay/topay.wxml b/pages/topay/topay.wxml
new file mode 100644
index 0000000..047889a
--- /dev/null
+++ b/pages/topay/topay.wxml
@@ -0,0 +1,67 @@
+
+
+
+
+ 订单号 :
+ {{orderId}}
+
+
+ 订单名称 :
+ 门诊缴费
+
+
+ 应付金额 :
+ {{money}}
+
+
+ 还需支付 :
+ {{money}}
+
+
+
+
+
+
+
+
+
+ 结算处理中,请稍后...
+
+
+
+
+
+ 返回
+
+
+
+ 去缴费
+
+
+
+ 去缴费
+
+
+
+
+
+
+
+
+
+ 加载中...
+
+
+
diff --git a/pages/topay/topay.wxss b/pages/topay/topay.wxss
new file mode 100644
index 0000000..e367728
--- /dev/null
+++ b/pages/topay/topay.wxss
@@ -0,0 +1,117 @@
+/* pages/topay/topay.wxss */
+.topay{
+ width: 100%;
+ height: 100vh;
+ background-color: #f2f0f4;
+}
+.lists{
+ height: 80%;
+ width: 100%;
+ background-color: #fdfcff;
+}
+.list{
+ width: 100%;
+ height: 90rpx;
+ border-bottom:2rpx solid #eee;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 28rpx;
+ padding:0 20rpx;
+ box-sizing: border-box;
+}
+.text{
+ color:#333;
+ font-size: 28rpx;
+ font-weight: 600;
+}
+.list1{
+ margin-top: 10rpx;
+ border-top:2rpx solid #eee;
+}
+.may{
+ font-weight: 600;
+}
+.mayTO{
+ color:#c58265;
+ font-weight: 600;
+}
+
+.wx-radio-input {
+ width: 36rpx !important;
+ height: 36rpx !important;
+}
+.list2{
+ padding:0 10rpx 0 20rpx !important;
+ color:#333;
+ font-weight: 600;
+}
+.image{
+ display: flex;
+ align-items: center;
+}
+.img{
+ width: 90rpx;
+ height: 90rpx;
+}
+/* .tips{
+ margin-top: 200rpx;
+ margin-left: 120rpx;
+ font-size: 40rpx;
+
+} */
+.tips{
+ display: flex;
+ justify-content: center; /* 水平居中 */
+ align-items: center; /* 垂直居中 */
+ height: 300rpx; /* 容器高度,根据需要设置 */
+ font-size: 40rpx;
+}
+
+.arrow{
+ display: flex;
+ justify-content: center;
+ margin-top: 30rpx;
+}
+.left{
+ width: 600rpx;
+ display: flex;
+ justify-content: space-between;
+}
+.right{
+ display: flex;
+ align-items: center;
+ height: 60rpx;
+}
+.right>van-icon{
+ font-size: 60rpx;
+}
+.right1>van-icon{
+ color:#e2e1e3;
+ font-size: 60rpx;
+}
+.img1{
+ width: 80rpx;
+ height: 50rpx;
+ margin-right: 10rpx;
+}
+
+.noSupport{
+ margin-top: 30rpx;
+ margin-left: 30rpx;
+}
+.ti{
+ color:red;
+ font-size: 32rpx;
+}
+.texts{
+ font-size: 28rpx;
+ margin-top: 4rpx;
+}
+.loading{
+ width: 100%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
\ No newline at end of file
diff --git a/pages/userMgr/userMgr.js b/pages/userMgr/userMgr.js
new file mode 100644
index 0000000..35c5b00
--- /dev/null
+++ b/pages/userMgr/userMgr.js
@@ -0,0 +1,130 @@
+// pages/userMgr/userMgr.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ list:[],
+ loadingHidden: true,
+ },
+ getPerList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
+ method:"GET",
+ data:{
+ openid:app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ let that = this
+ setTimeout(function(){
+ let data = res.data
+ data.map((item,index)=>{
+ if(item.TYPE == 0){
+ data.unshift(data.splice(index , 1)[0]);
+ }
+ })
+ if(data == ''){
+ that.setData({
+ flag:false
+ })
+ }else{
+ that.setData({
+ flag:true,
+ list:data
+ })
+ }
+ that.setData({
+ loadingHidden: true
+ });
+ console.log(data,"患者")
+ },500)
+ }
+ })
+ },
+ naviToAdd(){
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state='+state,
+ })
+ },
+ naviToDet(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let idCard = item.ID_CARD
+ let carNum = item.MEDICAL_CARD
+ let painId = item.PATIENT_ID
+ let relate = item.RELATE
+ let trueName = item.TRUE_NAME
+ let type = item.TYPE
+ let state = 1
+ wx.navigateTo({
+ url: '/pages/userMsgDel/userMsgDel?state='+state+'&idCard='+idCard+'&carNum='+carNum+'&painId='+painId+'&relate='+relate+'&trueName='+trueName+'&type='+type+'&state='+state,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ this.setData({
+ loadingHidden: false,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: "管理就诊人"
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ this.getPerList()
+ this.setData({
+ loadingHidden: false,
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/userMgr/userMgr.json b/pages/userMgr/userMgr.json
new file mode 100644
index 0000000..3c413c9
--- /dev/null
+++ b/pages/userMgr/userMgr.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "van-switch": "@vant/weapp/switch/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/userMgr/userMgr.wxml b/pages/userMgr/userMgr.wxml
new file mode 100644
index 0000000..5fcf5a0
--- /dev/null
+++ b/pages/userMgr/userMgr.wxml
@@ -0,0 +1,32 @@
+
+
+
+ 加载中...
+
+
+
+
+
+ {{item.TRUE_NAME}}
+
+ 本人
+ 子女
+ 夫妻
+ 父母
+ 朋友
+
+ 默认就诊人
+
+
+
+
+ {{item.MEDICAL_CARD}}
+
+
+
+ 暂无就诊人信息,请先添加就诊人!
+ 添加就诊人
+
+
+
+
diff --git a/pages/userMgr/userMgr.wxss b/pages/userMgr/userMgr.wxss
new file mode 100644
index 0000000..e74c00d
--- /dev/null
+++ b/pages/userMgr/userMgr.wxss
@@ -0,0 +1,105 @@
+/* pages/userMgr/userMgr.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ width: 90%;
+ margin: 0 auto;
+}
+.item{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+}
+.zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+}
+.up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+}
+.msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ color: rgba(45,135,255);
+ background: rgba(226,237,254);
+}
+.mr{
+ font-size: 30rpx;
+ color: #666;
+}
+.down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+}
+.icon{
+ height: 50rpx;
+ display: flex;
+ align-items: center;
+}
+.mr{
+ font-size: 33rpx;
+ color: #333;
+ margin-right: 15rpx;
+}
+.sw{
+ margin-top: 5rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
\ No newline at end of file
diff --git a/pages/userMsgDel/userMsgDel.js b/pages/userMsgDel/userMsgDel.js
new file mode 100644
index 0000000..705f2c1
--- /dev/null
+++ b/pages/userMsgDel/userMsgDel.js
@@ -0,0 +1,511 @@
+// pages/userMsgDel/userMsgDel.js
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ showPrivacy: true,
+ show: false,
+ show2: false,
+ show3: false,
+ relate: [{
+ name: '本人',
+ relate: '0'
+ },
+ {
+ name: '子女',
+ relate: '1'
+ },
+ {
+ name: '夫妻',
+ relate: '2'
+ },
+ {
+ name: '父母',
+ relate: '3'
+ },
+ {
+ name: '朋友',
+ relate: '4'
+ },
+ ],
+ cardType: [
+ // { name: '病历卡', value: 0 },
+ {
+ name: '就诊卡',
+ value: 1,
+ msg: "请输入就诊卡号"
+ },
+ // { name: '保障卡', value: 3 },
+ {
+ name: '社保卡',
+ value: 1,
+ msg: '请输入社保卡号'
+ },
+ {
+ name: '身份证(电子健康卡)',
+ value: 3,
+ msg: '请输入身份证号码'
+ },
+ ],
+ sfzList: [],
+ msg: "请输入号码",
+ relateNmae: '', //关系名
+ relateId: '', //关系值
+ trueName: '', //姓名
+ idCard: '', //身份证
+ carNum: '', //就诊卡
+ title: '', //标题
+ cardT: '', //证件类型
+ state: '', //新增编辑状态
+ type: '', //是否默认
+ checked: '', //默认按钮选中状态
+ disabled: '',
+ zjh: '' //证件号
+ },
+ // adds(){
+ // this.setData({
+ // trueName:this.data.trueName+'.'
+ // })
+ // },
+ showPop() {
+ this.setData({
+ show: true
+ });
+ },
+ showPop2() {
+ this.setData({
+ show2: true
+ });
+ },
+ showPop3() {
+ this.setData({
+ show3: true
+ });
+ },
+ onClose() {
+ this.setData({
+ show: false,
+ });
+ },
+ onClose2() {
+ this.setData({
+ show2: false,
+ });
+ },
+ onClose3() {
+ this.setData({
+ show3: false,
+ });
+ },
+ confirm(e) {
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ relateNmae: item.name,
+ relateId: item.relate,
+ show: false
+ })
+ },
+ confirm2(e) {
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ show2: false,
+ cardT: item.name,
+ cardV: item.value,
+ msg: item.msg
+ })
+ },
+ confirm3(e) {
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ let cardNum = item.cardno
+ let cardtype = item.cardtype
+ let relate = this.data.relateId
+ let type = this.data.type
+ let hzxm = this.data.trueName
+ console.log("cardNum is :" + cardNum)
+ this.setData({
+ show3: false
+ })
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/patientBindWXUser?cardno&cardtype&openid&relate&type&hzxm',
+ method: "GET",
+ data: {
+ cardno: cardNum,
+ cardtype: cardtype,
+ relate: relate,
+ type: type,
+ openid: app.globalData.openId,
+ hzxm: hzxm
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.showToast({
+ title: '添加成功',
+ icon: 'success'
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ }, 1000)
+ } else {
+ wx.showToast({
+ title: "用户不存在",
+ icon: 'error'
+ })
+ }
+ }
+ })
+ },
+ onChange({
+ detail
+ }) {
+ this.setData({
+ checked: detail
+ });
+ },
+ del() {
+ let medical_card = this.data.carNum
+ wx.showModal({
+ title: '',
+ content: '确定删除此就诊人信息吗?',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/patientUnbindWXUser?medical_card&openid',
+ method: "GET",
+ data: {
+ medical_card: medical_card,
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.showToast({
+ title: '删除成功',
+ icon: 'success',
+ duration: 1000
+ })
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ }, 1000)
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'error'
+ })
+ }
+ console.log(res, "删除就诊人")
+ }
+ })
+ }
+ }
+ })
+ },
+ save() {
+ if (this.data.checked == true) {
+ this.setData({
+ type: 0
+ })
+ } else {
+ this.setData({
+ type: 1
+ })
+ }
+ let relate = this.data.relateId
+ let cardType = this.data.cardV
+ let cardNum = this.data.zjh
+ let type = this.data.type
+ let medical_card = this.data.carNum
+ let hzxm = this.data.trueName
+ console.log(hzxm)
+ if (this.data.state == 0) {
+ if (relate == '' || cardNum == '') {
+ wx.showModal({
+ content: '请填写完整信息',
+ showCancel: false,
+ })
+ } else {
+ if (cardType == 3) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/his/getPatient?cardno&cardtype&hzxm',
+ method: "GET",
+ data: {
+ cardno: cardNum,
+ cardtype: cardType,
+ hzxm: hzxm
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ console.log(res.data, 'lslslslsl')
+ this.setData({
+ sfzList: res.data.list,
+ show3: true,
+ })
+ } else {
+ let title = "卡号不存在";
+ if (res.data.errMsg) {
+ title = res.data.errMsg;
+ }
+
+ wx.showToast({
+ title: title,
+ icon: 'error'
+ })
+ // setTimeout(item => {
+ // wx.navigateTo({
+ // url: '/pages/addUserMessage/addUserMessage',
+ // })
+ // },1000)
+ }
+ }
+ })
+ } else {
+ let that = this;
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/patientBindWXUser?cardno&cardtype&openid&relate&type&hzxm',
+ method: "GET",
+ data: {
+ cardno: cardNum,
+ cardtype: cardType,
+ relate: relate,
+ type: type,
+ openid: app.globalData.openId,
+ hzxm: hzxm
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.showToast({
+ title: '添加成功',
+ icon: 'success'
+ })
+
+ if (that.data.checked) {
+ wx.setStorageSync('trueName', that.data.trueName)
+ wx.setStorageSync('sfId1', that.data.idCard)
+ wx.setStorageSync('cardNo', that.data.carNum)
+ }
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ }, 1000)
+ } else {
+ let title = "卡号不存在";
+ if (res.data.errMsg) {
+ title = res.data.errMsg;
+ }
+
+ wx.showToast({
+ title: title,
+ icon: 'error'
+ })
+ // setTimeout(item => {
+ // wx.navigateTo({
+ // url: '/pages/addUserMessage/addUserMessage',
+ // })
+ // },1000)
+ }
+ }
+ })
+ }
+ }
+ } else {
+ let that = this;
+ wx.showModal({
+ title: '',
+ content: '确定更改此就诊人信息吗?',
+ cancelText: "否",
+ confirmText: '是',
+ success: function (res) {
+ if (res.confirm) {
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/updatePatient?medical_card&openid&relate=1&type=1',
+ method: "GET",
+ data: {
+ medical_card: medical_card,
+ relate: relate,
+ type: type,
+ openid: app.globalData.openId
+ },
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res) => {
+ if (res.data.errCode == 0) {
+ wx.showToast({
+ title: '编辑成功',
+ icon: 'success'
+ })
+ if (that.data.checked) {
+ wx.setStorageSync('trueName', that.data.trueName)
+ wx.setStorageSync('sfId1', that.data.idCard)
+ wx.setStorageSync('cardNo', that.data.carNum)
+ }
+ setTimeout(item => {
+ wx.navigateBack({
+ delta: 1 //返回上一级页面
+ })
+ }, 1000)
+ } else {
+ wx.showToast({
+ title: res.data.errMsg,
+ icon: 'error'
+ })
+ }
+ console.log(res, "编辑就诊人")
+ }
+ })
+ }
+ }
+ })
+ }
+ },
+ showModal(error) {
+ wx.showModal({
+ content: error.msg,
+ showCancel: false,
+ })
+ },
+ trueName: function (e) {
+ this.setData({
+ trueName: e.detail.value
+ })
+ },
+ change_trueName(e) {
+ let hzxm = e.detail.value.replace(/\./g, '·')
+ hzxm = hzxm.replace(/\。/g, '·')
+ this.setData({
+ trueName: hzxm
+ })
+ },
+ zjh: function (e) {
+ this.setData({
+ zjh: e.detail.value
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ console.log(options, "编辑")
+ this.setData({
+ state: options.state,
+ relateId: options.relate
+ })
+ if (options.relate == 0) {
+ this.setData({
+ relateNmae: "本人"
+ })
+ } else if (options.relate == 1) {
+ this.setData({
+ relateNmae: "子女"
+ })
+ } else if (options.relate == 2) {
+ this.setData({
+ relateNmae: "夫妻"
+ })
+ } else if (options.relate == 3) {
+ this.setData({
+ relateNmae: "父母"
+ })
+ } else if (options.relate == 4) {
+ this.setData({
+ relateNmae: "朋友"
+ })
+ }
+ if (options.type == 0) {
+ this.setData({
+ checked: true
+ })
+ } else {
+ this.setData({
+ checked: false
+ })
+ }
+ if (options.state == 0) {
+ this.setData({
+ title: "添加就诊人"
+ })
+ } else {
+ this.setData({
+ title: "编辑就诊人",
+ trueName: options.trueName,
+ idCard: options.idCard,
+ carNum: options.carNum,
+ disabled: "disabled"
+ })
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ wx.setNavigationBarTitle({
+ title: this.data.title
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/userMsgDel/userMsgDel.json b/pages/userMsgDel/userMsgDel.json
new file mode 100644
index 0000000..b67f3d1
--- /dev/null
+++ b/pages/userMsgDel/userMsgDel.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-switch": "@vant/weapp/switch/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/userMsgDel/userMsgDel.wxml b/pages/userMsgDel/userMsgDel.wxml
new file mode 100644
index 0000000..e8811f2
--- /dev/null
+++ b/pages/userMsgDel/userMsgDel.wxml
@@ -0,0 +1,93 @@
+
+
+
+ 请认真填写就诊人信息
+
+
+ 关系
+ 请选择与本人关系
+ {{relateNmae}}
+
+
+ 卡类型
+ 请选择卡类型
+ {{cardT}}
+
+
+
+ 姓名
+
+
+
+
+
+
+ 身份证号
+
+
+
+
+
+ 就诊卡号
+
+
+
+
+
+ 号码
+
+
+
+
+
+ 设为默认就诊人
+
+
+
+
+ 初次添加就诊人请绑定本院就诊卡号,未持有本院就诊卡的患者需到本院自助机或窗口办理就诊卡后方可进行添加。
+
+
+
+
+ 保存
+ 删除就诊人
+
+
+
+
+
+
+
+
+
+ 选择与本人关系
+ {{item.name}}
+
+
+
+
+ 选择卡类型
+ {{item.name}}
+
+
+
+
+ 选择绑定卡号
+
+
+ {{item.hzxm}}
+ (¥{{item.zhye}})
+
+ {{item.cardno}}(电子健康卡)
+ {{item.cardno}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/userMsgDel/userMsgDel.wxss b/pages/userMsgDel/userMsgDel.wxss
new file mode 100644
index 0000000..e4a2b7e
--- /dev/null
+++ b/pages/userMsgDel/userMsgDel.wxss
@@ -0,0 +1,201 @@
+/* pages/userMsgDel/userMsgDel.wxss */
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+}
+.content{
+ height: 100%;
+ width: 90%;
+ margin: 0 auto;
+}
+.title{
+ height: 120rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 120rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.item{
+ height: 120rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left{
+ height: 100%;
+ width: 180rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input{
+ flex: 1;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.inputs{
+ display: flex !important;
+
+}
+.sr1{
+ flex:1;
+ padding-left:43px;
+ box-sizing: border-box;
+}
+.add{
+ width: 40px;
+ height: 25px;
+ text-align: center;
+ line-height: 25px;
+ /* border:1px solid #eee; */
+ border-radius: 4px;
+ font-size: 13px;
+ margin-left: 3px;
+ background-color: #006eff;
+ color:#fff;
+}
+.sp{
+ display: flex;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.input2{
+ flex: 1;
+ height: 100%;
+ font-size: 30rpx;
+ color: #666;
+ line-height: 120rpx;
+}
+.input3{
+ flex: 1;
+ height: 100%;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.sr{
+ border: 0;
+}
+.placeholder{
+ font-size: 30rpx;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.popWrap :last-child{
+ border: none;
+}
+.title1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 80rpx;
+ text-align: center
+}
+.msgItem1{
+ height: 160rpx;
+ width: 80%;
+ margin: 0 auto;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.kUp{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+}
+.k1{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #333;
+}
+.k2{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ /* margin-left: 10rpx; */
+}
+.KDown{
+ height: 80rpx;
+ line-height: 80rpx;
+ font-size: 35rpx;
+ color: #666;
+}
+.msgItem{
+ height: 80rpx;
+ width: 100%;
+ font-size: 35rpx;
+ color: #333;
+ text-align: center;
+ line-height: 80rpx;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+.left1{
+ height: 100%;
+ width: 300rpx;
+ font-size: 35rpx;
+ color: #333;
+ line-height: 120rpx;
+}
+.left1{
+ height: 100%;
+ width: 400rpx;
+}
+.switch{
+ height: 100%;
+ width: 100rpx;
+ display:flex;
+ align-items: center;
+ justify-content: center;
+}
+.msgDes{
+ height: 180rpx;
+ width: 100%;
+ padding: 20rpx 15rpx;
+ box-sizing: border-box;
+ border-radius: 10rpx;
+ margin-top: 10rpx;
+ background: rgba(247,247,248);
+ font-size: 30rpx;
+ color: #666;
+ line-height: 50rpx;
+}
+.btn{
+ height: 100rpx;
+ margin-top: 50rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+.btn2{
+ height: 100rpx;
+ margin-top: 30rpx;
+ margin-bottom: 20rpx;
+ width: 100%;
+ background: rgba(228,240,255);
+ color: rgba(3,112,255);
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+}
+
+
diff --git a/pages/userRefund/userRefund.js b/pages/userRefund/userRefund.js
new file mode 100644
index 0000000..981d562
--- /dev/null
+++ b/pages/userRefund/userRefund.js
@@ -0,0 +1,748 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+
+// 使用引入的模块进行相关操作
+Page({
+ data: {
+
+ width:380,//宽度
+ height: 250,//高度
+ max_width:400,
+ max_height:500,
+ showCropper: false,
+ croppedImageSrc: '',
+ orgImageSrc: '',
+ orgImageName: '',
+
+ isalert: false,
+ isalert1: false,
+ isShowBankManual: false,
+ ifchild: false,
+ showbanktype: false,
+ tipsdialog: false,
+ refname: null,
+ refidcard: null,
+ refbankcard: null,
+ refbankcardname: null,
+ refbanktype: null,
+ refbanktypeinfo: null,
+ refbankmanual: null,
+ reftel: null,
+ imageUrlIdcard: '', // 用于存储上传的图片路径
+ resIdcardImgUrl: '',
+ imageUrlBankcard: '', // 用于存储上传的图片路径
+ resBankcardImgUrl: '',
+ imageUrlChildId: '', // 用于存储上传的图片路径
+ resChildIdImgUrl: '',
+ bankType: [
+ { name: '中国银行', value: 0 ,msg:"请输入中国银行卡号"},
+ { name: '中国工商银行', value: 1 ,msg:'请输入中国工商银行卡号'},
+ { name: '中国建设银行', value: 2 ,msg:'请输入中国建设银行卡号'},
+ { name: '中国农业银行', value: 3 ,msg:'请输入中国农业银行卡号'},
+ { name: '中国邮政储蓄银行', value: 4 ,msg:'请输入中国邮政储蓄银行卡号'},
+ { name: '新疆农村信用社', value: 5 ,msg:'请输入新疆农村信用社卡号'},
+ { name: '新疆昆仑银行', value: 6 ,msg:'请输入新疆昆仑银行卡号'},
+ { name: '其他(手工填写)', value: 7 ,msg:'其他(手工填写)'},
+ ],
+
+ },
+
+ onLoad: function (options) {
+ console.log('onload');
+ },
+
+ onReady: function() {
+ console.log('onReady');
+ this.onShowTips();
+ },
+
+ //裁剪图片开始
+ preventDefault() {
+ // 阻止默认点击事件
+ },
+ // 裁剪器加载完成
+ onCropperLoad() {
+ console.log('裁剪器加载完成');
+ },
+ OnCropperloadimage(e){
+ wx.hideLoading();
+ console.log("图片加载完成",e.detail);
+ //图片重置一下
+ this.selectComponent("#image-cropper").imgReset();
+ },
+
+ // 触发裁剪操作
+ triggerCut() {
+ const cropper = this.selectComponent("#image-cropper")
+ console.log(cropper, 'triggerCut被点击');
+
+ if (cropper) {
+ // 模拟触发裁剪事件
+ cropper.triggerEvent('tapcut');
+ }
+ },
+ // 确认裁剪
+ onCropperConfirm(e) {
+ console.log('裁剪按钮被点击');
+ let that = this;
+ const cropper = this.selectComponent("#image-cropper")
+ cropper.getImg((obj) => {
+ //app.globalData.imgSrc = obj.url;
+ console.log('裁剪后的图片路径1:', obj.url);
+ that.setData({
+ showCropper: false
+ });
+ if(this.data.orgImageName == 'idcard'){
+ that.uploadImageIdcard(obj.url); // 上传图片
+ }
+ else if(this.data.orgImageName == 'bankcard'){
+ that.uploadImageBankcard(obj.url); // 上传图片
+
+ }else if(this.data.orgImageName == 'childcard'){
+ that.uploadImageChildId(obj.url); // 上传图片
+
+ }
+ });
+ },
+
+ // 取消裁剪
+ onCropperCancel() {
+ this.setData({
+ showCropper: false
+ });
+ },
+ rotate() {
+ //在用户旋转的基础上旋转90°
+ const cropper = this.selectComponent("#image-cropper")
+ cropper.setAngle(cropper.data.angle += 90);
+ },
+ end(e) {
+ clearInterval(this.data[e.currentTarget.dataset.type]);
+ },
+ //裁剪图片结束
+
+
+ handleSubmit:function(){
+ var that = this;
+ console.log(this.data.refname, "refname");
+ console.log(this.data.refidcard, "refidcard");
+ console.log(this.data.refbankcard, "refbankcard");
+ console.log(this.data.refbankcardname, "refbankcardname");
+ console.log(this.data.refbanktypeinfo, "refbanktypeinfo");
+ console.log(this.data.refbanktype, "refbanktype");
+ console.log(this.data.refbankmanual, "refbankmanual");
+ console.log(this.data.reftel, "reftel");
+ console.log(this.data.resIdcardImgUrl, "resIdcardImgUrl");
+ console.log(this.data.resBankcardImgUrl, "resBankcardImgUrl");
+ console.log(this.data.resChildIdImgUrl, "resChildIdImgUrl");
+
+ util.requestPost(api.createRefund, {
+ refname: that.data.refname,
+ refidcard: that.data.refidcard,
+ refbankcard: that.data.refbankcard,
+ refbankcardname: that.data.refbankcardname,
+ refbanktype: that.data.refbanktype,
+ reftel: that.data.reftel,
+ zidcardimg: that.data.resIdcardImgUrl,
+ zbankcardimg: that.data.resBankcardImgUrl,
+ childidcardimg: that.data.resChildIdImgUrl,
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("createRefund res:");
+ console.log(res);
+ console.log("createRefund resdata:");
+ console.log(res.data);
+ wx.showToast({
+ title: '申请上传成功',
+ icon: 'success',
+ });
+ setTimeout(() => {
+ // 使用 wx.switchTab 切换到带有 tabBar 的首页
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ }, 1000);
+ }else if (res.code == 1002025012){
+ that.setData({
+ isalert1: true
+ })
+ }else{
+ wx.showToast({
+ title: '申请上传失败',
+ icon: 'success',
+ });
+ }
+ });
+
+ },
+ handleReset:function(){
+ this.setData({
+ refname: '',
+ refidcard: '',
+ refbankcard: '',
+ refbankcardname: '',
+ refbanktype: '',
+ refbanktypeinfo: '',
+ refbankmanual: '',
+ reftel: '',
+ imageUrlIdcard: '', // 用于存储上传的图片路径
+ resIdcardImgUrl: '',
+ imageUrlBankcard: '', // 用于存储上传的图片路径
+ resBankcardImgUrl: '',
+ imageUrlChildId: '', // 用于存储上传的图片路径
+ resChildIdImgUrl: '',
+ })
+ },
+
+ onConfirmTips: function(){
+ this.setData({
+ tipsdialog: false
+ })
+ },
+ onShowTips: function(){
+ this.setData({
+ tipsdialog: true
+ })
+ },
+
+ onhandleSubmit: function(){
+ this.setData({
+ isalert: true
+ })
+ },
+
+ onConfirmAlert1: function(){
+ this.setData({
+ isalert1: false
+ })
+ },
+
+ onConfirmAlert: function(){
+ this.setData({
+ isalert: false
+ })
+
+ console.log(this.data.refname, "refname");
+ console.log(this.data.refidcard, "refidcard");
+ console.log(this.data.refbankcard, "refbankcard");
+ console.log(this.data.refbankcardname, "refbankcardname");
+ console.log(this.data.refbanktypeinfo, "refbanktypeinfo");
+ console.log(this.data.refbanktype, "refbanktype");
+ console.log(this.data.refbankmanual, "refbankmanual");
+ console.log(this.data.reftel, "reftel");
+ console.log(this.data.resIdcardImgUrl, "resIdcardImgUrl");
+ console.log(this.data.resBankcardImgUrl, "resBankcardImgUrl");
+ console.log(this.data.resChildIdImgUrl, "resChildIdImgUrl");
+
+ if(this.data.refname =='' || this.data.refname == null){
+ wx.showModal({
+ content: '就诊卡登记姓名不能为空',
+ showCancel: false,
+ })
+ }
+ else if(this.data.refidcard =='' || this.data.refidcard == null){
+ wx.showModal({
+ content: '身份证号不能为空',
+ showCancel: false,
+ })
+ }
+ else if(this.data.refbankcard =='' || this.data.refbankcard == null){
+ wx.showModal({
+ content: '银行卡号不能为空',
+ showCancel: false,
+ })
+ }
+ else if(this.data.refbankcardname =='' || this.data.refbankcardname == null){
+ wx.showModal({
+ content: '银行卡持卡人姓名不能为空',
+ showCancel: false,
+ })
+
+ }
+ else if(this.data.reftel =='' || this.data.reftel == null){
+ wx.showModal({
+ content: '手机号码不能为空',
+ showCancel: false,
+ })
+
+ }
+ else if(this.data.resIdcardImgUrl =='' || this.data.resIdcardImgUrl == null){
+ wx.showModal({
+ content: '身份证正面不能为空',
+ showCancel: false,
+ })
+
+ }
+ else if(this.data.resBankcardImgUrl =='' || this.data.resBankcardImgUrl == null){
+ wx.showModal({
+ content: '银行卡正面不能为空',
+ showCancel: false,
+ })
+
+ }
+ else if((this.data.resChildIdImgUrl =='' || this.data.resChildIdImgUrl == null)&&
+ (this.data.ifchild == true)){
+ wx.showModal({
+ content: '儿童证件不能为空',
+ showCancel: false,
+ })
+
+ }
+ else{
+ this.handleSubmit();
+ }
+ },
+ onCancelAlert: function(){
+ this.setData({
+ isalert: false
+ })
+ },
+
+ showPopBankType(){
+ this.setData({ showbanktype: true });
+ },
+ onCloseBankType() {
+ this.setData({ showbanktype: false, });
+ },
+
+ confirmBankType(e){
+ console.log(e.currentTarget.dataset.item)
+ let item = e.currentTarget.dataset.item
+ this.setData({
+ showbanktype: false,
+ refbanktype: item.name,
+ refbanktypeinfo: item.name
+ })
+ if(item.value == 7){
+ this.setData({
+ isShowBankManual: true
+ })
+ }else{
+ this.setData({
+ isShowBankManual: false
+ })
+ }
+ },
+ onChangeBankType: function(e){
+ this.setData({
+ refbanktype: e.detail
+ })
+ },
+
+ onChangeRefname: function(e){
+ this.setData({
+ refname: e.detail
+ })
+ },
+ onChangeRefbankcard: function(e){
+ this.setData({
+ refbankcard: e.detail
+ })
+ },
+ onChangeRefbankcardname: function(e){
+ this.setData({
+ refbankcardname: e.detail
+ })
+ },
+ onChangeReftel: function(e){
+ this.setData({
+ reftel: e.detail
+ })
+ },
+
+ // 从身份证号码中提取生日信息(格式为YYYYMMDD)
+ getBirthdayFromIdCard: function(idCard){
+ return idCard.substring(6, 14); // 这里假设身份证号码长度为18位并按照标准格式存放
+
+ },
+ // 将字符串类型的生日转换成Date对象
+ convertToDateObject: function(birthdayString){
+ const year = birthdayString.substr(0, 4);
+ const month = birthdayString.substr(4, 2);
+ const day = birthdayString.substr(6, 2);
+
+ return new Date(`${year}-${month}-${day}`);
+
+ },
+
+ // 计算年龄函数
+ calculateAge: function(idCard){
+ console.log(idCard);
+ // 获取当前日期
+ const currentDate = new Date();
+
+ const birthdate = this.convertToDateObject(this.getBirthdayFromIdCard(idCard));
+ let age;
+
+ if (currentDate >= birthdate && !isNaN(currentDate)) {
+ age = Math.floor((currentDate - birthdate) / (365 * 24 * 60 * 60 * 1000));
+ console.log(age, "age0");
+
+ } else {
+ console.error('无效的身份证号码或者未知错误');
+ }
+
+ return age || '';
+
+},
+isValidID:function (id) {
+ if (!/^\d{17}(\d|X)$/.test(id)) return false; // 检查格式是否正确
+
+ // 计算第18位校验码
+ const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
+ const checkCode = '10X98765432';
+ let sum = 0;
+ for (let i = 0; i < id.length - 1; i++) {
+ sum += parseInt(id[i], 10) * weights[i];
+ }
+ sum = sum % 11;
+
+ // 验证第18位校验码是否正确
+ return checkCode[sum] === id[17].toUpperCase();
+},
+
+ onChangeIdcard(e) {
+ this.data.refidcard = e.detail;
+ console.log(this.data.refidcard, "idcard");
+ if(this.isValidID(this.data.refidcard) == false) return;
+
+ let age = this.calculateAge(this.data.refidcard);
+ console.log(age, "age");
+ if(age <= 15){
+ this.setData({
+ ifchild: true,
+ });
+ console.log(this.data.ifchild, "child");
+ }
+ },
+
+
+ // 选择银行卡图片
+ chooseImageBankcard() {
+ let that = this;
+ wx.showActionSheet({
+ itemList: ['拍照', '从相册选择'],
+ success: (res) => {
+ const sourceType = res.tapIndex === 0 ? ['camera'] : ['album']; // 0: 拍照, 1: 相册
+ // wx.chooseImage({
+ wx.chooseImage({
+ count: 1, // 只能选择一张图片
+ sizeType: ['compressed'], // 压缩图片
+ sourceType: sourceType, // 调用相机或相册
+ success: (res) => {
+ wx.showLoading({
+ title: '加载中',
+ })
+
+ const tempFilePaths = res.tempFilePaths;
+ // this.setData({
+ // imageUrlBankcard: tempFilePaths[0], // 更新图片路径
+ // });
+
+ that.setData({
+ showCropper: true}, () => {
+ // setData 的回调函数,确保页面已经重新渲染
+ const cropperInstance1 = this.selectComponent("#image-cropper");
+ if (cropperInstance1) {
+ // 调用组件的方法
+ console.log('找到组件实例');
+ } else {
+ console.log('未找到组件实例');
+ }
+ });
+ that.setData({
+ orgImageSrc: tempFilePaths[0], // 更新图片路径
+ orgImageName: 'bankcard'
+ });
+
+ //this.uploadImageBankcard(tempFilePaths[0]); // 上传图片
+ },
+ fail: (err) => {
+ console.error('选择银行卡图片失败', err);
+ wx.showToast({
+ title: '选择银行卡图片失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+ fail: (err) => {
+ console.error('打开选择器失败', err);
+ },
+ });
+ },
+ // 选择身份证图片
+ chooseImageChildId() {
+ let that = this;
+
+ wx.showActionSheet({
+ itemList: ['拍照', '从相册选择'],
+ success: (res) => {
+ const sourceType = res.tapIndex === 0 ? ['camera'] : ['album']; // 0: 拍照, 1: 相册
+ // wx.chooseImage({
+ wx.chooseImage({
+ count: 1, // 只能选择一张图片
+ sizeType: ['compressed'], // 压缩图片
+ sourceType: sourceType, // 调用相机或相册
+ success: (res) => {
+ wx.showLoading({
+ title: '加载中',
+ })
+
+ const tempFilePaths = res.tempFilePaths;
+ // this.setData({
+ // imageUrlChildId: tempFilePaths[0], // 更新图片路径
+ // });
+ that.setData({
+ showCropper: true}, () => {
+ // setData 的回调函数,确保页面已经重新渲染
+ const cropperInstance1 = this.selectComponent("#image-cropper");
+ if (cropperInstance1) {
+ // 调用组件的方法
+ console.log('找到组件实例');
+ } else {
+ console.log('未找到组件实例');
+ }
+ });
+ that.setData({
+ orgImageSrc: tempFilePaths[0], // 更新图片路径
+ orgImageName: 'childcard'
+ });
+
+ //this.uploadImageChildId(tempFilePaths[0]); // 上传图片
+ },
+ fail: (err) => {
+ console.error('选择儿童证件图片失败', err);
+ wx.showToast({
+ title: '选择儿童证件图片失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+ fail: (err) => {
+ console.error('打开选择器失败', err);
+ },
+ });
+ },
+ // 选择身份证图片
+ chooseImageIdcard() {
+ let that = this;
+ wx.showActionSheet({
+ itemList: ['拍照', '从相册选择'],
+ success: (res) => {
+ const sourceType = res.tapIndex === 0 ? ['camera'] : ['album']; // 0: 拍照, 1: 相册
+ wx.chooseImage({
+ count: 1, // 只能选择一张图片
+ sizeType: ['compressed'], // 压缩图片
+ sourceType: sourceType, // 调用相机或相册
+ success: (res) => {
+ wx.showLoading({
+ title: '加载中',
+ })
+
+ const tempFilePaths = res.tempFilePaths;
+ console.log(tempFilePaths, "tempFilePaths");
+ that.setData({
+ showCropper: true}, () => {
+ // setData 的回调函数,确保页面已经重新渲染
+ const cropperInstance1 = this.selectComponent("#image-cropper");
+ if (cropperInstance1) {
+ // 调用组件的方法
+ console.log('找到组件实例');
+ } else {
+ console.log('未找到组件实例');
+ }
+ });
+ that.setData({
+ orgImageSrc: tempFilePaths[0], // 更新图片路径
+ orgImageName: 'idcard'
+ });
+ //this.uploadImageIdcard(tempFilePaths[0]); // 上传图片
+
+ },
+ fail: (err) => {
+ console.error('选择身份证图片失败', err);
+ wx.showToast({
+ title: '选择身份证图片失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+ fail: (err) => {
+ console.error('打开选择器失败', err);
+ },
+ });
+ },
+
+ // 上传图片
+ uploadImageIdcard(filePath) {
+ wx.showLoading({
+ title: '图片上传中',
+ })
+
+ wx.uploadFile({
+ url: 'https://xytj.btlsoln.com/app-api/member/dept-info/upload',
+ // url: 'http://192.168.10.172:58080/app-api/member/dept-info/upload',
+ filePath: filePath, // 图片路径
+ name: 'file', // 文件对应的 key
+ // 设置请求头
+ header: {
+ 'tenant-id':'1', // 示例:设置授权信息
+ 'Content-Type': 'multipart/form-data' // 可以根据需要修改
+ },
+ formData: {
+ type: 'id_card_front', // 上传文件类型
+ },
+ success: (res) => {
+ wx.hideLoading();
+ try{
+ const data = JSON.parse(res.data); // 解析服务器返回的数据
+ console.log('上传成功', data.data);
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ });
+ this.setData({
+ imageUrlIdcard: filePath
+ });
+
+ this.setData({
+ resIdcardImgUrl: data.data, // 更新后端图片路径,用于请求
+ });
+
+ }catch(error){
+ // 解析失败,捕获错误信息
+ console.log('JSON 解析出错:', error);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+
+ }
+
+ },
+ fail: (err) => {
+ console.error('上传失败', err);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+// 上传图片
+uploadImageBankcard(filePath) {
+ wx.showLoading({
+ title: '图片上传中',
+ })
+
+ wx.uploadFile({
+ url: 'https://xytj.btlsoln.com/app-api/member/dept-info/upload',
+ // url: 'http://192.168.10.172:58080/app-api/member/dept-info/upload',
+ filePath: filePath, // 图片路径
+ name: 'file', // 文件对应的 key
+ // 设置请求头
+ header: {
+ 'tenant-id':'1', // 示例:设置授权信息
+ 'Content-Type': 'multipart/form-data' // 可以根据需要修改
+ },
+ formData: {
+ type: 'id_card_front', // 上传文件类型
+ },
+ success: (res) => {
+ wx.hideLoading();
+ try {
+ const data = JSON.parse(res.data); // 解析服务器返回的数据
+ console.log('上传成功', data.data);
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ });
+ this.setData({
+ imageUrlBankcard: filePath
+ });
+
+ this.setData({
+ resBankcardImgUrl: data.data, // 更新后端图片路径,用于请求
+ });
+ }catch(error){
+ // 解析失败,捕获错误信息
+ console.log('JSON 解析出错:', error);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+
+ }
+
+
+ },
+ fail: (err) => {
+ console.error('上传失败', err);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+// 上传图片
+uploadImageChildId(filePath) {
+ wx.showLoading({
+ title: '图片上传中',
+ })
+
+ wx.uploadFile({
+ url: 'https://xytj.btlsoln.com/app-api/member/dept-info/upload',
+ // url: 'http://192.168.10.172:58080/app-api/member/dept-info/upload',
+ filePath: filePath, // 图片路径
+ name: 'file', // 文件对应的 key
+ // 设置请求头
+ header: {
+ 'tenant-id':'1', // 示例:设置授权信息
+ 'Content-Type': 'multipart/form-data' // 可以根据需要修改
+ },
+ formData: {
+ type: 'id_card_front', // 上传文件类型
+ },
+ success: (res) => {
+ wx.hideLoading();
+ try {
+ const data = JSON.parse(res.data); // 解析服务器返回的数据
+ console.log('上传成功', data.data);
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ });
+ this.setData({
+ imageUrlChildId: filePath
+ });
+
+ this.setData({
+ resChildIdImgUrl: data.data, // 更新后端图片路径,用于请求
+ });
+
+ }catch(error){
+ // 解析失败,捕获错误信息
+ console.log('JSON 解析出错:', error);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+ }
+
+ },
+ fail: (err) => {
+ console.error('上传失败', err);
+ wx.showToast({
+ title: '上传失败',
+ icon: 'none',
+ });
+ },
+ });
+ },
+});
+
diff --git a/pages/userRefund/userRefund.json b/pages/userRefund/userRefund.json
new file mode 100644
index 0000000..7b6179a
--- /dev/null
+++ b/pages/userRefund/userRefund.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {
+ "image-cropper": "../../component/image-cropper/image-cropper"
+ }
+}
\ No newline at end of file
diff --git a/pages/userRefund/userRefund.wxml b/pages/userRefund/userRefund.wxml
new file mode 100644
index 0000000..2318915
--- /dev/null
+++ b/pages/userRefund/userRefund.wxml
@@ -0,0 +1,263 @@
+
+
+
+ 为积极响应国家关于提升医疗服务质量和效率的号召,库尔勒市妇幼保健院开展就诊卡门诊预交金余额清退工作,旨在简化就医流程,推广身份证、电子健康码、医保码等便捷就医方式,逐步淘汰实体就诊卡。
+ 本院向您郑重承诺,您的个人信息仅用于就诊卡退费使用。
+
+
+
+
+
+ 填写收款信息
+
+ (请填写本人信息确保以下内容均为同一人)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ *身份证正面
+
+
+
+
+
+
+
+ 成年人请上传本人身份证正面
+
+
+
+
+
+
+
+ *身份证正面
+
+
+
+
+
+
+
+ 请上传收款人身份证正面
+
+
+
+
+
+
+ *身份证正面或户口本本人页或出生证明
+
+
+
+
+
+
+
+ 儿童请上传收款人身份证及儿童的身份证或户口本或出生证明三选一
+
+
+
+
+
+
+ *银行卡正面
+
+
+
+
+
+
+
+ 银行卡正面(显示银行卡号码)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择银行卡开户行类型
+ {{item.name}}
+
+
+
+
+
+ 就诊卡退费
+
+ 尊敬的各位患者及家属:
+ 为积极响应国家关于提升医疗服务质量和效率的号召,库尔勒市妇幼保健院开展就诊卡门诊预交金余额清退工作,旨在简化就医流程,推广身份证、电子健康码、医保码等便捷就医方式,逐步淘汰实体就诊卡。
+ 本院向您郑重承诺,您的个人信息仅用于就诊卡退费使用。
+
+
+
+
+
+
+ 提示
+
+ 提交后无法修改,确认提交?
+
+
+
+
+
+
+ 提示
+
+ 信息已上传,审核中处理中,请耐心等待
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/userRefund/userRefund.wxss b/pages/userRefund/userRefund.wxss
new file mode 100644
index 0000000..7aabe9e
--- /dev/null
+++ b/pages/userRefund/userRefund.wxss
@@ -0,0 +1,262 @@
+/* 图片容器样式 */
+.image-container {
+ width: 300px;
+ height: 200px;
+ border: 1px dashed #ccc;
+ border-radius: 10px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ position: relative;
+ overflow: hidden;
+}
+
+/* 图片样式 */
+.upload-image {
+ width: 100%;
+ height: 100%;
+}
+
+/* 占位文字样式 */
+.placeholder-text {
+ position: absolute;
+ margin-top: 80rpx;
+ color: #888;
+ font-size: 14px;
+ text-align: center;
+}
+/* 自定义 label 宽度 */
+.custom-label {
+ width: 600px !important;
+ color: red !important;
+}
+.leftStu{
+ width: 22%;
+ font-size: 26rpx;
+ color: #666;
+ margin-left: 15rpx;
+}
+.rightStu{
+ width: 72%;
+ height: 100%;
+ font-size: 30rpx;
+ color: #333;
+ display: flex;
+ align-items: center;
+}
+
+.itemStu{
+ height: 400rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 2rpx solid #e2e2e2;
+}
+
+.container{
+ width: 100%;
+ background-color: #FFF6ED;
+ font-size: 24rpx;
+ color:rgb(247, 8, 8);
+ line-height: 40rpx;
+}
+.container-title{
+ width: 100%;
+ background-color: #FFF6ED;
+ font-size: 30rpx;
+ color:rgb(247, 8, 8);
+ line-height: 40rpx;
+}
+.container-text{
+ width: 90%;
+ background-color: #FFF6ED;
+ font-size: 30rpx;
+ font-weight: bold;
+ line-height: 40rpx;
+ margin-left: 20rpx;
+}
+
+/* 底部按钮区域 */
+.footer {
+ display: flex;
+ justify-content: space-between; /* 按钮左右分布 */
+ padding: 10px 20px;
+ background-color: #f8f8f8; /* 底部背景色 */
+ border-top: 1px solid #ddd; /* 顶部边框 */
+}
+
+/* 按钮样式 */
+.btn {
+ flex: 1; /* 按钮平均分配宽度 */
+ margin: 0 10px; /* 按钮之间的间距 */
+}
+
+/* 重置按钮 */
+.reset {
+ background-color: #fff;
+ color: #333;
+ border: 1px solid #ddd;
+}
+
+/* 提交按钮 */
+.submit {
+ background-color: #07c160;
+ color: #fff;
+}
+.popWrap{
+ height: 100%;
+ width: 100%;
+ padding: 10rpx;
+ box-sizing: border-box;
+}
+.popWrap :last-child{
+ border: none;
+}
+
+.title1{
+ height: 80rpx;
+ width: 100%;
+ font-size: 33rpx;
+ color: #666;
+ line-height: 80rpx;
+ text-align: center
+}
+.msgItem{
+ height: 80rpx;
+ width: 80%;
+ margin: 0 auto;
+ border-bottom: 1rpx solid #f8f8f8;
+}
+
+.rwTitle{
+ font-size: 35rpx;
+ font-weight: bold;
+ /* color: rgb(253, 6, 6); */
+ display: flex;
+ justify-content: center;
+ margin-top: 30rpx;
+ margin-left: 20rpx;
+ margin-right: 20rpx;
+}
+
+.rwtips{
+ font-size: 30rpx;
+ /* color: rgb(253, 6, 6); */
+ display: flex;
+ justify-content: center;
+ margin-top: 20rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ white-space: pre-wrap;
+}
+.wrapAlert{
+ font-size: 30rpx;
+ /* color: rgb(253, 6, 6); */
+ display: flex;
+ justify-content: center;
+ margin-top: 40rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ margin-bottom: 30rpx;
+ white-space: pre-wrap;
+}
+
+/* page.wxss 文件 */
+.rw-class .van-dialog__confirm,
+.rw-class .van-dialog__cancel {
+ color: blue;
+}
+
+.footertips{
+ font-size: 30rpx;
+ font-weight: bold;
+ color: rgb(247, 8, 8);
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ margin-left: 10rpx;
+ margin-right: 10rpx;
+ white-space: pre-wrap;
+}
+
+.wsbanktype{
+ margin-left: 6em;
+}
+
+/* 容器样式 */
+.containerCanvas {
+ position: relative;
+ margin-top: 20px;
+}
+
+/* 裁剪框样式 */
+.crop-box {
+ position: absolute;
+ border: 2px solid #fff;
+ box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
+ pointer-events: none; /* 防止裁剪框拦截点击事件 */
+}
+
+.buttonR {
+ font-size: 27rpx;
+ /* z-index: 2; */
+ padding: 0 20rpx;
+ height: 60rpx;
+ min-width: 100rpx;
+ z-index: 1000; /* 确保按钮在遮罩层之上 */
+ pointer-events: auto; /*允许按钮响应点击事件 */
+
+}
+.buttonRfooter {
+ width: 100%;
+ display: flex;
+ justify-content: space-around; /* 按钮左右分布 */
+ margin-bottom: 30rpx;
+ background-color: #f8f8f8; /* 底部背景色 */
+ border-top: 10px solid rgb(252, 250, 250); /* 顶部边框 */
+ /* border:10px solid rgb(252, 8, 8); */
+
+}
+
+.clsCropper{
+ width: 100%;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ margin-bottom: 80rpx;
+ /* border:10px solid rgb(252, 8, 8); */
+
+}
+
+#cropperR{
+ z-index: 1000; /* 确保按钮在遮罩层之上 */
+ pointer-events: auto; /* 允许按钮响应点击事件 */
+}
+#specialButton1 {
+ position: relative;
+ z-index: 1000; /* 确保按钮在遮罩层之上 */
+ pointer-events: auto; /* 允许按钮响应点击事件 */
+}
+#specialButton2 {
+ position: relative;
+ z-index: 1000; /* 确保按钮在遮罩层之上 */
+ pointer-events: auto; /* 允许按钮响应点击事件 */
+}
+#specialButton3 {
+ position: relative;
+ z-index: 1000; /* 确保按钮在遮罩层之上 */
+ pointer-events: auto; /* 允许按钮响应点击事件 */
+}
+.mask {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0); /* 透明背景 */
+ z-index: 999; /* 确保遮罩层在其他元素之上 */
+}
+.container-info{
+ z-index: 2;
+}
\ No newline at end of file
diff --git a/pages/view/view.js b/pages/view/view.js
new file mode 100644
index 0000000..20b293d
--- /dev/null
+++ b/pages/view/view.js
@@ -0,0 +1,18 @@
+// webview.js
+Page({
+ data: {
+ url:''
+ },
+ onLoad: function(options) {
+ this.setData({
+ url: decodeURIComponent(options.url)
+ });
+ },
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+
+});
\ No newline at end of file
diff --git a/pages/view/view.json b/pages/view/view.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/view/view.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/view/view.wxml b/pages/view/view.wxml
new file mode 100644
index 0000000..77a6354
--- /dev/null
+++ b/pages/view/view.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/view/view.wxss b/pages/view/view.wxss
new file mode 100644
index 0000000..0abc9f6
--- /dev/null
+++ b/pages/view/view.wxss
@@ -0,0 +1 @@
+/* pages/view/view.wxss */
\ No newline at end of file
diff --git a/pages/webwiew/webview.js b/pages/webwiew/webview.js
new file mode 100644
index 0000000..29285f6
--- /dev/null
+++ b/pages/webwiew/webview.js
@@ -0,0 +1,17 @@
+// webview.js
+Page({
+ data: {
+ url:''
+ },
+ onLoad: function(options) {
+ this.setData({
+ url: decodeURIComponent(options.url)
+ });
+ },
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+});
\ No newline at end of file
diff --git a/pages/webwiew/webview.json b/pages/webwiew/webview.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/webwiew/webview.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/webwiew/webview.wxml b/pages/webwiew/webview.wxml
new file mode 100644
index 0000000..77a6354
--- /dev/null
+++ b/pages/webwiew/webview.wxml
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/pages/webwiew/webview.wxss b/pages/webwiew/webview.wxss
new file mode 100644
index 0000000..6db7267
--- /dev/null
+++ b/pages/webwiew/webview.wxss
@@ -0,0 +1 @@
+/* pages/webwiew/webview.wxss */
\ No newline at end of file
diff --git a/pages/wxDetail/wxDetail.js b/pages/wxDetail/wxDetail.js
new file mode 100644
index 0000000..25f7d83
--- /dev/null
+++ b/pages/wxDetail/wxDetail.js
@@ -0,0 +1,216 @@
+// pages/newChatDetail/newChatDetail.js
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+
+var app = getApp()
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ radio: '',
+ loadingHidden: true,
+ obj: {}
+ },
+ updatekf(orderid, resdata) {
+ console.log(resdata, 'resdata');
+ //tradeState: "NOTPAY"
+ //tradeState: "SUCCESS"
+ if (resdata.tradeState == 'SUCCESS') {
+ util.requestPost(api.kfupdateOrder, {
+ orderid: orderid
+ })
+ .then(function (res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("updateOrder res:");
+ console.log(res);
+ } else {
+
+ }
+ });
+ }
+ },
+ updateTJ(orderid, resdata) {
+ console.log(resdata, 'resdata');
+ //tradeState: "NOTPAY"
+ //tradeState: "SUCCESS"
+ if (resdata.tradeState == 'SUCCESS') {
+ util.requestPost(api.updateOrder, {
+ orderid: orderid
+ })
+ .then(function (res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("updateOrder res:");
+ console.log(res);
+ } else {
+
+ }
+ });
+ }
+ },
+ getWxDetail(id) {
+ let reqDTO = {
+ out_trade_no: id,
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/api/wxpay/findWxPayResult',
+ method: "POST",
+ data: reqDTO,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: async (res) => {
+ if (res.data.errCode == 0) {
+ res.data.data.text = res.data.data.tradeStateDesc
+ res.data.data.hospOutTradeNo = res.data.data.outTradeNo
+ res.data.data.gmtOutCreate = res.data.data.timeEnd
+ this.setData({
+ obj: res.data.data
+ })
+
+ //支付成功显示明细,则去更新体检订单表
+ this.updateTJ(res.data.data.outTradeNo, res.data.data);
+ this.updatekf(res.data.data.outTradeNo, res.data.data);
+ console.log("获取的信息是:" + res.data.data)
+ console.log(res.data.data)
+ if(res.data.data.tradeState=='SUCCESS'){
+ await this.sendMessage(this.data.obj)
+ }
+ } else {
+ wx.showModal({
+ content: res.data.errMsg,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success(res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ }
+ })
+ },
+ back() {
+ app.globalData.hosp_out_trade_no = ''
+ wx.switchTab({
+ url: '/pages/index/index',
+ })
+ },
+ backPay() {
+ wx.setStorageSync('index', 0)
+ app.globalData.hosp_out_trade_no = ''
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+ backyPay() {
+ wx.setStorageSync('index', 1)
+ app.globalData.hosp_out_trade_no = ''
+ wx.navigateTo({
+ url: '/pages/payment/payment',
+ })
+ },
+ async sendMessage(data) {
+ console.log("开始推送消息")
+ let reqData = {
+ type: "jfcgwx",
+ operateTime: data.gmtOutCreate,
+ openId: app.globalData.openId,
+ amount: data.totalFee
+ }
+ console.log("reqData is :" + reqData)
+ //推送站内消息
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/generatePayMessage',
+ method: "GET",
+ data: reqData,
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (responseData) => {
+ console.log(responseData)
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ wx.enableAlertBeforeUnload({
+ message: "支付内容更新中,确定要退出吗?",
+ success: function (res) {
+ },
+ fail: function (err) {
+ console.log("失败:", err);
+ },
+ });
+
+ // let data = 'JJ20240104130042'
+ this.getWxDetail(options.hosp_out_trade_no)
+ // if(options.radioValue==0){
+ // this.getYbDetail(options.hosp_out_trade_no)
+ // }else{
+ // let data = 'JJ20240130131542'
+ // this.getWxDetail(data)
+ // // this.getWxDetail(options.hosp_out_trade_no)
+ // }
+ this.setData({
+ loadingHidden: false,
+ })
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/wxDetail/wxDetail.json b/pages/wxDetail/wxDetail.json
new file mode 100644
index 0000000..16390a5
--- /dev/null
+++ b/pages/wxDetail/wxDetail.json
@@ -0,0 +1,5 @@
+{
+ "component": true,
+ "usingComponents": {},
+ "disableScroll": true
+}
\ No newline at end of file
diff --git a/pages/wxDetail/wxDetail.wxml b/pages/wxDetail/wxDetail.wxml
new file mode 100644
index 0000000..3805b6b
--- /dev/null
+++ b/pages/wxDetail/wxDetail.wxml
@@ -0,0 +1,74 @@
+
+
+ 加载中...
+
+
+
+
+ 支付成功
+
+
+
+
+
+
+
+
+
+
+
+ 收款机构
+ {{obj.hospitalName}}
+
+
+ 支付项目
+ {{obj.body}}
+
+
+ 支付金额
+ ¥{{obj.totalFee}}
+
+
+ 支付状态
+ {{obj.text}}
+ {{obj.text}}
+
+
+ 取药窗口/接单科室
+ 暂无
+
+
+
+
+ 订单号:
+ {{obj.hospOutTradeNo}}
+
+
+ 创建时间:
+ {{obj.gmtOutCreate}}
+
+
+
+
+ 温馨提示:
+ 1、您已成功在线缴费,如需发票,请到院内收费窗口申请开具发票。
+ 2、如需退费,请到院内收费窗口申请退费,退费执行成功后,相应金额将在24小时内退到您的支付账户。
+
+
+
+
+
+
+ 继续缴费
+
+
+
+ 查看缴费记录
+
+
+
+ 返回首页
+
+
+
+
diff --git a/pages/wxDetail/wxDetail.wxss b/pages/wxDetail/wxDetail.wxss
new file mode 100644
index 0000000..eba612d
--- /dev/null
+++ b/pages/wxDetail/wxDetail.wxss
@@ -0,0 +1,134 @@
+/* pages/newChatDetail/newChatDetail.wxss */
+.home{
+ width: 100%;
+ height: 100vh;
+ background-color: #f6f3ec;
+}
+.bg{
+ width: 100%;
+ height: 340rpx;
+ background-color: #4aa9fd;
+}
+.success{
+ padding-top:12rpx;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+.success_img{
+ width: 60rpx;
+ height: 60rpx;
+ border-radius: 30rpx;
+ background-color: #fff;
+ text-align: center;
+ line-height: 60rpx;
+}
+.pay{
+ color:#fff;
+ font-size:32rpx;
+ margin-top: 7rpx;
+}
+.van-icon {
+ color:#86c8e2;
+}
+.van-icon-success:before {
+ font-size: 60rpx;
+ line-height: 60rpx;
+}
+.detail{
+ width: 100%;
+ /* height: 300px; */
+ padding:0 20rpx;
+ box-sizing: border-box;
+ margin-top: -80px;
+}
+.content{
+ background-color:#f6f3ec;
+ height: 100%;
+ padding:7px 10px;
+ box-sizing: border-box;
+}
+.top{
+ width: 100%;
+ /* height: 150px; */
+ background-color: #fff;
+ border-radius: 5px;
+ padding:5px;
+ box-sizing: border-box;
+}
+.topay{
+ color:#a0d4c5;
+}
+.topay1{
+ color:red;
+}
+.flex{
+ display: flex;
+ font-size: 28rpx;
+ margin-bottom: 5px;
+}
+.text{
+ margin-right: 10px;
+ color:#666;
+}
+.bottom{
+ margin-top: 5px;
+ color:#666;
+}
+.container{
+ font-size: 28rpx;
+ color:#000;
+ line-height: 40rpx;
+}
+.fixedBottom{
+ position: fixed;
+ bottom:10px;
+ width: 100%;
+ padding:0 10px;
+ box-sizing: border-box;
+}
+.fixed_con{
+ width: 100%;
+ height: 60px;
+ background-color: #fff;
+ border-radius: 5px;
+ display: flex;
+ justify-content: center;
+}
+.colum{
+ width: 33.3%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: 26rpx;
+}
+.img{
+ width: 20px;
+ height: 20px;
+ margin-bottom: 3px;
+}
+.imgs{
+ width: 25px;
+ height: 25px;
+ margin-bottom: 3px;
+}
+.block{
+ display: flex;
+ margin:10px 0;
+}
+.boxs{
+ height: 12rpx;
+ width: 12rpx;
+ background-color: #292927;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+}
+.box2{
+ background-color: #b9bbb8;
+}
+.box3{
+ background-color: #979996;
+}
\ No newline at end of file
diff --git a/pages/xytj/actionsheet.wxss b/pages/xytj/actionsheet.wxss
new file mode 100644
index 0000000..95489ff
--- /dev/null
+++ b/pages/xytj/actionsheet.wxss
@@ -0,0 +1,100 @@
+.actionsheet-mask {
+ position: fixed;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.4);
+ z-index: 1000;
+}
+.actionsheet-panel {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background-color: #fff;
+ z-index: 1001;
+ border-radius: 32rpx 32rpx 0 0;
+ max-height: 93vh;
+ overflow-y: auto;
+ padding-bottom: constant(safe-area-inset-bottom);
+ padding-bottom: env(safe-area-inset-bottom);
+}
+.actionsheet-hd {
+ display: flex;
+ justify-content: space-between;
+ /* width: 100%; */
+ padding: 54rpx 40rpx 34rpx;
+ /* position: fixed;
+ top:0px;
+ z-index:999;
+ height: 100rpx; */
+
+}
+.actionsheet-hd-tt {
+ font-size: 40rpx;
+ line-height: 56rpx;
+ letter-spacing: 2rpx;
+ font-weight: bold;
+ color: #303133;
+}
+.actionsheet-icon-close {
+ display: block;
+ width: 48rpx;
+ height: 48rpx;
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAMO0lEQVR4Ae1d228VxxkfH3MHE4TD3QIEAQcK5VJcLrYqxQ+VQqs2UlWhKoqgok956lMb5Q9AaR7aPPWpLUGoilBVqY16kfLgSBE2YMStBYTFRQaVOwZiGzAYcH+/zc7RnsvuXM7MnsXekdazZ/eb7/vm983O7ZsZN4iMhrt37zaNjo62NjY2tr58+bIVaraOjY21NDQ0NOG+CfdBHKo/hOdDuB/Cc97/D/d9hUKh78WLF32TJ0/umzdvHt9nLjRkRaOBgYHZAPx70KcTgL8FEDcATCf6gRdYjZ2BQb4E/y4Y5Kvm5ubBLOTdSQZtM3L//v3Xnj179lOA8x54tCNutOVlkg4GeQH6bsQHp0yZ8pe5c+d+bZLeJW3qBgDIDbdu3XobmdiN+x8hnuYyQxa8RmCIz5HuwMKFC//Nr8WCh3WS1AzA0n379u1diD/E9S1rjT0mBPjncO1bsGDBIcT8SrwH7wYIgd+D+ANcb3jPkQMBAP8Sro9giE99G8KrAVDid6AX8ntgssEBLvVgcQa9sPdhiB5fwr0YYHBw8PVHjx79Bkr/HKXeiwxfgJTzxRfANmH/zJkzfz179ux75e9r/e0cHDSwP0Y38k9QbG6tymUs/QC6sXvRUP/dpV4FV8xQ0icD/N8C/L+B53gDnzA1M2/MI/PqCjcnX8DNmzeXQ6FDUOy7rhTLMh9US73Qb9eiRYv6a9WzZgMA/DYA/y8o8nqtyrxi6e/BEDthhOO16F1TFYRezvchvAvXRAOfmDPPXSEG/G0VrA2AuvBnqBP/gdI/y0ryOEjEvBMDYmGbH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807utqgGgGeZZyeJxvJ6Y3OgHOt2EQJ/qxVCP8B9MG3JXSxc0Rcn1+VId63DvJoA/FeaAsz9Xk0Y4wCA8W5PmmLQCTB0w14T6IQ9lDeM4jF7jhkPfc/c9N0H3cCsrdiNwQF9JmKvo/EKRRXxn393kAAAAASUVORK5CYII=') center center no-repeat;
+ background-size: 100% 100%;
+}
+.actionsheet-box {
+ border: 2rpx solid #F8F8F8;
+ border-radius: 12rpx;
+ margin: 20rpx;
+}
+.actionsheet-box-hd {
+ position: relative;
+ font-size: 32rpx;
+ line-height: 44rpx;
+ font-weight: bold;
+ color: #303133;
+ margin: 50rpx 0 34rpx;
+ padding: 0 40rpx;
+}
+.actionsheet-box-hd:before {
+ content: '';
+ position: absolute;
+ left: 8rpx;
+ top: 50%;
+ width: 8rpx;
+ height: 34rpx;
+ transform: translateY(-50%);
+ background-color: #3B71EB;
+}
+.actionsheet-box-bd {
+ padding: 40rpx;
+ border-top: 2rpx solid #F8F8F8;
+}
+.actionsheet-box-item {
+ display: flex;
+ justify-content: space-between;
+ font-size: 28rpx;
+ line-height: 40rpx;
+}
+.actionsheet-box-item + .actionsheet-box-item {
+ margin-top: 24rpx;
+}
+.actionsheet-box-item-label {
+ color: #606266;
+}
+.actionsheet-box-item-sublabel {
+ color: #909399;
+}
+.actionsheet-box-item-value {
+ color: #606266;
+}
+.actionsheet-box-item-value.em {
+ color: #3B71EB;
+}
+
+
+
+
diff --git a/pages/xytj/xytj.js b/pages/xytj/xytj.js
new file mode 100644
index 0000000..819ecc5
--- /dev/null
+++ b/pages/xytj/xytj.js
@@ -0,0 +1,816 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+const user = require('../../utils/user.js');
+
+//获取应用实例
+const app = getApp();
+
+Page({
+ data: {
+ actionsheetVisible: false,
+ listStand: [],
+ listAddtion: [],
+
+ //学生信息
+ list:[],
+ loadingHidden: true,
+ flag: false,
+ openid: '',
+
+ //任务信息
+ xyrwList: [],
+ rwname: '',
+ rwstatus: '',
+ rwempty: 0,
+ batchno: '',
+ //默认为0,从根节点开始
+ parentid: 0,
+ //学生归属的学校id
+ deptid: 0,
+ //学生选择
+ studentxpList:[],
+ studentxpListBackup: [],
+ studentIndexes: '',
+ studentcurrent: '',
+ studentSwitch: false,
+
+ //班级选择
+ classxpList:[],
+ classxpListBackup: [],
+ classIndexes: '',
+ classcurrent: '',
+ classSwitch: false,
+ //学校选择
+ schoolxpList:[],
+ schoolxpListBackup: [],
+ schoolIndexes: '',
+ schoolcurrent: '',
+ schoolSwitch: false,
+
+ //社区选择
+ sqxpList:[],
+ sqxpListBackup: [],
+ sqIndexes: '',
+ sqcurrent: '',
+ sqSwitch: false,
+ //街道选择
+ deptxpList:[],
+ deptxpListBackup: [],
+ deptIndexes: '',
+ deptcurrent: '',
+ UserSwitch: false,
+ //体检部门信息
+ jdname: '',
+ sqname: '',
+ schoolname: '',
+ classname: '',
+ studentname: '',
+ xytjinfo: {
+ jdid: '',
+ jdname: '',
+ sqid: '',
+ sqname: '',
+ schoolid: '',
+ schoolname: '',
+ classid: '',
+ classname: ''
+ },
+ // 下拉框选项组件
+ dropvalue: '1',
+ droplists: [
+ {value:'1',text:'请选择项目名称'}
+ ],
+ imgUrls: ["https://fy.btlsoln.com:8443/showFile/hospitalNotice/20220507/1651912958699.jpg",
+ "https://fy.btlsoln.com:8443/showFile/hospitalNotice/20220507/1651912958699.jpg"],
+ indicatorDots: false,
+ autoplay: true,
+ interval: 3000,
+ duration: 500,
+ checked: true
+ },
+ naviToAdd(){
+ let state = 0
+ wx.navigateTo({
+ url: '/pages/studentMgr/studentMgr',
+ })
+ },
+ handleActionsheet() {
+ this.actionsheetVisible = !this.actionsheetVisible;
+ this.setData({
+ actionsheetVisible: this.actionsheetVisible
+ });
+ },
+
+naviToDet: function(event) {
+ console.log("naviToDet");
+
+ console.log(event, "evnet");
+ const index = event.currentTarget.dataset.index
+ console.log(index, 'selectindex');
+ console.log(index.name, 'selectItem');
+
+ const selectName = index.name
+ const selectNationId = index.nationId
+ const selectClassName = index.className
+ const selectSchoolName = index.schoolName
+ const selectPatid = index.patid
+ wx.navigateTo({
+ url: '/pages/category/category?name=' + selectName + '&nationid=' + selectNationId + '&classname=' + selectClassName +
+ '&schoolname=' + selectSchoolName + '&patid=' + selectPatid,
+ })
+},
+naviToInfo: function(event) {
+ console.log("naviToInfo");
+ console.log(event, "evnet");
+ const index = event.currentTarget.dataset.index
+ console.log(index, 'selectindex');
+ if(index.feeflag == "1"){
+ this.getXyOrder(index.patid);
+ }
+},
+getXyOrder(patid){
+ let that = this;
+ util.requestPost(api.listOrder, {
+ patid: patid
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.errCode === '0') {
+ console.log("listOrder res:");
+ console.log(res);
+ that.setData({
+ listStand: res.listStand,
+ listAddtion: res.listAddtion,
+ actionsheetVisible: true
+ });
+
+ }
+ else{
+
+ }
+ });
+},
+
+//取学生列表
+getPerList(batchno){
+ var that = this;
+ util.request(api.studentByparent, {
+ openid: app.globalData.openId,
+ batchno: batchno
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("list res:");
+ console.log(res);
+ console.log("list resdata:");
+ console.log(res.data);
+ that.setData({
+ list: res.data
+ });
+
+ console.log("list length", that.data.list.length);
+ if(that.data.list.length == 0 ){
+ that.setData({
+ loadingHidden: false,
+ flag: false
+ });
+ }else{
+ //有体检人,取出默认体检人
+ var filterNum = that.data.list.filter(function(person,index,arrs){
+ return person.defaultflag==0
+ });
+ console.log("fileter");
+ console.log(filterNum);
+
+ that.setData({
+ loadingHidden: true,
+ flag: true
+ });
+ }
+
+ that.setData({
+ loadingHidden: true
+ });
+ }
+ });
+},
+
+ //获取下园任务列表
+getXyrwList: function() {
+ var that = this;
+ util.request(api.xyrwinfo, {
+
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("xyrwinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ xyrwList: res.data
+ });
+
+ if(res.data.length == 0){
+ that.setData({
+ rwempty: 0
+ });
+ app.globalData.hasXyrw = false;
+ }else{
+ that.setData({
+ rwempty: 1,
+ rwname: res.data[0].batchName,
+ rwstatus: res.data[0].batchStatus
+ });
+ app.globalData.hasXyrw = true;
+ }
+
+ if(res.data[0].batchStatus == '1') {
+ that.setData({
+ rwstatus: '开始',
+ batchno: res.data[0].batchno
+ });
+ that.getPerList(res.data[0].batchno);
+ }
+ }
+ });
+},
+
+//学生
+studentList: function() {
+ var that = this;
+ util.request(api.studentinfo, {
+ deptid: this.data.deptid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("studentinfo res:");
+ console.log(res);
+ console.log("studentinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ studentxpList: res.data,
+ studentxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ studentOn: function(){
+ this.setData({
+ studentSwitch: true
+ })
+ },
+ //关闭控件
+ studentShutdown: function(){
+ let List = [];
+ this.setData({
+ studentSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.studentxpListBackup.length;i++){
+ List.push(this.data.studentxpListBackup[i]);
+ }
+ this.setData({
+ studentxpList: List,
+ studentIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setstudentIndexes(event){
+ this.setData({
+ studentIndexes: event.detail,
+ });
+ console.log("studentIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+studentGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.studentIndexes){
+ this.data.studentxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.studentIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.studentxpListBackup
+ }
+ this.setData({
+ studentcurrent: this.data.studentIndexes,
+ studentxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+studentIdentification(event){
+ let List = [];
+ let Backups = this.data.studentxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.studentid = event.detail.value.id;
+ this.data.xytjinfo.studentname = event.detail.value.name;
+ this.setData({ studentname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ //this.setData({ parentid: event.detail.value.id});
+ //this.studengList();
+
+ console.log("set select studentid:" + this.data.xytjinfo.studengid);
+ console.log("set select studentname:" + this.data.xytjinfo.studengname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ studentxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.studentxpList);
+ console.log("pick after list backup");
+ console.log(this.data.studentxpListBackup);
+ this.studentShutdown();
+},
+ //班级
+classList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("classinfo res:");
+ console.log(res);
+ console.log("classinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ classxpList: res.data,
+ classxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ classOn: function(){
+ this.setData({
+ classSwitch: true
+ })
+ },
+ //关闭控件
+ classShutdown: function(){
+ let List = [];
+ this.setData({
+ classSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.classxpListBackup.length;i++){
+ List.push(this.data.classxpListBackup[i]);
+ }
+ this.setData({
+ classxpList: List,
+ classIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setclassIndexes(event){
+ this.setData({
+ classIndexes: event.detail,
+ });
+ console.log("classIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+classGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.classIndexes){
+ this.data.classxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.classIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.classxpListBackup
+ }
+ this.setData({
+ classcurrent: this.data.classIndexes,
+ classxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+classIdentification(event){
+ let List = [];
+ let Backups = this.data.classxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.classid = event.detail.value.id;
+ this.data.xytjinfo.classname = event.detail.value.name;
+ this.setData({ classname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ deptid: event.detail.value.id});
+ this.studentList();
+
+ console.log("set select classid:" + this.data.xytjinfo.classid);
+ console.log("set select classname:" + this.data.xytjinfo.classname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ classxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.classxpList);
+ console.log("pick after list backup");
+ console.log(this.data.classxpListBackup);
+ this.classShutdown();
+},
+//学校
+schoolList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("schoolinfo res:");
+ console.log(res);
+ console.log("schoolinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ schoolxpList: res.data,
+ schoolxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ schoolOn: function(){
+ this.setData({
+ schoolSwitch: true
+ })
+ },
+ //关闭控件
+ schoolShutdown: function(){
+ let List = [];
+ this.setData({
+ schoolSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.schoolxpListBackup.length;i++){
+ List.push(this.data.schoolxpListBackup[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ schoolIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setschoolIndexes(event){
+ this.setData({
+ schoolIndexes: event.detail,
+ });
+ console.log("schoolIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+schoolGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.schoolIndexes){
+ this.data.schoolxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.schoolIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.schoolxpListBackup
+ }
+ this.setData({
+ schoolcurrent: this.data.schoolIndexes,
+ schoolxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+schoolIdentification(event){
+ let List = [];
+ let Backups = this.data.schoolxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.schoolid = event.detail.value.id;
+ this.data.xytjinfo.schoolname = event.detail.value.name;
+ this.setData({ schoolname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.classList();
+
+ console.log("set select schoolid:" + this.data.xytjinfo.schoolid);
+ console.log("set select schoolname:" + this.data.xytjinfo.schoolname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ schoolxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.schoolxpList);
+ console.log("pick after list backup");
+ console.log(this.data.schoolxpListBackup);
+ this.schoolShutdown();
+},
+
+//社区
+sqList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("sqinfo res:");
+ console.log(res);
+ console.log("sqinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ sqxpList: res.data,
+ sqxpListBackup: res.data
+ });
+ }
+ });
+},
+ //开启控件
+ sqOn: function(){
+ this.setData({
+ sqSwitch: true
+ })
+ },
+ //关闭控件
+ sqShutdown: function(){
+ let List = [];
+ this.setData({
+ sqSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.sqxpListBackup.length;i++){
+ List.push(this.data.sqxpListBackup[i]);
+ }
+ this.setData({
+ sqxpList: List,
+ sqIndexes: ''
+ })
+
+ },
+ //条件输入事件
+ setsqIndexes(event){
+ this.setData({
+ sqIndexes: event.detail,
+ });
+ console.log("sqIndexes:" + event.detail)
+},
+//点击确定搜索时触发事件
+sqGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.sqIndexes){
+ this.data.sqxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.sqIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.sqxpListBackup
+ }
+ this.setData({
+ sqcurrent: this.data.sqIndexes,
+ sqxpList: row
+ })
+},
+//用户选择某个选项后触发事件
+sqIdentification(event){
+ let List = [];
+ let Backups = this.data.sqxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.sqid = event.detail.value.id;
+ this.data.xytjinfo.sqname = event.detail.value.name;
+ this.setData({ sqname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.schoolList();
+
+ console.log("set select sqid:" + this.data.xytjinfo.sqid);
+ console.log("set select sqname:" + this.data.xytjinfo.sqname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ sqxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.sqxpList);
+ console.log("pick after list backup");
+ console.log(this.data.sqxpListBackup);
+ this.sqShutdown();
+},
+
+//街道
+ deptList: function() {
+ var that = this;
+ util.request(api.deptinfo, {
+ parentid: this.data.parentid
+ })
+ .then(function(res) {
+ if (res.code === 0) {
+ console.log("deptinfo res:");
+ console.log(res);
+ console.log("deptinfo resdata:");
+ console.log(res.data);
+ that.setData({
+ deptxpList: res.data,
+ deptxpListBackup: res.data
+ });
+ }
+ });
+ },
+
+ //条件输入事件
+ setDeptIndexes(event){
+ this.setData({
+ deptIndexes: event.detail,
+ });
+ console.log("deptIndexes:" + event.detail)
+ },
+ //点击确定搜索时触发事件
+ DeptGo: function(){
+ wx.showToast({
+ title: '加载中',
+ icon: "loading",
+ duration: 1000
+ })
+ let row = [];
+ if(this.data.deptIndexes){
+ this.data.deptxpListBackup.forEach((item) => {
+ if (item.name.indexOf(this.data.deptIndexes) > -1) {
+ row.push(item);
+ }
+ });
+ }else{
+ row = this.data.deptxpListBackup
+ }
+ this.setData({
+ deptcurrent: this.data.deptIndexes,
+ deptxpList: row
+ })
+ },
+
+ //开启控件
+ UserOn: function(){
+ this.setData({
+ UserSwitch: true
+ })
+ },
+ //关闭控件
+ UserShutdown: function(){
+ let List = [];
+ this.setData({
+ UserSwitch: false
+ })
+ //恢复数据
+ for(let i = 0;i < this.data.deptxpListBackup.length;i++){
+ List.push(this.data.deptxpListBackup[i]);
+ }
+ this.setData({
+ deptxpList: List,
+ deptIndexes: ''
+ })
+
+ },
+
+//用户选择某个选项后触发事件
+UserIdentification(event){
+ let List = [];
+ let Backups = this.data.deptxpListBackup;
+ let id = event.detail.value.id;
+ console.log("pick select value:");
+ console.log(event.detail.value);
+ console.log("pick select id:" + event.detail.index);
+
+ this.data.xytjinfo.jdid = event.detail.value.id;
+ this.data.xytjinfo.jdname = event.detail.value.name;
+ this.setData({ jdname: event.detail.value.name });
+ //根据选择的id,获取下一级结构
+ this.setData({ parentid: event.detail.value.id});
+ this.sqList();
+ console.log("set select jdid:" + this.data.xytjinfo.jdid);
+ console.log("set select jdname:" + this.data.xytjinfo.jdname);
+
+ for(let i = 0;i < Backups.length;i++){
+ List.push(Backups[i]);
+ }
+ this.setData({
+ deptxpList: List,
+ })
+
+ console.log("pick after list:");
+ console.log(this.data.deptxpList);
+ console.log("pick after list backup");
+ console.log(this.data.deptxpListBackup);
+ this.UserShutdown();
+},
+
+
+
+ onChange({ detail }) {
+ this.setData({ checked: detail });
+ },
+
+ onShareAppMessage: function() {
+ return {
+ title: '下园体检',
+ desc: '下园体检',
+ path: '/pages/index/index'
+ }
+ },
+
+ onPullDownRefresh() {
+ wx.showNavigationBarLoading() //在标题栏中显示加载
+ wx.hideNavigationBarLoading() //完成停止加载
+ wx.stopPullDownRefresh() //停止下拉刷新
+ },
+
+
+ getImgList(){
+ wx.request({
+ url:'https://fy.btlsoln.com:8443/findHospitalNotice',
+ method:"GET",
+ data:{},
+ header: {
+ 'content-type': 'application/json'
+ },
+ success: (res)=> {
+ console.log(res,'lunbotu')
+ this.setData({
+ imgUrls:res.data
+ })
+ }
+ })
+ },
+ onLoad: function(options) {
+ console.log("xytj load");
+
+ },
+ onReady: function() {
+ // 页面渲染完成
+ },
+ onShow: function() {
+ // 页面显示
+console.log("xytj onshow");
+ this.getXyrwList();
+ this.deptList();
+ // 页面初始化 options为页面跳转所带来的参数
+ //this.getPerList();
+
+ this.setData({
+ loadingHidden: false,
+ })
+
+ },
+ onHide: function() {
+ // 页面隐藏
+ },
+ onUnload: function() {
+ // 页面关闭
+ },
+
+})
\ No newline at end of file
diff --git a/pages/xytj/xytj.json b/pages/xytj/xytj.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/pages/xytj/xytj.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/xytj/xytj.wxml b/pages/xytj/xytj.wxml
new file mode 100644
index 0000000..d9ee393
--- /dev/null
+++ b/pages/xytj/xytj.wxml
@@ -0,0 +1,119 @@
+
+
+
+
+
+ 当前批次
+
+ {{ rwname }}
+
+
+ 当前无任务
+
+ 请点击幼儿姓名确定体检项目
+
+
+
+
+
+
+ 加载中...
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 未缴费
+
+
+ 已缴费
+
+
+
+
+ {{item.nationId}}
+
+
+
+ 查看详情
+
+
+
+
+
+ 暂无体检人信息,请点击下方“添加体检人”按钮,确认学生信息!
+ 添加体检人
+
+
+
+
+
+
+
+ 缴费明细
+
+
+
+
+
+
+ 基本项目
+
+
+
+
+ {{items.itemname}}
+
+ {{items.itemprice}}
+
+
+
+
+ 可选项目
+
+
+
+
+ {{items.itemname}}
+
+ {{items.itemprice}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/xytj/xytj.wxss b/pages/xytj/xytj.wxss
new file mode 100644
index 0000000..de343b9
--- /dev/null
+++ b/pages/xytj/xytj.wxss
@@ -0,0 +1,774 @@
+@import './actionsheet.wxss';
+
+.main{
+ margin: 30rpx 0;
+ width: 750rpx;
+ }
+ .content{
+ width: 90%;
+ margin: 0 auto;
+ }
+ .studentitem{
+ height: 200rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 5rpx #e2e2e2;
+ background: rgba(245,249,255);
+ padding: 30rpx;
+ box-sizing: border-box;
+ }
+ .zw{
+ height: 250rpx;
+ width: 100%;
+ border-radius: 5rpx;
+ margin: 40rpx auto;
+ box-shadow:0px 0px 15rpx #e2e2e2;
+ padding:0 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 33rpx;
+ color: #666;
+ }
+ .up{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ /* border: 1rpx solid #f10a44; */
+
+ }
+ .name{
+ font-size: 35rpx;
+ height: 80rpx;
+ padding-right: 30rpx;
+ line-height: 80rpx;
+ color: #333;
+ }
+ .msg{
+ flex: 1;
+ height: 70rpx;
+ line-height: 80rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ /* border: 1rpx solid #85f10a; */
+
+ }
+ .t1{
+ height: 50rpx;
+ width: 130rpx;
+ text-align: center;
+ line-height: 50rpx;
+ font-size:33rpx;
+ border-radius: 25rpx;
+ /* color: rgba(45,135,255);
+ background: rgba(226,237,254); */
+ }
+ .down{
+ height: 80rpx;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 80rpx;
+ font-size: 30rpx;
+ color: #666;
+ }
+ .icon{
+ height: 50rpx;
+ display: flex;
+ align-items: center;
+ }
+ .mr{
+ font-size: 33rpx;
+ color: rgb(16, 150, 11);
+ margin-right: 15rpx;
+ }
+ .nofee{
+ font-size: 33rpx;
+ color: rgb(150, 11, 23);
+ margin-right: 15rpx;
+/* border: 1rpx solid #fd0404; */
+ }
+ .detail{
+ font-size: 33rpx;
+ color: rgba(52,120,247);
+ margin-right: 15rpx;
+ }
+ .sw{
+ margin-top: 5rpx;
+ }
+ .btn{
+ height: 100rpx;
+ margin-top: 150rpx;
+ margin-bottom: 40rpx;
+ width: 100%;
+ background: rgba(0,110,255);
+ color: #fff;
+ text-align: center;
+ line-height: 100rpx;
+ border-radius: 10rpx;
+ font-size: 35rpx;
+ letter-spacing: 5rpx;
+ }
+
+
+ .popsearch{
+ margin-right: 15rpx;
+ }
+ .pickempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 80rpx;
+ }
+ .btnview{
+ justify-content: center;
+ display: flex;
+ margin-top: 80rpx;
+
+ }
+ .btnClass {
+ background: #4bc107 !important;
+ color: #fff !important;
+ }
+
+ .banner{
+ margin-bottom: 30rpx;
+ }
+ .slide-image{
+ width: 100%;
+ height: 100%;
+ }
+ .service{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ margin-top: 20rpx;
+ }
+ .service icon{
+ width: 40rpx;
+ height: 15rpx;
+ margin-right: 20rpx;
+ background-color: #50CEBB;
+ border-radius: 15rpx;
+ }
+ .wrap{
+ height: 100%;
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ }
+ .rwempty{
+ font-size: 35rpx;
+ font-weight: bold;
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+ .rwtips{
+ font-size: 30rpx;
+ font-weight: bold;
+ color: rgb(253, 6, 6);
+ display: flex;
+ justify-content: center;
+ margin-top: 10rpx;
+ }
+
+ .banner image {
+ width: 100%;
+ height: 417rpx;
+ }
+
+ .banner video {
+ height: 100%;
+ width: 100%;
+ }
+
+ .m-menu {
+ background: #fff;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ padding-bottom: 0rpx;
+ padding-top: 25rpx;
+ }
+
+ .m-menu .item {
+ width: 150rpx;
+ height: 126rpx;
+ }
+
+ .m-menu image {
+ display: block;
+ width: 58rpx;
+ height: 58rpx;
+ margin: 0 auto;
+ margin-bottom: 12rpx;
+ }
+
+ .m-menu text {
+ display: block;
+ font-size: 24rpx;
+ text-align: center;
+ margin: 0 auto;
+ line-height: 1;
+ color: #333;
+ }
+
+ .a-section {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ background: #fff;
+ color: #333;
+ margin-top: 20rpx;
+ }
+
+ .a-section .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ }
+
+ .a-section .h .txt {
+ padding-right: 30rpx;
+ background-size: 16.656rpx 27rpx;
+ display: inline-block;
+ height: 36rpx;
+ font-size: 33rpx;
+ line-height: 36rpx;
+ }
+
+ .loc_light_icon {
+ color: #000;
+ font-size: 10px;
+ line-height: 30px;
+ text-align: center;
+ margin-top: 10px;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .loc_light {
+ color: #000;
+ font-size: 10px;
+ line-height: 10px;
+ text-align: left;
+ margin-bottom: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ background-color: #fff;
+ }
+
+ .dark,
+ .light {
+ color: #000;
+ font-size: 13px;
+ line-height: 18px;
+ text-align: left;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ background-clip: content-box;
+ word-wrap:break-word;
+ }
+
+ .dark {
+ background-color: #39a9ed;
+ }
+
+ .light {
+ background-color: #fff;
+ }
+
+
+ .a-location .b{
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ position: relative;
+ }
+
+ .a-brand .wrap {
+ position: relative;
+ }
+
+ .a-brand .img {
+ position: absolute;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt {
+ position: absolute;
+ z-index: 2;
+ padding: 27rpx 31rpx;
+ left: 0;
+ top: 0;
+ }
+
+ .a-brand .mt .brand {
+ display: block;
+ font-size: 33rpx;
+ height: 43rpx;
+ color: #fff;
+ }
+
+ .a-brand .mt .price, .a-brand .mt .unit {
+ font-size: 25rpx;
+ color: #fff;
+ }
+
+ .a-brand .item-1 {
+ float: left;
+ width: 375rpx;
+ height: 252rpx;
+ overflow: hidden;
+ border-top: 1rpx solid #fff;
+ margin-left: 1rpx;
+ }
+
+ .a-brand .item-1:nth-child(2n+1) {
+ margin-left: 0;
+ width: 374rpx;
+ }
+
+ .a-brand .item-1 .img {
+ width: 375rpx;
+ height: 253rpx;
+ }
+
+ .a-coupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-coupon .b .item {
+ position: relative;
+ height: 200rpx;
+ width: 700rpx;
+ background: linear-gradient(to right, #cfa568, #e3bf79);
+ margin-bottom: 10rpx;
+ margin-left: 30rpx;
+ margin-right: 30rpx;
+ padding-top: 30rpx;
+ }
+
+ .a-coupon .b .tag {
+ height: 32rpx;
+ background: #a48143;
+ padding-left: 16rpx;
+ padding-right: 16rpx;
+ position: absolute;
+ left: 20rpx;
+ color: #fff;
+ top: 20rpx;
+ font-size: 20rpx;
+ text-align: center;
+ line-height: 32rpx;
+ }
+
+ .a-coupon .b .content {
+ margin-top: 24rpx;
+ margin-left: 40rpx;
+ display: flex;
+ margin-right: 40rpx;
+ flex-direction: row;
+ }
+
+ .a-coupon .b .content .left {
+ flex: 1;
+ }
+
+ .a-coupon .b .discount {
+ font-size: 50rpx;
+ color: #b4282d;
+ }
+
+ .a-coupon .b .min {
+ color: #fff;
+ }
+
+ .a-coupon .b .content .right {
+ width: 400rpx;
+ }
+
+ .a-coupon .b .name {
+ font-size: 44rpx;
+ color: #fff;
+ margin-bottom: 14rpx;
+ }
+
+ .a-coupon .b .desc {
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .a-coupon .b .time {
+ font-size: 24rpx;
+ color: #fff;
+ line-height: 30rpx;
+ }
+
+ .a-groupon {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-groupon .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 244rpx;
+ width: 710rpx;
+ }
+
+ .a-groupon .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 220rpx;
+ height: 220rpx;
+ }
+
+ .a-groupon .b .right {
+ float: left;
+ height: 244rpx;
+ width: 476rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-groupon .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 244rpx;
+ width: 476rpx;
+ }
+
+ .a-groupon .b .name {
+ float: left;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-groupon .b .desc {
+ width: 476rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-groupon .b .price {
+ width: 476rpx;
+ display: flex;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-groupon .b .counterPrice {
+ text-decoration: line-through;
+ font-size: 28rpx;
+ color: #999;
+ }
+
+ .a-groupon .b .retailPrice {
+ margin-left: 30rpx;
+ font-size: 28rpx;
+ color: #a78845;
+ }
+
+ .a-new .b {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ padding: 0 31rpx 45rpx 31rpx;
+ }
+
+ .a-new .b .item {
+ float: left;
+ width: 302rpx;
+ margin-top: 10rpx;
+ margin-left: 21rpx;
+ margin-right: 21rpx;
+ }
+
+ .a-new .b .item-b {
+ margin-left: 42rpx;
+ }
+
+ .a-new .b .img {
+ width: 302rpx;
+ height: 302rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-new .b .name {
+ text-align: center;
+ display: block;
+ width: 302rpx;
+ height: 35rpx;
+ margin-bottom: 14rpx;
+ overflow: hidden;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .a-new .b .price {
+ display: block;
+ text-align: center;
+ line-height: 30rpx;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .a-popular {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .a-popular .b .item {
+ border-top: 1px solid #d9d9d9;
+ margin: 0 20rpx;
+ height: 264rpx;
+ width: 710rpx;
+ }
+
+ .a-popular .b .img {
+ margin-top: 12rpx;
+ margin-right: 12rpx;
+ float: left;
+ width: 240rpx;
+ height: 240rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ }
+
+ .a-popular .b .right {
+ float: left;
+ height: 264rpx;
+ width: 456rpx;
+ display: flex;
+ flex-flow: row nowrap;
+ }
+
+ .a-popular .b .text {
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: column;
+ justify-content: center;
+ overflow: hidden;
+ height: 264rpx;
+ width: 456rpx;
+ }
+
+ .a-popular .b .name {
+ width: 456rpx;
+ display: block;
+ color: #333;
+ line-height: 50rpx;
+ font-size: 30rpx;
+ }
+
+ .a-popular .b .desc {
+ width: 456rpx;
+ display: block;
+ color: #999;
+ line-height: 50rpx;
+ font-size: 25rpx;
+ }
+
+ .a-popular .b .price {
+ width: 456rpx;
+ display: block;
+ color: #ab956d;
+ line-height: 50rpx;
+ font-size: 33rpx;
+ }
+
+ .a-topic .b {
+ height: 533rpx;
+ width: 750rpx;
+ padding: 0 0 48rpx 0;
+ }
+
+ .a-topic .b .list {
+ height: 533rpx;
+ width: 750rpx;
+ white-space: nowrap;
+ }
+
+ .a-topic .b .item {
+ display: inline-block;
+ height: 533rpx;
+ width: 680.5rpx;
+ margin-left: 30rpx;
+ overflow: hidden;
+ }
+
+ .a-topic .b .item:last-child {
+ margin-right: 30rpx;
+ }
+
+ .a-topic .b .img {
+ height: 387.5rpx;
+ width: 680.5rpx;
+ margin-bottom: 30rpx;
+ }
+
+ .a-topic .b .np {
+ height: 35rpx;
+ margin-bottom: 13.5rpx;
+ color: #333;
+ font-size: 30rpx;
+ }
+
+ .a-topic .b .np .price {
+ margin-left: 20.8rpx;
+ color: #ab956d;
+ }
+
+ .a-topic .b .desc {
+ display: block;
+ height: 30rpx;
+ color: #999;
+ font-size: 24rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .good-grid {
+ width: 750rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .h {
+ display: flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: center;
+ height: 130rpx;
+ font-size: 33rpx;
+ color: #333;
+ }
+
+ .good-grid .b {
+ width: 750rpx;
+ padding: 0 6.25rpx;
+ height: auto;
+ overflow: hidden;
+ }
+
+ .good-grid .b .item {
+ float: left;
+ background: #fff;
+ width: 365rpx;
+ margin-bottom: 6.25rpx;
+ height: 452rpx;
+ overflow: hidden;
+ text-align: center;
+ }
+
+ .good-grid .b .item .a {
+ height: 452rpx;
+ width: 100%;
+ }
+
+ .good-grid .b .item-b {
+ margin-left: 6.25rpx;
+ }
+
+ .good-grid .item .img {
+ margin-top: 20rpx;
+ width: 302rpx;
+ height: 302rpx;
+ }
+
+ .good-grid .item .name {
+ display: block;
+ width: 365.625rpx;
+ padding: 0 20rpx;
+ overflow: hidden;
+ height: 35rpx;
+ margin: 11.5rpx 0 22rpx 0;
+ text-align: center;
+ font-size: 30rpx;
+ color: #333;
+ }
+
+ .good-grid .item .price {
+ display: block;
+ width: 365.625rpx;
+ height: 30rpx;
+ text-align: center;
+ font-size: 30rpx;
+ color: #ab956d;
+ }
+
+ .good-grid .t {
+ height: 100rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ .search {
+ height: 88rpx;
+ width: 100%;
+ padding: 0 30rpx;
+ background: #fff;
+ display: flex;
+ align-items: center;
+ }
+
+ .search .van-icon-search {
+ line-height: 59rpx;
+ }
+
+ .search .input {
+ width: 690rpx;
+ height: 56rpx;
+ background: #ededed;
+ border-radius: 8rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .search .txt {
+ height: 42rpx;
+ line-height: 42rpx;
+ color: #666;
+ padding-left: 10rpx;
+ font-size: 30rpx;
+ }
\ No newline at end of file
diff --git a/pages/yib/actionsheet.wxss b/pages/yib/actionsheet.wxss
new file mode 100644
index 0000000..95489ff
--- /dev/null
+++ b/pages/yib/actionsheet.wxss
@@ -0,0 +1,100 @@
+.actionsheet-mask {
+ position: fixed;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, 0.4);
+ z-index: 1000;
+}
+.actionsheet-panel {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background-color: #fff;
+ z-index: 1001;
+ border-radius: 32rpx 32rpx 0 0;
+ max-height: 93vh;
+ overflow-y: auto;
+ padding-bottom: constant(safe-area-inset-bottom);
+ padding-bottom: env(safe-area-inset-bottom);
+}
+.actionsheet-hd {
+ display: flex;
+ justify-content: space-between;
+ /* width: 100%; */
+ padding: 54rpx 40rpx 34rpx;
+ /* position: fixed;
+ top:0px;
+ z-index:999;
+ height: 100rpx; */
+
+}
+.actionsheet-hd-tt {
+ font-size: 40rpx;
+ line-height: 56rpx;
+ letter-spacing: 2rpx;
+ font-weight: bold;
+ color: #303133;
+}
+.actionsheet-icon-close {
+ display: block;
+ width: 48rpx;
+ height: 48rpx;
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAACpM19OAAAMO0lEQVR4Ae1d228VxxkfH3MHE4TD3QIEAQcK5VJcLrY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g5WkPFFVBFDF/QIG+GP5y6oG4FeANaMnQJyfmFKOmN3vM6j6vlNe+smqpA2QvEmItevvIy6pr+T7PNZHgBiGWJZUPZJDVQPwZXjC035JmMfWCOyPOy2LHKtWQVJUeGgf9/Y3y2d5bIRAbYf28bQ/NB57jUTmxEUEiF3SiYkkjK2CJBe03PyfKZ/I33mshwDA/12IXWKCxCpIpkSviP8fhico5qfnSlASYjS8vQC/A/FoAlnwSvkFkCpkxOO2ks+bCVhO+D/EaJcO+ERKywAkRD+2H0x34tLfss6EEygQG2JErHSzrW0AMgTj46jbfgIhyk9LV4HxQkdMiA0xMsmTkQHIGH3aLyBsN658kBYiTSyICbExAZ+0xgZgIjQwn0Hgu7gm/JdADIgFMSE2pkGrFxTHFCsa+P9k/oreUaa2usbp6/o5gB9mtWNT8qUuNRmATDBpl/8jN4mmRWxVBUXlsNFBSWjD1Rt9Pp7vmVfm2bTBrYZJzV+AZMrBGr6Gj/H7l/LZOI0/AfC/ggGctH/ODCDBxog5/3e2EgyN2LkBKDP/h84ayIckXgwgxaOXlP9LcwlGTOzVAJSJtqERhtiDmOfne3X0x+TR+DHq90u4PkL38lPEVT1ZxkxjEng3gJQbGoL/m+BDXF6Px5cyTWOAfQ7XPgB/yDfwUrfUDCAFAnz+j4K38Xs37nlYePpHFkplvolHADaXZB7AaJYL01KdYkndANG88xRxHmQNQ7yH5+2IUzk5NSzd3YgPcqFsdK1mVL807utqgGgGeZZyeJxvJ6Y3OgHOt2EQJ/qxVCP8B9MG3JXSxc0Rcn1+VId63DvJoA/FeaAsz9Xk0Y4wCA8W5PmmLQCTB0w14T6IQ9lDeM4jF7jhkPfc/c9N0H3cCsrdiNwQF9JmKvo/EKRRXxn393kAAAAASUVORK5CYII=') center center no-repeat;
+ background-size: 100% 100%;
+}
+.actionsheet-box {
+ border: 2rpx solid #F8F8F8;
+ border-radius: 12rpx;
+ margin: 20rpx;
+}
+.actionsheet-box-hd {
+ position: relative;
+ font-size: 32rpx;
+ line-height: 44rpx;
+ font-weight: bold;
+ color: #303133;
+ margin: 50rpx 0 34rpx;
+ padding: 0 40rpx;
+}
+.actionsheet-box-hd:before {
+ content: '';
+ position: absolute;
+ left: 8rpx;
+ top: 50%;
+ width: 8rpx;
+ height: 34rpx;
+ transform: translateY(-50%);
+ background-color: #3B71EB;
+}
+.actionsheet-box-bd {
+ padding: 40rpx;
+ border-top: 2rpx solid #F8F8F8;
+}
+.actionsheet-box-item {
+ display: flex;
+ justify-content: space-between;
+ font-size: 28rpx;
+ line-height: 40rpx;
+}
+.actionsheet-box-item + .actionsheet-box-item {
+ margin-top: 24rpx;
+}
+.actionsheet-box-item-label {
+ color: #606266;
+}
+.actionsheet-box-item-sublabel {
+ color: #909399;
+}
+.actionsheet-box-item-value {
+ color: #606266;
+}
+.actionsheet-box-item-value.em {
+ color: #3B71EB;
+}
+
+
+
+
diff --git a/pages/yib/yib.js b/pages/yib/yib.js
new file mode 100644
index 0000000..8042cc2
--- /dev/null
+++ b/pages/yib/yib.js
@@ -0,0 +1,280 @@
+const util = require('../../utils/util.js');
+const api = require('../../config/api.js');
+
+var app = getApp()
+Page({
+ data: {
+ objs:{},
+ optionsData:{},
+ paramsDatas:{},
+ radio:'',
+ list:{},
+ areadly:true,
+ prescriptionList: [],
+ actionsheetVisible: false,
+ hosp_out_trade_no:'',
+ },
+ handleActionsheet() {
+ this.actionsheetVisible = !this.actionsheetVisible;
+ this.setData({
+ actionsheetVisible: this.actionsheetVisible
+ });
+ },
+
+ //取消预结算
+ CancelPreSettlement(){
+ let payOrdId = ''
+ let payToken = ''
+ let zfjsbz = ''
+ if(this.data.radio==0){
+ payOrdId = this.data.list.payOrdId
+ payToken = this.data.list.payToken
+ zfjsbz = '0'
+ }else{
+ payOrdId = ''
+ payToken = ''
+ zfjsbz = '1'
+ }
+
+ let dataList = {
+ jssjh:this.data.list.detail.sjh,
+ payOrdId:payOrdId,
+ payToken:payToken,
+ zfjsbz:zfjsbz
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/CancelPreSettlement',
+ method:"POST",
+ data:dataList,
+ header:{
+ 'content-type':'application/json'
+ },
+ success: (res)=> {
+ console.log(res,'取消预结算')
+ }
+ })
+
+ },
+
+/**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ payMoney(moneyData) {
+ let orderId = this.data.objs.orderId
+ let {hosp_out_trade_no} = this.data.list
+ wx.requestPayment({
+ timeStamp:moneyData.timeStamp,
+ nonceStr:moneyData.nonceStr,
+ package:moneyData.package,
+ signType:'MD5',
+ paySign:moneyData.paySign,
+ success(res) {
+ app.globalData.areadly = false
+ wx.navigateTo({
+ url:'/pages/wxDetail/wxDetail?hosp_out_trade_no='+hosp_out_trade_no
+ })
+ },
+ fail(res) {
+ wx.showToast({
+ title: "支付失败!",
+ icon: "error"
+ })
+ app.globalData.areadly = false
+ wx.navigateTo({
+ url:'/pages/wxDetail/wxDetail?hosp_out_trade_no='+hosp_out_trade_no
+ })
+ }
+ })
+ },
+
+ //微信点击去支付
+ pay(){
+ if(this.data.radio==0){
+ this.ybpay()
+ }else{
+ this.wxpay()
+ }
+ },
+
+ //普通支付
+ wxpay(){
+ let {sjh,ysje,zfje,zje,patid} = this.data.list.detail
+ let {hosp_out_trade_no} = this.data.list
+ // console.log(this.data.list,'微信支付')
+ let reqDTO = {
+ // tradeNo:this.data.objs.orderId,
+ tradeNo:hosp_out_trade_no,
+ orderTitle:'',
+ openid:app.globalData.openId,
+ total_fee:zje,
+ sjh:sjh,
+ ysje:ysje,
+ zfje:zfje,
+ patid:patid
+ }
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/api/wxpay/wxAppletPay',
+ method:"POST",
+ data:reqDTO,
+ header:{
+ 'content-type':'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode==0){
+ // wx.setStorageSync('hosp_out_trade_no', hosp_out_trade_no)
+ this.payMoney(res.data.data)
+ }else{
+ wx.showModal({
+ content:res.data.errMsg ,
+ showCancel: false,
+ confirmText: '确定',
+ confirmColor: '#3CC51F',
+ success (res) {
+ if (res.confirm) {
+ console.log('用户点击确定')
+ }
+ }
+ })
+ }
+ }
+ })
+
+ },
+
+ //医保支付
+ ybpay(){
+ let {patid,ysje} = this.data.list.detail
+
+ let pay_type = ''
+ if(this.data.list.detail.zfje>0){
+ pay_type = 3
+ }else{
+ pay_type = 2
+ }
+ let num = app.globalData.datas
+ let loaction = num.user_longitude_latitude.longitude+','+num.user_longitude_latitude.latitude
+ let {zfje,ybzf,zhzf,sjh,zje,yjjzf} = this.data.list.detail
+ let {gmt_out_create,payOrdId,payToken,hosp_out_trade_no} = this.data.list
+ let reqDTO = {
+ cash_fee:ysje,
+ city_id:num.city_id,
+ gmt_out_create:gmt_out_create,
+ hosp_out_trade_no:hosp_out_trade_no,
+ ybzf:ybzf,
+ zhzf:zhzf,
+ yjjzf:yjjzf,
+ openid:app.globalData.openId,
+ pay_type:pay_type,
+ request_content:JSON.stringify({payAuthNo:num.pay_auth_no,payOrdId:payOrdId,setlLatlnt:loaction}),
+ return_url:'pages/newChatDetail/newChatDetail?hosp_out_trade_no='+hosp_out_trade_no,
+ serial_no:sjh,
+ total_fee:zje,
+ user_card_no:num.user_card_no,
+ user_name:num.user_name,
+ patid:patid,
+ payOrdId:payOrdId,
+ payToken:payToken,
+ ysje:ysje
+ }
+
+ reqDTO = JSON.stringify(reqDTO)
+ wx.request({
+ url: 'https://fy.btlsoln.com:8443/api/wxybpay/ybAppletPay',
+ method:"POST",
+ data:reqDTO,
+ header:{
+ 'content-type':'application/json'
+ },
+ success: (res)=> {
+ if(res.data.errCode==0){
+ app.globalData.areadly = false
+ wx.setStorageSync('hosp_out_trade_no', hosp_out_trade_no)
+ wx.navigateToMiniProgram({
+ appId:res.data.data.pay_appid,
+ path:res.data.data.pay_url,
+ envVersion: 'release',
+ success(res) {
+ console.log('跳转成功')
+ // wx.navigateTo({
+ // url: 'pages/newChatDetail/newChatDetail?hosp_out_trade_no='+this.globalData.hosp_out_trade_no,
+ // })
+ },
+
+ })
+ }
+ }
+ })
+ },
+
+ onLoad(options) {
+ let a = JSON.parse(options.obj)
+ let b = a.detail.map(item=>{
+ item.xmsl = Math.trunc(item.xmsl)
+ return item
+ })
+ let list = JSON.parse(options.list)
+ this.setData({objs:a,radio:options.radioValue,prescriptionList:b,list:list})
+ console.log(a, "a");
+ let xx = a;
+ a.sjh = list.detail.sjh;
+ console.log(xx, "xx");
+ this.updateTJ(xx, list);
+ this.updatekf(xx, list);
+ },
+
+ updatekf(xx, list){
+ util.requestPost(api.kfconfirmOrder, {
+ patid: xx.patid,
+ detail: xx.detail,
+ orderId: list.hosp_out_trade_no,
+ sjh: xx.sjh
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("confirmOrder res:");
+ console.log(res);
+
+
+ }
+ else{
+
+ }
+ });
+ },
+
+ updateTJ(xx, list){
+ util.requestPost(api.confirmOrder, {
+ patid: xx.patid,
+ detail: xx.detail,
+ orderId: list.hosp_out_trade_no,
+ sjh: xx.sjh
+ })
+ .then(function(res) {
+ console.log(res);
+ if (res.code === 0) {
+ console.log("confirmOrder res:");
+ console.log(res);
+
+
+ }
+ else{
+
+ }
+ });
+ },
+
+ onShow() {
+
+ },
+ onUnload() {
+ if(app.globalData.areadly && this.data.radio!=0){
+ this.CancelPreSettlement()
+ }else{
+ }
+ },
+})
+
\ No newline at end of file
diff --git a/pages/yib/yib.json b/pages/yib/yib.json
new file mode 100644
index 0000000..72c24e3
--- /dev/null
+++ b/pages/yib/yib.json
@@ -0,0 +1,5 @@
+{
+ "navigationBarBackgroundColor": "#3B71E8",
+ "navigationBarTitleText": "确认支付",
+ "navigationBarTextStyle": "white"
+}
diff --git a/pages/yib/yib.wxml b/pages/yib/yib.wxml
new file mode 100644
index 0000000..5b0e5a3
--- /dev/null
+++ b/pages/yib/yib.wxml
@@ -0,0 +1,95 @@
+
+
+
+ 付款给
+ 库尔勒市妇幼保健院
+
+
+
+
+
+
+
+
+
+ 费用总额
+ {{list.detail.zje}}元
+
+
+
+ 医保基金支付
+ {{list.detail.ybzf}}元
+
+
+ 个人账户支付
+ {{list.detail.zhzf}}元
+
+
+ 其他抵扣金额
+ {{list.detail.yhje}}元
+
+
+
+ 现金支付
+ {{list.detail.zfje}}元
+
+
+ 查看明细
+
+
+
+
+
+ 医保移动支付
+
+
+
+
+ 您还需支付:
+ ¥{{list.detail.zfje}}
+
+ 去支付
+
+
+
+
+
+ 处方明细
+
+
+
+
+
+
+ 费用信息
+
+
+
+
+ {{items.ypmc}}*{{items.xmsl}}
+ {{items.ypgg}}
+
+ {{items.xmje}}
+
+
+
+
+
+
+
+
diff --git a/pages/yib/yib.wxss b/pages/yib/yib.wxss
new file mode 100644
index 0000000..744f86c
--- /dev/null
+++ b/pages/yib/yib.wxss
@@ -0,0 +1,202 @@
+@import './actionsheet.wxss';
+
+.page-index {
+ display: flex;
+ flex-direction: column;
+ min-height: 100vh;
+}
+.hd {
+ position: relative;
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ color: #fff;
+ padding: 64rpx 40rpx 40rpx 40rpx;
+ box-sizing: border-box;
+}
+.bg {
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ height: 340rpx;
+ background-color: #3B71E8;
+ border-radius: 0 0 60rpx 60rpx;
+ z-index: 0;
+}
+.info {
+ position: relative;
+ z-index: 1;
+ color: #fff;
+}
+.info-hd {
+ font-size: 28rpx;
+ line-height: 40rpx;
+ color: rgba(255, 255, 255, 0.6);
+}
+.info-bd {
+ font-size: 36rpx;
+ line-height: 50rpx;
+ margin-top: 6rpx;
+ font-weight: bold;
+}
+.info-icon {
+ position: relative;
+ z-index: 1;
+ width: 80rpx;
+ height: 80rpx;
+}
+.info-icon-img {
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+.bd {
+ flex: 1;
+ position: relative;
+ z-index: 1;
+}
+.box {
+ border-radius: 16rpx;
+ background-color: #fff;
+ margin: 0 40rpx;
+ padding: 0 40rpx;
+ padding-bottom: 34rpx;
+ box-shadow: 0 6rpx 20rpx #E6E6E6;
+}
+.box-hd {
+ position: relative;
+ display: flex;
+ justify-content: space-between;
+ padding: 48rpx 0 36rpx;
+ color: #606266;
+}
+.box-hd:before {
+ content: '';
+ position: absolute;
+ left: -16rpx;
+ bottom: 0;
+ right: -16rpx;
+ border-bottom: 2rpx dashed #D8D8D8;
+ transform: scaleY(0.5);
+}
+.box-hd-label {
+ font-weight: bold;
+}
+.box-hd-value {
+ font-weight: bold;
+}
+.box-bd {
+ padding-top: 38rpx;
+}
+.box-item {
+ display: flex;
+ justify-content: space-between;
+ color: #909399;
+ font-size: 28rpx;
+ line-height: 40rpx;
+ padding-bottom: 20rpx;
+}
+.box-item:last-child {
+ padding-bottom: 0;
+}
+.box-ft {
+ display: flex;
+ justify-content: space-between;
+ padding-top: 40rpx;
+ padding-bottom: 34rpx;
+ font-size: 32rpx;
+ color: #3B71E8;
+}
+.box-ft-label {
+ font-weight: bold;
+}
+.box-ft-value {
+ font-weight: bold;
+}
+.box-append {
+ position: relative;
+ font-size: 28rpx;
+ line-height: 40rpx;
+ color: #606266;
+ text-align: center;
+ padding: 40rpx 0 6rpx;
+}
+.box-append:before {
+ content: '';
+ position: absolute;
+ left: -16rpx;
+ top: 0;
+ right: -16rpx;
+ border-top: 2rpx dashed #D8D8D8;
+ transform: scaleY(0.5);
+}
+.bd-append {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-top: 64rpx;
+ margin-bottom: 64rpx;
+}
+.bd-append-icon {
+ display: block;
+ width: 80rpx;
+ height: 24rpx;
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAYCAYAAABtGnqsAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAUKADAAQAAAABAAAAGAAAAABZY1/HAAAFsUlEQVRYCc1ZW2xURRief862bOViFUoRobFCS0rTcmkBI0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ZCOgxNBlF5A9H33YYKZVt6t09q07vXt47gmHK5IZgQI7wSXPWa3RyIyVkRiMEYr1ceWNBvhuDhVgmWik5stevhyLWfYqVHPUzs4F2A0C8pEYUnvPz0xeNt8wcvXN9/88bNJ2G7Q3IpZQUBaB3081hQuyePNZc8XNddArGn7rOZH06xUx5IPb+SJTYQFWkCwi6PP7vpL604lej23Vh6hlPHcYuJJNDLf15nmkR8D3v1qF/08w76eTlID/hz4890VTxQ9o+kt4D19iCDajkOnVY8V9vob+BbeTgUAz0cW6VVSOMI4+a/2jHY1uH5E+G6fnyZz1vmP6DisH0Y4Q5Hqa9Yp4iQIxK6tSLQ4dIVrr4RVmkrdbiqdtsnCPYtUIwU24WvhmJ+oHc4faHnbOptyU0pxykGxqUsOrlvj3X+sevcd/fmCuKe20ZiEOAt0njGLL0mF7dF5VGsbEE0izl9LDPAh4q4SO1KFY5jQo+EKSryL1DMOrzKqPCmIZzJh5TICRVIHy5QpHTeSeSLEuEboljGxeTzG6lpbNow+swi78XiRXo+8kssn1VWL0OGbqxEDv+zgWgDvA4t7S4Y1GvlQGyb/wRNVl+RqnG5iCep/0PB/2kmE9t9C6R3haYVGZtUbjgCf58NfvgTfuO3Epu+bXVwaNZR5SsSJ/+PfJJlqOhw7GiTYxoKIW/lPVKqwB0YKHuXYVhLgkBEfb1uTcubtSCS1ra+iMYzSFrXaxsbrTPRxMePdmXx/HQfMDbY4LA0P2EdGEmvw9isHmJt+qlLB/kN3KSR595oaVvz8FdHti7W2v8NLlABhG0soLMAAAAASUVORK5CYII=') center center no-repeat;
+ background-size: 100% 100%;
+ margin-right: 16rpx;
+}
+.bd-append-text {
+ font-size: 28rpx;
+ line-height: 40rpx;
+ color: #909399;
+ font-weight: bold;
+}
+.ft {
+ position: relative;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding-top: 28rpx;
+ padding-left: 32rpx;
+ padding-right: 32rpx;
+ padding-bottom: calc(28rpx + constant(safe-area-inset-bottom));
+ padding-bottom: calc(28rpx + env(safe-area-inset-bottom));
+}
+.pay {
+ display: flex;
+}
+.pay-label {
+ font-size: 32rpx;
+ line-height: 48rpx;
+ color:rgba(0, 0, 0, 0.6);
+ margin-right: 10rpx;
+}
+.pay-value {
+ font-size: 44rpx;
+ line-height: 48rpx;
+ color: #3B71E8;
+ font-weight: bold;
+}
+.btn {
+ font-size: 36rpx;
+ font-weight: bold;
+ line-height: 48rpx;
+ color: #fff;
+ background-color: #0D7CFF;
+ padding: 20rpx 46rpx;
+ border-radius: 48rpx;
+}
+.ft:before {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ border-top: 2rpx solid rgba(0, 0, 0, 0.2);
+ transform: scaleY(0.5);
+}
+
+
+
+
diff --git a/project.config.json b/project.config.json
new file mode 100644
index 0000000..ab59504
--- /dev/null
+++ b/project.config.json
@@ -0,0 +1,73 @@
+{
+ "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "setting": {
+ "urlCheck": false,
+ "es6": true,
+ "enhance": true,
+ "postcss": true,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "newFeature": true,
+ "coverView": true,
+ "nodeModules": true,
+ "autoAudits": false,
+ "showShadowRootInWxmlPanel": true,
+ "scopeDataCheck": false,
+ "uglifyFileName": true,
+ "checkInvalidKey": true,
+ "checkSiteMap": true,
+ "uploadWithSourceMap": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "useMultiFrameRuntime": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "useIsolateContext": false,
+ "userConfirmedBundleSwitch": false,
+ "packNpmManually": true,
+ "packNpmRelationList": [
+ {
+ "packageJsonPath": "./package.json",
+ "miniprogramNpmDistDir": "./"
+ }
+ ],
+ "minifyWXSS": true,
+ "disableUseStrict": false,
+ "minifyWXML": true,
+ "showES6CompileOption": false,
+ "useCompilerPlugins": false,
+ "useStaticServer": true,
+ "ignoreUploadUnusedFiles": true,
+ "condition": false
+ },
+ "compileType": "miniprogram",
+ "simulatorType": "wechat",
+ "simulatorPluginLibVersion": {},
+ "condition": {
+ "search": {
+ "list": []
+ },
+ "conversation": {
+ "list": []
+ },
+ "game": {
+ "currentL": -1,
+ "list": []
+ },
+ "miniprogram": {
+ "list": []
+ }
+ },
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ },
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wx83bc9715be856b14"
+}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
new file mode 100644
index 0000000..6480e63
--- /dev/null
+++ b/project.private.config.json
@@ -0,0 +1,199 @@
+{
+ "setting": {
+ "compileHotReLoad": true,
+ "urlCheck": true
+ },
+ "condition": {
+ "miniprogram": {
+ "list": [
+ {
+ "name": "pages/departmentMsg/departmentMsg",
+ "pathName": "pages/departmentMsg/departmentMsg",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/resInformation/resInformation",
+ "pathName": "pages/resInformation/resInformation",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/selectDepartment/selectDepartment",
+ "pathName": "pages/selectDepartment/selectDepartment",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/confirmation/confirmation",
+ "pathName": "pages/confirmation/confirmation",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/ghMsg/ghMsg",
+ "pathName": "pages/ghMsg/ghMsg",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/index/index",
+ "pathName": "pages/index/index",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/my/my",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/record/record",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/userMgr/userMgr",
+ "pathName": "pages/userMgr/userMgr",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/userMsgDel/userMsgDel",
+ "pathName": "pages/userMsgDel/userMsgDel",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/test/test",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/bgMsg/bgMsg",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/bgMsg/bgMsg",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/bgXq/bgXq",
+ "query": "name=%E9%98%BF%E8%BF%AA%E4%B9%83%C2%B7%E8%89%BE%E6%95%A3&sex=%E5%A5%B3&age=23%E5%B2%81&HisOrderName=%E8%A1%80%E5%B8%B8%E8%A7%84%2BRet(%E9%97%A8%E8%AF%8A)&repno=3954576",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/notification/notification",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "pages/message/message",
+ "pathName": "pages/message/message",
+ "query": "",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/jfMsg/jfMsg",
+ "query": "sjh=20210710000001&name=%E6%9D%9C%E5%AE%89%E6%88%90&card=513002199111204759&sflb=%E6%94%B6%E8%B4%B9&ksmc=%E5%AD%95%E6%9C%9F%E4%BF%9D%E5%81%A5%E5%AE%A41",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/jfMsg/jfMsg",
+ "query": "sjh=20210710000001&name=%E6%9D%9C%E5%AE%89%E6%88%90&card=513002199111204759&sflb=%E6%94%B6%E8%B4%B9&ksmc=%E5%AD%95%E6%9C%9F%E4%BF%9D%E5%81%A5%E5%AE%A41",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/userMsgDel/userMsgDel",
+ "query": "state=0",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/addUserMessage/addUserMessage",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/payment/payment",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/topay/topay",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/chat/chat",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/chatDetail/chatDetail",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/yib/yib",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/userMgr/userMgr",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/userMsgDel/userMsgDel",
+ "query": "state=0",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/index/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "",
+ "pathName": "pages/newChatDetail/newChatDetail",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ }
+ ]
+ }
+ },
+ "projectname": "hrsmini",
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "libVersion": "2.19.2"
+}
\ No newline at end of file
diff --git a/sitemap.json b/sitemap.json
new file mode 100644
index 0000000..ca02add
--- /dev/null
+++ b/sitemap.json
@@ -0,0 +1,7 @@
+{
+ "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
+ "rules": [{
+ "action": "allow",
+ "page": "*"
+ }]
+}
\ No newline at end of file
diff --git a/utils/area.js b/utils/area.js
new file mode 100644
index 0000000..83f41a8
--- /dev/null
+++ b/utils/area.js
@@ -0,0 +1,3296 @@
+var areaList =
+{
+ "province_list": {
+ "110000": "北京市",
+ "120000": "天津市",
+ "130000": "河北省",
+ "140000": "山西省",
+ "150000": "内蒙古自治区",
+ "210000": "辽宁省",
+ "220000": "吉林省",
+ "230000": "黑龙江省",
+ "310000": "上海市",
+ "320000": "江苏省",
+ "330000": "浙江省",
+ "340000": "安徽省",
+ "350000": "福建省",
+ "360000": "江西省",
+ "370000": "山东省",
+ "410000": "河南省",
+ "420000": "湖北省",
+ "430000": "湖南省",
+ "440000": "广东省",
+ "450000": "广西壮族自治区",
+ "460000": "海南省",
+ "500000": "重庆市",
+ "510000": "四川省",
+ "520000": "贵州省",
+ "530000": "云南省",
+ "540000": "西藏自治区",
+ "610000": "陕西省",
+ "620000": "甘肃省",
+ "630000": "青海省",
+ "640000": "宁夏回族自治区",
+ "650000": "新疆维吾尔自治区"
+ },
+ "city_list": {
+ "110100": "市辖区",
+ "120100": "市辖区",
+ "130100": "石家庄市",
+ "130200": "唐山市",
+ "130300": "秦皇岛市",
+ "130400": "邯郸市",
+ "130500": "邢台市",
+ "130600": "保定市",
+ "130700": "张家口市",
+ "130800": "承德市",
+ "130900": "沧州市",
+ "131000": "廊坊市",
+ "131100": "衡水市",
+ "139000": "省直辖县级行政区划",
+ "140100": "太原市",
+ "140200": "大同市",
+ "140300": "阳泉市",
+ "140400": "长治市",
+ "140500": "晋城市",
+ "140600": "朔州市",
+ "140700": "晋中市",
+ "140800": "运城市",
+ "140900": "忻州市",
+ "141000": "临汾市",
+ "141100": "吕梁市",
+ "150100": "呼和浩特市",
+ "150200": "包头市",
+ "150300": "乌海市",
+ "150400": "赤峰市",
+ "150500": "通辽市",
+ "150600": "鄂尔多斯市",
+ "150700": "呼伦贝尔市",
+ "150800": "巴彦淖尔市",
+ "150900": "乌兰察布市",
+ "152200": "兴安盟",
+ "152500": "锡林郭勒盟",
+ "152900": "阿拉善盟",
+ "210100": "沈阳市",
+ "210200": "大连市",
+ "210300": "鞍山市",
+ "210400": "抚顺市",
+ "210500": "本溪市",
+ "210600": "丹东市",
+ "210700": "锦州市",
+ "210800": "营口市",
+ "210900": "阜新市",
+ "211000": "辽阳市",
+ "211100": "盘锦市",
+ "211200": "铁岭市",
+ "211300": "朝阳市",
+ "211400": "葫芦岛市",
+ "220100": "长春市",
+ "220200": "吉林市",
+ "220300": "四平市",
+ "220400": "辽源市",
+ "220500": "通化市",
+ "220600": "白山市",
+ "220700": "松原市",
+ "220800": "白城市",
+ "222400": "延边朝鲜族自治州",
+ "230100": "哈尔滨市",
+ "230200": "齐齐哈尔市",
+ "230300": "鸡西市",
+ "230400": "鹤岗市",
+ "230500": "双鸭山市",
+ "230600": "大庆市",
+ "230700": "伊春市",
+ "230800": "佳木斯市",
+ "230900": "七台河市",
+ "231000": "牡丹江市",
+ "231100": "黑河市",
+ "231200": "绥化市",
+ "232700": "大兴安岭地区",
+ "310100": "市辖区",
+ "320100": "南京市",
+ "320200": "无锡市",
+ "320300": "徐州市",
+ "320400": "常州市",
+ "320500": "苏州市",
+ "320600": "南通市",
+ "320700": "连云港市",
+ "320800": "淮安市",
+ "320900": "盐城市",
+ "321000": "扬州市",
+ "321100": "镇江市",
+ "321200": "泰州市",
+ "321300": "宿迁市",
+ "330100": "杭州市",
+ "330200": "宁波市",
+ "330300": "温州市",
+ "330400": "嘉兴市",
+ "330500": "湖州市",
+ "330600": "绍兴市",
+ "330700": "金华市",
+ "330800": "衢州市",
+ "330900": "舟山市",
+ "331000": "台州市",
+ "331100": "丽水市",
+ "340100": "合肥市",
+ "340200": "芜湖市",
+ "340300": "蚌埠市",
+ "340400": "淮南市",
+ "340500": "马鞍山市",
+ "340600": "淮北市",
+ "340700": "铜陵市",
+ "340800": "安庆市",
+ "341000": "黄山市",
+ "341100": "滁州市",
+ "341200": "阜阳市",
+ "341300": "宿州市",
+ "341500": "六安市",
+ "341600": "亳州市",
+ "341700": "池州市",
+ "341800": "宣城市",
+ "350100": "福州市",
+ "350200": "厦门市",
+ "350300": "莆田市",
+ "350400": "三明市",
+ "350500": "泉州市",
+ "350600": "漳州市",
+ "350700": "南平市",
+ "350800": "龙岩市",
+ "350900": "宁德市",
+ "360100": "南昌市",
+ "360200": "景德镇市",
+ "360300": "萍乡市",
+ "360400": "九江市",
+ "360500": "新余市",
+ "360600": "鹰潭市",
+ "360700": "赣州市",
+ "360800": "吉安市",
+ "360900": "宜春市",
+ "361000": "抚州市",
+ "361100": "上饶市",
+ "370100": "济南市",
+ "370200": "青岛市",
+ "370300": "淄博市",
+ "370400": "枣庄市",
+ "370500": "东营市",
+ "370600": "烟台市",
+ "370700": "潍坊市",
+ "370800": "济宁市",
+ "370900": "泰安市",
+ "371000": "威海市",
+ "371100": "日照市",
+ "371200": "莱芜市",
+ "371300": "临沂市",
+ "371400": "德州市",
+ "371500": "聊城市",
+ "371600": "滨州市",
+ "371700": "菏泽市",
+ "410100": "郑州市",
+ "410200": "开封市",
+ "410300": "洛阳市",
+ "410400": "平顶山市",
+ "410500": "安阳市",
+ "410600": "鹤壁市",
+ "410700": "新乡市",
+ "410800": "焦作市",
+ "410900": "濮阳市",
+ "411000": "许昌市",
+ "411100": "漯河市",
+ "411200": "三门峡市",
+ "411300": "南阳市",
+ "411400": "商丘市",
+ "411500": "信阳市",
+ "411600": "周口市",
+ "411700": "驻马店市",
+ "419000": "省直辖县级行政区划",
+ "420100": "武汉市",
+ "420200": "黄石市",
+ "420300": "十堰市",
+ "420500": "宜昌市",
+ "420600": "襄阳市",
+ "420700": "鄂州市",
+ "420800": "荆门市",
+ "420900": "孝感市",
+ "421000": "荆州市",
+ "421100": "黄冈市",
+ "421200": "咸宁市",
+ "421300": "随州市",
+ "422800": "恩施土家族苗族自治州",
+ "429000": "省直辖县级行政区划",
+ "430100": "长沙市",
+ "430200": "株洲市",
+ "430300": "湘潭市",
+ "430400": "衡阳市",
+ "430500": "邵阳市",
+ "430600": "岳阳市",
+ "430700": "常德市",
+ "430800": "张家界市",
+ "430900": "益阳市",
+ "431000": "郴州市",
+ "431100": "永州市",
+ "431200": "怀化市",
+ "431300": "娄底市",
+ "433100": "湘西土家族苗族自治州",
+ "440100": "广州市",
+ "440200": "韶关市",
+ "440300": "深圳市",
+ "440400": "珠海市",
+ "440500": "汕头市",
+ "440600": "佛山市",
+ "440700": "江门市",
+ "440800": "湛江市",
+ "440900": "茂名市",
+ "441200": "肇庆市",
+ "441300": "惠州市",
+ "441400": "梅州市",
+ "441500": "汕尾市",
+ "441600": "河源市",
+ "441700": "阳江市",
+ "441800": "清远市",
+ "441900": "东莞市",
+ "442000": "中山市",
+ "445100": "潮州市",
+ "445200": "揭阳市",
+ "445300": "云浮市",
+ "450100": "南宁市",
+ "450200": "柳州市",
+ "450300": "桂林市",
+ "450400": "梧州市",
+ "450500": "北海市",
+ "450600": "防城港市",
+ "450700": "钦州市",
+ "450800": "贵港市",
+ "450900": "玉林市",
+ "451000": "百色市",
+ "451100": "贺州市",
+ "451200": "河池市",
+ "451300": "来宾市",
+ "451400": "崇左市",
+ "460100": "海口市",
+ "460200": "三亚市",
+ "460300": "三沙市",
+ "460400": "儋州市",
+ "469000": "省直辖县级行政区划",
+ "500100": "市辖区",
+ "500200": "县",
+ "510100": "成都市",
+ "510300": "自贡市",
+ "510400": "攀枝花市",
+ "510500": "泸州市",
+ "510600": "德阳市",
+ "510700": "绵阳市",
+ "510800": "广元市",
+ "510900": "遂宁市",
+ "511000": "内江市",
+ "511100": "乐山市",
+ "511300": "南充市",
+ "511400": "眉山市",
+ "511500": "宜宾市",
+ "511600": "广安市",
+ "511700": "达州市",
+ "511800": "雅安市",
+ "511900": "巴中市",
+ "512000": "资阳市",
+ "513200": "阿坝藏族羌族自治州",
+ "513300": "甘孜藏族自治州",
+ "513400": "凉山彝族自治州",
+ "520100": "贵阳市",
+ "520200": "六盘水市",
+ "520300": "遵义市",
+ "520400": "安顺市",
+ "520500": "毕节市",
+ "520600": "铜仁市",
+ "522300": "黔西南布依族苗族自治州",
+ "522600": "黔东南苗族侗族自治州",
+ "522700": "黔南布依族苗族自治州",
+ "530100": "昆明市",
+ "530300": "曲靖市",
+ "530400": "玉溪市",
+ "530500": "保山市",
+ "530600": "昭通市",
+ "530700": "丽江市",
+ "530800": "普洱市",
+ "530900": "临沧市",
+ "532300": "楚雄彝族自治州",
+ "532500": "红河哈尼族彝族自治州",
+ "532600": "文山壮族苗族自治州",
+ "532800": "西双版纳傣族自治州",
+ "532900": "大理白族自治州",
+ "533100": "德宏傣族景颇族自治州",
+ "533300": "怒江傈僳族自治州",
+ "533400": "迪庆藏族自治州",
+ "540100": "拉萨市",
+ "540200": "日喀则市",
+ "540300": "昌都市",
+ "540400": "林芝市",
+ "540500": "山南市",
+ "542400": "那曲地区",
+ "542500": "阿里地区",
+ "610100": "西安市",
+ "610200": "铜川市",
+ "610300": "宝鸡市",
+ "610400": "咸阳市",
+ "610500": "渭南市",
+ "610600": "延安市",
+ "610700": "汉中市",
+ "610800": "榆林市",
+ "610900": "安康市",
+ "611000": "商洛市",
+ "620100": "兰州市",
+ "620200": "嘉峪关市",
+ "620300": "金昌市",
+ "620400": "白银市",
+ "620500": "天水市",
+ "620600": "武威市",
+ "620700": "张掖市",
+ "620800": "平凉市",
+ "620900": "酒泉市",
+ "621000": "庆阳市",
+ "621100": "定西市",
+ "621200": "陇南市",
+ "622900": "临夏回族自治州",
+ "623000": "甘南藏族自治州",
+ "630100": "西宁市",
+ "630200": "海东市",
+ "632200": "海北藏族自治州",
+ "632300": "黄南藏族自治州",
+ "632500": "海南藏族自治州",
+ "632600": "果洛藏族自治州",
+ "632700": "玉树藏族自治州",
+ "632800": "海西蒙古族藏族自治州",
+ "640100": "银川市",
+ "640200": "石嘴山市",
+ "640300": "吴忠市",
+ "640400": "固原市",
+ "640500": "中卫市",
+ "650100": "乌鲁木齐市",
+ "650200": "克拉玛依市",
+ "650400": "吐鲁番市",
+ "650500": "哈密市",
+ "652300": "昌吉回族自治州",
+ "652700": "博尔塔拉蒙古自治州",
+ "652800": "巴音郭楞蒙古自治州",
+ "652900": "阿克苏地区",
+ "653000": "克孜勒苏柯尔克孜自治州",
+ "653100": "喀什地区",
+ "653200": "和田地区",
+ "654000": "伊犁哈萨克自治州",
+ "654200": "塔城地区",
+ "654300": "阿勒泰地区",
+ "659000": "自治区直辖县级行政区划"
+ },
+ "county_list": {
+ "110101": "东城区",
+ "110102": "西城区",
+ "110105": "朝阳区",
+ "110106": "丰台区",
+ "110107": "石景山区",
+ "110108": "海淀区",
+ "110109": "门头沟区",
+ "110111": "房山区",
+ "110112": "通州区",
+ "110113": "顺义区",
+ "110114": "昌平区",
+ "110115": "大兴区",
+ "110116": "怀柔区",
+ "110117": "平谷区",
+ "110118": "密云区",
+ "110119": "延庆区",
+ "120101": "和平区",
+ "120102": "河东区",
+ "120103": "河西区",
+ "120104": "南开区",
+ "120105": "河北区",
+ "120106": "红桥区",
+ "120110": "东丽区",
+ "120111": "西青区",
+ "120112": "津南区",
+ "120113": "北辰区",
+ "120114": "武清区",
+ "120115": "宝坻区",
+ "120116": "滨海新区",
+ "120117": "宁河区",
+ "120118": "静海区",
+ "120119": "蓟州区",
+ "130102": "长安区",
+ "130104": "桥西区",
+ "130105": "新华区",
+ "130107": "井陉矿区",
+ "130108": "裕华区",
+ "130109": "藁城区",
+ "130110": "鹿泉区",
+ "130111": "栾城区",
+ "130121": "井陉县",
+ "130123": "正定县",
+ "130125": "行唐县",
+ "130126": "灵寿县",
+ "130127": "高邑县",
+ "130128": "深泽县",
+ "130129": "赞皇县",
+ "130130": "无极县",
+ "130131": "平山县",
+ "130132": "元氏县",
+ "130133": "赵县",
+ "130183": "晋州市",
+ "130184": "新乐市",
+ "130202": "路南区",
+ "130203": "路北区",
+ "130204": "古冶区",
+ "130205": "开平区",
+ "130207": "丰南区",
+ "130208": "丰润区",
+ "130209": "曹妃甸区",
+ "130223": "滦县",
+ "130224": "滦南县",
+ "130225": "乐亭县",
+ "130227": "迁西县",
+ "130229": "玉田县",
+ "130281": "遵化市",
+ "130283": "迁安市",
+ "130302": "海港区",
+ "130303": "山海关区",
+ "130304": "北戴河区",
+ "130306": "抚宁区",
+ "130321": "青龙满族自治县",
+ "130322": "昌黎县",
+ "130324": "卢龙县",
+ "130402": "邯山区",
+ "130403": "丛台区",
+ "130404": "复兴区",
+ "130406": "峰峰矿区",
+ "130421": "邯郸县",
+ "130423": "临漳县",
+ "130424": "成安县",
+ "130425": "大名县",
+ "130426": "涉县",
+ "130427": "磁县",
+ "130428": "肥乡县",
+ "130429": "永年县",
+ "130430": "邱县",
+ "130431": "鸡泽县",
+ "130432": "广平县",
+ "130433": "馆陶县",
+ "130434": "魏县",
+ "130435": "曲周县",
+ "130481": "武安市",
+ "130502": "桥东区",
+ "130503": "桥西区",
+ "130521": "邢台县",
+ "130522": "临城县",
+ "130523": "内丘县",
+ "130524": "柏乡县",
+ "130525": "隆尧县",
+ "130526": "任县",
+ "130527": "南和县",
+ "130528": "宁晋县",
+ "130529": "巨鹿县",
+ "130530": "新河县",
+ "130531": "广宗县",
+ "130532": "平乡县",
+ "130533": "威县",
+ "130534": "清河县",
+ "130535": "临西县",
+ "130581": "南宫市",
+ "130582": "沙河市",
+ "130602": "竞秀区",
+ "130606": "莲池区",
+ "130607": "满城区",
+ "130608": "清苑区",
+ "130609": "徐水区",
+ "130623": "涞水县",
+ "130624": "阜平县",
+ "130626": "定兴县",
+ "130627": "唐县",
+ "130628": "高阳县",
+ "130629": "容城县",
+ "130630": "涞源县",
+ "130631": "望都县",
+ "130632": "安新县",
+ "130633": "易县",
+ "130634": "曲阳县",
+ "130635": "蠡县",
+ "130636": "顺平县",
+ "130637": "博野县",
+ "130638": "雄县",
+ "130681": "涿州市",
+ "130683": "安国市",
+ "130684": "高碑店市",
+ "130702": "桥东区",
+ "130703": "桥西区",
+ "130705": "宣化区",
+ "130706": "下花园区",
+ "130708": "万全区",
+ "130709": "崇礼区",
+ "130722": "张北县",
+ "130723": "康保县",
+ "130724": "沽源县",
+ "130725": "尚义县",
+ "130726": "蔚县",
+ "130727": "阳原县",
+ "130728": "怀安县",
+ "130730": "怀来县",
+ "130731": "涿鹿县",
+ "130732": "赤城县",
+ "130802": "双桥区",
+ "130803": "双滦区",
+ "130804": "鹰手营子矿区",
+ "130821": "承德县",
+ "130822": "兴隆县",
+ "130823": "平泉县",
+ "130824": "滦平县",
+ "130825": "隆化县",
+ "130826": "丰宁满族自治县",
+ "130827": "宽城满族自治县",
+ "130828": "围场满族蒙古族自治县",
+ "130902": "新华区",
+ "130903": "运河区",
+ "130921": "沧县",
+ "130922": "青县",
+ "130923": "东光县",
+ "130924": "海兴县",
+ "130925": "盐山县",
+ "130926": "肃宁县",
+ "130927": "南皮县",
+ "130928": "吴桥县",
+ "130929": "献县",
+ "130930": "孟村回族自治县",
+ "130981": "泊头市",
+ "130982": "任丘市",
+ "130983": "黄骅市",
+ "130984": "河间市",
+ "131002": "安次区",
+ "131003": "广阳区",
+ "131022": "固安县",
+ "131023": "永清县",
+ "131024": "香河县",
+ "131025": "大城县",
+ "131026": "文安县",
+ "131028": "大厂回族自治县",
+ "131081": "霸州市",
+ "131082": "三河市",
+ "131102": "桃城区",
+ "131103": "冀州区",
+ "131121": "枣强县",
+ "131122": "武邑县",
+ "131123": "武强县",
+ "131124": "饶阳县",
+ "131125": "安平县",
+ "131126": "故城县",
+ "131127": "景县",
+ "131128": "阜城县",
+ "131182": "深州市",
+ "139001": "定州市",
+ "139002": "辛集市",
+ "140105": "小店区",
+ "140106": "迎泽区",
+ "140107": "杏花岭区",
+ "140108": "尖草坪区",
+ "140109": "万柏林区",
+ "140110": "晋源区",
+ "140121": "清徐县",
+ "140122": "阳曲县",
+ "140123": "娄烦县",
+ "140181": "古交市",
+ "140202": "城区",
+ "140203": "矿区",
+ "140211": "南郊区",
+ "140212": "新荣区",
+ "140221": "阳高县",
+ "140222": "天镇县",
+ "140223": "广灵县",
+ "140224": "灵丘县",
+ "140225": "浑源县",
+ "140226": "左云县",
+ "140227": "大同县",
+ "140302": "城区",
+ "140303": "矿区",
+ "140311": "郊区",
+ "140321": "平定县",
+ "140322": "盂县",
+ "140402": "城区",
+ "140411": "郊区",
+ "140421": "长治县",
+ "140423": "襄垣县",
+ "140424": "屯留县",
+ "140425": "平顺县",
+ "140426": "黎城县",
+ "140427": "壶关县",
+ "140428": "长子县",
+ "140429": "武乡县",
+ "140430": "沁县",
+ "140431": "沁源县",
+ "140481": "潞城市",
+ "140502": "城区",
+ "140521": "沁水县",
+ "140522": "阳城县",
+ "140524": "陵川县",
+ "140525": "泽州县",
+ "140581": "高平市",
+ "140602": "朔城区",
+ "140603": "平鲁区",
+ "140621": "山阴县",
+ "140622": "应县",
+ "140623": "右玉县",
+ "140624": "怀仁县",
+ "140702": "榆次区",
+ "140721": "榆社县",
+ "140722": "左权县",
+ "140723": "和顺县",
+ "140724": "昔阳县",
+ "140725": "寿阳县",
+ "140726": "太谷县",
+ "140727": "祁县",
+ "140728": "平遥县",
+ "140729": "灵石县",
+ "140781": "介休市",
+ "140802": "盐湖区",
+ "140821": "临猗县",
+ "140822": "万荣县",
+ "140823": "闻喜县",
+ "140824": "稷山县",
+ "140825": "新绛县",
+ "140826": "绛县",
+ "140827": "垣曲县",
+ "140828": "夏县",
+ "140829": "平陆县",
+ "140830": "芮城县",
+ "140881": "永济市",
+ "140882": "河津市",
+ "140902": "忻府区",
+ "140921": "定襄县",
+ "140922": "五台县",
+ "140923": "代县",
+ "140924": "繁峙县",
+ "140925": "宁武县",
+ "140926": "静乐县",
+ "140927": "神池县",
+ "140928": "五寨县",
+ "140929": "岢岚县",
+ "140930": "河曲县",
+ "140931": "保德县",
+ "140932": "偏关县",
+ "140981": "原平市",
+ "141002": "尧都区",
+ "141021": "曲沃县",
+ "141022": "翼城县",
+ "141023": "襄汾县",
+ "141024": "洪洞县",
+ "141025": "古县",
+ "141026": "安泽县",
+ "141027": "浮山县",
+ "141028": "吉县",
+ "141029": "乡宁县",
+ "141030": "大宁县",
+ "141031": "隰县",
+ "141032": "永和县",
+ "141033": "蒲县",
+ "141034": "汾西县",
+ "141081": "侯马市",
+ "141082": "霍州市",
+ "141102": "离石区",
+ "141121": "文水县",
+ "141122": "交城县",
+ "141123": "兴县",
+ "141124": "临县",
+ "141125": "柳林县",
+ "141126": "石楼县",
+ "141127": "岚县",
+ "141128": "方山县",
+ "141129": "中阳县",
+ "141130": "交口县",
+ "141181": "孝义市",
+ "141182": "汾阳市",
+ "150102": "新城区",
+ "150103": "回民区",
+ "150104": "玉泉区",
+ "150105": "赛罕区",
+ "150121": "土默特左旗",
+ "150122": "托克托县",
+ "150123": "和林格尔县",
+ "150124": "清水河县",
+ "150125": "武川县",
+ "150202": "东河区",
+ "150203": "昆都仑区",
+ "150204": "青山区",
+ "150205": "石拐区",
+ "150206": "白云鄂博矿区",
+ "150207": "九原区",
+ "150221": "土默特右旗",
+ "150222": "固阳县",
+ "150223": "达尔罕茂明安联合旗",
+ "150302": "海勃湾区",
+ "150303": "海南区",
+ "150304": "乌达区",
+ "150402": "红山区",
+ "150403": "元宝山区",
+ "150404": "松山区",
+ "150421": "阿鲁科尔沁旗",
+ "150422": "巴林左旗",
+ "150423": "巴林右旗",
+ "150424": "林西县",
+ "150425": "克什克腾旗",
+ "150426": "翁牛特旗",
+ "150428": "喀喇沁旗",
+ "150429": "宁城县",
+ "150430": "敖汉旗",
+ "150502": "科尔沁区",
+ "150521": "科尔沁左翼中旗",
+ "150522": "科尔沁左翼后旗",
+ "150523": "开鲁县",
+ "150524": "库伦旗",
+ "150525": "奈曼旗",
+ "150526": "扎鲁特旗",
+ "150581": "霍林郭勒市",
+ "150602": "东胜区",
+ "150603": "康巴什区",
+ "150621": "达拉特旗",
+ "150622": "准格尔旗",
+ "150623": "鄂托克前旗",
+ "150624": "鄂托克旗",
+ "150625": "杭锦旗",
+ "150626": "乌审旗",
+ "150627": "伊金霍洛旗",
+ "150702": "海拉尔区",
+ "150703": "扎赉诺尔区",
+ "150721": "阿荣旗",
+ "150722": "莫力达瓦达斡尔族自治旗",
+ "150723": "鄂伦春自治旗",
+ "150724": "鄂温克族自治旗",
+ "150725": "陈巴尔虎旗",
+ "150726": "新巴尔虎左旗",
+ "150727": "新巴尔虎右旗",
+ "150781": "满洲里市",
+ "150782": "牙克石市",
+ "150783": "扎兰屯市",
+ "150784": "额尔古纳市",
+ "150785": "根河市",
+ "150802": "临河区",
+ "150821": "五原县",
+ "150822": "磴口县",
+ "150823": "乌拉特前旗",
+ "150824": "乌拉特中旗",
+ "150825": "乌拉特后旗",
+ "150826": "杭锦后旗",
+ "150902": "集宁区",
+ "150921": "卓资县",
+ "150922": "化德县",
+ "150923": "商都县",
+ "150924": "兴和县",
+ "150925": "凉城县",
+ "150926": "察哈尔右翼前旗",
+ "150927": "察哈尔右翼中旗",
+ "150928": "察哈尔右翼后旗",
+ "150929": "四子王旗",
+ "150981": "丰镇市",
+ "152201": "乌兰浩特市",
+ "152202": "阿尔山市",
+ "152221": "科尔沁右翼前旗",
+ "152222": "科尔沁右翼中旗",
+ "152223": "扎赉特旗",
+ "152224": "突泉县",
+ "152501": "二连浩特市",
+ "152502": "锡林浩特市",
+ "152522": "阿巴嘎旗",
+ "152523": "苏尼特左旗",
+ "152524": "苏尼特右旗",
+ "152525": "东乌珠穆沁旗",
+ "152526": "西乌珠穆沁旗",
+ "152527": "太仆寺旗",
+ "152528": "镶黄旗",
+ "152529": "正镶白旗",
+ "152530": "正蓝旗",
+ "152531": "多伦县",
+ "152921": "阿拉善左旗",
+ "152922": "阿拉善右旗",
+ "152923": "额济纳旗",
+ "210102": "和平区",
+ "210103": "沈河区",
+ "210104": "大东区",
+ "210105": "皇姑区",
+ "210106": "铁西区",
+ "210111": "苏家屯区",
+ "210112": "浑南区",
+ "210113": "沈北新区",
+ "210114": "于洪区",
+ "210115": "辽中区",
+ "210123": "康平县",
+ "210124": "法库县",
+ "210181": "新民市",
+ "210202": "中山区",
+ "210203": "西岗区",
+ "210204": "沙河口区",
+ "210211": "甘井子区",
+ "210212": "旅顺口区",
+ "210213": "金州区",
+ "210214": "普兰店区",
+ "210224": "长海县",
+ "210281": "瓦房店市",
+ "210283": "庄河市",
+ "210302": "铁东区",
+ "210303": "铁西区",
+ "210304": "立山区",
+ "210311": "千山区",
+ "210321": "台安县",
+ "210323": "岫岩满族自治县",
+ "210381": "海城市",
+ "210402": "新抚区",
+ "210403": "东洲区",
+ "210404": "望花区",
+ "210411": "顺城区",
+ "210421": "抚顺县",
+ "210422": "新宾满族自治县",
+ "210423": "清原满族自治县",
+ "210502": "平山区",
+ "210503": "溪湖区",
+ "210504": "明山区",
+ "210505": "南芬区",
+ "210521": "本溪满族自治县",
+ "210522": "桓仁满族自治县",
+ "210602": "元宝区",
+ "210603": "振兴区",
+ "210604": "振安区",
+ "210624": "宽甸满族自治县",
+ "210681": "东港市",
+ "210682": "凤城市",
+ "210702": "古塔区",
+ "210703": "凌河区",
+ "210711": "太和区",
+ "210726": "黑山县",
+ "210727": "义县",
+ "210781": "凌海市",
+ "210782": "北镇市",
+ "210802": "站前区",
+ "210803": "西市区",
+ "210804": "鲅鱼圈区",
+ "210811": "老边区",
+ "210881": "盖州市",
+ "210882": "大石桥市",
+ "210902": "海州区",
+ "210903": "新邱区",
+ "210904": "太平区",
+ "210905": "清河门区",
+ "210911": "细河区",
+ "210921": "阜新蒙古族自治县",
+ "210922": "彰武县",
+ "211002": "白塔区",
+ "211003": "文圣区",
+ "211004": "宏伟区",
+ "211005": "弓长岭区",
+ "211011": "太子河区",
+ "211021": "辽阳县",
+ "211081": "灯塔市",
+ "211102": "双台子区",
+ "211103": "兴隆台区",
+ "211104": "大洼区",
+ "211122": "盘山县",
+ "211202": "银州区",
+ "211204": "清河区",
+ "211221": "铁岭县",
+ "211223": "西丰县",
+ "211224": "昌图县",
+ "211281": "调兵山市",
+ "211282": "开原市",
+ "211302": "双塔区",
+ "211303": "龙城区",
+ "211321": "朝阳县",
+ "211322": "建平县",
+ "211324": "喀喇沁左翼蒙古族自治县",
+ "211381": "北票市",
+ "211382": "凌源市",
+ "211402": "连山区",
+ "211403": "龙港区",
+ "211404": "南票区",
+ "211421": "绥中县",
+ "211422": "建昌县",
+ "211481": "兴城市",
+ "220102": "南关区",
+ "220103": "宽城区",
+ "220104": "朝阳区",
+ "220105": "二道区",
+ "220106": "绿园区",
+ "220112": "双阳区",
+ "220113": "九台区",
+ "220122": "农安县",
+ "220182": "榆树市",
+ "220183": "德惠市",
+ "220202": "昌邑区",
+ "220203": "龙潭区",
+ "220204": "船营区",
+ "220211": "丰满区",
+ "220221": "永吉县",
+ "220281": "蛟河市",
+ "220282": "桦甸市",
+ "220283": "舒兰市",
+ "220284": "磐石市",
+ "220302": "铁西区",
+ "220303": "铁东区",
+ "220322": "梨树县",
+ "220323": "伊通满族自治县",
+ "220381": "公主岭市",
+ "220382": "双辽市",
+ "220402": "龙山区",
+ "220403": "西安区",
+ "220421": "东丰县",
+ "220422": "东辽县",
+ "220502": "东昌区",
+ "220503": "二道江区",
+ "220521": "通化县",
+ "220523": "辉南县",
+ "220524": "柳河县",
+ "220581": "梅河口市",
+ "220582": "集安市",
+ "220602": "浑江区",
+ "220605": "江源区",
+ "220621": "抚松县",
+ "220622": "靖宇县",
+ "220623": "长白朝鲜族自治县",
+ "220681": "临江市",
+ "220702": "宁江区",
+ "220721": "前郭尔罗斯蒙古族自治县",
+ "220722": "长岭县",
+ "220723": "乾安县",
+ "220781": "扶余市",
+ "220802": "洮北区",
+ "220821": "镇赉县",
+ "220822": "通榆县",
+ "220881": "洮南市",
+ "220882": "大安市",
+ "222401": "延吉市",
+ "222402": "图们市",
+ "222403": "敦化市",
+ "222404": "珲春市",
+ "222405": "龙井市",
+ "222406": "和龙市",
+ "222424": "汪清县",
+ "222426": "安图县",
+ "230102": "道里区",
+ "230103": "南岗区",
+ "230104": "道外区",
+ "230108": "平房区",
+ "230109": "松北区",
+ "230110": "香坊区",
+ "230111": "呼兰区",
+ "230112": "阿城区",
+ "230113": "双城区",
+ "230123": "依兰县",
+ "230124": "方正县",
+ "230125": "宾县",
+ "230126": "巴彦县",
+ "230127": "木兰县",
+ "230128": "通河县",
+ "230129": "延寿县",
+ "230183": "尚志市",
+ "230184": "五常市",
+ "230202": "龙沙区",
+ "230203": "建华区",
+ "230204": "铁锋区",
+ "230205": "昂昂溪区",
+ "230206": "富拉尔基区",
+ "230207": "碾子山区",
+ "230208": "梅里斯达斡尔族区",
+ "230221": "龙江县",
+ "230223": "依安县",
+ "230224": "泰来县",
+ "230225": "甘南县",
+ "230227": "富裕县",
+ "230229": "克山县",
+ "230230": "克东县",
+ "230231": "拜泉县",
+ "230281": "讷河市",
+ "230302": "鸡冠区",
+ "230303": "恒山区",
+ "230304": "滴道区",
+ "230305": "梨树区",
+ "230306": "城子河区",
+ "230307": "麻山区",
+ "230321": "鸡东县",
+ "230381": "虎林市",
+ "230382": "密山市",
+ "230402": "向阳区",
+ "230403": "工农区",
+ "230404": "南山区",
+ "230405": "兴安区",
+ "230406": "东山区",
+ "230407": "兴山区",
+ "230421": "萝北县",
+ "230422": "绥滨县",
+ "230502": "尖山区",
+ "230503": "岭东区",
+ "230505": "四方台区",
+ "230506": "宝山区",
+ "230521": "集贤县",
+ "230522": "友谊县",
+ "230523": "宝清县",
+ "230524": "饶河县",
+ "230602": "萨尔图区",
+ "230603": "龙凤区",
+ "230604": "让胡路区",
+ "230605": "红岗区",
+ "230606": "大同区",
+ "230621": "肇州县",
+ "230622": "肇源县",
+ "230623": "林甸县",
+ "230624": "杜尔伯特蒙古族自治县",
+ "230702": "伊春区",
+ "230703": "南岔区",
+ "230704": "友好区",
+ "230705": "西林区",
+ "230706": "翠峦区",
+ "230707": "新青区",
+ "230708": "美溪区",
+ "230709": "金山屯区",
+ "230710": "五营区",
+ "230711": "乌马河区",
+ "230712": "汤旺河区",
+ "230713": "带岭区",
+ "230714": "乌伊岭区",
+ "230715": "红星区",
+ "230716": "上甘岭区",
+ "230722": "嘉荫县",
+ "230781": "铁力市",
+ "230803": "向阳区",
+ "230804": "前进区",
+ "230805": "东风区",
+ "230811": "郊区",
+ "230822": "桦南县",
+ "230826": "桦川县",
+ "230828": "汤原县",
+ "230881": "同江市",
+ "230882": "富锦市",
+ "230883": "抚远市",
+ "230902": "新兴区",
+ "230903": "桃山区",
+ "230904": "茄子河区",
+ "230921": "勃利县",
+ "231002": "东安区",
+ "231003": "阳明区",
+ "231004": "爱民区",
+ "231005": "西安区",
+ "231025": "林口县",
+ "231081": "绥芬河市",
+ "231083": "海林市",
+ "231084": "宁安市",
+ "231085": "穆棱市",
+ "231086": "东宁市",
+ "231102": "爱辉区",
+ "231121": "嫩江县",
+ "231123": "逊克县",
+ "231124": "孙吴县",
+ "231181": "北安市",
+ "231182": "五大连池市",
+ "231202": "北林区",
+ "231221": "望奎县",
+ "231222": "兰西县",
+ "231223": "青冈县",
+ "231224": "庆安县",
+ "231225": "明水县",
+ "231226": "绥棱县",
+ "231281": "安达市",
+ "231282": "肇东市",
+ "231283": "海伦市",
+ "232721": "呼玛县",
+ "232722": "塔河县",
+ "232723": "漠河县",
+ "310101": "黄浦区",
+ "310104": "徐汇区",
+ "310105": "长宁区",
+ "310106": "静安区",
+ "310107": "普陀区",
+ "310109": "虹口区",
+ "310110": "杨浦区",
+ "310112": "闵行区",
+ "310113": "宝山区",
+ "310114": "嘉定区",
+ "310115": "浦东新区",
+ "310116": "金山区",
+ "310117": "松江区",
+ "310118": "青浦区",
+ "310120": "奉贤区",
+ "310151": "崇明区",
+ "320102": "玄武区",
+ "320104": "秦淮区",
+ "320105": "建邺区",
+ "320106": "鼓楼区",
+ "320111": "浦口区",
+ "320113": "栖霞区",
+ "320114": "雨花台区",
+ "320115": "江宁区",
+ "320116": "六合区",
+ "320117": "溧水区",
+ "320118": "高淳区",
+ "320205": "锡山区",
+ "320206": "惠山区",
+ "320211": "滨湖区",
+ "320213": "梁溪区",
+ "320214": "新吴区",
+ "320281": "江阴市",
+ "320282": "宜兴市",
+ "320302": "鼓楼区",
+ "320303": "云龙区",
+ "320305": "贾汪区",
+ "320311": "泉山区",
+ "320312": "铜山区",
+ "320321": "丰县",
+ "320322": "沛县",
+ "320324": "睢宁县",
+ "320381": "新沂市",
+ "320382": "邳州市",
+ "320402": "天宁区",
+ "320404": "钟楼区",
+ "320411": "新北区",
+ "320412": "武进区",
+ "320413": "金坛区",
+ "320481": "溧阳市",
+ "320505": "虎丘区",
+ "320506": "吴中区",
+ "320507": "相城区",
+ "320508": "姑苏区",
+ "320509": "吴江区",
+ "320581": "常熟市",
+ "320582": "张家港市",
+ "320583": "昆山市",
+ "320585": "太仓市",
+ "320602": "崇川区",
+ "320611": "港闸区",
+ "320612": "通州区",
+ "320621": "海安县",
+ "320623": "如东县",
+ "320681": "启东市",
+ "320682": "如皋市",
+ "320684": "海门市",
+ "320703": "连云区",
+ "320706": "海州区",
+ "320707": "赣榆区",
+ "320722": "东海县",
+ "320723": "灌云县",
+ "320724": "灌南县",
+ "320803": "淮安区",
+ "320804": "淮阴区",
+ "320812": "清江浦区",
+ "320813": "洪泽区",
+ "320826": "涟水县",
+ "320830": "盱眙县",
+ "320831": "金湖县",
+ "320902": "亭湖区",
+ "320903": "盐都区",
+ "320904": "大丰区",
+ "320921": "响水县",
+ "320922": "滨海县",
+ "320923": "阜宁县",
+ "320924": "射阳县",
+ "320925": "建湖县",
+ "320981": "东台市",
+ "321002": "广陵区",
+ "321003": "邗江区",
+ "321012": "江都区",
+ "321023": "宝应县",
+ "321081": "仪征市",
+ "321084": "高邮市",
+ "321102": "京口区",
+ "321111": "润州区",
+ "321112": "丹徒区",
+ "321181": "丹阳市",
+ "321182": "扬中市",
+ "321183": "句容市",
+ "321202": "海陵区",
+ "321203": "高港区",
+ "321204": "姜堰区",
+ "321281": "兴化市",
+ "321282": "靖江市",
+ "321283": "泰兴市",
+ "321302": "宿城区",
+ "321311": "宿豫区",
+ "321322": "沭阳县",
+ "321323": "泗阳县",
+ "321324": "泗洪县",
+ "330102": "上城区",
+ "330103": "下城区",
+ "330104": "江干区",
+ "330105": "拱墅区",
+ "330106": "西湖区",
+ "330108": "滨江区",
+ "330109": "萧山区",
+ "330110": "余杭区",
+ "330111": "富阳区",
+ "330122": "桐庐县",
+ "330127": "淳安县",
+ "330182": "建德市",
+ "330185": "临安市",
+ "330203": "海曙区",
+ "330204": "江东区",
+ "330205": "江北区",
+ "330206": "北仑区",
+ "330211": "镇海区",
+ "330212": "鄞州区",
+ "330225": "象山县",
+ "330226": "宁海县",
+ "330281": "余姚市",
+ "330282": "慈溪市",
+ "330283": "奉化市",
+ "330302": "鹿城区",
+ "330303": "龙湾区",
+ "330304": "瓯海区",
+ "330305": "洞头区",
+ "330324": "永嘉县",
+ "330326": "平阳县",
+ "330327": "苍南县",
+ "330328": "文成县",
+ "330329": "泰顺县",
+ "330381": "瑞安市",
+ "330382": "乐清市",
+ "330402": "南湖区",
+ "330411": "秀洲区",
+ "330421": "嘉善县",
+ "330424": "海盐县",
+ "330481": "海宁市",
+ "330482": "平湖市",
+ "330483": "桐乡市",
+ "330502": "吴兴区",
+ "330503": "南浔区",
+ "330521": "德清县",
+ "330522": "长兴县",
+ "330523": "安吉县",
+ "330602": "越城区",
+ "330603": "柯桥区",
+ "330604": "上虞区",
+ "330624": "新昌县",
+ "330681": "诸暨市",
+ "330683": "嵊州市",
+ "330702": "婺城区",
+ "330703": "金东区",
+ "330723": "武义县",
+ "330726": "浦江县",
+ "330727": "磐安县",
+ "330781": "兰溪市",
+ "330782": "义乌市",
+ "330783": "东阳市",
+ "330784": "永康市",
+ "330802": "柯城区",
+ "330803": "衢江区",
+ "330822": "常山县",
+ "330824": "开化县",
+ "330825": "龙游县",
+ "330881": "江山市",
+ "330902": "定海区",
+ "330903": "普陀区",
+ "330921": "岱山县",
+ "330922": "嵊泗县",
+ "331002": "椒江区",
+ "331003": "黄岩区",
+ "331004": "路桥区",
+ "331021": "玉环县",
+ "331022": "三门县",
+ "331023": "天台县",
+ "331024": "仙居县",
+ "331081": "温岭市",
+ "331082": "临海市",
+ "331102": "莲都区",
+ "331121": "青田县",
+ "331122": "缙云县",
+ "331123": "遂昌县",
+ "331124": "松阳县",
+ "331125": "云和县",
+ "331126": "庆元县",
+ "331127": "景宁畲族自治县",
+ "331181": "龙泉市",
+ "340102": "瑶海区",
+ "340103": "庐阳区",
+ "340104": "蜀山区",
+ "340111": "包河区",
+ "340121": "长丰县",
+ "340122": "肥东县",
+ "340123": "肥西县",
+ "340124": "庐江县",
+ "340181": "巢湖市",
+ "340202": "镜湖区",
+ "340203": "弋江区",
+ "340207": "鸠江区",
+ "340208": "三山区",
+ "340221": "芜湖县",
+ "340222": "繁昌县",
+ "340223": "南陵县",
+ "340225": "无为县",
+ "340302": "龙子湖区",
+ "340303": "蚌山区",
+ "340304": "禹会区",
+ "340311": "淮上区",
+ "340321": "怀远县",
+ "340322": "五河县",
+ "340323": "固镇县",
+ "340402": "大通区",
+ "340403": "田家庵区",
+ "340404": "谢家集区",
+ "340405": "八公山区",
+ "340406": "潘集区",
+ "340421": "凤台县",
+ "340422": "寿县",
+ "340503": "花山区",
+ "340504": "雨山区",
+ "340506": "博望区",
+ "340521": "当涂县",
+ "340522": "含山县",
+ "340523": "和县",
+ "340602": "杜集区",
+ "340603": "相山区",
+ "340604": "烈山区",
+ "340621": "濉溪县",
+ "340705": "铜官区",
+ "340706": "义安区",
+ "340711": "郊区",
+ "340722": "枞阳县",
+ "340802": "迎江区",
+ "340803": "大观区",
+ "340811": "宜秀区",
+ "340822": "怀宁县",
+ "340824": "潜山县",
+ "340825": "太湖县",
+ "340826": "宿松县",
+ "340827": "望江县",
+ "340828": "岳西县",
+ "340881": "桐城市",
+ "341002": "屯溪区",
+ "341003": "黄山区",
+ "341004": "徽州区",
+ "341021": "歙县",
+ "341022": "休宁县",
+ "341023": "黟县",
+ "341024": "祁门县",
+ "341102": "琅琊区",
+ "341103": "南谯区",
+ "341122": "来安县",
+ "341124": "全椒县",
+ "341125": "定远县",
+ "341126": "凤阳县",
+ "341181": "天长市",
+ "341182": "明光市",
+ "341202": "颍州区",
+ "341203": "颍东区",
+ "341204": "颍泉区",
+ "341221": "临泉县",
+ "341222": "太和县",
+ "341225": "阜南县",
+ "341226": "颍上县",
+ "341282": "界首市",
+ "341302": "埇桥区",
+ "341321": "砀山县",
+ "341322": "萧县",
+ "341323": "灵璧县",
+ "341324": "泗县",
+ "341502": "金安区",
+ "341503": "裕安区",
+ "341504": "叶集区",
+ "341522": "霍邱县",
+ "341523": "舒城县",
+ "341524": "金寨县",
+ "341525": "霍山县",
+ "341602": "谯城区",
+ "341621": "涡阳县",
+ "341622": "蒙城县",
+ "341623": "利辛县",
+ "341702": "贵池区",
+ "341721": "东至县",
+ "341722": "石台县",
+ "341723": "青阳县",
+ "341802": "宣州区",
+ "341821": "郎溪县",
+ "341822": "广德县",
+ "341823": "泾县",
+ "341824": "绩溪县",
+ "341825": "旌德县",
+ "341881": "宁国市",
+ "350102": "鼓楼区",
+ "350103": "台江区",
+ "350104": "仓山区",
+ "350105": "马尾区",
+ "350111": "晋安区",
+ "350121": "闽侯县",
+ "350122": "连江县",
+ "350123": "罗源县",
+ "350124": "闽清县",
+ "350125": "永泰县",
+ "350128": "平潭县",
+ "350181": "福清市",
+ "350182": "长乐市",
+ "350203": "思明区",
+ "350205": "海沧区",
+ "350206": "湖里区",
+ "350211": "集美区",
+ "350212": "同安区",
+ "350213": "翔安区",
+ "350302": "城厢区",
+ "350303": "涵江区",
+ "350304": "荔城区",
+ "350305": "秀屿区",
+ "350322": "仙游县",
+ "350402": "梅列区",
+ "350403": "三元区",
+ "350421": "明溪县",
+ "350423": "清流县",
+ "350424": "宁化县",
+ "350425": "大田县",
+ "350426": "尤溪县",
+ "350427": "沙县",
+ "350428": "将乐县",
+ "350429": "泰宁县",
+ "350430": "建宁县",
+ "350481": "永安市",
+ "350502": "鲤城区",
+ "350503": "丰泽区",
+ "350504": "洛江区",
+ "350505": "泉港区",
+ "350521": "惠安县",
+ "350524": "安溪县",
+ "350525": "永春县",
+ "350526": "德化县",
+ "350527": "金门县",
+ "350581": "石狮市",
+ "350582": "晋江市",
+ "350583": "南安市",
+ "350602": "芗城区",
+ "350603": "龙文区",
+ "350622": "云霄县",
+ "350623": "漳浦县",
+ "350624": "诏安县",
+ "350625": "长泰县",
+ "350626": "东山县",
+ "350627": "南靖县",
+ "350628": "平和县",
+ "350629": "华安县",
+ "350681": "龙海市",
+ "350702": "延平区",
+ "350703": "建阳区",
+ "350721": "顺昌县",
+ "350722": "浦城县",
+ "350723": "光泽县",
+ "350724": "松溪县",
+ "350725": "政和县",
+ "350781": "邵武市",
+ "350782": "武夷山市",
+ "350783": "建瓯市",
+ "350802": "新罗区",
+ "350803": "永定区",
+ "350821": "长汀县",
+ "350823": "上杭县",
+ "350824": "武平县",
+ "350825": "连城县",
+ "350881": "漳平市",
+ "350902": "蕉城区",
+ "350921": "霞浦县",
+ "350922": "古田县",
+ "350923": "屏南县",
+ "350924": "寿宁县",
+ "350925": "周宁县",
+ "350926": "柘荣县",
+ "350981": "福安市",
+ "350982": "福鼎市",
+ "360102": "东湖区",
+ "360103": "西湖区",
+ "360104": "青云谱区",
+ "360105": "湾里区",
+ "360111": "青山湖区",
+ "360112": "新建区",
+ "360121": "南昌县",
+ "360123": "安义县",
+ "360124": "进贤县",
+ "360202": "昌江区",
+ "360203": "珠山区",
+ "360222": "浮梁县",
+ "360281": "乐平市",
+ "360302": "安源区",
+ "360313": "湘东区",
+ "360321": "莲花县",
+ "360322": "上栗县",
+ "360323": "芦溪县",
+ "360402": "濂溪区",
+ "360403": "浔阳区",
+ "360421": "九江县",
+ "360423": "武宁县",
+ "360424": "修水县",
+ "360425": "永修县",
+ "360426": "德安县",
+ "360428": "都昌县",
+ "360429": "湖口县",
+ "360430": "彭泽县",
+ "360481": "瑞昌市",
+ "360482": "共青城市",
+ "360483": "庐山市",
+ "360502": "渝水区",
+ "360521": "分宜县",
+ "360602": "月湖区",
+ "360622": "余江县",
+ "360681": "贵溪市",
+ "360702": "章贡区",
+ "360703": "南康区",
+ "360721": "赣县",
+ "360722": "信丰县",
+ "360723": "大余县",
+ "360724": "上犹县",
+ "360725": "崇义县",
+ "360726": "安远县",
+ "360727": "龙南县",
+ "360728": "定南县",
+ "360729": "全南县",
+ "360730": "宁都县",
+ "360731": "于都县",
+ "360732": "兴国县",
+ "360733": "会昌县",
+ "360734": "寻乌县",
+ "360735": "石城县",
+ "360781": "瑞金市",
+ "360802": "吉州区",
+ "360803": "青原区",
+ "360821": "吉安县",
+ "360822": "吉水县",
+ "360823": "峡江县",
+ "360824": "新干县",
+ "360825": "永丰县",
+ "360826": "泰和县",
+ "360827": "遂川县",
+ "360828": "万安县",
+ "360829": "安福县",
+ "360830": "永新县",
+ "360881": "井冈山市",
+ "360902": "袁州区",
+ "360921": "奉新县",
+ "360922": "万载县",
+ "360923": "上高县",
+ "360924": "宜丰县",
+ "360925": "靖安县",
+ "360926": "铜鼓县",
+ "360981": "丰城市",
+ "360982": "樟树市",
+ "360983": "高安市",
+ "361002": "临川区",
+ "361021": "南城县",
+ "361022": "黎川县",
+ "361023": "南丰县",
+ "361024": "崇仁县",
+ "361025": "乐安县",
+ "361026": "宜黄县",
+ "361027": "金溪县",
+ "361028": "资溪县",
+ "361029": "东乡县",
+ "361030": "广昌县",
+ "361102": "信州区",
+ "361103": "广丰区",
+ "361121": "上饶县",
+ "361123": "玉山县",
+ "361124": "铅山县",
+ "361125": "横峰县",
+ "361126": "弋阳县",
+ "361127": "余干县",
+ "361128": "鄱阳县",
+ "361129": "万年县",
+ "361130": "婺源县",
+ "361181": "德兴市",
+ "370102": "历下区",
+ "370103": "市中区",
+ "370104": "槐荫区",
+ "370105": "天桥区",
+ "370112": "历城区",
+ "370113": "长清区",
+ "370124": "平阴县",
+ "370125": "济阳县",
+ "370126": "商河县",
+ "370181": "章丘市",
+ "370202": "市南区",
+ "370203": "市北区",
+ "370211": "黄岛区",
+ "370212": "崂山区",
+ "370213": "李沧区",
+ "370214": "城阳区",
+ "370281": "胶州市",
+ "370282": "即墨市",
+ "370283": "平度市",
+ "370285": "莱西市",
+ "370302": "淄川区",
+ "370303": "张店区",
+ "370304": "博山区",
+ "370305": "临淄区",
+ "370306": "周村区",
+ "370321": "桓台县",
+ "370322": "高青县",
+ "370323": "沂源县",
+ "370402": "市中区",
+ "370403": "薛城区",
+ "370404": "峄城区",
+ "370405": "台儿庄区",
+ "370406": "山亭区",
+ "370481": "滕州市",
+ "370502": "东营区",
+ "370503": "河口区",
+ "370505": "垦利区",
+ "370522": "利津县",
+ "370523": "广饶县",
+ "370602": "芝罘区",
+ "370611": "福山区",
+ "370612": "牟平区",
+ "370613": "莱山区",
+ "370634": "长岛县",
+ "370681": "龙口市",
+ "370682": "莱阳市",
+ "370683": "莱州市",
+ "370684": "蓬莱市",
+ "370685": "招远市",
+ "370686": "栖霞市",
+ "370687": "海阳市",
+ "370702": "潍城区",
+ "370703": "寒亭区",
+ "370704": "坊子区",
+ "370705": "奎文区",
+ "370724": "临朐县",
+ "370725": "昌乐县",
+ "370781": "青州市",
+ "370782": "诸城市",
+ "370783": "寿光市",
+ "370784": "安丘市",
+ "370785": "高密市",
+ "370786": "昌邑市",
+ "370811": "任城区",
+ "370812": "兖州区",
+ "370826": "微山县",
+ "370827": "鱼台县",
+ "370828": "金乡县",
+ "370829": "嘉祥县",
+ "370830": "汶上县",
+ "370831": "泗水县",
+ "370832": "梁山县",
+ "370881": "曲阜市",
+ "370883": "邹城市",
+ "370902": "泰山区",
+ "370911": "岱岳区",
+ "370921": "宁阳县",
+ "370923": "东平县",
+ "370982": "新泰市",
+ "370983": "肥城市",
+ "371002": "环翠区",
+ "371003": "文登区",
+ "371082": "荣成市",
+ "371083": "乳山市",
+ "371102": "东港区",
+ "371103": "岚山区",
+ "371121": "五莲县",
+ "371122": "莒县",
+ "371202": "莱城区",
+ "371203": "钢城区",
+ "371302": "兰山区",
+ "371311": "罗庄区",
+ "371312": "河东区",
+ "371321": "沂南县",
+ "371322": "郯城县",
+ "371323": "沂水县",
+ "371324": "兰陵县",
+ "371325": "费县",
+ "371326": "平邑县",
+ "371327": "莒南县",
+ "371328": "蒙阴县",
+ "371329": "临沭县",
+ "371402": "德城区",
+ "371403": "陵城区",
+ "371422": "宁津县",
+ "371423": "庆云县",
+ "371424": "临邑县",
+ "371425": "齐河县",
+ "371426": "平原县",
+ "371427": "夏津县",
+ "371428": "武城县",
+ "371481": "乐陵市",
+ "371482": "禹城市",
+ "371502": "东昌府区",
+ "371521": "阳谷县",
+ "371522": "莘县",
+ "371523": "茌平县",
+ "371524": "东阿县",
+ "371525": "冠县",
+ "371526": "高唐县",
+ "371581": "临清市",
+ "371602": "滨城区",
+ "371603": "沾化区",
+ "371621": "惠民县",
+ "371622": "阳信县",
+ "371623": "无棣县",
+ "371625": "博兴县",
+ "371626": "邹平县",
+ "371702": "牡丹区",
+ "371703": "定陶区",
+ "371721": "曹县",
+ "371722": "单县",
+ "371723": "成武县",
+ "371724": "巨野县",
+ "371725": "郓城县",
+ "371726": "鄄城县",
+ "371728": "东明县",
+ "410102": "中原区",
+ "410103": "二七区",
+ "410104": "管城回族区",
+ "410105": "金水区",
+ "410106": "上街区",
+ "410108": "惠济区",
+ "410122": "中牟县",
+ "410181": "巩义市",
+ "410182": "荥阳市",
+ "410183": "新密市",
+ "410184": "新郑市",
+ "410185": "登封市",
+ "410202": "龙亭区",
+ "410203": "顺河回族区",
+ "410204": "鼓楼区",
+ "410205": "禹王台区",
+ "410211": "金明区",
+ "410212": "祥符区",
+ "410221": "杞县",
+ "410222": "通许县",
+ "410223": "尉氏县",
+ "410225": "兰考县",
+ "410302": "老城区",
+ "410303": "西工区",
+ "410304": "瀍河回族区",
+ "410305": "涧西区",
+ "410306": "吉利区",
+ "410311": "洛龙区",
+ "410322": "孟津县",
+ "410323": "新安县",
+ "410324": "栾川县",
+ "410325": "嵩县",
+ "410326": "汝阳县",
+ "410327": "宜阳县",
+ "410328": "洛宁县",
+ "410329": "伊川县",
+ "410381": "偃师市",
+ "410402": "新华区",
+ "410403": "卫东区",
+ "410404": "石龙区",
+ "410411": "湛河区",
+ "410421": "宝丰县",
+ "410422": "叶县",
+ "410423": "鲁山县",
+ "410425": "郏县",
+ "410481": "舞钢市",
+ "410482": "汝州市",
+ "410502": "文峰区",
+ "410503": "北关区",
+ "410505": "殷都区",
+ "410506": "龙安区",
+ "410522": "安阳县",
+ "410523": "汤阴县",
+ "410526": "滑县",
+ "410527": "内黄县",
+ "410581": "林州市",
+ "410602": "鹤山区",
+ "410603": "山城区",
+ "410611": "淇滨区",
+ "410621": "浚县",
+ "410622": "淇县",
+ "410702": "红旗区",
+ "410703": "卫滨区",
+ "410704": "凤泉区",
+ "410711": "牧野区",
+ "410721": "新乡县",
+ "410724": "获嘉县",
+ "410725": "原阳县",
+ "410726": "延津县",
+ "410727": "封丘县",
+ "410728": "长垣县",
+ "410781": "卫辉市",
+ "410782": "辉县市",
+ "410802": "解放区",
+ "410803": "中站区",
+ "410804": "马村区",
+ "410811": "山阳区",
+ "410821": "修武县",
+ "410822": "博爱县",
+ "410823": "武陟县",
+ "410825": "温县",
+ "410882": "沁阳市",
+ "410883": "孟州市",
+ "410902": "华龙区",
+ "410922": "清丰县",
+ "410923": "南乐县",
+ "410926": "范县",
+ "410927": "台前县",
+ "410928": "濮阳县",
+ "411002": "魏都区",
+ "411023": "许昌县",
+ "411024": "鄢陵县",
+ "411025": "襄城县",
+ "411081": "禹州市",
+ "411082": "长葛市",
+ "411102": "源汇区",
+ "411103": "郾城区",
+ "411104": "召陵区",
+ "411121": "舞阳县",
+ "411122": "临颍县",
+ "411202": "湖滨区",
+ "411203": "陕州区",
+ "411221": "渑池县",
+ "411224": "卢氏县",
+ "411281": "义马市",
+ "411282": "灵宝市",
+ "411302": "宛城区",
+ "411303": "卧龙区",
+ "411321": "南召县",
+ "411322": "方城县",
+ "411323": "西峡县",
+ "411324": "镇平县",
+ "411325": "内乡县",
+ "411326": "淅川县",
+ "411327": "社旗县",
+ "411328": "唐河县",
+ "411329": "新野县",
+ "411330": "桐柏县",
+ "411381": "邓州市",
+ "411402": "梁园区",
+ "411403": "睢阳区",
+ "411421": "民权县",
+ "411422": "睢县",
+ "411423": "宁陵县",
+ "411424": "柘城县",
+ "411425": "虞城县",
+ "411426": "夏邑县",
+ "411481": "永城市",
+ "411502": "浉河区",
+ "411503": "平桥区",
+ "411521": "罗山县",
+ "411522": "光山县",
+ "411523": "新县",
+ "411524": "商城县",
+ "411525": "固始县",
+ "411526": "潢川县",
+ "411527": "淮滨县",
+ "411528": "息县",
+ "411602": "川汇区",
+ "411621": "扶沟县",
+ "411622": "西华县",
+ "411623": "商水县",
+ "411624": "沈丘县",
+ "411625": "郸城县",
+ "411626": "淮阳县",
+ "411627": "太康县",
+ "411628": "鹿邑县",
+ "411681": "项城市",
+ "411702": "驿城区",
+ "411721": "西平县",
+ "411722": "上蔡县",
+ "411723": "平舆县",
+ "411724": "正阳县",
+ "411725": "确山县",
+ "411726": "泌阳县",
+ "411727": "汝南县",
+ "411728": "遂平县",
+ "411729": "新蔡县",
+ "419001": "济源市",
+ "420102": "江岸区",
+ "420103": "江汉区",
+ "420104": "硚口区",
+ "420105": "汉阳区",
+ "420106": "武昌区",
+ "420107": "青山区",
+ "420111": "洪山区",
+ "420112": "东西湖区",
+ "420113": "汉南区",
+ "420114": "蔡甸区",
+ "420115": "江夏区",
+ "420116": "黄陂区",
+ "420117": "新洲区",
+ "420202": "黄石港区",
+ "420203": "西塞山区",
+ "420204": "下陆区",
+ "420205": "铁山区",
+ "420222": "阳新县",
+ "420281": "大冶市",
+ "420302": "茅箭区",
+ "420303": "张湾区",
+ "420304": "郧阳区",
+ "420322": "郧西县",
+ "420323": "竹山县",
+ "420324": "竹溪县",
+ "420325": "房县",
+ "420381": "丹江口市",
+ "420502": "西陵区",
+ "420503": "伍家岗区",
+ "420504": "点军区",
+ "420505": "猇亭区",
+ "420506": "夷陵区",
+ "420525": "远安县",
+ "420526": "兴山县",
+ "420527": "秭归县",
+ "420528": "长阳土家族自治县",
+ "420529": "五峰土家族自治县",
+ "420581": "宜都市",
+ "420582": "当阳市",
+ "420583": "枝江市",
+ "420602": "襄城区",
+ "420606": "樊城区",
+ "420607": "襄州区",
+ "420624": "南漳县",
+ "420625": "谷城县",
+ "420626": "保康县",
+ "420682": "老河口市",
+ "420683": "枣阳市",
+ "420684": "宜城市",
+ "420702": "梁子湖区",
+ "420703": "华容区",
+ "420704": "鄂城区",
+ "420802": "东宝区",
+ "420804": "掇刀区",
+ "420821": "京山县",
+ "420822": "沙洋县",
+ "420881": "钟祥市",
+ "420902": "孝南区",
+ "420921": "孝昌县",
+ "420922": "大悟县",
+ "420923": "云梦县",
+ "420981": "应城市",
+ "420982": "安陆市",
+ "420984": "汉川市",
+ "421002": "沙市区",
+ "421003": "荆州区",
+ "421022": "公安县",
+ "421023": "监利县",
+ "421024": "江陵县",
+ "421081": "石首市",
+ "421083": "洪湖市",
+ "421087": "松滋市",
+ "421102": "黄州区",
+ "421121": "团风县",
+ "421122": "红安县",
+ "421123": "罗田县",
+ "421124": "英山县",
+ "421125": "浠水县",
+ "421126": "蕲春县",
+ "421127": "黄梅县",
+ "421181": "麻城市",
+ "421182": "武穴市",
+ "421202": "咸安区",
+ "421221": "嘉鱼县",
+ "421222": "通城县",
+ "421223": "崇阳县",
+ "421224": "通山县",
+ "421281": "赤壁市",
+ "421303": "曾都区",
+ "421321": "随县",
+ "421381": "广水市",
+ "422801": "恩施市",
+ "422802": "利川市",
+ "422822": "建始县",
+ "422823": "巴东县",
+ "422825": "宣恩县",
+ "422826": "咸丰县",
+ "422827": "来凤县",
+ "422828": "鹤峰县",
+ "429004": "仙桃市",
+ "429005": "潜江市",
+ "429006": "天门市",
+ "429021": "神农架林区",
+ "430102": "芙蓉区",
+ "430103": "天心区",
+ "430104": "岳麓区",
+ "430105": "开福区",
+ "430111": "雨花区",
+ "430112": "望城区",
+ "430121": "长沙县",
+ "430124": "宁乡县",
+ "430181": "浏阳市",
+ "430202": "荷塘区",
+ "430203": "芦淞区",
+ "430204": "石峰区",
+ "430211": "天元区",
+ "430221": "株洲县",
+ "430223": "攸县",
+ "430224": "茶陵县",
+ "430225": "炎陵县",
+ "430281": "醴陵市",
+ "430302": "雨湖区",
+ "430304": "岳塘区",
+ "430321": "湘潭县",
+ "430381": "湘乡市",
+ "430382": "韶山市",
+ "430405": "珠晖区",
+ "430406": "雁峰区",
+ "430407": "石鼓区",
+ "430408": "蒸湘区",
+ "430412": "南岳区",
+ "430421": "衡阳县",
+ "430422": "衡南县",
+ "430423": "衡山县",
+ "430424": "衡东县",
+ "430426": "祁东县",
+ "430481": "耒阳市",
+ "430482": "常宁市",
+ "430502": "双清区",
+ "430503": "大祥区",
+ "430511": "北塔区",
+ "430521": "邵东县",
+ "430522": "新邵县",
+ "430523": "邵阳县",
+ "430524": "隆回县",
+ "430525": "洞口县",
+ "430527": "绥宁县",
+ "430528": "新宁县",
+ "430529": "城步苗族自治县",
+ "430581": "武冈市",
+ "430602": "岳阳楼区",
+ "430603": "云溪区",
+ "430611": "君山区",
+ "430621": "岳阳县",
+ "430623": "华容县",
+ "430624": "湘阴县",
+ "430626": "平江县",
+ "430681": "汨罗市",
+ "430682": "临湘市",
+ "430702": "武陵区",
+ "430703": "鼎城区",
+ "430721": "安乡县",
+ "430722": "汉寿县",
+ "430723": "澧县",
+ "430724": "临澧县",
+ "430725": "桃源县",
+ "430726": "石门县",
+ "430781": "津市市",
+ "430802": "永定区",
+ "430811": "武陵源区",
+ "430821": "慈利县",
+ "430822": "桑植县",
+ "430902": "资阳区",
+ "430903": "赫山区",
+ "430921": "南县",
+ "430922": "桃江县",
+ "430923": "安化县",
+ "430981": "沅江市",
+ "431002": "北湖区",
+ "431003": "苏仙区",
+ "431021": "桂阳县",
+ "431022": "宜章县",
+ "431023": "永兴县",
+ "431024": "嘉禾县",
+ "431025": "临武县",
+ "431026": "汝城县",
+ "431027": "桂东县",
+ "431028": "安仁县",
+ "431081": "资兴市",
+ "431102": "零陵区",
+ "431103": "冷水滩区",
+ "431121": "祁阳县",
+ "431122": "东安县",
+ "431123": "双牌县",
+ "431124": "道县",
+ "431125": "江永县",
+ "431126": "宁远县",
+ "431127": "蓝山县",
+ "431128": "新田县",
+ "431129": "江华瑶族自治县",
+ "431202": "鹤城区",
+ "431221": "中方县",
+ "431222": "沅陵县",
+ "431223": "辰溪县",
+ "431224": "溆浦县",
+ "431225": "会同县",
+ "431226": "麻阳苗族自治县",
+ "431227": "新晃侗族自治县",
+ "431228": "芷江侗族自治县",
+ "431229": "靖州苗族侗族自治县",
+ "431230": "通道侗族自治县",
+ "431281": "洪江市",
+ "431302": "娄星区",
+ "431321": "双峰县",
+ "431322": "新化县",
+ "431381": "冷水江市",
+ "431382": "涟源市",
+ "433101": "吉首市",
+ "433122": "泸溪县",
+ "433123": "凤凰县",
+ "433124": "花垣县",
+ "433125": "保靖县",
+ "433126": "古丈县",
+ "433127": "永顺县",
+ "433130": "龙山县",
+ "440103": "荔湾区",
+ "440104": "越秀区",
+ "440105": "海珠区",
+ "440106": "天河区",
+ "440111": "白云区",
+ "440112": "黄埔区",
+ "440113": "番禺区",
+ "440114": "花都区",
+ "440115": "南沙区",
+ "440117": "从化区",
+ "440118": "增城区",
+ "440203": "武江区",
+ "440204": "浈江区",
+ "440205": "曲江区",
+ "440222": "始兴县",
+ "440224": "仁化县",
+ "440229": "翁源县",
+ "440232": "乳源瑶族自治县",
+ "440233": "新丰县",
+ "440281": "乐昌市",
+ "440282": "南雄市",
+ "440303": "罗湖区",
+ "440304": "福田区",
+ "440305": "南山区",
+ "440306": "宝安区",
+ "440307": "龙岗区",
+ "440308": "盐田区",
+ "440402": "香洲区",
+ "440403": "斗门区",
+ "440404": "金湾区",
+ "440507": "龙湖区",
+ "440511": "金平区",
+ "440512": "濠江区",
+ "440513": "潮阳区",
+ "440514": "潮南区",
+ "440515": "澄海区",
+ "440523": "南澳县",
+ "440604": "禅城区",
+ "440605": "南海区",
+ "440606": "顺德区",
+ "440607": "三水区",
+ "440608": "高明区",
+ "440703": "蓬江区",
+ "440704": "江海区",
+ "440705": "新会区",
+ "440781": "台山市",
+ "440783": "开平市",
+ "440784": "鹤山市",
+ "440785": "恩平市",
+ "440802": "赤坎区",
+ "440803": "霞山区",
+ "440804": "坡头区",
+ "440811": "麻章区",
+ "440823": "遂溪县",
+ "440825": "徐闻县",
+ "440881": "廉江市",
+ "440882": "雷州市",
+ "440883": "吴川市",
+ "440902": "茂南区",
+ "440904": "电白区",
+ "440981": "高州市",
+ "440982": "化州市",
+ "440983": "信宜市",
+ "441202": "端州区",
+ "441203": "鼎湖区",
+ "441204": "高要区",
+ "441223": "广宁县",
+ "441224": "怀集县",
+ "441225": "封开县",
+ "441226": "德庆县",
+ "441284": "四会市",
+ "441302": "惠城区",
+ "441303": "惠阳区",
+ "441322": "博罗县",
+ "441323": "惠东县",
+ "441324": "龙门县",
+ "441402": "梅江区",
+ "441403": "梅县区",
+ "441422": "大埔县",
+ "441423": "丰顺县",
+ "441424": "五华县",
+ "441426": "平远县",
+ "441427": "蕉岭县",
+ "441481": "兴宁市",
+ "441502": "城区",
+ "441521": "海丰县",
+ "441523": "陆河县",
+ "441581": "陆丰市",
+ "441602": "源城区",
+ "441621": "紫金县",
+ "441622": "龙川县",
+ "441623": "连平县",
+ "441624": "和平县",
+ "441625": "东源县",
+ "441702": "江城区",
+ "441704": "阳东区",
+ "441721": "阳西县",
+ "441781": "阳春市",
+ "441802": "清城区",
+ "441803": "清新区",
+ "441821": "佛冈县",
+ "441823": "阳山县",
+ "441825": "连山壮族瑶族自治县",
+ "441826": "连南瑶族自治县",
+ "441881": "英德市",
+ "441882": "连州市",
+ "441900": "东莞市",
+ "442000": "中山市",
+ "445102": "湘桥区",
+ "445103": "潮安区",
+ "445122": "饶平县",
+ "445202": "榕城区",
+ "445203": "揭东区",
+ "445222": "揭西县",
+ "445224": "惠来县",
+ "445281": "普宁市",
+ "445302": "云城区",
+ "445303": "云安区",
+ "445321": "新兴县",
+ "445322": "郁南县",
+ "445381": "罗定市",
+ "450102": "兴宁区",
+ "450103": "青秀区",
+ "450105": "江南区",
+ "450107": "西乡塘区",
+ "450108": "良庆区",
+ "450109": "邕宁区",
+ "450110": "武鸣区",
+ "450123": "隆安县",
+ "450124": "马山县",
+ "450125": "上林县",
+ "450126": "宾阳县",
+ "450127": "横县",
+ "450202": "城中区",
+ "450203": "鱼峰区",
+ "450204": "柳南区",
+ "450205": "柳北区",
+ "450206": "柳江区",
+ "450222": "柳城县",
+ "450223": "鹿寨县",
+ "450224": "融安县",
+ "450225": "融水苗族自治县",
+ "450226": "三江侗族自治县",
+ "450302": "秀峰区",
+ "450303": "叠彩区",
+ "450304": "象山区",
+ "450305": "七星区",
+ "450311": "雁山区",
+ "450312": "临桂区",
+ "450321": "阳朔县",
+ "450323": "灵川县",
+ "450324": "全州县",
+ "450325": "兴安县",
+ "450326": "永福县",
+ "450327": "灌阳县",
+ "450328": "龙胜各族自治县",
+ "450329": "资源县",
+ "450330": "平乐县",
+ "450331": "荔浦县",
+ "450332": "恭城瑶族自治县",
+ "450403": "万秀区",
+ "450405": "长洲区",
+ "450406": "龙圩区",
+ "450421": "苍梧县",
+ "450422": "藤县",
+ "450423": "蒙山县",
+ "450481": "岑溪市",
+ "450502": "海城区",
+ "450503": "银海区",
+ "450512": "铁山港区",
+ "450521": "合浦县",
+ "450602": "港口区",
+ "450603": "防城区",
+ "450621": "上思县",
+ "450681": "东兴市",
+ "450702": "钦南区",
+ "450703": "钦北区",
+ "450721": "灵山县",
+ "450722": "浦北县",
+ "450802": "港北区",
+ "450803": "港南区",
+ "450804": "覃塘区",
+ "450821": "平南县",
+ "450881": "桂平市",
+ "450902": "玉州区",
+ "450903": "福绵区",
+ "450921": "容县",
+ "450922": "陆川县",
+ "450923": "博白县",
+ "450924": "兴业县",
+ "450981": "北流市",
+ "451002": "右江区",
+ "451021": "田阳县",
+ "451022": "田东县",
+ "451023": "平果县",
+ "451024": "德保县",
+ "451026": "那坡县",
+ "451027": "凌云县",
+ "451028": "乐业县",
+ "451029": "田林县",
+ "451030": "西林县",
+ "451031": "隆林各族自治县",
+ "451081": "靖西市",
+ "451102": "八步区",
+ "451103": "平桂区",
+ "451121": "昭平县",
+ "451122": "钟山县",
+ "451123": "富川瑶族自治县",
+ "451202": "金城江区",
+ "451221": "南丹县",
+ "451222": "天峨县",
+ "451223": "凤山县",
+ "451224": "东兰县",
+ "451225": "罗城仫佬族自治县",
+ "451226": "环江毛南族自治县",
+ "451227": "巴马瑶族自治县",
+ "451228": "都安瑶族自治县",
+ "451229": "大化瑶族自治县",
+ "451281": "宜州市",
+ "451302": "兴宾区",
+ "451321": "忻城县",
+ "451322": "象州县",
+ "451323": "武宣县",
+ "451324": "金秀瑶族自治县",
+ "451381": "合山市",
+ "451402": "江州区",
+ "451421": "扶绥县",
+ "451422": "宁明县",
+ "451423": "龙州县",
+ "451424": "大新县",
+ "451425": "天等县",
+ "451481": "凭祥市",
+ "460105": "秀英区",
+ "460106": "龙华区",
+ "460107": "琼山区",
+ "460108": "美兰区",
+ "460201": "市辖区",
+ "460202": "海棠区",
+ "460203": "吉阳区",
+ "460204": "天涯区",
+ "460205": "崖州区",
+ "460321": "西沙群岛",
+ "460322": "南沙群岛",
+ "460323": "中沙群岛的岛礁及其海域",
+ "460400": "儋州市",
+ "469001": "五指山市",
+ "469002": "琼海市",
+ "469005": "文昌市",
+ "469006": "万宁市",
+ "469007": "东方市",
+ "469021": "定安县",
+ "469022": "屯昌县",
+ "469023": "澄迈县",
+ "469024": "临高县",
+ "469025": "白沙黎族自治县",
+ "469026": "昌江黎族自治县",
+ "469027": "乐东黎族自治县",
+ "469028": "陵水黎族自治县",
+ "469029": "保亭黎族苗族自治县",
+ "469030": "琼中黎族苗族自治县",
+ "500101": "万州区",
+ "500102": "涪陵区",
+ "500103": "渝中区",
+ "500104": "大渡口区",
+ "500105": "江北区",
+ "500106": "沙坪坝区",
+ "500107": "九龙坡区",
+ "500108": "南岸区",
+ "500109": "北碚区",
+ "500110": "綦江区",
+ "500111": "大足区",
+ "500112": "渝北区",
+ "500113": "巴南区",
+ "500114": "黔江区",
+ "500115": "长寿区",
+ "500116": "江津区",
+ "500117": "合川区",
+ "500118": "永川区",
+ "500119": "南川区",
+ "500120": "璧山区",
+ "500151": "铜梁区",
+ "500152": "潼南区",
+ "500153": "荣昌区",
+ "500154": "开州区",
+ "500228": "梁平县",
+ "500229": "城口县",
+ "500230": "丰都县",
+ "500231": "垫江县",
+ "500232": "武隆县",
+ "500233": "忠县",
+ "500235": "云阳县",
+ "500236": "奉节县",
+ "500237": "巫山县",
+ "500238": "巫溪县",
+ "500240": "石柱土家族自治县",
+ "500241": "秀山土家族苗族自治县",
+ "500242": "酉阳土家族苗族自治县",
+ "500243": "彭水苗族土家族自治县",
+ "510104": "锦江区",
+ "510105": "青羊区",
+ "510106": "金牛区",
+ "510107": "武侯区",
+ "510108": "成华区",
+ "510112": "龙泉驿区",
+ "510113": "青白江区",
+ "510114": "新都区",
+ "510115": "温江区",
+ "510116": "双流区",
+ "510121": "金堂县",
+ "510124": "郫县",
+ "510129": "大邑县",
+ "510131": "蒲江县",
+ "510132": "新津县",
+ "510181": "都江堰市",
+ "510182": "彭州市",
+ "510183": "邛崃市",
+ "510184": "崇州市",
+ "510185": "简阳市",
+ "510302": "自流井区",
+ "510303": "贡井区",
+ "510304": "大安区",
+ "510311": "沿滩区",
+ "510321": "荣县",
+ "510322": "富顺县",
+ "510402": "东区",
+ "510403": "西区",
+ "510411": "仁和区",
+ "510421": "米易县",
+ "510422": "盐边县",
+ "510502": "江阳区",
+ "510503": "纳溪区",
+ "510504": "龙马潭区",
+ "510521": "泸县",
+ "510522": "合江县",
+ "510524": "叙永县",
+ "510525": "古蔺县",
+ "510603": "旌阳区",
+ "510623": "中江县",
+ "510626": "罗江县",
+ "510681": "广汉市",
+ "510682": "什邡市",
+ "510683": "绵竹市",
+ "510703": "涪城区",
+ "510704": "游仙区",
+ "510705": "安州区",
+ "510722": "三台县",
+ "510723": "盐亭县",
+ "510725": "梓潼县",
+ "510726": "北川羌族自治县",
+ "510727": "平武县",
+ "510781": "江油市",
+ "510802": "利州区",
+ "510811": "昭化区",
+ "510812": "朝天区",
+ "510821": "旺苍县",
+ "510822": "青川县",
+ "510823": "剑阁县",
+ "510824": "苍溪县",
+ "510903": "船山区",
+ "510904": "安居区",
+ "510921": "蓬溪县",
+ "510922": "射洪县",
+ "510923": "大英县",
+ "511002": "市中区",
+ "511011": "东兴区",
+ "511024": "威远县",
+ "511025": "资中县",
+ "511028": "隆昌县",
+ "511102": "市中区",
+ "511111": "沙湾区",
+ "511112": "五通桥区",
+ "511113": "金口河区",
+ "511123": "犍为县",
+ "511124": "井研县",
+ "511126": "夹江县",
+ "511129": "沐川县",
+ "511132": "峨边彝族自治县",
+ "511133": "马边彝族自治县",
+ "511181": "峨眉山市",
+ "511302": "顺庆区",
+ "511303": "高坪区",
+ "511304": "嘉陵区",
+ "511321": "南部县",
+ "511322": "营山县",
+ "511323": "蓬安县",
+ "511324": "仪陇县",
+ "511325": "西充县",
+ "511381": "阆中市",
+ "511402": "东坡区",
+ "511403": "彭山区",
+ "511421": "仁寿县",
+ "511423": "洪雅县",
+ "511424": "丹棱县",
+ "511425": "青神县",
+ "511502": "翠屏区",
+ "511503": "南溪区",
+ "511521": "宜宾县",
+ "511523": "江安县",
+ "511524": "长宁县",
+ "511525": "高县",
+ "511526": "珙县",
+ "511527": "筠连县",
+ "511528": "兴文县",
+ "511529": "屏山县",
+ "511602": "广安区",
+ "511603": "前锋区",
+ "511621": "岳池县",
+ "511622": "武胜县",
+ "511623": "邻水县",
+ "511681": "华蓥市",
+ "511702": "通川区",
+ "511703": "达川区",
+ "511722": "宣汉县",
+ "511723": "开江县",
+ "511724": "大竹县",
+ "511725": "渠县",
+ "511781": "万源市",
+ "511802": "雨城区",
+ "511803": "名山区",
+ "511822": "荥经县",
+ "511823": "汉源县",
+ "511824": "石棉县",
+ "511825": "天全县",
+ "511826": "芦山县",
+ "511827": "宝兴县",
+ "511902": "巴州区",
+ "511903": "恩阳区",
+ "511921": "通江县",
+ "511922": "南江县",
+ "511923": "平昌县",
+ "512002": "雁江区",
+ "512021": "安岳县",
+ "512022": "乐至县",
+ "513201": "马尔康市",
+ "513221": "汶川县",
+ "513222": "理县",
+ "513223": "茂县",
+ "513224": "松潘县",
+ "513225": "九寨沟县",
+ "513226": "金川县",
+ "513227": "小金县",
+ "513228": "黑水县",
+ "513230": "壤塘县",
+ "513231": "阿坝县",
+ "513232": "若尔盖县",
+ "513233": "红原县",
+ "513301": "康定市",
+ "513322": "泸定县",
+ "513323": "丹巴县",
+ "513324": "九龙县",
+ "513325": "雅江县",
+ "513326": "道孚县",
+ "513327": "炉霍县",
+ "513328": "甘孜县",
+ "513329": "新龙县",
+ "513330": "德格县",
+ "513331": "白玉县",
+ "513332": "石渠县",
+ "513333": "色达县",
+ "513334": "理塘县",
+ "513335": "巴塘县",
+ "513336": "乡城县",
+ "513337": "稻城县",
+ "513338": "得荣县",
+ "513401": "西昌市",
+ "513422": "木里藏族自治县",
+ "513423": "盐源县",
+ "513424": "德昌县",
+ "513425": "会理县",
+ "513426": "会东县",
+ "513427": "宁南县",
+ "513428": "普格县",
+ "513429": "布拖县",
+ "513430": "金阳县",
+ "513431": "昭觉县",
+ "513432": "喜德县",
+ "513433": "冕宁县",
+ "513434": "越西县",
+ "513435": "甘洛县",
+ "513436": "美姑县",
+ "513437": "雷波县",
+ "520102": "南明区",
+ "520103": "云岩区",
+ "520111": "花溪区",
+ "520112": "乌当区",
+ "520113": "白云区",
+ "520115": "观山湖区",
+ "520121": "开阳县",
+ "520122": "息烽县",
+ "520123": "修文县",
+ "520181": "清镇市",
+ "520201": "钟山区",
+ "520203": "六枝特区",
+ "520221": "水城县",
+ "520222": "盘县",
+ "520302": "红花岗区",
+ "520303": "汇川区",
+ "520304": "播州区",
+ "520322": "桐梓县",
+ "520323": "绥阳县",
+ "520324": "正安县",
+ "520325": "道真仡佬族苗族自治县",
+ "520326": "务川仡佬族苗族自治县",
+ "520327": "凤冈县",
+ "520328": "湄潭县",
+ "520329": "余庆县",
+ "520330": "习水县",
+ "520381": "赤水市",
+ "520382": "仁怀市",
+ "520402": "西秀区",
+ "520403": "平坝区",
+ "520422": "普定县",
+ "520423": "镇宁布依族苗族自治县",
+ "520424": "关岭布依族苗族自治县",
+ "520425": "紫云苗族布依族自治县",
+ "520502": "七星关区",
+ "520521": "大方县",
+ "520522": "黔西县",
+ "520523": "金沙县",
+ "520524": "织金县",
+ "520525": "纳雍县",
+ "520526": "威宁彝族回族苗族自治县",
+ "520527": "赫章县",
+ "520602": "碧江区",
+ "520603": "万山区",
+ "520621": "江口县",
+ "520622": "玉屏侗族自治县",
+ "520623": "石阡县",
+ "520624": "思南县",
+ "520625": "印江土家族苗族自治县",
+ "520626": "德江县",
+ "520627": "沿河土家族自治县",
+ "520628": "松桃苗族自治县",
+ "522301": "兴义市",
+ "522322": "兴仁县",
+ "522323": "普安县",
+ "522324": "晴隆县",
+ "522325": "贞丰县",
+ "522326": "望谟县",
+ "522327": "册亨县",
+ "522328": "安龙县",
+ "522601": "凯里市",
+ "522622": "黄平县",
+ "522623": "施秉县",
+ "522624": "三穗县",
+ "522625": "镇远县",
+ "522626": "岑巩县",
+ "522627": "天柱县",
+ "522628": "锦屏县",
+ "522629": "剑河县",
+ "522630": "台江县",
+ "522631": "黎平县",
+ "522632": "榕江县",
+ "522633": "从江县",
+ "522634": "雷山县",
+ "522635": "麻江县",
+ "522636": "丹寨县",
+ "522701": "都匀市",
+ "522702": "福泉市",
+ "522722": "荔波县",
+ "522723": "贵定县",
+ "522725": "瓮安县",
+ "522726": "独山县",
+ "522727": "平塘县",
+ "522728": "罗甸县",
+ "522729": "长顺县",
+ "522730": "龙里县",
+ "522731": "惠水县",
+ "522732": "三都水族自治县",
+ "530102": "五华区",
+ "530103": "盘龙区",
+ "530111": "官渡区",
+ "530112": "西山区",
+ "530113": "东川区",
+ "530114": "呈贡区",
+ "530122": "晋宁县",
+ "530124": "富民县",
+ "530125": "宜良县",
+ "530126": "石林彝族自治县",
+ "530127": "嵩明县",
+ "530128": "禄劝彝族苗族自治县",
+ "530129": "寻甸回族彝族自治县",
+ "530181": "安宁市",
+ "530302": "麒麟区",
+ "530303": "沾益区",
+ "530321": "马龙县",
+ "530322": "陆良县",
+ "530323": "师宗县",
+ "530324": "罗平县",
+ "530325": "富源县",
+ "530326": "会泽县",
+ "530381": "宣威市",
+ "530402": "红塔区",
+ "530403": "江川区",
+ "530422": "澄江县",
+ "530423": "通海县",
+ "530424": "华宁县",
+ "530425": "易门县",
+ "530426": "峨山彝族自治县",
+ "530427": "新平彝族傣族自治县",
+ "530428": "元江哈尼族彝族傣族自治县",
+ "530502": "隆阳区",
+ "530521": "施甸县",
+ "530523": "龙陵县",
+ "530524": "昌宁县",
+ "530581": "腾冲市",
+ "530602": "昭阳区",
+ "530621": "鲁甸县",
+ "530622": "巧家县",
+ "530623": "盐津县",
+ "530624": "大关县",
+ "530625": "永善县",
+ "530626": "绥江县",
+ "530627": "镇雄县",
+ "530628": "彝良县",
+ "530629": "威信县",
+ "530630": "水富县",
+ "530702": "古城区",
+ "530721": "玉龙纳西族自治县",
+ "530722": "永胜县",
+ "530723": "华坪县",
+ "530724": "宁蒗彝族自治县",
+ "530802": "思茅区",
+ "530821": "宁洱哈尼族彝族自治县",
+ "530822": "墨江哈尼族自治县",
+ "530823": "景东彝族自治县",
+ "530824": "景谷傣族彝族自治县",
+ "530825": "镇沅彝族哈尼族拉祜族自治县",
+ "530826": "江城哈尼族彝族自治县",
+ "530827": "孟连傣族拉祜族佤族自治县",
+ "530828": "澜沧拉祜族自治县",
+ "530829": "西盟佤族自治县",
+ "530902": "临翔区",
+ "530921": "凤庆县",
+ "530922": "云县",
+ "530923": "永德县",
+ "530924": "镇康县",
+ "530925": "双江拉祜族佤族布朗族傣族自治县",
+ "530926": "耿马傣族佤族自治县",
+ "530927": "沧源佤族自治县",
+ "532301": "楚雄市",
+ "532322": "双柏县",
+ "532323": "牟定县",
+ "532324": "南华县",
+ "532325": "姚安县",
+ "532326": "大姚县",
+ "532327": "永仁县",
+ "532328": "元谋县",
+ "532329": "武定县",
+ "532331": "禄丰县",
+ "532501": "个旧市",
+ "532502": "开远市",
+ "532503": "蒙自市",
+ "532504": "弥勒市",
+ "532523": "屏边苗族自治县",
+ "532524": "建水县",
+ "532525": "石屏县",
+ "532527": "泸西县",
+ "532528": "元阳县",
+ "532529": "红河县",
+ "532530": "金平苗族瑶族傣族自治县",
+ "532531": "绿春县",
+ "532532": "河口瑶族自治县",
+ "532601": "文山市",
+ "532622": "砚山县",
+ "532623": "西畴县",
+ "532624": "麻栗坡县",
+ "532625": "马关县",
+ "532626": "丘北县",
+ "532627": "广南县",
+ "532628": "富宁县",
+ "532801": "景洪市",
+ "532822": "勐海县",
+ "532823": "勐腊县",
+ "532901": "大理市",
+ "532922": "漾濞彝族自治县",
+ "532923": "祥云县",
+ "532924": "宾川县",
+ "532925": "弥渡县",
+ "532926": "南涧彝族自治县",
+ "532927": "巍山彝族回族自治县",
+ "532928": "永平县",
+ "532929": "云龙县",
+ "532930": "洱源县",
+ "532931": "剑川县",
+ "532932": "鹤庆县",
+ "533102": "瑞丽市",
+ "533103": "芒市",
+ "533122": "梁河县",
+ "533123": "盈江县",
+ "533124": "陇川县",
+ "533301": "泸水市",
+ "533323": "福贡县",
+ "533324": "贡山独龙族怒族自治县",
+ "533325": "兰坪白族普米族自治县",
+ "533401": "香格里拉市",
+ "533422": "德钦县",
+ "533423": "维西傈僳族自治县",
+ "540102": "城关区",
+ "540103": "堆龙德庆区",
+ "540121": "林周县",
+ "540122": "当雄县",
+ "540123": "尼木县",
+ "540124": "曲水县",
+ "540126": "达孜县",
+ "540127": "墨竹工卡县",
+ "540202": "桑珠孜区",
+ "540221": "南木林县",
+ "540222": "江孜县",
+ "540223": "定日县",
+ "540224": "萨迦县",
+ "540225": "拉孜县",
+ "540226": "昂仁县",
+ "540227": "谢通门县",
+ "540228": "白朗县",
+ "540229": "仁布县",
+ "540230": "康马县",
+ "540231": "定结县",
+ "540232": "仲巴县",
+ "540233": "亚东县",
+ "540234": "吉隆县",
+ "540235": "聂拉木县",
+ "540236": "萨嘎县",
+ "540237": "岗巴县",
+ "540302": "卡若区",
+ "540321": "江达县",
+ "540322": "贡觉县",
+ "540323": "类乌齐县",
+ "540324": "丁青县",
+ "540325": "察雅县",
+ "540326": "八宿县",
+ "540327": "左贡县",
+ "540328": "芒康县",
+ "540329": "洛隆县",
+ "540330": "边坝县",
+ "540402": "巴宜区",
+ "540421": "工布江达县",
+ "540422": "米林县",
+ "540423": "墨脱县",
+ "540424": "波密县",
+ "540425": "察隅县",
+ "540426": "朗县",
+ "540502": "乃东区",
+ "540521": "扎囊县",
+ "540522": "贡嘎县",
+ "540523": "桑日县",
+ "540524": "琼结县",
+ "540525": "曲松县",
+ "540526": "措美县",
+ "540527": "洛扎县",
+ "540528": "加查县",
+ "540529": "隆子县",
+ "540530": "错那县",
+ "540531": "浪卡子县",
+ "542421": "那曲县",
+ "542422": "嘉黎县",
+ "542423": "比如县",
+ "542424": "聂荣县",
+ "542425": "安多县",
+ "542426": "申扎县",
+ "542427": "索县",
+ "542428": "班戈县",
+ "542429": "巴青县",
+ "542430": "尼玛县",
+ "542431": "双湖县",
+ "542521": "普兰县",
+ "542522": "札达县",
+ "542523": "噶尔县",
+ "542524": "日土县",
+ "542525": "革吉县",
+ "542526": "改则县",
+ "542527": "措勤县",
+ "610102": "新城区",
+ "610103": "碑林区",
+ "610104": "莲湖区",
+ "610111": "灞桥区",
+ "610112": "未央区",
+ "610113": "雁塔区",
+ "610114": "阎良区",
+ "610115": "临潼区",
+ "610116": "长安区",
+ "610117": "高陵区",
+ "610122": "蓝田县",
+ "610124": "周至县",
+ "610125": "户县",
+ "610202": "王益区",
+ "610203": "印台区",
+ "610204": "耀州区",
+ "610222": "宜君县",
+ "610302": "渭滨区",
+ "610303": "金台区",
+ "610304": "陈仓区",
+ "610322": "凤翔县",
+ "610323": "岐山县",
+ "610324": "扶风县",
+ "610326": "眉县",
+ "610327": "陇县",
+ "610328": "千阳县",
+ "610329": "麟游县",
+ "610330": "凤县",
+ "610331": "太白县",
+ "610402": "秦都区",
+ "610403": "杨陵区",
+ "610404": "渭城区",
+ "610422": "三原县",
+ "610423": "泾阳县",
+ "610424": "乾县",
+ "610425": "礼泉县",
+ "610426": "永寿县",
+ "610427": "彬县",
+ "610428": "长武县",
+ "610429": "旬邑县",
+ "610430": "淳化县",
+ "610431": "武功县",
+ "610481": "兴平市",
+ "610502": "临渭区",
+ "610503": "华州区",
+ "610522": "潼关县",
+ "610523": "大荔县",
+ "610524": "合阳县",
+ "610525": "澄城县",
+ "610526": "蒲城县",
+ "610527": "白水县",
+ "610528": "富平县",
+ "610581": "韩城市",
+ "610582": "华阴市",
+ "610602": "宝塔区",
+ "610603": "安塞区",
+ "610621": "延长县",
+ "610622": "延川县",
+ "610623": "子长县",
+ "610625": "志丹县",
+ "610626": "吴起县",
+ "610627": "甘泉县",
+ "610628": "富县",
+ "610629": "洛川县",
+ "610630": "宜川县",
+ "610631": "黄龙县",
+ "610632": "黄陵县",
+ "610702": "汉台区",
+ "610721": "南郑县",
+ "610722": "城固县",
+ "610723": "洋县",
+ "610724": "西乡县",
+ "610725": "勉县",
+ "610726": "宁强县",
+ "610727": "略阳县",
+ "610728": "镇巴县",
+ "610729": "留坝县",
+ "610730": "佛坪县",
+ "610802": "榆阳区",
+ "610803": "横山区",
+ "610821": "神木县",
+ "610822": "府谷县",
+ "610824": "靖边县",
+ "610825": "定边县",
+ "610826": "绥德县",
+ "610827": "米脂县",
+ "610828": "佳县",
+ "610829": "吴堡县",
+ "610830": "清涧县",
+ "610831": "子洲县",
+ "610902": "汉滨区",
+ "610921": "汉阴县",
+ "610922": "石泉县",
+ "610923": "宁陕县",
+ "610924": "紫阳县",
+ "610925": "岚皋县",
+ "610926": "平利县",
+ "610927": "镇坪县",
+ "610928": "旬阳县",
+ "610929": "白河县",
+ "611002": "商州区",
+ "611021": "洛南县",
+ "611022": "丹凤县",
+ "611023": "商南县",
+ "611024": "山阳县",
+ "611025": "镇安县",
+ "611026": "柞水县",
+ "620102": "城关区",
+ "620103": "七里河区",
+ "620104": "西固区",
+ "620105": "安宁区",
+ "620111": "红古区",
+ "620121": "永登县",
+ "620122": "皋兰县",
+ "620123": "榆中县",
+ "620201": "嘉峪关市",
+ "620302": "金川区",
+ "620321": "永昌县",
+ "620402": "白银区",
+ "620403": "平川区",
+ "620421": "靖远县",
+ "620422": "会宁县",
+ "620423": "景泰县",
+ "620502": "秦州区",
+ "620503": "麦积区",
+ "620521": "清水县",
+ "620522": "秦安县",
+ "620523": "甘谷县",
+ "620524": "武山县",
+ "620525": "张家川回族自治县",
+ "620602": "凉州区",
+ "620621": "民勤县",
+ "620622": "古浪县",
+ "620623": "天祝藏族自治县",
+ "620702": "甘州区",
+ "620721": "肃南裕固族自治县",
+ "620722": "民乐县",
+ "620723": "临泽县",
+ "620724": "高台县",
+ "620725": "山丹县",
+ "620802": "崆峒区",
+ "620821": "泾川县",
+ "620822": "灵台县",
+ "620823": "崇信县",
+ "620824": "华亭县",
+ "620825": "庄浪县",
+ "620826": "静宁县",
+ "620902": "肃州区",
+ "620921": "金塔县",
+ "620922": "瓜州县",
+ "620923": "肃北蒙古族自治县",
+ "620924": "阿克塞哈萨克族自治县",
+ "620981": "玉门市",
+ "620982": "敦煌市",
+ "621002": "西峰区",
+ "621021": "庆城县",
+ "621022": "环县",
+ "621023": "华池县",
+ "621024": "合水县",
+ "621025": "正宁县",
+ "621026": "宁县",
+ "621027": "镇原县",
+ "621102": "安定区",
+ "621121": "通渭县",
+ "621122": "陇西县",
+ "621123": "渭源县",
+ "621124": "临洮县",
+ "621125": "漳县",
+ "621126": "岷县",
+ "621202": "武都区",
+ "621221": "成县",
+ "621222": "文县",
+ "621223": "宕昌县",
+ "621224": "康县",
+ "621225": "西和县",
+ "621226": "礼县",
+ "621227": "徽县",
+ "621228": "两当县",
+ "622901": "临夏市",
+ "622921": "临夏县",
+ "622922": "康乐县",
+ "622923": "永靖县",
+ "622924": "广河县",
+ "622925": "和政县",
+ "622926": "东乡族自治县",
+ "622927": "积石山保安族东乡族撒拉族自治县",
+ "623001": "合作市",
+ "623021": "临潭县",
+ "623022": "卓尼县",
+ "623023": "舟曲县",
+ "623024": "迭部县",
+ "623025": "玛曲县",
+ "623026": "碌曲县",
+ "623027": "夏河县",
+ "630102": "城东区",
+ "630103": "城中区",
+ "630104": "城西区",
+ "630105": "城北区",
+ "630121": "大通回族土族自治县",
+ "630122": "湟中县",
+ "630123": "湟源县",
+ "630202": "乐都区",
+ "630203": "平安区",
+ "630222": "民和回族土族自治县",
+ "630223": "互助土族自治县",
+ "630224": "化隆回族自治县",
+ "630225": "循化撒拉族自治县",
+ "632221": "门源回族自治县",
+ "632222": "祁连县",
+ "632223": "海晏县",
+ "632224": "刚察县",
+ "632321": "同仁县",
+ "632322": "尖扎县",
+ "632323": "泽库县",
+ "632324": "河南蒙古族自治县",
+ "632521": "共和县",
+ "632522": "同德县",
+ "632523": "贵德县",
+ "632524": "兴海县",
+ "632525": "贵南县",
+ "632621": "玛沁县",
+ "632622": "班玛县",
+ "632623": "甘德县",
+ "632624": "达日县",
+ "632625": "久治县",
+ "632626": "玛多县",
+ "632701": "玉树市",
+ "632722": "杂多县",
+ "632723": "称多县",
+ "632724": "治多县",
+ "632725": "囊谦县",
+ "632726": "曲麻莱县",
+ "632801": "格尔木市",
+ "632802": "德令哈市",
+ "632821": "乌兰县",
+ "632822": "都兰县",
+ "632823": "天峻县",
+ "640104": "兴庆区",
+ "640105": "西夏区",
+ "640106": "金凤区",
+ "640121": "永宁县",
+ "640122": "贺兰县",
+ "640181": "灵武市",
+ "640202": "大武口区",
+ "640205": "惠农区",
+ "640221": "平罗县",
+ "640302": "利通区",
+ "640303": "红寺堡区",
+ "640323": "盐池县",
+ "640324": "同心县",
+ "640381": "青铜峡市",
+ "640402": "原州区",
+ "640422": "西吉县",
+ "640423": "隆德县",
+ "640424": "泾源县",
+ "640425": "彭阳县",
+ "640502": "沙坡头区",
+ "640521": "中宁县",
+ "640522": "海原县",
+ "650102": "天山区",
+ "650103": "沙依巴克区",
+ "650104": "新市区",
+ "650105": "水磨沟区",
+ "650106": "头屯河区",
+ "650107": "达坂城区",
+ "650109": "米东区",
+ "650121": "乌鲁木齐县",
+ "650202": "独山子区",
+ "650203": "克拉玛依区",
+ "650204": "白碱滩区",
+ "650205": "乌尔禾区",
+ "650402": "高昌区",
+ "650421": "鄯善县",
+ "650422": "托克逊县",
+ "650502": "伊州区",
+ "650521": "巴里坤哈萨克自治县",
+ "650522": "伊吾县",
+ "652301": "昌吉市",
+ "652302": "阜康市",
+ "652323": "呼图壁县",
+ "652324": "玛纳斯县",
+ "652325": "奇台县",
+ "652327": "吉木萨尔县",
+ "652328": "木垒哈萨克自治县",
+ "652701": "博乐市",
+ "652702": "阿拉山口市",
+ "652722": "精河县",
+ "652723": "温泉县",
+ "652801": "库尔勒市",
+ "652822": "轮台县",
+ "652823": "尉犁县",
+ "652824": "若羌县",
+ "652825": "且末县",
+ "652826": "焉耆回族自治县",
+ "652827": "和静县",
+ "652828": "和硕县",
+ "652829": "博湖县",
+ "652901": "阿克苏市",
+ "652922": "温宿县",
+ "652923": "库车县",
+ "652924": "沙雅县",
+ "652925": "新和县",
+ "652926": "拜城县",
+ "652927": "乌什县",
+ "652928": "阿瓦提县",
+ "652929": "柯坪县",
+ "653001": "阿图什市",
+ "653022": "阿克陶县",
+ "653023": "阿合奇县",
+ "653024": "乌恰县",
+ "653101": "喀什市",
+ "653121": "疏附县",
+ "653122": "疏勒县",
+ "653123": "英吉沙县",
+ "653124": "泽普县",
+ "653125": "莎车县",
+ "653126": "叶城县",
+ "653127": "麦盖提县",
+ "653128": "岳普湖县",
+ "653129": "伽师县",
+ "653130": "巴楚县",
+ "653131": "塔什库尔干塔吉克自治县",
+ "653201": "和田市",
+ "653221": "和田县",
+ "653222": "墨玉县",
+ "653223": "皮山县",
+ "653224": "洛浦县",
+ "653225": "策勒县",
+ "653226": "于田县",
+ "653227": "民丰县",
+ "654002": "伊宁市",
+ "654003": "奎屯市",
+ "654004": "霍尔果斯市",
+ "654021": "伊宁县",
+ "654022": "察布查尔锡伯自治县",
+ "654023": "霍城县",
+ "654024": "巩留县",
+ "654025": "新源县",
+ "654026": "昭苏县",
+ "654027": "特克斯县",
+ "654028": "尼勒克县",
+ "654201": "塔城市",
+ "654202": "乌苏市",
+ "654221": "额敏县",
+ "654223": "沙湾县",
+ "654224": "托里县",
+ "654225": "裕民县",
+ "654226": "和布克赛尔蒙古自治县",
+ "654301": "阿勒泰市",
+ "654321": "布尔津县",
+ "654322": "富蕴县",
+ "654323": "福海县",
+ "654324": "哈巴河县",
+ "654325": "青河县",
+ "654326": "吉木乃县",
+ "659001": "石河子市",
+ "659002": "阿拉尔市",
+ "659003": "图木舒克市",
+ "659004": "五家渠市",
+ "659006": "铁门关市"
+ }
+}
+
+function getConfig(type) {
+ return (areaList && areaList[`${type}_list`]) || {};
+}
+
+function getList(type, code) {
+ let result = [];
+ if (type !== 'province' && !code) {
+ return result;
+ }
+
+ const list = getConfig(type);
+ result = Object.keys(list).map(code => ({
+ code,
+ name: list[code]
+ }));
+
+ if (code) {
+ // oversea code
+ if (code[0] === '9' && type === 'city') {
+ code = '9';
+ }
+
+ result = result.filter(item => item.code.indexOf(code) === 0);
+ }
+
+ return result;
+}
+
+// get index by code
+function getIndex(type, code) {
+ let compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+ const list = getList(type, code.slice(0, compareNum - 2));
+
+ // oversea code
+ if (code[0] === '9' && type === 'province') {
+ compareNum = 1;
+ }
+
+ code = code.slice(0, compareNum);
+ for (let i = 0; i < list.length; i++) {
+ if (list[i].code.slice(0, compareNum) === code) {
+ return i;
+ }
+ }
+
+ return 0;
+}
+
+// 参考 https://github.com/youzan/vant-weapp/blob/dev/packages/area/index.ts
+// 定义数据出口
+module.exports = {
+ areaList: areaList,
+ getList: getList,
+ getIndex: getIndex
+}
\ No newline at end of file
diff --git a/utils/check.js b/utils/check.js
new file mode 100644
index 0000000..c41f1bf
--- /dev/null
+++ b/utils/check.js
@@ -0,0 +1,12 @@
+function isValidPhone(str) {
+ var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
+ if (!myreg.test(str)) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
+ module.exports = {
+ isValidPhone
+ }
\ No newline at end of file
diff --git a/utils/user.js b/utils/user.js
new file mode 100644
index 0000000..920fe7e
--- /dev/null
+++ b/utils/user.js
@@ -0,0 +1,94 @@
+/**
+ * 用户相关服务
+ */
+const util = require('../utils/util.js');
+const api = require('../config/api.js');
+
+
+/**
+ * Promise封装wx.checkSession
+ */
+function checkSession() {
+ return new Promise(function(resolve, reject) {
+ wx.checkSession({
+ success: function() {
+ resolve(true);
+ },
+ fail: function() {
+ reject(false);
+ }
+ })
+ });
+}
+
+/**
+ * Promise封装wx.login
+ */
+function login() {
+ return new Promise(function(resolve, reject) {
+ wx.login({
+ success: function(res) {
+ if (res.code) {
+ resolve(res);
+ } else {
+ reject(res);
+ }
+ },
+ fail: function(err) {
+ reject(err);
+ }
+ });
+ });
+}
+
+/**
+ * 调用微信登录
+ */
+function loginByWeixin(userInfo) {
+
+ return new Promise(function(resolve, reject) {
+ return login().then((res) => {
+ //登录远程服务器
+ util.request(api.AuthLoginByWeixin, {
+ code: res.code,
+ userInfo: userInfo
+ }, 'POST').then(res => {
+ if (res.errno === 0) {
+ //存储用户信息
+ wx.setStorageSync('userInfo', res.data.userInfo);
+ wx.setStorageSync('token', res.data.token);
+
+ resolve(res);
+ } else {
+ reject(res);
+ }
+ }).catch((err) => {
+ reject(err);
+ });
+ }).catch((err) => {
+ reject(err);
+ })
+ });
+}
+
+/**
+ * 判断用户是否登录
+ */
+function checkLogin() {
+ return new Promise(function(resolve, reject) {
+ if (wx.getStorageSync('userInfo') && wx.getStorageSync('token')) {
+ checkSession().then(() => {
+ resolve(true);
+ }).catch(() => {
+ reject(false);
+ });
+ } else {
+ reject(false);
+ }
+ });
+}
+
+module.exports = {
+ loginByWeixin,
+ checkLogin,
+};
\ No newline at end of file
diff --git a/utils/util.js b/utils/util.js
new file mode 100644
index 0000000..fea84aa
--- /dev/null
+++ b/utils/util.js
@@ -0,0 +1,196 @@
+const formatTime = date => {
+ const year = date.getFullYear()
+ const month = date.getMonth() + 1
+ const day = date.getDate()
+ const hour = date.getHours()
+ const minute = date.getMinutes()
+ const second = date.getSeconds()
+
+ return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
+}
+
+const formatNumber = n => {
+ n = n.toString()
+ return n[1] ? n : `0${n}`
+}
+
+var toHide = function(array) {
+ var phone = array.substring(0, 3) + '********' + array.substring(13);
+ return phone;
+}
+
+
+function formatDate(date) {
+ var year = date.getFullYear()
+ var month = date.getMonth() + 1
+ var day = date.getDate()
+
+
+ return [year, month, day].map(formatNumber)
+}
+
+// function formatNumber(n) {
+// n = n.toString()
+// return n[1] ? n : '0' + n
+// }
+
+function requestPost(url, data = {}, method = "POST") {
+ return new Promise(function(resolve, reject) {
+ wx.request({
+ url: url,
+ data: data,
+ method: method,
+ dataType: 'json',
+ header: {
+ 'Content-Type': 'application/json',
+ 'tenant-id':'1',
+ 'X-Litemall-Token': wx.getStorageSync('token')
+ },
+ success: function(res) {
+
+ if (res.statusCode == 200) {
+
+ if (res.data.errno == 501) {
+ // 清除登录相关内容
+ try {
+ wx.removeStorageSync('userInfo');
+ wx.removeStorageSync('token');
+ } catch (e) {
+ // Do something when catch error
+ }
+ // 切换到登录页面
+ wx.navigateTo({
+ url: '/pages/auth/login/login'
+ });
+ } else {
+ resolve(res.data);
+ }
+ } else {
+ reject(res.errMsg);
+ }
+
+ },
+ fail: function(err) {
+ reject(err)
+ }
+ })
+ });
+}
+
+function requestForm(url, data = {}, method) {
+ return new Promise(function(resolve, reject) {
+ wx.request({
+ url: url,
+ data: data,
+ method: method,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'tenant-id':'1',
+ 'X-Litemall-Token': wx.getStorageSync('token')
+ },
+ success: function(res) {
+
+ if (res.statusCode == 200) {
+
+ if (res.data.errno == 501) {
+ // 清除登录相关内容
+ try {
+ wx.removeStorageSync('userInfo');
+ wx.removeStorageSync('token');
+ } catch (e) {
+ // Do something when catch error
+ }
+ // 切换到登录页面
+ wx.navigateTo({
+ url: '/pages/auth/login/login'
+ });
+ } else {
+ resolve(res.data);
+ }
+ } else {
+ reject(res.errMsg);
+ }
+
+ },
+ fail: function(err) {
+ reject(err)
+ }
+ })
+ });
+}
+/**
+ * 封封微信的的request
+ */
+function request(url, data = {}, method = "GET") {
+ return new Promise(function(resolve, reject) {
+ wx.request({
+ url: url,
+ data: data,
+ method: method,
+ header: {
+ 'Content-Type': 'application/json',
+ 'tenant-id':'1',
+ 'X-Litemall-Token': wx.getStorageSync('token')
+ },
+ success: function(res) {
+
+ if (res.statusCode == 200) {
+
+ if (res.data.errno == 501) {
+ // 清除登录相关内容
+ try {
+ wx.removeStorageSync('userInfo');
+ wx.removeStorageSync('token');
+ } catch (e) {
+ // Do something when catch error
+ }
+ // 切换到登录页面
+ wx.navigateTo({
+ url: '/pages/auth/login/login'
+ });
+ } else {
+ resolve(res.data);
+ }
+ } else {
+ reject(res.errMsg);
+ }
+
+ },
+ fail: function(err) {
+ reject(err)
+ }
+ })
+ });
+}
+
+function redirect(url) {
+
+ //判断页面是否需要登录
+ if (false) {
+ wx.redirectTo({
+ url: '/pages/auth/login/login'
+ });
+ return false;
+ } else {
+ wx.redirectTo({
+ url: url
+ });
+ }
+}
+
+function showErrorToast(msg) {
+ wx.showToast({
+ title: msg,
+ image: '/static/images/icon_error.png'
+ })
+}
+
+module.exports = {
+ formatTime,
+ toHide,
+ request,
+ requestPost,
+ requestForm,
+ redirect,
+ showErrorToast
+}