This commit is contained in:
mkm 2023-05-19 15:05:53 +08:00
parent 597531d9fe
commit b10eb57418
3 changed files with 1118 additions and 1068 deletions

View File

@ -4,8 +4,8 @@
<u-empty :show="jurisdiction" marginTop="260" mode="permission" :text="emptyText"
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
<block v-if="isLogin">
<!-- <view class="special_work com" v-if="userInfoData.mer_info.type_id === 12"> -->
<view class="special_work com" v-if="true">
<view class="special_work com" v-if="userInfoData.mer_info.type_id === 12">
<!-- <view class="special_work com" v-if="true"> -->
<view class="title">市级供应链</view>
<view class="content">
<view class="examine" @click="navigator(`/pages/nongKe/supply_chain/goods_list?merid=${mer_id}`)">
@ -38,8 +38,8 @@
</view>
</view>
<!-- <view class="business com" v-if="userInfoData.mer_info.type_id === 10"> -->
<view class="business com" v-if="true">
<view class="business com" v-if="userInfoData.mer_info.type_id === 10">
<!-- <view class="business com" v-if="true"> -->
<view class="special_work com">
<view class="title">我的店铺</view>
<view class="content ">
@ -99,8 +99,8 @@
<!-- <gatherBusiness :userInfoData="userInfoData" /> -->
</view>
<!-- <view class="business com" v-if="userInfoData.mer_info.type_id === 11"> -->
<view class="business com" v-if="true">
<view class="business com" v-if="userInfoData.mer_info.type_id === 11">
<!-- <view class="business com" v-if="true"> -->
<view class="special_work com">
<view class="title">里海云仓</view>
<view class="content ">

View File

