Browse Source

第一次提交

lsh 3 months ago
commit
e807466a71
52 changed files with 25288 additions and 0 deletions
  1. 23 0
      .gitignore
  2. 24 0
      README.md
  3. 5 0
      babel.config.js
  4. 19 0
      jsconfig.json
  5. 22066 0
      package-lock.json
  6. 53 0
      package.json
  7. BIN
      public/favicon.ico
  8. 29 0
      public/index.html
  9. 16 0
      public/ipConfig.js
  10. 54 0
      src/App.vue
  11. 77 0
      src/api/index.js
  12. BIN
      src/assets/font/Avenir-Medium-6.otf
  13. BIN
      src/assets/font/Avenir-Medium-6.ttf
  14. BIN
      src/assets/font/H-Avenir-2.ttf
  15. BIN
      src/assets/font/pingfangsc-medium.ttf
  16. BIN
      src/assets/font/pingfangsc-regular.ttf
  17. BIN
      src/assets/font/pingfangsc-semibold.ttf
  18. BIN
      src/assets/images/avatar.png
  19. BIN
      src/assets/images/closeEye.png
  20. BIN
      src/assets/images/date.png
  21. BIN
      src/assets/images/drugBack.png
  22. BIN
      src/assets/images/drugHead.png
  23. BIN
      src/assets/images/hospital.png
  24. BIN
      src/assets/images/index.png
  25. BIN
      src/assets/images/man.png
  26. BIN
      src/assets/images/open.png
  27. BIN
      src/assets/images/openEye.png
  28. BIN
      src/assets/images/quan.png
  29. BIN
      src/assets/images/quan2.png
  30. BIN
      src/assets/images/relative.png
  31. BIN
      src/assets/images/syIcon.png
  32. BIN
      src/assets/images/woman.png
  33. 32 0
      src/assets/style/font.scss
  34. 97 0
      src/assets/style/reset.scss
  35. 23 0
      src/main.js
  36. 62 0
      src/mixins/eye.js
  37. 72 0
      src/mixins/format.js
  38. 186 0
      src/router/index.js
  39. 32 0
      src/utils/aes.js
  40. 48 0
      src/utils/auth.js
  41. 81 0
      src/utils/request.js
  42. 33 0
      src/utils/sm2.js
  43. 113 0
      src/views/addError.vue
  44. 246 0
      src/views/addRelative.vue
  45. 99 0
      src/views/addSuccess.vue
  46. 168 0
      src/views/applyNotice.vue
  47. 397 0
      src/views/consultationRecord.vue
  48. 279 0
      src/views/drugTrace.vue
  49. 54 0
      src/views/index.vue
  50. 707 0
      src/views/prescriptionDetails.vue
  51. 188 0
      src/views/relativeInfo.vue
  52. 5 0
      vue.config.js

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules
+/dist
+
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+# sui-shen-ban
+
+## Project setup
+```
+npm install
+```
+
+### Compiles and hot-reloads for development
+```
+npm run serve
+```
+
+### Compiles and minifies for production
+```
+npm run build
+```
+
+### Lints and fixes files
+```
+npm run lint
+```
+
+### Customize configuration
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/cli-plugin-babel/preset'
+  ]
+}

+ 19 - 0
jsconfig.json

@@ -0,0 +1,19 @@
+{
+  "compilerOptions": {
+    "target": "es5",
+    "module": "esnext",
+    "baseUrl": "./",
+    "moduleResolution": "node",
+    "paths": {
+      "@/*": [
+        "src/*"
+      ]
+    },
+    "lib": [
+      "esnext",
+      "dom",
+      "dom.iterable",
+      "scripthost"
+    ]
+  }
+}

File diff suppressed because it is too large
+ 22066 - 0
package-lock.json


+ 53 - 0
package.json

@@ -0,0 +1,53 @@
+{
+  "name": "sui-shen-ban",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
+    "lint": "vue-cli-service lint"
+  },
+  "browser": {
+    "util": false
+  },
+  "dependencies": {
+    "axios": "^0.27.2",
+    "core-js": "^3.8.3",
+    "js-cookie": "^3.0.1",
+    "sm-crypto": "^0.3.8",
+    "vant": "^2.12.48",
+    "vue": "^2.6.14",
+    "vue-wechat-title": "^2.0.7"
+  },
+  "devDependencies": {
+    "@babel/core": "^7.12.16",
+    "@babel/eslint-parser": "^7.12.16",
+    "@vue/cli-plugin-babel": "~5.0.0",
+    "@vue/cli-service": "~5.0.0",
+    "crypto-js": "^4.1.1",
+    "eslint-plugin-vue": "^8.0.3",
+    "node-sass": "^7.0.1",
+    "sass-loader": "^13.0.0",
+    "vue-router": "^3.1.3",
+    "vue-template-compiler": "^2.6.14"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/essential",
+      "eslint:recommended"
+    ],
+    "parserOptions": {
+      "parser": "@babel/eslint-parser"
+    },
+    "rules": {}
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not dead"
+  ]
+}

BIN
public/favicon.ico


+ 29 - 0
public/index.html

@@ -0,0 +1,29 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:13:41
+ * @FilePath: \zyypt-ssb-vue_wechat\public\index.html
+-->
+<!DOCTYPE html>
+<html lang="">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> -->
+    <script src="./ipConfig.js"></script>
+    <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
+    <title>随申办</title>
+  </head>
+  <body>
+    <noscript>
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+    </noscript>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

+ 16 - 0
public/ipConfig.js

@@ -0,0 +1,16 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-03-07 11:37:41
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:26:51
+ * @FilePath: \zyypt-ssb-vue_wechat\public\ipConfig.js
+ */
+// if(process.env.NODE_ENV === 'production'){
+//     process.env.VUE_APP_BASE_API = "http://172.203.199.134:8080"
+// }
+const ipConfig = {
+    baseURL: "https://zyaxd.wsjkw.sh.gov.cn/apiserver/",
+    logURL: "https://key.cnrailwaycloud.com:18182/log/logserver/",
+}

+ 54 - 0
src/App.vue

@@ -0,0 +1,54 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 19:31:53
+ * @FilePath: \zyypt-ssb-vue_wechat\src\App.vue
+-->
+<template>
+  <div id="app">
+    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
+    <keep-alive>
+      <router-view
+        v-if="$route.meta.keepAlive"
+        v-wechat-title="$route.meta.title"
+        class="Router"
+      ></router-view>
+    </keep-alive>
+    <router-view
+      v-if="!$route.meta.keepAlive"
+      v-wechat-title="$route.meta.title"
+      class="Router"
+    ></router-view>
+  </div>
+</template>
+
+<script>
+import { removeAllCookie } from "@/utils/auth";
+export default {
+  name: "App",
+  created() {
+    removeAllCookie();
+  },
+};
+</script>
+
+<style>
+#app {
+  height: 100%;
+  font-family: "PingFang SC-Semibold", "PingFang SC-Regular";
+  /* font-family: Avenir, Helvetica, Arial, sans-serif; */
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  text-align: center;
+  /* color: #2c3e50; */
+  color: #000;
+  /* margin-top: 60px; */
+}
+.Router {
+  height: 100%;
+  /* background: #f6f6f6; */
+}
+</style>

+ 77 - 0
src/api/index.js

@@ -0,0 +1,77 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 09:51:15
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:27:11
+ * @FilePath: \zyypt-ssb-vue_wechat\src\api\index.js
+ */
+import request from '@/utils/request'
+
+// 日志锚点
+export function setParamLog(data) {
+    return request({
+        url: ipConfig.logURL+'setParamLog',
+        method: 'post',
+        data
+    })
+}
+// 小程序端获取accesstoken
+export function getTestAccesstoken() {
+    return request({
+        url: 'getTestAccesstoken',
+        method: 'get',
+    })
+}
+
+// 微信小程序端获取用户信息
+export function getWeChatUser(data) {
+    return request({
+        url: 'getWeChatUser',
+        method: 'post',
+        data
+    })
+}
+
+// 微信小程序端获取信息
+export function getWechatService(data) {
+    return request({
+        url: 'getWechatService',
+        method: 'post',
+        data
+    })
+}
+
+// 获取亲属列表
+export function getRelatives(data) {
+    return request({
+        url: 'getRelatives',
+        method: 'post',
+        data
+    })
+}
+// 证件查询
+export function getDocument(data) {
+    return request({
+        url: 'getDocument',
+        method: 'post',
+        data
+    })
+}
+// 添加亲属信息
+export function AddRelatives(data) {
+    return request({
+        url: 'AddRelatives',
+        method: 'post',
+        data
+    })
+}
+// 亲属解除绑定
+export function UnbindRelatives(data) {
+    return request({
+        url: 'UnbindRelatives',
+        method: 'post',
+        data
+    })
+}

BIN
src/assets/font/Avenir-Medium-6.otf


BIN
src/assets/font/Avenir-Medium-6.ttf


BIN
src/assets/font/H-Avenir-2.ttf


BIN
src/assets/font/pingfangsc-medium.ttf


BIN
src/assets/font/pingfangsc-regular.ttf


BIN
src/assets/font/pingfangsc-semibold.ttf


BIN
src/assets/images/avatar.png


BIN
src/assets/images/closeEye.png


BIN
src/assets/images/date.png


BIN
src/assets/images/drugBack.png


BIN
src/assets/images/drugHead.png


BIN
src/assets/images/hospital.png


BIN
src/assets/images/index.png


BIN
src/assets/images/man.png


BIN
src/assets/images/open.png


BIN
src/assets/images/openEye.png


BIN
src/assets/images/quan.png


BIN
src/assets/images/quan2.png


BIN
src/assets/images/relative.png


BIN
src/assets/images/syIcon.png


BIN
src/assets/images/woman.png


+ 32 - 0
src/assets/style/font.scss

