|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<!-- 状态栏 -->
|
|
|
|
<view v-if="showHeader" class="status"
|
|
|
|
:style="{ position: headerPosition,top:statusTop,opacity: afterHeaderOpacity}"></view>
|
|
|
|
<!-- 顶部导航栏 -->
|
|
|
|
<view v-if="showHeader" class="header"
|
|
|
|
:style="{ position: headerPosition,top:headerTop,opacity: afterHeaderOpacity }">
|
|
|
|
<!-- 定位城市 -->
|
|
|
|
<view class="addr">
|
|
|
|
<view class="icon location"></view>
|
|
|
|
{{ city }}
|
|
|
|
</view>
|
|
|
|
<!-- 搜索框 -->
|
|
|
|
<view class="input-box">
|
|
|
|
<input placeholder="默认关键字" placeholder-style="color:#c0c0c0;" @tap="toSearch()" />
|
|
|
|
<view class="icon search"></view>
|
|
|
|
</view>
|
|
|
|
<!-- 右侧图标按钮 -->
|
|
|
|
<view class="icon-btn">
|
|
|
|
<!-- <view class="icon yuyin-home"></view> -->
|
|
|
|
<button open-type="contact" class="icon tongzhi" @tap="toMsg"></button>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 占位 -->
|
|
|
|
<view v-if="showHeader" class="place"></view>
|
|
|
|
<!-- 轮播图 -->
|
|
|
|
<view class="swiper">
|
|
|
|
<view class="swiper-box">
|
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange">
|
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id">
|
|
|
|
<image :src="swiper.img" @tap="toSwiper(swiper)"></image>
|
|
|
|
</swiper-item>
|
|
|
|
</swiper>
|
|
|
|
<view class="indicator">
|
|
|
|
<view class="dots" v-for="(swiper, index) in swiperList"
|
|
|
|
:class="[currentSwiper >= index ? 'on' : '']" :key="index"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 广告图 -->
|
|
|
|
<!-- <view class="banner" @click="tao">
|
|
|
|
<image src="/static/img/banner.jpg"></image>
|
|
|
|
</view> -->
|
|
|
|
<!-- 商品列表 -->
|
|
|
|
<view class="goods-list">
|
|
|
|
<view class="title">
|
|
|
|
<image src="/static/img/hua.png"></image>
|
|
|
|
赠券专区
|
|
|
|
<image src="/static/img/hua.png"></image>
|
|
|
|
</view>
|
|
|
|
<view v-if="productList == '' " class="mart60 fotct font14 fcor666">
|
|
|
|
<image style="width: 100px;height: 100px;"
|
|
|
|
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAPoElEQVR4Xu1daXBcRxGefqusIisJUS6UiwApU4TiKkhxQ8UU91Gc5XAYE8na995KsoiVkBPiXTuxndiWHMmr9+atLYMxhJiQOyE4IcoB4aaAgiKFCyoQElS5lEocKZG0r6l2zUuthazdfvv20s783e6Z7p7v9XT3zOyA0K2hLQANrb1WXmgANDgINAA0ABrcAg2uvvYAGgANboEGV197AA2AxrQAIoLneWtJe9M00wCAjWiJhvMAqVTKaG9vXwsAV+RPOCKuGx8fT6dSKb+RgNAwANi7d29sYmKCvvhvF5jg9W1tbenly5fnGgEIix4AY2NjTfv371+LiN/iTCgAXLl06dL0smXLZjl89Ua7aAEgpTxCCEFf/OUlTspVQoi0ZVkzJfZTk+yLDgBDQ0PNzc3NtL5fFqXFEXHj9PR0uq+v76Uo+612X4sGALt27TpyenqavvhLymzUTfF4PN3R0fFimcepSPd1D4CBgYGWJUuWUFR/McdiAHBfLpdLE08sFqMY4Rwm/9UHDhxI9/f3T3H4ao22bgEgpVyi1viLOEYNJj6ZTN6Xz+c4zjlhgCCEuEbFCJMcOWqFtu4AsHv37tapqSly9d/kGBEA7s7lchvmTvzcPkoAwuaWlpb0ypUrX+DIVW3augFAJpM5ir5QALiQabQ7fN/fUmjiowICAGyZmZlJ9/T0HGDKWRXymgfAzp07j56dnaUv/gKOhRDxJkQc4k58VEAQQmxtampKr1q16nmO3JWmrVkA7Nmz55jJyUkKzvqZRrne93231ImPEAiDra2tqRUrVjzH1KMi5DUHgMHBwWMpqhdCnM+0wPeEEJ5lWT9n8rH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KFioCw4QAQ2MxxnHeo9PHjHDsi4oPkEZLJ5L35fHSS2Pd9+j9hFrCEED+hXdCurq6K/kFFnh3oKHztbQZxJqUUWinlO1WM8DFmP/dTOgYAPgDQP4h/iMNP5xlUOkfH3avWGtYDzLW467rvVksD+1IIc/b2qZiiKv8/MFdWDYA5FvE8j66HUfr4YebELkhOfzSpSrYPRdlvqX1pABzGglLK96lbyizXPk93FDRSOlfWfx8LCwQNgAKWy2az71fp4wc5RqbzCBTcJRKJBzl8labVACjS4q7rfkDFCAtelBBC0PmDtGma9xfZdVXJNACY5nccJ0X77vOx0f/3JZNJ2pmsm6YBwJwqDYBDDVbS3UC6FxD1zRjmfLLJNQA0APQSkIcB7QHyjKFjgHkc6kLXw/USwF6BImfQQSDTpDoG0DGAjgF0DKDrAAEGdBCog8CFF1EdBDKDjAqT6yCQaXAdBOogUAeBOgjUQaAOAudZOnQlUFcC9XbwXAzoLIAZZVaYXGcBTIPrLEBnAToL0FmAzgJ0FqCzgIMW0HsBei9A7wUEFtB1AF0H0HUAXQfQ9wIOwYAuBDELDRUmr3YhqCOZTNJz7XXTFmEh6DzDMOZ9iq/s7wUcTCMA/kXBk23bZX8PMAqULRYA0HsGdMUNEc84nF0qAoBgcER8VP1HzmgUE1WuPuodAPRwNl17B4CCT9tUFAB5E0ZPmKYty9pRrkkspd96BYCUkv6fkC61nlas/pEAoISHIx9T16yzxQpcCbp6A4DneQn6SxohxCkc+0T2cGQwaNinY4UQ9N49eQTJUaBctPUCACmlpb74k5m2iPbp2LmDh308WggxTi+H2LbtMhWKlLzWAeB5no2I5OrbOYqX/fHoucKU8Hz8E+o/dyJ/Pr4Yg9UqAFzXpSdtaeJPKkaPPJrKPh8/VzjHcU5Vj0snmII/qZaGDJOvJPJaA4CUske5+hM5igFANpfLUen6MQ7fXNqCu4HFdj48PHxKPB4nBLNezBBCPKW
|
|
|
|
</image>
|
|
|
|
<view class="mart10">暂无数据</view>
|
|
|
|
</view>
|
|
|
|
<view class="product-list">
|
|
|
|
<view class="product" v-for="product in productList" :key="product.id" @tap="toGoods(product.id)">
|
|
|
|
<image mode="widthFix" :src="imageUrl+product.couponImg"></image>
|
|
|
|
<view class="name">{{ product.couponName }}</view>
|
|
|
|
<view class="info">
|
|
|
|
<view class="price">¥{{ product.discountPrice}}</view>
|
|
|
|
<view class="slogan" v-if="product.discountPrice !== product.salesPrice">
|
|
|
|
¥{{ product.salesPrice}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- <view class="loading-text">{{ loadingText }}</view> -->
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="goods-list">
|
|
|
|
<view class="title">
|
|
|
|
<image src="/static/img/hua.png"></image>
|
|
|
|
金币专区
|
|
|
|
<image src="/static/img/hua.png"></image>
|
|
|
|
</view>
|
|
|
|
<view v-if="goldproductList == '' " class="mart60 fotct font14 fcor666">
|
|
|
|
<image style="width: 100px;height: 100px;"
|
|
|
|
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAPoElEQVR4Xu1daXBcRxGefqusIisJUS6UiwApU4TiKkhxQ8UU91Gc5XAYE8na995KsoiVkBPiXTuxndiWHMmr9+atLYMxhJiQOyE4IcoB4aaAgiKFCyoQElS5lEocKZG0r6l2zUuthazdfvv20s783e6Z7p7v9XT3zOyA0K2hLQANrb1WXmgANDgINAA0ABrcAg2uvvYAGgANboEGV197AA2AxrQAIoLneWtJe9M00wCAjWiJhvMAqVTKaG9vXwsAV+RPOCKuGx8fT6dSKb+RgNAwANi7d29sYmKCvvhvF5jg9W1tbenly5fnGgEIix4AY2NjTfv371+LiN/iTCgAXLl06dL0smXLZjl89Ua7aAEgpTxCCEFf/OUlTspVQoi0ZVkzJfZTk+yLDgBDQ0PNzc3NtL5fFqXFEXHj9PR0uq+v76Uo+612X4sGALt27TpyenqavvhLymzUTfF4PN3R0fFimcepSPd1D4CBgYGWJUuWUFR/McdiAHBfLpdLE08sF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9T16yzxQpcCbp6A4DneQn6SxohxCkc+0T2cGQwaNinY4UQ9N49eQTJUaBctPUCACmlpb74k5m2iPbp2LmDh308WggxTi+H2LbtMhWKlLzWAeB5no2I5OrbOYqX/fHoucKU8Hz8E+o/dyJ/Pr4Yg9UqAFzXpSdtaeJPKkaPPJrKPh8/VzjHcU5Vj0snmII/qZaGDJOvJPJaA4CUske5+hM5igFANpfLUen6MQ7fXNqCu4HFdj48PHxKPB4nBLNezBBCPKW
|
|
|
|
</image>
|
|
|
|
<view class="mart10">暂无数据</view>
|
|
|
|
</view>
|
|
|
|
<view class="product-list">
|
|
|
|
<view class="product" v-for="product in goldproductList" :key="product.id" @tap="toGoods(product.id)">
|
|
|
|
<image mode="widthFix" :src="imageUrl+product.couponImg"></image>
|
|
|
|
<view class="name">{{ product.couponName }}</view>
|
|
|
|
<view class="info">
|
|
|
|
<view class="price">${{ product.discountPrice}}</view>
|
|
|
|
<view class="slogan" v-if="product.discountPrice !== product.salesPrice">
|
|
|
|
¥{{ product.salesPrice}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- <view class="loading-text">{{ loadingText }}</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
HandleCode,
|
|
|
|
WXlogin,
|
|
|
|
getCouponList
|
|
|
|
} from "../../../Utils/Api.js"; //您的api路径
|
|
|
|
let app = getApp();
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
showHeader: true,
|
|
|
|
afterHeaderOpacity: 1, //不透明度
|
|
|
|
headerPosition: 'fixed',
|
|
|
|
headerTop: null,
|
|
|
|
statusTop: null,
|
|
|
|
nVueTitle: null,
|
|
|
|
city: '',
|
|
|
|
currentSwiper: 0,
|
|
|
|
imageUrl: app.globalData.imgUrl,
|
|
|
|
// 轮播图片
|
|
|
|
swiperList: [{
|
|
|
|
id: 1,
|
|
|
|
src: 'url1',
|
|
|
|
img: '/static/img/banner2.png'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
src: 'url2',
|
|
|
|
img: '/static/img/banner3.png'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
//猜你喜欢列表
|
|
|
|
productList: [],
|
|
|
|
goldproductList: [],
|
|
|
|
loadingText: '正在加载...',
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 6,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onPageScroll(e) {
|
|
|
|
//兼容iOS端下拉时顶部漂移
|
|
|
|
this.headerPosition = e.scrollTop >= 0 ? "fixed" : "absolute";
|
|
|
|
this.headerTop = e.scrollTop >= 0 ? null : 0;
|
|
|
|
this.statusTop = e.scrollTop >= 0 ? null : -this.statusHeight + 'px';
|
|
|
|
},
|
|
|
|
//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
|
|
|
|
onPullDownRefresh() {
|
|
|
|
setTimeout(function() {
|
|
|
|
uni.stopPullDownRefresh();
|
|
|
|
}, 1000);
|
|
|
|
},
|
|
|
|
//上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
|
|
|
|
onReachBottom() {
|
|
|
|
// uni.showToast({
|
|
|
|
// title: '触发上拉加载'
|
|
|
|
// });
|
|
|
|
// let len = this.productList.length;
|
|
|
|
// if (len >= 40) {
|
|
|
|
// this.loadingText = '到底了';
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
// 演示,随机加入商品,生成环境请替换为ajax请求
|
|
|
|
// let end_goods_id = this.productList[len - 1].goods_id;
|
|
|
|
// for (let i = 1; i <= 10; i++) {
|
|
|
|
// let goods_id = end_goods_id + i;
|
|
|
|
// let p = {
|
|
|
|
// goods_id: goods_id,
|
|
|
|
// img: '/static/img/goods/p' + (goods_id % 10 == 0 ? 10 : goods_id % 10) + '.jpg',
|
|
|
|
// name: '卡券100元',
|
|
|
|
// price: '¥168',
|
|
|
|
// slogan: '1235人付款'
|
|
|
|
// };
|
|
|
|
// this.productList.push(p);
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
authColse() {
|
|
|
|
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
// 1.wx获取登录用户code
|
|
|
|
uni.login({
|
|
|
|
provider: 'weixin',
|
|
|
|
success: function(loginRes) {
|
|
|
|
app.globalData.code = loginRes.code;
|
|
|
|
// 请求接口
|
|
|
|
let params = {
|
|
|
|
code: app.globalData.code
|
|
|
|
}
|
|
|
|
HandleCode(params).then(res => {
|
|
|
|
if (res.return_code == '000000') {
|
|
|
|
app.globalData.openId = res.return_data.openId;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
})
|
|
|
|
//定位
|
|
|
|
this.postionIng();
|
|
|
|
uni.getStorage({
|
|
|
|
key: "user",
|
|
|
|
success(e) {
|
|
|
|
app.globalData.userInfo = e.data //这就是你想要取的token
|
|
|
|
uni.getStorage({
|
|
|
|
key: 'token',
|
|
|
|
success(e) {
|
|
|
|
app.globalData.token = e.data;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
fail: res => {}
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
/**
|
|
|
|
* 定位
|
|
|
|
*/
|
|
|
|
postionIng() {
|
|
|
|
uni.showLoading({
|
|
|
|
title: '加载中'
|
|
|
|
})
|
|
|
|
let that = this;
|
|
|
|
uni.getLocation({
|
|
|
|
type: 'wgs84',
|
|
|
|
success: function(res) {
|
|
|
|
uni.request({
|
|
|
|
url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude +
|
|
|
|
',' + res.longitude + '&key=YQDBZ-T54K4-5J6U7-DO3BA-CNZJO-PTFMU',
|
|
|
|
data: {},
|
|
|
|
success: function(res) {
|
|
|
|
that.city = res.data.result.address_component.city.replace(/市/g,
|
|
|
|
'');
|
|
|
|
let a = res.data.result.ad_info.adcode.substring(5, '');
|
|
|
|
app.globalData.cityId = '500100';
|
|
|
|
that.getCouponListArea();
|
|
|
|
that.getCouponListgold();
|
|
|
|
uni.hideLoading()
|
|
|
|
},
|
|
|
|
fail() {
|
|
|
|
uni.hideLoading()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
//赠券卡券列表
|
|
|
|
getCouponListArea() {
|
|
|
|
let params = {
|
|
|
|
regionId: app.globalData.cityId,
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
displayArea: 1
|
|
|
|
}
|
|
|
|
getCouponList(params).then(res => {
|
|
|
|
if (res.return_code == '000000') {
|
|
|
|
this.productList = res.return_data.list;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//金币卡券列表
|
|
|
|
getCouponListgold() {
|
|
|
|
let params = {
|
|
|
|
regionId: app.globalData.cityId,
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
displayArea: 2
|
|
|
|
}
|
|
|
|
getCouponList(params).then(res => {
|
|
|
|
if (res.return_code == '000000') {
|
|
|
|
this.goldproductList = res.return_data.list;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 跳转其他小程序
|
|
|
|
*/
|
|
|
|
tao(url, id) {
|
|
|
|
console.log(url);
|
|
|
|
uni.navigateToMiniProgram({
|
|
|
|
appId: id,
|
|
|
|
path: url,
|
|
|
|
success: res => {
|
|
|
|
// 打开成功
|
|
|
|
console.log("打开成功", res);
|
|
|
|
},
|
|
|
|
fail: err => {
|
|
|
|
console.log(err);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
//消息列表
|
|
|
|
toMsg() {
|
|
|
|
// uni.navigateTo({
|
|
|
|
// url: '../../msg/msg'
|
|
|
|
// })
|
|
|
|
uni.showToast({
|
|
|
|
title: '暂未开通',
|
|
|
|
icon: 'none'
|
|
|
|
});
|
|
|
|
},
|
|
|
|
//搜索跳转
|
|
|
|
toSearch() {
|
|
|
|
uni.navigateTo({
|
|
|
|
url: '../../goods/HM-search/HM-search'
|
|
|
|
})
|
|
|
|
// uni.showToast({ title: '建议跳转到新页面做搜索功能' });
|
|
|
|
},
|
|
|
|
//轮播图跳转
|
|
|
|
toSwiper(e) {
|
|
|
|
// uni.showToast({
|
|
|
|
// title: e.src,
|
|
|
|
// icon: 'none'
|
|
|
|
// });
|
|
|
|
uni.reLaunch({
|
|
|
|
url: '../category/category'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
//商品跳转
|
|
|
|
toGoods(e) {
|
|
|
|
// uni.showToast({
|
|
|
|
// title: '商品' + e.goods_id,
|
|
|
|
// icon: 'none'
|
|
|
|
// });
|
|
|
|
uni.navigateTo({
|
|
|
|
url: '../../goods/goods?id=' + e
|
|
|
|
});
|
|
|
|
},
|
|
|
|
//轮播图指示器
|
|
|
|
swiperChange(event) {
|
|
|
|
this.currentSwiper = event.detail.current;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
page {
|
|
|
|
position: relative;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'HMfont-home';
|
|
|
|
src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABDkAAsAAAAAHNQAABCUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEOAqqPKIAATYCJAM4Cx4ABCAFhG0HgUIbsBczo8LGAQApXpzs/3DAzQnrqJVQobqjkywr6K3VnnGPu9Hok7hbbDQrMa3YYH8hMXBogoTzwQb7Cx1kafc7LoV7nPdDKXng//D1vvHHmJQxLb6PhyYHA5TjobT1Ahe8Yj0Bel0CGZ62+e/eIdwdcCPswEj8LgoVo7G/whxWfmb0JgvdWPLFRbsoNzNXdS7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dEeUriOmKO0T8jl1E6tmRO4y+VtaOkaVPrfEECIBOg4o0EM0AYCR93UeYyW7RL1He07hISwVvb/NziFPbvEzCyxOGiRTjvxE1zGzil7hXTvIEF4zS/tUFT5MkAb9w7MRfL5QVfEiotFSTP7TuoVwPp6uB0F9RobxxWamihGPWGdiJRXIMOZWF7uQCrKh2ul4x0Sb/mLF/+/YYQjLNDU103KRzSaXPAdSz70nTPNP9CC4MffmeUuT4Tl5TlNKIV8liyPlcleA5CaB+B83q0HC/48PJ97iy7vw4MfROonLACLCsfO1T7LoqIxoojYFo6BS/T8GH+31h6tu3zaeULDhNdPPcZvdc7Qj3VGVT29KuguM6o06vjx/sR0DJcii9durAZOTrhOW8eVPYQOP9IULCnZnYOYjJRz21e+5HX2NhhHO9FUBw6rmB9n6a7jdL76eziU/M0YUW0/Hkd0CW2Jzt0/khCxnsSEviTnQC4WfegavUP5
|
|
|
|
}
|
|
|
|
|
|
|
|
button::after {
|
|
|
|
border: none
|
|
|
|
}
|
|
|
|
|
|
|
|
.pullDown-effects {
|
|
|
|
position: fixed;
|
|
|
|
//top: calc(100upx - 36vw);
|
|
|
|
top: 0;
|
|
|
|
z-index: 9;
|
|
|
|
width: 100%;
|
|
|
|
height: 36vw;
|
|
|
|
/* #ifdef APP-PLUS */
|
|
|
|
padding-top: var(--status-bar-height);
|
|
|
|
|
|
|
|
/* #endif */
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
height: 36vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.status {
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 10;
|
|
|
|
background-color: #fff;
|
|
|
|
top: 0;
|
|
|
|
/* #ifdef APP-PLUS */
|
|
|
|
height: var(--status-bar-height); //覆盖样式
|
|
|
|
/* #endif */
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
width: 92%;
|
|
|
|
padding: 0 4%;
|
|
|
|
height: 100upx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10;
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
/* #ifdef APP-PLUS */
|
|
|
|
top: var(--status-bar-height);
|
|
|
|
/* #endif */
|
|
|
|
|
|
|
|
.addr {
|
|
|
|
width: 120upx;
|
|
|
|
height: 60upx;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28upx;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
height: 60upx;
|
|
|
|
margin-right: 5upx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 42upx;
|
|
|
|
color: #ffc50a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-box {
|
|
|
|
width: 100%;
|
|
|
|
height: 60upx;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
border-radius: 30upx;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 60upx;
|
|
|
|
height: 60upx;
|
|
|
|
font-size: 34upx;
|
|
|
|
color: #c0c0c0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
padding-left: 28upx;
|
|
|
|
height: 28upx;
|
|
|
|
font-size: 28upx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-btn {
|
|
|
|
width: 60upx;
|
|
|
|
height: 60upx;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 60upx;
|
|
|
|
height: 60upx;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 42upx;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.place {
|
|
|
|
background-color: #ffffff;
|
|
|
|
height: 100upx;
|
|
|
|
/* #ifdef APP-PLUS */
|
|
|
|
margin-top: var(--status-bar-height);
|
|
|
|
/* #endif */
|
|
|
|
}
|
|
|
|
|
|
|
|
.swiper {
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 10upx;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.swiper-box {
|
|
|
|
width: 92%;
|
|
|
|
height: 150px;
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: 15upx;
|
|
|
|
box-shadow: 0upx 8upx 25upx rgba(0, 0, 0, 0.2);
|
|
|
|
//兼容ios,微信小程序
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
swiper {
|
|
|
|
width: 100%;
|
|
|
|
height: 150px;
|
|
|
|
|
|
|
|
swiper-item {
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
height: 150px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.indicator {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 20upx;
|
|
|
|
left: 20upx;
|
|
|
|
background-color: rgba(255, 255, 255, 0.4);
|
|
|
|
width: 150upx;
|
|
|
|
height: 5upx;
|
|
|
|
border-radius: 3upx;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.dots {
|
|
|
|
width: 0upx;
|
|
|
|
background-color: rgba(255, 255, 255, 1);
|
|
|
|
transition: all 0.3s ease-out;
|
|
|
|
|
|
|
|
&.on {
|
|
|
|
width: (100%/3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.category-list {
|
|
|
|
width: 92%;
|
|
|
|
margin: 0 4%;
|
|
|
|
padding: 0 0 30upx 0;
|
|
|
|
border-bottom: solid 2upx #f6f6f6;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.category {
|
|
|
|
width: 25%;
|
|
|
|
margin-top: 50upx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.img {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 9vw;
|
|
|
|
height: 9vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin-top: 16upx;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: 24upx;
|
|
|
|
color: #3c3c3c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.banner {
|
|
|
|
width: 92%;
|
|
|
|
margin: 40upx 4%;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
height: 20vw;
|
|
|
|
border-radius: 10vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.promotion {
|
|
|
|
width: 92%;
|
|
|
|
margin: 0 4%;
|
|
|
|
|
|
|
|
.text {
|
|
|
|
width: 100%;
|
|
|
|
height: 60upx;
|
|
|
|
font-size: 34upx;
|
|
|
|
font-weight: 600;
|
|
|
|
margin-top: -10upx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.list {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.column {
|
|
|
|
width: 43%;
|
|
|
|
padding: 15upx 3%;
|
|
|
|
background-color: #ebf9f9;
|
|
|
|
border-radius: 10upx;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.top {
|
|
|
|
width: 100%;
|
|
|
|
height: 40upx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 5upx;
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-size: 30upx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.countdown {
|
|
|
|
margin-left: 20upx;
|
|
|
|
display: flex;
|
|
|
|
height: 40upx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 20upx;
|
|
|
|
|
|
|
|
view {
|
|
|
|
height: 30upx;
|
|
|
|
background-color: #f06c7a;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
color: #fff;
|
|
|
|
border-radius: 4upx;
|
|
|
|
margin: 0 4upx;
|
|
|
|
padding: 0 2upx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.left {
|
|
|
|
width: 50%;
|
|
|
|
height: 18.86vw;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-content: space-between;
|
|
|
|
|
|
|
|
.ad {
|
|
|
|
margin-top: 5upx;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 22upx;
|
|
|
|
color: #acb0b0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.into {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 24upx;
|
|
|
|
color: #aaa;
|
|
|
|
margin-bottom: 5upx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
width: 18.86vw;
|
|
|
|
height: 18.86vw;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 18.86vw;
|
|
|
|
height: 18.86vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.goods-list {
|
|
|
|
|
|
|
|
// background-color: #f4f4f4;
|
|
|
|
.title {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 80upx;
|
|
|
|
color: #f47825;
|
|
|
|
font-size: 40rpx;
|
|
|
|
margin-top: 20rpx;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 30upx;
|
|
|
|
height: 30upx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.loading-text {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 60upx;
|
|
|
|
color: #979797;
|
|
|
|
font-size: 24upx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.product-list {
|
|
|
|
width: 92%;
|
|
|
|
padding: 0 4% 3vw 4%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.product {
|
|
|
|
width: 48%;
|
|
|
|
border-radius: 20upx;
|
|
|
|
background-color: #fff;
|
|
|
|
margin: 0 0 15upx 0;
|
|
|
|
box-shadow: 0upx 5upx 25upx rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
border-radius: 20upx 20upx 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
width: 92%;
|
|
|
|
padding: 10upx 4%;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
text-align: justify;
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: 30upx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-end;
|
|
|
|
width: 92%;
|
|
|
|
padding: 10upx 4% 10upx 4%;
|
|
|
|
|
|
|
|
.price {
|
|
|
|
color: #e65339;
|
|
|
|
font-size: 30upx;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slogan {
|
|
|
|
color: #807c87;
|
|
|
|
font-size: 24upx;
|
|
|
|
text-decoration: line-through;
|
|
|
|
margin-right: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|