diff --git a/src/app.json b/src/app.json index d70cd73..1644d3c 100644 --- a/src/app.json +++ b/src/app.json @@ -26,13 +26,7 @@ "pages/vipLoginReject/index", "pages/startReject/index", "pages/startPending/index", - "pages/story/index", "pages/publishStoryDetail/index", - "pages/storyEnter/index", - "pages/storyEnterResult/index", - "pages/storyList/index", - "pages/storyGuide/index", - "pages/storyDetail/index", "pages/my/index", "pages/mySave/index", "pages/myLive/index", @@ -74,36 +68,16 @@ "pages/infusionCenter/index", "pages/nrdlTable/index", "pages/interactivePatient/index", - "pages/referral/index", "pages/qol/index", "pages/qolAdd/index", "pages/qolResult/index", - "pages/qolReport/index" + "pages/qolReport/index", + "pages/hormones/index" ] }, { "root": "gift", - "pages": [ - "pages/giftList/index", - "pages/conformOrder/index", - "pages/siteList/index", - "pages/siteEdit/index", - "pages/orderEnd/index", - "pages/orderDetail/index", - "pages/myGift/index", - "pages/priceDetail/index", - "pages/scoreRule/index", - "pages/dtpDurg/index", - "pages/vipCert/index", - "pages/vipReject/index", - "pages/vipPending/index", - "pages/vipStartPending/index", - "pages/myHealthRecord/index", - "pages/myHealthRecordChart/index", - "pages/cutaneous/index", - "pages/cutaneousDetail/index", - "pages/cutaneousVideo/index" - ] + "pages": ["pages/dtpDurg/index"] }, { "root": "doc", diff --git a/src/components/referralFrom/index.json b/src/components/referralFrom/index.json deleted file mode 100644 index 074f50b..0000000 --- a/src/components/referralFrom/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "van-popup": "@vant/weapp/popup/index" - } -} diff --git a/src/components/referralFrom/index.scss b/src/components/referralFrom/index.scss deleted file mode 100644 index 9561175..0000000 --- a/src/components/referralFrom/index.scss +++ /dev/null @@ -1,95 +0,0 @@ -.from { - padding: 48rpx 40rpx; - width: 650rpx; - box-sizing: border-box; - background: linear-gradient(349deg, #ffffff 0%, #e2f1f4 100%); - border-radius: 24rpx 24rpx 24rpx 24rpx; - border: 2rpx solid #ffffff; - .title { - font-size: 32rpx; - color: #283031; - font-weight: bold; - } - .date { - margin-top: 24rpx; - padding: 14rpx 32rpx; - display: flex; - align-items: center; - justify-content: space-between; - background-color: #f2f4f5; - border-radius: 16rpx; - - .conetent { - font-size: 32rpx; - color: #283031; - } - .tril { - width: 0; - height: 0; - border-style: solid; - border-width: 10rpx 10rpx 0 10rpx; - border-color: #aeb3b4 transparent transparent transparent; - } - } - .select-title { - margin-top: 48rpx; - font-size: 32rpx; - color: #283031; - font-weight: bold; - .sub { - font-weight: normal; - } - } - .list { - margin-top: 26rpx; - max-height: 55vh; - overflow-y: auto; - &::-webkit-scrollbar{ - display: none; - } - .item { - margin-bottom: 16rpx; - padding: 14rpx 32rpx; - font-size: 32rpx; - color: #283031; - line-height: 48rpx; - background-color: #f2f4f5; - border: 1px solid #f2f4f5; - border-radius: 16rpx; - &.active { - border-color: #67baca; - background-color: #e7f5f8; - color: #67baca; - } - } - } - .footer { - margin-top: 32rpx; - display: flex; - justify-content: space-between; - align-items: center; - gap: 26rpx; - text-align: center; - .cancel { - flex: 1; - height: 80rpx; - font-size: 36rpx; - color: #67BACA; - line-height: 80rpx; - background: #ffffff; - border-radius: 98rpx 98rpx 98rpx 98rpx; - border: 2rpx solid #67baca; - } - - .submit { - flex: 1; - height: 80rpx; - font-size: 36rpx; - color: #FFFFFF; - line-height: 80rpx; - background: #67baca; - border-radius: 98rpx 98rpx 98rpx 98rpx; - border: 2rpx solid #67baca; - } - } -} diff --git a/src/components/referralFrom/index.ts b/src/components/referralFrom/index.ts deleted file mode 100644 index 00306a2..0000000 --- a/src/components/referralFrom/index.ts +++ /dev/null @@ -1,139 +0,0 @@ -import dayjs from 'dayjs' - -const _app = getApp() - -// pages/story/a.ts -Component({ - /** - * 组件的属性列表 - */ - properties: { - show: { - type: Boolean, - value: false, - }, - params: { - type: Object, - value: undefined, - }, - }, - - observers: { - show() { - if (this.data.params) { - this.setData({ - ...this.data.params, - }) - this.handleDateChange() - } else { - this.setData({ - visitDateName: '', - visitDate: '', - hormone: 2, - traditionalInhibitor: 2, - gammaGlobulin: 2, - plasmaExchange: 2, - bCellInhibitor: 2, - fcRnAntagonists: 2, - c5ComplementInhibitor: 2, - chineseMedicine: 2, - other: 2, - recordId: '', - }) - } - }, - }, - data: { - currentDate: dayjs().format('YYYY-MM-DD'), - - visitDateName: '', - visitDate: '', - hormone: 2, - traditionalInhibitor: 2, - gammaGlobulin: 2, - plasmaExchange: 2, - bCellInhibitor: 2, - fcRnAntagonists: 2, - c5ComplementInhibitor: 2, - chineseMedicine: 2, - other: 2, - recordId: '', - }, - - methods: { - handleDateChange() { - this.setData({ - visitDateName: dayjs(this.data.visitDate).format('YYYY年MM月DD日'), - }) - }, - handleSelect(e) { - const { name } = e.currentTarget.dataset - const value = this.data[name] - this.setData({ - [name]: value === 2 ? 1 : 2, - }) - }, - submit() { - const { visitDate, recordId } = this.data - const params = { - visitDate, - recordId, - } - if(!visitDate){ - wx.showToast({ - title: '请选择复诊日期', - icon: 'none', - }) - return - } - const selectKeys = [ - 'hormone', - 'traditionalInhibitor', - 'gammaGlobulin', - 'plasmaExchange', - 'bCellInhibitor', - 'fcRnAntagonists', - 'c5ComplementInhibitor', - 'chineseMedicine', - 'other', - ] - selectKeys.forEach((item) => { - params[item] = this.data[item] - }) - const onlySelect = selectKeys.some((item) => { - return this.data[item] === 1 - }) - if (!onlySelect) { - wx.showToast({ - title: '请至少选择一种复诊后的方案', - icon: 'none', - }) - return - } - wx.ajax({ - method: 'POST', - url: '?r=xd/re-visit/save-record', - data: params, - }).then(() => { - if (recordId) { - wx.showToast({ - icon: 'none', - title: '编辑成功', - }) - } else { - wx.showToast({ - icon: 'none', - title: '添加成功', - }) - } - this.handleCancel() - this.triggerEvent('refresh', params) - }) - }, - handleCancel() { - this.setData({ - show: false, - }) - }, - }, -}) diff --git a/src/components/referralFrom/index.wxml b/src/components/referralFrom/index.wxml deleted file mode 100644 index 0bc0b42..0000000 --- a/src/components/referralFrom/index.wxml +++ /dev/null @@ -1,52 +0,0 @@ - - - 您上一次复诊时间? - - - {{visitDateName||'请选择'}} - - - - - 您复诊后的方案是? - (多选) - - - 1.激素 - - 2.传统免疫抑制剂(如他克莫司、吗 替麦考酚酯等) - - - 3.静脉输注丙种球蛋白 - - - 4.血浆置换 - - - 5.B细胞抑制剂(如:利妥昔单抗、泰 它西普、伊奈利珠单抗) - - - 6.FcRn拮抗剂(如:艾加莫德) - - - 7.C5补体抑制剂(如:依库珠单抗) - - - 8.中药或中成药 - - 9.其他 - - - 取消 - 确定 - - - diff --git a/src/gift/pages/conformOrder/index.json b/src/gift/pages/conformOrder/index.json deleted file mode 100644 index c5a284a..0000000 --- a/src/gift/pages/conformOrder/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "navigationBarTitleText": "确认订单", - "usingComponents": { - "van-icon": "@vant/weapp/icon/index" - } -} diff --git a/src/gift/pages/conformOrder/index.scss b/src/gift/pages/conformOrder/index.scss deleted file mode 100644 index 1e642e3..0000000 --- a/src/gift/pages/conformOrder/index.scss +++ /dev/null @@ -1,184 +0,0 @@ -.page { - padding: 34rpx 40rpx; - .site { - padding: 40rpx 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - display: flex; - align-items: center; - justify-content: space-between; - .wrap { - .title { - .label { - width: 72rpx; - height: 36rpx; - border: 1rpx solid #e04775; - font-size: 24rpx; - color: #e04775; - text-align: center; - border-radius: 10rpx; - box-sizing: border-box; - } - .name { - margin-top: -42rpx; - text-indent: 80rpx; - font-size: 36rpx; - line-height: 46rpx; - color: #3f3f3f; - font-weight: bold; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - &.no-indent { - margin-top: 0; - text-indent: 0; - } - } - } - .content { - margin-top: 0; - margin-top: 12rpx; - font-size: 28rpx; - color: #b6b7ba; - } - } - .more { - flex-shrink: 0; - } - } - .shop { - margin-top: 16px; - padding: 40rpx 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - .shop-header { - padding-bottom: 10px; - display: flex; - .shop-img { - flex-shrink: 0; - width: 204rpx; - height: 204rpx; - border-radius: 24rpx; - } - .wrap { - padding-top: 8rpx; - flex: 1; - padding-left: 24rpx; - .name { - font-size: 32rpx; - font-weight: bold; - color: #3f3f3f; - line-height: 44rpx; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - } - .specification { - margin-top: 8rpx; - font-size: 28rpx; - color: #b6b7ba; - } - .price { - margin-top: 14rpx; - display: flex; - align-items: center; - justify-content: space-between; - .num { - font-size: 32rpx; - color: #3f3f3f; - } - .sub { - font-size: 22rpx; - } - .val { - font-size: 28rpx; - color: #b6b7ba; - } - } - } - } - .row { - margin-top: 32rpx; - display: flex; - align-items: center; - justify-content: space-between; - .label { - font-size: 32rpx; - color: #3f3f3f; - } - .content { - font-size: 32rpx; - color: #3f3f3f; - &.yellow { - color: #e04775; - } - .sub { - font-size: 22rpx; - } - } - } - } - .remark { - margin-top: 16px; - padding: 40rpx 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - .title { - font-size: 32rpx; - color: #3f3f3f; - font-weight: bold; - } - .textarea { - margin-top: 10rpx; - padding: 24rpx 32rpx; - background-color: #fafafa; - min-height: 196rpx; - border-radius: 16rpx; - box-sizing: border-box; - } - } - .footer { - padding: 24rpx 48rpx 48rpx; - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - box-sizing: border-box; - display: flex; - justify-content: space-between; - align-items: center; - height: 168rpx; - background: #ffffff; - box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.26); - .price { - font-size: 28rpx; - color: #b6b7ba; - .num { - font-size: 40rpx; - color: #e04775; - } - .sub { - font-size: 24rpx; - } - } - .submit { - width: 260rpx; - height: 96rpx; - background: #e04775; - border-radius: 48rpx; - text-align: center; - line-height: 96rpx; - color: #fff; - font-weight: bold; - } - } -} diff --git a/src/gift/pages/conformOrder/index.ts b/src/gift/pages/conformOrder/index.ts deleted file mode 100644 index 22db5bf..0000000 --- a/src/gift/pages/conformOrder/index.ts +++ /dev/null @@ -1,86 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {}, - select: false, - addressDetail: {} as any, - remark: "", - }, - onLoad(options) { - this.setData({ - id: options.id, - }); - }, - onShow() { - app.waitLogin().then(() => { - this.getDetail(); - if (!this.data.select) { - this.getDefaultAddress(); - } else { - this.setData({ - select: false, - }); - } - }); - }, - getDefaultAddress() { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-address/get-default-address", - data: {}, - }).then((res) => { - this.setData({ - addressDetail: res, - }); - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/gift-order/get-order-detail", - data: { - orderId: this.data.id, - }, - }).then((res) => { - this.setData({ - detail: res, - }); - }); - }, - handleSite() { - if (this.data.addressDetail) { - wx.navigateTo({ - url: "/gift/pages/siteList/index", - }); - } else { - wx.navigateTo({ - url: "/gift/pages/siteEdit/index", - }); - } - }, - handleSubmit() { - if (!this.data.addressDetail?.addressId) { - wx.showToast({ - icon: "none", - title: "请选择地址", - }); - return; - } - wx.ajax({ - method: "POST", - url: "?r=zd/gift-order/confirm-order", - data: { - orderId: this.data.id, - addressId: this.data.addressDetail.addressId, - remark: this.data.remark, - }, - loading: true, - }).then(() => { - wx.reLaunch({ - url: `/gift/pages/orderEnd/index?id=${this.data.id}`, - }); - }); - }, -}); diff --git a/src/gift/pages/conformOrder/index.wxml b/src/gift/pages/conformOrder/index.wxml deleted file mode 100644 index 6d4952f..0000000 --- a/src/gift/pages/conformOrder/index.wxml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - 默认 - - {{addressDetail.provinceName}}{{addressDetail.cityName}}{{addressDetail.countyName}}{{addressDetail.address}} - - - {{addressDetail.receiveUserName}} {{addressDetail.receiveTelephone}} - - 请添加收货地址 - - - - - - - - {{detail.giftName}} - 规格:{{detail.specName}} - - {{detail.giftScore}}能量 - x{{detail.orderCount}} - - - - - 礼品总价 - {{detail.orderScore}}能量 - - - 配送方式 - 快递配送 - - - 商家电话 - {{detail.serviceTel}} - - - - 留言 - - - - - 共{{detail.orderCount}}件 - - 合计消耗 - {{detail.orderScore}}能量 - - - 提交订单 - - diff --git a/src/gift/pages/cutaneous/index.json b/src/gift/pages/cutaneous/index.json deleted file mode 100644 index bdfcf9b..0000000 --- a/src/gift/pages/cutaneous/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "皮下剂型", - "usingComponents": {} -} diff --git a/src/gift/pages/cutaneous/index.scss b/src/gift/pages/cutaneous/index.scss deleted file mode 100644 index 87f7f8f..0000000 --- a/src/gift/pages/cutaneous/index.scss +++ /dev/null @@ -1,63 +0,0 @@ -page { - background-color: #f7f6f7; -} -.page { - .page1 { - height: 869rpx; - } - .page2 { - position: relative; - height: 630rpx; - .mg-video { - position: absolute; - top: 290rpx; - right: 60rpx; - width: 600rpx; - height: 288rpx; - } - } - .page3 { - position: relative; - height: 782rpx; - .cidp-mask { - position: absolute; - top: 174rpx; - right: 30rpx; - z-index: 1; - width: 74rpx; - height: 304rpx; - } - .cidp-list { - position: absolute; - top: 184rpx; - right: 30rpx; - width: 632rpx; - height: 288rpx; - overflow-x: auto; - overflow-y: hidden; - display: flex; - gap: 16rpx; - .cidp-item { - flex-shrink: 0; - width: 216rpx; - height: 288rpx; - } - } - } - .page4 { - height: 302rpx; - } - .page5 { - height: 306rpx; - } - .page6 { - display: block; - width: 100%; - height: 574rpx; - } -} - -#video { - width: 0; - height: 0; -} diff --git a/src/gift/pages/cutaneous/index.ts b/src/gift/pages/cutaneous/index.ts deleted file mode 100644 index 5445b23..0000000 --- a/src/gift/pages/cutaneous/index.ts +++ /dev/null @@ -1,65 +0,0 @@ -const _app = getApp() - -Page({ - data: { - mg: [ - { - url: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241129469_MG%E4%B8%93%E5%8C%BA%E8%A7%86%E9%A2%9101.mp4', - }, - ], - cidp: [ - { - url: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241129233_CIDP%E4%B8%93%E5%8C%BA%E8%A7%86%E9%A2%9101.mp4', - }, - { - url: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241129667_CIDP%E4%B8%93%E5%8C%BA%E8%A7%86%E9%A2%9103.mp4', - }, - { - url: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241129630_CIDP%E8%A7%86%E9%A2%91%E4%B8%93%E5%8C%BA02.mp4', - }, - { - url: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241129281_CIDP%E4%B8%93%E5%8C%BA%E8%A7%86%E9%A2%9104.mp4', - }, - ], - }, - videoContext: null as WechatMiniprogram.VideoContext | null, - onLoad() { - this.videoContext = wx.createVideoContext('video') - }, - onUnload() { - if (this.videoContext) { - this.videoContext.stop() - } - }, - handleVideo(e: any) { - const { key, index } = e.currentTarget.dataset - const url = this.data[key][index].url - if (this.videoContext) { - this.setData({ - videoUrl: url, - }) - this.videoContext.play() - this.videoContext.requestFullScreen({ - direction: 0, - }) - } - }, - handleFullScreen(e) { - if (!e.detail.fullScreen && this.videoContext) { - this.videoContext.stop() - } - }, - handleDetail(e: any) { - const { id } = e.currentTarget.dataset - wx.navigateTo({ - url: `/gift/pages/cutaneousDetail/index?id=${id}`, - }) - }, - handleVideoDetail() { - wx.navigateTo({ - url: `/gift/pages/cutaneousVideo/index`, - }) - }, -}) - -export {} diff --git a/src/gift/pages/cutaneous/index.wxml b/src/gift/pages/cutaneous/index.wxml deleted file mode 100644 index 909588e..0000000 --- a/src/gift/pages/cutaneous/index.wxml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/gift/pages/cutaneousDetail/index.json b/src/gift/pages/cutaneousDetail/index.json deleted file mode 100644 index bdfcf9b..0000000 --- a/src/gift/pages/cutaneousDetail/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "皮下剂型", - "usingComponents": {} -} diff --git a/src/gift/pages/cutaneousDetail/index.scss b/src/gift/pages/cutaneousDetail/index.scss deleted file mode 100644 index 7b383ce..0000000 --- a/src/gift/pages/cutaneousDetail/index.scss +++ /dev/null @@ -1,11 +0,0 @@ -.page { - .card { - width: 100%; - display: block; - } -} - -#video { - width: 0; - height: 0; -} diff --git a/src/gift/pages/cutaneousDetail/index.ts b/src/gift/pages/cutaneousDetail/index.ts deleted file mode 100644 index a0e9476..0000000 --- a/src/gift/pages/cutaneousDetail/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -const _app = getApp() - -Page({ - data: { - list: { - 2: ['2-1', '2-2', '2-3', '2-4'], - 3: ['3-1', '3-2', '3-3', '3-4', '3-5'], - 4: ['4-1', '4-2'], - 5: ['5-1', '5-2', '5-3', '5-4', '5-5'], - }, - curentList: [] as any, - }, - onLoad(e) { - if (e.id) { - this.setData({ - curentList: this.data.list[e.id], - }) - } else { - this.setData({ - curentList: this.data.list[2], - }) - } - }, -}) - -export {} diff --git a/src/gift/pages/cutaneousDetail/index.wxml b/src/gift/pages/cutaneousDetail/index.wxml deleted file mode 100644 index c865fbb..0000000 --- a/src/gift/pages/cutaneousDetail/index.wxml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/src/gift/pages/cutaneousVideo/index.json b/src/gift/pages/cutaneousVideo/index.json deleted file mode 100644 index bdfcf9b..0000000 --- a/src/gift/pages/cutaneousVideo/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "皮下剂型", - "usingComponents": {} -} diff --git a/src/gift/pages/cutaneousVideo/index.scss b/src/gift/pages/cutaneousVideo/index.scss deleted file mode 100644 index 8a0dcb2..0000000 --- a/src/gift/pages/cutaneousVideo/index.scss +++ /dev/null @@ -1,36 +0,0 @@ -page { - background: linear-gradient(218deg, #e8bbe7 0%, #ffedf6 26%, #ffedf6 100%); -} -.page { - padding: 408rpx 40rpx 0; - .container { - padding: 40rpx 32rpx 42rpx; - background-color: #fff; - border-radius: 32rpx; - .content { - font-size: 32rpx; - line-height: 2; - color: #002b48; - } - .tip { - margin-top: 28rpx; - font-size: 32rpx; - color: rgba(87,87,87,0.5); - } - } - .btn { - margin-top: 42rpx; - height: 92rpx; - font-size: 32rpx; - color: #FFFFFF; - display: flex; - align-items: center; - justify-content: center; - background: linear-gradient(90deg, #dd406a 0%, #9039b0 100%); - border-radius: 112rpx 112rpx 112rpx 112rpx; - } -} -#video { - width: 0; - height: 0; -} diff --git a/src/gift/pages/cutaneousVideo/index.ts b/src/gift/pages/cutaneousVideo/index.ts deleted file mode 100644 index 5c5cf14..0000000 --- a/src/gift/pages/cutaneousVideo/index.ts +++ /dev/null @@ -1,29 +0,0 @@ -Page({ - data: { - videoUrl: 'https://circlehbsaas.oss-cn-beijing.aliyuncs.com/video/20241214185_1.mp4', - }, - videoContext: null as WechatMiniprogram.VideoContext | null, - onLoad() { - this.videoContext = wx.createVideoContext('video') - }, - onUnload() { - if (this.videoContext) { - this.videoContext.stop() - } - }, - handleVideo() { - if (this.videoContext) { - this.videoContext.play() - this.videoContext.requestFullScreen({ - direction: 0, - }) - } - }, - handleFullScreen(e) { - if (!e.detail.fullScreen && this.videoContext) { - this.videoContext.stop() - } - }, -}) - -export {} diff --git a/src/gift/pages/cutaneousVideo/index.wxml b/src/gift/pages/cutaneousVideo/index.wxml deleted file mode 100644 index 709760d..0000000 --- a/src/gift/pages/cutaneousVideo/index.wxml +++ /dev/null @@ -1,16 +0,0 @@ - - - - 本视频仅用于专业医护人员或艾加莫德a注射液(皮下注射)已处方患者(或其护理者)在接受充分的皮下注射技术培训后自行注射艾加莫德a注射液(皮下注射); - 本指导视频并不构成专业医疗建议、诊断或治疗的依据,请按照说明书并遵医嘱使用,切勿仅依赖本视频内容。 - - *在观看视频前请阅读声明并确认您的身份 - - 我是专业医护人员 - 我是卫力迦已处方患者(或其护理者) - - - diff --git a/src/gift/pages/giftDetail/index.json b/src/gift/pages/giftDetail/index.json deleted file mode 100644 index 9878515..0000000 --- a/src/gift/pages/giftDetail/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "navigationBarTitleText": "礼品详情", - "usingComponents": { - "van-stepper": "@vant/weapp/stepper/index", - "toast": "/components/toast/index" - } -} diff --git a/src/gift/pages/giftDetail/index.scss b/src/gift/pages/giftDetail/index.scss deleted file mode 100644 index 92b39db..0000000 --- a/src/gift/pages/giftDetail/index.scss +++ /dev/null @@ -1,185 +0,0 @@ -.page { - background-color: #f9f9f9; - padding-bottom: 400rpx; - .banner { - width: 100%; - .banner-img { - display: block; - width: 100%; - height: 562rpx; - } - } - .container { - padding: 30rpx 40rpx; - .price { - display: flex; - align-items: baseline; - .num { - font-size: 56rpx; - color: #e04775; - font-weight: bold; - } - .sub { - font-size: 32rpx; - color: #e04775; - } - } - .title { - margin-top: 22rpx; - font-size: 36rpx; - color: #3f3f3f; - line-height: 48rpx; - font-weight: bold; - } - .list { - margin-top: 24rpx; - padding: 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - .list-title { - padding-bottom: 16rpx; - position: relative; - font-size: 36rpx; - color: #3f3f3f; - font-weight: bold; - &::before { - content: ""; - position: absolute; - top: 0; - left: -32rpx; - width: 12rpx; - height: 44rpx; - background: #e04775; - border-radius: 0rpx 8rpx 8rpx 0rpx; - } - } - .list-img { - display: block; - width: 100%; - } - } - } - .footer { - padding: 30rpx 40rpx 40rpx; - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - box-sizing: border-box; - background: #ffffff; - box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.26); - .options { - padding-bottom: 25rpx; - .row { - display: flex; - align-items: center; - .label { - margin-right: 24rpx; - flex-shrink: 0; - font-size: 32rpx; - color: #b6b7ba; - } - .radios { - display: flex; - overflow: auto; - &::-webkit-scrollbar { - display: none; - } - .radio { - margin-right: 16rpx; - border-radius: 8rpx; - border: 1px solid #d0d0d0; - line-height: 40rpx; - padding: 0 20rpx; - font-size: 28rpx; - color: #aaaaaa; - white-space: nowrap; - &.active { - background-color: #e04775; - border-color: #e04775; - color: #fff; - } - } - } - .stepper { - display: flex; - align-items: center; - .custom-class { - border: 1px solid #e5e5e5; - border-radius: 8rpx; - } - .input-class { - color: #3f3f3f; - font-weight: bold; - background-color: #ffffff; - margin: 0; - } - .plus-class, - .minus-class { - margin: 0; - background-color: #f8f8f8; - } - .minus-class { - border-right: 1px solid #d7d7d7; - } - .plus-class { - border-left: 1px solid #d7d7d7; - } - .status { - margin-left: 8rpx; - font-size: 32rpx; - color: #e1e1e1; - } - } - } - .row:not(:first-of-type) { - margin-top: 24rpx; - } - } - .module { - border-top: 1px solid #f2f2f2; - padding-top: 25rpx; - display: flex; - align-items: center; - justify-content: space-between; - .wrap { - .price { - display: flex; - align-items: baseline; - .sub { - font-size: 28rpx; - color: #e04775; - } - .num { - font-size: 40rpx; - color: #e04775; - font-weight: bold; - } - } - .doc { - display: flex; - align-items: center; - font-size: 24rpx; - color: #999999; - .checkbox { - transform: scale(0.7); - } - .a { - color: #e04775; - } - } - } - .submit { - width: 298rpx; - height: 96rpx; - background: #e04775; - border-radius: 48rpx; - font-size: 36rpx; - color: #ffffff; - line-height: 96rpx; - text-align: center; - } - } - } -} diff --git a/src/gift/pages/giftDetail/index.ts b/src/gift/pages/giftDetail/index.ts deleted file mode 100644 index e128e9d..0000000 --- a/src/gift/pages/giftDetail/index.ts +++ /dev/null @@ -1,150 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {}, - specVecItem: {} as any, - num: 1, - allPrice: "", - - toastShow: false, - toastType: "giftEnter", - - toastParams: { - doc: "", - }, - protocol: false, - }, - onLoad(options) { - this.setData({ - id: options.id, - toastParams: { - doc: `

为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。

gMG给力加油站的礼品库将提供:

1) 查看用户在能量商城选择兑换的商品信息;

2) 为让用户更好的享受再鼎gMG给力加油站的服务,gMG给力加油站平台向用户提供了能量兑换服务,并提供了丰富的礼品,平台注册用户可使用有效的能量兑换礼品。