@@ -0,0 +1,32 @@
+@charset "UTF-8";
+// 定义字体
+@font-face {
+    font-family: "PingFang SC-Semibold";
+    src: url('@/assets/font/pingfangsc-semibold.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "PingFang SC-Regular";
+    src: url('~@/assets/font/pingfangsc-regular.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "PingFang SC-Medium";
+    src: url('~@/assets/font/pingfangsc-medium.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "Avenir";
+    src: url('~@/assets/font/H-Avenir-2.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "Avenir-Medium";
+    src: url('~@/assets/font/Avenir-Medium-6.otf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}

+ 97 - 0
src/assets/style/reset.scss

@@ -0,0 +1,97 @@
+@import "./font.scss";
+ html, body, div, span, applet, object, iframe,
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+ a, abbr, acronym, address, big, cite, code,
+ del, dfn, em, img, ins, kbd, q, s, samp,
+ small, strike, strong, sub, sup, tt, var,
+ b, u, i, center,
+ dl, dt, dd, ol, ul, li,
+ fieldset, form, label, legend,
+ table, caption, tbody, tfoot, thead, tr, th, td,
+ article, aside, canvas, details, embed,
+ figure, figcaption, footer, header,
+ menu, nav, output, ruby, section, summary,
+ time, mark, audio, video, input {
+     margin: 0;
+     padding: 0;
+     border: 0;
+     font-size: 100%;
+     font-weight: normal;
+     vertical-align: baseline;
+    //  font-family: 'PingFang SC-Semibold';
+ }
+ 
+ /* HTML5 display-role reset for older browsers */
+ article, aside, details, figcaption, figure,
+ footer, header, menu, nav, section {
+     display: block;
+ }
+ 
+ body {
+     line-height: 1;
+     height: 100%;
+ }
+ 
+ blockquote, q {
+     quotes: none;
+ }
+ 
+ blockquote:before, blockquote:after,
+ q:before, q:after {
+     content: none;
+ }
+ 
+ table {
+     border-collapse: collapse;
+     border-spacing: 0;
+ }
+ button{
+     outline: none;
+ }
+ 
+ /* custom */
+ a {
+     color: #7e8c8d;
+     text-decoration: none;
+     -webkit-backface-visibility: hidden;
+ }
+ 
+ li {
+     list-style: none;
+ }
+ 
+ ::-webkit-scrollbar {
+     width: 5px;
+     height: 5px;
+ }
+ 
+ ::-webkit-scrollbar-track-piece {
+     background-color: rgba(0, 0, 0, 0.2);
+     -webkit-border-radius: 6px;
+ }
+ 
+ ::-webkit-scrollbar-thumb:vertical {
+     height: 5px;
+     background-color: rgba(125, 125, 125, 0.7);
+     -webkit-border-radius: 6px;
+ }
+ 
+ ::-webkit-scrollbar-thumb:horizontal {
+     width: 5px;
+     background-color: rgba(125, 125, 125, 0.7);
+     -webkit-border-radius: 6px;
+ }
+ 
+ html, body {
+     width: 100%;
+ }
+ 
+ body {
+     -webkit-text-size-adjust: none;
+     -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ }
+ html{
+     height: 100%;
+     width: 100%;
+    //  background: #f3f3f3;
+ }

+ 23 - 0
src/main.js

@@ -0,0 +1,23 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:16:09
+ * @FilePath: \zyypt-ssb-vue_wechat\src\main.js
+ */
+import Vue from 'vue'
+import App from './App.vue'
+import router from './router'
+import "vant/lib/index.css"
+import "../src/assets/style/reset.scss"
+import VueWechatTitle from 'vue-wechat-title'
+Vue.use(VueWechatTitle)
+Vue.config.productionTip = true
+
+
+new Vue({
+  router,
+  render: h => h(App),
+}).$mount('#app')

+ 62 - 0
src/mixins/eye.js

@@ -0,0 +1,62 @@
+/*
+* @Description: file content
+* @Version: 2.0
+* @Author: ljl
+* @Date: 2022-06-22 17:25:55
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 21:06:41
+ * @FilePath: \zyypt-ssb-vue_wechat\src\mixins\eye.js
+*/
+import { getCookies, setCookies } from "@/utils/auth";
+//控制名称显隐
+function eye() {
+    return {
+        data() {
+            return {
+                eyeLock: true,
+                info: {
+                    idcard: "",
+                    name: ''
+                },
+                // myInfo: {}
+
+            }
+        },
+        mounted() {
+            // this.myInfo = JSON.parse(getCookies("myInfo"))
+            // if (getCookies('relativeInfo')) {
+            //     this.info = JSON.parse(getCookies('relativeInfo'))
+            // } else {
+            //     this.info = JSON.parse(getCookies('myInfo'))
+            // }
+        },
+        methods: {
+            eye(handleStyle) {
+                if (handleStyle == 'refresh') {
+                    let eyeLock = getCookies('eyeLock')
+                    if (eyeLock) {
+                        this.eyeLock = JSON.parse(eyeLock)
+                    } else {
+                        this.eyeLock = true
+                    }
+                } else {
+                    setCookies('eyeLock', this.eyeLock)
+                }
+                if (this.eyeLock) {
+                    this.info.name = new Array(this.info.name.length).join('*') + this.info.name.substr(-1)
+                    this.info.idcard = new Array(this.info.idcard.length-3).join('*') + this.info.idcard.substr(-4)
+                    this.eyeLock = !this.eyeLock;
+                } else {
+                    if (getCookies('relativeInfo')) {
+                        this.info = JSON.parse(getCookies('relativeInfo'))
+                    } else {
+                        this.info = JSON.parse(getCookies('myInfo'))
+                    }
+                    this.eyeLock = !this.eyeLock;
+                }
+            },
+        },
+    }
+}
+
+export { eye }

+ 72 - 0
src/mixins/format.js

@@ -0,0 +1,72 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 14:06:00
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-06-22 11:33:19
+ * @FilePath: \sui-shen-ban\src\mixins\format.js
+ */
+// export function getDate(date) {
+//     let y = date.substring(0, 4)
+//     let m = date.substring(4, 6)
+//     let d = date.substring(6, 8)
+//     return y + '-' + m + '-' + d
+// }
+// export function getTime(time) {
+//     let h = time.substring(0, 2)
+//     let m = time.substring(2, 4)
+//     let s = time.substring(4, 6)
+//     return h + ':' + m + ':' + s
+// }
+// export function getDateTime(datetime) {
+//     let date = getDate(datetime.split('/')[0])
+//     let time = getTime(datetime.split('/')[1])
+//     return date + ' ' + time
+// }
+
+function getDate() {
+    return {
+        methods: {
+            getDate(date) {
+                let y = date.substring(0, 4)
+                let m = date.substring(4, 6)
+                let d = date.substring(6, 8)
+                return y + '-' + m + '-' + d
+            },
+        },
+    }
+}
+function getTime() {
+    return {
+        methods: {
+            getTime(time) {
+                let h = time.substring(0, 2)
+                let m = time.substring(2, 4)
+                let s = time.substring(4, 6)
+                return h + ':' + m + ':' + s
+            }
+        },
+    }
+}
+function getDateTime() {
+    return {
+        methods: {
+            getDateTime(datetime) {
+                // let date = datetime.split('/')[0]
+                let date = datetime.substring(0, 8)
+                let yyyy = date.substring(0, 4)
+                let MM = date.substring(4, 6)
+                let dd = date.substring(6, 8)
+                // let time = datetime.split('/')[1]
+                let time = datetime.substring(8,14)
+                let HH = time.substring(0, 2)
+                let mm = time.substring(2, 4)
+                let ss = time.substring(4, 6)
+                return yyyy + '-' + MM + '-' + dd + ' ' + HH + ':' + mm + ':' + ss
+            }
+        },
+    }
+}
+
+export { getDate, getTime, getDateTime }

+ 186 - 0
src/router/index.js

@@ -0,0 +1,186 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:53:10
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:12:11
+ * @FilePath: \zyypt-ssb-vue_wechat\src\router\index.js
+ */
+import Vue from 'vue'
+import Router from 'vue-router'
+
+Vue.use(Router)
+
+/* Layout */
+// import Layout from '@/layout'
+
+export const constantRoutes = [
+
+    // {
+    //     path: '/',
+    //     name: 'Home',
+    //     meta: {
+    //         title: '中药安心达'
+    //     },
+    //     component: () =>
+    //         import('@/views/index'),
+    // },
+    {
+        path: '/',
+        name: 'ConsultationRecord',
+        meta: {
+            title: '中药安心达'
+        },
+        component: () =>
+            import('@/views/consultationRecord'),
+    },
+    {
+        path: '/relativeInfo',
+        name: 'RelativeInfo',
+        meta: {
+            title: '亲属信息'
+        },
+        component: () =>
+            import('@/views/relativeInfo'),
+    },
+    {
+        path: '/applyNotice',
+        name: 'ApplyNotice',
+        meta: {
+            title: '添加须知'
+        },
+        component: () =>
+            import('@/views/applyNotice'),
+    },
+    {
+        path: '/addRelative',
+        name: 'AddRelative',
+        meta: {
+            title: '亲属信息添加',
+            keepAlive: true //配置路由元信息
+        },
+        component: () =>
+            import('@/views/addRelative'),
+    },
+    {
+        path: '/addSuccess',
+        name: 'AddSuccess',
+        meta: {
+            title: '添加成功'
+        },
+        component: () =>
+            import('@/views/addSuccess'),
+    },
+    {
+        path: '/addError',
+        name: 'AddError',
+        meta: {
+            title: '添加失败'
+        },
+        component: () =>
+            import('@/views/addError'),
+    },
+    {
+        path: '/prescriptionDetails',
+        name: 'PrescriptionDetails',
+        meta: {
+            title: '处方明细'
+        },
+        component: () =>
+            import('@/views/prescriptionDetails'),
+    },
+    {
+        path: '/drugTrace',
+        name: 'DrugTrace',
+        meta:{
+            title:'药品溯源'
+        },
+        component: () =>
+            import('@/views/drugTrace'),
+    },
+    // {
+    //     path: '/404',
+    //     name: '404',
+    //     component: () =>
+    //         import('@/views/404'),
+    // },
+
+]
+
+
+const createRouter = () => new Router({
+    // mode: 'history', // require service support
+    // base: '/dist',
+    scrollBehavior: () => ({
+        y: 0
+    }),
+    routes: constantRoutes
+})
+
+// const originalPush = Router.prototype.push
+// Router.prototype.push = function push(location) {
+//   return originalPush.call(this, location).catch(err => err)
+// }
+
+const router = createRouter()
+
+router.afterEach(route => {
+    // 从路由的元信息中获取 title 属性
+    if (route.meta.title) {
+        document.title = route.meta.title;
+        // 如果是 iOS 设备,则使用如下 hack 的写法实现页面标题的更新
+        if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
+            const hackIframe = document.createElement('iframe');
+            hackIframe.style.display = 'none';
+            hackIframe.src = '/static/html/fixIosTitle.html?r=' + Math.random();
+            document.body.appendChild(hackIframe);
+            setTimeout(_ => {
+                document.body.removeChild(hackIframe)
+            }, 300)
+        }
+    }
+});
+
+router.onError((error) => {
+    const pattern = /Loading chunk (\d)+ failed/g;
+    const isChunkLoadFailed = error.message.match(pattern);
+    if (isChunkLoadFailed) {
+        window.location.reload();
+        // router.replace(router.history.pending.fullPath);
+    } else {
+        console.log("错误信息")
+        // console.log(error)
+    }
+});
+
+// 需要左方向动画的路由用this.$router.to('****')
+Router.prototype.togo = function (path) {
+    // this.isleft = true
+    // this.isright = false
+    this.push(path)
+}
+// 需要右方向动画的路由用this.$router.goRight('****')
+Router.prototype.goRight = function (path) {
+    // this.isright = true
+    // this.isleft = false
+    this.push(path)
+}
+// 需要返回按钮动画的路由用this.$router.goBack(),返回上一个路由
+Router.prototype.goBack = function () {
+    // this.isright = true
+    // this.isleft = false
+    this.go(-1)
+}
+// 点击浏览器返回按钮执行,此时不需要路由回退
+Router.prototype.togoback = function () {
+    // this.isright = true
+    // this.isleft = false
+}
+
+export function resetRouter() {
+    const newRouter = createRouter()
+    router.matcher = newRouter.matcher // reset router
+}
+
+export default router

+ 32 - 0
src/utils/aes.js

@@ -0,0 +1,32 @@
+
+import CryptoJS from 'crypto-js';
+ 
+export default {
+    //随机生成指定数量的16进制key
+    generatekey(num) {
+        let library = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
+        let key = "4bf8f5011950df5f";
+        for (var i = 0; i < num; i++) {
+            let randomPoz = Math.floor(Math.random() * library.length);
+            key += library.substring(randomPoz, randomPoz + 1);
+        }
+        return key;
+    },
+    
+    //加密
+    encrypt(word, keyStr) {
+        keyStr = keyStr ? keyStr : '4bf8f5011950df5f'; //判断是否存在ksy,不存在就用定义好的key
+        var key = CryptoJS.enc.Utf8.parse(keyStr);
+        var srcs = CryptoJS.enc.Utf8.parse(word);
+        var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
+        return encrypted.toString();
+    },
+    //解密
+    decrypt(word, keyStr) {
+        keyStr = keyStr ? keyStr : '4bf8f5011950df5f';
+        var key = CryptoJS.enc.Utf8.parse(keyStr);
+        var decrypt = CryptoJS.AES.decrypt(word, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
+        return CryptoJS.enc.Utf8.stringify(decrypt).toString();
+    }
+ 
+}

+ 48 - 0
src/utils/auth.js

@@ -0,0 +1,48 @@
+import Cookies from 'js-cookie'
+import AES from "@/utils/aes"
+
+export function getCookies(name) {
+  if (Cookies.get(name)) {
+    return AES.decrypt(Cookies.get(name))
+  }
+}
+
+export function getToken() {
+  // let userId = JSON.parse(localStorage.getItem('myInfo')).userId
+  // let userId = localStorage.getItem('myInfo').userId
+  let myInfo = getCookies('myInfo')
+  if (myInfo) {
+    return JSON.parse(myInfo).userId
+  } else {
+    return null
+  }
+}
+
+export function setCookies(name, cookies) {
+  return Cookies.set(name, AES.encrypt(cookies))
+}
+
+export function removeCookies(name) {
+  return Cookies.remove(name)
+}
+
+export function removeAllCookie() {
+  var date = new Date();
+  date.setTime(date.getTime() - 10000);
+  var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
+  if (keys) {
+    for (var i = keys.length; i--;)
+      Cookies.remove(keys[i])
+  }
+}
+
+const getters = (name) => {
+  return Cookies.get(name)
+}
+
+export default function (Vue) {
+  //添加全局API
+  Vue.prototype.$auth = {
+    getters
+  }
+}

+ 81 - 0
src/utils/request.js

@@ -0,0 +1,81 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 09:48:00
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-14 09:45:27
+ * @FilePath: \zyypt-ssb-vue_wechat\src\utils\request.js
+ */
+import axios from 'axios';
+import Vue from "vue";
+import { Toast } from "vant";
+Vue.use(Toast);
+import {
+	getToken,
+} from '@/utils/auth'
+import SM2 from "@/utils/sm2";
+const service = axios.create({
+	baseURL: ipConfig.baseURL,
+	timeout: 5000
+});
+
+service.interceptors.request.use(
+	config => {
+		//用户userId 加密项
+		if (getToken()) {
+			config.headers['token'] = SM2.encrypt(getToken())
+		}
+		// console.log(config.data)
+		config.headers['Content-Type'] = 'application/json'
+		config.data = { sign: SM2.encrypt(JSON.stringify(config.data)) };
+		// console.log(config)
+		return config;
+	},
+	error => {
+		Promise.reject(error);
+	}
+);
+
+// response interceptor
+service.interceptors.response.use(
+	/**
+	 * If you want to get http information such as headers or status
+	 * Please return  response => response
+	 */
+
+	/**
+	 * Determine the request status by custom code
+	 * Here is just an example
+	 * You can also judge the status by HTTP Status Code
+	 */
+	response => {
+		let res = response.data
+		// console.log(res)
+		// if the custom code is not 20000, it is judged as an error.
+		if (res.code == 0) {
+			if (res.result && res.result.data) {
+				if (SM2.decrypt(res.result.data)) {
+					res.data = JSON.parse(SM2.decrypt(res.result.data))
+				}
+			}
+			return res
+		} 
+		// else if (res.code == 205) {
+		// 	Toast('两人非亲属关系,不可添加')
+		// }
+		else {
+			if (res.error.msg) {
+				Toast(res.error.msg)
+				return res.error
+			}
+			// return Promise.reject(new Error(res.message || 'Error'))
+		}
+	},
+	error => {
+		console.log('err' + error) // for debug
+		return Promise.reject(error)
+	}
+)
+
+export default service;

+ 33 - 0
src/utils/sm2.js

@@ -0,0 +1,33 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-07-07 13:34:28
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-07 14:33:12
+ * @FilePath: \sui-shen-ban_alipay\src\utils\sm2.js
+ */
+
+const sm2 = require('sm-crypto').sm2
+const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
+var publicKeyServer =
+    "049FFE1205FDDDC59C52320F3DFE49805B2236865E74E96412C152E19591B7831D41FBDC094190F608B805BDE9E90EEFE5755327B8CA9D0EE961B1540F85A723F8";
+var privateKeyWeb = "008AD3D59BC6F6D8742EB27894A23FEF91296433BF9FCFF178713E37F60C526838";
+export default {
+    encrypt(params) {
+        if (typeof (params) == 'undefined') {
+            params = null;
+        } else {
+            let encryptData = sm2.doEncrypt(params, publicKeyServer, cipherMode);
+            return encryptData;
+        }
+    },
+    decrypt(params) {
+        if (typeof (params) == 'undefined') {
+            params = null;
+        } else {
+            let decryptData = sm2.doDecrypt(params, privateKeyWeb, cipherMode);
+            return decryptData;
+        }
+    }
+}

+ 113 - 0
src/views/addError.vue

@@ -0,0 +1,113 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:19:07
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\addError.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="change2">
+        <div class="close"></div>
+      </div>
+      <div class="title">添加失败</div>
+      <div class="text">信息填写错误,请返回上一步重新填写</div>
+    </div>
+    <footer>
+      <van-button block type="info" @click="$router.go(-1)">返 回</van-button>
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "AddError",
+  data() {
+    return {};
+  },
+  mounted() {},
+  methods: {
+    back() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  height: calc(100%-120px);
+  padding-top: 120px;
+  .change2 {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    background: #8b614d;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin: 0 auto;
+    .close {
+      position: relative;
+      height: 40px;
+    }
+
+    .close::before,
+    .close::after {
+      position: absolute;
+      content: " ";
+      background-color: #fff;
+      height: 40px;
+      left: -2px;
+      width: 4px;
+    }
+
+    .close::before {
+      transform: rotate(45deg);
+    }
+
+    .close::after {
+      transform: rotate(-45deg);
+    }
+    // .gou {
+    //   width: 28px;
+    //   height: 12px;
+    //   border-top: 4px solid #fff;
+    //   border-right: 4px solid #fff;
+    //   -webkit-transform: translateY(-20%) rotate(135deg);
+    // }
+  }
+  .title {
+    margin-top: 20px;
+    font-family: "PingFang SC-Medium";
+    font-size: 22px;
+    color: #8b614d;
+  }
+  .text {
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    margin-top: 20px;
+    font-size: 14px;
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 246 - 0
src/views/addRelative.vue

@@ -0,0 +1,246 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:43:27
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\addRelative.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="title">亲属信息</div>
+      <div class="text">
+        该申请入口仅支持被申请人为未满18周岁的未成年人,60周岁以上的老年人(含60周岁)。
+      </div>
+      <van-form validate-first class="form" @submit="onSubmit" ref="form">
+        <!-- 通过 pattern 进行正则校验 -->
+        <van-field
+          maxlength="10"
+          v-model="form.QSXM"
+          label="亲属"
+          name="QSXM"
+          placeholder="请输入亲属姓名"
+          :rules="[{ pattern: QSXMPattern, message: '请输入2~10位中文汉字' }]"
+        />
+        <van-field
+          readonly
+          clickable
+          name="ZJLX"
+          :value="cardtypeText"
+          label="证件类型"
+          placeholder="请选择证件类型"
+          @click="showPicker = true"
+        />
+        <van-popup v-model="showPicker" position="bottom">
+          <van-picker
+            show-toolbar
+            :columns="columns"
+            value-key="LXMC"
+            @confirm="onConfirm"
+            @cancel="showPicker = false"
+          />
+        </van-popup>
+        <van-field
+          maxlength="18"
+          v-model="form.QSZJHM"
+          type="text"
+          label="证件号"
+          name="QSZJHM"
+          placeholder="请输入亲属证件号"
+          :rules="[
+            { validator: cardValidator, message: '请输入正确亲属证件号' },
+          ]"
+        />
+        <!-- <van-field
+          maxlength="11"
+          v-model="form.telNum"
+          type="tel"
+          label="手机号"
+          name="telNum"
+          placeholder="请输入亲属手机号"
+          :rules="[{ pattern: telNumPattern, message: '请输入正确手机号' }]"
+        /> -->
+        <div class="bg">
+          <van-button
+            block
+            :loading="loading"
+            loading-type="spinner"
+            type="info"
+            native-type="submit"
+            :disabled="isChange == 0"
+            >下一步</van-button
+          >
+        </div>
+      </van-form>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Field, Form, Picker, Popup, Button } from "vant";
+Vue.use(Field).use(Form).use(Picker).use(Popup).use(Button);
+import { setParamLog, getDocument, AddRelatives } from "@/api/index";
+export default {
+  name: "AddRelative",
+  data() {
+    return {
+      isChange: 0,
+      columns: [],
+      cardtypeText: "",
+      showPicker: false,
+      telNumPattern:
+        /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/,
+      QSXMPattern: /^[\u4e00-\u9fa5]{2,10}$/,
+      form: {
+        QSXM: "",
+        QSZJHM: "",
+        // telNum: "",
+        ZJLX: "",
+      },
+      queryInfo: {},
+      loading: false,
+    };
+  },
+  watch: {
+    form: {
+      deep: true,
+      handler(newVal, oldVal) {
+        if (newVal.QSXM && newVal.QSZJHM && newVal.ZJLX) {
+          this.isChange = 1;
+        } else {
+          this.isChange = 0;
+        }
+      },
+    },
+  },
+  created() {
+    this.queryInfo = this.$route.query;
+    setParamLog({ type: "wechat", service: "getDocument" });
+    getDocument({ type: "wechat" }).then((res) => {
+      this.columns = res.data.MXXQ;
+    });
+  },
+  beforeRouteEnter(to, from, next) {
+    //路由导航钩子,通过页面路由标记是否需要清空页面数据重新加载
+    to.meta["fromPath"] = from.path;
+    if (from.path == "/addError") {
+      to.meta["needFresh"] = false;
+    } else {
+      to.meta["needFresh"] = true;
+    }
+    next();
+  },
+  activated() {
+    //此方法在页面缓存时会被调用,根据路由元信息决定是否重新加载数据。不加载则是上次填写完的数据
+    if (this.$route.meta["needFresh"]) {
+      this.init();
+    }
+  },
+  methods: {
+    init() {
+      this.$refs.form.resetValidation();
+      this.form = {
+        QSXM: "",
+        QSZJHM: "",
+        ZJLX: "",
+      };
+      this.cardtypeText = "";
+    },
+    onConfirm(value) {
+      this.cardtypeText = value.LXMC;
+      this.form.ZJLX = value.id;
+      this.showPicker = false;
+    },
+    cardValidator(val) {
+      // 18位身份证号
+      let reg1 =
+        /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
+      // 15位身份证号
+      let reg2 =
+        /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
+      if (!reg1.test(val) && !reg2.test(val)) {
+        return false;
+      } else {
+        return true;
+      }
+    },
+    onSubmit(values) {
+      this.loading = true;
+      let submitForm = { type: "wechat", ...this.form, ...this.queryInfo };
+      setParamLog({ type: "wechat", service: "AddRelatives" });
+      AddRelatives(submitForm).then((res) => {
+        this.loading = false;
+        if (res.code == 0) {
+          this.$router.push({
+            name: "AddSuccess",
+          });
+        } else if (res.code == 205) {
+          this.$router.push({
+            name: "AddError",
+          });
+        }
+      });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+::v-deep #main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Medium";
+  text-align: left;
+  // background: #fff;
+  .title {
+    font-size: 18px;
+    margin: 20px 0;
+  }
+  .text {
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    line-height: 24px;
+  }
+  .form {
+    margin-top: 20px;
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+    font-family: "PingFang SC-Regular";
+    margin-bottom: 60px;
+  }
+  .van-field__label span {
+    color: #000;
+    font-size: 16px;
+  }
+  .van-cell__value {
+    color: #c4c4c4;
+  }
+}
+.bg {
+  position: fixed;
+  bottom: 0px;
+  width: 100%;
+  left: 50%;
+  transform: translateX(-50%);
+  background: #fff;
+  padding-top: 10px;
+}
+button {
+  width: calc(100% - 30px);
+  height: 50px;
+  background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+  border-radius: 4px;
+  border: none;
+  color: #fff;
+  font-family: "PingFang SC-Regular";
+  font-size: 18px;
+  margin: 0 auto;
+  margin-bottom: 10px;
+}
+.wrapper {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 100%;
+}
+</style>

+ 99 - 0
src/views/addSuccess.vue

@@ -0,0 +1,99 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:19:22
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\addSuccess.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="change2">
+        <div class="gou"></div>
+      </div>
+      <div class="text">添加成功</div>
+      <div class="goHome" @click="$router.go(-3)">
+        <img src="../assets/images/index.png" alt="" />
+        <div class="iconText">中药安心达</div>
+      </div>
+    </div>
+    <footer>
+      <van-button block type="info" @click="back()">确 定</van-button>
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "AddSuccess",
+  data() {
+    return {};
+  },
+  mounted() {},
+  methods: {
+    back() {
+      this.$router.go(-2);
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  height: calc(100%-120px);
+  padding-top: 120px;
+  .change2 {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    background: #cbb486;
+    border: 1px solid #bcbec0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin: 0 auto;
+    .gou {
+      width: 28px;
+      height: 12px;
+      border-top: 4px solid #fff;
+      border-right: 4px solid #fff;
+      -webkit-transform: translateY(-20%) rotate(135deg);
+    }
+  }
+  .text {
+    margin-top: 20px;
+    font-family: "PingFang SC-Medium";
+    font-size: 22px;
+  }
+  .goHome {
+    margin-top: 100px;
+    img {
+      width: 70px;
+    }
+    .iconText {
+      font-family: "PingFang SC-Regular";
+      font-size: 18px;
+      margin-top: 10px;
+    }
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 168 - 0
src/views/applyNotice.vue

@@ -0,0 +1,168 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-01 15:27:03
+ * @FilePath: \sui-shen-ban_wechat\src\views\applyNotice.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="top">
+        <div class="back" @click="back()"></div>
+        <span>{{$route.meta.title}}</span>
+      </div>
+    </header>
+    <div id="main">
+      <div class="title">亲属信息</div>
+      <div class="textTitle">添加须知</div>
+      <div class="text">
+        这里是申请须知文案,由于依申请公开政府信息涉及到一定的流程,并需要一定的时间办理,因此建议你在正式提交政府
+        信息公开申请之前,先通过本网站的"搜索"功能进行查找。
+        国家卫生健康委员会依申请公开系统使用须知本系统只受理公民、法人和其他组织根据自身生产、生活、科研等特殊需要向国家卫生健康委员会申请
+        获取除主动公开以外的政府信息公开申请。
+      </div>
+      <div class="handle" @click="change()">
+        <div class="change1" v-if="isChange == 0"></div>
+        <div class="change2" v-else>
+          <div class="gou"></div>
+        </div>
+        <div>我已阅读并遵守以上规定</div>
+      </div>
+    </div>
+    <footer>
+      <van-button
+        block
+        type="info"
+        :disabled="isChange == 0"
+        @click="toAddRelative()"
+        >下一步</van-button
+      >
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "ApplyNotice",
+  data() {
+    return {
+      isChange: 0,
+      queryInfo:{}
+    };
+  },
+  created() {
+    this.queryInfo = this.$route.query;
+  },
+  methods: {
+    back() {
+      this.$router.go(-1);
+    },
+
+    // 勾选
+    change() {
+      this.isChange = this.isChange == 0 ? 1 : 0;
+    },
+
+    toAddRelative(){
+      this.$router.push({ name: "AddRelative", query: this.queryInfo });
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+}
+.top {
+  background-color: #cbb486;
+  height: 50px;
+  line-height: 50px;
+  width: 100%;
+  text-align: center;
+  color: #fff;
+  font-size: 1.125rem;
+  position: relative;
+}
+.back {
+  position: absolute;
+  top: 50%;
+  left: 1.25rem;
+  width: 0.75rem;
+  height: 0.75rem;
+  border-top: 0.25rem solid #fff;
+  border-right: 0.25rem solid #fff;
+  -webkit-transform: translateY(-50%) rotate(-135deg);
+}
+#main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Medium";
+  text-align: left;
+  .title {
+    font-size: 18px;
+    margin: 20px 0;
+  }
+  .textTitle {
+    margin: 10px 0;
+  }
+  .text {
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    line-height: 24px;
+  }
+  .handle {
+    display: flex;
+    align-items: center;
+    height: 40px;
+    color: #666666;
+    font-family: "PingFang SC-Regular";
+    font-size: 16px;
+  }
+  .change1 {
+    width: 15px;
+    height: 15px;
+    margin-right: 5px;
+    border-radius: 50%;
+    border: 1px solid #bcbec0;
+  }
+  .change2 {
+    width: 15px;
+    height: 15px;
+    margin-right: 5px;
+    border-radius: 50%;
+    background: #cbb486;
+    border: 1px solid #bcbec0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    .gou {
+      width: 9px;
+      height: 4px;
+      border-top: 1px solid #fff;
+      border-right: 1px solid #fff;
+      -webkit-transform: translateY(-10%) rotate(135deg);
+    }
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 397 - 0
src/views/consultationRecord.vue

@@ -0,0 +1,397 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 17:07:11
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\consultationRecord.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="center">
+        <div class="avatarImg">
+          <img
+            src="../assets/images/man.png"
+            alt=""
+            v-if="recordInfo.HZXB && recordInfo.HZXB == 1"
+          />
+          <img
+            src="../assets/images/woman.png"
+            alt=""
+            v-else-if="recordInfo.HZXB && recordInfo.HZXB == 2"
+          />
+          <img src="../assets/images/avatar.png" alt="" v-else />
+        </div>
+        <div class="avatarInfo">
+          <div class="name">
+            <span>{{ info.name }}</span>
+            <span @click="eye()" v-if="eyeLock"
+              ><img src="../assets/images/openEye.png" alt=""
+            /></span>
+            <span @click="eye()" v-else
+              ><img src="../assets/images/closeEye.png" alt=""
+            /></span>
+          </div>
+          <div class="info">
+            <span style="margin-left: 12px">{{
+              recordInfo.HZXB != 1 && recordInfo.HZXB != 2
+                ? "-"
+                : recordInfo.HZXB == 1
+                ? "男"
+                : "女"
+            }}</span>
+            <span style="margin: 0 12px">|</span>
+            <span style="font-family: 'PingFang SC-Regular'"
+              >近三个月就诊记录</span
+            >
+          </div>
+          <div class="relativeinfo" @click="toRelative()" v-if="isRelative">
+            <img src="../assets/images/relative.png" alt="" />
+            <span>亲属信息</span>
+          </div>
+        </div>
+      </div>
+      <div class="bottom">
+        <div class="bottomInfo">
+          <div class="info">
+            <p>证件号码</p>
+            <p>{{ info.idcard }}</p>
+          </div>
+          <div class="info">
+            <p>最近就诊</p>
+            <p v-if="recordInfo.JLS == 0">--</p>
+            <p v-else>{{ getDate(recordInfo.MXXQ[0].KFRQ) }}</p>
+          </div>
+        </div>
+      </div>
+    </header>
+    <div id="main">
+      <div v-if="recordInfo.JLS == 0" class="nodata">暂无数据</div>
+      <div v-else>
+        <div
+          class="record"
+          @click="toDetails(item)"
+          v-for="(item, index) in recordInfo.MXXQ"
+          :key="index"
+        >
+          <div class="code">
+            <p>处方状态:</p>
+            <p v-if="item.CLZT == 0">待处理(已收费)</p>
+            <p v-else-if="item.CLZT == 1">已审方</p>
+            <p v-else-if="item.CLZT == 2">代煎机构已确认</p>
+            <p v-else-if="item.CLZT == 5">已配方</p>
+            <p v-else-if="item.CLZT == 6">已浸泡</p>
+            <p v-else-if="item.CLZT == 7">已煎煮</p>
+            <p v-else-if="item.CLZT == 8">已包装</p>
+            <p v-else-if="item.CLZT == 9">已快递</p>
+            <p v-else-if="item.CLZT == 10">已发车</p>
+            <p v-else-if="item.CLZT == 11">已签收</p>
+            <p v-else-if="item.CLZT == 12">代煎企业退回</p>
+            <p v-else-if="item.CLZT == 13">医疗机构退回</p>
+            <p v-else-if="item.CLZT == 99">处方信息处理出现异常</p>
+          </div>
+          <div class="info">
+            <div class="outDiv">
+              <div class="title">医疗机构</div>
+              <div class="name">{{ item.YLJGMC }}</div>
+            </div>
+            <div class="outDiv">
+              <div class="title">处方日期</div>
+              <div class="name" style="font-family: 'Avenir-Medium'">
+                {{ getDate(item.KFRQ) }}
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+</script>
+<script>
+import { getDate } from "@/mixins/format";
+import { eye } from "@/mixins/eye";
+import {
+  getTestAccesstoken,
+  setParamLog,
+  getWeChatUser,
+  getWechatService,
+} from "@/api/index";
+import { getCookies, setCookies } from "@/utils/auth";
+export default {
+  name: "ConsultationRecord",
+  mixins: [getDate(), eye()],
+  data() {
+    return {
+      recordInfo: {
+        JLS: 0,
+        HZXB: "",
+        MXXQ: [],
+      },
+      isRelative: true,
+    };
+  },
+  created() {
+    let query = this.$route.query;
+    if (query.idcard) {
+      setCookies("relativeInfo", JSON.stringify(query));
+      this.info = JSON.parse(JSON.stringify(query));
+      this.eye("refresh");
+      setParamLog({type:'wechat',service:'WX001'})
+      getWechatService({
+        Service: "WX001",
+        ZJHM: query.idcard,
+      }).then((res) => {
+        this.recordInfo = res.data;
+        if (!res.data.HZXB) {
+          this.recordInfo.HZXB = "-";
+        }
+      });
+      this.isRelative = false;
+    } else {
+      if (getCookies("myInfo")) {
+        this.info = JSON.parse(getCookies("myInfo"));
+      } else {
+        this.info = false;
+      }
+      this.isRelative = true;
+      if (this.info) {
+        this.eye("refresh");
+        setParamLog({type:'wechat',service:'WX001'})
+        getWechatService({
+          Service: "WX001",
+          ZJHM: getCookies("idcard"),
+        }).then((res) => {
+          if (res.data) {
+            this.recordInfo = res.data;
+          }
+        });
+      } else {
+        this.getFirstInfo(() => {
+          this.info = JSON.parse(getCookies("myInfo"));
+          this.eye("refresh");
+          setParamLog({type:'wechat',service:'WX001'})
+          getWechatService({
+            Service: "WX001",
+            ZJHM: getCookies("idcard"),
+          }).then((res) => {
+            if (res.data) {
+              this.recordInfo = res.data;
+            }
+          });
+        });
+      }
+    }
+    //控制名称显隐
+    // this.eye("refresh");
+  },
+  methods: {
+    getUrlParms: function (name) {
+      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+      var getHref = decodeURI(window.location.search);
+      var r = getHref.substr(1).match(reg);
+      if (r != null) return unescape(r[2]);
+      return null;
+    },
+    getFirstInfo(callback) {
+      let accesstoken = this.getUrlParms("accesstoken");
+      setParamLog({type:'wechat',service:'getWeChatUser'})
+      getWeChatUser({ accesstoken: accesstoken }).then((res) => {
+        setCookies("myInfo", JSON.stringify(res.data));
+        setCookies("idcard", res.data.idcard);
+        if (callback) callback();
+      });
+      // getTestAccesstoken().then((res) => {
+      //   let accesstoken = res.result.data;
+      // });
+    },
+    //亲属信息按钮
+    toRelative() {
+      this.$router.push({
+        name: "RelativeInfo",
+        query: {
+          XM: JSON.parse(getCookies("myInfo")).name,
+          ZJHM: getCookies("idcard"),
+        },
+      });
+    },
+    toDetails(item) {
+      setCookies("tabId",0)
+      this.$router.push({
+        name: "PrescriptionDetails",
+        query: {
+          YNCFBH: item.YNCFBH,
+          YLJGDM: item.YLJGDM,
+          KFRQ: item.KFRQ,
+          CFTS: item.CFTS ? item.CFTS : 0,
+          YLJGMC: item.YLJGMC,
+          sex: this.recordInfo.HZXB,
+          zjhm:this.$route.query.idcard?this.$route.query.idcard:getCookies("idcard")
+        },
+      });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+  // height: 270px;
+  background-color: #cbb486;
+  border-bottom-left-radius: 15px;
+  border-bottom-right-radius: 15px;
+  padding-bottom: 10px;
+}
+.center {
+  // height: 80px;
+  display: flex;
+  padding: 10px 15px;
+  position: relative;
+}
+.avatarImg {
+  height: 100%;
+  img {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    // margin-top: 15px;
+  }
+}
+.avatarInfo {
+  .name {
+    color: #fff;
+    font-size: 24px;
+    height: 50px;
+    display: flex;
+    align-items: center;
+    span {
+      margin-left: 12px;
+      font-weight: bolder;
+    }
+    img {
+      width: 20px;
+    }
+  }
+  .info {
+    color: #fff;
+    font-size: 12px;
+  }
+  .relativeinfo {
+    position: absolute;
+    top: 22px;
+    right: 15px;
+    width: 74px;
+    padding: 3px 7px;
+    display: flex;
+    text-align: center;
+    align-items: center;
+    border-radius: 30px;
+    background: linear-gradient(180deg, #eee5d2 0%, #fdfaf5 100%);
+    font-family: "PingFang SC-Regular";
+    color: #8b614d;
+    font-size: 12px;
+    img {
+      width: 18px;
+      margin-right: 5px;
+    }
+  }
+}
+.bottom {
+  padding: 0 15px;
+  height: 100px;
+  .bottomInfo {
+    background: rgba(111, 82, 38, 0.2);
+    border-radius: 8px;
+    width: 100%;
+    height: 100%;
+    display: flex;
+    .info {
+      width: 50%;
+      height: 100%;
+      flex-direction: column;
+      display: flex;
+      justify-content: center;
+      color: #fff;
+      font-family: "Avenir-Medium";
+      p:nth-child(1) {
+        padding-bottom: 20px;
+        font-size: 12px;
+        font-family: "PingFang SC-Regular";
+      }
+      p:nth-child(2) {
+        font-size: 14px;
+      }
+    }
+    .info:nth-child(1) {
+      p {
+        border-right: 2px solid;
+      }
+    }
+  }
+}
+#main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Regular";
+  .nodata {
+    color: #7a7a7a;
+    margin-top: 30px;
+  }
+  .record {
+    margin-bottom: 15px;
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+    border-radius: 8px;
+    .code {
+      display: flex;
+      height: 50px;
+      align-items: center;
+      // justify-content: space-between;
+      padding: 0 15px;
+      border-bottom: 1px solid #e7e7e7;
+      font-size: 14px;
+      color: #000;
+      text-align: left;
+      line-height: 20px;
+
+      p:nth-child(1) {
+        width: 80px;
+      }
+      p:nth-child(2) {
+        color: #8b614d;
+        text-align: right;
+      }
+    }
+    .info {
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      text-align: left;
+    }
+    .outDiv:nth-child(1) {
+      padding-top: 15px;
+      line-height: 20px;
+    }
+    .outDiv:nth-child(2) {
+      height: 40px;
+      line-height: 40px;
+    }
+    .outDiv {
+      display: flex;
+      padding: 0px 15px;
+      font-family: "PingFang SC-Regular";
+      font-size: 14px;
+      .title {
+        width: 80px;
+        text-align: left;
+        color: #999999;
+      }
+      .name {
+        color: #000;
+        width: calc(100% - 80px);
+      }
+    }
+  }
+}
+</style>

+ 279 - 0
src/views/drugTrace.vue

@@ -0,0 +1,279 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:19:53
+ * @FilePath: \sui-shen-ban_alipay\src\views\drugTrace.vue
+-->
+<template>
+  <div>
+    <header></header>
+    <div id="main" v-if="result">
+      <div class="drugSource">
+        <div class="name">{{(result.ypBusinessTraceVOList[0].wptpYpbSaleVO.ypName?result.ypBusinessTraceVOList[0].wptpYpbSaleVO.ypName:result.ypProcessVO.wptpYpSaleVO.ypName)?result.ypProcessVO.wptpYpSaleVO.ypName:result.medicineVOList[0].wptpMedicineSaleVO.medicineName}}</div>
+        <div class="source" style="border: none">
+          <div class="label">产品批号</div>
+          <div class="value">{{result.ypProcessVO.secondYpProcessVO?result.ypProcessVO.secondYpProcessVO.productBatch:result.ypProcessVO.wptpYpProcessVO.productBatch}}</div>
+        </div>
+        <div class="source">
+          <div class="label">产地</div>
+          <div class="value">{{result.plantTraceVO.wptpBaseVO.ssq}}</div>
+        </div>
+        <div class="source">
+          <div class="label">饮片生产企业</div>
+          <div class="value">{{result.ypProcessVO.wptpYpSaleVO. entName}}</div>
+        </div>
+        <div class="source">
+          <div class="label">饮片经营企业</div>
+          <div class="value" v-if="result.ypBusinessTraceVOList[0].wptpYpbSaleVO.entName">{{result.ypBusinessTraceVOList[0].wptpYpbSaleVO.entName}}</div>
+        </div>
+      </div>
+      <div class="record drugProduce" :style="imgShow?{backgroundSize: `100% 155vw`,height:`157vw`}:{backgroundSize: `100% 67vw`,height:`70vw`}">
+        <div class="title" :style="imgShow?{paddingTop: `24vw`}:{paddingTop: `14vw`}">
+          <span>药材生产</span>
+        </div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">种植时间</div>
+            <div class="value">{{result.plantTraceVO.wptpCsInfoList[0].fileTime}}</div>
+          </div>
+          <div class="contentItem" style="width:40%">
+            <div class="label">采收时间</div>
+            <div class="value">{{result.plantTraceVO.wptpCsInfoList[0].csTime}}</div>
+          </div>
+        </div>
+        <div class="drugImg" v-for="(item,index) in result.plantTraceVO.wptpPlantInfoVOList">
+          <img :src="baseUrl+item.plantFileList[0].path" alt="" v-if="item.plantSatus=='移栽播种'"/>
+          <img :src="baseUrl+item.plantFileList[0].path" alt="" v-if="item.plantSatus=='采收'"/>
+        </div>
+      </div>
+      <div class="record" v-if="result.medicineVOList.length != 0" :style="{backgroundSize: `100% calc(${10*result.medicineVOList.length}vw + 57vw)`,height:`calc(${10*result.medicineVOList.length}vw + 60vw)`}">
+        <div class="title">
+          <span>药材流通</span>
+        </div>
+        <div class="content" v-for="(item,index) in result.medicineVOList" :key="index">
+          <div class="contentItem contentItem1">
+            <div class="label">药材流通企业</div>
+            <div class="value">{{item.wptpMedicineSaleVO.entName}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">验收结果</div>
+            <div class="value">{{item.wptpMedicineInstockVO.checkResult}}</div>
+          </div>
+        </div>
+      </div>
+      <div class="record pieces">
+        <div class="title">
+          <span>饮片生产</span>
+        </div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">饮片生产企业</div>
+            <div class="value">{{result.ypProcessVO.wptpYpSaleVO.entName}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">原料检验结果</div>
+            <div class="value">{{result.ypProcessVO.wptpYpInstockVO.checkResult}}</div>
+          </div>
+        </div>
+        <div class="line"></div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">成品检验结果</div>
+            <div class="value">{{result.ypProcessVO.wptpYpProcessVO.checkResult}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">成品批号</div>
+            <div class="value">{{result.ypProcessVO.secondYpProcessVO?result.ypProcessVO.secondYpProcessVO.productBatch:result.ypProcessVO.wptpYpProcessVO.productBatch}}</div>
+          </div>
+        </div>
+      </div>
+      <div class="record pieces" v-if="result.ypBusinessTraceVOList.length != 0" :style="{backgroundSize: `100% calc(${40*result.ypBusinessTraceVOList.length}vw + 40vw)`,height:`calc(${40*result.ypBusinessTraceVOList.length}vw + 43vw)`}">
+        <div class="title">
+          <span>饮片流通</span>
+        </div>
+        <div v-for="(item,index) in result.ypBusinessTraceVOList" :key="index">
+          <div class="content">
+            <div class="contentItem contentItem1">
+              <div class="label">饮片经营企业</div>
+              <div class="value">{{item.wptpYpbSaleVO.entName}}</div>
+            </div>
+            <div class="contentItem contentItem2">
+              <div class="label">产品批号</div>
+              <div class="value">{{item.wptpYpbSaleVO.productBatch}}</div>
+            </div>
+          </div>
+          <div class="line"></div>
+          <div class="content">
+            <div class="contentItem contentItem1">
+              <div class="label">验收结果</div>
+              <div class="value">{{item.wptpYpbInstockVO.checkResult}}</div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div v-else>
+      <van-loading type="spinner" class="load" vertical>加载中...</van-loading>
+    </div>
+  </div>
+</template>
+  <script>
+import Vue from "vue";
+import { getDateTime } from "@/mixins/format";
+import { setCookies } from "@/utils/auth";
+import { setParamLog,getWechatService } from "@/api/index";
+import { Loading } from "vant";
+Vue.use(Loading);
+export default {
+  name: "DrugTrace",
+  mixins: [getDateTime()],
+  data() {
+    return {
+      result:'',
+      baseUrl:ipConfig.baseURL,
+      imgShow:false
+    };
+  },
+  created() {
+    setCookies("tabId",2)
+    setParamLog({type:'alipay',service:'WX007'})
+    getWechatService({ Service: "WX007", ...this.$route.query }).then((res) => {
+      this.result = res.data.result
+      if(this.result.plantTraceVO.wptpPlantInfoVOList && this.result.plantTraceVO.wptpPlantInfoVOList.length != 0){
+        this.result.plantTraceVO.wptpPlantInfoVOList.forEach(item=>{
+          if(item.plantSatus == "移栽播种" || item.plantSatus == "采收"){
+            this.imgShow = true
+          }else{
+            this.imgShow = false
+          }
+        })
+      }
+    });
+  },
+  mounted() {},
+  methods: {},
+};
+</script>
+ <style lang="scss" scoped>
+header {
+  width: 100%;
+  height: 56vw;
+  background: url("../assets/images/drugHead.png") no-repeat;
+  background-size: cover;
+}
+#main {
+  position: absolute;
+  top: 5vw;
+  width: 100%;
+  left: 50%;
+  transform: translateX(-50%);
+  .drugSource {
+    background: url("../assets/images/drugBack.png") no-repeat;
+    background-size: 100% 85vw;
+    padding: 0 8vw;
+    height: 88vw;
+    .name {
+      font-family: "PingFang SC-Semibold";
+      font-size: 6vw;
+      color: #8b614d;
+      letter-spacing: 0;
+      text-align: center;
+      font-weight: 600;
+      padding: 14vw 0 4vw 0;
+    }
+    .source {
+      border-top: 1px solid rgba(215, 208, 191, 1);
+      display: flex;
+      text-align: left;
+      line-height: 5vw;
+      padding: 3vw 0;
+      color: #000000;
+      font-weight: 400;
+      font-family: "PingFang SC-Regular";
+      .label {
+        width: 28vw;
+        opacity: 0.5;
+        font-size: 3vw;
+      }
+      .value {
+        width: calc(100% - 28vw);
+        font-size: 4vw;
+      }
+    }
+  }
+  .title {
+    font-family: "PingFang SC-Medium";
+    font-size: 5vw;
+    color: #8b614d;
+    letter-spacing: 0;
+    text-align: center;
+    padding: 14vw 0 8vw 0;
+    font-weight: 500;
+    span {
+      border-bottom: 1px solid #8b614d;
+    }
+  }
+  .record {
+    background: url("../assets/images/drugBack.png") no-repeat;
+    padding: 0 8vw;
+    background-size: 100% 67vw;
+    height: 70vw;
+  }
+  .content {
+    display: flex;
+    margin-bottom: 3vw;
+    .contentItem {
+      color: #000000;
+      font-weight: 400;
+      font-family: "PingFang SC-Regular";
+      text-align: left;
+      line-height: 7vw;
+      .label {
+        opacity: 0.5;
+        font-size: 3vw;
+      }
+      .value {
+        font-size: 4vw;
+      }
+    }
+    .contentItem1 {
+      width: 60%;
+    }
+    .contentItem2 {
+      width: calc(40% - 5vw);
+      padding-left: 5vw;
+    }
+  }
+  .line {
+    width: 100%;
+    border-bottom: 1px solid rgba(203, 203, 203, 1);
+    margin: 3vw 0;
+  }
+  .drugProduce {
+    background-size: 100% 155vw;
+    height: 157vw;
+    .title {
+      padding-top: 24vw;
+    }
+    .drugImg {
+      display: flex;
+      flex-direction: column;
+      img {
+        width: 100%;
+        margin: 5px 0;
+      }
+    }
+  }
+  .pieces {
+    background-size: 100% 80vw;
+    height: 83vw;
+  }
+}
+.load{
+  margin-top: 35px;
+}
+</style>
+  

+ 54 - 0
src/views/index.vue

@@ -0,0 +1,54 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 11:56:02
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-05 15:37:35
+ * @FilePath: \sui-shen-ban_wechat\src\views\index.vue
+-->
+<template>
+  <div></div>
+</template>
+<script>
+import { setCookies, removeAllCookie } from "@/utils/auth";
+import { getTestAccesstoken, getWeChatUser } from "@/api/index";
+export default {
+  name: "Home",
+  created() {
+    removeAllCookie();
+    let accesstoken = this.getUrlParms("accesstoken");
+    getWeChatUser({ accesstoken: accesstoken }).then((res) => {
+      setCookies("myInfo", JSON.stringify(res.data));
+      setCookies("idcard", res.data.idcard);
+      this.$router.push({
+        name: "ConsultationRecord",
+      });
+    });
+    // getTestAccesstoken().then((res) => {
+    //   let accesstoken = res.result.data;
+    // });
+    // var ua = navigator.userAgent.toLowerCase();
+    // if (ua.match(/MicroMessenger/i) == "micromessenger") {
+    //   //ios的ua中无miniProgram,但都有MicroMessenger(表示是微信浏览器)
+    //   wx.miniProgram.getEnv((res) => {
+    //     if (res.miniprogram) {
+    //       //   alert("在微信小程序里");
+    //     } else {
+    //       //   alert("在微信里");
+    //     }
+    //   });
+    // }
+  },
+
+  methods: {
+    getUrlParms: function (name) {
+      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+      var getHref = decodeURI(window.location.search);
+      var r = getHref.substr(1).match(reg);
+      if (r != null) return unescape(r[2]);
+      return null;
+    },
+  },
+};
+</script>

+ 707 - 0
src/views/prescriptionDetails.vue

@@ -0,0 +1,707 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:19:25
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\prescriptionDetails.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="center">
+        <div class="avatarImg">
+          <img src="../assets/images/man.png" alt="" v-if="sex == 1" />
+          <img src="../assets/images/woman.png" alt="" v-else-if="sex == 2" />
+          <img src="../assets/images/avatar.png" alt="" v-else />
+        </div>
+        <div class="avatarInfo">
+          <div class="name">
+            <span>{{ info.name }}</span>
+            <span @click="eye()" v-if="eyeLock"
+              ><img src="../assets/images/openEye.png" alt=""
+            /></span>
+            <span @click="eye()" v-else
+              ><img src="../assets/images/closeEye.png" alt=""
+            /></span>
+          </div>
+        </div>
+      </div>
+      <div class="bottom">
+        <div class="bottomInfo">
+          <div class="info">
+            <span><img src="../assets/images/hospital.png" alt="" /></span>
+            <span>{{ $route.query.YLJGMC }}</span>
+          </div>
+          <div class="info">
+            <span><img src="../assets/images/date.png" alt="" /></span>
+            <span class="date">{{ getDate($route.query.KFRQ) }}</span>
+          </div>
+        </div>
+      </div>
+    </header>
+    <div id="main">
+      <van-tabs
+        v-model="tabId"
+        title-active-color="#8b614d"
+        color="#8b614d"
+        title-inactive-color="#c4c4c4"
+        background="#fff"
+        line-width="70px"
+        line-height="3px"
+        duration="0.2"
+        sticky
+      >
+        <van-tab title="处方状态">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="presShow"
+            >加载中...</van-loading
+          >
+          <div
+            v-if="prescriptionStatus.JLS == 0"
+            class="nodata"
+            v-show="!presShow"
+          >
+            暂无数据
+          </div>
+          <div class="content" v-else v-show="!presShow">
+            <div v-for="(item1, index1) in MXXQ" :key="index1">
+              <div
+                class="outDiv1"
+                v-for="(item2, index2) in item1.children"
+                :key="index2"
+              >
+                <div class="datetime">
+                  <p
+                    class="date"
+                    :style="index1 == 0 && index2 == 0 ? 'color: #000' : ''"
+                    v-if="index2 == 0 && item1.date"
+                  >
+                    {{ item1.date ? getDate(item1.date) : "" }}
+                  </p>
+                  <p
+                    class="time"
+                    :style="index1 == 0 && index2 == 0 ? 'color: #7a7a7a' : ''"
+                  >
+                    {{ item2.FSSJ ? getTime(item2.FSSJ) : "-" }}
+                  </p>
+                </div>
+                <div class="lian">
+                  <img
+                    src="../assets/images/quan.png"
+                    alt=""
+                    style="width: 18px"
+                    v-if="index1 == 0 && index2 == 0"
+                  />
+                  <img src="../assets/images/quan2.png" alt="" v-else />
+                  <div
+                    v-if="
+                      !(
+                        index1 == MXXQ.length - 1 &&
+                        index2 == item1.children.length - 1
+                      )
+                    "
+                    class="line"
+                    :style="index1 == 0 && index2 == 0 ? 'top: 18px' : ''"
+                  ></div>
+                </div>
+                <div
+                  class="status"
+                  :style="
+                    index1 == 0 && index2 == 0
+                      ? 'background: #faf8f3; color: #8b614d'
+                      : ''
+                  "
+                >
+                  <span v-if="item2.CLZT == 0">待处理(已收费)</span>
+                  <span v-else-if="item2.CLZT == 1">已审方</span>
+                  <span v-else-if="item2.CLZT == 2">代煎机构已确认</span>
+                  <span v-else-if="item2.CLZT == 5">已配方</span>
+                  <span v-else-if="item2.CLZT == 6">已浸泡</span>
+                  <span v-else-if="item2.CLZT == 7">已煎煮</span>
+                  <span v-else-if="item2.CLZT == 8">已包装</span>
+                  <span v-else-if="item2.CLZT == 9">已快递</span>
+                  <span v-else-if="item2.CLZT == 10">已发车</span>
+                  <span v-else-if="item2.CLZT == 11">已签收</span>
+                  <span v-else-if="item2.CLZT == 12">代煎企业退回</span>
+                  <span v-else-if="item2.CLZT == 13">医疗机构退回</span>
+                  <span v-else-if="item2.CLZT == 99">处方信息处理出现异常</span>
+                </div>
+              </div>
+            </div>
+          </div>
+        </van-tab>
+        <van-tab title="物流信息">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="logShow"
+            >加载中...</van-loading
+          >
+          <div v-if="logisticsInfo.JLS == 0" class="nodata" v-show="!logShow">
+            暂无数据
+          </div>
+          <div class="content" v-else v-show="!logShow">
+            <div
+              class="outDiv2"
+              v-for="(item, index) in logisticsInfo.MXXQ"
+              :key="index"
+            >
+              <div class="lian">
+                <img
+                  src="../assets/images/quan.png"
+                  alt=""
+                  style="width: 18px"
+                  v-if="index == 0"
+                />
+                <img src="../assets/images/quan2.png" alt="" v-else />
+                <div
+                  class="line"
+                  :style="index == 0 ? 'top: 18px' : ''"
+                  v-if="index != logisticsInfo.JLS - 1"
+                ></div>
+              </div>
+              <div class="info" :style="index == 0 ? 'color: #000' : ''">
+                <div class="datetime">
+                  <span>{{ item.FSSJ ? getDateTime(item.FSSJ) : "-" }}</span>
+                </div>
+                <div class="status">
+                  <span>{{ item.JDMS }}</span>
+                </div>
+              </div>
+            </div>
+          </div>
+        </van-tab>
+        <van-tab title="处方内容">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="precShow"
+            >加载中...</van-loading
+          >
+          <div
+            v-if="prescriptionContent.JLS == 0"
+            class="nodata"
+            v-show="!precShow"
+          >
+            暂无数据
+          </div>
+          <div class="outDiv3 content" v-else v-show="!precShow">
+            <p class="title">
+              处方总帖数: <span>{{ CFTS }}</span
+              >,单帖处方内容如下
+            </p>
+            <div class="drugList">
+              <div class="listHead">
+                <div style="width: 100%">药品名称</div>
+                <!-- <div style="width: 50%">药品名称</div>
+                <div style="width: 50%">产地</div> -->
+              </div>
+              <van-list
+                v-model="loading"
+                :finished="finished"
+                @load="onLoad"
+                finished-text="没有更多了"
+              >
+                <div
+                  class="listBody"
+                  v-for="(item, index) in prescriptionContentMXXQ"
+                  :key="index"
+                >
+                  <!-- <div class="name">{{ item.YPMC }}</div>
+                  <div class="address">{{ item.CD ? item.CD : "-" }}</div> -->
+                  <!-- <div class="jiantou">
+                    <img src="../assets/images/open.png" alt="" />
+                  </div> -->
+                  <div class="name" @click="goDrugTrace1(item)">
+                    <span>{{ item.YPMC1 }}</span>
+                    <img src="../assets/images/syIcon.png" class="drugIcon" alt="" v-if="item.YPSYBM1 && item.YPSYBM1 != -1"/>
+                  </div>
+                  <div class="name" @click="goDrugTrace2(item)">
+                    <span>{{ item.YPMC2 }}</span>
+                    <img src="../assets/images/syIcon.png" class="drugIcon" alt="" v-if="item.YPSYBM2 && item.YPSYBM2 != -1"/>
+                  </div>
+                </div>
+              </van-list>
+            </div>
+          </div>
+        </van-tab>
+      </van-tabs>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Tab, Tabs, List, Loading } from "vant";
+Vue.use(Tab).use(Tabs).use(List).use(Loading);
+import { getDate, getTime, getDateTime } from "@/mixins/format";
+import { eye } from "@/mixins/eye";
+import { getCookies } from "@/utils/auth";
+import { setParamLog,getWechatService } from "@/api/index";
+export default {
+  name: "PrescriptionDetails",
+  mixins: [getDate(), getTime(), getDateTime(), eye()],
+  data() {
+    return {
+      sex: "",
+      tabId: 0,
+      MXXQ: [],
+      prescriptionContentMXXQ: [],
+      loading: false,
+      finished: false,
+      presShow: false,
+      logShow: false,
+      precShow: false,
+      CFTS: 0,
+      prescriptionStatus: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      logisticsInfo: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      prescriptionContent: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      strArray:[],
+      MXXQArray:[]
+    };
+  },
+  created() {
+    let query = {
+      YNCFBH: this.$route.query.YNCFBH,
+      YLJGDM: this.$route.query.YLJGDM,
+      KFRQ: this.$route.query.KFRQ,
+    };
+    this.CFTS = this.$route.query.CFTS
+    this.presShow = true;
+    this.logShow = true;
+    this.precShow = true;
+    setParamLog({type:'wechat',service:'WX002',jgdm:query.YLJGDM,zjhm:this.$route.query.zjhm})
+    getWechatService({ Service: "WX002", ...query }).then((res) => {
+      let prescriptionStatus = res.data.MXXQ;
+      this.MXXQ = this.toTree(prescriptionStatus);
+      // this.MXXQ = this.toTree(this.prescriptionStatus.MXXQ);
+      this.prescriptionStatus = res.data;
+      this.presShow = false;
+    });
+    setParamLog({type:'wechat',service:'WX003'})
+    getWechatService({ Service: "WX003", ...query }).then((res) => {
+      this.logisticsInfo = res.data;
+      this.logShow = false;
+    });
+    setParamLog({type:'wechat',service:'WX004'})
+    getWechatService({ Service: "WX004", ...query }).then((res) => {
+      res.data.MXXQ.forEach(item1=>{
+        this.strArray.forEach(item2=>{
+          if(item2.YPSYBM && item1.YPYBDM == item2.YPYBDM){
+            item1.YPSYBM = item2.YPSYBM
+          }
+        })
+      })
+      // this.prescriptionContent = res.data;
+      // this.prescriptionContentMXXQ = res.data.MXXQ.slice(0, 5);
+      let prescriptionContentMXXQ = this.toArr(res.data.MXXQ);
+      this.prescriptionContent = {
+        // JLS: Math.ceil(res.data.JLS / 2),
+        JLS: res.data.JLS,
+        MXXQ: prescriptionContentMXXQ,
+      };
+      this.prescriptionContentMXXQ = prescriptionContentMXXQ.slice(0, 5);
+      this.precShow = false;
+    });
+
+    setParamLog({type:'wechat',service:'WX006'})
+    getWechatService({ Service: "WX006", ...query }).then((res) => {
+      this.MXXQArray = res.data.MXXQ
+      var str1 = JSON.parse(res.data.MXXQ[0].mxxq)
+      var str2 = JSON.parse(res.data.MXXQ[1].mxxq)
+      this.strArray = str1.concat(str2)
+    });
+
+    if (this.$route.query.sex) {
+      this.sex = this.$route.query.sex.trim();
+    } else {
+      this.sex = "-";
+    }
+  },
+  mounted() {
+    if (getCookies("relativeInfo")) {
+      this.info = JSON.parse(getCookies("relativeInfo"));
+    } else {
+      this.info = JSON.parse(getCookies("myInfo"));
+    }
+    this.eye("refresh");
+    let tabId = getCookies("tabId");
+    if (!tabId) {
+      this.tabId = 0;
+    } else {
+      this.tabId = Number(tabId);
+    }
+  },
+  methods: {
+    toArr(oldArr) {
+      let newArr = [];
+      if (oldArr.length > 0) {
+        oldArr.forEach((item, index, arr) => {
+          if ((index + 1) % 2 == 1) {
+            let obj = {
+              YPMC1: item.YPMC,
+              YPMC2: arr[index + 1] ? arr[index + 1].YPMC : "",
+              YPSYBM1: item.YPSYBM,
+              YPSYBM2: arr[index + 1] ? arr[index + 1].YPSYBM : "",
+            };
+            newArr.push(obj);
+          }
+        });
+      }
+      return newArr;
+    },
+    toTree(list) {
+      var newobj = {},
+        newArr = [];
+      for (var i = 0; i < list.length; i++) {
+        var item = list[i];
+        if (!newobj[item["FSSJ"].substring(0, 8)]) {
+          newobj[item["FSSJ"].substring(0, 8)] = newArr.push(
+            item["FSSJ"].substring(0, 8)
+          );
+        }
+      }
+      let outArr = [];
+      newArr.forEach((ele) => {
+        let insideArr = [];
+        list.forEach((item) => {
+          if (item.FSSJ) {
+            if (ele.indexOf(item.FSSJ.substring(0, 8)) != -1) {
+              item.FSSJ = item.FSSJ.substring(8, 14);
+              insideArr.push(item);
+            }
+          }
+          if (!ele) {
+            if (!item.FSSJ) {
+              insideArr.push(item);
+            }
+          }
+        });
+        if (ele != -1) {
+          outArr.push({
+            date: ele,
+            children: insideArr,
+          });
+        }
+      });
+      return outArr;
+    },
+    getYPCDM(YPSYBM){
+      if(this.MXXQArray[0].mxxq.indexOf(YPSYBM) != '-1'){
+        return this.MXXQArray[0].ypcdm
+      }
+      if(this.MXXQArray[1].mxxq.indexOf(YPSYBM) != '-1'){
+        return this.MXXQArray[1].ypcdm
+      }
+    },
+    onLoad() {
+      // 异步更新数据
+      // setTimeout 仅做示例,真实场景中一般为 ajax 请求
+      setTimeout(() => {
+        for (let i = 0; i < 5; i++) {
+          if (
+            this.prescriptionContentMXXQ.length >=
+            this.prescriptionContent.MXXQ.length
+          ) {
+            this.finished = true;
+          } else {
+            this.prescriptionContentMXXQ.push(
+              this.prescriptionContent.MXXQ[this.prescriptionContentMXXQ.length]
+            );
+          }
+          // console.log(
+          //   this.prescriptionContent.MXXQ[this.prescriptionContentMXXQ.length]
+          // );
+        }
+
+        // 加载状态结束
+        this.loading = false;
+
+        // 数据全部加载完成
+      }, 1000);
+    },
+
+    goDrugTrace1(item) {
+      let ypcdm = this.getYPCDM(item.YPSYBM1)
+      if(item.YPSYBM1 && item.YPSYBM1 != -1){
+        this.$router.push({
+          name: "DrugTrace",
+          query: {
+            YPSYBM: item.YPSYBM1,
+            YPCDM:ypcdm,
+          },
+        });
+      }
+    },
+    goDrugTrace2(item) {
+      let ypcdm = this.getYPCDM(item.YPSYBM2)
+      if(item.YPSYBM2 && item.YPSYBM2 != -1){
+        this.$router.push({
+          name: "DrugTrace",
+          query: {
+            YPSYBM: item.YPSYBM2,
+            YPCDM:ypcdm,
+          },
+        });
+      }
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+  // height: 270px;
+  background-color: #cbb486;
+  border-bottom-left-radius: 15px;
+  border-bottom-right-radius: 15px;
+  padding-bottom: 10px;
+}
+.center {
+  // height: 80px;
+  display: flex;
+  padding: 10px 15px;
+  position: relative;
+}
+.avatarImg {
+  height: 100%;
+  img {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    // margin-top: 15px;
+  }
+}
+.avatarInfo {
+  .name {
+    color: #fff;
+    font-size: 24px;
+    height: 50px;
+    display: flex;
+    align-items: center;
+    span {
+      margin-left: 12px;
+      font-weight: bolder;
+    }
+    img {
+      width: 20px;
+    }
+  }
+}
+.bottom {
+  padding: 0 15px;
+  height: 100px;
+  font-size: 14px;
+  text-align: left;
+  .bottomInfo {
+    background: rgba(111, 82, 38, 0.2);
+    border-radius: 8px;
+    width: 100%;
+    height: 100%;
+    .info {
+      color: #fff;
+      font-family: "PingFang SC-Regular";
+      height: 50%;
+      display: flex;
+      align-items: center;
+      padding-left: 12px;
+      img {
+        width: 20px;
+        margin-right: 8px;
+      }
+      .date {
+        // font-family: "Avenir-Roman";
+        font-family: "Avenir-Medium";
+      }
+    }
+  }
+}
+::v-deep #main {
+  font-family: "PingFang SC-Regular";
+  .van-tab {
+    font-size: 18px;
+  }
+  .van-tabs--line .van-tabs__wrap {
+    border-bottom: 1px solid #dcdee2;
+  }
+  .load {
+    margin-top: 50px;
+  }
+  .content {
+    padding: 0 15px;
+    padding-top: 20px;
+  }
+  .nodata {
+    color: #7a7a7a;
+    margin-top: 30px;
+  }
+  .ge {
+    background: #f8f8f8;
+    height: 10px;
+  }
+  .outDiv1 {
+    display: flex;
+    justify-content: space-around;
+    align-items: center;
+    height: 70px;
+    .datetime {
+      width: 90px;
+      text-align: right;
+      color: #c4c4c4;
+      .date {
+        font-family: "Avenir-Medium";
+        margin-bottom: 10px;
+      }
+      .time {
+        // font-family: "Avenir-Roman";
+        font-family: "Avenir-Medium";
+        font-size: 14px;
+      }
+    }
+    img {
+      width: 16px;
+    }
+    .status {
+      width: 180px;
+      background: #f6f6f6;
+      color: #c4c4c4;
+      border-radius: 4px;
+      padding: 10px 0;
+    }
+    .lian {
+      width: 30px;
+      position: relative;
+    }
+    .line {
+      width: 2px;
+      height: 55px;
+      background: #e7e7e7;
+      position: absolute;
+      top: 16px;
+      left: 50%;
+      transform: translateX(-50%);
+    }
+  }
+  .outDiv2 {
+    display: flex;
+    // height: 70px;
+    padding-bottom: 20px;
+    position: relative;
+    img {
+      width: 16px;
+    }
+    .lian {
+      width: 30px;
+      // position: relative;
+      margin-left: 10px;
+    }
+    .line {
+      width: 1px;
+      // height: 75px;
+      height: calc(100% - 16px);
+      background: #e7e7e7;
+      position: absolute;
+      top: 16px;
+      left: 24px;
+      // left: 50%;
+      // transform: translateX(-50%);
+    }
+    .info {
+      text-align: left;
+      margin-left: 20px;
+      color: #999999;
+      width: calc(100% - 50px);
+    }
+    .datetime {
+      margin-bottom: 10px;
+      height: 18px;
+      line-height: 18px;
+      font-family: "Avenir-Medium";
+    }
+    .status {
+      font-size: 14px;
+      line-height: 20px;
+      font-family: "PingFang SC-Regular";
+    }
+  }
+
+  .outDiv3 {
+    text-align: left;
+    color: #999999;
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    .title {
+      span {
+        color: #fc7a73;
+      }
+    }
+    .drugList {
+      background: #ffffff;
+      box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+      border-radius: 4px;
+      margin-top: 20px;
+      font-size: 14px;
+      .listHead {
+        display: flex;
+        height: 60px;
+        border-bottom: 1px solid #e7e7e7;
+        align-items: center;
+        text-align: center;
+        font-size: 16px;
+      }
+      .listBody {
+        display: flex;
+        height: 60px;
+        border-bottom: 1px solid #e7e7e7;
+        align-items: center;
+        text-align: center;
+        // .name {
+        //   width: 50%;
+        //   color: #fc7a73;
+        // }
+        .name {
+          text-align: center;
+          width: 50%;
+          color: #000000;
+          display: flex;
+          justify-content: center;
+          height: 100%;
+          flex-direction: column;
+          height: 100%;
+          line-height: 22px;
+          padding: 0 10px;
+          position: relative;
+          // span:nth-child(1) {
+          //   color: #fc7a73;
+          // }
+        }
+        .name:nth-child(1) {
+          border-right: 1px solid #e7e7e7;
+        }
+        .drugIcon{
+          width: 20px;
+          position: absolute;
+          right: 3px;
+          top: 3px;
+        }
+        .address {
+          width: 50%;
+          color: #000000;
+        }
+        .jantou {
+          width: 10%;
+        }
+        img {
+          width: 18px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 188 - 0
src/views/relativeInfo.vue

@@ -0,0 +1,188 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:31:46
+ * @FilePath: \zyypt-ssb-vue_wechat\src\views\relativeInfo.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="title" v-if="relativeInfo.JLS == 0">您尚未添加亲属</div>
+      <div class="title" v-else>已添加亲属列表</div>
+      <van-cell-group inset v-if="relativeInfo.JLS != 0">
+        <van-cell
+          v-for="item in relativeInfo.MXXQ"
+          :key="item.id"
+          :title="item.QSXM"
+          :label="item.QSZJHM"
+          is-link
+          :to="'/?idcard=' + item.QSZJHM + '&name=' + item.QSXM"
+        >
+          <van-button
+            color="#8b614d"
+            plain
+            size="mini"
+            class="jiebang"
+            @click.stop="unbind(item.id)"
+            >解除绑定</van-button
+          >
+        </van-cell>
+        <!-- <van-cell title="张琳" label="120225199712142370" is-link>
+          <van-button
+            color="#8b614d"
+            plain
+            size="mini"
+            class="jiebang"
+            @click="unbind()"
+            >解除绑定</van-button
+          >
+        </van-cell> -->
+      </van-cell-group>
+      <div class="bottomInfo">
+        <div class="info" @click="toApply()">
+          <p>老人信息</p>
+          <p>(年满60周岁以上老人)</p>
+        </div>
+        <div class="info" @click="toApply()">
+          <p>子女信息</p>
+          <p>(未满18周岁子女)</p>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Dialog, Toast, Button, Icon, Cell, CellGroup } from "vant";
+// 全局注册
+Vue.use(Dialog).use(Toast).use(Button).use(Icon).use(Cell).use(CellGroup);
+import { removeCookies } from "@/utils/auth";
+import { setParamLog, getRelatives, UnbindRelatives } from "@/api/index";
+export default {
+  name: "RelativeInfo",
+  data() {
+    return {
+      relativeInfo: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      queryInfo: {},
+    };
+  },
+  created() {
+    removeCookies("relativeInfo");
+    this.queryInfo = this.$route.query;
+    this.getRelatives();
+  },
+  methods: {
+    getRelatives() {
+      setParamLog({ type: "wechat", service: "getRelatives" });
+      getRelatives({ type: "wechat", ZJHM: this.queryInfo.ZJHM }).then(
+        (res) => {
+          if (res.code == 0) {
+            this.relativeInfo = res.data;
+          }
+        }
+      );
+    },
+    //解除绑定
+    unbind(id) {
+      Dialog.confirm({
+        message: "确定要解绑当前亲属吗?",
+        confirmButtonColor: "#8b614d",
+        overlay: true,
+      })
+        .then(() => {
+          setParamLog({ type: "wechat", service: "UnbindRelatives" });
+          UnbindRelatives({ type: "wechat", id }).then((res) => {
+            if (res.code == 0) {
+              Toast.success("解绑成功");
+              this.getRelatives();
+            }
+          });
+        })
+        .catch(() => {});
+    },
+
+    toApply() {
+      this.$router.push({ name: "AddRelative", query: this.queryInfo });
+      // this.$router.push({ name: "ApplyNotice", query: this.queryInfo });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  padding: 10px 0px;
+  text-align: left;
+  font-family: "PingFang SC-Regular";
+  .title {
+    text-align: left;
+    font-family: "PingFang SC-Medium";
+    font-size: 18px;
+    margin: 20px 0 20px 15px;
+  }
+  .van-cell-group {
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+  }
+  .van-cell__title span {
+    font-size: 16px;
+  }
+  .van-cell__label {
+    // font-family: "Avenir-Roman";
+    font-family: "Avenir-Medium";
+    color: #999999;
+    font-size: 14px;
+  }
+  .jiebang {
+    position: absolute;
+    top: 50%;
+    transform: translateY(-50%);
+    right: 40px;
+    border-radius: 4px;
+    font-size: 14px;
+  }
+  .jiebang:hover {
+    background: #8b614d;
+    color: #fff !important;
+  }
+  .van-cell__right-icon {
+    position: absolute;
+    right: 20px;
+    top: 50%;
+    transform: translateY(-50%);
+    font-size: 20px;
+  }
+  .bottomInfo {
+    height: 75px;
+    display: flex;
+    text-align: center;
+    justify-content: center;
+    margin-top: 30px;
+    .info {
+      width: 150px;
+      background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+      border-radius: 4px;
+      height: 100%;
+      flex-direction: column;
+      display: flex;
+      justify-content: center;
+      color: #fff;
+      font-family: "PingFang SC-Medium";
+      p:nth-child(1) {
+        padding-bottom: 10px;
+        font-size: 18px;
+      }
+      p:nth-child(2) {
+        font-size: 12px;
+      }
+    }
+    .info:nth-child(1) {
+      margin-right: 20px;
+    }
+  }
+}
+</style>

+ 5 - 0
vue.config.js

@@ -0,0 +1,5 @@
+const { defineConfig } = require('@vue/cli-service')
+module.exports = defineConfig({
+  publicPath:'./',
+  transpileDependencies: true
+})