第一次上传
This commit is contained in:
@@ -0,0 +1,236 @@
|
||||
{
|
||||
"easycom": {
|
||||
// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
|
||||
"custom": {
|
||||
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||||
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||||
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
|
||||
}
|
||||
},
|
||||
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
|
||||
{
|
||||
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationBarBackgroundColor": "#36394D",
|
||||
"navigationStyle": "custom",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/community",
|
||||
"style": {
|
||||
"navigationBarTitleText": "社区",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/user",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/index/shop",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "积分商城",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "v派商家",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"subPackages": [{
|
||||
"root": "pages/community",
|
||||
"pages": [{
|
||||
"path": "noticeList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "社区公告"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "merchantCom",
|
||||
"style": {
|
||||
"navigationBarTitleText": "社区商家"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "merchantDetail",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "美食小店"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/goods",
|
||||
"pages": [{
|
||||
"path": "merchant",
|
||||
"style": {
|
||||
"navigationBarTitleText": "热门商家"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "goodsDetail",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "商品详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "goodsContro",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "商品管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "addGoods",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "添加商品"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "Pay",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "付款"
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
"root": "pages/article",
|
||||
"pages": [{
|
||||
"path": "articleCom",
|
||||
"style": {
|
||||
"navigationBarTitleText": "社区公告"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "newsList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新闻公告"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "news",
|
||||
"style": {
|
||||
"navigationBarTitleText": "新闻详情"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}, {
|
||||
"root": "pages/userFunc",
|
||||
"pages": [{
|
||||
"path" : "setData",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "编辑资料"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "integration",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "积分明细"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "trade",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "交易记录"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "editStore",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "编辑店铺"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "statistics",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "数据统计"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "set",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "设置"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "bind",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "绑定手机号"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "password",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "修改支付密码"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "storeInter",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "积分明细\r
|
||||
\t\t"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
||||
"tabBar": {
|
||||
"color": "#8a8a8a",
|
||||
"selectedColor": "#EC754B",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [{
|
||||
"text": "首页",
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "/static/tabBar/home.png",
|
||||
"selectedIconPath": "/static/tabBar/homed.png"
|
||||
},
|
||||
// {
|
||||
// "text": "社区",
|
||||
// "pagePath": "pages/index/community",
|
||||
// "iconPath": "/static/tabBar/community.png",
|
||||
// "selectedIconPath": "/static/tabBar/communityed.png"
|
||||
// }
|
||||
// ,
|
||||
{
|
||||
"text": "积分商城",
|
||||
"pagePath": "pages/index/shop",
|
||||
"iconPath": "/static/tabBar/shop.png",
|
||||
"selectedIconPath": "/static/tabBar/shoped.png"
|
||||
},
|
||||
{
|
||||
"text": "个人中心",
|
||||
"pagePath": "pages/index/user",
|
||||
"iconPath": "/static/tabBar/user.png",
|
||||
"selectedIconPath": "/static/tabBar/usered.png"
|
||||
}]
|
||||
}
|
||||
|
||||
}
|
||||
1068
.svn/pristine/49/49a7e854ee79ea663bb5ddee55f95f7c10866510.svn-base
Normal file
1068
.svn/pristine/49/49a7e854ee79ea663bb5ddee55f95f7c10866510.svn-base
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,411 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
|
||||
|
||||
<!-- 商品图片展示 -->
|
||||
<view class="product-image-section">
|
||||
<image :src="Service.GetMateUrlByImg(merchInfo.showImg)" mode="aspectFill" class="product-image">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
<!-- 商品信息 -->
|
||||
<view class="product-info-section">
|
||||
<view class="shop-header">
|
||||
<view class="shop-name">{{merchInfo.name}}</view>
|
||||
<view v-if="merchInfo.tag" v-for="(tagItem,tagIndex) in merchInfo.tag.split(',') " :key='tagIndex' class="shop-tags">
|
||||
<text class="tag" :style="{ 'background-color':tagIndex==0?'#4CD964':(tagIndex==1?'#FF9500':'#fff')}" >{{tagItem}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="display: flex; align-items: center;">
|
||||
<view class="func-detail">
|
||||
<text style="color: #FF6B35;">{{merchInfo.score}}</text>分
|
||||
</view>
|
||||
<view class="func-detail">
|
||||
月销<text style="color: #FF6B35;">{{merchInfo.sale}}</text>
|
||||
</view>
|
||||
<view class="func-detail">
|
||||
人均<text style="color: #FF6B35;">¥{{merchInfo.price}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商家信息卡片 -->
|
||||
<view class="shop-card-section">
|
||||
|
||||
<view class="shop-info">
|
||||
<view class="" @click="handleViewLocation()"
|
||||
style="display: flex; align-items: center; justify-content: space-between;">
|
||||
<view class="info-item">
|
||||
<u-icon name="map" size="22" color="#999999" class="info-icon"></u-icon>
|
||||
<text class="info-text">{{merchInfo.address}}</text>
|
||||
</view>
|
||||
<view class="">
|
||||
<u-icon name="arrow-right" size="18" color="#999999" class="info-icon"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" @click="handleContactShop()"
|
||||
style="display: flex; align-items: center; justify-content: space-between;">
|
||||
<view class="info-item">
|
||||
<u-icon name="phone" size="22" color="#999999" class="info-icon"></u-icon>
|
||||
<text class="info-text">{{merchInfo.phone}}</text>
|
||||
</view>
|
||||
<view class="">
|
||||
<u-icon name="arrow-right" size="18" color="#999999" class="info-icon"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="communityInfo" class="info-item">
|
||||
<u-icon name="home" size="22" color="#999999" class="info-icon"></u-icon>
|
||||
<text class="info-text">{{communityInfo}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 同店推荐 -->
|
||||
<view v-if="recommendations.length>0" class="recommendations-section">
|
||||
<text class="section-title">店内商品</text>
|
||||
<view class="recommendations-list">
|
||||
<view @click="Service.GoPage('/pages/goods/goodsDetail?goodsId='+item.goodsId)" class="recommendation-item"
|
||||
v-for="(item, index) in recommendations" :key="index">
|
||||
<image :src="Service.GetMateUrlByImg(item.img)" mode="aspectFill" class="recommendation-image"></image>
|
||||
<view class="recommendation-info">
|
||||
<text class="recommendation-name">{{ item.name }}</text>
|
||||
<text class="recommendation-price">{{ item.price }}</text>
|
||||
</view>
|
||||
<u-icon name="arrow-right" size="28rpx" color="#999999" class="arrow-icon"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<up-loadmore v-if="recommendations.length>0" :status="status" />
|
||||
<view class="" style="width: 100%; height: 150rpx;">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { Service } from "@/Service/Service"
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { vpMerchService } from '@/Service/vp/vpMerchService'
|
||||
|
||||
|
||||
// 商家数据类型
|
||||
interface shop{
|
||||
showImg : string
|
||||
price:number
|
||||
name:string
|
||||
score:number
|
||||
tag:string
|
||||
merchId:string
|
||||
address:string
|
||||
phone:string
|
||||
sale:number
|
||||
lat:string
|
||||
lon:string
|
||||
}
|
||||
|
||||
|
||||
// 推荐商品数据类型
|
||||
interface Recommendation {
|
||||
goodsId: string
|
||||
name : string
|
||||
price : number
|
||||
img : string
|
||||
}
|
||||
|
||||
let merchId = ref()
|
||||
let page = ref(0)
|
||||
let status = ref('loadmore')
|
||||
|
||||
|
||||
let merchInfo=ref<shop>({
|
||||
showImg : '',
|
||||
price:0,
|
||||
name:'',
|
||||
score: 0,
|
||||
tag: '',
|
||||
merchId: '',
|
||||
address: '',
|
||||
phone: '',
|
||||
sale: 0,
|
||||
lat: '',
|
||||
lon: '',
|
||||
})
|
||||
|
||||
let communityInfo=ref()
|
||||
|
||||
|
||||
// 同店推荐商品数据
|
||||
const recommendations = ref<Array<Recommendation>>([{
|
||||
goodsId:'',
|
||||
name: '',
|
||||
price: 0,
|
||||
img: '',
|
||||
}]);
|
||||
|
||||
// 联系商家按钮样式
|
||||
const contactButtonStyle = ref({
|
||||
backgroundColor: '#FF6600',
|
||||
borderColor: '#FF6600',
|
||||
color: '#FFFFFF',
|
||||
fontSize: '28rpx',
|
||||
height: '75rpx',
|
||||
borderRadius: '45rpx',
|
||||
marginRight: '20rpx'
|
||||
});
|
||||
|
||||
// 查看位置按钮样式
|
||||
const locationButtonStyle = ref({
|
||||
backgroundColor: '#FF6600',
|
||||
borderColor: '#FF6600',
|
||||
color: '#FFFFFF',
|
||||
fontSize: '28rpx',
|
||||
height: '75rpx',
|
||||
borderRadius: '45rpx',
|
||||
marginLeft: '20rpx'
|
||||
});
|
||||
|
||||
|
||||
onLoad((data : any) => {
|
||||
merchId.value = data.merchId
|
||||
getData()
|
||||
})
|
||||
|
||||
const getData = () => {
|
||||
status.value = 'loadmore'
|
||||
page.value = 1
|
||||
recommendations.value=[]
|
||||
getList()
|
||||
}
|
||||
|
||||
const getList = () => {
|
||||
if (status.value !== 'loadmore') {
|
||||
return
|
||||
}
|
||||
status.value = 'loading'
|
||||
|
||||
vpMerchService.GetMerchInfo(merchId.value,page.value).then(res=>{
|
||||
merchInfo.value=res.data.merchInfo
|
||||
communityInfo.value=res.data.communityInfo
|
||||
recommendations.value=res.data.merchGoods
|
||||
status.value = res.data.merchGoods.length == 10 ? 'loadmore' : 'nomore'
|
||||
page.value++
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 处理联系商家
|
||||
const handleContactShop = () => {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: merchInfo.value.phone, // 要拨打的电话号码
|
||||
success: function () {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: function (err) {
|
||||
console.error('拨打电话失败', err);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 处理查看位置
|
||||
const handleViewLocation = () => {
|
||||
wx.openLocation({
|
||||
latitude: Number(merchInfo.value.lat),
|
||||
longitude: Number(merchInfo.value.lon),
|
||||
name: merchInfo.value.name,
|
||||
address: merchInfo.value.address,
|
||||
success: function (e) {
|
||||
console.log(e);
|
||||
},
|
||||
fail: function (e) {
|
||||
console.log(e);
|
||||
}
|
||||
})
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
/* 商品图片展示 */
|
||||
.product-image-section {
|
||||
width: 100%;
|
||||
height: 500rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.product-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 商家信息 */
|
||||
|
||||
.func-detail {
|
||||
margin-right: 30rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.product-info-section {
|
||||
padding: 30rpx;
|
||||
margin: 30rpx;
|
||||
box-shadow: 0 0 10rpx 4rpx #E2e2e2;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-size: 36rpx;
|
||||
color: #333333;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.product-price {
|
||||
font-size: 40rpx;
|
||||
color: #FF6600;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.product-description {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
/* 商家信息卡片 */
|
||||
.shop-card-section {
|
||||
padding: 30rpx;
|
||||
margin: 30rpx;
|
||||
box-shadow: 0 0 10rpx 4rpx #E2e2e2;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.shop-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 24rpx;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.shop-name {
|
||||
font-size: 38rpx;
|
||||
color: #333333;
|
||||
font-weight: bold;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.shop-tags {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.tag {
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.tag.new-shop {
|
||||
background-color: #4CD964;
|
||||
}
|
||||
|
||||
.tag.popular {
|
||||
background-color: #FF9500;
|
||||
}
|
||||
|
||||
.shop-info {
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.info-item:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.info-icon {
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.info-text {
|
||||
font-size: 28rpx;
|
||||
margin-left: 15rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
/* 同店推荐 */
|
||||
.recommendations-section {
|
||||
padding: 0 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 36rpx;
|
||||
color: #333333;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.recommendations-list {
|
||||
gap: 30rpx;
|
||||
}
|
||||
|
||||
.recommendation-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
margin: 20rpx 0;
|
||||
box-shadow: 0 0 10rpx 4rpx #E2e2e2;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.recommendation-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.recommendation-image {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 16rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.recommendation-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.recommendation-name {
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
display: block;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.recommendation-price {
|
||||
font-size: 30rpx;
|
||||
color: #FF6600;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
/* 底部操作按钮 */
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
padding: 30rpx 30rpx;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,255 @@
|
||||
/**
|
||||
* 美团风格主题 - 参考美团外卖
|
||||
*/
|
||||
|
||||
/* 主色调 - 美团黄色 */
|
||||
:root {
|
||||
--primary-color: #FFCC00; /* 美团黄 */
|
||||
--primary-light: #FFD700; /* 亮黄色 */
|
||||
--primary-dark: #F5A623; /* 深黄色 */
|
||||
}
|
||||
|
||||
/* 辅助色 */
|
||||
:root {
|
||||
--secondary-bg: #FFF8E1; /* 浅黄背景 */
|
||||
--accent-color: #FF6B00; /* 橙红色 */
|
||||
}
|
||||
|
||||
/* 中性色 */
|
||||
:root {
|
||||
--text-primary: #0F172A; /* 深色文字 */
|
||||
--text-secondary: #64748B; /* 次要文字 */
|
||||
--text-tertiary: #94A3B8; /* 辅助文字 */
|
||||
--border-color: #E2E8F0; /* 边框色 */
|
||||
--bg-color: #F8FAFC; /* 背景色 */
|
||||
}
|
||||
|
||||
/* 功能色 */
|
||||
:root {
|
||||
--success: #10B981; /* 绿色 */
|
||||
--warning: #F59E0B; /* 橙色 */
|
||||
--error: #EF4444; /* 红色 */
|
||||
--info: #3B82F6; /* 蓝色 */
|
||||
}
|
||||
|
||||
/* 间距 */
|
||||
:root {
|
||||
--spacing-xs: 8rpx;
|
||||
--spacing-sm: 12rpx;
|
||||
--spacing-md: 16rpx;
|
||||
--spacing-lg: 20rpx;
|
||||
--spacing-xl: 24rpx;
|
||||
}
|
||||
|
||||
/* 圆角 */
|
||||
:root {
|
||||
--radius-sm: 6rpx;
|
||||
--radius-md: 10rpx;
|
||||
--radius-lg: 16rpx;
|
||||
--radius-round: 999rpx;
|
||||
}
|
||||
|
||||
/* 阴影 */
|
||||
:root {
|
||||
--shadow-sm: 0 1rpx 3rpx rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4rpx 6rpx -1rpx rgba(0, 0, 0, 0.08);
|
||||
--shadow-lg: 0 10rpx 15rpx -3rpx rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
/* 字体大小 */
|
||||
:root {
|
||||
--font-xs: 22rpx;
|
||||
--font-sm: 24rpx;
|
||||
--font-md: 26rpx;
|
||||
--font-lg: 28rpx;
|
||||
--font-xl: 32rpx;
|
||||
--font-xxl: 36rpx;
|
||||
}
|
||||
|
||||
/* 通用类 */
|
||||
.container {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-ellipsis {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 卡片样式 */
|
||||
.card {
|
||||
background: #FFFFFF;
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* 按钮样式 */
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
|
||||
color: #FFFFFF;
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-md) var(--spacing-xl);
|
||||
font-size: var(--font-md);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: #FFFFFF;
|
||||
color: var(--primary-color);
|
||||
border: 1rpx solid var(--primary-color);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--spacing-md) var(--spacing-xl);
|
||||
font-size: var(--font-md);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 标签样式 - 现代风格 */
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 4rpx 10rpx;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--font-xs);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tag-point {
|
||||
background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
|
||||
color: #0284C7;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tag-usable {
|
||||
background: #F1F5F9;
|
||||
color: var(--text-secondary);
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tag-coupon {
|
||||
background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
|
||||
color: #9333EA;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tag-distance {
|
||||
background: transparent;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
/* 分割线 */
|
||||
.divider {
|
||||
height: 1rpx;
|
||||
background-color: var(--border-color);
|
||||
margin: var(--spacing-md) 0;
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-xl) 0;
|
||||
color: var(--text-tertiary);
|
||||
font-size: var(--font-md);
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
font-size: 120rpx;
|
||||
margin-bottom: var(--spacing-md);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* 商家标签 - 右上角徽章 */
|
||||
.shop-badges {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.badge-partner {
|
||||
background: linear-gradient(135deg, #FF6B35, #F7931E);
|
||||
color: #FFFFFF;
|
||||
font-size: 32rpx;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.badge-coop {
|
||||
background: linear-gradient(135deg, #667EEA, #764BA2);
|
||||
color: #FFFFFF;
|
||||
font-size: 32rpx;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 商家优惠券标签 */
|
||||
.shop-tag {
|
||||
display: inline-block;
|
||||
padding: 2rpx 6rpx;
|
||||
border-radius: 8rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
/* 消费得积分标签 - 蓝紫色系 */
|
||||
.shop-tag.tag-points {
|
||||
background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
|
||||
color: #1565C0;
|
||||
border: 1rpx solid #64B5F6;
|
||||
}
|
||||
|
||||
/* 可用积分标签 - 绿色系 */
|
||||
.shop-tag.tag-points-available {
|
||||
background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
|
||||
color: #2E7D32;
|
||||
border: 1rpx solid #81C784;
|
||||
}
|
||||
|
||||
/* 可用券标签 - 橙红色系 */
|
||||
.shop-tag.tag-coupon {
|
||||
background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
|
||||
color: #D32F2F;
|
||||
border: 1rpx solid #EF5350;
|
||||
}
|
||||
|
||||
/* 默认标签 - 灰色系 */
|
||||
.shop-tag.tag-default {
|
||||
background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
|
||||
color: #616161;
|
||||
border: 1rpx solid #BDBDBD;
|
||||
}
|
||||
Reference in New Issue
Block a user