|
|
@@ -1,31 +1,6 @@
|
|
|
<template>
|
|
|
<view class="app-content">
|
|
|
- <!-- 价格类型切换:相册 / 商城 -->
|
|
|
- <view class="modern-tabs-container">
|
|
|
- <view class="modern-tabs">
|
|
|
- <view
|
|
|
- class="modern-tab"
|
|
|
- :class="{ 'active': priceType === 0 }"
|
|
|
- @click="switchPriceTab(0)"
|
|
|
- >
|
|
|
- <view class="tab-content">
|
|
|
- <text class="tab-icon">🏷️</text>
|
|
|
- <text class="tab-text">相册</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="modern-tab"
|
|
|
- :class="{ 'active': priceType === 1 }"
|
|
|
- @click="switchPriceTab(1)"
|
|
|
- >
|
|
|
- <view class="tab-content">
|
|
|
- <text class="tab-icon">💰</text>
|
|
|
- <text class="tab-text">商城</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
+
|
|
|
<view class="list-wrap">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<block v-for="(item, index) in list.data" :key="item.id">
|
|
|
@@ -53,6 +28,7 @@
|
|
|
|
|
|
<view class="list-det" style="position: absolute; bottom: 15upx; left: 122upx">
|
|
|
<view v-if="item.priceType == 1" class="app-size-28 app-color-0" style="font-size: 24upx">¥{{ item.price?parseFloat(item.price):0 }}</view>
|
|
|
+ <view v-else>--</view>
|
|
|
</view>
|
|
|
<view
|
|
|
v-if="index > 0"
|
|
|
@@ -120,7 +96,6 @@ export default {
|
|
|
mixins: [list],
|
|
|
data() {
|
|
|
return {
|
|
|
- priceType: 0, // 0 相册(无价格),1 商城(有价格)
|
|
|
draggedIndex: -1,
|
|
|
draggedItem: null,
|
|
|
dragOffsetY: 0,
|
|
|
@@ -173,8 +148,7 @@ export default {
|
|
|
const params = {
|
|
|
cId: this.option.id,
|
|
|
page: this.list.page,
|
|
|
- pageSize: this.list.pageSize,
|
|
|
- priceType: this.priceType
|
|
|
+ pageSize: this.list.pageSize
|
|
|
};
|
|
|
|
|
|
return getListB(params)
|
|
|
@@ -188,14 +162,6 @@ export default {
|
|
|
this.list.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 切换 相册 / 商城
|
|
|
- switchPriceTab(value) {
|
|
|
- if (this.priceType === value) return;
|
|
|
- this.priceType = value;
|
|
|
- this.resetList();
|
|
|
- this._list();
|
|
|
- },
|
|
|
-
|
|
|
// 响应 touchmove 事件并实时更新 transform 样式
|
|
|
transformStyle(index) {
|
|
|
if (index === this.draggedIndex) {
|