| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937 |
- <template>
- <view>
- <view class='productList' :style="viewColor">
- <view class='search acea-row row-between-wrapper' :class="'styleType'+store_street_theme">
- <view class="back" @click='backjJump()'>
- <view class="iconfont icon-xiangzuo"></view>
- </view>
- <view class='input acea-row row-between-wrapper'><text class='iconfont icon-sousuo'></text>
- <input placeholder='搜索店铺名称' placeholder-class='placeholder' confirm-type='search' name="search" :value='sotreParam.keyword'
- @confirm="searchSubmit"></input>
- </view>
- <view v-if="mer_location == 1" :class="'styleType'+store_street_theme" style="text-align: right;" class='iconfont search-right' @click='showMaoLocation(latitude,longitude)'>
- <view class="iconfont icon-dingwei"></view>
- <view class="right-text" v-if="recommend_address">
- {{recommend_address}}
- </view>
- <view class="iconfont icon-xiangyou" v-if="recommend_address"></view>
- </view>
- </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 class="">
- {{item.title}}
- </view>
- <view class="line" :class="{'font-line':firstKey == item.key}">
- </view>
- </view>
- <view class="item" @click="bindRight">
- <view>筛选
- <!-- <text class="iconfont icon-shaixuan"></text> -->
- </view>
- <view class="line">
- </view>
- </view>
- </view>
- </view>
- <!-- 店铺 -->
- <block>
- <view class="mer-box">
- <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"></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>
- <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">
- <view class="">
- {{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="">
- {{item.distance}}
- </view>
- <view class="iconfont icon-xiangyou"></view>
- </view>
- </view>
- </view>
- </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" :key='indexn' v-if="item.recommend.length<=3">
- <easy-loadimage mode="widthFix" :image-src="itemn.image"></easy-loadimage>
- <view class="price">
- <text>¥</text>{{itemn.price}}
- </view>
- </navigator>
- </view>
- </view>
- </block>
- <block v-if="store_street_theme == 2">
- <view class="mer-item2" v-for="(item,index) in storeList" :key='index'>
- <view class="mer-hd mer-shop-count" @click="goStore(item.mer_id)">
- <image class="mer-avatar" :src="item.mer_avatar"></image>
- <view class="mer-shop-right">
- <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-else-if="item.is_trader" class="font-bg-red ml8">自营</text>
- </view>
- <view class="mer-btn">
- <view class="">
- {{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="">
- {{item.distance}}
- </view>
- <view class="iconfont icon-xiangyou"></view>
- </view>
- </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" :key='indexn' v-if="item.recommend.length<=3">
- <easy-loadimage mode="widthFix" :image-src="itemn.image"></easy-loadimage>
- <view class="price">
- <text>¥</text>{{itemn.price}}
- </view>
- </navigator>
- </view>
- </view>
- </view>
- </view>
- </block>
- <block v-if="store_street_theme == 3">
- <view class="mer-item mer-item3" v-for="(item,index) in storeList" :key='index' :style="'background-image:url('+item.mer_banner+')'">
- <view class="mer-hd" @click="goStore(item.mer_id)">
- <view class="mer-name">
- <image :src="item.mer_avatar"></image>
- <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-else-if="item.is_trader" class="font-bg-red ml8">自营</text>
- </view>
- <view class="mer-btn">
- <view class="">
- {{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="">
- {{item.distance}}
- </view>
- <view class="iconfont icon-xiangyou"></view>
- </view>
- </view>
- </view>
- </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" :key='indexn' v-if="item.recommend.length<=3">
- <image :src="itemn.image"></image>
- <view class="price">
- <text>¥</text>{{itemn.price}}
- </view>
- </navigator>
- </view>
- </view>
- </block>
- <view class='loadingicon acea-row row-center-wrapper' v-if="loading">
- <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
- </view>
- </view>
- <view class='no-shop' v-if="!storeList.length && !loading && !loadingIcon" v-cloak>
- <view class='pictrue' style="margin: 0 auto;">
- <image src='http://ygs.hqgjsmc.com/baseimg/noCart.png'></image>
- <text>暂无店铺,快去搜索其他店铺吧</text>
- </view>
- </view>
- </block>
- </view>
- <rightSlider v-if="rightBox" :status="rightBox" :merList="merList" :storeTypeArr="storeTypeArr" @confirm="confirm" @close="close"></rightSlider>
- </view>
- </template>
- <script>
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- import { storeMerchantList, getGeocoder } from '@/api/store.js';
- import recommend from '@/components/recommend';
- import rightSlider from '@/components/rightSlider/index';
- 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 {
- components: {
- recommend,
- rightSlider,
- easyLoadimage
- },
- data() {
- return {
- price: 0,
- stock: 0,
- nows: false,
- loading: false,
- loadingIcon: true,
- loadTitle: '加载更多',
- title: '',
- hotPage: 1,
- hotLimit: 10,
- hotScroll: false,
- // 筛选框
- rightBox: false,
- //品牌列表
- brandList: [],
- downKey: 0,
- downStatus: false,
- // 下拉菜单
- downMenu: [{
- title: '默认',
- key: 0,
- order: ""
- },
- {
- title: '销量',
- key: 1,
- order: 'sales'
- },
- {
- title: '好评',
- key: 2,
- order: 'rate'
- },
- {
- title: '距离',
- key: 3,
- order: 'location'
- }
- ],
- // 是否第一个
- firstKey: 0,
- // 商铺列表
- storeList: [],
- sotreParam: {
- keyword: '',
- page: 1,
- limit: 10,
- order: '',
- category_id : '',
- type_id: ''
- },
- storeKey: 0,
- storeScroll: true,
- mer_id: '',
- sortId: '',
- price_on: '',
- price_off: '',
- detaile_address: "",
- recommend_address: "",
- location_address: "",
- latitude: "",
- longitude: "",
- count: 0,
- storeTypeArr: [], //店铺类型
- merList: [], //商户分类
- };
- },
- onLoad() {
- this.storeList = [];
- if (this.mer_location == 1) {
- this.selfLocation()
- } else{
- this.storeMerchantList();
- }
- this.getClassfication();
- this.getStoreType();
- },
- computed: {
- downMenus: function() {
- return this.downMenu.filter((item) => {
- if (this.mer_location) {
- return item
- } else {
- return item.key < 3
- }
- })
- },
- ...configMap({
- mer_location: 0,
- store_street_theme: 1,
- hide_mer_status: '',
- }, mapGetters(['viewColor'])),
- },
- methods: {
- // 获取商户分类
- getClassfication: function() {
- let temp = []
- merClassifly()
- .then(res => {
- temp = res.data.map(item => {
- return {
- ...item,
- check: false
- }
- })
- if (this.sotreParam.category_id.length > 0) {
- this.sotreParam.category_id.forEach((ids, index) => {
- temp.forEach(el => {
- if (ids == el.merchant_category_id) {
- el.check = true
- }
- })
- })
- }
- this.merList = temp
- })
- .catch(res => {
- this.$util.Tips({
- title: res
- });
- });
- },
- // 获取店铺类型
- getStoreType: function() {
- let temp = []
- getStoreTypeApi()
- .then(res => {
- temp = res.data.map(item => {
- return {
- ...item,
- check: false
- }
- })
- if (this.sotreParam.type_id.length > 0) {
- this.sotreParam.type_id.forEach((ids, index) => {
- temp.forEach(el => {
- if (ids == el.mer_type_id) {
- el.check = true
- }
- })
- })
- }
- this.storeTypeArr = temp
- })
- .catch(res => {
- this.$util.Tips({
- title: res
- });
- });
- },
- /** 打开地图**/
- showMaoLocation(lat, long) {
- if (!lat || !long) return this.$util.Tips({
- title: '请设置允许商城访问您的位置!'
- });
- //#ifdef H5
- if (this.$wechat.isWeixin() === true) {
- this.$wechat.seeLocation({
- latitude: Number(lat),
- longitude: Number(long),
- address: this.location_address
- }).then(res=>{
- console.log('success');
- })
- }else{
- //#endif
- uni.openLocation({
- latitude: parseFloat(lat),
- longitude: parseFloat(long),
- address: this.location_address,
- scale: 8,
- success: function(res) {
- console.log(res)
- },
- });
- // #ifdef H5
- }
- //#endif
- },
- showStoreLocation(item) {
- if (!item.lat || !item.long) return this.$util.Tips({
- title: '请设置允许商城访问您的位置!'
- });
- //#ifdef H5
- if (this.$wechat.isWeixin() === true) {
- this.$wechat.seeLocation({
- latitude: Number(item.lat),
- longitude: Number(item.long),
- name: item.mer_name,
- address: item.mer_address ? item.mer_address: '',
- }).then(res=>{
- console.log('success');
- })
- }else{
- //#endif
- uni.openLocation({
- latitude: parseFloat(item.lat),
- longitude: parseFloat(item.long),
- scale: 8,
- name: item.mer_name,
- address: item.mer_address ? item.mer_address: '',
- success: function(res) {
- console.log(res)
- },
- });
- // #ifdef H5
- }
- //#endif
- },
- selfLocation() {
- let self = this
- uni.getLocation({
- type: 'gcj02',
- success: (res) => {
- let latitude, longitude;
- latitude = res.latitude.toString();
- longitude = res.longitude.toString();
- this.latitude = res.latitude
- this.longitude = res.longitude
- getGeocoder({
- lat: latitude,
- long: longitude
- }).then(res => {
- 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) + '...' : res.data.address
- })
- },
- fail: (res) => {
- uni.showToast({
- title: res,
- icon: 'none',
- duration: 1000
- });
- },
- complete: (res) => {
- this.storeMerchantList();
- }
- });
- },
- // 查找店铺
- storeMerchantList() {
- if (this.loading) return
- this.loading = true
- let rqData = {
- keyword: this.sotreParam.keyword,
- page: this.sotreParam.page,
- limit: 10,
- order: this.sotreParam.order,
- category_id: this.sotreParam.category_id,
- type_id: this.sotreParam.type_id
- }
- if (this.latitude) {
- rqData.location = this.latitude + ',' + this.longitude
- }
- storeMerchantList(rqData).then(res => {
- this.count = res.data.count
- this.storeList = this.storeList.concat(res.data.list)
- this.loading = false
- this.loadingIcon = false
- })
- },
- // 进店
- goStore(id) {
- if (this.hide_mer_status != 1) {
- uni.navigateTo({
- url: `/pages/store/index?id=${id}`
- })
- }
- },
- searchSubmit: function(e) {
- let that = this;
- that.$set(that.sotreParam, 'keyword', e.detail.value);
- this.set_where(this.firstKey)
- },
- // 右侧切换
- bindRight() {
- this.sotreParam.page = 1
- this.rightBox = true
- },
- // 组件确定
- confirm(data) {
- let arr1 = [],arr2 = []
- if (data.storeTypeArr.length == 0) {
- this.sotreParam.type_id = ''
- } else {
- data.storeTypeArr.forEach(item => {
- arr1.push(item.mer_type_id)
- })
- this.sotreParam.type_id = arr1.toString();
- }
- if (data.merList.length == 0) {
- this.sotreParam.category_id = ''
- } else {
- data.merList.forEach(item => {
- arr2.push(item.merchant_category_id)
- })
- this.sotreParam.category_id = arr2.toString();
- }
- this.rightBox = data.status
- this.loadend = false;
- this.$set(this.sotreParam, 'page', 1)
- this.storeList = [];
- this.storeMerchantList();
- },
- // 组件关闭
- close() {
- this.rightBox = false
- },
- //点击事件处理
- set_where: function(e) {
- if (this.loading) return
- this.storeList = []
- this.firstKey = e
- this.sotreParam.page = 1
- this.sotreParam.order = this.downMenu[e].order
- this.storeMerchantList();
- },
- backjJump() {
- uni.navigateBack({
- delta: 1
- })
- },
- },
- //刷新
- onPullDownRefresh() {},
- //上划加载更多
- onReachBottom() {
- if (this.count === this.storeList.length) {
- if (this.count === 0) {
- return
- }
- uni.showToast({
- title: '已加载全部',
- icon: 'none',
- duration: 1000
- });
- } else {
- this.sotreParam.page += 1
- this.storeMerchantList()
- }
- },
- // 滚动监听
- onPageScroll(e) {
- // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
- uni.$emit('scroll');
- }
- }
- </script>
- <style lang="scss">
- .productList .search {
- width: 100%;
- height: 86rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- position: fixed;
- left: 0;
- top: 0;
- z-index: 9;
- display: flex;
- flex-wrap: nowrap;
- background-color: #fff;
- &.styleType1{
- background-color: var(--view-theme);
- }
- .search-right {
- display: flex;
- align-items: center;
- justify-content: space-between;
- max-width: max-content;
- flex: 1;
- padding-left: 20rpx;
- }
- .right-text {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: 28rpx;
- width: max-content;
- color: #fff;
- padding: 0 10rpx;
- }
- .icon-xiangyou,
- .icon-dingwei {
- font-size: 30rpx;
- color: #fff;
- }
- }
- .search-right.styleType2 .right-text, .search-right.styleType3 .right-text{
- color: #282828;
- }
- .search-right.styleType2 .icon-xiangyou,.search-right.styleType3 .icon-xiangyou{
- color: #999999;
- }
- .search-right.styleType2 .icon-dingwei,.search-right.styleType3 .icon-dingwei{
- color: #8A8A8A;
- }
- .productList .search .back {
- display: flex;
- align-items: center;
- width: 40rpx;
- height: 60rpx;
- .iconfont {
- color: #fff;
- font-size: 36rpx;
- }
- }
- .productList .search .input {
- flex: 1;
- height: 60rpx;
- background-color: #fff;
- border-radius: 50rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- }
- .productList .search.styleType2 .input,.productList .search.styleType3 .input{
- background: #EDEDED;
- }
- .productList .search .input input {
- flex: 1;
- height: 100%;
- font-size: 26rpx;
- margin-left: 10rpx;
- }
- .productList .search .input .placeholder {
- color: #999;
- }
- .productList .search .input .iconfont {
- font-size: 35rpx;
- color: #555;
- }
- .productList .search .icon-pailie,
- .productList .search .icon-tupianpailie {
- color: #fff;
- width: 62rpx;
- font-size: 40rpx;
- height: 86rpx;
- line-height: 86rpx;
- }
- .productList .nav-wrapper {
- z-index: 9;
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- margin-top: 86rpx;
- background-color: #fff;
- &.styleType1{
- background-color: var(--view-theme);
- }
- .tab-bar {
- display: flex;
- align-items: center;
- .tab-item {
- position: relative;
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 8rpx 0 20rpx;
- color: #fff;
- font-size: 28rpx;
- font-weight: bold;
- &::after {
- content: ' ';
- position: absolute;
- left: 50%;
- bottom: 18rpx;
- width: 30rpx;
- height: 3rpx;
- background: transparent;
- transform: translateX(-50%);
- }
- &.on {
- &::after {
- background: #fff;
- }
- }
- }
- }
- }
- .productList .nav {
- height: 86rpx;
- color: #454545;
- font-size: 28rpx;
- display: flex;
- justify-content: space-between;
- padding: 0 28rpx;
- }
- .productList .nav .item {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- color: #FFFFFF;
- flex: 1;
- }
- .productList .nav.styleType2 .item,.productList .nav.styleType3 .item {
- color: #282828;
- }
- .productList .nav .item.font-colors {
- font-weight: 500;
- color: #FFFFFF;
- }
- .productList .nav.styleType2 .item.font-colors,
- .productList .nav.styleType3 .item.font-colors {
- color: var(--view-theme);
- }
- .productList .nav .item .font-line {
- height: 4rpx;
- background-color: #fff;
- margin-top: 3rpx;
- width: 28rpx;
- animation: line 0.3s;
- -moz-animation: line 0.3s;
- /* Firefox */
- -webkit-animation: line 0.3s;
- /* Safari 和 Chrome */
- -o-animation: line 0.3s;
- /* Opera */
- }
- .productList .nav.styleType2 .item .font-line,
- .productList .nav.styleType3 .item .font-line{
- background-color: var(--view-theme);
- }
- @keyframes line {
- from {
- width: 0rpx;
- }
- to {
- width: 28rpx;
- }
- }
- .productList .nav .item image {
- width: 15rpx;
- height: 19rpx;
- margin-left: 10rpx;
- }
- .mer-box {
- padding: 20rpx 20rpx;
- margin-top: 168rpx;
- .mer-item {
- margin-bottom: 20rpx;
- background-color: #fff;
- border-radius: 16rpx;
- &.mer-item3{
- background-size: cover;
- background-repeat: no-repeat;
- }
- .mer-hd {
- position: relative;
- width: 100%;
- height: 134rpx;
- border-radius: 16rpx 16rpx 0 0;
- overflow: hidden;
- display: flex;
- image {
- width: 100%;
- height: 100%;
- }
- .mer-name {
- position: absolute;
- left: 20rpx;
- top: 30rpx;
- display: flex;
- align-items: center;
- padding: 0 10rpx;
- image {
- width: 79rpx;
- height: 79rpx;
- border: 1px solid #fff;
- border-radius: 50%;
- margin-right: 10rpx;
- }
- .txt {
- flex: 1;
- }
- }
- }
- /deep/.easy-loadimage{
- width: 100%;
- height: 214rpx;
- border-radius: 8rpx;
- }
- .pro-box {
- display: flex;
- align-items: center;
- padding: 20rpx 20rpx 30rpx;
- .pro-item {
- width: 218rpx;
- margin-right: 14rpx;
- /deep/image,uni-image {
- width: 100%;
- height: 214rpx;
- border-radius: 8rpx;
- }
- .price {
- margin-top: 5rpx;
- font-size: 28rpx;
- color: var(--view-priceColor);
- font-weight: bold;
- text {
- font-size: 28rpx;
- }
- }
- &:last-child {
- margin-right: 0;
- }
- }
- &.styleType3{
- padding: 20rpx;
- .pro-item {
- background-color: #fff;
- border-radius: 16rpx;
- text-align: center;
- padding: 10rpx 0 20rpx;
- /deep/image,uni-image {
- width: 194rpx;
- height: 194rpx;
- border-radius: 8rpx;
- }
- }
- }
- }
- }
- .mer-top {
- display: flex;
- align-items: center;
- color: #FFFFFF;
- font-size: 28rpx;
- font-weight: bold;
- margin-bottom: 6rpx;
- .font-bg-red {
- margin-left: 20rpx;
- font-size: 18rpx;
- padding: 2rpx 10rpx;
- color: #fff;
- border-radius: 30rpx;
- width: auto;
- background-color: var(--view-theme);
- border-color: var(--view-theme);
- }
- }
- .mer-btn {
- color: rgba($color: #fff, $alpha: 0.7);
- font-size: 24rpx;
- display: flex;
- align-items: center;
- .line {
- width: 2rpx;
- height: 18rpx;
- color: rgba($color: #fff, $alpha: 0.7);
- margin: 0 12rpx;
- }
- .distance {
- display: flex;
- align-items: center;
- font-size: 24rpx;
- .iconfont {
- font-size: 24rpx;
- line-height: 24rpx;
- }
- }
- }
- .more-shop {
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #FFFFFF;
- padding: 27rpx 0;
- color: #999999;
- font-size: 26rpx;
- .icon-xiangyou {
- font-size: 22rpx;
- }
- }
- }
-
- .mer-item2{
- padding: 20rpx;
- background: #fff;
- margin-bottom: 20rpx;
- border-radius: 16rpx;
- .mer-shop-count{
- display: flex;
- .mer-avatar{
- width: 100rpx;
- height: 100rpx;
- }
- .mer-top{
- color: #282828;
- }
- .mer-shop-right{
- margin-left: 20rpx;
- .mer-btn{
- color: #666666;
- }
-
- }
- .pro-box {
- display: flex;
- align-items: center;
- margin-top: 20rpx;
- .pro-item {
- width: 170rpx;
- margin-right: 20rpx;
- /deep/image,uni-image,/deep/.easy-loadimage {
- width: 100%;
- height: 170rpx;
- border-radius: 8rpx;
- }
- .price {
- margin-top: 5rpx;
- font-size: 28rpx;
- color: var(--view-priceColor);
- font-weight: bold;
- text {
- font-size: 28rpx;
- }
- }
- &:last-child {
- margin-right: 0;
- }
- }
- }
- }
-
- }
- .no-shop {
- background-color: #fff;
- padding-bottom: calc(100% - 176rpx);
- .pictrue {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: $uni-nothing-text;
- image {
- width: 414rpx;
- height: 380rpx;
- }
- }
- }
- </style>
|