@ -22,8 +22,8 @@
</view>
<view class="nav-wrapper" :class="'styleType'+store_street_theme">
<view class='nav acea-row row-middle' :class="'styleType'+store_street_theme">
<view v-for="item in downMenus" :key="item.key" class='item' :class="{'font-colors':firstKey == item.key}"
@click='set_where(item.key)'>
<view v-for="item in downMenus" :key="item.key" class='item'
:class="{'font-colors':firstKey == item.key}" @click='set_where(item.key)'>
<view class="">
{{item.title}}
</view>
@ -45,15 +45,17 @@
<block v-if="store_street_theme == 1">
<view class="mer-item" v-for="(item,index) in storeList" :key='index'>
<view class="mer-hd" @click="goStore(item.mer_id)">
<image :src="item.mini_banner?item.mini_banner:item.mer_banner" mode="aspectFill"></image>
<image :src="item.mini_banner?item.mini_banner:item.mer_banner" mode="aspectFill">
</image>
<view class="mer-name">
<image :src="item.mer_avatar"></image>
<view class="">
<view class="mer-top">
<view class="txt line1">{{item.mer_name}}</view>
<image v-if="margin_ico_switch==1 && margin_ico && item.is_margin==10" :src="margin_ico"
class="store-margin"></image>
<text v-if="item.type_name" class="font-bg-red ml8">{{item.type_name}}</text>
<image v-if="margin_ico_switch==1 && margin_ico && item.is_margin==10"
:src="margin_ico" class="store-margin"></image>
<text v-if="item.type_name"
class="font-bg-red ml8">{{item.type_name}}</text>
<text v-else-if="item.is_trader" class="font-bg-red ml8">自营</text>
</view>
<view class="mer-btn">
@ -61,7 +63,8 @@
{{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+''}}人关注
</view>
<view class="line" v-if="item.distance"></view>
<view class="distance" v-if="item.distance" @click.stop="showStoreLocation(item)">
<view class="distance" v-if="item.distance"
@click.stop="showStoreLocation(item)">
<view class="">
{{item.distance}}
</view>
@ -72,17 +75,20 @@
</view>
</view>
<view class="pro-box" :class="'styleType'+store_street_theme">
<navigator :url="`/pages/goods_details/index?id=${itemn.product_id}&product_type=98`" hover-class="none"
class="pro-item" v-for="(itemn,indexn) in item.recommend.slice(0,3)" :key='indexn'>
<view hover-class="none" class="pro-item"
v-for="(itemn,indexn) in item.recommend" :key='indexn' v-if="indexn<=2">
<view @click="go_details(itemn.product_type,itemn.product_id)">
<view class="picture">
<easy-loadimage mode="widthFix" :image-src="itemn.image"></easy-loadimage>
<view v-if="itemn.border_pic" :style="{ backgroundImage: `url(${itemn.border_pic})` }"
<view v-if="itemn.border_pic"
:style="{ backgroundImage: `url(${itemn.border_pic})` }"
class="border-picture"></view>
</view>
<view class="price">
<text></text>{{itemn.price}}
</view>
</navigator>
</view>
</view>
</view>
</view>
</block>
@ -94,7 +100,8 @@
<view class="mer-count">
<view class="mer-top">
<view class="txt line1">{{item.mer_name}}</view>
<text v-if="item.type_name" class="font-bg-red ml8">{{item.type_name}}</text>
<text v-if="item.type_name"
class="font-bg-red ml8">{{item.type_name}}</text>
<text v-else-if="item.is_trader" class="font-bg-red ml8">自营</text>
</view>
<view class="mer-btn">
@ -102,7 +109,8 @@
{{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+''}}人关注
</view>
<view class="line" v-if="item.distance"></view>
<view class="distance" v-if="item.distance" @click.stop="showStoreLocation(item)">
<view class="distance" v-if="item.distance"
@click.stop="showStoreLocation(item)">
<view class="">
{{item.distance}}
</view>
@ -111,17 +119,22 @@
</view>
</view>
<view class="pro-box">
<navigator :url="`/pages/goods_details/index?id=${itemn.product_id}`" hover-class="none"
class="pro-item" v-for="(itemn,indexn) in item.recommend.slice(0,3)" :key='indexn'>
<view hover-class="none" class="pro-item"
v-for="(itemn,indexn) in item.recommend.slice(0,3)" :key='indexn' v-if="indexn<=2">
<view @click="go_details(itemn.product_type,itemn.product_id)">
<view class="picture">
<easy-loadimage mode="widthFix" :image-src="itemn.image"></easy-loadimage>
<view v-if="itemn.border_pic" :style="{ backgroundImage: `url(${itemn.border_pic})` }"
<easy-loadimage mode="widthFix" :image-src="itemn.image">
</easy-loadimage>
<view v-if="itemn.border_pic"
:style="{ backgroundImage: `url(${itemn.border_pic})` }"
class="border-picture"></view>
</view>
<view class="price">
<text></text>{{itemn.price}}
</view>
</navigator>
</view>
</view>
</view>
</view>
</view>
@ -136,7 +149,8 @@
<view class="">
<view class="mer-top">
<view class="txt line1">{{item.mer_name}}</view>
<text v-if="item.type_name" class="font-bg-red ml8">{{item.type_name}}</text>
<text v-if="item.type_name"
class="font-bg-red ml8">{{item.type_name}}</text>
<text v-else-if="item.is_trader" class="font-bg-red ml8">自营</text>
</view>
<view class="mer-btn">
@ -144,7 +158,8 @@
{{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+''}}人关注
</view>
<view class="line" v-if="item.distance"></view>
<view class="distance" v-if="item.distance" @click.stop="showStoreLocation(item)">
<view class="distance" v-if="item.distance"
@click.stop="showStoreLocation(item)">
<view class="">
{{item.distance}}
</view>
@ -155,17 +170,21 @@
</view>
</view>
<view class="pro-box" :class="'styleType'+store_street_theme">
<navigator :url="`/pages/goods_details/index?id=${itemn.product_id}`" hover-class="none"
class="pro-item" v-for="(itemn,indexn) in item.recommend.slice(0,3)" :key='indexn'>
<view hover-class="none" class="pro-item"
v-for="(itemn,indexn) in item.recommend.slice(0,3)" :key='indexn' v-if="indexn<=2">
<view @click="go_details(itemn.product_type,itemn.product_id)">
<view class="picture">
<image :src="itemn.image"></image>
<view v-if="itemn.border_pic" :style="{ backgroundImage: `url(${itemn.border_pic})` }"
<view v-if="itemn.border_pic"
:style="{ backgroundImage: `url(${itemn.border_pic})` }"
class="border-picture"></view>
</view>
<view class="price">
<text></text>{{itemn.price}}
</view>
</navigator>
</view>
</view>
</view>
</view>
</block>
@ -181,19 +200,31 @@
</view>
</block>
</view>
<rightSlider v-if="rightBox" :status="rightBox" :merList="merList" :storeTypeArr="storeTypeArr" @confirm="confirm"
@close="close"></rightSlider>
<rightSlider v-if="rightBox" :status="rightBox" :merList="merList" :storeTypeArr="storeTypeArr"
@confirm="confirm" @close="close"></rightSlider>
</view>
</template>
<script>
import { storeMerchantList, getGeocoder } from '@/api/store.js';
import {
storeMerchantList,
getGeocoder
} from '@/api/store.js';
import recommend from './component/recommend';
import rightSlider from './component/rightSlider';
import { merClassifly, getStoreTypeApi } from '@/api/store.js';
import { mapGetters } from "vuex";
import { goShopDetail } from '@/libs/order.js'
import { configMap } from '@/utils';
import {
merClassifly,
getStoreTypeApi
} from '@/api/store.js';
import {
mapGetters
} from "vuex";
import {
goShopDetail
} from '@/libs/order.js'
import {
configMap
} from '@/utils';
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
const app = getApp();
export default {
@ -304,6 +335,18 @@
},
methods: {
//
go_details:function(product_type,product_id) {
if (product_type == 98) {
uni.navigateTo({
url: `/pages/admin/goods_details/index?product_id=${product_id}&product_type=${product_type}`
})
}
if (product_type == 0) {
uni.navigateTo({
url: `/pages/goods_details/index?id=${product_id}`
})
}
},
getClassfication: function() {
let temp = []
merClassifly()
@ -429,7 +472,8 @@
console.log(res)
this.detaile_address = res.data.address;
this.location_address = res.data.address;
this.recommend_address = res.data.address.length > 4 ? res.data.address.slice(0, 4) + '...' :
this.recommend_address = res.data.address.length > 4 ? res.data.address
.slice(0, 4) + '...' :
res.data.address
}).catch(err => {
uni.showToast({

View File

@ -674,6 +674,12 @@
this.getCategory();
break;
case 3:
this.where={
order: '',
keyword: '',
page: 1,
limit: 30
};
this.getGoods();
break;
case 4: