|
|
@@ -107,14 +107,14 @@
|
|
|
<div class="menu-item" @click="changeMenu('BLIND_BOX')" :class="{ active: type === 'BLIND_BOX' }">
|
|
|
盲盒类目
|
|
|
</div>
|
|
|
- <div
|
|
|
+ <!-- <div
|
|
|
class="menu-item"
|
|
|
v-if="showRoom"
|
|
|
@click="changeMenu('SHOWROOM')"
|
|
|
:class="{ active: type === 'SHOWROOM' }"
|
|
|
>
|
|
|
展厅
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="flex1"></div>
|
|
|
<van-checkbox v-if="type !== 'SHOWROOM'" @change="getData(true)" class="sala" v-model="salable"
|
|
|
>仅看在售</van-checkbox
|
|
|
@@ -132,7 +132,7 @@
|
|
|
<van-tab title="全部" name=""></van-tab>
|
|
|
<van-tab title="寄售" :name="true"></van-tab>
|
|
|
<van-tab title="仅展示" :name="false"></van-tab>
|
|
|
- <van-tab title="展厅" v-if="showRoom" name="showRoom"></van-tab>
|
|
|
+ <!-- <van-tab title="展厅" v-if="showRoom" name="showRoom"></van-tab> -->
|
|
|
</van-tabs>
|
|
|
</van-sticky>
|
|
|
<van-list
|
|
|
@@ -179,7 +179,7 @@ import list from '../../mixins/list';
|
|
|
export default {
|
|
|
components: { productInfo, ShowInfo },
|
|
|
computed: {
|
|
|
- ...mapState(['userInfo']),
|
|
|
+ ...mapState(['userInfo', 'companyId']),
|
|
|
rankInfo() {
|
|
|
let index = [...this.hots].findIndex(item => {
|
|
|
return item.id === this.info.id;
|
|
|
@@ -274,7 +274,8 @@ export default {
|
|
|
userId: this.info.id || this.$route.query.id,
|
|
|
del: false,
|
|
|
status: 'SUCCESS',
|
|
|
- publish: true
|
|
|
+ publish: true,
|
|
|
+ companyId: this.companyId
|
|
|
},
|
|
|
sort: 'id,desc'
|
|
|
};
|
|
|
@@ -292,7 +293,8 @@ export default {
|
|
|
minterId: this.info.id || this.$route.query.id,
|
|
|
del: false,
|
|
|
source: this.sourceType,
|
|
|
- onShelf: true
|
|
|
+ onShelf: true,
|
|
|
+ companyId: this.companyId
|
|
|
},
|
|
|
sort: sort
|
|
|
};
|
|
|
@@ -302,7 +304,8 @@ export default {
|
|
|
salable: this.salable,
|
|
|
ownerId: this.info.id || this.$route.query.id,
|
|
|
del: false,
|
|
|
- source: this.sourceType
|
|
|
+ source: this.sourceType,
|
|
|
+ companyId: this.companyId
|
|
|
},
|
|
|
sort: 'soldOut;' + (this.sort || 'id,desc')
|
|
|
};
|
|
|
@@ -327,19 +330,7 @@ export default {
|
|
|
forbidClick: true
|
|
|
});
|
|
|
this.$http
|
|
|
- .get('/sysConfig/get/publishShow')
|
|
|
- .then(res => {
|
|
|
- if (res.value === true || res.value === '1') {
|
|
|
- this.publishShow = true;
|
|
|
- }
|
|
|
- return Promise.resolve();
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return Promise.resolve();
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- return this.$http.get('/user/get/' + this.$route.query.id);
|
|
|
- })
|
|
|
+ .get('/user/get/' + this.$route.query.id)
|
|
|
.then(res => {
|
|
|
this.$toast.clear();
|
|
|
this.info = res;
|