|
@@ -6,25 +6,17 @@
|
|
|
{{ online_gen }}
|
|
|
{{ work1TotalNum ? `(${work1TotalNum})` : "" }}
|
|
|
</span>
|
|
|
- <span @click="changeTab('cam')" :class="{ active: isActive('cam') }">
|
|
|
+ <span v-if="VUE_APP_ORIGIN != 'aws'" @click="changeTab('cam')" :class="{ active: isActive('cam') }">
|
|
|
{{ cam_gen }}
|
|
|
{{ work2TotalNum ? `(${work2TotalNum})` : "" }}
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="tab-r">
|
|
|
<div class="filter">
|
|
|
- <div
|
|
|
- :class="{ active: isFilterFocus }"
|
|
|
- @focusin="onFilterFocus"
|
|
|
- @focusout="onFilterBlur"
|
|
|
- >
|
|
|
+ <div :class="{ active: isFilterFocus }" @focusin="onFilterFocus" @focusout="onFilterBlur">
|
|
|
<i class="iconfont iconworks_search search"></i>
|
|
|
<input type="text" :placeholder="search" v-model="searchKey" />
|
|
|
- <i
|
|
|
- v-if="searchKey"
|
|
|
- @click="searchKey = ''"
|
|
|
- class="iconfont icon-toast_red del"
|
|
|
- ></i>
|
|
|
+ <i v-if="searchKey" @click="searchKey = ''" class="iconfont icon-toast_red del"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -34,10 +26,7 @@
|
|
|
<list @updateNum="handleWorkNum($event, 1)" :searchKey="searchKey"></list>
|
|
|
</template>
|
|
|
<template v-if="isActive('cam')">
|
|
|
- <CamList
|
|
|
- @updateNum="handleWorkNum($event, 2)"
|
|
|
- :searchKey="searchKey"
|
|
|
- ></CamList>
|
|
|
+ <CamList @updateNum="handleWorkNum($event, 2)" :searchKey="searchKey"></CamList>
|
|
|
</template>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -51,7 +40,6 @@ import CamList from "./cam";
|
|
|
import browser from "@/utils/browser";
|
|
|
|
|
|
const allTabType = ["list", "cam"];
|
|
|
-
|
|
|
export default {
|
|
|
components: {
|
|
|
List,
|
|
@@ -76,6 +64,7 @@ export default {
|
|
|
currentTab: "list",
|
|
|
online_gen: i18n.t("material.works.online_gen"),
|
|
|
cam_gen: i18n.t("material.works.cam_gen"),
|
|
|
+ VUE_APP_ORIGIN: process.env.VUE_APP_ORIGIN || '',
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -94,9 +83,7 @@ export default {
|
|
|
changeTab(type) {
|
|
|
if (allTabType.includes(type)) {
|
|
|
this.currentTab = type;
|
|
|
- location.replace(
|
|
|
- `./material.html?lang=${this.$lang}&from=${type}#/works`
|
|
|
- );
|
|
|
+ location.replace(`./material.html?lang=${this.$lang}&from=${type}#/works`);
|
|
|
}
|
|
|
},
|
|
|
handleWorkNum(val, type) {
|