diff --git a/src/components/freeAudio/index.js b/src/components/freeAudio/index.js
index d5af7db..822f0e6 100644
--- a/src/components/freeAudio/index.js
+++ b/src/components/freeAudio/index.js
@@ -66,11 +66,16 @@ Component({
},
},
pageLifetimes: {
- // 组件所在页面的生命周期函数
- show: function () {},
+ show: function () {
+ if (this.data._pausedByHide && this.audioContext) {
+ this.data._pausedByHide = false
+ this.audioContext.play()
+ }
+ },
hide: function () {
const { play } = this.data
if (play) {
+ this.data._pausedByHide = true
this.audioContext.pause()
}
},
diff --git a/src/components/pickerArea/index.ts b/src/components/pickerArea/index.ts
index 534f919..d6aba75 100644
--- a/src/components/pickerArea/index.ts
+++ b/src/components/pickerArea/index.ts
@@ -238,7 +238,7 @@ Component({
},
getArea() {
if (this.data.area.length) {
- this.getRangeList()
+ this.getRangeList(0)
return
}
wx.ajax({
@@ -249,7 +249,7 @@ Component({
this.setData({
area: res,
})
- this.getRangeList()
+ this.getRangeList(0)
})
},
handleItem(e: any) {
@@ -287,13 +287,13 @@ Component({
scrollIntoView0: id,
})
},
- getRangeList() {
+ getRangeList(active = 1) {
const { area, ProvinceId } = this.data
if (!ProvinceId) return
const range = area.filter((item: any) => item.value == ProvinceId)[0].children
this.setData({
range,
- active: 1,
+ active,
scrollIntoView0: '',
scrollIntoView1: `id${this.data.CityId}`,
})
diff --git a/src/components/toast/index.wxml b/src/components/toast/index.wxml
index b4a54b3..0a9312a 100644
--- a/src/components/toast/index.wxml
+++ b/src/components/toast/index.wxml
@@ -918,7 +918,8 @@
- 就诊医生
+ 门诊医生
{
})
},
+ onUnload() {
+ if (timer) {
+ clearInterval(timer)
+ timer = null
+ }
+ },
getCode() {
if (timer) return
const mobile = this.data.mobile
diff --git a/src/pages/qaForm/index.scss b/src/pages/qaForm/index.scss
index 5902bcd..3691591 100644
--- a/src/pages/qaForm/index.scss
+++ b/src/pages/qaForm/index.scss
@@ -41,7 +41,7 @@ page {
}
.content {
font-size: 36rpx;
- color: rgba(34, 34, 34, 0.70);
+ color: rgba(34, 34, 34, 0.7);
}
&.active {
.radio {
@@ -98,7 +98,7 @@ page {
}
.content {
font-size: 36rpx;
- color: rgba(34, 34, 34, 0.70);
+ color: rgba(34, 34, 34, 0.7);
}
&.active {
.check {
@@ -147,6 +147,20 @@ page {
font-size: 32rpx;
color: rgba(34, 34, 34, 1);
}
+ .num-wrap {
+ margin-top: 32rpx;
+ display: flex;
+ align-items: center;
+ gap: 10rpx;
+ .input {
+ flex: 1;
+ margin-top: 0;
+ }
+ .dight {
+ font-size: 32rpx;
+ color: rgba(34, 34, 34, 0.7);
+ }
+ }
.input {
margin-top: 32rpx;
padding: 26rpx 32rpx;
diff --git a/src/pages/qaForm/index.wxml b/src/pages/qaForm/index.wxml
index bad1398..c4ba2eb 100644
--- a/src/pages/qaForm/index.wxml
+++ b/src/pages/qaForm/index.wxml
@@ -72,39 +72,31 @@
-
-
+
+
+
+ mg/天
+
-
+
-
+
添加图片
diff --git a/src/pages/qaFormDetail/index.wxml b/src/pages/qaFormDetail/index.wxml
index bb70da2..50aba2f 100644
--- a/src/pages/qaFormDetail/index.wxml
+++ b/src/pages/qaFormDetail/index.wxml
@@ -21,7 +21,7 @@
- {{item.TextValue}}
+ {{item.TextValue}}mg/天