You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.3 KiB
102 lines
2.3 KiB
<template>
|
|
<view class="v-pages">
|
|
<swiper class="v-swiper" :autoplay="autoplay" :duration="duration" :indicator-dots="indicatorDots"
|
|
:interval="interval">
|
|
<swiper-item v-for="(item,index) in info.imagelist" :key="index" class="swiper_item">
|
|
<image class="item-image" :src="rootPath+item" mode="widthFix"></image>
|
|
</swiper-item>
|
|
</swiper>
|
|
<!-- 标题 -->
|
|
<view class="v-card detail container-fluid m-t--80">
|
|
<view class="v-detail-top"><text class="postion">{{info.region}}</text><text
|
|
class="tag">{{info.subtitle}}</text></view>
|
|
<view class="v-detail-name">
|
|
<view class="text inline-block">{{info.title}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- 内容 -->
|
|
<view class="v-card detail container-fluid m-t-24">
|
|
<view class="v-detail-content">
|
|
<u-parse :content="info.content" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import uParse from '@/uni_modules/uview-ui/components/u-parse/u-parse.vue'
|
|
export default {
|
|
components: {
|
|
uParse
|
|
},
|
|
data() {
|
|
return {
|
|
//公共路径
|
|
rootPath: this.$config.ROOTPATH,
|
|
//轮播
|
|
indicatorDots: false,
|
|
autoplay: true,
|
|
interval: 3000,
|
|
duration: 500,
|
|
pic_url: this.$config.ROOTPATH,
|
|
pic_list: [],
|
|
info: {},
|
|
|
|
netType: true
|
|
|
|
}
|
|
},
|
|
onLoad: function(options) {
|
|
var that = this;
|
|
this.$util.getNetworkType(
|
|
function(res) {
|
|
if (res.networkType === 'none') {
|
|
uni.showToast({
|
|
title: that.$param.netMsg,
|
|
icon: "none",
|
|
duration: 2000
|
|
})
|
|
that.netType = false;
|
|
}
|
|
},
|
|
function() {
|
|
uni.showToast({
|
|
title: that.$param.netMsg,
|
|
icon: "none",
|
|
duration: 2000
|
|
})
|
|
that.netType = false;
|
|
}
|
|
)
|
|
if (!that.netType) {
|
|
return;
|
|
}
|
|
this.$util.hideLoadingByTime();
|
|
that.$util.saveOperatorLog(that, "METHOD", options.guid);
|
|
|
|
this.initpages(options.guid);
|
|
},
|
|
methods: {
|
|
initpages: function(guid) {
|
|
var that = this;
|
|
var data = {
|
|
"userkey": this.$param.userkey,
|
|
"type": this.$param.methodType,
|
|
"guid": guid
|
|
}
|
|
this.$Request.post(this.$config.getMessgeInfoDetailFormId, data, '', '', false, true).then(res => {
|
|
if (!that.$util.isSuccess(res)) {
|
|
return;
|
|
}
|
|
this.info = res.data;
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page {
|
|
background: #f5f6fa;
|
|
}
|
|
</style> |