|
|
@@ -142,7 +142,7 @@
|
|
|
<div class="title">{{ $t('lang356') }}</div>
|
|
|
<div class="flex">
|
|
|
<van-checkbox v-model="checked" class="black" shape="square" checked-color="#29b286" icon-size="16px"
|
|
|
- >{{ $t('lang357') }} <span class="green" @click.stop="navigatorTo('service')">{{ $t('lang358') }}</span></van-checkbox
|
|
|
+ >{{ $t('lang357') }} <span class="green" @click.stop="blogPopop = true">{{ $t('lang358') }}</span></van-checkbox
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -161,6 +161,13 @@
|
|
|
<van-loading type="spinner" class="loading" />
|
|
|
</div>
|
|
|
</van-overlay>
|
|
|
+ <van-popup v-model="blogPopop" round position="bottom">
|
|
|
+ <div class="blogModel">
|
|
|
+ <div class="title"></div>
|
|
|
+ <van-icon name="cross" class="close" size="20" @click="blogPopop = false" />
|
|
|
+ <div class="body" v-html="blogData.body"></div>
|
|
|
+ </div>
|
|
|
+ </van-popup>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -191,6 +198,8 @@ export default {
|
|
|
orderIndex: 0,
|
|
|
fee: 0,
|
|
|
balance: 0,
|
|
|
+ blogPopop: false,
|
|
|
+ blogData: {},
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -222,6 +231,7 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.configInfo = res.data;
|
|
|
this.fee = this.configInfo.serve_fee * this.product.min_price;
|
|
|
+ this.getAnnouncementDetail();
|
|
|
} else {
|
|
|
}
|
|
|
});
|
|
|
@@ -290,6 +300,27 @@ export default {
|
|
|
this.$router.push({ name, query: { id: id } });
|
|
|
}
|
|
|
},
|
|
|
+ getAnnouncementDetail() {
|
|
|
+ if (this.$i18n.locale == 'zh-cn') {
|
|
|
+ let params = {
|
|
|
+ id: this.configInfo.zh_serve_agree,
|
|
|
+ };
|
|
|
+ homeApi.getAnnouncementDetail(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.blogData = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (this.$i18n.locale == 'en') {
|
|
|
+ let params = {
|
|
|
+ id: this.configInfo.en_serve_agree,
|
|
|
+ };
|
|
|
+ homeApi.getAnnouncementDetail(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.blogData = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -581,6 +612,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.blogModel {
|
|
|
+ color: #000;
|
|
|
+ font-size: 15px;
|
|
|
+ .close {
|
|
|
+ position: absolute;
|
|
|
+ right: 20px;
|
|
|
+ top: 10px;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ padding: 20px 20px 26px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .body {
|
|
|
+ max-height: 600px;
|
|
|
+ overflow: auto;
|
|
|
+ padding: 0 14px 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
/deep/.van-button--disabled {
|
|
|
opacity: 0.6;
|
|
|
}
|