lion 2 years ago
parent 294021690d
commit 7fbf4ce2df

@ -16,22 +16,26 @@
</view>
</block>
</view>
<!-- <uParse></uParse> -->
<view class='open_text'>
<u-parse v-if='showContent' :content="openInfoHtml?openInfoHtml:' '"/>
</view>
<!-- <view class='open_text'>
<span></span>
{{openInfoObj['提醒']?openInfoObj['提醒']:''}}
</view>
<view class='open_text'>
<span></span>
地址{{openInfoObj['地址']?openInfoObj['地址']:''}}
{{openInfoObj['服务时间']?openInfoObj['服务时间']:''}}
</view>
<view class='open_text'>
<span></span>
咨询电话{{openInfoObj['咨询电话']?openInfoObj['咨询电话']:''}}
地址{{openInfoObj['地址']?openInfoObj['地址']:''}}
</view>
<view class='open_text'>
<span></span>
服务时间{{openInfoObj['服务时间']?openInfoObj['服务时间']:''}}
</view>
咨询电话{{openInfoObj['咨询电话']?openInfoObj['咨询电话']:''}}
</view> -->
</view>
</view>
@ -84,9 +88,11 @@
<script>
import tabbar from "../../components/tabbar/tabbar.vue"
import uParse from '@/components/gaoyia-parse/parse.vue'
export default {
components: {
tabbar
tabbar,
uParse
},
data() {
return {
@ -97,6 +103,8 @@
content: ""
},
openInfoObj: {},
openInfoHtml:'',
showContent:false,
show: {
shownotice: false,
showask: false,
@ -147,13 +155,17 @@
let openArr = openStr.split('|')
for (let o of openArr) {
let oArr = o.split('')
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]
}
let libeforeIndex = str.indexOf("<ul>") + 4
let liafterIndex = str.indexOf("</ul>")
that.openInfoHtml = str.substring(libeforeIndex, liafterIndex)
that.showContent = true
}
}
that.noticeList = res.data
@ -228,6 +240,7 @@
</script>
<style>
@import url("/components/gaoyia-parse/parse.css");
page {
background: #f7f6f4;
}
@ -292,7 +305,20 @@
font-size: 28rpx;
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 {
width: 8rpx;
height: 8rpx;

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

Loading…
Cancel
Save