feat: 1. 优化啤酒币页面登录验证 2. 添加商家入驻协议页面 3. 添加联系二维码
This commit is contained in:
parent
94415fbff8
commit
eb39ad89cb
130
pages/index/userAgreement.vue
Normal file
130
pages/index/userAgreement.vue
Normal file
@ -0,0 +1,130 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="page-content">
|
||||
<view class="section">
|
||||
<view class="section-title">商家入驻协议</view>
|
||||
<view class="agreement-content">
|
||||
<view class="agreement-section">
|
||||
<view class="section-subtitle">一、总则</view>
|
||||
<view class="section-text">
|
||||
<text>1.1 本协议是您与啤啤猩球平台之间就商家入驻等相关事宜所订立的契约。</text>
|
||||
<text>1.2 您应当在使用本服务之前认真阅读全部协议内容。如您对协议有任何疑问,可向平台咨询。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="agreement-section">
|
||||
<view class="section-subtitle">二、入驻条件</view>
|
||||
<view class="section-text">
|
||||
<text>2.1 商家必须具有合法的经营资质。</text>
|
||||
<text>2.2 商家必须提供真实、准确、完整的入驻信息。</text>
|
||||
<text>2.3 商家必须遵守平台规则和相关法律法规。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="agreement-section">
|
||||
<view class="section-subtitle">三、商家权利与义务</view>
|
||||
<view class="section-text">
|
||||
<text>3.1 商家有权使用平台提供的各项服务。</text>
|
||||
<text>3.2 商家必须维护平台秩序,不得从事违法违规行为。</text>
|
||||
<text>3.3 商家必须保护用户隐私,不得泄露用户信息。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="agreement-section">
|
||||
<view class="section-subtitle">四、平台权利与义务</view>
|
||||
<view class="section-text">
|
||||
<text>4.1 平台有权对商家进行管理和监督。</text>
|
||||
<text>4.2 平台有义务保护商家合法权益。</text>
|
||||
<text>4.3 平台有权根据实际情况调整规则。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background: #F7F7F7;
|
||||
|
||||
.page-content {
|
||||
padding: 24rpx 32rpx;
|
||||
}
|
||||
|
||||
.section {
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
margin-bottom: 24rpx;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||
|
||||
.section-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
padding: 32rpx;
|
||||
color: #333333;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
transform: translateX(-50%);
|
||||
width: 48rpx;
|
||||
height: 4rpx;
|
||||
background: #19367A;
|
||||
border-radius: 2rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.agreement-content {
|
||||
padding: 32rpx;
|
||||
|
||||
.agreement-section {
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.section-text {
|
||||
text {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 1.8;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -158,6 +158,16 @@
|
||||
},
|
||||
// 门店啤酒币余额
|
||||
getStoreCoinBalanceFun() {
|
||||
// 检查登录状态
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
// 未登录状态,重置数据
|
||||
this.coinList = []
|
||||
this.totalCoin = 0
|
||||
this.commonCoin = 0
|
||||
return
|
||||
}
|
||||
|
||||
getStoreCoinBalance().then(res => {
|
||||
console.log(res)
|
||||
// 累加balance
|
||||
@ -170,8 +180,18 @@
|
||||
if(common && common.length > 0) {
|
||||
this.commonCoin = common[0].balance
|
||||
}
|
||||
} else {
|
||||
// 没有数据时重置
|
||||
this.coinList = []
|
||||
this.totalCoin = 0
|
||||
this.commonCoin = 0
|
||||
}
|
||||
|
||||
}).catch(err => {
|
||||
console.error('获取啤酒币余额失败:', err)
|
||||
// 请求失败时重置数据
|
||||
this.coinList = []
|
||||
this.totalCoin = 0
|
||||
this.commonCoin = 0
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
qrcode: '/static/img/qrcode.png'
|
||||
qrcode: '/static/contact_me_qr.png'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
static/contact_me_qr.png
Normal file
BIN
static/contact_me_qr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
x
Reference in New Issue
Block a user