dev
rosehan 2 years ago
parent 636004c678
commit bad4fe7336
  1. 51
      pages/amusement/amusementdetail/amusementdetail.vue
  2. 114
      pages/method/methoddetail/methoddetail.vue

@ -5,85 +5,34 @@
<swiper-item v-for="(item,index) in pic_list" :key="index">
<image class="slide-image" height="187" :src="item" width="375"></image>
</swiper-item>
</swiper>
<view class="mode_com mdd_jj arc_box news_info shadow_fg">
<view class="arc_t_pd mt_1">
<view class="news_tit">{{info.title}}
</view>
</view>
<!-- <view>
<text class="new_adr">{{info.hlevel}}</text>
</view> -->
<!-- <view class="info-box"> -->
<!-- <view bindtap="showMap" class="info-list">
<view class="pic">
<image src="../../../static/images/list-icon1.png" style="width:30rpx;height:37rpx;"></image>
</view>
<view class="txt">{{info.haddress}}</view>
<view class="more"></view>
</view> -->
<!-- <view class="info-list">
<view class="pic">
<image src="../../../static/images/list-icon6.png" style="width:30rpx;height:37rpx;"></image>
</view>
<view>
<text class="address">酒店类型</text>
<text class="txt">{{info.htype}}</text>
</view>
</view> -->
<!-- <view bindtap="callPhone" class="info-list" :data-mobile="info.hphone">
<view class="pic">
<image src="../../../static/images/list-icon2.png" style="width:32rpx;height:37rpx;"></image>
</view>
<view class="address">
<text class="address">酒店电话</text>
<text class="txt">{{info.hphone}}</text>
</view>
<view class="more" :hidden="'暂无'==info.hphone?true:false"></view>
</view> -->
<!-- </view> -->
</view>
<view class="mode_com">
<!-- <view class="secdt_tips">
<view bindtap="callPhone" class="secdt_adr dly_flex_c" :data-mobile="info.hphone" >
<image class="adr_pic" src="../../../static/images/icon_phe.png"></image>
<text class="w_adr">商场电话</text>
<text class="cot_adr2" @click="callPhone(info.phone)">{{info.phone}}</text>
</view>
</view> -->
</view>
<view class="swiper-tab-wrap">
<view class="line-show-wrap">
<view class="mode_com mdd_jj">
<text class="tit_com">景点介绍</text>
<view class="nr_cot mt_1">
<mp-html :content="info.content" />
</view>
</view>
</view>
</view>
<!-- 评论 -->

@ -1,71 +1,31 @@
<template>
<view class="">
<swiper :autoplay="autoplay" class="lh-swiper" :duration="duration" :indicator-dots="indicatorDots" :interval="interval" >
<swiper :autoplay="autoplay" class="lh-swiper" :duration="duration" :indicator-dots="indicatorDots"
:interval="interval">
<swiper-item v-for="(item,index) in info.imagelist" :key="index" style="position: relative;">
<image class="slide-image" height="187" :src="rootPaht+item" width="375"></image>
<view bindtap="callPhone" class="arc_origin" :data-mobile="info.sendtime">
<text class="arc_gl_time">{{info.sendtime | dateformat('YYYY-MM-DD HH:mm:ss')}}</text><!-- <text class="arc_gl_user">{{info.muser}}</text> --></view>
<text
class="arc_gl_time">{{info.sendtime | dateformat('YYYY-MM-DD HH:mm:ss')}}</text><!-- <text class="arc_gl_user">{{info.muser}}</text> -->
</view>
</swiper-item>
</swiper>
<view class="">
<view class="fod_det_cont" style="box-shadow: none;">
<view class="mode_com">
<view class="fod_det_bt">{{info.title}}</view>
<view class="fod_det_inf">
<mp-html :content="info.content" @preview="preview" @navigate="navigate" />
</view>
</view>
</view>
<!--<view class="info-box">
<view class="info-list">
<view class="pic">
<image src="../../../static/images/list-icon6.png" style="width:30rpx;height:37rpx;"></image>
</view>
<view>
<text class="address">作者</text>
<text class="txt">{{info.muser}}</text>
</view>
</view>
</view>-->
</view>
<!--<view class="swiper-tab-wrap">
<view class="swiper-tab-wrap">
<view class="line-show-wrap">
<view class="mode_com mdd_jj">
<view class="item-title">攻略内容</view>
<view class="nr_cot">
<mp-html :content="info.mcontent" @preview="preview" @navigate="navigate" />
<text class="tit_com">{{info.title}}</text>
<view class="nr_cot mt_1">
<mp-html :content="info.content" @preview="preview" @navigate="navigate" />
</view>
</view>
</view>
</view>-->
</view>
</view>
</template>
<script>
export default {
data() {
return {
@ -78,48 +38,49 @@
pic_list: [],
info: {},
rootPaht: this.$config.ROOTPATH,
netType:true
netType: true
}
},
onLoad: function(options) {
var that = this;
this.$util.getNetworkType(
function(res){
if(res.networkType === 'none'){
function(res) {
if (res.networkType === 'none') {
uni.showToast({
title:that.$param.netMsg,
icon:"none",
duration:2000
title: that.$param.netMsg,
icon: "none",
duration: 2000
})
that.netType = false;
}
},function(){
},
function() {
uni.showToast({
title:that.$param.netMsg,
icon:"none",
duration:2000
title: that.$param.netMsg,
icon: "none",
duration: 2000
})
that.netType = false;
}
)
if(!that.netType){
if (!that.netType) {
return;
}
this.$util.hideLoadingByTime();
this.detailInfo(options.guid);
that.$util.saveOperatorLog(that,"METHOD",options.guid);
that.$util.saveOperatorLog(that, "METHOD", options.guid);
},
methods: {
detailInfo: function(guid) {
var that = this;
var data = {
"userkey":this.$param.userkey,
"type":this.$param.methodType,
"guid":guid
"userkey": this.$param.userkey,
"type": this.$param.methodType,
"guid": guid
}
this.$Request.post(this.$config.getMessgeInfoDetailFormId, data).then(res => {
if(!that.$util.isSuccess(res)){
if (!that.$util.isSuccess(res)) {
return;
}
this.info = res.data;
@ -132,8 +93,17 @@
<style>
@import url("../../../static/css/common.css");
@import url("methoddetail.css");
/* .fod_det_bt:after{ display: block; content: ''; width: 524rpx; margin: 0 auto; margin-top:30rpx;height: 16rpx; background:url(../../../static/images/bg_ms.png) no-repeat center; } */
.mssj_jul:before{ content: '';display: inline-block; width: 38rpx; height: 38rpx; background:url(../../../static/images/icn_mi.png) no-repeat; background-size: 100%; margin-right: 5rpx; position: relative; top:6rpx}
</style>
.mssj_jul:before {
content: '';
display: inline-block;
width: 38rpx;
height: 38rpx;
background: url(../../../static/images/icn_mi.png) no-repeat;
background-size: 100%;
margin-right: 5rpx;
position: relative;
top: 6rpx
}
</style>
Loading…
Cancel
Save