lion 2 years ago
parent 294021690d
commit 7fbf4ce2df

@ -15,23 +15,27 @@
<view>{{key}}</view> <view>{{key}}</view>
</view> </view>
</block> </block>
</view>
<!-- <uParse></uParse> -->
<view class='open_text'>
<u-parse v-if='showContent' :content="openInfoHtml?openInfoHtml:' '"/>
</view> </view>
<view class='open_text'> <!-- <view class='open_text'>
<span></span> <span></span>
{{openInfoObj['提醒']?openInfoObj['提醒']:''}} {{openInfoObj['提醒']?openInfoObj['提醒']:''}}
</view> </view>
<view class='open_text'> <view class='open_text'>
<span></span> <span></span>
地址{{openInfoObj['地址']?openInfoObj['地址']:''}} {{openInfoObj['服务时间']?openInfoObj['服务时间']:''}}
</view> </view>
<view class='open_text'> <view class='open_text'>
<span></span> <span></span>
咨询电话{{openInfoObj['咨询电话']?openInfoObj['咨询电话']:''}} 地址{{openInfoObj['地址']?openInfoObj['地址']:''}}
</view> </view>
<view class='open_text'> <view class='open_text'>
<span></span> <span></span>
服务时间{{openInfoObj['服务时间']?openInfoObj['服务时间']:''}} 咨询电话{{openInfoObj['咨询电话']?openInfoObj['咨询电话']:''}}
</view> </view> -->
</view> </view>
</view> </view>
@ -83,10 +87,12 @@
</template> </template>
<script> <script>
import tabbar from "../../components/tabbar/tabbar.vue" import tabbar from "../../components/tabbar/tabbar.vue"
import uParse from '@/components/gaoyia-parse/parse.vue'
export default { export default {
components: { components: {
tabbar tabbar,
uParse
}, },
data() { data() {
return { return {
@ -96,7 +102,9 @@
mobile: "", mobile: "",
content: "" content: ""
}, },
openInfoObj: {}, openInfoObj: {},
openInfoHtml:'',
showContent:false,
show: { show: {
shownotice: false, shownotice: false,
showask: false, showask: false,
@ -147,13 +155,17 @@
let openArr = openStr.split('|') let openArr = openStr.split('|')
for (let o of openArr) { for (let o of openArr) {
let oArr = o.split('') let oArr = o.split('')
if(oArr[1].indexOf('&mdash;')>-1){ if(oArr[1].indexOf('&mdash;')>-1){
oArr[1] = oArr[1].replace('&mdash;','—') oArr[1] = oArr[1].replace(/&mdash;/g,'—')
} }
console.log(oArr[1])
that.openInfoObj[oArr[0]] = oArr[1] that.openInfoObj[oArr[0]] = oArr[1]
} }
let libeforeIndex = str.indexOf("<ul>") + 4
let liafterIndex = str.indexOf("</ul>")
that.openInfoHtml = str.substring(libeforeIndex, liafterIndex)
that.showContent = true
} }
} }
that.noticeList = res.data that.noticeList = res.data
@ -227,7 +239,8 @@
} }
</script> </script>
<style> <style>
@import url("/components/gaoyia-parse/parse.css");
page { page {
background: #f7f6f4; background: #f7f6f4;
} }
@ -292,15 +305,28 @@
font-size: 28rpx; font-size: 28rpx;
line-height: 2.3; line-height: 2.3;
} }
.open_text .li{
line-height: 2.3;
}
.open_text .li::before{
content:'';
width: 8rpx;
height: 8rpx;
border-radius: 8rpx;
background-color: #BFBFBF;
display: inline-block;
vertical-align: middle;
margin: 0 10rpx;
margin-top: -6rpx;
}
.open_text span { .open_text span {
width: 8rpx; width: 8rpx;
height: 8rpx; height: 8rpx;
border-radius: 8rpx; border-radius: 8rpx;
background-color: #BFBFBF; background-color: #BFBFBF;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
margin: 0 16rpx; margin: 0 16rpx;
margin-top: -6rpx; margin-top: -6rpx;
} }

@ -1,9 +1,9 @@
import md5 from "./md5.min"; import md5 from "./md5.min";
const HOSTARR = { const HOSTARR = {
// 'development':'https://gb-test.ali251.langye.net', 'development':'https://gb-test.ali251.langye.net',
// 'production': 'https://gb-test.ali251.langye.net', 'production': 'https://gb-test.ali251.langye.net',
'development':'https://gbyuyue.szgmbwg.org.cn', // 'development':'https://gbyuyue.szgmbwg.org.cn',
'production': 'https://gbyuyue.szgmbwg.org.cn', // 'production': 'https://gbyuyue.szgmbwg.org.cn',
// https://gbyuyue.szgmbwg.org.cn/ // https://gbyuyue.szgmbwg.org.cn/
}; // 审核状态 }; // 审核状态

Loading…
Cancel
Save