gMG给力加油站的礼品库将提供:

1) 查看用户在能量商城选择兑换的商品信息;

2) 确认兑换商品的订单信 ... (very long line, trimmed to 1000 chars) - }, - }); - app.waitLogin().then(() => { - this.setView(); - this.getDetail(); - this.getProtocol(); - }); - }, - setView() { - wx.ajax({ - method: "POST", - url: "?r=zd/gift-spu/set-visit-num", - data: { spuId: this.data.id }, - showMsg: false, - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/gift-spu/get-detail", - data: { - spuId: this.data.id, - }, - }).then((res) => { - this.setData({ - detail: { - ...res, - detailList: JSON.parse(res.detail), - }, - specVecItem: res.specVec[0], - allPrice: res.specVec[0].score, - num: res.specVec[0].stock >= 1 ? 1 : 0, - }); - }); - }, - getProtocol() { - wx.ajax({ - method: "GET", - url: "?r=zd/agreement/get-user-agreement", - data: {}, - }).then((res) => { - this.setData({ - protocol: res, - }); - }); - }, - setProtocol() { - wx.ajax({ - method: "POST", - url: "?r=zd/agreement/set-user-agreement", - data: {}, - }); - }, - handleSpec(e: any) { - const { index } = e.currentTarget.dataset; - const specVecItem: any = this.data.detail.specVec[index]; - console.log(specVecItem.stock>=1) - this.setData({ - specVecItem: specVecItem, - allPrice: specVecItem.score, - num: specVecItem.stock >= 1 ? 1 : 0, - }); - }, - onChangeNumber(e: any) { - this.setData({ - num: e.detail, - allPrice: this.data.specVecItem.score * e.detail, - }); - }, - handleDoc() { - this.setData({ - toastShow: true, - toastType: "giftEnter", - }); - }, - handleToastOk(e) { - if (!e.detail.protocol) { - wx.showToast({ - title: "请先勾选《用户须知》", - icon: "none", - }); - return; - } - this.setProtocol(); - this.setData({ - protocol: e.detail.protocol, - }); - this.handleToastCancel(); - }, - handleToastCancel() { - this.setData({ - toastShow: false, - toastType: "", - }); - }, - handleProtocol() { - if (!this.data.protocol) { - this.setProtocol(); - } - this.setData({ - protocol: !this.data.protocol, - }); - }, - handleSubmit() { - if (!this.data.protocol) { - wx.showToast({ - icon: "none", - title: "请先同意《用户须知》", - }); - return; - } - wx.ajax({ - method: "POST", - url: "?r=zd/gift-order/place-order", - data: { - giftId: this.data.specVecItem.giftId, - count: this.data.num, - }, - loading: true, - }).then((res) => { - wx.navigateTo({ - url: `/gift/pages/conformOrder/index?id=${res}`, - }); - }); - }, -}); diff --git a/src/gift/pages/giftDetail/index.wxml b/src/gift/pages/giftDetail/index.wxml deleted file mode 100644 index 9aa4114..0000000 --- a/src/gift/pages/giftDetail/index.wxml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - {{specVecItem.score}} - 能量 - - {{detail.giftName}} - - 礼品详情 - - - - - - - - 规格 - - - {{item.specName }} - - - - - 数量 - - - 有库存 - 无库存 - - - - - - - - 合计 -   - - {{allPrice}} - - - - 已阅读 - 《用户须知》 - - - 立即兑换 - - - - - diff --git a/src/gift/pages/giftList/index.json b/src/gift/pages/giftList/index.json deleted file mode 100644 index 308680b..0000000 --- a/src/gift/pages/giftList/index.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "navigationBarTitleText": "礼品中心", - "navigationStyle": "custom", - "usingComponents": { - "van-icon": "@vant/weapp/icon/index", - "navBar": "/components/zd-navBar/navBar" - } -} diff --git a/src/gift/pages/giftList/index.scss b/src/gift/pages/giftList/index.scss deleted file mode 100644 index 33644fe..0000000 --- a/src/gift/pages/giftList/index.scss +++ /dev/null @@ -1,185 +0,0 @@ -page { - background-color: #f9f9f9; -} -.page { - .bg { - width: 100%; - height: 902rpx; - } - .page-container { - position: absolute; - left: 0; - top: 0; - width: 100%; - padding: 0 40rpx; - box-sizing: border-box; - padding-bottom: 200rpx; - .notice { - height: 44rpx; - background: linear-gradient(90deg, rgba(241, 241, 241, 0) 0%, #f1f1f1 52%, rgba(241, 241, 241, 0) 100%); - border-radius: 16rpx; - display: flex; - align-items: center; - justify-content: center; - font-size: 24rpx; - color: #3f3f3f; - .icon { - margin-right: 5rpx; - width: 30rpx; - height: 24rpx; - } - } - .banner { - margin-top: 16rpx; - background: #fafafa; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - border: 2rpx solid rgba(151, 151, 151, 0.14); - .banner-header { - padding: 32rpx 0 32rpx 32rpx; - display: flex; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - border-bottom: 2rpx solid rgba(151, 151, 151, 0.14); - display: flex; - .user { - width: 106rpx; - height: 106rpx; - border-radius: 50%; - } - .wrap { - flex: 1; - padding: 0 150rpx 0 22rpx; - .title { - font-size: 24rpx; - color: #3f3f3f; - } - .price { - font-size: 48rpx; - color: #3f3f3f; - font-weight: bold; - } - } - .rule { - font-size: 24rpx; - color: #ffffff; - width: 136rpx; - height: 44rpx; - background: #f5ab1f; - border-radius: 24rpx 0 0 24rpx; - text-align: center; - line-height: 44rpx; - font-weight: bold; - } - } - .banner-footer { - padding: 20rpx 0 28rpx; - display: flex; - justify-content: space-between; - align-items: center; - .ver-line { - width: 2rpx; - height: 40rpx; - background-color: rgba(221, 221, 221, 0.6); - } - .option { - flex: 1; - display: flex; - justify-content: center; - align-items: center; - font-size: 28rpx; - color: #484848; - font-weight: bold; - .icon { - margin-right: 22rpx; - width: 50rpx; - height: 50rpx; - } - } - } - } - .list { - margin-top: 48rpx; - .list-title { - margin-bottom: 20rpx; - width: 180rpx; - height: 40rpx; - } - .list-cate { - padding: 20rpx 0; - display: flex; - flex-wrap: nowrap; - max-width: 100vw; - box-sizing: border-box; - overflow-x: auto; - &::-webkit-scrollbar { - display: none; - } - .cate { - margin-right: 20rpx; - padding: 10rpx 24rpx; - white-space: nowrap; - line-height: 1; - font-size: 28rpx; - color: #484848; - background-color: #f2f2f2; - border-radius: 24rpx; - &.active { - color: #fff; - background-color: #e04775; - } - } - } - .list-container { - display: flex; - flex-wrap: wrap; - gap: 16rpx 22rpx; - .list-item { - margin-bottom: 16rpx; - width: 324rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - .photo { - border-radius: 24rpx 24rpx 0 0; - width: 100%; - height: 324rpx; - } - .content { - padding: 18rpx 20rpx 22rpx; - .title { - margin-top: 18rpx; - font-size: 32rpx; - color: #484848; - font-weight: bold; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - .footer { - margin-top: 6rpx; - display: flex; - justify-content: space-between; - .price { - font-size: 28rpx; - color: #e04775; - } - .btn { - width: 100rpx; - height: 44rpx; - text-align: center; - line-height: 44rpx; - font-size: 24rpx; - color: #ffffff; - background: #e04775; - border-radius: 24rpx; - font-weight: bold; - } - } - } - } - } - } - } -} diff --git a/src/gift/pages/giftList/index.ts b/src/gift/pages/giftList/index.ts deleted file mode 100644 index 6ed7bb9..0000000 --- a/src/gift/pages/giftList/index.ts +++ /dev/null @@ -1,114 +0,0 @@ -const app = getApp(); - -Page({ - data: { - bottom: 0, - selfScore: { - expire: {}, - }, - cateList: [], - - cateId: "", - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }, - onLoad() { - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom: bottom, - }); - } - app.waitLogin().then(() => { - app.getZdUserInfo(this, true); - this.getScore(); - this.getList(); - this.getCateList(); - }); - }, - getScore() { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-score/get-self-score", - data: {}, - }).then((res) => { - this.setData({ - selfScore: res, - }); - }); - }, - getCateList() { - wx.ajax({ - method: "GET", - url: "?r=zd/gift-spu/get-cate-all-list", - data: {}, - }).then((res) => { - this.setData({ - cateList: res, - }); - }); - }, - handleCate(e) { - const { id } = e.currentTarget.dataset; - this.setData({ - cateId: id, - }); - this.getList(); - }, - getList(newPage = 1) { - wx.ajax({ - method: "POST", - url: `?r=zd/gift-spu/get-list&page=${newPage}`, - data: { - cateId: this.data.cateId ? [this.data.cateId] : [], - }, - }).then((res) => { - let list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list: list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - handlePirceDetail() { - wx.navigateTo({ - url: "/gift/pages/priceDetail/index", - }); - }, - handleMyGift() { - wx.navigateTo({ - url: "/gift/pages/myGift/index", - }); - }, - handleDetail(e) { - const { id } = e.currentTarget.dataset; - wx.navigateTo({ - url: `/gift/pages/giftDetail/index?id=${id}`, - }); - }, - handleRule() { - wx.navigateTo({ - url: `/gift/pages/scoreRule/index`, - }); - }, - handleBack() { - wx.reLaunch({ - url: "/patient/pages/my/index", - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, -}); diff --git a/src/gift/pages/giftList/index.wxml b/src/gift/pages/giftList/index.wxml deleted file mode 100644 index c9fbf3f..0000000 --- a/src/gift/pages/giftList/index.wxml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - 你有{{selfScore.expire.expireScore}}能量将于7月1日过期 - - - - - - 全部 - {{item.cateName}} - - - - - - {{item.giftName}} - - {{item.lowestScore}}能量 - 兑换 - - - - - - - - diff --git a/src/gift/pages/myGift/index.json b/src/gift/pages/myGift/index.json deleted file mode 100644 index 846846e..0000000 --- a/src/gift/pages/myGift/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "我的礼品", - "usingComponents": {} -} diff --git a/src/gift/pages/myGift/index.scss b/src/gift/pages/myGift/index.scss deleted file mode 100644 index e31f984..0000000 --- a/src/gift/pages/myGift/index.scss +++ /dev/null @@ -1,110 +0,0 @@ -page { - background-color: #f7f7f7; -} -.page { - padding: 32rpx 40rpx; - .card { - margin-bottom: 16rpx; - padding: 32rpx; - background: #ffffff; - border-radius: 24rpx; - .header { - display: flex; - justify-content: space-between; - align-items: center; - padding-bottom: 32rpx; - border-bottom: 1px solid #ebebeb; - .on { - font-size: 28rpx; - color: #bbbcbe; - } - .status { - font-size: 28rpx; - color: #e04775; - } - .suc { - color: #24d8c8; - } - } - .shop { - padding: 32rpx 0; - display: flex; - align-items: center; - .shop-img { - flex-shrink: 0; - width: 200rpx; - height: 200rpx; - border-radius: 24rpx; - } - .wrap { - flex: 1; - padding-left: 24rpx; - .name { - font-size: 32rpx; - font-weight: bold; - color: #3f3f3f; - line-height: 44rpx; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - } - .specification { - display: inline-block; - margin-top: 8rpx; - font-size: 28rpx; - color: #b6b7ba; - border-radius: 10rpx; - } - .price { - margin-top: 14rpx; - display: flex; - align-items: center; - justify-content: space-between; - .num { - font-size: 32rpx; - color: #e04775; - font-weight: bold; - .sub { - font-size: 22rpx; - } - } - .val { - font-size: 28rpx; - color: #b6b7ba; - } - } - } - } - .footer { - border-top: 1px solid #ebebeb; - padding-top: 32rpx; - display: flex; - align-items: center; - justify-content: space-between; - .content { - font-size: 28rpx; - color: #bbbcbe; - display: flex; - align-items: baseline; - .num { - font-size: 42rpx; - color: #e04775; - font-weight: bold; - } - } - .btn { - width: 152rpx; - height: 52rpx; - border-radius: 8rpx; - border: 1rpx solid rgba(158, 158, 158, 0.42); - font-size: 28rpx; - color: #3f3f3f; - text-align: center; - line-height: 52rpx; - } - } - } -} diff --git a/src/gift/pages/myGift/index.ts b/src/gift/pages/myGift/index.ts deleted file mode 100644 index 36a82f7..0000000 --- a/src/gift/pages/myGift/index.ts +++ /dev/null @@ -1,48 +0,0 @@ -const app = getApp(); - -Page({ - data: { - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }, - onLoad() { - app.waitLogin().then(() => { - this.getList(); - }); - }, - getList(newPage = 1) { - wx.ajax({ - method: "POST", - url: "?r=zd/gift-order/get-order-list", - data: { - page: newPage, - }, - }).then((res) => { - let list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list: list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - handleDetail(e: any) { - const { id } = e.currentTarget.dataset; - wx.navigateTo({ - url: `/gift/pages/orderDetail/index?id=${id}`, - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, -}); diff --git a/src/gift/pages/myGift/index.wxml b/src/gift/pages/myGift/index.wxml deleted file mode 100644 index 5d97dba..0000000 --- a/src/gift/pages/myGift/index.wxml +++ /dev/null @@ -1,28 +0,0 @@ - - - - 订单号:{{item.orderNo}} - {{item.statusName}} - {{item.statusName}} - - - - - {{item.giftName}} - 规格:{{item.specName}} - - {{item.giftScore}}能量 - x{{item.orderCount}} - - - - - - 共{{item.orderCount}}件 消耗能量: - {{item.orderScore}} - - 查看物流 - - - - diff --git a/src/gift/pages/myHealthRecord/index.json b/src/gift/pages/myHealthRecord/index.json deleted file mode 100644 index 2408841..0000000 --- a/src/gift/pages/myHealthRecord/index.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "navigationBarTitleText": "我的健康记录", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "calendar": "/components/calendar/index", - "toast": "/components/toast/index", - "ec-canvas": "/components/ec-canvas/ec-canvas" - } -} diff --git a/src/gift/pages/myHealthRecord/index.scss b/src/gift/pages/myHealthRecord/index.scss deleted file mode 100644 index 86ffc3a..0000000 --- a/src/gift/pages/myHealthRecord/index.scss +++ /dev/null @@ -1,741 +0,0 @@ -page { - background-color: rgba(250, 250, 250, 1); - min-height: 100vh; - padding-bottom: 200rpx; -} - -.page { - padding: 0 40rpx 33rpx; - - .calendar-wrap { - height: 80rpx; - overflow: hidden; - transition: all 0.5s; - .calendar { - margin: 0; - } - - .legend { - margin-top: 30rpx; - display: flex; - > view:not(:last-of-type), - > image { - margin-right: 38rpx; - } - justify-content: flex-end; - - .item { - display: flex; - align-items: center; - > view:not(:last-of-type), - > image { - margin-right: 11rpx; - } - font-size: 24rpx; - color: rgba(79, 79, 79, 1); - - &::before { - margin-right: 10rpx; - content: ""; - width: 16rpx; - height: 16rpx; - border-radius: 50%; - } - } - .drugs { - .icon { - width: 17rpx; - height: 24rpx; - } - font-size: 24rpx; - color: rgba(79, 79, 79, 1); - } - - .item1 { - &::before { - background-color: rgba(207, 83, 117, 1); - } - } - - .item2 { - &::before { - background-color: rgba(37, 217, 200, 1); - } - } - } - &.expend { - height: 600rpx; - } - } - .p-fold { - padding: 20rpx; - text-align: center; - } - .chart { - margin-top: 34rpx; - .c-header { - display: flex; - justify-content: space-between; - align-items: center; - .title { - font-size: 32rpx; - color: rgba(71, 71, 71, 1); - font-weight: bold; - } - .more { - font-size: 24rpx; - color: rgba(204, 204, 204, 1); - } - } - .c-container { - margin-top: 24rpx; - background-color: #fff; - border-radius: 24rpx; - border: 1rpx solid rgba(0, 0, 0, 0.1); - .c-header { - display: flex; - justify-content: space-between; - border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); - .c-nav { - overflow: hidden; - flex: 1; - display: flex; - .nav-item { - padding: 16rpx 0; - width: 80rpx; - text-align: center; - line-height: 42rpx; - font-size: 24rpx; - color: #666666; - font-weight: bold; - &.active { - position: relative; - color: #cf5375; - &::after { - position: absolute; - bottom: 0; - left: -5rpx; - content: ""; - width: 90rpx; - height: 4rpx; - background: #cf5375; - } - } - } - } - .fill { - margin-right: 40rpx; - width: 24rpx; - height: 24rpx; - } - } - .c-content { - padding: 16rpx 0; - .search-num { - padding: 0 32rpx; - display: flex; - align-items: center; - justify-content: space-between; - .col { - display: flex; - align-items: center; - .input { - font-size: 24rpx; - color: #666666; - border: 1px solid #ccc; - padding-left: 1em; - border-radius: 12rpx; - } - .btn { - margin-left: 20rpx; - padding: 4rpx 10rpx; - font-size: 24rpx; - color: #fff; - border-radius: 12rpx; - background-color: #e04775; - } - } - .all { - font-size: 24rpx; - color: rgba(79, 79, 79, 1); - } - } - .search { - padding: 0 36rpx 16rpx; - display: flex; - justify-content: space-between; - border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); - .date { - display: flex; - align-items: center; - font-size: 24rpx; - color: #666666; - .line { - margin: 0 10rpx; - } - .icon { - transform: rotate(90deg); - color: #666666; - } - } - .result { - font-size: 24rpx; - color: #666666; - display: flex; - align-items: center; - .icon { - margin-right: 9rpx; - width: 26rpx; - height: 30rpx; - } - .question { - width: 24rpx; - height: 24rpx; - } - } - } - .wrap { - padding: 0 36rpx; - .w-header { - padding-top: 32rpx; - display: flex; - justify-content: space-between; - .title { - font-size: 32rpx; - color: #484848; - } - .legend { - display: flex; - align-items: center; - gap: 25rpx; - .item { - font-size: 20rpx; - color: #4f4f4f; - display: flex; - align-items: center; - .logo { - margin-right: 8rpx; - width: 16rpx; - height: 16rpx; - border-radius: 50%; - background-color: #cf5375; - &.hormone { - background-color: #3192A1; - } - } - .icon { - margin-right: 8rpx; - width: 17rpx; - height: 24rpx; - } - } - } - } - .unit { - font-size: 22rpx; - color: #ccc; - margin-bottom: -40rpx; - } - .w-chart { - position: relative; - padding-top: 20rpx; - height: 500rpx; - .touch { - position: absolute; - z-index: 100; - width: 100%; - height: 250rpx; - } - .left { - position: absolute; - top: 180rpx; - left: -65rpx; - width: 56rpx; - height: 56rpx; - background: #ffffff; - box-shadow: 0rpx 6rpx 28rpx 0rpx rgba(0, 0, 0, 0.18); - border: 1rpx solid #e8e8e8; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; - .icon { - width: 18rpx; - height: 28rpx; - } - } - .right { - position: absolute; - top: 180rpx; - right: -65rpx; - width: 56rpx; - height: 56rpx; - background: #ffffff; - box-shadow: 0rpx 6rpx 28rpx 0rpx rgba(0, 0, 0, 0.18); - border: 1rpx solid #e8e8e8; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; - .icon { - width: 18rpx; - height: 28rpx; - } - } - } - } - .share { - padding: 40rpx 0 10rpx; - font-size: 24rpx; - color: #e04775; - display: flex; - justify-content: center; - align-items: center; - .icon { - margin-right: 8rpx; - width: 22rpx; - height: 22rpx; - } - } - } - } - } - .banner { - margin: 36rpx 0 0; - padding: 20rpx; - border-radius: 24rpx; - background-color: #e04775; - display: flex; - align-items: center; - justify-content: space-between; - .inner { - flex: 1; - font-size: 28rpx; - color: #fafafa; - } - .btn { - flex-shrink: 0; - width: 152rpx; - height: 64rpx; - text-align: center; - line-height: 64rpx; - font-size: 28rpx; - color: #e04775; - background: #ffffff; - border-radius: 12rpx; - } - } - .tabs { - margin-top: 36rpx; - display: inline-flex; - background-color: #fff; - box-shadow: 0rpx 8rpx 32rpx 0rpx rgba(0, 0, 0, 0.13); - border-radius: 12rpx; - overflow: hidden; - .tab { - padding: 10rpx 20rpx; - line-height: 40rpx; - font-size: 28rpx; - color: #666666; - background-color: #fff; - &.active { - background-color: #e04775; - color: #fff; - } - &:nth-of-type(2) { - border: 1px solid #dddddd; - border-top: none; - border-bottom: none; - } - } - } - .detail { - margin-top: 34rpx; - .d-header { - display: flex; - justify-content: space-between; - align-items: center; - .title { - font-size: 32rpx; - color: rgba(71, 71, 71, 1); - font-weight: bold; - } - .more { - font-size: 24rpx; - color: rgba(204, 204, 204, 1); - } - } - .module { - margin-top: 30rpx; - .module-header { - display: flex; - .date { - flex-shrink: 0; - font-size: 24rpx; - color: #333333; - } - .tags { - margin-left: 14rpx; - flex: 1; - display: flex; - flex-wrap: nowrap; - overflow-x: scroll; - white-space: nowrap; - &::-webkit-scrollbar { - display: none; - } - .tag1 { - margin-left: 14rpx; - padding: 0 12rpx; - background: #d86687; - border-radius: 6rpx; - font-size: 24rpx; - line-height: 36rpx; - text-align: center; - color: #ffffff; - } - .tag2 { - margin-left: 14rpx; - padding: 0 12rpx; - background: #0b184f; - border-radius: 6rpx; - font-size: 24rpx; - line-height: 36rpx; - text-align: center; - color: #ffffff; - } - .tag3 { - margin-left: 14rpx; - padding: 0 12rpx; - background: #24d8c8; - border-radius: 6rpx; - font-size: 24rpx; - line-height: 36rpx; - text-align: center; - color: #ffffff; - } - } - } - .module-container { - margin-top: 24rpx; - display: flex; - .aside { - margin-right: 30rpx; - padding-left: 14rpx; - border-right: 1px dashed #dddddd; - } - .card { - flex: 1; - box-shadow: 0 4rpx 29rpx 0rpx rgba(207, 83, 116, 0.25); - border-radius: 24rpx; - .card-header { - padding: 20rpx 18rpx 4rpx 48rpx; - border-radius: 24rpx 24rpx 0 0; - display: flex; - align-items: center; - justify-content: space-between; - box-shadow: 8rpx 8rpx 16rpx 0rpx rgba(143, 217, 226, 0.1); - &.grade1 { - background: linear-gradient(90deg, #26dac9 7%, rgba(143, 217, 226, 0) 70%, rgba(143, 217, 226, 0) 100%); - } - &.grade2 { - background: linear-gradient( - 90deg, - rgba(235, 111, 87, 1) 7%, - rgba(143, 217, 226, 0) 70%, - rgba(143, 217, 226, 0) 100% - ); - } - &.grade3 { - background: linear-gradient( - 90deg, - rgba(207, 83, 117, 1) 7%, - rgba(143, 217, 226, 0) 70%, - rgba(143, 217, 226, 0) 100% - ); - } - .num { - display: flex; - align-items: baseline; - font-size: 96rpx; - line-height: 1; - color: #ffffff; - letter-spacing: 4rpx; - .sub { - font-size: 24rpx; - color: #fff; - } - } - .num-detail { - display: flex; - .n-item { - width: 73rpx; - &.active { - .box { - background-color: #cf5375; - } - } - .box { - width: 45rpx; - height: 45rpx; - width: 45rpx; - height: 45rpx; - font-size: 32rpx; - color: #fff; - text-align: center; - line-height: 45rpx; - background: #333333; - border-radius: 12rpx 12rpx 12rpx 12rpx; - } - .name { - font-size: 24rpx; - line-height: 48rpx; - color: rgba(51, 51, 51, 0.5); - } - } - } - .status { - font-size: 24rpx; - color: #989898; - text-align: right; - .s-num { - font-size: 32rpx; - } - .s-core { - font-size: 24rpx; - color: #989898; - // background: #484848; - border-radius: 6rpx; - } - } - } - .card-container { - padding: 8rpx 23rpx 20rpx; - border-radius: 0 0 24rpx 24rpx; - background-color: #fff; - .cc-title { - text-indent: 22rpx; - font-size: 24rpx; - color: rgba(79, 79, 79, 1); - } - .cc-content { - margin-top: 12rpx; - padding: 16rpx 20rpx; - border-radius: 24rpx; - background-color: rgba(249, 249, 249, 1); - .line { - font-size: 24rpx; - color: #666666; - line-height: 36rpx; - .dot { - color: #666666; - font-weight: bold; - } - .red { - color: #cf5375; - } - .green { - color: #25d9c8; - } - } - } - .fold { - margin-top: 16rpx; - .fold-header { - display: flex; - justify-content: flex-end; - font-size: 24rpx; - color: rgba(204, 204, 204, 1); - } - .fold-container { - padding-top: 10rpx; - height: 500rpx; - overflow: hidden; - transition: all 0.5s; - &.hide { - padding: 0; - height: 0; - } - .fold-img { - width: 100%; - } - .scurt { - width: 100%; - border: 1px solid rgba(0, 0, 0, 0.1); - box-sizing: border-box; - .s-header { - display: flex; - height: 40rpx; - margin-bottom: -1px; - border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); - .none { - flex-shrink: 0; - width: 226rpx; - background-color: rgba(228, 228, 228, 1); - } - .bar { - flex: 1; - display: flex; - .num { - flex: 1; - text-align: center; - font-size: 24rpx; - color: #fff; - line-height: 40rpx; - } - } - } - .s-body { - display: flex; - .s-aside { - width: 28rpx; - background-color: rgba(102, 102, 102, 0.15); - flex-shrink: 0; - .sa-item { - display: flex; - text-align: center; - justify-content: center; - align-items: center; - font-size: 18rpx; - color: rgba(102, 102, 102, 1); - line-height: 1; - overflow: hidden; - &:not(:last-of-type) { - margin-bottom: -1px; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - } - } - .sa-item1 { - height: 158rpx; - } - .sa-item2 { - height: 54rpx; - } - .sa-item3 { - height: 106rpx; - } - .sa-item4 { - height: 108rpx; - } - } - .s-container { - flex: 1; - .sc-row { - display: flex; - height: 54rpx; - overflow: hidden; - .sc-title { - width: 198rpx; - font-size: 18rpx; - color: rgba(102, 102, 102, 1); - text-align: center; - line-height: 53rpx; - } - .sc-col { - margin-left: -1px; - border-left: 1px solid rgba(0, 0, 0, 0.1); - flex: 1; - text-align: center; - .icon { - margin-top: 11rpx; - width: 32rpx; - height: 32rpx; - } - } - } - .sc-row:not(:last-of-type) { - margin-bottom: -1px; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - } - .sc-row:nth-of-type(2n-1) { - background-color: rgba(217, 217, 217, 0.2); - } - } - } - } - } - } - } - } - .sub-card { - flex: 1; - padding: 14rpx 24rpx 14rpx 48rpx; - display: flex; - align-items: center; - justify-content: space-between; - background: linear-gradient(110deg, #2280d5 0%, #ffffff 60%, #ffffff 100%); - box-shadow: 0 4rpx 29rpx 0rpx rgba(207, 83, 116, 0.25); - border-radius: 24rpx; - .left { - font-size: 96rpx; - color: #fff; - line-height: 1; - .sub { - font-size: 24rpx; - } - } - .inner { - text-align: right; - .i-title { - font-size: 24rpx; - color: #989898; - .num { - font-size: 32rpx; - } - } - .sign { - font-size: 32rpx; - .num { - font-size: 40rpx; - } - } - .i-content { - font-size: 24rpx; - color: #989898; - } - } - } - .drug-card { - margin-top: 30rpx; - flex: 1; - box-shadow: 0 4rpx 29rpx 0rpx rgba(207, 83, 116, 0.25); - border-radius: 24rpx; - .d-header { - border-radius: 24rpx 0 0 0; - padding: 20rpx 50rpx; - display: flex; - align-items: center; - justify-content: space-between; - background: linear-gradient(95deg, #26dac9 7%, rgba(143, 217, 226, 0) 100%); - .name { - font-size: 28rpx; - color: #ffffff; - } - .status { - font-size: 22rpx; - color: #5b6363; - .num { - font-size: 22rpx; - color: #cf5375; - } - } - } - .content { - padding: 20rpx 50rpx; - font-size: 22rpx; - color: #666666; - } - } - } - } - } - .add { - position: fixed; - left: 50%; - bottom: 45rpx; - transform: translateX(-50%); - width: 152rpx; - height: 152rpx; - z-index: 10000; - } -} diff --git a/src/gift/pages/myHealthRecord/index.ts b/src/gift/pages/myHealthRecord/index.ts deleted file mode 100644 index ea86951..0000000 --- a/src/gift/pages/myHealthRecord/index.ts +++ /dev/null @@ -1,1072 +0,0 @@ -import dayjs from 'dayjs' -const app = getApp() -const licia = require('miniprogram-licia') - -let echarts: any = null - -Page({ - data: { - calendarDate: '', - fold: true, - ec: { - lazyLoad: true, - }, - calendarConfig: { - multi: false, - hideSelectYear: true, - autoChoosedWhenJump: true, - firstDayOfWeek: 'Mon', - theme: 'nuohe', - takeoverTap: true, - highlightToday: true, - onlyShowCurrentMonth: true, - disableMode: { - type: 'after', // [‘before’, 'after'] - }, - }, - foldAll: true, - - BeginMonth: '', - EndMonth: '', - Type: '2', - Num: '' as string | number, - fields: { - 1: 'day', - 2: 'month', - 3: 'year', - }, - - detail: {}, - alertAdl: {}, - partNameList: app.globalData.partNameList, - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - defaultList: [], - count: 0, - defaultListLast: {}, - - mList: [], - - zdUserInfo: {} as any, - todayBg: '', - - page: 0, - - tableData: [ - { - title: '说话', - key: 'TalkingScore', - }, - { - title: '咀嚼', - key: 'ChewScore', - }, - { - title: '吞咽', - key: 'SwallowScore', - }, - { - title: '呼吸', - key: 'BreathScore', - }, - { - title: '刷牙梳头能力受损', - key: 'BrushTeethAndCombHairScore', - }, - { - title: '从椅子上起身能力受损', - key: 'GetUpFromChairScore', - }, - { - title: '复视/重影', - key: 'DoubleVisionScore', - }, - { - title: '眼睑下垂', - key: 'DroopyEyelidsScore', - }, - ], - - selectLegends: { - 呼吸: false, - 延髓: false, - 眼肌: false, - 肢体: false, - 总分: true, - }, - - tab: 1, - - theme: '', - }, - ecDataTrendComponent: null as any, - ecDataHormoneComponent: null as any, - onLoad() { - app.zdGetTheme().then((res) => { - this.setData({ - theme: res, - }) - }) - }, - async onShow() { - echarts = await require.async('../../compontnts/echart/echarts.js') - this.ecDataTrendComponent = this.selectComponent('#mychart-dom-bar') - this.ecDataHormoneComponent = this.selectComponent('#mychart-hormone') - this.setData({ - calendarDate: dayjs().format('YYYY-MM'), - }) - this.handleChangeType() - app.waitLogin().then(() => { - // 强制疾病患者以上身份 - app.zdPermissionVerification(3, 0, `/gift/pages/myHealthRecord/index`).then(() => { - app.getZdUserInfo(this, true, (res) => { - if (res.UserType != 4) { - this.setData({ - tab: 2, - }) - } - this.getCale() - this.handleTabCallBack() - this.getMedicationAlertAdl() - }) - }) - }) - }, - handleChangeInput() { - if (Number(this.data.Num) > 100) { - this.setData({ - Num: 100, - }) - } - }, - getCale() { - wx.ajax({ - method: 'GET', - url: '?r=zd/adl/cale', - data: { - Month: this.data.calendarDate, - }, - }).then((res) => { - this.setCalendarTodos(res) - }) - }, - setCalendarTodos({ adl = [], medication = [] }: { adl: any[]; medication: string[] }) { - const theme = this.data.theme - const calendar = this.selectComponent('#calendar').calendar - const adlDate = adl.map((item) => item.Date) - const dates: any[] = [] - const intersectDate = licia.intersect(adlDate, medication) - const filterAdlDate = adl.filter((item) => !intersectDate.includes(item.Date)) - const filterMedication = medication.filter((item) => !intersectDate.includes(item)) - const intersectAdlDate = adl.filter((item) => intersectDate.includes(item.Date)) - const doc = theme === 'DRUG' ? 'doc' : ' ' - filterMedication.forEach((Date: string) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - class: doc, - }) - }) - intersectAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? `error ${doc}` : `primary ${doc}`, - }) - }) - filterAdlDate.forEach(({ Date, TotalScore, LastTotalScore }) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - class: TotalScore > 5 || TotalScore - LastTotalScore >= 2 ? 'error' : 'primary', - }) - }) - calendar.setDateStyle(dates) - }, - getMedicationAlertAdl() { - wx.ajax({ - method: 'GET', - url: '?r=zd/medication/medication-alert-adl', - data: {}, - }).then((res) => { - this.setData({ - alertAdl: res, - }) - }) - }, - handleWhenChangeMonth(e: { detail: { next: any } }) { - const current = e.detail.next - this.setData({ - calendarDate: dayjs(`${current.year}-${current.month}`).format('YYYY-MM'), - }) - this.getCale() - }, - handleChangeType(e?: WechatMiniprogram.CustomEvent) { - let type = '' - let callback = true - if (e) { - type = e.currentTarget.dataset.type - } else { - type = this.data.Type - callback = false - } - let EndMonth = '' - let BeginMonth = '' - if (type == '1') { - EndMonth = dayjs().format('YYYY-MM-DD') - BeginMonth = dayjs().subtract(6, 'd').format('YYYY-MM-DD') - } else if (type == '2') { - EndMonth = dayjs().format('YYYY-MM') - BeginMonth = dayjs().subtract(1, 'M').format('YYYY-MM') - } else if (type == '3') { - EndMonth = dayjs().format('YYYY') - BeginMonth = dayjs().subtract(1, 'y').format('YYYY') - } else if (type == '4' && e) { - } - this.setData({ - page: 0, - Type: type, - Num: '5', - EndMonth, - BeginMonth, - }) - if (callback) { - this.handleTabCallBack() - } - }, - handleChange() { - this.handleTabCallBack() - }, - handleTab(e) { - const { index } = e.currentTarget.dataset - this.setData({ - tab: index, - }) - if (index == 1) { - } - if (index == 2) { - } - if (index == 3) { - } - this.handleTabCallBack() - }, - handleTabCallBack() { - const tab = this.data.tab - this.setData({ - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }) - if (tab == 1) { - this.getAllList() - } - if (tab == 2) { - this.getList() - } - if (tab == 3) { - this.getMedicationList() - } - this.getChart() - }, - getAllList(newPage = 1) { - const { BeginMonth, EndMonth, Type, Num } = this.data - wx.ajax({ - method: 'GET', - url: '?r=zd/adl/composite-list', - data: { - Type: Number(Type) === 4 ? 2 : 1, - DateType: Number(Type) === 4 ? '' : Number(Type), - StartDate: BeginMonth, - EndDate: EndMonth, - Num, - page: newPage, - }, - }).then((res) => { - const list = res.list - list.map((item) => { - let grade = 1 - if (item.TotalScore < 5) { - grade = 1 - } else if (item.TotalScore >= 5 && item.TotalScore < 15) { - grade = 2 - } else { - grade = 3 - } - item.grade = grade - item.fold = true - return item - }) - - const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] - this.setData({ - list: newList, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }) - }) - }, - onReachBottom() { - const { page, pages } = this.data.pagination - const tab = this.data.tab - if (pages > page) { - if (tab == 1) { - this.getAllList(page + 1) - } - if (tab == 2) { - this.getList(page + 1) - } - if (tab == 3) { - this.getMedicationList(page + 1) - } - } - }, - getList(newPage = 1) { - const { BeginMonth, EndMonth, Type, Num } = this.data - wx.ajax({ - method: 'GET', - url: '?r=zd/adl/list', - data: { - Type: Number(Type) === 4 ? 2 : 1, - DateType: Number(Type) === 4 ? '' : Number(Type), - StartDate: BeginMonth, - EndDate: EndMonth, - Num, - page: newPage, - }, - }).then((res) => { - const list = res.list - list.map((item) => { - let grade = 1 - if (item.TotalScore < 5) { - grade = 1 - } else if (item.TotalScore >= 5 && item.TotalScore < 15) { - grade = 2 - } else { - grade = 3 - } - item.grade = grade - item.fold = true - item.Type = 1 - return item - }) - const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] - this.setData({ - list: newList, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }) - }) - }, - getMedicationList(newPage = 1) { - const { BeginMonth, EndMonth, Type, Num } = this.data - wx.ajax({ - method: 'GET', - url: '?r=zd/medication/list', - data: { - Type: Number(Type) === 4 ? 2 : 1, - DateType: Number(Type) === 4 ? '' : Number(Type), - StartDate: BeginMonth, - EndDate: EndMonth, - Num, - page: newPage, - }, - }).then((res) => { - const list = res.list - list.map((item) => { - let grade = 1 - if (item.TotalScore < 5) { - grade = 1 - } else if (item.TotalScore >= 5 && item.TotalScore < 15) { - grade = 2 - } else { - grade = 3 - } - item.grade = grade - item.fold = true - item.Type = 2 - return item - }) - const newList = res.page === 1 ? res.list : [...this.data.list, ...res.list] - this.setData({ - list: newList, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }) - }) - }, - getChart() { - const { BeginMonth, EndMonth, Type, Num } = this.data - wx.ajax({ - method: 'GET', - url: '?r=zd/adl/list', - data: { - Type: Number(Type) === 4 ? 2 : 1, - DateType: Number(Type) === 4 ? '' : Number(Type), - StartDate: BeginMonth, - EndDate: EndMonth, - Num, - count: 0, - IsAsc: 1, - }, - }).then(async (res) => { - if (Number(Type) == 4) { - this.setData({ - defaultList: res.list, - count: res.list.length, - defaultListLast: res.list.at(-1), - }) - const chart1 = await this.initChart(res.list) - const chart2 = await this.initHormoneChart(res.list) - echarts.connect([chart1, chart2]) - } - }) - if (Number(Type) != 4) { - wx.ajax({ - method: 'GET', - url: '?r=zd/adl/graph', - data: { - Type: Number(Type) === 4 ? 2 : 1, - DateType: Number(Type) === 4 ? '' : Number(Type), - StartDate: BeginMonth, - EndDate: EndMonth, - count: 0, - }, - }).then(async (res) => { - const medication = res.medication.map((item) => { - return { - Date: item.InjectionDate, - ...item, - } - }) - const list = res.list - const newList: any[] = this.mergeArr(list, medication) - - if (Number(Type) != 4) { - this.setData({ - defaultList: newList as never[], - defaultListLast: newList.at(-1), - count: list.length, - }) - const chart1 = await this.initChart(newList as never[]) - const chart2 = await this.initHormoneChart(newList as never[]) - echarts.connect([chart1, chart2]) - } - }) - } - }, - mergeArr(array1: any[] = [], array2: any[] = []) { - // 合并两个数组中相同Date字段的对象 - const mergedArray: any[] = [] - const mergedMap = new Map() - - array1.concat(array2).forEach((obj) => { - const date = obj.Date - if (mergedMap.has(date)) { - mergedMap.get(date).push(obj) - } else { - mergedMap.set(date, [obj]) - } - }) - - mergedMap.forEach((objs: any) => { - if (objs.length === 1) { - mergedArray.push(objs[0]) - } else { - const mergedObj = objs.reduce((acc, cur) => ({ ...acc, ...cur })) - mergedArray.push(mergedObj) - } - }) - - // 按照Date字段对合并后的数组进行排序 - mergedArray.sort((a, b) => { - return a.Date.localeCompare(b.Date) - }) - return mergedArray - }, - - initChart(defaultList = []) { - const { theme } = this.data - const list: any = defaultList - return new Promise((reslove) => { - this.ecDataTrendComponent.init((canvas, width, height, dpr) => { - const chart = echarts.init(canvas, null, { - width, - height, - devicePixelRatio: dpr, // new - }) - canvas.setChart(chart) - - const option: any = { - tooltip: { - show: false, - trigger: 'axis', - axisPointer: { - type: 'shadow', - }, - confine: true, - backgroundColor: 'rgba(0, 0, 0, 0.5)', - textStyle: { - color: '#fff', - fontSize: 10, - }, - order: 'seriesDesc', - }, - grid: { - top: '30', - left: '0', - right: '0', - bottom: '10', - containLabel: true, - }, - xAxis: [ - { - type: 'category', - axisTick: { - show: true, - inside: true, - length: 1, - alignWithLabel: true, - lineStyle: { - type: 'dotted', - color: '#D8D8D8', - width: 4, - cap: 'round', - }, - }, - axisLine: { - lineStyle: { - color: '#8C8C8C', - type: 'dashed', - }, - }, - data: list.map((item) => dayjs(item.Date).format('MM-DD')), - axisLabel: { - formatter() { - return '' - }, - }, - }, - ], - yAxis: [ - { - type: 'value', - minInterval: 1, - }, - ], - series: [ - { - name: '总分', - data: list.length ? list.map((item) => item.TotalScore) : [25], - barWidth: '16', - label: { - show: true, - position: 'top', - color: '#CF5375', - }, - type: 'line', - symbol: 'circle', - symbolSize: 8, - showSymbol: list.length >= 1, - connectNulls: true, - z: 10, - itemStyle: { - color: '#CF5375', - }, - markLine: { - symbol: ['none', 'none'], - data: [ - { - name: '达标区(1分)', - yAxis: 1, - label: { - formatter: '{b}', - position: 'insideMiddle', - color: '#24D8C8', - fontSize: '10', - }, - lineStyle: { - cap: '', - color: '#34D7C7', - type: 'dashed', - }, - }, - ], - }, - markArea: { - itemStyle: { - color: 'rgba(37,217,200,0.19)', - }, - data: [ - [ - { - yAxis: 0, - }, - { - yAxis: 1, - }, - ], - ], - }, - }, - ], - dataZoom: { - type: 'inside', // 有type这个属性,滚动条在最下面,也可以不行,写y:36,这表示距离顶端36px,一般就是在图上面。 - startValue: 0, - endValue: 4, - filterMode: 'none', - }, - } - - if (theme === 'DRUG') { - const markLineData = list - .filter((item) => item.InjectionBottles) - .map((item) => { - return { - name: '', - xAxis: dayjs(item.Date).format('MM-DD'), - lineStyle: { - color: 'rgba(37, 217, 200,0.5)', - cap: '', - type: 'solid', - }, - - label: { - formatter: '', - position: 'insideEndBottom', - rotate: 0, - color: '#25D9C8', - offset: [60, 0], - }, - } - }) - option.series.push({ - name: '用药', - data: list.map((item) => (item.InjectionBottles ? 0 : null)), - type: 'line', - symbol: - 'image://data:image/png;base64,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', - symbolSize: [11, 16], - symbolOffset: [0, 0], - itemStyle: { - color: '#25D9C8', - }, - lineStyle: { - width: 0, - }, - tooltip: { - show: false, - }, - z: 11, - markLine: { - symbol: ['none', 'none'], - data: markLineData, - }, - }) - // option.series.push({ - // name: "用药时间", - // data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)), - // type: "line", - // symbol: - // "image://data:image/png;base64,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", - // symbolSize: [11, 16], - // symbolOffset: [0, "100%"], - // itemStyle: { - // color: "#25D9C8", - // }, - // tooltip: { - // show: false, - // }, - // lineStyle: { - // width: 0, - // }, - // z: 1, - // }); - } - - chart.setOption(option) - reslove(chart) - return chart - }) - }) - }, - initHormoneChart(defaultList = []) { - const { theme } = this.data - const list: any = defaultList - return new Promise((reslove) => { - this.ecDataHormoneComponent.init((canvas, width, height, dpr) => { - const chart = echarts.init(canvas, null, { - width, - height, - devicePixelRatio: dpr, // new - }) - canvas.setChart(chart) - - const option: any = { - tooltip: { - show: false, - trigger: 'axis', - axisPointer: { - type: 'shadow', - }, - confine: true, - backgroundColor: 'rgba(0, 0, 0, 0.5)', - textStyle: { - color: '#fff', - fontSize: 10, - }, - order: 'seriesDesc', - }, - grid: { - top: '30', - left: '0', - right: '0', - bottom: '10', - containLabel: true, - }, - xAxis: [ - { - type: 'category', - axisTick: { - show: true, - inside: true, - length: 1, - alignWithLabel: true, - lineStyle: { - type: 'dotted', - color: '#D8D8D8', - width: 4, - cap: 'round', - }, - }, - axisLine: { - lineStyle: { - color: '#8C8C8C', - type: 'dashed', - }, - }, - data: list.map((item) => dayjs(item.Date).format('MM-DD')), - }, - ], - yAxis: [ - { - type: 'value', - minInterval: 1, - max(value) { - return value.max + 20 > 999 ? 999 : value.max + 20 - }, - axisLabel: { - // width: 20, - formatter(value: number) { - return value - }, - }, - }, - ], - series: [ - { - name: '激素用量', - data: list.length ? list.map((item) => item.SteroidDailyDose) : [20], - barWidth: '16', - type: 'line', - symbol: 'circle', - symbolSize: 8, - connectNulls: true, - showSymbol: list.length >= 1, - z: 10, - label: { - show: true, - position: 'top', - color: '#18474e', - z: 11, - formatter({ value }) { - return `${value}mg` - }, - }, - itemStyle: { - color: '#3192A1', - }, - markLine: { - symbol: ['none', 'none'], - data: [ - { - name: '达标区(5mg)', - yAxis: 5, - label: { - formatter: '{b}', - position: 'insideMiddle', - color: '#24D8C8', - fontSize: '10', - }, - lineStyle: { - cap: '', - color: '#34D7C7', - type: 'dashed', - }, - }, - ], - }, - markArea: { - itemStyle: { - color: 'rgba(37,217,200,0.19)', - }, - data: [ - [ - { - yAxis: 0, - }, - { - yAxis: 5, - }, - ], - ], - }, - }, - ], - dataZoom: { - type: 'inside', // 有type这个属性,滚动条在最下面,也可以不行,写y:36,这表示距离顶端36px,一般就是在图上面。 - startValue: 0, - endValue: 4, - filterMode: 'none', - }, - } - if (theme === 'DRUG') { - const markLineData = list - .filter((item) => item.InjectionBottles) - .map((item) => { - return { - name: '', - xAxis: dayjs(item.Date).format('MM-DD'), - lineStyle: { - color: 'rgba(37, 217, 200,0.5)', - cap: '', - type: 'solid', - }, - label: { - formatter: '', - position: 'insideEndBottom', - rotate: 0, - color: '#25D9C8', - offset: [60, 0], - }, - } - }) - const maxValue = Math.max(...list.map((item) => item.SteroidDailyDose)) - option.series.push({ - name: '用药', - data: list.map((item) => (item.InjectionBottles ? 0 : null)), - type: 'line', - symbol: - 'image://data:image/png;base64,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', - symbolSize: [11, 16], - symbolOffset: [0, 0], - itemStyle: { - color: '#25D9C8', - }, - lineStyle: { - width: 0, - }, - tooltip: { - show: false, - }, - z: 11, - markLine: { - symbol: ['none', 'none'], - data: markLineData, - }, - }) - // option.series.push({ - // name: "用药时间", - // data: list.map((item: any) => (item.InjectionBottles ? item.TotalScore : 0)), - // type: "line", - // symbol: - // "image://data:image/png;base64,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", - // symbolSize: [11, 16], - // symbolOffset: [0, "100%"], - // itemStyle: { - // color: "#25D9C8", - // }, - // tooltip: { - // show: false, - // }, - // lineStyle: { - // width: 0, - // }, - // z: 1, - // }); - } - - chart.setOption(option) - reslove(chart) - return chart - }) - }) - }, - touchend(e) { - const { type } = e.currentTarget.dataset - const { page, defaultList } = this.data - if (type == 'left' && page > 0) { - this.setData({ - page: page - 1, - }) - this.initChart(defaultList) - this.initHormoneChart(defaultList) - } else if (type == 'right' && page < defaultList.length / 5 - 1) { - this.setData({ - page: page + 1, - }) - this.initChart(defaultList) - this.initHormoneChart(defaultList) - } - }, - handleFoldAll() { - const { list } = this.data - this.setData({ - list: list.map((item) => { - item.fold = !this.data.foldAll - return item - }), - foldAll: !this.data.foldAll, - }) - }, - handleFold(e) { - const { index } = e.currentTarget.dataset - this.setData({ - [`list[${index}].fold`]: !this.data.list[index].fold, - }) - }, - handleDetail(e) { - const { id, isi } = e.currentTarget.dataset - const tab = this.data.tab - if (isi == 1) { - return - } - if (tab == 1) { - } - if (tab == 2) { - } - - wx.navigateTo({ - url: `/patient/pages/adlResult/index?id=${id}`, - }) - }, - handleDel(e) { - const { id, index, isi } = e.currentTarget.dataset - if (isi == 1) { - return - } - if (index != 0) return - wx.showModal({ - title: '确认删除?', - confirmColor: '#8c75d0', - success: (res) => { - if (res.confirm) { - wx.ajax({ - method: 'POST', - url: '?r=zd/adl/delete', - data: { - Id: id, - }, - }).then(() => { - this.handleTabCallBack() - }) - } - }, - }) - }, - handleAdd() { - wx.navigateTo({ - url: '/patient/pages/adl/index', - }) - }, - handleAddDrug() { - wx.navigateTo({ - url: '/patient/pages/drugRecord/index', - }) - }, - handleChartDetail() { - const that = this - wx.navigateTo({ - url: '/gift/pages/myHealthRecordChart/index', - success(res) { - res.eventChannel.emit('acceptDataFromOpenerPage', { - list: that.data.defaultList, - selectLegends: that.data.selectLegends, - }) - }, - }) - }, - handleDetailDrug(e) { - const { id, isi } = e.currentTarget.dataset - - if (isi == 1) { - return - } - wx.navigateTo({ - url: `/patient/pages/drugRecord/index?id=${id}`, - }) - }, - handleDelDrug(e) { - const { id, isi } = e.currentTarget.dataset - if (isi == 1) { - return - } - wx.showModal({ - title: '确认删除?', - confirmColor: '#8c75d0', - success: (res) => { - if (res.confirm) { - wx.ajax({ - method: 'POST', - url: '?r=zd/medication/delete', - data: { - Id: id, - }, - }).then(() => { - this.handleTabCallBack() - }) - } - }, - }) - }, - toggleFold() { - this.setData({ - fold: !this.data.fold, - }) - }, - handleShare() { - wx.navigateTo({ - url: '/patient/pages/adlShare/index', - }) - }, - handleBack() { - wx.navigateBack({ - fail() { - wx.reLaunch({ url: '/patient/pages/index/index' }) - }, - }) - }, - onShareAppMessage() { - return { - title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响', - path: '/patient/pages/adl/index', - } - }, -}) diff --git a/src/gift/pages/myHealthRecord/index.wxml b/src/gift/pages/myHealthRecord/index.wxml deleted file mode 100644 index ca94ddd..0000000 --- a/src/gift/pages/myHealthRecord/index.wxml +++ /dev/null @@ -1,392 +0,0 @@ - - - - - - - - - - 用药 - - ADL评分异常 - 正常测评 - - - - - - - - - - - - - 月度 - 年度 - 次数 - - - - - - - - 搜索 - - 评测次数:{{count}}次 - - - - - {{BeginMonth}} - - - - - {{EndMonth}} - - - - - - 双达标达成! - - - - - ADL评分记录曲线 - - - - ADL分数 - - - - 用药时间 - - - - - - - - - - - - - - - - 激素日用量记录曲线 - - - - 激素用量 - - - - 单位(mg) - - - - - - - - - - - - - - - - 综合报告 - 双达标笔记 - 用药记录 - - - - 我的既往用药记录 - 我的既往评测报告 - - 全部{{foldAll ? '展开':'收起'}} - - - - - - - {{item.CreateTime || item.InjectionDate}} - - MG-ADL - 用药记录 - 商保项目记录 - - - - - - - - - {{item.TotalScore}} - - - - - {{item.MedullaTypeScore}} - 延髓 - - - {{item.BreathTypeScore}} - 呼吸 - - - {{item.LimbsTypeScore}} - 四肢 - - - {{item.EyeTypeScore}} - 眼睛 - - - - - 用药后第 - {{item.UseDrugDays}} - 天MG-ADL报告 - - 身体状态有提升,继续关注哦~ - 请持续观察,了解身体变化情况! - 请持续观察,了解身体变化情况! - - - - 注意事项 - - - 1 总分 - < - 5分 - ,日常请注意观察 - - - 1 总分 - >= - 5分 - ,您的症状控制欠佳,建议必要时就医 - - - - 2 较上次得分变化 - {{item.TotalScore - item.LastTotalScore }},有进步,加油! - - - 2 与上次得分一致,请继续保持 - - - 2 较上次得分变化 - +{{item.TotalScore - item.LastTotalScore }},请继续关注! - - - 2 较上次得分变化 - +{{item.TotalScore - item.LastTotalScore }},需要重点关注! - - - - {{item.LastTotalScore === null ? 2 : 3}} 您的眼肌类占比 - < - 50%,以全身症状为主,应注意休息警惕病情加重 - - - {{item.LastTotalScore === null ? 2 : 3}} 您的眼肌类占比 - > - 50%,危象风险不高,请继续关注 - - - {{item.LastTotalScore === null ? 2 : 3}} 您的眼肌类占比=50%,危象风险不高,请继续关注 - - - - - {{item.fold ? '展开':'收起'}}详细评测报告 - - - - - - - - - 0分 - 1分 - 2分 - 3分 - - - - - 延髓 - 呼吸 - 四肢 - 眼肌 - - - - {{subItem.title}} - - - - - - - - - - - - - - - - - - - - - - - 激素用量 - - 本次激素用量为 - {{item.SteroidDailyDose}}mg - /天 - - - 距离达标还需努力,请遵医嘱规律治疗 - 恭喜达标,您的激素用量已少于95% 的患友 - - - - - {{item.InjectionBottles}} - - - - - 您的第 - {{item.Times}} - 次用药 - - - 距离上次用药间隔:{{item.DaysSinceLastInjection}}天 - - - - - - - - - - - - - - - - - - diff --git a/src/gift/pages/myHealthRecordChart/index.json b/src/gift/pages/myHealthRecordChart/index.json deleted file mode 100644 index 9d7ed55..0000000 --- a/src/gift/pages/myHealthRecordChart/index.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "navigationBarTitleText": "我的健康记录", - "pageOrientation":"landscape", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "calendar": "/components/calendar/index", - "toast": "/components/toast/index", - "ec-canvas": "/components/ec-canvas/ec-canvas" - } -} diff --git a/src/gift/pages/myHealthRecordChart/index.scss b/src/gift/pages/myHealthRecordChart/index.scss deleted file mode 100644 index 73b9811..0000000 --- a/src/gift/pages/myHealthRecordChart/index.scss +++ /dev/null @@ -1,14 +0,0 @@ -page { - min-height: 100vh; -} - -.page { - width: 100vw; - height: 100vh; - box-sizing: border-box; - padding: 20rpx; - #mychart-dom-bar { - width: 100%; - height: 100%; - } -} diff --git a/src/gift/pages/myHealthRecordChart/index.ts b/src/gift/pages/myHealthRecordChart/index.ts deleted file mode 100644 index 2eecd13..0000000 --- a/src/gift/pages/myHealthRecordChart/index.ts +++ /dev/null @@ -1,287 +0,0 @@ -/* eslint-disable */ -const app = getApp() -const licia = require('miniprogram-licia') -import dayjs from 'dayjs' - -let echarts: any = null - -Page({ - data: { - ec: { - lazyLoad: true, - }, - foldAll: true, - - BeginMonth: '', - EndMonth: '', - Type: '1', - Num: '' as string | number, - fields: { - 1: 'day', - 2: 'month', - 3: 'year', - }, - - detail: {}, - partNameList: app.globalData.partNameList, - list: [], - defaultList: [], - count: 0, - - zdUserInfo: {}, - todayBg: '', - selectLegends: {}, - - page: 0, - safeAreaLeft: 20, - - theme: '', - }, - ecDataTrendComponent: null as any, - async onLoad() { - app.zdGetTheme().then((res) => { - this.setData({ - theme: res, - }) - }) - - const that = this - - that.getSystemInfo() - echarts = await require.async('../../compontnts/echart/echarts.js') - - that.ecDataTrendComponent = that.selectComponent('#mychart-dom-bar') - - const eventChannel = that.getOpenerEventChannel() - eventChannel.on('acceptDataFromOpenerPage', function (data) { - console.log(data) - that.setData({ - defaultList: data.list, - selectLegends: { ...data.selectLegends }, - zdUserInfo: app.globalData.zdUserInfo, - }) - that.initChart(data.list) - }) - - that.initChart(that.data.defaultList as any) - }, - - initChart(defaultList = []) { - const { selectLegends, theme } = this.data - // const list = defaultList.slice(page * 15, (page + 1) * 8); - const list = defaultList - this.ecDataTrendComponent.init((canvas, width, height, dpr) => { - let chart = echarts.init(canvas, null, { - width: width, - height: height, - devicePixelRatio: dpr, // new - }) - canvas.setChart(chart) - - var option = { - dataZoom: [ - { - type: 'inside', // 内置于坐标系中 - // start: 0, - // end: 15, - startValue: 0, - endValue: 15, - xAxisIndex: [0], - }, - ], - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow', - }, - confine: true, - backgroundColor: 'rgba(0, 0, 0, 0.5)', - textStyle: { - color: '#fff', - fontSize: 10, - }, - order: 'seriesDesc', - }, - legend: { - bottom: 0, - padding: 0, - itemGap: 5, - itemWidth: 8, - itemHeight: 8, - icon: 'circle', - selected: selectLegends, - }, - grid: { - top: '5', - left: '0', - right: '0', - bottom: '15', - containLabel: true, - }, - xAxis: [ - { - type: 'category', - axisTick: { - show: false, - }, - axisLine: { - lineStyle: { - color: '#8C8C8C', - type: 'dashed', - }, - }, - axisLabel: { - //x轴文字的配置 - show: true, - interval: 0, //使x轴文字显示全 - rotate: -20, - }, - data: list.map((item) => item.Date), - }, - ], - yAxis: [ - { - type: 'value', - }, - ], - series: [ - { - name: '延髓', - type: 'bar', - stack: 'Ad', - emphasis: { - disabled: true, - focus: 'none', - }, - data: list.map((item) => item.MedullaTypeScore * 1), - barWidth: '16', - itemStyle: { - // borderColor: "#fff", - // borderWidth: 2, - color: '#7FBDA6', - }, - }, - { - name: '呼吸', - type: 'bar', - stack: 'Ad', - emphasis: { - disabled: true, - focus: 'none', - }, - data: list.map((item) => item.BreathTypeScore * 1), - itemStyle: { - // borderColor: "#fff", - // borderWidth: 2, - color: '#F1CE8F', - }, - }, - { - name: '肢体', - type: 'bar', - stack: 'Ad', - emphasis: { - disabled: true, - focus: 'none', - }, - data: list.map((item) => item.LimbsTypeScore * 1), - itemStyle: { - // borderColor: "#fff", - // borderWidth: 2, - color: '#9ED0DE', - }, - }, - { - name: '眼肌', - type: 'bar', - stack: 'Ad', - emphasis: { - disabled: true, - focus: 'none', - }, - data: list.map((item) => item.EyeTypeScore * 1), - itemStyle: { - // borderColor: "#fff", - // borderWidth: 2, - color: '#D37862', - }, - }, - { - name: '总分', - data: list.map((item) => item.TotalScore), - type: 'line', - symbol: 'circle', - connectNulls: true, - itemStyle: { - color: '#CF5375', - }, - }, - ], - // dataZoom: { - // show: true, // 为true 滚动条出现 - // realtime: true, - // type: "slider", // 有type这个属性,滚动条在最下面,也可以不行,写y:36,这表示距离顶端36px,一般就是在图上面。 - // height: 20, // 表示滚动条的高度,也就是粗细 - // start: 20, // 表示默认展示20%~80%这一段。 - // end: 80, - // }, - } - if (theme === 'DRUG') { - let markLineData = list - .filter((item) => item.InjectionBottles) - .map((item) => { - return { - name: '', - xAxis: item.Date, - lineStyle: { - color: '#25D9C8', - cap: '', - type: 'solid', - }, - label: { - formatter: '', - position: 'insideEndBottom', - rotate: 0, - color: '#25D9C8', - offset: [60, 0], - }, - } - }) - option.series.push({ - name: '用药', - data: list.map((item) => item.InjectionBottles), - type: 'line', - symbol: 'none', - itemStyle: { - color: '#25D9C8', - }, - lineStyle: { - width: 0, - }, - markLine: { - symbol: ['none', 'none'], - data: markLineData, - }, - }) - } - - chart.setOption(option) - return chart - }) - }, - getSystemInfo() { - wx.getSystemInfo({ - success: (res) => { - this.setData({ - safeAreaLeft: res.safeArea.left || 20, - }) - }, - }) - }, - onShareAppMessage() { - return { - title: 'MG-ADL测评表:评估重症肌无力患者症状对生活质量的影响', - path: '/patient/pages/adl/index', - } - }, -}) diff --git a/src/gift/pages/myHealthRecordChart/index.wxml b/src/gift/pages/myHealthRecordChart/index.wxml deleted file mode 100644 index 8ad62cc..0000000 --- a/src/gift/pages/myHealthRecordChart/index.wxml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/gift/pages/orderDetail/index.json b/src/gift/pages/orderDetail/index.json deleted file mode 100644 index 9b84471..0000000 --- a/src/gift/pages/orderDetail/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "订单详情", - "usingComponents": {} -} diff --git a/src/gift/pages/orderDetail/index.scss b/src/gift/pages/orderDetail/index.scss deleted file mode 100644 index 829f908..0000000 --- a/src/gift/pages/orderDetail/index.scss +++ /dev/null @@ -1,129 +0,0 @@ -page { - background-color: #f7f7f7; -} -.page { - padding: 40rpx; - .status-line { - display: flex; - align-items: center; - justify-content: center; - font-size: 40rpx; - color: #e04775; - font-weight: bold; - .icon { - margin-right: 16rpx; - width: 48rpx; - height: 50rpx; - } - } - .site { - margin-top: 26rpx; - padding: 32rpx; - background: #ffffff; - border-radius: 24rpx; - display: flex; - align-items: center; - .icon { - margin-right: 16rpx; - flex-shrink: 0; - width: 44rpx; - height: 44rpx; - } - .wrap { - .title { - font-size: 32rpx; - font-weight: bold; - color: #3f3f3f; - } - .content { - margin-top: 12rpx; - font-size: 28rpx; - color: #bebfc1; - } - } - } - .shop { - margin-top: 16rpx; - padding: 32rpx; - background: #ffffff; - border-radius: 24rpx; - display: flex; - align-items: center; - .shop-img { - flex-shrink: 0; - width: 204rpx; - height: 204rpx; - border-radius: 24rpx; - } - .wrap { - flex: 1; - padding-left: 24rpx; - .name { - font-size: 32rpx; - font-weight: bold; - color: #3f3f3f; - line-height: 44rpx; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - } - .specification { - display: inline-block; - margin-top: 8rpx; - font-size: 28rpx; - color: #b6b7ba; - border-radius: 10rpx; - } - .price { - margin-top: 14rpx; - display: flex; - align-items: center; - justify-content: space-between; - .num { - font-size: 32rpx; - color: #e04775; - font-weight: bold; - .sub { - font-size: 22rpx; - } - } - .val { - font-size: 28rpx; - color: #b6b7ba; - } - } - } - } - .detail { - margin-top: 16rpx; - padding: 8rpx 32rpx; - background: #ffffff; - border-radius: 24rpx; - .row { - padding: 24rpx 0; - display: flex; - align-items: center; - justify-content: space-between; - .label { - font-size: 28rpx; - color: #bbbcbe; - } - .content { - padding-left: 46rpx; - flex: 1; - font-size: 28rpx; - color: #3f3f3f; - font-weight: bold; - &.yellow { - color: #f5ad1d; - } - } - } - .row:not(:first-of-type) { - border-top: 1rpx solid #ebebeb; - } - } -} diff --git a/src/gift/pages/orderDetail/index.ts b/src/gift/pages/orderDetail/index.ts deleted file mode 100644 index 8ddd527..0000000 --- a/src/gift/pages/orderDetail/index.ts +++ /dev/null @@ -1,29 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {}, - }, - onLoad(options) { - this.setData({ - id: options.id, - }); - app.waitLogin().then(() => { - this.getDetail(); - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/gift-order/get-order-detail", - data: { - orderId: this.data.id, - }, - }).then((res) => { - this.setData({ - detail: res, - }); - }); - }, -}); diff --git a/src/gift/pages/orderDetail/index.wxml b/src/gift/pages/orderDetail/index.wxml deleted file mode 100644 index 3e8a81e..0000000 --- a/src/gift/pages/orderDetail/index.wxml +++ /dev/null @@ -1,54 +0,0 @@ - - - - {{detail.statusName}} - - - - - {{detail.receiveUserName}} {{detail.receiveTelephone}} - {{detail.receiveAddress}} - - - - - - {{detail.giftName}} - 规格:{{detail.specName}} - - {{detail.giftScore}}能量 - x{{detail.orderCount}} - - - - - - 消耗能量 - {{detail.orderScore}} - - - 订单编号 - {{detail.orderNo}} - - - 客服电话 - {{detail.serviceTel}} - - - 创建时间 - {{detail.orderTime}} - - - 发货时间 - {{detail.sendTime}} - - - 物流公司 - {{detail.logisticsCompany}} - - - 物流单号 - {{detail.logisticsOrderNo}} - - - diff --git a/src/gift/pages/orderEnd/index.json b/src/gift/pages/orderEnd/index.json deleted file mode 100644 index 08994c2..0000000 --- a/src/gift/pages/orderEnd/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "下单成功", - "usingComponents": {} -} diff --git a/src/gift/pages/orderEnd/index.scss b/src/gift/pages/orderEnd/index.scss deleted file mode 100644 index 5da6473..0000000 --- a/src/gift/pages/orderEnd/index.scss +++ /dev/null @@ -1,40 +0,0 @@ -.page { - text-align: center; - .content-img { - margin-top: 196rpx; - width: 454rpx; - height: 356rpx; - } - .title { - margin-top: -80rpx; - font-size: 44rpx; - color: #e04775; - font-weight: bold; - } - .order-no { - margin-top: 16rpx; - font-size: 28rpx; - color: #9b9ea6; - } - .detail-btn-bd { - margin: 64rpx auto 0; - width: 422rpx; - height: 96rpx; - background: #fff; - border-radius: 48rpx; - line-height: 96rpx; - font-size: 36rpx; - color: #e04775; - border: 4rpx solid #e04775; - } - .detail-btn { - margin: 64rpx auto 0; - width: 422rpx; - height: 96rpx; - background: #e04775; - border-radius: 48rpx; - line-height: 96rpx; - font-size: 36rpx; - color: #ffffff; - } -} diff --git a/src/gift/pages/orderEnd/index.ts b/src/gift/pages/orderEnd/index.ts deleted file mode 100644 index 04d0ba0..0000000 --- a/src/gift/pages/orderEnd/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {}, - }, - onLoad(options) { - this.setData({ - id: options.id, - }); - app.waitLogin().then(() => { - this.getDetail(); - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/gift-order/get-order-detail", - data: { - orderId: this.data.id, - }, - }).then((res) => { - this.setData({ - detail: res, - }); - }); - }, - handleDetail() { - wx.navigateTo({ - url: `/gift/pages/orderDetail/index?id=${this.data.id}`, - }); - }, - handleGift() { - wx.navigateTo({ - url: `/gift/pages/giftList/index`, - }); - }, -}); diff --git a/src/gift/pages/orderEnd/index.wxml b/src/gift/pages/orderEnd/index.wxml deleted file mode 100644 index aa9350c..0000000 --- a/src/gift/pages/orderEnd/index.wxml +++ /dev/null @@ -1,7 +0,0 @@ - - - 下单成功 - 订单号:{{detail.orderNo}} - 查看订单详情 - 返回礼品中心 - diff --git a/src/gift/pages/priceDetail/index.json b/src/gift/pages/priceDetail/index.json deleted file mode 100644 index b88834c..0000000 --- a/src/gift/pages/priceDetail/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "能量明细", - "usingComponents": {} -} diff --git a/src/gift/pages/priceDetail/index.scss b/src/gift/pages/priceDetail/index.scss deleted file mode 100644 index a813013..0000000 --- a/src/gift/pages/priceDetail/index.scss +++ /dev/null @@ -1,78 +0,0 @@ -page { - background-color: #fafafa; -} - -.page { - padding: 48rpx 40rpx 120rpx; - .banner { - position: relative; - padding: 46rpx 48rpx; - background-color: #e6658d; - border-radius: 24rpx; - .title { - font-size: 28rpx; - color: #ffffff; - } - .num { - font-size: 64rpx; - color: 1897; - font-weight: bold; - color: #fff; - } - .icon{ - position: absolute; - top: 40rpx; - right: 40rpx; - width: 124rpx; - height: 122rpx; - } - } - - .list { - margin-top: 48rpx; - .list-title { - font-size: 36rpx; - color: #3f3f3f; - &::before { - margin-right: 16rpx; - display: inline-block; - content: ""; - width: 12rpx; - height: 44rpx; - background: #e04775; - vertical-align: middle; - border-radius: 0rpx 8rpx 8rpx 0rpx; - } - } - .list-container { - padding: 0 30rpx; - margin-top: 20rpx; - background: #ffffff; - border-radius: 24rpx; - .row { - padding: 30rpx 0; - display: flex; - justify-content: space-between; - .wrap { - .title { - font-size: 32rpx; - color: #3f3f3f; - } - .date { - font-size: 28rpx; - color: #bbbcbe; - } - } - .price { - margin-left: 10rpx; - flex-shrink: 0; - font-size: 40rpx; - color: #f5ad1d; - } - } - .row:not(:last-of-type) { - border-bottom: 1px solid #ebebeb; - } - } - } -} diff --git a/src/gift/pages/priceDetail/index.ts b/src/gift/pages/priceDetail/index.ts deleted file mode 100644 index 7d13727..0000000 --- a/src/gift/pages/priceDetail/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -const app = getApp(); - -Page({ - data: { - score: 0, - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }, - onLoad() { - app.waitLogin().then(() => { - this.getList(); - this.getDetail() - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-score/get-self-score", - data: {}, - }).then((res) => { - this.setData({ - score: res.score, - }); - }); - }, - getList(newPage = 1) { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-score/get-self-record-list", - data: { page: newPage }, - }).then((res) => { - let list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list: list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, -}); diff --git a/src/gift/pages/priceDetail/index.wxml b/src/gift/pages/priceDetail/index.wxml deleted file mode 100644 index fa85b63..0000000 --- a/src/gift/pages/priceDetail/index.wxml +++ /dev/null @@ -1,26 +0,0 @@ - - - - 能量收支明细 - - - - - {{item.recordTypeName}} - :{{item.giftName}} - - {{item.createTime}} - - {{item.scoreChange}} - - - - - diff --git a/src/gift/pages/scoreRule/index.json b/src/gift/pages/scoreRule/index.json deleted file mode 100644 index 3fe1f62..0000000 --- a/src/gift/pages/scoreRule/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "navigationBarTitleText": "能量规则", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar" - } -} diff --git a/src/gift/pages/scoreRule/index.scss b/src/gift/pages/scoreRule/index.scss deleted file mode 100644 index c3bc419..0000000 --- a/src/gift/pages/scoreRule/index.scss +++ /dev/null @@ -1,139 +0,0 @@ -page { - background-color: #f5f5f5; -} -.page { - padding: 200rpx 40rpx 80rpx; - .banner { - position: relative; - .b-title { - position: absolute; - left: 50%; - top: 0; - transform: translate(-50%, -50%); - width: 310rpx; - height: 86rpx; - } - .b-content { - padding: 72rpx 30rpx 36rpx; - background: #fbf0f3; - box-shadow: 0rpx 14rpx 32rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - border: 2rpx solid rgba(224, 71, 117, 0.52); - } - } - .list { - margin-top: 78rpx; - padding: 76rpx 30rpx; - background: #ffffff; - box-shadow: 0rpx 14rpx 32rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - position: relative; - .l-title { - position: absolute; - left: 50%; - top: 0; - transform: translate(-50%, -50%); - width: 310rpx; - height: 86rpx; - } - .l-tip { - font-size: 32rpx; - color: #333333; - font-weight: bold; - } - .module { - .m-title { - position: relative; - margin: 26rpx 96rpx 0 16rpx; - line-height: 60rpx; - padding: 0 24rpx; - background: linear-gradient(270deg, rgba(242, 125, 173, 0) 0%, rgba(224, 71, 117, 0.87) 57%, #e04775 100%); - font-size: 28rpx; - color: #ffffff; - font-weight: bold; - .num { - position: absolute; - left: 0; - top: 0; - transform: translate(-100%, 0); - width: 60rpx; - height: 60rpx; - background-color: #24d8c8; - text-align: center; - line-height: 60rpx; - &::before { - position: absolute; - top: -6rpx; - left: 0; - content: ""; - width: 0; - height: 0; - border-style: solid; - border-width: 0 0 6rpx 14rpx; - border-color: transparent transparent #007167 transparent; - } - } - } - .m-content { - margin-top: 24rpx; - padding: 32rpx 30rpx; - font-size: 28rpx; - color: #666666; - border-radius: 16rpx; - background-color: #f5f5f5; - } - .ul { - .ol { - margin-top: 34rpx; - font-size: 28rpx; - color: #666666; - .o-title { - font-size: 28rpx; - color: #666666; - font-weight: bold; - margin-bottom: 12rpx; - display: flex; - .o-num { - margin-right: 12rpx; - flex-shrink: 0; - width: 34rpx; - height: 34rpx; - font-size: 24rpx; - color: #ffffff; - background-color: #e04775; - text-align: center; - line-height: 34rpx; - border-radius: 50%; - } - } - &.no-title { - display: flex; - } - } - } - } - .tip { - margin-top: 32rpx; - .t-title { - font-size: 32rpx; - color: #666666; - font-weight: bold; - line-height: 1; - &::before { - margin-right: 16rpx; - display: inline-block; - vertical-align: middle; - content: ""; - width: 10rpx; - height: 34rpx; - background-color: #e04775; - } - } - .t-content { - margin-top: 10rpx; - font-size: 28rpx; - color: #666666; - } - } - } -} diff --git a/src/gift/pages/scoreRule/index.ts b/src/gift/pages/scoreRule/index.ts deleted file mode 100644 index 0c60621..0000000 --- a/src/gift/pages/scoreRule/index.ts +++ /dev/null @@ -1,33 +0,0 @@ -const app = getApp(); - -Page({ - data: { - list: [], - }, - onLoad() { - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom: bottom, - }); - } - app.waitLogin().then(() => { - this.getDetail(); - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-score/get-score-explain", - data: {}, - }).then((res) => { - this.setData({ - list: res, - }); - }); - }, - handleBack() { - wx.navigateBack(); - }, -}); diff --git a/src/gift/pages/scoreRule/index.wxml b/src/gift/pages/scoreRule/index.wxml deleted file mode 100644 index 39c7323..0000000 --- a/src/gift/pages/scoreRule/index.wxml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - {{list[1].content}} - - - {{index+1}} - {{item.title}} - - {{item.content}} - - - - {{subIndex+1}} - {{subItem.title}} - - {{subItem.content}} - - - - - - - {{list[2].content}} - - - {{index+1}} - {{item.title}} - - {{item.content}} - - - - {{subIndex+1}} - {{subItem.title}} - - {{subItem.content}} - - - - - {{list[3].title}} - {{list[3].content}} - - - - diff --git a/src/gift/pages/siteEdit/index.json b/src/gift/pages/siteEdit/index.json deleted file mode 100644 index 4a40dcb..0000000 --- a/src/gift/pages/siteEdit/index.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "navigationBarTitleText": "添加收货地址", - "usingComponents": { - "van-switch": "@vant/weapp/switch/index", - "van-popup": "@vant/weapp/popup/index", - "van-cascader": "@vant/weapp/cascader/index" - } -} diff --git a/src/gift/pages/siteEdit/index.scss b/src/gift/pages/siteEdit/index.scss deleted file mode 100644 index 2d40868..0000000 --- a/src/gift/pages/siteEdit/index.scss +++ /dev/null @@ -1,96 +0,0 @@ -page { - background-color: #f7f7f7; -} - -.page { - padding: 40rpx; - .form { - padding: 0 32rpx; - background-color: #fff; - border-radius: 24rpx; - .row { - padding: 32rpx 0; - display: flex; - align-items: center; - .label { - flex-shrink: 0; - width: 4em; - font-size: 32rpx; - color: #3f3f3f; - font-weight: bold; - } - .content { - flex: 1; - padding-left: 18rpx; - display: flex; - align-items: center; - .input { - flex: 1; - font-size: 32rpx; - } - .place-input { - color: #bbbcbe; - } - .site { - border-left: 2rpx solid rgba(170, 170, 170, 0.3); - padding-left: 16rpx; - font-size: 32rpx; - color: #e04775; - display: flex; - align-items: center; - .icon { - margin-right: 10rpx; - width: 36rpx; - height: 36rpx; - } - } - } - } - .row:not(:last-of-type) { - border-bottom: 1rpx solid #edeff3; - } - } - .default { - margin-top: 16rpx; - padding: 26rpx 32rpx; - background-color: #fff; - border-radius: 24rpx; - display: flex; - align-items: center; - justify-content: space-between; - } - .footer { - padding: 40rpx; - position: fixed; - left: 0; - bottom: 0; - width: 100vw; - box-sizing: border-box; - bottom: 248rpx; - display: flex; - .cancel { - margin-right: 32rpx; - flex-shrink: 0; - width: 248rpx; - height: 96rpx; - border-radius: 48rpx; - box-sizing: border-box; - line-height: 92rpx; - text-align: center; - font-size: 36rpx; - color: #e04775; - border: 2rpx solid #e04775; - } - .submit { - flex: 1; - height: 96rpx; - background: #e04775; - border-radius: 48rpx; - text-align: center; - line-height: 96rpx; - text-align: center; - font-size: 36rpx; - color: #ffffff; - } - } -} diff --git a/src/gift/pages/siteEdit/index.ts b/src/gift/pages/siteEdit/index.ts deleted file mode 100644 index be07b6e..0000000 --- a/src/gift/pages/siteEdit/index.ts +++ /dev/null @@ -1,272 +0,0 @@ -const app = getApp(); - -Page({ - data: { - LAT: "", - LNG: "", - - addressId: "", - receiveUserName: "", - receiveTelephone: "", - address: "", - isDefault: false, - provinceName: "", - provinceId: "", - cityId: "", - cityName: "", - countyId: "", - countyName: "", - - pcc: "", - - cascaderShow: false, - options: [], - areaValue: [] as number[], - cascaderValue: "", - fieldNames: { text: "label", value: "value", children: "children" }, - }, - onLoad(options) { - if (options.id) { - wx.setNavigationBarTitle({ - title: "编辑收货地址", - }); - this.setData({ - addressId: options.id, - }); - } - app.waitLogin().then((_res) => { - this.getArea(); - if (options.id) { - this.getDetail(); - } - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-address/get-address-detail", - data: { - addressId: this.data.addressId, - }, - }).then((res) => { - console.log("res: ", res); - this.setData({ - ...res, - isDefault: res.isDefault == 1 ? true : false, - pcc: `${res.provinceName}/${res.cityName}/${res.countyName}`, - }); - }); - }, - onChange(e) { - this.setData({ - isDefault: e.detail, - }); - }, - getArea() { - wx.ajax({ - method: "GET", - url: "/js/area.json", - isJSON: true, - }).then((res) => { - this.setData({ - options: res.map((item) => { - return { - ...item, - children: item.children.map((item2) => { - return { - label: item2.label, - value: item2.value, - children: item2.children.map((item3) => { - return { - label: item3.label, - value: item3.value, - }; - }), - }; - }), - }; - }), - }); - }); - }, - handleCascader() { - this.setData({ - cascaderShow: true, - }); - }, - onFinish(e: any) { - const selectedOptions = e.detail.selectedOptions; - console.log(selectedOptions); - this.setData({ - cascaderValue: e.detail.value, - areaValue: [selectedOptions[0].value, selectedOptions[1].value, selectedOptions[2].value], - pcc: `${selectedOptions[0].label}/${selectedOptions[1].label}/${selectedOptions[2].label}`, - provinceId: selectedOptions[0].value, - provinceName: selectedOptions[0].label, - cityId: selectedOptions[1].value, - cityName: selectedOptions[1].label, - countyId: selectedOptions[2].value, - countyName: selectedOptions[2].label, - }); - this.onClose(); - }, - onClose() { - this.setData({ - cascaderShow: false, - }); - }, - handleSite() { - const that = this; - wx.getSetting({ - success(res) { - if ( - res.authSetting["scope.userFuzzyLocation"] != undefined && - res.authSetting["scope.userFuzzyLocation"] == true - ) { - //获取当前位置 - that.getFuzzyLocation(); - } else if (res.authSetting["scope.userFuzzyLocation"] == undefined) { - //获取当前位置 - that.getFuzzyLocation(); - } else { - wx.showModal({ - title: "请求授权当前位置", - content: "需要获取您的地理位置,请确认授权", - confirmColor: "#cf5375", - success: function (res) { - if (res.cancel) { - //取消授权 - wx.showToast({ - title: "拒绝授权", - icon: "none", - duration: 1000, - }); - } else if (res.confirm) { - //确定授权,通过wx.openSetting发起授权请求 - wx.openSetting({ - success: function (res) { - if (res.authSetting["scope.userFuzzyLocation"] == true) { - //再次授权,调用wx.getLocation的API - that.getFuzzyLocation(); - } else { - wx.showToast({ - title: "授权失败", - icon: "none", - duration: 1000, - }); - } - }, - }); - } - }, - }); - } - }, - }); - }, - getFuzzyLocation() { - const that = this; - wx.getFuzzyLocation({ - success(res) { - that.setData({ - LNG: res.longitude, - LAT: res.latitude, - }); - that.getLocationInfo(); - }, - fail(err) { - console.log(err); - }, - }); - }, - getLocationInfo() { - wx.ajax({ - method: "GET", - url: "?r=zd/nrdl-hospital/location-info", - data: { - lat: this.data.LAT, - lng: this.data.LNG, - }, - loading: true, - }).then((res) => { - this.setData({ - cityId: res.CityId, - cityName: res.CityName, - countyId: res.CountyId, - countyName: res.CountyName, - provinceId: res.ProvinceId, - provinceName: res.ProvinceName, - - pcc: `${res.ProvinceName}/${res.CityName}/${res.CountyName}`, - }); - }); - }, - handleSubmit() { - const { - receiveUserName, - receiveTelephone, - address, - isDefault, - addressId, - provinceName, - provinceId, - cityId, - cityName, - countyId, - countyName, - } = this.data; - let toast = ""; - if (!receiveUserName) toast = "请输入收货人姓名"; - if (!receiveTelephone) toast = "请输入联系电话"; - if (!provinceName) toast = "请选择所在地区"; - if (!address) toast = "请输入详细地址"; - - const params = { - receiveUserName, - receiveTelephone, - provinceName, - address, - isDefault: isDefault ? 1 : 2, - addressId, - provinceId, - cityId, - cityName, - countyId, - countyName, - }; - wx.ajax({ - method: "POST", - url: "?r=zd/patient-address/save-address", - data: params, - }).then(() => { - wx.navigateBack(); - }); - }, - handleDel() { - wx.showModal({ - title: "确认删除?", - confirmColor: "#DE406A", - success: (res) => { - if (res.confirm) { - wx.ajax({ - method: "POST", - url: "?r=zd/patient-address/del-address", - data: { - addressId: this.data.addressId, - }, - loading: true, - }).then((res) => { - wx.navigateBack({ - success() { - wx.showToast({ - icon: "none", - title: res, - }); - }, - }); - }); - } - }, - }); - }, -}); diff --git a/src/gift/pages/siteEdit/index.wxml b/src/gift/pages/siteEdit/index.wxml deleted file mode 100644 index 1fcb06c..0000000 --- a/src/gift/pages/siteEdit/index.wxml +++ /dev/null @@ -1,80 +0,0 @@ - - - - 收货人 - - - - - - 联系电话 - - - - - - 所在地区 - - - - - 定位 - - - - - 详细地址 - - - - - - - 设置为默认地址 - - - - 删除 - 保存 - - - - - - diff --git a/src/gift/pages/siteList/index.json b/src/gift/pages/siteList/index.json deleted file mode 100644 index d701afc..0000000 --- a/src/gift/pages/siteList/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "地址管理", - "usingComponents": {} -} diff --git a/src/gift/pages/siteList/index.scss b/src/gift/pages/siteList/index.scss deleted file mode 100644 index f26a51a..0000000 --- a/src/gift/pages/siteList/index.scss +++ /dev/null @@ -1,73 +0,0 @@ -page { - background-color: #fafafa; -} -.page { - padding: 34rpx 40rpx 240rpx; - .card { - margin-bottom: 20rpx; - padding: 32rpx; - background: #ffffff; - border-radius: 24rpx; - display: flex; - justify-content: space-between; - align-items: center; - .wrap { - flex: 1; - width: calc(100% - 100rpx); - .title { - display: flex; - align-items: center; - .name { - flex: 1; - font-size: 32rpx; - font-weight: bold; - align-items: center; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - .label { - flex-shrink: 0; - margin-right: 20rpx; - padding: 0 10rpx; - display: inline-block; - vertical-align: middle; - font-size: 24rpx; - line-height: 34rpx; - color: #e04775; - border: 1rpx solid #e04775; - border-radius: 10rpx; - } - } - .content { - margin-top: 12rpx; - font-size: 28rpx; - color: #bbbcbe; - } - } - .edit { - margin-left: 15rpx; - width: 32rpx; - flex-shrink: 0; - .edit-img { - width: 32rpx; - height: 32rpx; - } - } - } - - .submit { - position: fixed; - bottom: 120rpx; - left: 40rpx; - height: 96rpx; - width: calc(100% - 80rpx); - background: #e04775; - border-radius: 48rpx; - text-align: center; - line-height: 96rpx; - text-align: center; - font-size: 36rpx; - color: #ffffff; - } -} diff --git a/src/gift/pages/siteList/index.ts b/src/gift/pages/siteList/index.ts deleted file mode 100644 index f5b1207..0000000 --- a/src/gift/pages/siteList/index.ts +++ /dev/null @@ -1,64 +0,0 @@ -const app = getApp(); - -Page({ - data: { - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }, - onShow() { - app.waitLogin().then(() => { - this.getList(); - }); - }, - getList(newPage = 1) { - wx.ajax({ - method: "GET", - url: "?r=zd/patient-address/get-list", - data: { - page: newPage, - }, - }).then((res) => { - let list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list: list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - handleSelect(e) { - const { index } = e.currentTarget.dataset; - let pages = getCurrentPages(); - - let prevPage = pages[pages.length - 2]; - prevPage.setData({ - select: true, - addressDetail: this.data.list[index], - }); - wx.navigateBack(); - }, - handleEdit(e) { - const { id } = e.currentTarget.dataset; - wx.navigateTo({ - url: `/gift/pages/siteEdit/index?id=${id}`, - }); - }, - handleAdd() { - wx.navigateTo({ - url: "/gift/pages/siteEdit/index", - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, -}); diff --git a/src/gift/pages/siteList/index.wxml b/src/gift/pages/siteList/index.wxml deleted file mode 100644 index ebf7a1d..0000000 --- a/src/gift/pages/siteList/index.wxml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 默认 - {{item.provinceName}}{{item.cityName}}{{item.countyName}}{{item.address}} - - {{item.receiveUserName}} {{item.receiveTelephone}} - - - - - - - - 新增地址 - diff --git a/src/gift/pages/vipCert/index.json b/src/gift/pages/vipCert/index.json deleted file mode 100644 index d154acb..0000000 --- a/src/gift/pages/vipCert/index.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "navigationBarTitleText": "", - "navigationStyle": "custom", - "disableSwipeBack": true, - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "van-divider": "@vant/weapp/divider/index", - "uploadFile": "/components/uploadFile/index" - } -} diff --git a/src/gift/pages/vipCert/index.scss b/src/gift/pages/vipCert/index.scss deleted file mode 100644 index 7b3d390..0000000 --- a/src/gift/pages/vipCert/index.scss +++ /dev/null @@ -1,189 +0,0 @@ -.page { - position: relative; - box-sizing: border-box; - background-color: #fff; - .bg { - width: 100%; - } - .page-container { - padding-bottom: 80rpx; - position: absolute; - width: 100%; - top: 0; - left: 0; - display: flex; - flex-direction: column; - .page-title { - margin-top: 86rpx; - font-size: 48rpx; - color: #333333; - font-weight: bold; - text-align: center; - } - .sub-title { - margin-top: 32rpx; - font-size: 28rpx; - color: #aaaaaa; - text-align: center; - } - .content { - margin: 40rpx auto 0; - padding: 40rpx 64rpx; - width: 654rpx; - box-sizing: border-box; - background: #ffffff; - box-shadow: 0rpx 4rpx 24rpx 0rpx rgba(0, 0, 0, 0.09); - border: 2rpx solid rgba(224, 71, 117, 0.25); - border-radius: 24rpx; - .c-title { - font-size: 30rpx; - color: #666666; - text-align: center; - .blod { - font-weight: bold; - color: #cf5375; - } - } - .c-link { - margin-top: 24rpx; - font-size: 30rpx; - color: #666666; - text-align: center; - } - .upload { - margin-top: 46rpx; - .upload-container { - position: relative; - width: 510rpx; - height: 510rpx; - border: 2rpx dotted #cf5375; - border-radius: 24rpx; - background: rgba(207, 83, 117, 0.06); - .icon { - display: block; - margin: 148rpx auto 0; - width: 141rpx; - height: 161rpx; - } - .name { - margin-top: 36rpx; - font-size: 28rpx; - font-weight: bold; - color: #cf5375; - text-align: center; - } - .diagnose-img { - width: 100%; - height: 100%; - border-radius: inherit; - } - .ai { - position: absolute; - bottom: -20rpx; - left: calc(50% - 100rpx); - width: 200rpx; - height: 40rpx; - font-size: 28rpx; - line-height: 42rpx; - color: #fff; - text-align: center; - background: #23bbad; - border-radius: 20rpx 20rpx 20rpx 20rpx; - } - .scan { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 80rpx; - background: linear-gradient(0deg, #ec7095 0%, rgba(236, 112, 177, 0) 100%); - border-radius: 0rpx 0rpx 0rpx 0rpx; - opacity: 0.5; - animation: 3s ease-in 1s infinite reverse both running slidein; - @keyframes slidein { - 0% { - top: 0; - } - 50% { - top: 430rpx; - } - 100% { - top: 0rpx; - } - } - } - .error { - position: absolute; - bottom: 0; - left: 0; - padding: 8rpx 20rpx; - width: 100%; - box-sizing: border-box; - font-size: 24rpx; - color: #fff; - white-space: pre-line; - text-align: center; - background-color: #bb232c; - } - } - } - } - .footer { - flex-shrink: 0; - margin: 81rpx 48rpx 0; - box-sizing: border-box; - display: flex; - > view:not(:last-of-type), - > image { - margin-right: 30rpx; - } - .next { - flex: 1; - text-align: center; - height: 88rpx; - line-height: 88rpx; - text-align: center; - border: 2rpx solid #e04775; - border-radius: 24rpx; - font-size: 34rpx; - font-weight: bold; - background-color: #e04775; - color: #fff; - &.active { - background-color: #dddddd; - border-color: #dddddd; - } - } - .btn1 { - flex: 1; - height: 80rpx; - border-radius: 24rpx; - opacity: 1; - border: 2rpx solid #e04775; - font-size: 34rpx; - color: #e04775; - text-align: center; - line-height: 80rpx; - font-weight: bold; - box-sizing: border-box; - } - .btn2 { - flex: 1; - border-radius: 24rpx; - text-align: center; - height: 80rpx; - line-height: 80rpx; - font-size: 34rpx; - color: #fff; - font-weight: bold; - background-color: #cf5375; - } - .msg { - flex: 1; - font-size: 28rpx; - color: #e04775; - text-align: center; - } - } - } -} diff --git a/src/gift/pages/vipCert/index.ts b/src/gift/pages/vipCert/index.ts deleted file mode 100644 index e5ae5bf..0000000 --- a/src/gift/pages/vipCert/index.ts +++ /dev/null @@ -1,134 +0,0 @@ -const app = getApp(); - -Page({ - data: { - diagnoseImg: "", - error: false, - errorText: "", - aiPass: 0, - verify: false, - audit: false, - - zdUserInfo: app.globalData.zdUserInfo, - Hash: "", - }, - onLoad() { - app.waitLogin({}).then(() => { - app.getZdUserInfo(this, true, (zdUserInfo) => { - if (zdUserInfo.UserType == 4) { - wx.reLaunch({ - url: "/patient/pages/my/index", - }); - } - app.zdPermissionVerification(3, 0, `/patient/pages/index/index`); - }); - }); - }, - handleSetData(e: WechatMiniprogram.CustomEvent) { - const imgUrl = e.detail[0].imgUrl; - this.setData({ - diagnoseImg: imgUrl, - audit: true, - }); - this.handleAiPass(imgUrl); - }, - handleAiPass(imgUrl: string) { - wx.ajax({ - method: "POST", - url: "?r=zd/common/medicine-image-verify", - data: { - ImageUrl: imgUrl, - }, - }).then((res) => { - const { code, Hash } = res; - this.setData({ - Hash, - }); - if (code === 0) { - this.setData({ - audit: false, - verify: true, - aiPass: 1, - }); - this.handleSubmit(); - } else { - const errorText = { - 1001: "智能审核失败:图片模糊无法识别", - 1002: "智能审核失败:图片模糊无法识别", - 2001: "智能审核失败:疑似提交重复图片", - 2002: '智能审核失败:您提交图片中不包含"艾加莫德"相关字样', - }; - this.setData({ - audit: false, - error: true, - errorText: errorText[code] || errorText[1001], - }); - } - }); - }, - handleSubmit() { - const { registrationSource, registChannel, regBusinessId } = app.globalData; - const { diagnoseImg, error, zdUserInfo, Hash } = this.data; - let urlKey = ""; - - if (error) { - urlKey = zdUserInfo.isFollow ? "nopending" : "pending"; - } else { - urlKey = "reslove"; - } - - const navUrl = { - reslove: "/patient/pages/index/index", - pending: "/gift/pages/vipPending/index", - nopending: "/gift/pages/vimStartPending/index", - }[urlKey] as string; - - wx.ajax({ - method: "POST", - url: "?r=zd/account/upload-use-drugs-audit-img", - data: { - diagnoseImg, - aiPass: this.data.aiPass, - registrationSource, - registChannel, - regBusinessId, - imgHash: Hash, - }, - loading: true, - }).then((_res) => { - app.getZdUserInfo(this, true, () => { - wx.reLaunch({ - url: navUrl, - }); - }); - }); - }, - handleReset() { - this.setData({ - diagnoseImg: "", - error: false, - errorText: "", - aiPass: 0, - verify: false, - }); - }, - handleVisitors() { - app.globalData.anyWhere = true; - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, - handleVip() { - wx.navigateTo({ - url: "/patient/pages/vipLogin/index", - }); - }, - handleBack() { - wx.navigateBack(); - }, - handleVipScan() { - wx.navigateTo({ - url: "/patient/pages/vipLogin/index", - }); - }, -}); diff --git a/src/gift/pages/vipCert/index.wxml b/src/gift/pages/vipCert/index.wxml deleted file mode 100644 index e464403..0000000 --- a/src/gift/pages/vipCert/index.wxml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 专属身份认证 - 诊断证明审核通过后,即可享受平台全部服务 - - - 请上传有「艾加莫德」字样的 - - 处方单或购药发票 - - - - - 点击上传 - - - - - - 智能审核中 - {{errorText}} - - - - - - 提交人工审核 - 重新提交 - - - 您也可通过扫药盒码认证> - - - - diff --git a/src/gift/pages/vipPending/index.json b/src/gift/pages/vipPending/index.json deleted file mode 100644 index 5808d88..0000000 --- a/src/gift/pages/vipPending/index.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "navigationBarTitleText": "", - "navigationStyle": "custom", - "disableSwipeBack": true, - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "van-divider": "@vant/weapp/divider/index" - } -} diff --git a/src/gift/pages/vipPending/index.scss b/src/gift/pages/vipPending/index.scss deleted file mode 100644 index 200d11d..0000000 --- a/src/gift/pages/vipPending/index.scss +++ /dev/null @@ -1,100 +0,0 @@ -.page { - position: relative; - box-sizing: border-box; - background-color: #fff; - .bg { - width: 100%; - } - .page-container { - padding-bottom: 80rpx; - position: absolute; - width: 100%; - top: 0; - left: 0; - display: flex; - flex-direction: column; - .navbar { - flex-shrink: 0; - padding: 0 20rpx 0; - display: flex; - align-items: center; - font-size: 40rpx; - color: #cf5375; - font-style: italic; - font-weight: bold; - .icon { - margin-right: 9rpx; - width: 42rpx; - height: 46rpx; - } - } - .page-title { - margin-top: 86rpx; - font-size: 48rpx; - color: #333333; - font-weight: bold; - text-align: center; - } - .sub-title { - margin-top: 32rpx; - font-size: 28rpx; - color: #aaaaaa; - text-align: center; - } - .content { - margin: 40rpx auto 0; - width: 654rpx; - box-sizing: border-box; - background: #ffffff; - box-shadow: 0rpx 4rpx 24rpx 0rpx rgba(0, 0, 0, 0.09); - border: 2rpx solid rgba(224, 71, 117, 0.25); - border-radius: 24rpx; - padding-bottom: 60rpx; - .c-header { - border-radius: 24rpx 24rpx 0 0; - background-color: #666666; - padding: 18rpx 20rpx; - text-align: center; - font-size: 28rpx; - color: #fff; - line-height: 42rpx; - } - .code { - margin: 125rpx auto 0; - display: block; - width: 300rpx; - height: 300rpx; - } - .tip{ - margin-top: 87rpx; - font-size: 28rpx; - color: #666666; - text-align: center; - line-height: 48rpx; - } - } - .footer { - flex-shrink: 0; - margin: 81rpx 48rpx 0; - box-sizing: border-box; - display: flex; - > view:not(:last-of-type), - > image { - margin-right: 30rpx; - } - .next { - flex: 1; - text-align: center; - height: 88rpx; - line-height: 88rpx; - text-align: center; - border: 2rpx solid #e04775; - border-radius: 24rpx; - font-size: 34rpx; - font-weight: bold; - background-color: #e04775; - color: #fff; - } - } - } -} diff --git a/src/gift/pages/vipPending/index.ts b/src/gift/pages/vipPending/index.ts deleted file mode 100644 index 99bc5fb..0000000 --- a/src/gift/pages/vipPending/index.ts +++ /dev/null @@ -1,34 +0,0 @@ -const app = getApp(); - -Page({ - data: { - qrCode: "", - }, - onLoad() { - app.waitLogin().then((res) => { - this.getCode(); - }); - }, - handleVisitors() { - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, - getCode() { - wx.ajax({ - method: "GET", - url: "?r=zd/common/get-channel-wx-code", - data: { - ChannelType: "11", - Id: "", - }, - }).then((res) => { - this.setData({ - qrCode: res, - }); - }); - }, - handleBack() { - wx.navigateBack(); - }, -}); diff --git a/src/gift/pages/vipPending/index.wxml b/src/gift/pages/vipPending/index.wxml deleted file mode 100644 index 2b956f2..0000000 --- a/src/gift/pages/vipPending/index.wxml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 提交成功,审核中 - 诊断证明审核通过后,即可享受平台全部服务 - - - 人工审核周期24小时~48小时 - - - - - 关注"gMG给力加油站"公众号 获取审核进度 - 还可以了解更多重症肌无力专业知识 - - - - 回到首页 - - - diff --git a/src/gift/pages/vipReject/index.json b/src/gift/pages/vipReject/index.json deleted file mode 100644 index 5808d88..0000000 --- a/src/gift/pages/vipReject/index.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "navigationBarTitleText": "", - "navigationStyle": "custom", - "disableSwipeBack": true, - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "van-divider": "@vant/weapp/divider/index" - } -} diff --git a/src/gift/pages/vipReject/index.scss b/src/gift/pages/vipReject/index.scss deleted file mode 100644 index 2d7fede..0000000 --- a/src/gift/pages/vipReject/index.scss +++ /dev/null @@ -1,142 +0,0 @@ -.page { - position: relative; - box-sizing: border-box; - background-color: #fff; - .bg { - width: 100%; - } - .page-container { - position: absolute; - top: 0; - left: 0; - width: 100%; - min-height: 100vh; - display: flex; - flex-direction: column; - padding-bottom: 76rpx; - .navbar { - flex-shrink: 0; - padding: 0 20rpx 0; - display: flex; - align-items: center; - font-size: 40rpx; - color: #cf5375; - font-style: italic; - font-weight: bold; - .icon { - flex-shrink: 0; - margin-right: 9rpx; - width: 42rpx; - height: 46rpx; - } - } - .tip { - position: relative; - margin: 180rpx auto 0; - width: 510rpx; - padding: 20rpx 70rpx; - box-sizing: border-box; - background-color: #bb232c; - border-radius: 24rpx; - word-break: break-all; - .icon { - margin-right: 16rpx; - width: 48rpx; - height: 48rpx; - vertical-align: bottom; - } - .text { - font-size: 26rpx; - color: #fff; - line-height: 48rpx; - } - &::after { - position: absolute; - // bottom: -13.5px; - bottom: 0; - left: 50%; - transform: translate(-50%, 90%); - content: ""; - width: 0; - height: 0; - border-style: solid; - border-width: 12.5px 8px 0 8px; - border-color: #bb232c transparent transparent transparent; - } - } - .page-icon { - margin: 58rpx auto 0; - display: block; - width: 280rpx; - height: 280rpx; - border-radius: 50%; - } - .page-title { - margin-top: 64rpx; - font-size: 56rpx; - color: #333333; - font-weight: bold; - text-align: center; - } - .sub-title { - margin-top: 32rpx; - font-size: 32rpx; - color: #aaa; - text-align: center; - } - .footer { - margin: 179rpx auto 0; - flex-shrink: 0; - width: 622rpx; - box-sizing: border-box; - display: flex; - > view:not(:last-of-type), - > image { - margin-right: 30rpx; - } - .next { - flex: 1; - text-align: center; - height: 88rpx; - line-height: 88rpx; - text-align: center; - border: 2rpx solid #e04775; - border-radius: 24rpx; - font-size: 34rpx; - font-weight: bold; - background-color: #e04775; - color: #fff; - } - } - .divider { - margin: 48rpx auto 0; - width: 300rpx; - } - .ohter { - margin-top: 48rpx; - display: flex; - justify-content: center; - .col { - margin: 0 48rpx; - padding: 0 20rpx; - height: 48rpx; - border-radius: 24rpx; - background: #eeeeee; - font-size: 24rpx; - color: #666666; - display: flex; - align-items: center; - justify-content: center; - &::after { - border: none; - outline: none; - } - .icon { - margin-right: 12rpx; - width: 48rpx; - height: 48rpx; - } - } - } - } -} diff --git a/src/gift/pages/vipReject/index.ts b/src/gift/pages/vipReject/index.ts deleted file mode 100644 index a21f603..0000000 --- a/src/gift/pages/vipReject/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -const app = getApp(); - -Page({ - data: {}, - onLoad() { - app.waitLogin().then((res) => { - app.getZdUserInfo(this, true, (res) => { - console.log(res); - }); - }); - }, - handleSubmit() { - wx.reLaunch({ - url: "/gift/pages/vipCert/index", - }); - }, - handleVisitors() { - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, - handleBack() { - wx.navigateBack(); - }, -}); diff --git a/src/gift/pages/vipReject/index.wxml b/src/gift/pages/vipReject/index.wxml deleted file mode 100644 index e6b43a3..0000000 --- a/src/gift/pages/vipReject/index.wxml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - 未通过原因:{{zdUserInfo.UseDrugsRejectReason}} - - - 审核未通过 - 很遗憾您的审核未通过 - - 重新提交 - - - 或者 - - - - - 回到首页 - - - - diff --git a/src/gift/pages/vipStartPending/index.json b/src/gift/pages/vipStartPending/index.json deleted file mode 100644 index 5808d88..0000000 --- a/src/gift/pages/vipStartPending/index.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "navigationBarTitleText": "", - "navigationStyle": "custom", - "disableSwipeBack": true, - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "van-divider": "@vant/weapp/divider/index" - } -} diff --git a/src/gift/pages/vipStartPending/index.scss b/src/gift/pages/vipStartPending/index.scss deleted file mode 100644 index 4ef35a9..0000000 --- a/src/gift/pages/vipStartPending/index.scss +++ /dev/null @@ -1,77 +0,0 @@ -.page { - position: relative; - box-sizing: border-box; - background-color: #fff; - .bg { - width: 100%; - } - .page-container { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100vh; - display: flex; - flex-direction: column; - .navbar { - flex-shrink: 0; - padding: 0 20rpx 0; - display: flex; - align-items: center; - font-size: 40rpx; - color: #cf5375; - font-style: italic; - font-weight: bold; - .icon { - margin-right: 9rpx; - width: 42rpx; - height: 46rpx; - } - } - .page-icon { - margin: 240rpx auto 0; - display: block; - width: 280rpx; - height: 280rpx; - } - .page-title { - margin-top: 64rpx; - font-size: 48rpx; - color: #333333; - font-weight: bold; - text-align: center; - } - .sub-title { - margin-top: 32rpx; - font-size: 28rpx; - color: #666; - text-align: center; - } - .footer { - position: absolute; - left: 64rpx; - bottom: 62rpx; - flex-shrink: 0; - width: 622rpx; - box-sizing: border-box; - display: flex; - > view:not(:last-of-type), - > image { - margin-right: 30rpx; - } - .next { - flex: 1; - text-align: center; - height: 88rpx; - line-height: 88rpx; - text-align: center; - border: 2rpx solid #e04775; - border-radius: 24rpx; - font-size: 34rpx; - font-weight: bold; - background-color: #e04775; - color: #fff; - } - } - } -} diff --git a/src/gift/pages/vipStartPending/index.ts b/src/gift/pages/vipStartPending/index.ts deleted file mode 100644 index cbdcd9b..0000000 --- a/src/gift/pages/vipStartPending/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -const app = getApp(); - -Page({ - data: {}, - onLoad() {}, - handleVisitors() { - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, - handleBack() { - wx.navigateBack(); - }, -}); diff --git a/src/gift/pages/vipStartPending/index.wxml b/src/gift/pages/vipStartPending/index.wxml deleted file mode 100644 index ac66a9c..0000000 --- a/src/gift/pages/vipStartPending/index.wxml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 提交成功,审核中 - - 人工审核周期24小时~48小时 - - - - 回到首页 - - - diff --git a/src/pages/d_interactiveDoctor/index.ts b/src/pages/d_interactiveDoctor/index.ts index 3cc7c8d..cefd8c0 100644 --- a/src/pages/d_interactiveDoctor/index.ts +++ b/src/pages/d_interactiveDoctor/index.ts @@ -436,40 +436,6 @@ Page({ icon: 'none', }) }, - handleReferral() { - wx.showModal({ - title: '', - content: '您将给患者发送复诊时间填写卡片?', - confirmText: '发送', - confirmColor: '#8c75d0', - success: (res) => { - if (res.confirm) { - wx.ajax({ - method: 'POST', - url: '?r=zd/doctor/message-interact/send-re-visit', - data: { - patientId: this.data.patientId, - }, - }).then(() => { - this.setData({ - messageList: [ - ...this.data.messageList, - { - msgId: '', - msgContentType: '8', - msgVisitTime: '', - msgContent: '', - msgFromType: '2', - msgCreateTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), - }, - ], - }) - this.handleView() - }) - } - }, - }) - }, handleHideKeyboard() { if (this.data.inputShow) { this.setData({ diff --git a/src/patient/pages/doctorDetailBak/index.json b/src/patient/pages/doctorDetailBak/index.json deleted file mode 100644 index 4ae25c9..0000000 --- a/src/patient/pages/doctorDetailBak/index.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "van-icon": "@vant/weapp/icon/index", - "van-tab": "@vant/weapp/tab/index", - "van-tabs": "@vant/weapp/tabs/index" - } -} diff --git a/src/patient/pages/doctorDetailBak/index.scss b/src/patient/pages/doctorDetailBak/index.scss deleted file mode 100644 index 19c7bb2..0000000 --- a/src/patient/pages/doctorDetailBak/index.scss +++ /dev/null @@ -1,116 +0,0 @@ -.page { - background-color: #fafafa; - - .card { - margin: 32rpx 30rpx 32rpx; - padding: 0 32rpx 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - border: 2rpx solid #ebecee; - .c-header { - display: flex; - .avatar { - margin-top: -60rpx; - margin-right: 18rpx; - flex-shrink: 0; - width: 140rpx; - height: 140rpx; - border-radius: 50%; - } - .wrap { - padding: 20rpx 0 0; - .name { - font-size: 44rpx; - color: #484848; - } - } - } - .hostipal { - margin-top: 32rpx; - padding: 32rpx; - background-color: #f7f6f6; - border-radius: 20rpx; - .title { - display: flex; - align-items: center; - .name { - font-size: 28rpx; - color: #484848; - word-break: break-all; - line-height: 42rpx; - } - .tag { - flex-shrink: 0; - display: inline-block; - margin-left: 12rpx; - padding: 6rpx 12rpx; - font-size: 22rpx; - line-height: 1; - color: #ffffff; - background: #ffc137; - border-radius: 8rpx; - } - } - .content { - margin-top: 16rpx; - display: flex; - align-items: center; - .inner { - flex: 1; - .site { - flex: 1; - font-size: 24rpx; - color: #9b9ea6; - } - .site-num { - flex-shrink: 0; - font-size: 24rpx; - color: #9b9ea6; - } - } - .options { - flex-shrink: 0; - .icon { - padding: 8rpx; - flex-shrink: 0; - margin-left: 14rpx; - width: 30rpx; - height: 30rpx; - background: #ffffff; - border-radius: 50%; - box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.08); - } - } - } - } - .content { - margin-top: 32rpx; - .row { - margin-top: 16rpx; - display: flex; - align-items: flex-start; - .tag { - margin-right: 16rpx; - flex-shrink: 0; - padding: 8rpx 16rpx; - font-size: 24rpx; - color: #e04775; - line-height: 1; - background: #FCF2F6; - border-radius: 8rpx; - border: 2rpx solid #e04775; - } - .p { - font-size: 28rpx; - color: #484848; - &.ellipsis { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - } - } - } - } - } -} diff --git a/src/patient/pages/doctorDetailBak/index.ts b/src/patient/pages/doctorDetailBak/index.ts deleted file mode 100644 index a9749f5..0000000 --- a/src/patient/pages/doctorDetailBak/index.ts +++ /dev/null @@ -1,144 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {} as any, - LNG: "" as number | string, - LAT: "" as number | string, - pagination: { - page: 1, - pages: 1, - count: 1, - }, - }, - onLoad(options) { - app.zdWaitLogin().then((_res) => { - this.setData({ - id: options.id, - }); - this.handleToggleSite(); - }); - }, - handleToggleSite() { - const that = this; - if (!this.data.LNG) { - wx.getSetting({ - success(res) { - if ( - res.authSetting["scope.userFuzzyLocation"] != undefined && - res.authSetting["scope.userFuzzyLocation"] == true - ) { - //获取当前位置 - that.getFuzzyLocation(); - } else if (res.authSetting["scope.userFuzzyLocation"] == undefined) { - //获取当前位置 - that.getFuzzyLocation(); - } else { - wx.showModal({ - title: "请求授权当前位置", - content: "需要获取您的地理位置,请确认授权", - confirmColor: "#cf5375", - success: function (res) { - if (res.cancel) { - //取消授权 - wx.showToast({ - title: "拒绝授权", - icon: "none", - duration: 1000, - }); - } else if (res.confirm) { - //确定授权,通过wx.openSetting发起授权请求 - wx.openSetting({ - success: function (res) { - if (res.authSetting["scope.userFuzzyLocation"] == true) { - // wx.showToast({ - // title: '授权成功', - // icon: 'success', - // duration: 1000 - // }) - //再次授权,调用wx.getLocation的API - that.getFuzzyLocation(); - } else { - // wx.showToast({ - // title: '授权失败', - // icon: 'none', - // duration: 1000 - // }) - } - }, - }); - } - }, - }); - } - }, - }); - } else { - that.setData({ - LNG: "", - LAT: "", - }); - this.getDetail(); - } - }, - getFuzzyLocation() { - const that = this; - wx.getFuzzyLocation({ - success(res) { - console.log(res); - that.setData({ - LNG: res.longitude, - LAT: res.latitude, - }); - that.getDetail(); - }, - fail(err) { - console.log(err); - }, - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/doctor/detail", - data: { - Id: this.data.id, - lng: this.data.LNG, - lat: this.data.LAT, - }, - }).then((res) => { - this.setData({ - detail: { - ...res, - weekName: (res.Clinic ? res.Clinic : []).map((subItem: { weekday: string | number; timeType: string | number }) => { - const week = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]; - const timeDay = { 1: "上午", 2: "下午" }; - return `${week[Number(subItem.weekday)-1]}${timeDay[subItem.timeType]}`; - }).join(","), - }, - }); - }); - }, - handlePhone() { - const { detail } = this.data; - wx.makePhoneCall({ - phoneNumber: detail.Telephone, - }); - }, - handleOpenMap() { - const { - detail: { hospital }, - } = this.data; - wx.openLocation({ - latitude: hospital.LAT, - longitude: hospital.LNG, - name: hospital.Name, - address:`${hospital.ProvinceName}${hospital.CityName}${hospital.AreaName}${hospital.Address}` - }); - }, - handleBack() { - wx.navigateBack(); - }, - onPageScroll() {}, -}); diff --git a/src/patient/pages/doctorDetailBak/index.wxml b/src/patient/pages/doctorDetailBak/index.wxml deleted file mode 100644 index 26443d8..0000000 --- a/src/patient/pages/doctorDetailBak/index.wxml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - {{detail.Name}} - - - - - {{detail.hospital.Name}} - - {{detail.hospital.HospitalClassificationName}}{{detail.hospital.HospitalLevelName}} - - - - - - {{detail.hospital.ProvinceName}}{{detail.hospital.CityName}}{{detail.hospital.CountyName}}{{detail.hospital.Address}} - - {{detail.hospital.dist}} - - - - - - - - - - 医生简介 - {{detail.Introduce}} - - - 出诊时间 - {{detail.weekName}} - - - - diff --git a/src/patient/pages/index/index.json b/src/patient/pages/index/index.json index 4bc67d8..6951f0f 100644 --- a/src/patient/pages/index/index.json +++ b/src/patient/pages/index/index.json @@ -5,7 +5,6 @@ "navbar": "/components/navbar/index", "van-icon": "@vant/weapp/icon/index", "toast": "/components/toast/index", - "referralFrom": "/components/referralFrom/index", "patient-tab-bar": "/components/patient-tab-bar/index" } } diff --git a/src/patient/pages/index/index.ts b/src/patient/pages/index/index.ts index 162b065..b7edcbf 100644 --- a/src/patient/pages/index/index.ts +++ b/src/patient/pages/index/index.ts @@ -9,7 +9,6 @@ Page({ configList: [], infoList: [] as any, - storyList: [], zdUserInfo: {} as any, anyWhere: false, regGuide: true, @@ -26,18 +25,11 @@ Page({ liveDownList: [], - detail: {}, - - referralFromShow: false, - publicCard: false, - // toastShow: true, // toastType: "doubleStandards", - // toastType: "vipScan", // toastType: "healthCare", // toastType: "aldAlert", // toastType:"dedicatedDoctor", - // toastType: 'referral-toast', // toastType: 'public-toast', // toastType: 'drug-guide', @@ -90,7 +82,6 @@ Page({ app.getZdUserInfo(this, true, (zdUserInfo) => { this.setData({ zdUserInfo, - publicCard: zdUserInfo.isShowFollowGuide == 1, }) if (zdUserInfo.ExclusiveDoctorId) { app.mpBehavior({ PageName: 'PG_PatientHomeDoctorCard' }) @@ -101,10 +92,6 @@ Page({ if (zdUserInfo.ExclusiveDoctorId > 0) { this.getUnreadCount() } - - if (zdUserInfo.UserType == 4) { - this.getLastRecord() - } }) }) }, @@ -161,20 +148,6 @@ Page({ }) }) }, - getLastRecord() { - wx.ajax({ - method: 'GET', - url: '?r=zd/medication/last-record', - }).then((res) => { - this.setData({ - detail: { - weekName: dayjs(res.InjectionDate).format('ddd'), - days: dayjs().diff(res.InjectionDate, 'day'), - ...res, - }, - }) - }) - }, getConfig(zdUserInfo: any) { let UserType = zdUserInfo.UserType if (UserType <= 2) { @@ -191,15 +164,6 @@ Page({ return subItem.showStatus == 1 }) } - // if (item.name === 'BANNER-MINIDOVTOR') { - // item.subList = item.subList - // .filter((subItem: any) => { - // return subItem.linkUrl !== 'MINIDOCTOR' || zdUserInfo.EntryThreePeriod === 1 - // }) - // .filter((subItem: any) => { - // return subItem.linkUrl !== 'MINIDOCTOR-1.0' || zdUserInfo.EntryTwoPeriod === 1 - // }) - // } return item }) this.setData({ @@ -209,9 +173,6 @@ Page({ if (item.code == 'article') { this.getInfoList(item.configId) } - if (item.code == 'story') { - this.getStoryList(item.configId) - } if (item.code == 'adl') { this.getQol() } @@ -234,13 +195,6 @@ Page({ }, }).then((_res) => {}) }, - setBannerClick() { - wx.ajax({ - method: 'POST', - url: '?r=zd/nrdl/add-banner-click-record', - data: {}, - }) - }, getInfoList(configId: string) { wx.ajax({ method: 'GET', @@ -255,20 +209,6 @@ Page({ }) }) }, - getStoryList(configId: string) { - wx.ajax({ - method: 'GET', - url: '?r=zd/story/index-list', - data: { - count: 0, - ConfigId: configId, - }, - }).then((res) => { - this.setData({ - storyList: res.list, - }) - }) - }, getQol() { wx.ajax({ method: 'GET', @@ -323,12 +263,6 @@ Page({ app.mpBehavior({ PageName: 'BTN_PatientHomeContentCard' }) } - if (url === 'NRDL') { - this.setBannerClick() - this.handleNRDL() - return - } - if (url.includes('loginState')) { url = url + encodeURIComponent(app.globalData.loginState) wx.navigateTo({ @@ -350,96 +284,9 @@ Page({ handleReg() { app.zdPermissionVerification(3, 0, '') }, - handleMiniDoctor(e) { - const { link } = e.currentTarget.dataset - let period = '' - if (link === 'MINIDOCTOR-1.0') { - period = '2' - } - wx.navigateTo({ - url: `/patient/pages/webview/index?period=${period}`, - }) - }, - handleQuestion() { - app.zdPermissionVerification(2, 11, `/patient/pages/repository/index`).then(() => { - const webviewUrl = encodeURIComponent( - `${app.globalData.url}/zdcare/#/info?loginState=${app.globalData.loginState}`, - ) - wx.navigateTo({ - url: `/patient/pages/webview/index?url=${webviewUrl}`, - }) - }) - }, - handleSlider() { - wx.ajax({ - method: 'POST', - url: '?r=zd/nrdl/add-slide-click-record', - data: {}, - }) - this.handleNRDL() - }, - handleNRDL() { - app.zdPermissionVerification(3, 12, `/patient/pages/index/index`).then(() => { - wx.navigateTo({ - url: `/patient/pages/nrdl/index`, - }) - // if (this.data.zdUserInfo.has7DayAdl === 1) { - // wx.navigateTo({ - // url: `/patient/pages/nrdl/index`, - // }); - // } else { - // this.setData({ - // toastShow: true, - // toastType: "ndrlAldAlert", - // }); - // } - }) - }, - routerVipTo() { - const { MedicineAuditSwitch, UseDrugsAuditStatus, isFollow } = this.data.zdUserInfo - if (MedicineAuditSwitch === '0') { - wx.navigateTo({ - url: '/patient/pages/vipLogin/index', - }) - } - else if (MedicineAuditSwitch === '1') { - const pendPath = { - 0: '/patient/pages/vipPending/index', - 1: '/patient/pages/vipStartPending/index', - }[isFollow] - const url = { - 1: pendPath, - 2: '/patient/pages/vipReject/index', - }[UseDrugsAuditStatus] - wx.navigateTo({ - url: url || '/patient/pages/vipCert/index', - }) - } - else { - wx.showToast({ - icon: 'none', - title: '工程师正在努力建设中,敬请期待!', - }) - } - }, handleToastOk() { const { toastType } = this.data - if (toastType === 'vipScan') { - this.routerVipTo() - this.handleToastCancel() - } - else if (toastType === 'aldAlert') { - wx.navigateTo({ - url: '/patient/pages/adl/index', - }) - this.handleToastCancel() - } - else if (toastType === 'healthCare') { - this.setPopupInfo() - this.handleNRDL() - this.handleToastCancel() - } - else if (toastType === 'ndrlAldAlert') { + if (toastType === 'ndrlAldAlert') { wx.navigateTo({ url: '/patient/pages/adl/index?nrdl=1', }) @@ -465,17 +312,6 @@ Page({ }) this.handleToastCancel(null, false) } - else if (toastType === 'referral-toast') { - this.setData({ - referralFromShow: true, - }) - wx.ajax({ - method: 'POST', - url: '?r=zd/re-visit/update-popup-show-status', - data: {}, - }) - this.handleToastCancel(null, false) - } else if (toastType === 'drug-guide') { wx.ajax({ method: 'POST', @@ -509,13 +345,6 @@ Page({ }, }) } - else if (toastType === 'referral-toast') { - wx.ajax({ - method: 'POST', - url: '?r=zd/re-visit/update-popup-show-status', - data: {}, - }) - } else if (toastType === 'drug-guide' && sure) { wx.ajax({ method: 'POST', @@ -530,31 +359,6 @@ Page({ toastParams: '', }) }, - handlePublic() { - this.setData({ - toastShow: true, - toastType: 'public-toast', - toastParams: {}, - }) - this.handlePublicClose() - }, - handlePublicClose() { - this.setData({ - publicCard: false, - }) - wx.ajax({ - method: 'POST', - url: '?r=zd/account/add-user-subscribe-guide-record', - data: {}, - }) - }, - handleMp(e: any) { - const { code } = e.currentTarget.dataset - const PageName = { - spread1: 'BTN_PATIENTHOMEBANNER1', - spread2: 'BTN_PATIENTHOMEBANNER2', - }[code] - }, handleRegClose() { this.setData({ regGuide: false, diff --git a/src/patient/pages/index/index.wxml b/src/patient/pages/index/index.wxml index 3354d9a..58a3d5e 100644 --- a/src/patient/pages/index/index.wxml +++ b/src/patient/pages/index/index.wxml @@ -45,8 +45,6 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/patient/pages/interactivePatient/index.json b/src/patient/pages/interactivePatient/index.json index af8a0b1..8d1fe98 100644 --- a/src/patient/pages/interactivePatient/index.json +++ b/src/patient/pages/interactivePatient/index.json @@ -4,7 +4,6 @@ "usingComponents": { "van-icon": "@vant/weapp/icon/index", "van-loading": "@vant/weapp/loading/index", - "referralFrom": "/components/referralFrom/index", "navbar": "/components/navbar/index", "popup": "/components/popup/index" } diff --git a/src/patient/pages/interactivePatient/index.ts b/src/patient/pages/interactivePatient/index.ts index 66b2942..7156547 100644 --- a/src/patient/pages/interactivePatient/index.ts +++ b/src/patient/pages/interactivePatient/index.ts @@ -451,31 +451,6 @@ Page({ url: '/patient/pages/personalInformation/index', }) }, - handleReferral() { - this.setData({ - referralFromShow: true, - }) - }, - handleReferralReplay(e) { - const params = e.detail - this.setData({ - messageList: [ - ...this.data.messageList, - { - msgId: '', - msgContentType: '9', - msgVisitTime: '', - msgContent: '', - msgFromType: '1', - msgCreateTime: dayjs().format('YYYY-MM-DD HH:mm:ss'), - ReVisitInfo: { - ...params, - visitDateName: dayjs(params.visitDate).format('YYYY年M月DD日'), - }, - }, - ], - }) - }, handleQol() { wx.navigateTo({ url: '/patient/pages/qol/index', diff --git a/src/patient/pages/interactivePatient/index.wxml b/src/patient/pages/interactivePatient/index.wxml index 5d42e7e..e802c26 100644 --- a/src/patient/pages/interactivePatient/index.wxml +++ b/src/patient/pages/interactivePatient/index.wxml @@ -1,5 +1,3 @@ - - @@ -105,15 +103,6 @@ {{message.msgContent}} 完善个人信息 - - - 您最近有按照医生的 提醒,定期复诊吗? - - - - 已复诊 - - @@ -252,8 +241,6 @@ - - (); - -Page({ - data: { - list: [] as any[], - total: 0, - pagination: { - page: 1, - pages: 1, - count: 1, - }, - - referralFromShow: false, - referralFromParams: null as any, - }, - onLoad(options) { - app.waitLogin({ type: [1] }).then(() => { - // 强制疾病患者以上身份 - app.zdPermissionVerification(3, 0, `/patient/pages/referral/index`).then(() => { - this.getList(); - if (options.pushId) { - this.updatePush(options.pushId); - } - }); - }); - }, - updatePush(id) { - wx.ajax({ - method: 'POST', - url: '?r=zd/push-click/update-click-status', - data: { - pushId: id, - }, - }); - }, - getList(newPage = 1) { - wx.ajax({ - method: 'GET', - url: '?r=zd/re-visit/get-list', - data: { - page: newPage, - }, - }).then((res) => { - res.list = res.list.map((item: any) => { - item.adlDate = dayjs(item.LastAdlDate).format('YYYY-MM-DD'); - return item; - }); - const list = res.page === 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - total: res.count, - list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, - handleEdit(e) { - const { index } = e.currentTarget.dataset; - const { list } = this.data; - const { - Id, - VisitDate, - Hormone, - TraditionalInhibitor, - GammaGlobulin, - PlasmaExchange, - BCellInhibitor, - FcRnAntagonists, - C5ComplementInhibitor, - ChineseMedicine, - Other, - } = list[index]; - - this.setData({ - referralFromShow: true, - referralFromParams: { - recordId: Id, - visitDate: VisitDate, - hormone: Number(Hormone), - traditionalInhibitor: Number(TraditionalInhibitor), - gammaGlobulin: Number(GammaGlobulin), - plasmaExchange: Number(PlasmaExchange), - bCellInhibitor: Number(BCellInhibitor), - fcRnAntagonists: Number(FcRnAntagonists), - c5ComplementInhibitor: Number(C5ComplementInhibitor), - chineseMedicine: Number(ChineseMedicine), - other: Number(Other), - }, - }); - }, - handleRecord() { - this.setData({ - referralFromShow: true, - referralFromParams: null, - }); - }, - handleRefrech() { - this.getList(); - }, - handleAdl() { - wx.navigateTo({ - url: '/patient/pages/myHealthRecord/index', - }); - }, -}); - -export {}; diff --git a/src/patient/pages/referral/index.wxml b/src/patient/pages/referral/index.wxml deleted file mode 100644 index c4a8dc7..0000000 --- a/src/patient/pages/referral/index.wxml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - 复诊时间 - {{item.VisitDate}} - - - 复诊方案 - - 激素 - 传统免疫抑制剂(如他克莫司、吗 替麦考酚酯等) - 静脉输注丙种球蛋白 - 血浆置换 - B细胞抑制剂(如:利妥昔单抗、泰 它西普、伊奈利珠单抗) - FcRn拮抗剂(如:艾加莫德) - C5补体抑制剂(如:依库珠单抗) - 中药或中成药 - 其他 - - - - - 最近一次ADL得分: - {{item.LastAdlScore}}分 - - {{item.adlDate}} - - - - - - - - diff --git a/src/patient/pages/story/index.json b/src/patient/pages/story/index.json deleted file mode 100644 index e11992a..0000000 --- a/src/patient/pages/story/index.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "navigationBarTitleText": "奇迹故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "patient-tab-bar": "/components/patient-tab-bar/index" - } -} diff --git a/src/patient/pages/story/index.scss b/src/patient/pages/story/index.scss deleted file mode 100644 index 02b65fe..0000000 --- a/src/patient/pages/story/index.scss +++ /dev/null @@ -1,105 +0,0 @@ -.page { - position: relative; - .card-list { - padding: 0 40rpx 200rpx; - .card { - border-radius: 24rpx; - margin-bottom: 32rpx; - background: #ffffff; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - border-radius: 24rpx; - border: 2rpx solid #ebecee; - .photo { - position: relative; - width: 100%; - height: 288rpx; - flex-shrink: 0; - border-radius: 24rpx 24rpx 0 0; - position: relative; - .photo-img { - width: 100%; - height: 100%; - border-radius: inherit; - } - .my-read { - padding: 14rpx 24rpx; - position: absolute; - top: 0; - left: 0; - font-size: 28rpx; - color: rgba(224, 71, 117, 1); - line-height: 1; - white-space: nowrap; - background: linear-gradient(90deg, #e5e9f5 0%, #fde4ec 100%); - border-radius: 24rpx 0rpx 24rpx 0rpx; - } - .money { - padding: 0 20rpx 0 0; - position: absolute; - right: 32rpx; - bottom: 18rpx; - background-color: #ffedca; - font-size: 24rpx; - color: #f5ad1d; - line-height: 36rpx; - display: flex; - align-items: center; - justify-content: center; - border-radius: 24rpx; - .icon { - margin-right: 10rpx; - width: 38rpx; - height: 36rpx; - } - } - } - .inner { - padding: 32rpx 30rpx; - .title { - font-size: 32rpx; - color: #252525; - font-weight: bold; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - } - .content { - margin-top: 24rpx; - font-size: 24rpx; - color: #999999; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - .i-footer { - margin-top: 12rpx; - display: flex; - justify-content: flex-end; - .f-item { - margin-left: 30rpx; - font-size: 22rpx; - color: #9b9ea6; - .icon { - margin-right: 5rpx; - width: 32rpx; - height: 32rpx; - vertical-align: middle; - } - } - } - } - } - } - - .more { - position: fixed; - bottom: 200rpx; - right: 0; - .icon { - width: 210rpx; - height: 104rpx; - } - } -} diff --git a/src/patient/pages/story/index.ts b/src/patient/pages/story/index.ts deleted file mode 100644 index c78444e..0000000 --- a/src/patient/pages/story/index.ts +++ /dev/null @@ -1,99 +0,0 @@ -const app = getApp(); - -Page({ - data: { - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - alertPending: false, - zdUserInfo: {}, - }, - onLoad() { - app.zdGetTheme().then((res) => { - this.setData({ - theme: res, - }); - }); - - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom, - }); - } - }, - onShow() { - app.waitLogin({ type: [0, 1] }).then((_res) => { - - this.getList(); - app.getZdUserInfo(this, true); - }); - }, - - getList(newPage = 1) { - const loading = !this.data.list.length; - wx.ajax({ - method: 'GET', - url: '?r=zd/story/story-list', - data: { - page: newPage, - }, - loading, - }).then((res) => { - const list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - handleStar(e) { - const { index } = e.currentTarget.dataset; - const { Id, ComplimentNum } = this.data.list[index]; - wx.ajax({ - method: 'POST', - url: '?r=zd/story/compliment', - data: { - ContentId: Id, - }, - }).then(() => { - this.setData({ - [`list[${index}].ComplimentNum`]: ComplimentNum * 1 + 1, - [`list[${index}].IsCompliment`]: 1, - }); - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, - routerTo(e) { - const { url } = e.currentTarget.dataset; - // let PageName = { - // '/patient/pages/storyGuide/index': 'BTN_STORY_SUBMIT', - // }[url] - // if (PageName) { - - // } - - if (url.includes('/patient/pages/publishStoryDetail/index')) { - - } - if (url === '/patient/pages/storyGuide/index') { - - } - wx.navigateTo({ - url, - }); - }, -}); diff --git a/src/patient/pages/story/index.wxml b/src/patient/pages/story/index.wxml deleted file mode 100644 index 1b89d9f..0000000 --- a/src/patient/pages/story/index.wxml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - 仅本人可见 - - - {{item.Title}} - {{item.Introduction}} - - - - {{~~item.BasicNum + ~~item.OpenNum}} - - - - - {{item.ComplimentNum}} - - - - - - - - - - - - - diff --git a/src/patient/pages/storyDetail/index.json b/src/patient/pages/storyDetail/index.json deleted file mode 100644 index aabd373..0000000 --- a/src/patient/pages/storyDetail/index.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "navigationBarTitleText": "我的故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "text-expandsion": "/components/text-expandsion/index", - "freeAudio": "/components/freeAudio/index", - "toast": "/components/toast/index", - "van-switch": "@vant/weapp/switch/index" - } -} diff --git a/src/patient/pages/storyDetail/index.scss b/src/patient/pages/storyDetail/index.scss deleted file mode 100644 index 64cc037..0000000 --- a/src/patient/pages/storyDetail/index.scss +++ /dev/null @@ -1,158 +0,0 @@ -page { - background-color: #f9f9f9; -} -.page { - position: relative; - .bg { - width: 100%; - } - .page-container { - position: absolute; - top: 0; - left: 0; - margin: 0 40rpx; - width: calc(100% - 80rpx); - padding-bottom: 68rpx; - .banner { - margin-top: 74rpx; - display: flex; - max-height: 180rpx; - .icon { - width: 90rpx; - height: 90rpx; - flex-shrink: 0; - } - .inner { - margin-left: 24rpx; - margin-top: -10rpx; - flex: 1; - .title { - white-space: nowrap; - font-size: 40rpx; - color: #e04775; - font-weight: bold; - display: flex; - align-items: center; - justify-content: space-between; - .options { - flex-shrink: 0; - .option { - margin: 0 0 0 10rpx; - padding: 12rpx 32rpx; - font-size: 28rpx; - font-weight: normal; - line-height: 1; - color: #e04775; - border: 2rpx solid #e04775; - border-radius: 26rpx; - } - } - } - .date { - margin-top: 12rpx; - font-size: 28rpx; - color: #9e9e9e; - line-height: 40rpx; - } - } - } - .conatiner { - margin-top: 48rpx; - padding: 32rpx 30rpx; - box-sizing: border-box; - box-shadow: 0rpx 2rpx 18rpx 0rpx rgba(0, 0, 0, 0.04); - border-radius: 24rpx; - background-color: #fff; - .row { - padding: 30rpx 0; - display: flex; - > view, - > image { - margin-right: 30rpx; - } - &.row-column { - flex-direction: column; - .label { - width: 100%; - } - .content { - margin-top: 24rpx; - } - } - .label { - flex-shrink: 0; - width: 4em; - font-size: 28rpx; - color: #484848; - font-weight: bold; - } - .content { - font-size: 28rpx; - color: #9e9e9e; - .photo-list { - display: grid; - grid-template-columns: repeat(3, 1fr); - > view, - > image { - margin-right: 17rpx; - margin-bottom: 17rpx; - } - .photo { - width: 142rpx; - height: 142rpx; - border-radius: 24rpx; - } - } - .audio-list { - .audio { - margin-bottom: 20rpx; - } - } - } - } - .row:not(:last-of-type) { - border-bottom: 1rpx solid rgba(226, 229, 237, 0.43); - } - } - .publish { - margin-top: 44rpx; - .label { - font-size: 32rpx; - color: #484848; - white-space: nowrap; - font-weight: bold; - display: flex; - &.l-tip { - justify-content: space-between; - } - .maxnum { - margin-left: -220rpx; - font-size: 24rpx; - color: #aeb6cd; - .switch-node { - background-color: #dc3e6a; - border: 2rpx solid #fff; - box-sizing: border-box; - // width: 60rpx !important; - // height: 60rpx !important; - // box-shadow: none; - } - // .custom-class { - // border: none; - // height: 60rpx; - // width: 106rpx; - // display: flex; - // align-items: center; - // } - } - } - .tip { - font-weight: normal; - margin-top: 16rpx; - font-size: 24rpx; - line-height: 32rpx; - color: #b6b7ba; - } - } - } -} diff --git a/src/patient/pages/storyDetail/index.ts b/src/patient/pages/storyDetail/index.ts deleted file mode 100644 index 3fbc4e4..0000000 --- a/src/patient/pages/storyDetail/index.ts +++ /dev/null @@ -1,133 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - detail: {}, - toastShow: false, - toastType: "withdraw", - typeStatus: 1, - }, - onLoad(options) { - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom: bottom, - }); - } - this.setData({ - id: options.id, - }); - app.zdWaitLogin().then(() => { - this.getDetail(); - }); - }, - getDetail() { - wx.ajax({ - method: "GET", - url: "?r=zd/story/submit-story-info", - data: { - Id: this.data.id, - }, - loading: true, - }).then((res) => { - this.setData({ - typeStatus: { - 1: "1", - 2: "2", - 3: "3", - 4: "3", - 5: "4", - 100: "2", - }[res.Status], - detail: { - statusName: app.globalData.storyStatus[res.Status], - ...res, - CreateTime: res.CreateTime.split(":").slice(0, 2).join(":"), - AudioSrc: res.AudioSrc.map((item) => { - return { - url: item.url, - size: item.shichang, - }; - }), - }, - }); - }); - }, - handleDel() { - this.setData({ - toastShow: true, - toastType: "delwithdraw", - }); - }, - handleWithdraw() { - this.setData({ - toastShow: true, - toastType: "withdraw", - }); - }, - handleReWithdraw() { - this.setData({ - toastShow: true, - toastType: "rewithdraw", - }); - }, - handleCancel() { - this.setData({ - toastShow: false, - toastType: "", - }); - }, - handleOk() { - const id = this.data.detail.Id; - const type = this.data.toastType; - let url = type === "withdraw" ? "?r=zd/story/cancel-publish" : "?r=zd/story/recovery-publish"; - wx.ajax({ - method: "POST", - url, - data: { - Id: id, - }, - loading: true, - }).then((_res) => { - this.handleCancel(); - this.getDetail(); - }); - }, - handleToastDel() { - const id = this.data.detail.Id; - wx.ajax({ - method: "POST", - url: "?r=zd/story/delete", - data: { - Id: id, - }, - loading: true, - }).then((_res) => { - this.handleBack(); - }); - }, - handleSwitchChange(e) { - console.log("e: ", e); - const url = e.detail ? "?r=zd/story/all-read" : "?r=zd/story/cancel-all-read"; - wx.ajax({ - method: "POST", - url, - data: { - Id: this.data.id, - }, - loading: true, - }).then((res) => { - this.getDetail(); - }); - }, - handleHome() { - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, - handleBack() { - wx.navigateBack(); - }, -}); diff --git a/src/patient/pages/storyDetail/index.wxml b/src/patient/pages/storyDetail/index.wxml deleted file mode 100644 index 10c887d..0000000 --- a/src/patient/pages/storyDetail/index.wxml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - 姓名 - {{detail.UserName}} - - - 联系方式 - {{detail.Telephone}} - - - 治疗经历和故事 - - - - - - 您的照片 - - - - - - - - 语音录入 - - - - - - - - - - - - - - - - diff --git a/src/patient/pages/storyEnter/index.json b/src/patient/pages/storyEnter/index.json deleted file mode 100644 index 5b911dc..0000000 --- a/src/patient/pages/storyEnter/index.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "navigationBarTitleText": "我的故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "zdUploadFile": "/components/zdUploadFile/index", - "freeAudio": "/components/freeAudio/index", - "van-switch": "@vant/weapp/switch/index", - "toast": "/components/toast/index" - } -} diff --git a/src/patient/pages/storyEnter/index.scss b/src/patient/pages/storyEnter/index.scss deleted file mode 100644 index 6dd14f4..0000000 --- a/src/patient/pages/storyEnter/index.scss +++ /dev/null @@ -1,129 +0,0 @@ -.page { - position: relative; - .bg { - width: 100%; - height: 394rpx; - } - .page-container { - position: absolute; - top: 0; - left: 0; - width: 100%; - padding-bottom: 200rpx; - .form { - padding: 196rpx 40rpx 0; - .form-item { - margin-top: 48rpx; - .label { - font-size: 36rpx; - color: #484848; - white-space: nowrap; - font-weight: bold; - display: flex; - align-items: flex-end; - &.jcsb{ - justify-content: space-between; - } - .maxnum { - margin-left: 1em; - font-size: 24rpx; - font-weight: normal; - color: #484848; - } - } - .input { - margin-top: 16rpx; - padding: 27rpx 32rpx; - border-radius: 24rpx; - font-size: 28rpx; - // color: #aeb6cd; - color: #3c4f98; - background-color: #f8f8f8; - } - .tip { - margin-top: 16rpx; - font-size: 24rpx; - color: #aeb6cd; - } - .textarea { - margin-top: 16rpx; - padding: 27rpx 32rpx; - border-radius: 24rpx; - font-size: 28rpx; - color: #484848; - background-color: #f4f4f4; - } - .textarea-placeholder { - font-size: 28rpx; - } - .upload { - margin-top: 29rpx; - } - .audio-list { - margin-top: 44rpx; - .audio-item { - display: flex; - justify-content: space-between; - align-items: center; - > view, - > image { - margin-right: 13rpx; - } - margin-bottom: 20rpx; - .no { - padding: 10rpx; - font-size: 28rpx; - color: #E04775; - font-weight: bold; - flex-shrink: 0; - } - .free-audio { - flex: 1; - } - .del { - padding: 10rpx; - flex-shrink: 0; - font-size: 24rpx; - color: #fc7c7c; - } - } - } - .audio { - margin: 56rpx auto 0; - text-align: center; - .audio-content { - width: 134rpx; - height: 134rpx; - } - .time { - margin-top: 16rpx; - text-align: center; - font-size: 24rpx; - color: #aeb6cd; - } - } - } - } - .footer { - position: fixed; - bottom: 0; - z-index: 10; - padding: 16rpx 95rpx 52rpx; - width: 100%; - box-sizing: border-box; - box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2); - background-color: #fff; - .submit { - margin: 0 auto; - width: 440rpx; - text-align: center; - line-height: 80rpx; - height: 80rpx; - font-size: 32rpx; - background-color: #E04775; - border-radius: 100rpx; - color: #fff; - } - } - } -} diff --git a/src/patient/pages/storyEnter/index.ts b/src/patient/pages/storyEnter/index.ts deleted file mode 100644 index f878a0c..0000000 --- a/src/patient/pages/storyEnter/index.ts +++ /dev/null @@ -1,321 +0,0 @@ -const app = getApp() - -Page({ - data: { - toastShow: false, - toastType: 'storyEnter', - protocol: false, - - play: false, - fileList: [] as any, - form: { - UserName: '', - TreatmentExperience: '', - Telephone: '', - ImgSrc: [] as any, - AudioSrc: [] as any, - AllRead: 1, - }, - time: 0, - timeName: '0秒', - timer: 0, - VoiceContent: [] as { size: string | number; url: string }[], - StoryLeadIn: '0' as string | undefined, - - zdUserInfo: {}, - }, - onLoad(options) { - const that = this - that.setData({ - StoryLeadIn: options.storyleadin, - }) - const SystemInfo = app.globalSystemInfo - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition - that.setData({ - bottom, - }) - } - - app.zdWaitLogin().then(() => { - - app.getZdUserInfo(that, true) - }) - - that.record = wx.getRecorderManager() - that.record.onStart((_res) => { - that.setData({ - play: true, - timer: setInterval(() => { - that.setData({ - time: that.data.time + 1, - }) - this.formatTime() - }, 1000), - }) - wx.setKeepScreenOn({ - keepScreenOn: true, - }) - }) - that.record.onStop((res) => { - that.setData({ - play: false, - time: 0, - timeName: '0秒', - }) - clearInterval(that.data.timer) - that.uplodaAudio(res) - wx.setKeepScreenOn({ - keepScreenOn: false, - }) - }) - that.record.onError(({ errMsg }) => { - clearInterval(that.data.timer) - if (errMsg === 'operateRecorder:fail auth deny') { - wx.showModal({ - //====> 授权 - title: '提示', - content: '您未授权录音,功能将无法使用', - showCancel: true, - confirmText: '授权', - confirmColor: '#8c75d0', - success(res) { - if (res.confirm) { - //确认则打开设置页面(重点) - wx.openSetting({ - success: (res) => { - console.log(res.authSetting) - if (!res.authSetting['scope.record']) { - //未设置录音授权 - console.log('未设置录音授权') - wx.showModal({ - title: '提示', - content: '您未授权录音,功能将无法使用', - confirmColor: '#8c75d0', - showCancel: false, - success(_res) {}, - }) - } else { - //第二次才成功授权 - console.log('设置录音授权成功') - } - }, - fail() { - console.log('授权设置录音失败') - }, - }) - } else if (res.cancel) { - console.log('cancel') - } - }, - fail() { - console.log('open fail') - }, - }) - } - }) - that.record.onPause((res) => { - // that.record.resume(); - that.handlePlayEnd() - }) - }, - record: {} as WechatMiniprogram.RecorderManager, - handleBack() { - wx.navigateBack({ - fail() { - wx.reLaunch({ - url: '/patient/pages/index/index', - }) - }, - }) - }, - handleSetData(e) { - this.setData({ - fileList: [...this.data.fileList, ...e.detail], - }) - }, - handleDelData(e) { - const index = e.detail.index - this.setData({ - fileList: this.data.fileList.filter((item, i) => i !== index), - }) - }, - handleInput(e) { - const { key } = e.currentTarget.dataset - let value = e.detail.value - if (['Telephone'].includes(key)) { - if (value.length <= 11) { - value = e.detail.value - } else { - value = this.data.form[key] - } - } - this.setData({ - [`form.${key}`]: value, - }) - }, - handlePlayStart() { - this.record.start({ - duration: 180000, - }) - }, - handlePlayEnd() { - this.record.stop() - }, - uplodaAudio({ tempFilePath, duration }) { - const that = this - const url = `${app.globalData.upFileUrl}?r=file-service/upload-audio` - wx.showLoading({ - title: '上传中', - mask: true, - }) - wx.uploadFile({ - filePath: tempFilePath, - name: 'file', - url, - header: { novocarewaf: 1 }, - formData: { - convCommon: 1, - }, - success(res) { - wx.hideLoading() - const data = JSON.parse(res.data) - that.setData({ - VoiceContent: [ - ...that.data.VoiceContent, - { - size: duration / 1000, - url: data.data.Url, - }, - ], - }) - that.pageScrollToBottom() - }, - fail() { - wx.showToast({ - icon: 'none', - title: '上传失败', - }) - }, - }) - }, - handleAudioDel(e) { - const { index } = e.currentTarget.dataset - const that = this - wx.showModal({ - title: '确认删除?', - confirmColor: '#8c75d0', - success(res) { - if (res.confirm) { - that.setData({ - VoiceContent: that.data.VoiceContent.filter((item, i) => i !== index), - }) - } - }, - }) - }, - handleSwitchChange() { - this.setData({ - 'form.AllRead': this.data.form.AllRead == 1 ? 2 : 1, - }) - }, - submit() { - - const { form, fileList, VoiceContent } = this.data - let toast = '' - if (!form.TreatmentExperience) { - toast = '请输入您的治疗经验和故事' - } - if (form.Telephone) { - if (!/^(?:(?:\+|00)86)?1(?:3\d|4[5-79]|5[0-35-9]|6[5-7]|7[0-8]|8\d|9[189])\d{8}$/.test(form.Telephone)) { - toast = '手机号格式不正确' - } - } - if (this.data.play) { - toast = '录音中不能提交' - } - if (toast) { - wx.showToast({ - title: toast, - icon: 'none', - }) - return - } - // Safety - if (fileList.length) { - form.ImgSrc = fileList.map((item) => decodeURI(item.fileUrl.replace(/^https?:\/\//, ''))) - } - if (VoiceContent.length) { - form.AudioSrc = VoiceContent.map((item) => { - return { - shichang: item.size, - url: decodeURI(item.url.replace(/^https?:\/\//, '')), - } - }) - } - - if (!this.data.protocol) { - this.setData({ - toastShow: true, - toastType: 'storyEnter', - }) - return - } - wx.ajax({ - method: 'POST', - url: '?r=zd/story/submit-story', - data: { - ...form, - StoryLeadIn: this.data.StoryLeadIn, - }, - loading: true, - }).then((res) => { - console.log('res: ', res) - wx.redirectTo({ - url: `/patient/pages/storyEnterResult/index?id=${res.Id}`, - }) - }) - }, - handleToastOk(e) { - if (!e.detail.protocol) { - wx.showToast({ - title: '请先同意审核和编辑后公开发布', - icon: 'none', - }) - return - } - this.setData({ - protocol: e.detail.protocol, - }) - this.handleToastCancel() - this.submit() - }, - handleToastCancel() { - this.setData({ - toastShow: false, - toastType: '', - }) - }, - formatTime() { - const time = this.data.time - let timeName = '' - if (time > 60) { - timeName = `${Math.floor(time / 60)}分${time % 60}秒` - } else { - timeName = `${time % 60}秒` - } - this.setData({ - timeName, - }) - }, - pageScrollToBottom() { - wx.createSelectorQuery() - .select('#page') - .boundingClientRect((rect) => { - wx.pageScrollTo({ - scrollTop: rect.bottom, - }) - }) - .exec() - }, -}) diff --git a/src/patient/pages/storyEnter/index.wxml b/src/patient/pages/storyEnter/index.wxml deleted file mode 100644 index e74bbe6..0000000 --- a/src/patient/pages/storyEnter/index.wxml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - {{index+1}}. - - - - 删除 - - - - - - 已录入: {{timeName}} - - - - - 提交我的故事 - - - - - diff --git a/src/patient/pages/storyEnterResult/index.json b/src/patient/pages/storyEnterResult/index.json deleted file mode 100644 index fe51cc2..0000000 --- a/src/patient/pages/storyEnterResult/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "navigationBarTitleText": "我的故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar" - } -} diff --git a/src/patient/pages/storyEnterResult/index.scss b/src/patient/pages/storyEnterResult/index.scss deleted file mode 100644 index 5a1a558..0000000 --- a/src/patient/pages/storyEnterResult/index.scss +++ /dev/null @@ -1,64 +0,0 @@ -.page { - .page-container { - padding: 0 49rpx; - .succees { - margin: 102rpx auto 0; - display: block; - width: 200rpx; - height: 200rpx; - } - .title { - margin-top: 32rpx; - text-align: center; - font-size: 40rpx; - color: rgba(224, 71, 117, 1); - font-weight: bold; - } - .sub-title { - margin-top: 22rpx; - text-align: center; - font-size: 28rpx; - color: #bbbcbe; - .price { - color: #f5ad1d; - } - } - .code-wrap { - margin-top: 138rpx; - text-align: center; - .code { - width: 316rpx; - height: 316rpx; - } - .tip { - margin-top: 32rpx; - font-size: 28rpx; - color: rgba(51, 51, 51, 1); - } - } - .footer { - margin-top: 88rpx; - display: flex; - > view, - > image { - margin-right: 30rpx; - } - .btn { - flex: 1; - text-align: center; - height: 96rpx; - line-height: 96rpx; - text-align: center; - border: 1px solid rgba(224, 71, 117, 1); - border-radius: 48rpx; - font-size: 32rpx; - color: rgba(224, 71, 117, 1); - font-weight: bold; - } - .sure { - background: #e04775; - color: #fff; - } - } - } -} diff --git a/src/patient/pages/storyEnterResult/index.ts b/src/patient/pages/storyEnterResult/index.ts deleted file mode 100644 index f8e295c..0000000 --- a/src/patient/pages/storyEnterResult/index.ts +++ /dev/null @@ -1,62 +0,0 @@ -const app = getApp(); - -Page({ - data: { - id: "", - config: {}, - qrCode: "", - }, - onLoad(options) { - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom: bottom, - }); - } - this.setData({ - id: options.id, - }); - app.zdWaitLogin().then((_res) => { - this.getConfig(); - this.getCode(); - }); - }, - handleMyReplaceList() { - wx.navigateTo({ - url: "/patient/pages/storyList/index", - }); - }, - getConfig() { - wx.ajax({ - method: "GET", - url: "?r=zd/common/get-config", - }).then((res) => { - this.setData({ - config: res, - }); - }); - }, - getCode() { - wx.ajax({ - method: "GET", - url: "?r=zd/common/get-channel-wx-code", - data: { - ChannelType: "5", - Id: "", - }, - }).then((res) => { - this.setData({ - qrCode: res, - }); - }); - }, - handleBack() { - wx.navigateBack(); - }, - handleHome() { - wx.reLaunch({ - url: "/patient/pages/index/index", - }); - }, -}); diff --git a/src/patient/pages/storyEnterResult/index.wxml b/src/patient/pages/storyEnterResult/index.wxml deleted file mode 100644 index 9518915..0000000 --- a/src/patient/pages/storyEnterResult/index.wxml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - 感谢分享您的故事 - 帮助病友获得战胜疾病的希望 - - 通过审核且发布后,您将获得{{config.PatientStoryPublishScore}}能量 - - - 关注公众号 获取审核进度 - - - 查看我发布的 - 回到首页 - - - diff --git a/src/patient/pages/storyGuide/index.json b/src/patient/pages/storyGuide/index.json deleted file mode 100644 index 5b0ce03..0000000 --- a/src/patient/pages/storyGuide/index.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "navigationBarTitleText": "我的故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "toast": "/components/toast/index" - } -} diff --git a/src/patient/pages/storyGuide/index.scss b/src/patient/pages/storyGuide/index.scss deleted file mode 100644 index d1eef18..0000000 --- a/src/patient/pages/storyGuide/index.scss +++ /dev/null @@ -1,87 +0,0 @@ -.page { - position: relative; - .bg { - width: 100%; - } - .page-container { - position: absolute; - top: 0; - left: 0; - padding: 0 72rpx; - width: 100%; - box-sizing: border-box; - .title { - margin-top: 330rpx; - color: #e04775; - font-weight: bold; - .t-h1 { - font-size: 64rpx; - line-height: 92rpx; - } - .t-h2 { - line-height: 64rpx; - font-size: 40rpx; - } - } - .tip { - margin-top: 46rpx; - font-size: 28rpx; - color: #484848; - } - .progress { - margin-top: 60rpx; - display: flex; - justify-content: space-between; - .item { - flex-shrink: 0; - text-align: center; - .icon { - position: relative; - z-index: 1; - width: 106rpx; - height: 106rpx; - } - .name { - margin-top: 12rpx; - font-size: 30rpx; - line-height: 42rpx; - font-weight: bold; - color: #3f3f3f; - } - .content { - margin-top: 4rpx; - font-size: 22rpx; - color: #9e9e9e; - } - } - .ver { - margin: 52rpx -30rpx 0; - flex: 1; - border-top: 2rpx dashed #d0d0d0; - } - } - .progress-box { - height: 300rpx; - } - .submit { - margin: 84rpx auto 0; - width: 440rpx; - height: 96rpx; - background: #e04775; - border-radius: 48rpx; - font-size: 36rpx; - color: #fff; - line-height: 96rpx; - text-align: center; - } - .protocols { - margin-top: 60rpx; - font-size: 24rpx; - color: #484848; - text-align: center; - .link { - color: #e04775; - } - } - } -} diff --git a/src/patient/pages/storyGuide/index.ts b/src/patient/pages/storyGuide/index.ts deleted file mode 100644 index a2024cd..0000000 --- a/src/patient/pages/storyGuide/index.ts +++ /dev/null @@ -1,79 +0,0 @@ -const app = getApp() - -Page({ - data: { - info: {}, - StoryLeadIn: '', - OriginSource: '', - - config: {}, - }, - onLoad(options) { - this.setData({ - StoryLeadIn: options.storyleadin, - OriginSource: options.originsource, - }) - const SystemInfo = app.globalSystemInfo - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition - this.setData({ - bottom, - }) - } - app.zdWaitLogin().then((_res) => { - - // this.getSettingInfo(); - if (options.storyleadin) { - this.setToSee() - } - this.getConfig() - }) - }, - setToSee() { - wx.ajax({ - method: 'POST', - url: '?r=zd/story/to-see', - data: { OriginSource: this.data.OriginSource }, - }).then((res) => { - console.log(res) - }) - }, - getSettingInfo() { - wx.ajax({ - method: 'GET', - url: '?r=zd/drugs/setting-info', - data: {}, - }).then((res) => { - this.setData({ - info: res, - }) - }) - }, - getConfig() { - wx.ajax({ - method: 'GET', - url: '?r=zd/common/get-config', - }).then((res) => { - this.setData({ - config: res, - }) - }) - }, - routerTo(e) { - const { url } = e.currentTarget.dataset - if (url.includes('/patient/pages/storyEnter/index')) { - - } - wx.navigateTo({ - url, - }) - }, - handleProtocols() { - wx.redirectTo({ - url: '/patient/pages/privacyAgreement/index?page=/patient/pages/storyGuide/index', - }) - }, - handleBack() { - wx.navigateBack() - }, -}) diff --git a/src/patient/pages/storyGuide/index.wxml b/src/patient/pages/storyGuide/index.wxml deleted file mode 100644 index 33b1c2e..0000000 --- a/src/patient/pages/storyGuide/index.wxml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - 榜样的力量 - 最是无穷 - 我们期待您的故事 - - - 在治疗的路上,您是否有不一样的故事? - 也许您的故事,就像一盏灯,可以照亮他人! - - - - - 投稿 - 提交稿件 - - - - - 审核 - 预计1~7工作日 - - - - - 奖励 - {{config.PatientStoryPublishScore}}能量 - - - - - 立即投稿 - - - - - - - diff --git a/src/patient/pages/storyList/index.json b/src/patient/pages/storyList/index.json deleted file mode 100644 index 181fc88..0000000 --- a/src/patient/pages/storyList/index.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "navigationBarTitleText": "我的故事", - "navigationStyle": "custom", - "usingComponents": { - "navBar": "/components/zd-navBar/navBar", - "text-expandsion": "/components/text-expandsion/index", - "freeAudio": "/components/freeAudio/index" - } -} diff --git a/src/patient/pages/storyList/index.scss b/src/patient/pages/storyList/index.scss deleted file mode 100644 index 5bc15f0..0000000 --- a/src/patient/pages/storyList/index.scss +++ /dev/null @@ -1,90 +0,0 @@ -page { - min-height: 100vh; - background: linear-gradient(180deg, rgba(253, 253, 253, 0.49) 0%, #fafafa 100%); -} -.page { - .alert { - font-size: 24rpx; - color: #eb8480; - width: 100%; - height: 64rpx; - line-height: 64rpx; - text-align: center; - background-color: #fef9f9; - } - .list { - padding: 40rpx 40rpx 200rpx; - .item { - margin-bottom: 24rpx; - display: flex; - > view, - > image { - margin-right: 22rpx; - } - padding: 24rpx; - border-radius: 24rpx; - background-color: #fff; - border: 1rpx solid #edeff3; - box-shadow: 0rpx 4rpx 32rpx 0rpx rgba(0, 0, 0, 0.04); - .photo { - flex-shrink: 0; - width: 156rpx; - height: 156rpx; - border-radius: 24rpx; - } - .inner { - flex: 1; - display: flex; - flex-direction: column; - justify-content: space-between; - .date-name { - font-size: 32rpx; - color: #495069; - } - .date { - font-size: 32rpx; - color: #495069; - } - .i-footer { - margin-top: 10rpx; - display: flex; - justify-content: space-between; - align-items: center; - .status { - font-size: 24rpx; - color: #E04775; - } - .view { - display: flex; - font-size: 24rpx; - color: #24D8C8; - view:last-of-type { - margin-left: 32rpx; - } - } - } - } - } - } - .footer { - position: fixed; - bottom: 0; - left: 0; - padding: 26rpx 95rpx calc(env(safe-area-inset-bottom) + 26rpx); - width: 100%; - box-sizing: border-box; - background-color: #fff; - box-shadow: 0rpx 6rpx 27rpx 0rpx rgba(174, 183, 205, 0.31); - .submit { - height: 80rpx; - box-sizing: border-box; - line-height: 80rpx; - border-radius: 48rpx; - color: #fff; - font-size: 32rpx; - background: #E04775; - width: 100%; - text-align: center; - } - } -} diff --git a/src/patient/pages/storyList/index.ts b/src/patient/pages/storyList/index.ts deleted file mode 100644 index 173ad91..0000000 --- a/src/patient/pages/storyList/index.ts +++ /dev/null @@ -1,85 +0,0 @@ -const app = getApp(); - -Page({ - data: { - list: [], - pagination: { - page: 1, - pages: 1, - count: 1, - }, - zdUserInfo: {}, - }, - onLoad() { - const SystemInfo = app.globalSystemInfo; - if (SystemInfo) { - const { bottom } = SystemInfo.capsulePosition; - this.setData({ - bottom, - }); - } - }, - onShow() { - app.waitLogin({ type: [1] }).then((_res) => { - - this.getList(); - app.getZdUserInfo(this, true); - }); - }, - getList(newPage = 1) { - wx.ajax({ - method: 'GET', - url: '?r=zd/story/submit-story-list', - data: { - page: newPage, - }, - loading: true, - }).then((res) => { - res.list = res.list.map((item) => { - item.CreateTime = item.CreateTime.split(':').slice(0, 2).join(':'); - item.StatusName = app.globalData.storyStatus[item.Status]; - return item; - }); - const list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; - this.setData({ - list, - pagination: { - page: res.page, - pages: res.pages, - count: res.count, - }, - }); - }); - }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, - handleDetail(e) { - - const { id } = e.currentTarget.dataset; - wx.navigateTo({ - url: `/patient/pages/storyDetail/index?id=${id}`, - }); - }, - routerTo(e) { - const { url } = e.currentTarget.dataset; - if (url === '/patient/pages/storyGuide/index') { - - } - wx.navigateTo({ - url, - }); - }, - handleBack() { - wx.navigateBack({ - fail() { - wx.reLaunch({ - url: '/patient/pages/index/index', - }); - }, - }); - }, -}); diff --git a/src/patient/pages/storyList/index.wxml b/src/patient/pages/storyList/index.wxml deleted file mode 100644 index 032cb20..0000000 --- a/src/patient/pages/storyList/index.wxml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - {{index<9?'0'+(index+1):index+1}}.提交时间 - {{item.CreateTime}} - - {{item.StatusName}} - - {{item.AllRead == 1 ? '公开发布':'仅本人可见'}} - - - - - - - - - 继续投稿 - -