<template>
|
<view>
|
<!-- #ifdef MP-WEIXIN || APP-PLUS -->
|
<view class="shop_top" :class="{'topbg':scrollViewTop>10}" :style="'background-color: '+bgcolor+';'">
|
<view class="ww100" :style="'height:'+topBarTop()+'px;'"></view>
|
<view class="tc d-s-c head_top_box" :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;'">
|
<view class="reg180" @click="goback"><text class="icon iconfont icon-jiantou"></text></view>
|
<view class="d-s-c ml20 flex-1">
|
<view class="index-search-cate flex-1" :style="'height:'+topBarHeight()+' px;'" @click="gotoSearch">
|
<text class="icon iconfont icon-sousuo"></text>搜索店内商品
|
</view>
|
</view>
|
<view class="wx-top-right"></view>
|
</view>
|
</view>
|
<view class="top_head pr" :style="'background-color: '+bgcolor+';'">
|
<!-- #ifndef MP-WEIXIN-->
|
<view class="state_top"></view>
|
<!-- #endif -->
|
<view class="head_top" :style="'height:'+topBarTop()+'px;'"></view>
|
<view class="d-b-c" :class="index_open_city==1?'open_city':''" :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;'">
|
</view>
|
<view class="nuter" v-if="openCategory.open">
|
<navBar style="width: 100%;" :color='openCategory.color' @currentIndex="setIndex" :currentI="thisindex"
|
:navList="category_list">
|
</navBar>
|
</view>
|
<view style="height: 20rpx;" v-else></view>
|
</view>
|
<view class="top_bg" :style="'background-color: '+bgcolor+';'">
|
</view>
|
<!-- #endif -->
|
<diy style="position: relative;" :diyItems="items" :city_supplier_ids="city_supplier_ids"
|
:index_open_city="index_open_city"></diy>
|
<tabBar :vars="vars"></tabBar>
|
</view>
|
</template>
|
|
<script>
|
import uniLoadMore from "@/components/uni-load-more.vue";
|
import diy from '@/components/diy/diy.vue';
|
import tabBar from "@/components/shoptabbar/footTabbar.vue"
|
export default {
|
components: {
|
uniLoadMore,
|
tabBar
|
},
|
data() {
|
return {
|
bgcolor:'',
|
longitude:'',
|
latitude:'',
|
isLieBiao: true,
|
shop_info: '', //店铺信息
|
articlelistData: [],
|
/*是否有更多*/
|
no_more: null,
|
/*一页多少条*/
|
list_rows: 10,
|
/*当前第几页*/
|
page: 1,
|
product_list: '', //商品列表
|
adList: '', //banner列表
|
dataList: '',
|
shop_supplier_id: '', //店铺ID
|
isfollow: '', // 是否关注本店
|
// ***********
|
/*是否显示点*/
|
indicatorDots: false,
|
/*是否自动*/
|
autoplay: true,
|
/*切换时间*/
|
interval: 5000,
|
/*动画过渡时间*/
|
duration: 1000,
|
/*数据列表*/
|
listData: [], //优惠券列表
|
// ************
|
/*顶部刷新*/
|
topRefresh: false,
|
/*底部加载*/
|
loading: true,
|
/*没有更多*/
|
no_more: false,
|
/*类别选中*/
|
type_active: 'all',
|
/*价格选中*/
|
price_top: false,
|
/*店铺列表*/
|
shopData: [],
|
/*当前页面*/
|
page: 1,
|
search: '',
|
last_page: 0,
|
/*可滚动视图区域高度*/
|
scrollviewHigh: 0,
|
nav_type: 4,
|
is_open: 0,
|
is_record: 0,
|
liveList: [],
|
dataModel: {
|
qq: '',
|
wechat: '',
|
phone: ''
|
},
|
service_type: 0,
|
service_open: 0,
|
statusBarHeight: 0,
|
titleBarHeight: 0,
|
isFixed: false,
|
scrollViewTop: 0,
|
headHight: 0,
|
topHeight: 0,
|
tabIndexTop: 0,
|
tabIndexFixed: false,
|
tabProductTop: 0,
|
tabProductFixed: false,
|
card_num: 0,
|
store_id: '',
|
category_list: [],
|
product_list: [],
|
city_supplier_ids:[],
|
index_cityname:'',
|
index_open_city:0,
|
openCategory: {
|
color: "#000000",
|
open: 0
|
},
|
items: [],
|
url:'',
|
toplogo:'',
|
vars:{}
|
}
|
},
|
computed: {
|
/*加载中状态*/
|
loadingType() {
|
if (this.loading) {
|
return 1;
|
} else {
|
if (this.product_list.length != 0 && this.no_more) {
|
return 2;
|
} else {
|
return 0;
|
}
|
}
|
}
|
},
|
onLoad(option) {
|
let self = this;
|
self.GetStatusBarHeight();
|
if( option.shop_supplier_id){
|
uni.setStorageSync('shop_supplier_id',option.shop_supplier_id)
|
}
|
self.shop_supplier_id = option.shop_supplier_id||uni.getStorageSync('shop_supplier_id');
|
//#ifdef H5
|
if (this.isWeixin()) {
|
this.url = window.location.href;
|
}
|
//#endif
|
},
|
onShow() {
|
if (this.store_id > 0) {
|
uni.navigateBack({});
|
}
|
},
|
mounted() {
|
this.getData();
|
this.getProduct(this.type_active);
|
},
|
onPullDownRefresh() {
|
/*下拉到顶,页面值还原初始化*/
|
this.restoreData();
|
this.getData();
|
this.getProduct(this.type_active);
|
},
|
methods: {
|
changeNavType(e) {
|
this.nav_type = e;
|
this.page = 1;
|
if (e == 0) {
|
this.initTabProduct();
|
} else if (e == 6) {
|
this.articleGetData();
|
}
|
},
|
initTabProduct() {
|
let self = this;
|
let tab_product = uni.createSelectorQuery().in(self).select('.shop');
|
tab_product.boundingClientRect(data => {
|
self.tabProductTop = data.top - self.topHeight;
|
console.log(self.tabProductTop);
|
}).exec();
|
},
|
scrollChnage(e) {
|
let top = e.detail.scrollTop;
|
// console.log(top);
|
this.scrollViewTop = top;
|
this.isFixed = top >= this.headHight ? true : false;
|
this.tabIndexFixed = top >= this.tabIndexTop && this.nav_type == 99 ? true : false;
|
this.tabProductFixed = top >= this.headHight && this.nav_type == 0 ? true : false;
|
},
|
GetStatusBarHeight() {
|
// #ifdef MP-WEIXIN
|
let that = this;
|
const SystemInfo = uni.getSystemInfoSync();
|
let statusBarHeight = SystemInfo.statusBarHeight;
|
this.statusBarHeight = uni.getMenuButtonBoundingClientRect().top;
|
this.titleBarHeight = uni.getMenuButtonBoundingClientRect().height;
|
console.log(this.statusBarHeight);
|
console.log(this.titleBarHeight);
|
// #endif
|
// #ifndef MP-WEIXIN
|
const SystemInfo = uni.getSystemInfoSync();
|
this.statusBarHeight = SystemInfo.statusBarHeight;
|
this.titleBarHeight = 30
|
// #endif
|
},
|
/*初始化*/
|
init() {
|
let self = this;
|
uni.getSystemInfo({
|
success(res) {
|
self.phoneHeight = res.windowHeight;
|
// 计算组件的高度
|
let view = uni.createSelectorQuery().in(self).select('.shop_top');
|
view.boundingClientRect(data => {
|
let h = self.phoneHeight;
|
self.scrollviewHigh = h;
|
self.topHeight = data.height;
|
}).exec();
|
let view_head = uni.createSelectorQuery().in(self).select('.shop_head');
|
view_head.boundingClientRect(data => {
|
self.headHight = data.height - self.topHeight;
|
}).exec();
|
let tab_index = uni.createSelectorQuery().in(self).select('.tab-index');
|
tab_index.boundingClientRect(data => {
|
self.tabIndexTop = data.top - self.topHeight - 90;
|
console.log(self.tabIndexTop);
|
}).exec();
|
}
|
});
|
},
|
/*可滚动视图区域到底触发*/
|
scrolltolowerFunc() {
|
let self = this;
|
self.bottomRefresh = true;
|
self.page++;
|
self.loading = true;
|
if (self.page > self.last_page) {
|
self.loading = false;
|
self.no_more = true;
|
return;
|
}
|
self.getProduct(self.type_active);
|
},
|
getProduct(e) {
|
let self = this;
|
let page = self.page;
|
self.loading = true;
|
self._get('product.product/lists', {
|
page: page || 1,
|
sortType: 'price',
|
sortPrice: 1,
|
sortType: e,
|
shop_supplier_id: self.shop_supplier_id,
|
}, function(res) {
|
self.loading = false;
|
self.product_list = [...self.product_list, ...res.data.list.data];
|
self.last_page = res.data.list.last_page;
|
if (res.data.list.last_page <= 1) {
|
self.no_more = true;
|
}
|
});
|
},
|
/*还原初始化*/
|
restoreData() {
|
this.shopData = [];
|
this.product_list = [];
|
this.page = 1;
|
this.category_id = 0;
|
this.search = '';
|
this.sortType = '';
|
this.sortPrice = 0;
|
},
|
getservice() {
|
let self = this;
|
self.isloding = true;
|
self._get(
|
'index/mpService', {
|
shop_supplier_id: self.shop_supplier_id
|
},
|
function(res) {
|
self.dataModel = res.data.mp_service;
|
self.isloding = false;
|
}
|
);
|
},
|
/*类别切换*/
|
tabTypeFunc(e) {
|
let self = this;
|
if (e != self.type_active) {
|
self.product_list = [];
|
self.page = 1;
|
self.no_more = false;
|
self.loading = true;
|
self.type_active = e;
|
self.getProduct(e);
|
}
|
},
|
|
//获取数据列表
|
/* getData() {
|
let self = this;
|
self.loading = true;
|
self._post('supplier.index/index', {
|
shop_supplier_id: self.shop_supplier_id,
|
visitcode: self.getVisitcode()
|
}, (res) => {
|
if (res.data.store_id) {
|
self.gotoPage('/pages2/goodstore/detail?store_id=' + res.data.store_id);
|
self.store_id = res.data.store_id;
|
return;
|
}
|
self.loading = false;
|
// self.page = res.data.productList.current_page
|
// self.last_page = res.data.productList.last_page
|
// self.product_list = [...self.product_list, ...res.data.productList.data];
|
self.shop_info = res.data.detail;
|
self.adList = res.data.adList;
|
self.isfollow = res.data.detail.isfollow;
|
self.listData = res.data.couponList;
|
self.is_record = res.data.liv_status.is_record;
|
self.is_open = res.data.liv_status.is_open;
|
self.liveList = res.data.liveList.data;
|
self.service_open = res.data.service_open;
|
self.card_num = res.data.card_num;
|
if (res.data.mp_service) {
|
self.service_type = res.data.mp_service.service_type;
|
} else {
|
self.service_type = 10
|
}
|
this.$nextTick(function() {
|
self.init();
|
})
|
self.getservice();
|
})
|
}, */
|
|
//选择图标模式或者列表模式 true 为列表模式 false 为图表模式
|
select_type() {
|
let self = this;
|
self.isLieBiao = !self.isLieBiao
|
},
|
//跳转商品页面
|
goto_product(product_id) {
|
this.gotoPage('/pages/product/detail/detail?product_id=' + product_id);
|
},
|
//关注店铺/取消关注
|
guanzhu() {
|
let self = this;
|
self._post('user.Favorite/add', {
|
pid: self.shop_supplier_id,
|
type: 10
|
}, (res) => {
|
if (self.isfollow == 0) {
|
self.isfollow = 1
|
} else if (self.isfollow == 1) {
|
self.isfollow = 0
|
}
|
})
|
},
|
/**
|
* 领取优惠券
|
*/
|
receiveCoupon: function(index) {
|
let self = this;
|
let item = self.listData[index];
|
if (item.state.value == 0) {
|
uni.showToast({
|
title: '已抢光',
|
icon: 'none'
|
})
|
return false;
|
}
|
self._post(
|
'user.coupon/receive', {
|
coupon_id: item.coupon_id
|
},
|
function(result) {
|
uni.showToast({
|
title: '领取成功',
|
icon: 'success',
|
mask: true,
|
duration: 2000
|
});
|
item.state.value = 0;
|
item.state.text = '已领取';
|
}
|
);
|
self.getData(self.type_active);
|
},
|
/*复制*/
|
copyQQ(message) {
|
//#ifdef MP-WEIXIN
|
uni.setClipboardData({
|
//准备复制的数据
|
data: message,
|
success: function(res) {
|
uni.showToast({
|
title: '复制成功',
|
icon: 'success',
|
mask: true,
|
duration: 2000
|
});
|
}
|
});
|
//#endif
|
//#ifdef H5
|
var input = document.createElement("input");
|
input.value = message;
|
document.body.appendChild(input);
|
input.select();
|
input.setSelectionRange(0, input.value.length), document.execCommand('Copy');
|
document.body.removeChild(input);
|
uni.showToast({
|
title: '复制成功',
|
icon: 'success',
|
mask: true,
|
duration: 2000
|
});
|
//#endif
|
},
|
/*拨打电话*/
|
callPhone(phone) {
|
uni.makePhoneCall({
|
phoneNumber: phone
|
});
|
},
|
toRoom(item) {
|
if (item.record_url != '') {
|
this.gotoPage('/pagesLive/live/live?room_id=' + item.room_id + "&sence=join");
|
} else {
|
return false
|
}
|
},
|
toSevice() {
|
if (this.service_type == 10 || this.shop_info.user_id == uni.getStorageInfoSync('user_id')) {
|
this.nav_type = 3;
|
} else if (this.service_type == 20) {
|
this.gotoPage('/pages/plus/chat/chat?user_id=' + this.shop_info.supplier_user_id +
|
'&shop_supplier_id=' + this.shop_info.shop_supplier_id +
|
'&nickName=' + this.shop_info.store_name);
|
}
|
},
|
goback() {
|
uni.navigateBack({
|
|
})
|
},
|
/*跳转搜索页面*/
|
gotoSearch() {
|
this.gotoPage('/pages/shop/search?shop_supplier_id=' + this.shop_supplier_id);
|
},
|
/*获取数据*/
|
articleGetData() {
|
let self = this;
|
let page = self.page;
|
let list_rows = self.list_rows;
|
self.loading = true;
|
uni.showLoading({
|
title: '加载中'
|
});
|
self._get(
|
'plus.article.article/index', {
|
page: page || 1,
|
list_rows: list_rows,
|
category_id: self.type_active,
|
shop_supplier_id: self.shop_supplier_id
|
},
|
function(res) {
|
self.articlelistData = self.listData.concat(res.data.list.data);
|
self.last_page = res.data.list.last_page;
|
if (res.data.list.last_page <= 1) {
|
self.no_more = true;
|
}
|
self.loading = false;
|
uni.hideLoading();
|
}
|
);
|
},
|
|
/*可滚动视图区域到底触发*/
|
scrolltolowerFunc() {
|
let self = this;
|
self.bottomRefresh = true;
|
self.page++;
|
self.loading = true;
|
if (self.page > self.last_page) {
|
self.loading = false;
|
self.no_more = true;
|
return;
|
}
|
self.getData();
|
},
|
|
/*跳转文章详情*/
|
gotoDetail(e) {
|
this.gotoPage('/pages/article/detail/detail?article_id=' + e);
|
},
|
/*获取首页分类*/
|
getData() {
|
let self = this;
|
uni.showLoading({
|
title: '加载中'
|
});
|
self._get('supplier.page/index', {
|
url: self.url,
|
longitude:self.longitude,
|
latitude:self.latitude,
|
shop_supplier_id: self.shop_supplier_id,
|
}, function(res) {
|
self.listData = res.data.list;
|
self.background = res.data.background;
|
self.items = res.data.items;
|
self.title_name = res.data.page.params.title;
|
self.bgcolor = res.data.page.style.titleBackgroundColor;
|
self.msgNum = res.data.msgNum;
|
self.toplogo = res.data.page.style.toplogo;
|
self.setPage(res.data.page);
|
self.title_type = res.data.page.params.title_type;
|
self.titleTextColor = res.data.page.style.titleTextColor;
|
self.openCategory = res.data.page.category;
|
self.vars = res.data.vars;
|
console.log(self.vars);
|
self.index_open_city=res.data.setting.store.index_open_city;
|
self.underline_price_show=res.data.setting.store.underline_price_show;
|
if(res.data.setting.store.index_open_city==1){
|
self.getAddress();
|
}
|
//弹出收藏
|
// #ifdef MP-WEIXIN
|
let isFirst = uni.getStorageSync('isFirst');
|
if (isFirst == '' && res.data.setting.collection.status == '1') {
|
self.is_collection = true;
|
uni.setStorageSync('isFirst', 1);
|
}
|
self.is_follow = res.data.setting.officia.status;
|
// #endif
|
// 首页推送
|
let homepush_name = uni.getStorageSync('homepush_name');
|
if (res.data.setting.homepush.is_open && homepush_name != res.data.setting.homepush.name) {
|
self.homepush_data = res.data.setting.homepush;
|
self.is_homepush = true;
|
self.is_homepush = true;
|
}
|
// 配置微信扫一扫参数
|
//#ifdef H5
|
if (self.url != '') {
|
self.jweixin = self.configWxScan(res.data.signPackage);
|
}
|
//#endif
|
uni.hideLoading();
|
self.loadding = false;
|
uni.stopPullDownRefresh();
|
});
|
},
|
/*设置页面*/
|
setPage(page) {
|
|
uni.setNavigationBarTitle({
|
title: page.params.name
|
});
|
|
let colors = '#000000';
|
if (page.style.titleTextColor == 'white') {
|
//字母要小写
|
colors = '#ffffff'
|
}
|
uni.setNavigationBarColor({
|
frontColor: colors,
|
backgroundColor: page.style.titleBackgroundColor
|
})
|
uni.setStorageSync('page',page);
|
},
|
}
|
}
|
</script>
|
|
<style lang="scss">
|
page {
|
background: #f2f2f2;
|
}
|
|
.bg-f2 {
|
background-color: #F2F2F2;
|
}
|
|
.h1 {
|
font-size: 32rpx;
|
}
|
|
.h2 {
|
font-size: 28rpx;
|
}
|
|
.h3 {
|
font-size: 24rpx;
|
}
|
|
.h4 {
|
font-size: 20rpx;
|
}
|
|
.h5 {
|
font-size: 16rpx;
|
}
|
|
.h6 {
|
font-size: 12rpx;
|
}
|
|
.red {
|
color: #E2231A;
|
}
|
|
.huaxianjia {
|
text-decoration: line-through;
|
color: #999;
|
margin-left: 5rpx;
|
}
|
|
.shop_head {}
|
|
.prodcut-list-wrap {
|
padding-bottom: 100rpx;
|
}
|
|
.shop_head_info {
|
width: 100%;
|
// margin: 0 auto;
|
position: relative;
|
// margin: 80rpx 0 0 0;
|
box-sizing: border-box;
|
border-radius: 30rpx 30rpx 0 0;
|
// background-color: white;
|
padding: 30rpx 30rpx 20rpx;
|
}
|
|
.shop_list_body_item_shop {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
}
|
|
.shop_list_body_item_shop_logo {
|
width: 90rpx;
|
height: 90rpx;
|
}
|
|
.shop_list_body_item_shop_logo image {
|
width: 100%;
|
height: 100%;
|
background-color: rgba(0, 0, 0, 0.1);
|
border-radius: 15rpx;
|
}
|
|
.shop_list_body_item_shop_info {
|
// padding: 10rpx;
|
flex: 1;
|
padding-left: 16rpx;
|
box-sizing: border-box;
|
// margin-left: -10%;
|
padding-top: 0;
|
display: flex;
|
justify-content: space-between;
|
flex-direction: column;
|
height: 90rpx;
|
}
|
|
.shop_list_body_item_shop_others {
|
box-sizing: border-box;
|
display: flex;
|
justify-content: flex-start;
|
flex-direction: column;
|
text-align: right;
|
padding-top: 0;
|
}
|
|
.brand {
|
position: relative;
|
color: #FFFFFF;
|
}
|
|
.sales {
|
color: #FFFFFF;
|
}
|
|
.collect {
|
color: #FFFFFF;
|
}
|
|
.shop_list_body_item_shop_others button {
|
// width: 140rpx;
|
height: 50rpx;
|
line-height: 50rpx;
|
font-size: 30rpx;
|
color: #FFFFFF;
|
border-radius: 30rpx;
|
padding: 0 40rpx;
|
background-color: #F6220C;
|
color: white;
|
}
|
|
.shop_head_banner {
|
width: 100%;
|
padding-bottom: 30rpx;
|
// background-color: #FFFFFF;
|
}
|
|
.shop_head_banner swiper {
|
width: 710rpx;
|
height: 200rpx;
|
margin: 0 auto;
|
border-radius: 12rpx;
|
background: linear-gradient(-57deg, #C3C0FF 1%, #FEEBFF 100%);
|
overflow: hidden;
|
}
|
|
.swiper-item {
|
width: 100%;
|
height: 360rpx;
|
}
|
|
.swiper-item image {
|
width: 100%;
|
height: 100%;
|
}
|
|
.shop_body {
|
width: 100%;
|
background-color: #ffffff;
|
padding: 0rpx 20rpx;
|
box-sizing: border-box;
|
}
|
|
.shop_body_l_item {
|
// width: 90%;
|
// height: 250rpx;
|
margin: 0 auto;
|
background-color: white;
|
// border-radius: 15rpx;
|
// margin-top: 20rpx;
|
display: flex;
|
padding: 40rpx 0;
|
box-sizing: border-box;
|
border-top: 1rpx solid #eeeeee;
|
}
|
|
.shop_body .shop_body_l_item:first-child {
|
border-top: 0;
|
}
|
|
.shop_body_l_item image {
|
width: 150rpx;
|
height: 150rpx;
|
background-color: rgba(0, 0, 0, 0.1);
|
}
|
|
.shop_body_l_item_info {
|
// width: 70%;
|
// height: 100%;
|
flex: 1;
|
display: flex;
|
justify-content: space-between;
|
flex-direction: column;
|
padding-left: 20rpx;
|
box-sizing: border-box;
|
}
|
|
.shop_body_l_item_info_title {
|
display: -webkit-box;
|
-webkit-box-orient: vertical;
|
-webkit-line-clamp: 2;
|
text-overflow: ellipsis;
|
-webkit-box-orient: vertical;
|
word-wrap: break-word;
|
word-break: break-all;
|
overflow: hidden;
|
}
|
|
.shop_body_l_item_info_price {
|
display: flex;
|
align-items: flex-end;
|
}
|
|
.shop_body_l_item_info_price view {
|
margin-right: 15rpx;
|
}
|
|
.shop_body_l_item_info_others {
|
// width: 100%;
|
height: 30rpx;
|
display: flex;
|
justify-content: space-between;
|
}
|
|
.shop_body_l_item_info_others_activity {
|
width: 150rpx;
|
height: 30rpx;
|
line-height: 30rpx;
|
border: 1rpx #E22319 solid;
|
border-radius: 30rpx;
|
/* font-size: 16rpx; */
|
color: #E22319;
|
text-align: center;
|
box-sizing: border-box;
|
}
|
|
.shop_body_l_item_info_others_sales {
|
color: #333333;
|
}
|
|
.shop_body2 {
|
width: 100%;
|
display: flex;
|
justify-content: flex-start;
|
flex-wrap: wrap;
|
background-color: #f2f2f2;
|
}
|
|
.shop_body_t_item {
|
width: 45%;
|
margin: 0 2.5%;
|
margin-top: 20rpx;
|
height: 520rpx;
|
overflow: hidden;
|
background-color: white;
|
border-radius: 12rpx;
|
}
|
|
.collect text {
|
color: #FFFFFF;
|
}
|
|
.shop_body_t_item image {
|
width: 100%;
|
height: 337.5rpx;
|
background-color: rgba(0, 0, 0, 0.1);
|
}
|
|
.shop_body_t_item_info {
|
height: 182.5rpx;
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
padding: 10rpx;
|
box-sizing: border-box;
|
}
|
|
.shop_body_t_item_info_title {
|
display: -webkit-box;
|
-webkit-box-orient: vertical;
|
-webkit-line-clamp: 2;
|
text-overflow: ellipsis;
|
-webkit-box-orient: vertical;
|
word-wrap: break-word;
|
word-break: break-all;
|
overflow: hidden;
|
}
|
|
.shop_body_t_item_info_price {
|
display: flex;
|
align-items: flex-end;
|
}
|
|
.shop_body_t_item_info_others {
|
display: flex;
|
justify-content: space-between;
|
}
|
|
.shop_body_t_item_info_others_activity {}
|
|
.shop_body_t_item_info_others_sales {
|
color: #585858;
|
}
|
|
/* ***************************************** */
|
/* ***************************************** */
|
/* ***************************************** */
|
.diy-coupon {
|
margin: 20rpx;
|
}
|
|
.diy-coupon .swiper {
|
width: 750rpx;
|
height: 168rpx;
|
}
|
|
.diy-coupon .coupon-item {
|
width: 710rpx;
|
height: 200rpx;
|
align-items: stretch;
|
align-content: stretch;
|
color: #ffffff;
|
}
|
|
.diy-coupon .coupon-item.bg-red {
|
background: #e62423;
|
}
|
|
.diy-coupon .coupon-item.bg-blue {
|
background: #178ed9;
|
}
|
|
.diy-coupon .coupon-item.bg-yellow {
|
background: #f4a50b;
|
}
|
|
.diy-coupon .coupon-item.bg-violet {
|
background: #ab0bf6;
|
}
|
|
.diy-coupon .coupon-item .left-type {
|
padding: 0 30rpx 0 40rpx;
|
width: 40rpx;
|
font-size: 40rpx;
|
line-height: 40rpx;
|
text-align: center;
|
font-weight: bold;
|
border-right: 4rpx dashed rgba(255, 255, 255, .4);
|
}
|
|
.diy-coupon .left-side-line {
|
position: absolute;
|
width: 20rpx;
|
top: 0;
|
left: -15rpx;
|
overflow: hidden;
|
}
|
|
.diy-coupon .right-side-line {
|
position: absolute;
|
width: 20rpx;
|
top: 0;
|
right: -15rpx;
|
overflow: hidden;
|
}
|
|
.diy-coupon .side-line .round {
|
display: block;
|
width: 20rpx;
|
height: 20rpx;
|
border-radius: 50%;
|
margin: 4rpx 0;
|
background: #ffffff;
|
}
|
|
.diy-coupon .center-content::before,
|
.diy-coupon .center-content::after {
|
position: absolute;
|
display: block;
|
content: '';
|
width: 30rpx;
|
height: 15rpx;
|
background: #FFFFFF;
|
}
|
|
.diy-coupon .center-content::before {
|
top: 0;
|
right: -16rpx;
|
border-radius: 0 0 15rpx 15rpx;
|
}
|
|
.diy-coupon .center-content::after {
|
bottom: 0;
|
right: -16rpx;
|
border-radius: 15rpx 15rpx 0 0;
|
}
|
|
.diy-coupon .coupon-item .center-content {
|
padding: 20rpx 40rpx;
|
display: flex;
|
justify-content: space-between;
|
flex-direction: column;
|
align-items: flex-start;
|
flex: 1;
|
}
|
|
.diy-coupon .coupon-item .center-content .content-top {
|
height: 50rpx;
|
line-height: 50rpx;
|
}
|
|
.diy-coupon .coupon-item .center-content .content-datatime {
|
padding: 4rpx 10rpx;
|
border-radius: 30rpx;
|
font-size: 20rpx;
|
background: rgba(0, 0, 0, .2);
|
}
|
|
.diy-coupon .coupon-item .right-receive {
|
padding: 0 40rpx 0 30rpx;
|
width: 30rpx;
|
text-align: center;
|
font-size: 30rpx;
|
line-height: 30rpx;
|
text-align: center;
|
border-left: 4rpx dashed rgba(255, 255, 255, .4);
|
background: rgba(0, 0, 0, .6);
|
}
|
|
.diy-coupon .coupon-item .no-receive {
|
background: #acacac;
|
color: #787878;
|
}
|
|
/* ***************************** */
|
.inner-tab {
|
position: relative;
|
height: 80rpx;
|
justify-content: space-around;
|
align-items: center;
|
// border-bottom: 1px solid #dddddd;
|
// background: #ffffff;
|
z-index: 9;
|
}
|
|
.inner-tab .item {
|
flex: 1;
|
font-size: 30rpx;
|
color: #666666;
|
font-size: 32rpx;
|
font-family: PingFang SC;
|
display: inline-block;
|
line-height: 80rpx;
|
padding: 0 36rpx;
|
}
|
|
.inner-tab .item.active,
|
.inner-tab .item .arrow.active .iconfont {
|
color: $dominant-color;
|
}
|
|
.inner-tab .item.active {
|
color: #333333;
|
font-weight: bold;
|
position: relative;
|
}
|
|
.inner-tab .item.active::after {
|
content: '';
|
position: absolute;
|
bottom: 0;
|
width: 52rpx;
|
height: 4rpx;
|
background: #EE1414;
|
border-radius: 2rpx;
|
left: 0;
|
right: 0;
|
margin: 0 auto;
|
}
|
|
.inner-tab .item .box {
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
flex-direction: row;
|
}
|
|
.inner-tab .item .arrows {
|
margin-left: 10rpx;
|
line-height: 0;
|
}
|
|
.inner-tab .item .iconfont {
|
line-height: 24rpx;
|
font-size: 24rpx;
|
}
|
|
.inner-tab .item .arrow,
|
.inner-tab .item .svg-icon {
|
width: 20rpx;
|
height: 20rpx;
|
}
|
|
.box image {
|
width: 36rpx;
|
height: 36rpx;
|
}
|
|
.nav_bottom {
|
height: 100rpx;
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
width: 100%;
|
text-align: center;
|
background-color: #FFFFFF;
|
}
|
|
.nav_bottom .icon {
|
font-size: 50rpx;
|
}
|
|
.nav_bottom .active {
|
color: #E2231A;
|
}
|
|
.nav_bottom .active .icon {
|
color: #E2231A;
|
}
|
|
.live_list {
|
background-color: #FFFFFF;
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
flex-wrap: wrap;
|
padding: 0 30rpx;
|
}
|
|
.live_item {
|
position: relative;
|
margin: 10rpx 0;
|
}
|
|
.live_img {
|
width: 100%;
|
}
|
|
.live_img image {
|
width: 335rpx;
|
height: 375rpx;
|
border-radius: 15rpx;
|
}
|
|
.live_name {
|
font-size: 34rpx;
|
margin: 15rpx 0;
|
}
|
|
.record {
|
position: absolute;
|
top: 0;
|
width: 150rpx;
|
font-size: 22rpx;
|
height: 33rpx;
|
line-height: 32rpx;
|
text-align: center;
|
background: #fdd933;
|
color: #ffffff;
|
}
|
|
.record_off {
|
position: absolute;
|
top: 0;
|
width: 150rpx;
|
font-size: 22rpx;
|
height: 33rpx;
|
line-height: 32rpx;
|
text-align: center;
|
background: #fdd933;
|
color: #ffffff;
|
}
|
|
.mpservice-wrap {
|
width: 100%;
|
box-sizing: border-box;
|
background-color: #FFFFFF;
|
}
|
|
.mpservice-wrap .mp-image {
|
width: 560rpx;
|
margin-top: 40rpx;
|
}
|
|
.mpservice-wrap .mp-image image {
|
width: 100%;
|
}
|
|
.icon-qq {
|
color: #1296db;
|
font-size: 64rpx;
|
}
|
|
.icon-weixin {
|
color: #1afa29;
|
font-size: 64rpx;
|
}
|
|
.icon-guanbi {
|
font-size: 26rpx;
|
}
|
|
.icon-002dianhua {
|
color: #1296db;
|
font-size: 52rpx;
|
}
|
|
.kf-close {
|
justify-content: flex-end;
|
}
|
|
.noDatamodel {
|
font-size: 30rpx;
|
width: 100%;
|
text-align: center;
|
height: 200rpx;
|
line-height: 128rpx;
|
color: #929292;
|
}
|
|
.reg180 {
|
padding-right: 20rpx;
|
text-align: right;
|
transform: rotateY(180deg);
|
// position: absolute;
|
// bottom: 0;
|
}
|
|
.icon-jiantou {
|
|
color: #FFFFFF;
|
font-size: 30rpx;
|
}
|
|
.head_top {
|
position: relative;
|
height: 30px;
|
line-height: 30px;
|
color: #FFFFFF;
|
font-size: 32rpx;
|
z-index: 9;
|
}
|
|
.bg_topimg {
|
position: absolute;
|
top: 0;
|
width: 100%;
|
height: 400rpx;
|
z-index: 0;
|
}
|
|
.shop {
|
background: #f2f2f2;
|
margin-top: 16rpx;
|
position: relative;
|
}
|
|
.shop_red {
|
color: #F6220C;
|
}
|
|
.coupon {
|
position: relative;
|
background-color: #FFFFFF;
|
overflow: hidden;
|
}
|
|
.shop_list_body_item_shop_others .collect_btn {
|
height: 50rpx;
|
line-height: 50rpx;
|
text-align: center;
|
border: 1rpx solid #F6220C;
|
background: #F6220C;
|
color: #FFFFFF;
|
border-radius: 30rpx;
|
font-size: 26rpx;
|
padding: 0 24rpx;
|
}
|
|
.shop_list_body_item_shop_others .collected {
|
border: 1rpx solid #FFFFFF;
|
color: #FFFFFF;
|
background: none;
|
}
|
|
.noborder {
|
border: none;
|
}
|
|
.range_item {
|
border: 1rpx solid #D9D9D9;
|
border-top: none;
|
padding: 8rpx;
|
border-bottom-left-radius: 10rpx;
|
border-bottom-right-radius: 10rpx;
|
color: #666666;
|
box-shadow: 0 0 8rpx rgba(0, 0, 0, 0.1);
|
}
|
|
.top_search_right {
|
font-size: 20rpx;
|
line-height: normal;
|
}
|
|
.top_search_right .icon {}
|
|
.top_search_right .icon-31guanzhu1xuanzhong {
|
color: #F6220C;
|
}
|
|
.shop_top {
|
position: fixed;
|
width: 100%;
|
z-index: 99;
|
padding-bottom: 16rpx;
|
transition: 500ms;
|
}
|
|
.head_top_box {
|
color: #FFFFFF;
|
}
|
|
.shop_list_body_item_shop_info .icon-htmal5icon24 {
|
color: #F6220C;
|
}
|
|
/* ***************************************** */
|
/* ***************************************** */
|
/* ***************************************** */
|
.swiper-list {
|
display: flex;
|
}
|
|
.shop-coupon {
|
padding: 30rpx 20rpx;
|
position: relative;
|
}
|
|
.shop-coupon scroll-view {
|
height: 94rpx;
|
}
|
|
.shop-coupon .swiper {
|
width: 750rpx;
|
}
|
|
.shop-coupon .coupon-item {
|
width: 300rpx;
|
height: 94rpx;
|
align-items: stretch;
|
align-content: stretch;
|
color: #ffffff;
|
margin-right: 20rpx;
|
}
|
|
.shop-coupon .coupon-item.bg-red {
|
background: #e62423;
|
}
|
|
.shop-coupon .coupon-item.bg-blue {
|
background: #178ed9;
|
}
|
|
.shop-coupon .coupon-item.bg-yellow {
|
background: #f4a50b;
|
}
|
|
.shop-coupon .coupon-item.bg-violet {
|
background: #ab0bf6;
|
}
|
|
.shop-coupon .coupon-item .left-type {
|
padding: 0 10rpx 0 10rpx;
|
font-size: 40rpx;
|
line-height: 40rpx;
|
text-align: center;
|
border-right: 2rpx dotted rgba(255, 255, 255, .4);
|
}
|
|
.shop-coupon .left-side-line {
|
position: absolute;
|
width: 10rpx;
|
top: 0;
|
left: -6rpx;
|
overflow: hidden;
|
}
|
|
.shop-coupon .right-side-line {
|
position: absolute;
|
width: 10rpx;
|
top: 0;
|
right: -6rpx;
|
overflow: hidden;
|
}
|
|
.shop-coupon .side-line .round {
|
display: block;
|
width: 10rpx;
|
height: 10rpx;
|
border-radius: 50%;
|
margin: 4rpx 0;
|
background: #ffffff;
|
}
|
|
.shop-coupon .center-content::before,
|
.shop-coupon .center-content::after {
|
position: absolute;
|
display: block;
|
content: '';
|
width: 13rpx;
|
height: 6rpx;
|
background: #FFFFFF;
|
}
|
|
.shop-coupon .center-content::before {
|
top: 0;
|
right: -8rpx;
|
border-radius: 0 0 10rpx 10rpx;
|
}
|
|
.shop-coupon .center-content::after {
|
bottom: 0;
|
right: -8rpx;
|
border-radius: 10rpx 10rpx 0 0;
|
}
|
|
.shop-coupon .coupon-item .center-content {
|
padding: 14rpx 10rpx;
|
display: flex;
|
justify-content: space-between;
|
flex-direction: column;
|
align-items: flex-start;
|
flex: 1;
|
}
|
|
.shop-coupon .coupon-item .center-content .content-top {
|
// height: 50rpx;
|
// line-height: 50rpx;
|
}
|
|
.shop-coupon .coupon-item .center-content .content-datatime {
|
padding: 4rpx 10rpx;
|
border-radius: 30rpx;
|
font-size: 20rpx;
|
background: rgba(0, 0, 0, .2);
|
}
|
|
.shop-coupon .coupon-item .right-receive {
|
padding: 0 10rpx 0 10rpx;
|
width: 40rpx;
|
text-align: center;
|
font-size: 22rpx;
|
line-height: 30rpx;
|
text-align: center;
|
border-left: 2rpx dotted rgba(255, 255, 255, .4);
|
background: rgba(0, 0, 0, .2);
|
}
|
|
.shop-coupon .coupon-item .no-receive {
|
background: #acacac;
|
color: #787878;
|
}
|
|
/* ***************************** */
|
.topbg {
|
background-color: #333648;
|
transition: 500ms;
|
}
|
|
.topbg-white .icon-jiantou {
|
color: #333333;
|
}
|
|
.topbg-white .top_search_right {
|
color: #555555;
|
}
|
|
.topbg-white .index-search-cate {
|
background: #E5E5E5;
|
}
|
|
.tab-product {
|
display: flex;
|
margin-top: 16rpx;
|
border-bottom: 1rpx solid #eeeeee;
|
background-color: #FFFFFF;
|
}
|
|
.tab-product .item {
|
color: #999999;
|
font-size: 28rpx;
|
}
|
|
.shop-product {
|
margin-top: 0;
|
}
|
|
.tab-product .item.active {
|
font-weight: normal;
|
}
|
|
.tab-product .item.active::after {
|
width: 30rpx;
|
}
|
|
.tab-fixed {
|
position: fixed;
|
top: 0;
|
width: 100%;
|
background-color: #333648;
|
z-index: 99;
|
}
|
|
.tab-top .item,
|
.tab-top .item.active {
|
color: #FFFFFF;
|
}
|
|
.tab-top .item.active:after {
|
background: #FFFFFF;
|
height: 6rpx;
|
}
|
|
.head_top_box .index-search-cate {
|
background: rgba(255, 255, 255, .4);
|
border: 0;
|
color: #eeeeee;
|
}
|
|
.head_top_box .index-search-cate text {
|
color: #eeeeee;
|
}
|
|
/* 会员卡 */
|
.card-box {
|
pposition: relative;
|
margin: 0 20rpx;
|
// height: 114rpx;
|
padding: 24rpx;
|
color: #ffe49b;
|
line-height: 52rpx;
|
font-size: 26rpx;
|
box-sizing: border-box;
|
background: linear-gradient(to right, #2F2F2F, #776047);
|
border-radius: 16rpx;
|
}
|
|
.btn-card-box {
|
width: 164rpx;
|
height: 52rpx;
|
line-height: 52rpx;
|
border-radius: 26rpx;
|
background-color: #ffe49b;
|
font-size: 22rpx;
|
color: #54412c;
|
text-align: center;
|
font-weight: 600;
|
}
|
|
.btn-card-box .icon.iconfont.icon-jiantou {
|
font-size: 22rpx;
|
color: #54412c;
|
}
|
|
.v-log {
|
width: 31rpx;
|
height: 28rpx;
|
margin-right: 8rpx;
|
}
|
|
.shop_info_description {
|
padding: 20rpx;
|
font-size: 28rpx;
|
line-height: 2;
|
}
|
|
.article-list-wrap .type-list .tab-item {
|
padding: 0 30rpx;
|
font-size: 34rpx;
|
height: 86rpx;
|
line-height: 86rpx;
|
white-space: nowrap;
|
border-bottom: 4rpx solid #FFFFFF;
|
}
|
|
.article-list-wrap .type-list .tab-item.active {
|
border-bottom: 4rpx solid;
|
@include border_color('border_color');
|
margin-bottom: 0;
|
}
|
|
.article-list {
|
background: #ffffff;
|
}
|
|
.article-list .item {
|
padding: 30rpx;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
border-bottom: 1px solid #e3e3e3;
|
}
|
|
.article-list .item .info {
|
flex: 1;
|
overflow: hidden;
|
}
|
|
.article-list .item .title {
|
font-size: 36rpx;
|
}
|
|
.article-list .item .summary {
|
margin-top: 20rpx;
|
font-size: 28rpx;
|
color: #999999;
|
}
|
|
.article-list .item .title,
|
.article-list .item .summary {
|
display: -webkit-box;
|
overflow: hidden;
|
-webkit-line-clamp: 2;
|
-webkit-box-orient: vertical;
|
}
|
|
.article-list .item .pic {
|
padding-left: 30rpx;
|
}
|
|
.article-list .item .pic,
|
.article-list .item .pic image {
|
width: 160rpx;
|
height: 160rpx;
|
}
|
|
.article-list .item .datatime {
|
margin-top: 20rpx;
|
font-size: 24rpx;
|
color: #999999;
|
}
|
</style>
|