优惠卷和商品卷

This commit is contained in:
wwz
2025-03-10 16:33:43 +08:00
parent 70edc6756d
commit 5342133cbd
30 changed files with 2820 additions and 3338 deletions

View File

@@ -7,7 +7,8 @@
<view class="list-cell-item" v-for="(item1,index1) in item.list" :key="index1">
<view class="list-cell-item-title"> {{ item1.title }}</view>
<view class="list-cell-item-content">
<view class="list-cell-item-content-text" v-for="(item2,index2) in item1.list" :key="index2">{{item2}}</view>
<view class="list-cell-item-content-text" v-for="(item2,index2) in item1.list"
:key="index2">{{item2}}</view>
</view>
</view>
</view>
@@ -16,110 +17,107 @@
</view>
</template>
<script>
export default {
data() {
return {
userInfo: null,
list: [
{
title: "充值规则",
list: [
{
title: "满赠规则",
list: [
"充300元送150积分+0元券",
"充500元送40元0积分+0元券",
"充1000元送100元0积分+0元券",
]
},
{
title: "适用门店",
list: [
"适用于1家门店",
]
},
],
},
{
title: "使用规则",
list: [
{
title: "使用须知",
list: [
"按比例",
]
},
{
title: "免密支付",
list: [
"免密支付已开通",
]
},
{
title: "适用商品",
list: [
"全部商品可用",
]
},
],
},
]
}
<script setup>
import {
ref
} from 'vue'
const list = [{
title: "充值规则",
list: [{
title: "满赠规则",
list: [
"充300元送15元0积分+0元券",
"充500元送40元0积分+0元券",
"充1000元送1000积分+0元券",
]
},
{
title: "适用门店",
list: [
"适用于1家门店",
]
},
],
},
onLoad(e) {
this.userInfo = e
{
title: "使用规则",
list: [{
title: "使用须知",
list: [
"按比例",
]
},
{
title: "免密支付",
list: [
"免密支付已开通",
]
},
{
title: "适用商品",
list: [
"全部商品可用",
]
},
],
},
]
methods: {
/**
* 跳转
*/
handleClick ( item ) {
uni.pro.navigateTo(item.url, this.userInfo)
}
}
const userInfo = ref()
const handleClick = (item) => {
// uni.pro.navigateTo(item.url, userInfo.value)
}
</script>
<style lang="less">
page{
<style lang="less">
page {
background-color: #fff;
}
.container{
.container {
padding: 48rpx 20rpx;
.list{
.list {
display: flex;
flex-direction: column;
.list_item{
.list_item {
display: flex;
flex-direction: column;
margin-bottom: 32rpx;
.list_item_title{
margin-bottom: 32rpx;
.list_item_title {
font-weight: bold;
font-size: 32rpx;
color: #333333;
margin-bottom: 32rpx;
}
.list-cell{
.list-cell {
display: flex;
flex-direction: column;
.list-cell-item{
.list-cell-item {
display: flex;
flex-direction: column;
border-bottom: 2rpx solid #E5E5E5;
padding-bottom: 32rpx;
margin-bottom: 32rpx;
.list-cell-item-title{
.list-cell-item-title {
font-weight: bold;
font-size: 28rpx;
color: #333333;
margin-bottom: 16rpx;
}
.list-cell-item-content{
.list-cell-item-content {
display: flex;
flex-direction: column;
.list-cell-item-content-text{
.list-cell-item-content-text {
font-weight: 400;
font-size: 24rpx;
color: #999999;
@@ -128,7 +126,8 @@
}
}
}
.list_item:last-child .list-cell-item:last-child{
.list_item:last-child .list-cell-item:last-child {
border-bottom: none;
}
}