feat(shoppingMall): tab id变更

This commit is contained in:
woody 2025-05-07 10:50:39 +08:00
parent ffc486724a
commit b80593f2b8
17 changed files with 3559 additions and 3261 deletions

View File

@ -174,91 +174,15 @@
<script> <script>
import * as api from "@/api/goods.js"; import * as api from "@/api/goods.js";
import * as ads from "@/api/register.js"; import * as ads from "@/api/register.js";
import specialListMixin from "@/mixins/special-list-mixin.js";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
export default { export default {
name: "Tabbar", name: "Tabbar",
mixins: [specialListMixin],
data() { data() {
return { return {
abounts: process.env.VUE_APP_BASE_API1 + "/#/aboutUs", // abounts: process.env.VUE_APP_BASE_API1 + "/#/aboutUs", //
globalDivision: process.env.VUE_APP_BASE_API1 + "/#/globalDivision", // globalDivision: process.env.VUE_APP_BASE_API1 + "/#/globalDivision", //
zoneList: [
{
label: "注册专区",
value: 1,
name: "regiest",
defaultChildId: 24,
children: [],
},
{
label: "升级专区",
value: 2,
name: "upgrade",
defaultChildId: 25,
children: [],
},
{
label: "复购专区",
value: 3,
name: "repurchase",
children: [
{
label: "乐学易考",
value: 26,
name: "ezLearnRep",
},
{
label: "自营专区",
value: 3,
name: "self",
},
],
},
{
label: "重消专区",
value: 10,
children: [],
name: "rescission",
},
{
label: "续约专区",
value: 30,
children: [],
name: "renewalArea",
},
{
label: "专供专区",
value: 31,
children: [],
name: "wolesaleArea",
},
{
label: "架构管理",
value: 6,
name: "frame",
children: [
{
label: "安置架构",
value: 6,
name: "architecture",
},
{
label: "推荐架构",
value: 7,
name: "recommend",
},
],
},
{
label: "创客空间专区",
value: 28,
children: [],
name: "makerArea",
},
],
marketList: [ marketList: [
{ {
text: "数据查询", text: "数据查询",

View File

@ -5,15 +5,15 @@
<span class="area-title">{{ title }}</span> <span class="area-title">{{ title }}</span>
<el-button <el-button
v-if="list.length > 0" v-if="list.length > 0"
type="primary" type="text"
size="mini" size="mini"
round round
plain plain
class="more-button" class="more-button"
@click="goToMore" @click="() => goToMore()"
> >
<span class="more-text">更多</span> <span class="more-text">更多</span>
<el-icon class="el-icon--right"><ArrowRight /></el-icon> <i class="el-icon-arrow-right"></i>
</el-button> </el-button>
</div> </div>
<div class="product-container"> <div class="product-container">
@ -21,7 +21,7 @@
class="product-item" class="product-item"
v-for="item in list" v-for="item in list"
:key="item.pkWares" :key="item.pkWares"
@click="handleProductClick" @click="handleProductClick(item)"
> >
<img :src="item.cover1" class="product-image" alt="product image" /> <img :src="item.cover1" class="product-image" alt="product image" />
<div class="product-info"> <div class="product-info">
@ -63,13 +63,18 @@ export default {
formatPrice(price) { formatPrice(price) {
return isLocal(numberToCurrencyNo(price)); return isLocal(numberToCurrencyNo(price));
}, },
goToMore() { goToMore(specialArea) {
if (this.$router && this.specialAreaId && this.subCategoryId) { console.log(
"🚀 ~ goToMore ~ specialArea",
specialArea,
this.specialAreaId
);
if (this.$router && this.specialAreaId) {
this.$router.push({ this.$router.push({
path: "/special", path: "/shoppingMall",
query: { query: {
code: this.specialAreaId, idTh: specialArea || this.specialAreaId,
id: this.subCategoryId, id: this.specialAreaId,
}, },
}); });
} else if (!this.specialAreaId) { } else if (!this.specialAreaId) {
@ -80,8 +85,8 @@ export default {
console.error("Vue Router is not available."); console.error("Vue Router is not available.");
} }
}, },
handleProductClick() { handleProductClick(product) {
this.goToMore(); this.goToMore(product?.specialArea);
}, },
}, },
}; };

View File

@ -0,0 +1,83 @@
export default {
data() {
return {
zoneList: [
{
label: "注册专区",
value: 24,
name: "regiest",
defaultChildId: 24,
children: [],
},
{
label: "升级专区",
value: 25,
name: "upgrade",
defaultChildId: 25,
children: [],
},
{
label: "复购专区",
value: 3,
name: "repurchase",
children: [
{
label: "乐学易考",
value: 26,
name: "ezLearnRep",
},
{
label: "自营专区",
value: 3,
name: "self",
},
],
},
{
label: "重消专区",
value: 10,
children: [],
name: "rescission",
},
{
label: "续约专区",
value: 30,
children: [],
name: "renewalArea",
},
{
label: "专供专区",
value: 31,
children: [],
name: "wolesaleArea",
},
{
label: "架构管理",
value: 6,
name: "frame",
children: [
{
label: "安置架构",
value: 6,
name: "architecture",
},
{
label: "推荐架构",
value: 7,
name: "recommend",
},
],
},
{
label: "创客空间专区",
value: 28,
children: [],
name: "makerArea",
},
],
};
},
};

View File

@ -345,7 +345,7 @@ export default {
}, },
{ {
label: "注册专区", label: "注册专区",
value: 1, value: 24,
name: "regiest", name: "regiest",
children: [ children: [
{ {
@ -353,16 +353,11 @@ export default {
value: 1, value: 1,
name: "regiestArea", name: "regiestArea",
}, },
{
label: "乐学易考",
value: 24,
name: "ezLearnReg",
},
], ],
}, },
{ {
label: "升级专区", label: "升级专区",
value: 2, value: 25,
name: "upgrade", name: "upgrade",
children: [ children: [
{ {
@ -370,11 +365,6 @@ export default {
value: 2, value: 2,
name: "upgradeArea", name: "upgradeArea",
}, },
{
label: "乐学易考",
value: 25,
name: "ezLearnUp",
},
{ {
label: "海粉专区", label: "海粉专区",
value: 27, value: 27,

File diff suppressed because it is too large Load Diff

View File

@ -166,7 +166,16 @@
</div> </div>
</div> </div>
<div style="height: 300px"></div> <div style="margin-top: 20px">
<specialAreaList
v-for="(item, index) in areaGoodsList"
:key="index"
:list="item.waresList"
:title="item.specialAreaName"
:specialAreaId="item.specialArea"
/>
</div>
<!-- <div style="height: 300px"></div> -->
</div> </div>
<div> <div>
<!-- 右侧侧侧边栏 --> <!-- 右侧侧侧边栏 -->

File diff suppressed because it is too large Load Diff

View File

@ -329,7 +329,7 @@ export default {
moren: '', moren: '',
allGoodsData: {}, allGoodsData: {},
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

View File

@ -361,7 +361,7 @@ export default {
moren: '', moren: '',
allGoodsData: [], allGoodsData: [],
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -362,7 +362,7 @@ export default {
moren: '', moren: '',
allGoodsData: {}, allGoodsData: {},
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

View File

@ -333,7 +333,7 @@ export default {
moren: '', moren: '',
allGoodsData: [], allGoodsData: [],
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

View File

@ -418,9 +418,11 @@ import * as api from "@/api/goods.js";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import noticePopup from "@/components/noticePopup.vue"; import noticePopup from "@/components/noticePopup.vue";
import selSpaceGoods from "@/components/selSpaceGoods.vue"; import selSpaceGoods from "@/components/selSpaceGoods.vue";
import specialListMixin from "@/mixins/special-list-mixin.js";
import * as ads from "@/api/register.js"; import * as ads from "@/api/register.js";
export default { export default {
mixins: [specialListMixin],
components: { components: {
noticePopup, noticePopup,
personInfo, personInfo,
@ -447,107 +449,6 @@ export default {
startPrice: "", startPrice: "",
endPrice: "", endPrice: "",
index: 30, index: 30,
zoneList: [
{
label: "分享专区",
value: 100,
name: "share",
children: [
{
label: "海粉分享",
value: 7,
name: "hiFans",
},
{
label: "免费注册",
value: 21,
name: "haiFans",
},
],
},
{
label: "注册专区",
value: 1,
name: "regiest",
children: [
{
label: "乐学易考",
value: 24,
name: "ezLearnReg",
},
],
},
{
label: "升级专区",
value: 2,
name: "upgrade",
children: [
{
label: "乐学易考",
value: 25,
name: "ezLearnUp",
},
],
},
{
label: "复购专区",
value: 3,
name: "repurchase",
children: [
{
label: "自营专区",
value: 3,
name: "self",
},
{
label: "三方供应",
value: 21,
name: "haiFans",
},
{
label: "复购合作",
value: 22,
name: "cooperation",
},
{
label: "乐学易考",
value: 26,
name: "ezLearnRep",
},
],
},
{
label: "福利专区",
value: 13,
children: [],
name: "welfare",
},
{
label: "重消专区",
value: 10,
children: [],
name: "rescission",
},
{
label: "续约专区",
value: 30,
children: [],
name: "renewalArea",
},
{
label: "专供专区",
value: 31,
children: [],
name: "wolesaleArea",
},
{
label: "创客空间专区",
value: 28,
children: [],
name: "makerArea",
},
],
specialArea: 0, specialArea: 0,
specialArea0: 0, specialArea0: 0,
goodList: [], goodList: [],

View File

@ -395,7 +395,7 @@ export default {
moren: '', moren: '',
allGoodsData: [], allGoodsData: [],
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

View File

@ -504,7 +504,7 @@ export default {
moren: "", moren: "",
allGoodsData: [], allGoodsData: [],
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {

View File

@ -377,7 +377,7 @@ export default {
moren: '', moren: '',
allGoodsData: [], allGoodsData: [],
allData: [], allData: [],
agreementShow: false, agreementShow: true,
countryList: [], countryList: [],
transList: [ transList: [
{ {