改成老白干景区id,

活动详情图片回显,
文章详情头部轮播图回显,
dev
Tuzki 2 years ago
parent 2d3072234e
commit 61023ff780
  1. 3
      pages/daolan/daolan.vue
  2. 149
      pages/hotevent/hoteventdetail/hoteventdetail.vue
  3. 10
      pages/sirendingzhi/sirendingzhidetail/sirendingzhidetail.vue

@ -41,7 +41,8 @@
this.$util.hideLoadingByTime();
that.$util.saveOperatorLog(that,"DAOLAN",option.scenicId);
// this.daolanurl = this.$config.REAUEST_ROOTPATH + "/html/back/ybsjMap/ybsjMap.html?userkey="+this.$param.userkey+"&scenicId="+option.scenicId+"&clng="+this.$param.clng+"&clat="+this.$param.clat
this.daolanurl = this.$config.REAUEST_ROOTPATH + "/html/back/ybsjMap/ybsjMap.html?userkey="+this.$param.userkey+"&scenicId=40&clng="+this.$param.clng+"&clat="+this.$param.clat
this.daolanurl = this.$config.REAUEST_ROOTPATH + "/html/back/ybsjMap/ybsjMap.html?userkey="+this.$param.userkey+"&scenicId=334&clng="+this.$param.clng+"&clat="+this.$param.clat
console.log(this.daolanurl,'kokoko')
uni.showLoading({
title: "加载中",
mask: true

@ -1,21 +1,25 @@
<template>
<view class="">
<!--
<swiper :autoplay="autoplay" class="lh-swiper" :duration="duration" :indicator-dots="indicatorDots" :interval="interval">
<swiper-item v-for="(item,index) in pic_list" :key="index"> -->
<image class="slide-image" :src="rootPath+info.imagelist[0]" mode="aspectFill"></image>
<!-- </swiper-item>
</swiper> -->
<swiper-item v-for="(item, index) in info.imagelist" :key="index">
<image class="slide-image" :src="rootPath + item" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="news_info shadow_fg">
<view class="arc_t_pd">
<view class="news_tit">{{info.title}}</view>
<view class="news_tit">{{ info.title }}</view>
</view>
<view>
<text class="new_adr">阅读 {{info.browsenum}}</text>
<text class="new_adr" @click="dianzan(info.guid)" v-if="zan == true"><image src="../../../static/images/icn_like.png" class="pic_zan"></image>{{info.upnum}} </text>
<text class="new_adr" v-if="zan == false"><image src="../../../static/images/zan.png" class="pic_zan"></image>{{info.upnum}} </text>
<text class="new_adr">阅读 {{ info.browsenum }}</text>
<text class="new_adr" @click="dianzan(info.guid)" v-if="zan == true">
<image src="../../../static/images/icn_like.png" class="pic_zan"></image>
{{ info.upnum }}
</text>
<text class="new_adr" v-if="zan == false">
<image src="../../../static/images/zan.png" class="pic_zan"></image>
{{ info.upnum }}
</text>
</view>
<!--<view class="info-list">
<view>
@ -44,7 +48,7 @@
</view>
<view>
<text class="address">活动类型</text>
<text class="txt">{{info[this.$param.hoteventTypeKey]}}</text>
<text class="txt">{{ info[this.$param.hoteventTypeKey] }}</text>
</view>
</view>
<view class="info-list">
@ -53,7 +57,7 @@
</view>
<view>
<text class="address">活动日期</text>
<text class="txt">{{info.jointime}}</text>
<text class="txt">{{ info.jointime }}</text>
</view>
</view>
<view class="info-list">
@ -62,7 +66,7 @@
</view>
<view>
<text class="address">报名日期</text>
<text class="txt">{{info[this.$param.hoteventBaomingKey]}}</text>
<text class="txt">{{ info[this.$param.hoteventBaomingKey] }}</text>
</view>
</view>
@ -72,9 +76,9 @@
</view>
<view>
<text class="address">联系电话</text>
<text class="txt" @click="callPhone(info[this.$param.hoteventPhoneKey])">{{info[this.$param.hoteventPhoneKey]}}</text>
<text class="txt" @click="callPhone(info[this.$param.hoteventPhoneKey])">{{ info[this.$param.hoteventPhoneKey] }}</text>
</view>
<view class="more" :hidden="'暂无'==info[this.$param.hoteventPhoneKey]?true:false"></view>
<view class="more" :hidden="'暂无' == info[this.$param.hoteventPhoneKey] ? true : false"></view>
</view>
<view class="info-list">
<view class="pic">
@ -82,13 +86,12 @@
</view>
<view>
<text class="address">活动单位</text>
<text class="txt">{{info.subtitle}}</text>
<text class="txt">{{ info.subtitle }}</text>
</view>
</view>
</view>
</view>
<view class="swiper-tab-wrap">
<view class="line-show-wrap">
<view class="mode_com mt_1">
@ -98,79 +101,78 @@
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import uParse from '@/components/gaoyia-parse/parse.vue'
import uParse from '@/components/gaoyia-parse/parse.vue';
export default {
export default {
components: {
uParse
},
data() {
return {
priceSymbol: "",
priceSymbol: '',
indicatorDots: false,
autoplay: true,
interval: 3000,
duration: 500,
info: {},
zan:true,
rootPath:this.$config.ROOTPATH,
netType:true
}
zan: true,
rootPath: this.$config.ROOTPATH,
netType: true
};
},
onLoad: function(options) {
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.id);
this.jilu(options.id);
that.$util.saveOperatorLog(that,"HOTEVENT",options.id);
that.$util.saveOperatorLog(that, 'HOTEVENT', options.id);
},
methods: {
detailInfo: function(id) {
detailInfo: function (id) {
var that = this;
var data = {
"userkey":this.$param.userkey,
"type":this.$param.hotevent,
"guid":id
}
this.$Request.post(this.$config.getMessgeInfoDetailFormId, data).then(res => {
userkey: this.$param.userkey,
type: this.$param.hotevent,
guid: id
};
this.$Request.post(this.$config.getMessgeInfoDetailFormId, data).then((res) => {
console.log(res);
if(!that.$util.isSuccess(res)){
if (!that.$util.isSuccess(res)) {
return;
}
this.info = res.data;
this.info.logo = this.$config.ROOTPATH + this.info.logo;
})
});
},
daohang:function(){
daohang: function () {
// #ifdef H5
if (this.$wechat.isWechat()) {
@ -184,47 +186,58 @@
this.$util.openLocation(mapParam);
return;
}
window.location.href = "https://uri.amap.com/navigation?from="+this.$param.clng+","+this.$param.clat+",我的位置&to="+this.info.lng+","+this.info.lat+","+this.info.eaddress+"&mode=walk&src=sjz_uniapp&callnative=1"
window.location.href =
'https://uri.amap.com/navigation?from=' +
this.$param.clng +
',' +
this.$param.clat +
',我的位置&to=' +
this.info.lng +
',' +
this.info.lat +
',' +
this.info.eaddress +
'&mode=walk&src=sjz_uniapp&callnative=1';
// #endif
},
callPhone:function(tel){
if(tel == "暂无"){
callPhone: function (tel) {
if (tel == '暂无') {
return;
}
uni.makePhoneCall({
phoneNumber:tel
})
phoneNumber: tel
});
},
jilu: function(id){
jilu: function (id) {
var that = this;
var data = {
guid: id,
browsenum:"1"
browsenum: '1'
};
this.$Request.post(this.$config.updateMessageInfoUBFeildFormId, data).then(res => {
if(that.$util.isSuccess(res)){
console.log("已阅读");
this.$Request.post(this.$config.updateMessageInfoUBFeildFormId, data).then((res) => {
if (that.$util.isSuccess(res)) {
console.log('已阅读');
}
});
},
dianzan: function(guid){
dianzan: function (guid) {
var that = this;
var data = {
guid: guid,
upnum:"1"
upnum: '1'
};
this.$Request.post(this.$config.updateMessageInfoUBFeildFormId, data).then(res => {
if(that.$util.isSuccess(res)){
this.$Request.post(this.$config.updateMessageInfoUBFeildFormId, data).then((res) => {
if (that.$util.isSuccess(res)) {
this.zan = false;
this.info.upnum+=1;
this.info.upnum += 1;
}
});
}
}
}
};
</script>
<style>
@import url("../../../static/css/common.css");
@import url("hoteventdetail.css");
@import url('../../../static/css/common.css');
@import url('hoteventdetail.css');
</style>

@ -1,12 +1,10 @@
<template>
<view class="">
<!--
<swiper :autoplay="autoplay" class="lh-swiper" :duration="duration" :indicator-dots="indicatorDots" :interval="interval">
<swiper-item v-for="(item,index) in pic_list" :key="index"> -->
<image class="slide-image" :src="rootPath+info.imagelist[0]" mode="aspectFill"></image>
<!-- </swiper-item>
</swiper> -->
<swiper-item v-for="(item, index) in info.imagelist" :key="index">
<image class="slide-image" :src="rootPath + item" mode="aspectFill"></image>
</swiper-item>
</swiper>
<view class="news_info shadow_fg">
<view class="arc_t_pd">

Loading…
Cancel
Save