|
@@ -14,28 +14,39 @@
|
|
|
<image style="width: 48rpx; height: 9rpx; margin-left: 20rpx" src="https://mxys.chuanghai-tech.com/wmfile/20250811/5f75606616aa4c7f8c304368f8663a39.png"></image>
|
|
<image style="width: 48rpx; height: 9rpx; margin-left: 20rpx" src="https://mxys.chuanghai-tech.com/wmfile/20250811/5f75606616aa4c7f8c304368f8663a39.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view @click="toXiang" v-for="(item, index) in 3" :key="index" :class="index == 0 ? 'backg1' : 'backg2'">
|
|
|
|
|
- <image style="width: 289rpx; height: 319rpx; margin: 31rpx 0 0 20rpx; background-color: #000"></image>
|
|
|
|
|
- <view style="margin: 31rpx 0 0 26rpx">
|
|
|
|
|
- <view style="font-size: 32rpx; color: #000000; font-weight: 500; margin-top: 7rpx">月度套餐</view>
|
|
|
|
|
- <view style="margin-top: 7rpx">每月14号配送定制蛋糕</view>
|
|
|
|
|
- <view class="lijia">例假关怀</view>
|
|
|
|
|
|
|
+ <view @click="toXiang" v-for="(item, index) in dataList" :key="item.id" :class="index == 0 ? 'backg1' : 'backg2'">
|
|
|
|
|
+ <image :src="item.imgs" style="width: 289rpx; height: 319rpx; margin: 31rpx 0 0 20rpx; background-color: #000" mode="aspectFill"></image>
|
|
|
|
|
+ <view style="margin: 31rpx 0 0 26rpx; width: 400rpx">
|
|
|
|
|
+ <view style="font-size: 32rpx; color: #000000; font-weight: 500; margin-top: 7rpx">{{ item.name }}</view>
|
|
|
|
|
+ <view style="margin-top: 7rpx">{{ item.subName }}</view>
|
|
|
|
|
+ <view style="display: flex; flex-wrap: wrap">
|
|
|
|
|
+ <view class="lijia" v-for="(ele, ind) in item.serviceTag.split(',')" :key="ind">{{ ele }}</view>
|
|
|
|
|
+ </view>
|
|
|
<view class="q_time">
|
|
<view class="q_time">
|
|
|
<view style="line-height: 30px">时间</view>
|
|
<view style="line-height: 30px">时间</view>
|
|
|
<view class="q_line"></view>
|
|
<view class="q_line"></view>
|
|
|
- <view style="width: 276rpx; margin-left: 13rpx">2025-07-28 12:00:00 —2025-12-31 23:59:59</view>
|
|
|
|
|
|
|
+ <view style="width: 300rpx; margin-left: 13rpx">{{ item.startTime }}—{{ item.endTime }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="jiage">¥98.00</view>
|
|
|
|
|
|
|
+ <view class="jiage">¥{{ item.price }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <empty v-if="!dataList.length"></empty>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import empty from '@/components/empty.vue'
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ empty
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- isWoman: true //true是。false不是
|
|
|
|
|
|
|
+ isWoman: true, //true是。false不是
|
|
|
|
|
+ currentPage: 1,
|
|
|
|
|
+ totalCount: 0,
|
|
|
|
|
+ dataList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -44,17 +55,21 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
getData() {
|
|
getData() {
|
|
|
let data = {
|
|
let data = {
|
|
|
- page: 1,
|
|
|
|
|
|
|
+ page: this.currentPage,
|
|
|
limit: 6,
|
|
limit: 6,
|
|
|
suitSex: this.isWoman ? 2 : 1
|
|
suitSex: this.isWoman ? 2 : 1
|
|
|
}
|
|
}
|
|
|
this.$Request.getT('/app/lover-set/page', data).then((res) => {
|
|
this.$Request.getT('/app/lover-set/page', data).then((res) => {
|
|
|
console.log(res, 966)
|
|
console.log(res, 966)
|
|
|
|
|
+ this.dataList = [...this.dataList, ...res.data.list]
|
|
|
|
|
+ this.totalCount = res.data.totalCount
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//切换男女专区
|
|
//切换男女专区
|
|
|
clickMan() {
|
|
clickMan() {
|
|
|
this.isWoman = !this.isWoman
|
|
this.isWoman = !this.isWoman
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.dataList = []
|
|
|
this.getData()
|
|
this.getData()
|
|
|
},
|
|
},
|
|
|
//跳转到详情页
|
|
//跳转到详情页
|
|
@@ -96,6 +111,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
.lijia {
|
|
.lijia {
|
|
|
margin-top: 7rpx;
|
|
margin-top: 7rpx;
|
|
|
|
|
+ margin-right: 8rpx;
|
|
|
width: 125rpx;
|
|
width: 125rpx;
|
|
|
height: 51rpx;
|
|
height: 51rpx;
|
|
|
opacity: 1;
|
|
opacity: 1;
|