|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view class="main_content">
|
|
|
<view v-if='sitePhotoAddress.length>0' class='swiper'>
|
|
|
<swiper class="screen-swiper header-swiper" ::class="dotStyle?'square-dot':'round-dot'"
|
|
|
:indicator-dots="false" :circular="true" interval="5000"
|
|
@@ -11,7 +11,7 @@
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
<view class="dots">
|
|
|
- <text class='Regular'>{{status+1}} / {{imagelist.length}}</text>
|
|
|
+ <text class='Regular'>{{status+1}} / {{sitePhotoAddress.length}}</text>
|
|
|
</view>
|
|
|
<view class='functionality'>
|
|
|
<image @click='show=true' class='jubao' src="../../static/img/liangmai/jubao.png" mode=""></image>
|
|
@@ -49,7 +49,9 @@
|
|
|
<view style='flex:1;' class='title Regular'>联系人</view>
|
|
|
<view style='flex:3;'>
|
|
|
<view class='Regular linkmanItem' v-for='item in companylist.settledCompanyContacts'>
|
|
|
- {{item.contacts}} <a :href="item.contactsPhone"><image class="phone" src="../../static/img/liangmai/dianhau.png" mode=""></image></a>
|
|
|
+ <view @click="contactUs(item)">
|
|
|
+ {{item.contacts}} <image class="phone" src="../../static/img/liangmai/dianhau.png" mode=""></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -59,7 +61,7 @@
|
|
|
{{companylist.email}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex fax">
|
|
|
+ <view v-show="companylist.fax" class="flex fax">
|
|
|
<view style='flex:1;' class='title Regular'>传真</view>
|
|
|
<view class='Regular' style='font-size:14px;flex:3;'>
|
|
|
{{companylist.fax}}
|
|
@@ -132,7 +134,14 @@
|
|
|
that.label=res.data.data.label.split(',')
|
|
|
}
|
|
|
if(res.data.data.sitePhotoAddress){
|
|
|
- that.sitePhotoAddress=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ var tmp=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ that.sitePhotoAddress = []
|
|
|
+ for(var i=0;i<tmp.length;i++){
|
|
|
+ if(tmp[i]){
|
|
|
+ that.sitePhotoAddress.push(tmp[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log("that.sitePhotoAddress",that.sitePhotoAddress)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -140,6 +149,23 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ contactUs(item) {
|
|
|
+ const that = this
|
|
|
+ uni.makePhoneCall({
|
|
|
+ // 手机号
|
|
|
+ phoneNumber: item.contactsPhone,
|
|
|
+
|
|
|
+ // 成功回调
|
|
|
+ success: (res) => {
|
|
|
+ console.log('调用成功!')
|
|
|
+ },
|
|
|
+ // 失败回调
|
|
|
+ fail: (res) => {
|
|
|
+ console.log('调用失败!')
|
|
|
+ that.contactUs()
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
topSwiperTab(e) {
|
|
|
var that = this;
|
|
|
this.status = Number(e.target.current);
|
|
@@ -162,7 +188,13 @@
|
|
|
that.label=res.data.data.label.split(',')
|
|
|
}
|
|
|
if(res.data.data.sitePhotoAddress){
|
|
|
- that.sitePhotoAddress=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ var tmp=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ that.sitePhotoAddress = []
|
|
|
+ for(var i=0;i<tmp.length;i++){
|
|
|
+ if(tmp[i]){
|
|
|
+ that.sitePhotoAddress.push(tmp[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -184,7 +216,13 @@
|
|
|
that.label=res.data.data.label.split(',')
|
|
|
}
|
|
|
if(res.data.data.sitePhotoAddress){
|
|
|
- that.sitePhotoAddress=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ var tmp=res.data.data.sitePhotoAddress.split(',')
|
|
|
+ that.sitePhotoAddress = []
|
|
|
+ for(var i=0;i<tmp.length;i++){
|
|
|
+ if(tmp[i]){
|
|
|
+ that.sitePhotoAddress.push(tmp[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -212,6 +250,9 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
+ .main_content{
|
|
|
+ margin-top: 60rpx;
|
|
|
+ }
|
|
|
/* 《--轮播 */
|
|
|
.swiper{
|
|
|
position:relative;
|