Commit a30e8f9c authored by youjie's avatar youjie

楼宇 企业获取联系方式

parent b753a0a6
...@@ -21,8 +21,14 @@ ...@@ -21,8 +21,14 @@
</view> </view>
<view class="good-info"> <view class="good-info">
<view class="good-name">{{ x.BrandName }}</view> <view class="good-name">{{ x.BrandName }}</view>
<view class="good-price-info"> <view class="good-price-info" style="display: flex;justify-content: space-around;">
<span class="price">{{ x.FullBrandName }}</span> <span class="price" style="flex: 1;">{{ x.FullBrandName }}</span>
<view style="flex-shrink: 0;"
:style="{'color':u.MallBaseId==18?'#017EDF':'#017EDF'}">
<span v-if="x.AreaRequirement>0">{{x.AreaRequirement}}</span>
<span v-if="x.EndAreaRequirement>0&&u.MallBaseId==18"
style="color:rgba(1, 126, 223, .6);"><span style="color: #dedede;">/</span> {{x.EndAreaRequirement }}</span>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -35,6 +41,7 @@ ...@@ -35,6 +41,7 @@
props:['g'], props:['g'],
data() { data() {
return { return {
u:{},
replace: null replace: null
} }
}, },
...@@ -42,7 +49,8 @@ ...@@ -42,7 +49,8 @@
}, },
mounted() { mounted() {
let uid = uni.getStorageSync("mall_UserInfo") let use = uni.getStorageSync("mall_UserInfo")
this.u = use
this.replace = uni.getStorageSync('replace_page_index') this.replace = uni.getStorageSync('replace_page_index')
}, },
methods:{ methods:{
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<view @click="callPhone(infor.ContactPhone)" <view @click="callPhone(infor.ContactPhone)"
:class="[infor.ContactPhone?'active':'']">{{ infor.ContactPhone?infor.ContactPhone:'-' }}</view> :class="[infor.ContactPhone?'active':'']">{{ infor.ContactPhone?infor.ContactPhone:'-' }}</view>
</view> </view>
<view class="contactInforT"> <view class="contactInforT" v-if="infor.TongYiMobile">
<text>线下合作</text> <text>线下合作</text>
<view @click="callPhone(infor.TongYiMobile)" <view @click="callPhone(infor.TongYiMobile)"
:class="[infor.TongYiMobile?'active':'']">{{ infor.TongYiMobile?infor.TongYiMobile:'-' }}</view> :class="[infor.TongYiMobile?'active':'']">{{ infor.TongYiMobile?infor.TongYiMobile:'-' }}</view>
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</view> </view>
</scroll-view> </scroll-view>
<view class="carrier-query-contact"> <view class="carrier-query-contact">
<button <!-- <button
open-type="contact" open-type="contact"
:send-message-title="detailData.CarrierName" :send-message-title="detailData.CarrierName"
:send-message-path="'/pages/kotra/brand/detail_company?id=' + ID" :send-message-path="'/pages/kotra/brand/detail_company?id=' + ID"
...@@ -99,19 +99,29 @@ ...@@ -99,19 +99,29 @@
:show-message-card="true" :show-message-card="true"
> >
<text style="margin-left: 10rpx;" :style="{background:mainColor}">获取联系方式</text> <text style="margin-left: 10rpx;" :style="{background:mainColor}">获取联系方式</text>
</button> -->
<button @click="showContactInfo=true">
<text style="margin-left: 10rpx;" :style="{background:mainColor}"
>获取联系方式</text>
</button> </button>
</view> </view>
<contactInformation v-if="showContactInfo"
:infor="details"
@closeBtn="showContactInfo=false"
></contactInformation>
</view> </view>
</template> </template>
<script> <script>
import hParse from "@/components/u-parse/parse.vue"; import hParse from "@/components/u-parse/parse.vue";
import bianmarenTooltip from "../components/bianmaren-tooltips.vue"; import bianmarenTooltip from "../components/bianmaren-tooltips.vue";
import contactInformation from "../brand/components/contactInformation.vue";
let timer; let timer;
export default { export default {
components: { components: {
hParse, hParse,
bianmarenTooltip, bianmarenTooltip,
contactInformation
}, },
data() { data() {
return { return {
...@@ -138,6 +148,7 @@ export default { ...@@ -138,6 +148,7 @@ export default {
tooltipShow: false, tooltipShow: false,
tooltipBtns: ["今日sad"], tooltipBtns: ["今日sad"],
eleId: "", //点击元素 eleId: "", //点击元素
showContactInfo: false,
}; };
}, },
onLoad(options) { onLoad(options) {
......
...@@ -472,7 +472,7 @@ ...@@ -472,7 +472,7 @@
</scroll-view> </scroll-view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth" ></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth" ></auth>
<view class="carrier-query-contact"> <view class="carrier-query-contact">
<button <!-- <button
open-type="contact" open-type="contact"
:send-message-title="detailData.CarrierName" :send-message-title="detailData.CarrierName"
:send-message-path="'/pages/kotra/carrier/detail_building?id=' + id" :send-message-path="'/pages/kotra/carrier/detail_building?id=' + id"
...@@ -480,17 +480,26 @@ ...@@ -480,17 +480,26 @@
:show-message-card="true" :show-message-card="true"
> >
<text style="margin-left: 10rpx;" :style="{background:mainColor}">获取联系方式</text> <text style="margin-left: 10rpx;" :style="{background:mainColor}">获取联系方式</text>
</button> </button> -->
<button @click="showContactInfo=true">
<text style="margin-left: 10rpx;" :style="{background:mainColor}"
>获取联系方式</text>
</button>
</view> </view>
<contactInformation v-if="showContactInfo"
:infor="detailData"
@closeBtn="showContactInfo=false"
></contactInformation>
</view> </view>
</template> </template>
<script> <script>
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
import contactInformation from "../brand/components/contactInformation.vue";
export default { export default {
components: { components: {
auth auth,
contactInformation
}, },
data() { data() {
return { return {
...@@ -523,6 +532,7 @@ export default { ...@@ -523,6 +532,7 @@ export default {
detailData: { detailData: {
CreateDate: "", CreateDate: "",
}, },
showContactInfo: false,
}; };
}, },
onShareTimeline() { onShareTimeline() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment