Commit 55f4f46e by 胡悦

feat(GeneralPopup): 添加otherText属性用于显示补充文本

在GeneralPopup组件中添加otherText属性,用于在标题旁显示额外的文本内容。同时在confirmCar.vue中使用该属性显示补充协议条款的文本内容。
1 parent 13449441
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<slot name="header"> <slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle"> <view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text> <text class="popup-top-box-title">{{ title }}</text>
<text style="font-size: 0;">{{ otherText }}</text>
<view @click.stop="closePopup"> <view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view> <view class="sprite-icon icon-evaluationClose"></view>
</view> </view>
...@@ -81,6 +82,10 @@ export default { ...@@ -81,6 +82,10 @@ export default {
noTitle: { noTitle: {
type: Boolean, type: Boolean,
default: false default: false
},
otherText: {
type: String,
default: ''
} }
}, },
data() { data() {
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</view> </view>
</view> </view>
</view> </view>
<GeneralPopup ref="addAgreementPopup" popupClass="addAgreementPopup" type="center" title="补充协议条款"> <GeneralPopup ref="addAgreementPopup" popupClass="addAgreementPopup" type="center" :otherText="formData.supplementaryClauseText" title="补充协议条款">
<template v-slot:content> <template v-slot:content>
<textarea placeholder="请输入 (200字以内)" v-model="formData.supplementaryClauseText" maxlength="200" /> <textarea placeholder="请输入 (200字以内)" v-model="formData.supplementaryClauseText" maxlength="200" />
</template> </template>
...@@ -294,7 +294,6 @@ export default { ...@@ -294,7 +294,6 @@ export default {
this.currentField = field this.currentField = field
if (field.type === 'pdf') { if (field.type === 'pdf') {
this.$refs.addAgreementPopup.open().then(() => { this.$refs.addAgreementPopup.open().then(() => {
console.log('this.supplementaryClauseText', this.supplementaryClauseText)
uni.showLoading() uni.showLoading()
uni.$api.evaluationApi uni.$api.evaluationApi
.salesAgreementPreview({ .salesAgreementPreview({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!