1、新增签约宝
2、调整自营 3、新增购物车(未完善)
This commit is contained in:
+39
-18
@@ -17,9 +17,9 @@
|
||||
<view class="filter-outer">
|
||||
<el-form @submit.native.prevent label-width="80px">
|
||||
<el-form-item label="关键词:" class="border-bottom pb-30">
|
||||
<el-input @keyup.enter.native="search(1)" clearable placeholder="输入关键字搜索" v-model="keyword">
|
||||
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
||||
<el-button @click="search(1)" type="primary" slot="append" style="border-radius: 0">搜索
|
||||
<el-input @keyup.enter.native="getCompany()" clearable placeholder="输入关键字搜索" v-model="keyword">
|
||||
<i slot="prefix" class="el-input__icon el-icon-getCompany"></i>
|
||||
<el-button @click="getCompany()" type="primary" slot="append" style="border-radius: 0">搜索
|
||||
</el-button>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
@@ -87,43 +87,60 @@
|
||||
<view class="flex justify-end w-100p">
|
||||
<image class="authed" src="/static/images/authed.png" mode="aspectFit"
|
||||
v-if="item.authStatus === 1"/>
|
||||
<gap height="40" v-else/>
|
||||
</view>
|
||||
<view class="flex justify-start items-center">
|
||||
<image :src="item.businessCard.logo" class="logo"/>
|
||||
<image :src="item.businessCard.logo" class="logo" v-if="item.businessCard" mode="aspectFill"/>
|
||||
<view class="logo" v-else/>
|
||||
<view class="ml-35 flex flex-col justify-start items-start">
|
||||
<text>{{ item.name }}</text>
|
||||
<i class="el-icon-star-off text-main my-20"/>
|
||||
<view class="flex justify-start items-center">
|
||||
<i class="el-icon-user"/>
|
||||
<text class="ml-10">{{ item.manager.personName }}</text>
|
||||
<text class="ml-20 text-28">{{ item.businessCard.position }}</text>
|
||||
<text class="ml-10" v-if="item.manager">{{ item.manager.personName }}</text>
|
||||
<text class="ml-20 text-28" v-if="item.businessCard">{{ item.businessCard.position }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<i class="el-icon-map-location mr-15"/>
|
||||
<text>地址:{{ item.manager.address }}</text>
|
||||
<view class="flex-col justify-start items-center">
|
||||
<text>地址:</text>
|
||||
<text v-if="item.manager">{{ item.manager.address }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<i class="el-icon-phone mr-15"/>
|
||||
<text>电话:{{ item.businessCard.phone }}</text>
|
||||
<view class="flex-col justify-start items-center">
|
||||
<text>电话:</text>
|
||||
<text v-if="item.businessCard">{{ item.businessCard.phone }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<i class="el-icon-mobile mr-15"/>
|
||||
<text>手机:{{ item.businessCard.mobile }}</text>
|
||||
<view class="flex-col justify-start items-center">
|
||||
<text>手机:</text>
|
||||
<text v-if="item.businessCard">{{ item.businessCard.mobile }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<i class="el-icon-message mr-15"/>
|
||||
<text>邮箱:{{ item.businessCard.email }}</text>
|
||||
<view class="flex-col justify-start items-center">
|
||||
<text>邮箱:</text>
|
||||
<text v-if="item.businessCard">{{ item.businessCard.email }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<i class="el-icon-data-board mr-15"/>
|
||||
<text>网址:{{ item.businessCard.website }}</text>
|
||||
<view class="flex-col justify-start items-center">
|
||||
<text>网址:</text>
|
||||
<text v-if="item.businessCard">{{ item.businessCard.website }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-between items-center w-100p">
|
||||
<view class="flex justify-start items-center mt-20">
|
||||
<text class="text-main">主营业务:</text>
|
||||
<text>{{ item.businessCard.mainBusiness }}</text>
|
||||
<text v-if="item.businessCard">{{ item.businessCard.mainBusiness }}</text>
|
||||
</view>
|
||||
<el-button type="primary" @click="showInfo(item._id)">查看详情</el-button>
|
||||
</view>
|
||||
@@ -132,15 +149,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<right-bar></right-bar>
|
||||
<common-footer></common-footer>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import provinces from "@/uni_modules/vk-uview-ui/libs/address/provinces.json";
|
||||
import Gap from "../../components/gap/gap.vue";
|
||||
|
||||
export default {
|
||||
name: "list",
|
||||
components: {Gap},
|
||||
data() {
|
||||
return {
|
||||
categoryTreeData: [],
|
||||
@@ -175,7 +195,7 @@ export default {
|
||||
const index = this.checkCategoryList.indexOf(id)
|
||||
if (index === -1) this.checkCategoryList.push(id)
|
||||
else this.checkCategoryList.splice(index, 1)
|
||||
this.search(1)
|
||||
this.getCompany()
|
||||
},
|
||||
selectProvince(code) {
|
||||
if (code === -1) this.checkProvinceList = []
|
||||
@@ -184,16 +204,17 @@ export default {
|
||||
if (index === -1) this.checkProvinceList.push(code)
|
||||
else this.checkProvinceList.splice(index, 1)
|
||||
}
|
||||
this.search(1)
|
||||
},
|
||||
search() {
|
||||
|
||||
this.getCompany()
|
||||
},
|
||||
getCompany() {
|
||||
vk.callFunction({
|
||||
url: 'client/user/pub/getCompany',
|
||||
title: '请求中...',
|
||||
data: {},
|
||||
data: {
|
||||
province: this.checkProvinceList,
|
||||
keyword: this.keyword,
|
||||
mainSpotCategoryIds: this.checkCategoryList,
|
||||
},
|
||||
success: (data) => {
|
||||
this.companyList = data.rows.map(item => {
|
||||
item.name = item.company.companyName
|
||||
|
||||
Reference in New Issue
Block a user