diff --git a/pages/consult/info.vue b/pages/consult/info.vue
index c4fa652..d0fefd9 100644
--- a/pages/consult/info.vue
+++ b/pages/consult/info.vue
@@ -102,7 +102,18 @@
-
+
+
+
+
+
+ 我已阅读并同意《用户服务协议》和《知情同意书》
+
+
+
+
typeof disease === 'string' && disease.trim());
if (!hasDisease) {
@@ -355,6 +369,10 @@ async function submit(ignoreUnsuit = false, ignoreRepeat = false) {
showRepeatDrugPopup.value = true;
return
}
+ if (!agree.value) {
+ toast("请阅读并同意《用户服务协议》和《知情同意书》");
+ return;
+ }
if (order.value.consultType === 'onlineMedicinePurchase') {
await checkStock()
}
@@ -479,7 +497,11 @@ function changeDrugs(drugs) {
order.value.drugs = drugs;
visible.value = false;
}
-
+function viewTxt(type, title) {
+ uni.navigateTo({
+ url: `/pages/consult/agreement?type=${type}&title=${title}`,
+ });
+}
onLoad(() => {
attachMedicineConfig()
uni.$on('on-disease-selected', onDiseaseSelected)
@@ -818,4 +840,22 @@ onMounted(() => {
white-space: nowrap;
text-overflow: ellipsis;
}
+
+.protocol {
+ display: flex;
+ align-items: center;
+ padding: 30rpx 30rpx 0;
+ background: white;
+ line-height: 40rpx;
+ color: #666;
+
+ .active {
+ color: $theme-brown-primary;
+ }
+
+ .protocol_text {
+ font-size: 24rpx;
+ margin-left: 10rpx;
+ }
+}