|
@@ -4,7 +4,7 @@
|
|
|
<swiper class="swiper" :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" :interval="swiper.interval" :duration="swiper.duration">
|
|
|
<!-- <swiper-item v-for="(item,index) in albumPics" :key="index"> -->
|
|
|
<swiper-item>
|
|
|
- <view class="adv-item"><image :src="$getimg+product.pic|miniImg(75)" class="pic" mode="aspectFit"></image></view>
|
|
|
+ <view class="adv-item"><image :src="$getimg+product.pic|miniImg(75)+'/thumbnail/750x'" class="pic" mode="aspectFit"></image></view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
@@ -36,7 +36,7 @@
|
|
|
</view>
|
|
|
<view class="placeoforigin-info" @click="gocompany(product.umsCompanyInfoId)">
|
|
|
<view class="placeoforigin-info-img-wrap" >
|
|
|
- <image class="placeoforigin-info-img" :src="firstimg||'/static/img/inbuild.png'|miniImg(75)" mode="widthFix"></image>
|
|
|
+ <image class="placeoforigin-info-img" :src="firstimg||'/static/img/inbuild.png'|miniImg(75)+'/thumbnail/240x'" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
<view class="placeoforigin-info-text">
|
|
|
<view class="placeoforigin-info-text-til">{{companyinfo.compName}}</view>
|
|
@@ -78,7 +78,7 @@
|
|
|
<view class="page-article-text">
|
|
|
{{origin.summary}}
|
|
|
</view>
|
|
|
- <image v-for="(item,index) in albumPics" :key="index" :src="$getimg+item|miniImg(75)" class="full-img" mode="widthFix"></image>
|
|
|
+ <image v-for="(item,index) in albumPics" :key="index" :src="$getimg+item|miniImg(75)+'/thumbnail/750x'" class="full-img" mode="widthFix"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 产品介绍 end -->
|
|
@@ -148,7 +148,7 @@
|
|
|
});
|
|
|
console.log('option',option);
|
|
|
this.params.productid = option.id;
|
|
|
- this.thispage = `/pages/product/product?id=${this.params.productid}`;
|
|
|
+ this.thispage = `/#/pages/product/product?id=${this.params.productid}`;
|
|
|
//获取产品
|
|
|
//,{params:this.params}
|
|
|
this.$api.http.get(this.config.apiBaseurl+'/product/detail/'+this.params.productid).then(res => {
|
|
@@ -165,7 +165,8 @@
|
|
|
this.files = res.data.data.companyInfo.files||'';
|
|
|
this.firstimg = this.files[0].fileUrl||'';
|
|
|
// console.log('this.albumPics',this.albumPics,'type',typeof this.albumPics,'this.firstimg',this.firstimg);
|
|
|
- this.phoneNumber = this.companyinfo.compConNum;
|
|
|
+ // this.phoneNumber = this.companyinfo.compConNum;//动态电话
|
|
|
+ this.phoneNumber = '13885026400';
|
|
|
// console.log('this.brand',JSON.parse(JSON.stringify(this.brand)));
|
|
|
// console.log('this.companyinfo',JSON.parse(JSON.stringify(this.companyinfo)));
|
|
|
// console.log('this.origin',JSON.parse(JSON.stringify(this.origin)));
|
|
@@ -179,7 +180,7 @@
|
|
|
methods: {
|
|
|
//有意向
|
|
|
focuse(productid){
|
|
|
-
|
|
|
+ console.log('this.thispage',this.thispage);
|
|
|
let thetoken = this.params.tokenhead + this.params.token;
|
|
|
this.$api.http.put(this.config.apiBaseurl+'/pre/add',{productId:productid},{header: {Authorization:thetoken}}).then(res => {
|
|
|
console.log(res);
|
|
@@ -193,6 +194,7 @@
|
|
|
}).catch(err => {
|
|
|
if(err.data.message =='暂未登录或token已经过期'){
|
|
|
let loginurl = `${this.config.apiBaseurl}/wechat/h5/authorize?returnUrl=${this.thispage}`
|
|
|
+ console.log('loginurl',loginurl);
|
|
|
window.location.replace(loginurl);
|
|
|
return
|
|
|
}
|