Browse Source

修复部分bug

master
rose 4 years ago
parent
commit
f66345b0fe
  1. 63
      src/components/Introduce/FicHatch.vue
  2. 17
      src/views/Business/Children/Business.vue
  3. 9
      src/views/Challenge/Children/components/Publish.vue
  4. 39
      src/views/Hatch/Children/Space.vue

63
src/components/Introduce/FicHatch.vue

@ -98,6 +98,16 @@
</div> </div>
<!-- <a-button class="btn" style="bottom: 20px" type="primary">入驻企业注册</a-button> --> <!-- <a-button class="btn" style="bottom: 20px" type="primary">入驻企业注册</a-button> -->
</div> </div>
<a-pagination
:current="current"
:page-size="pageSize"
:total="total"
@change="onShowSizeChange"
class="pagination"
show-less-items
show-quick-jumper
v-show="total > 1"
/>
</div> </div>
</div> </div>
</template> </template>
@ -117,38 +127,12 @@ export default {
}, },
data() { data() {
return { return {
lists: [ lists: [],
{
description: '系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍...',
name: '测试公司1',
logoUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2816433753,267880517&fm=26&gp=0.jpg',
man: '张三',
tel: '15000000000',
},
{
description: '系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍...',
name: '测试公司1',
logoUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2816433753,267880517&fm=26&gp=0.jpg',
man: '张三',
tel: '15000000000',
},
{
description: '系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍...',
name: '测试公司1',
logoUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2816433753,267880517&fm=26&gp=0.jpg',
man: '张三',
tel: '15000000000',
},
{
description: '系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍系统创新中心介绍...',
name: '测试公司1',
logoUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2816433753,267880517&fm=26&gp=0.jpg',
man: '张三',
tel: '15000000000',
},
],
colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'], colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'],
placeType: 1, placeType: 1,
current: 1,
pageSize: 4,
total: 10,
}; };
}, },
created() { created() {
@ -162,21 +146,26 @@ export default {
}, },
methods: { methods: {
onShowSizeChange(current, size) {
this.current = current;
this.getData();
},
async getData() { async getData() {
try { try {
const params = { const params = {
param: { param: {
placeType: this.placeType, placeType: this.placeType,
pageNum: 1, pageNum: this.current,
pageSize: 10, pageSize: this.pageSize,
}, },
}; };
const res = await searchPlaceFront(params); const res = await searchPlaceFront(params);
const { data, msg, code } = res.data; const { data, msg, code } = res.data;
if (code === 200) { if (code === 200) {
console.log(data) console.log(data)
// this.lists = data.list; this.lists = data.list;
// this.total = parseInt(data.total); this.total = parseInt(data.total);
} }
} catch (error) { } catch (error) {
console.log(error); console.log(error);
@ -233,6 +222,12 @@ export default {
width: 100px; width: 100px;
border-radius: 50%; border-radius: 50%;
} }
.pagination {
margin-top: 28px;
margin-bottom: 28px;
text-align: right;
}
.ent-title { .ent-title {
text-align: center; text-align: center;

17
src/views/Business/Children/Business.vue

@ -6,13 +6,20 @@
<div class="d-flex flex-wrap" style="margin-top: 50px; margin-bottom: 50px"> <div class="d-flex flex-wrap" style="margin-top: 50px; margin-bottom: 50px">
<div :key="index" v-for="(item, index) in list" style="width: 30%" :class="(index + 2) % 3 === 0 ? 'mg' : ''"> <div :key="index" v-for="(item, index) in list" style="width: 30%" :class="(index + 2) % 3 === 0 ? 'mg' : ''">
<div style="height: 500px"> <div style="height: 500px">
<video v-if="item.type !== 3" :poster="item.picUrl" class="fill-height" controls style="width: 100%; height: 300px"> <div v-if="item.type === 1">
<!-- <iframe frameborder="0" height=300px width=100% src='https://player.youku.com/embed/XNTE0MjU3MjEwMA=='></iframe> -->
<iframe frameborder="0" height=300px width=100% :src="item.contentUrl"></iframe>
</div>
<!-- <video v-if="item.type !== 3" :poster="item.picUrl" controls style="width: 100%; height: 300px">
<source :src="item.contentUrl" type="video/mp4" /> <source :src="item.contentUrl" type="video/mp4" />
<source :src="item.contentUrl" type="video/ogg" /> <source :src="item.contentUrl" type="video/ogg" />
</video> </video> -->
<img v-else :src="item.picUrl" style="width: 100%; height: 300px; cursor: pointer" @click="openPage(item.contentUrl)" alt="" /> <img v-else :src="item.picUrl" style="width: 100%; height: 300px; cursor: pointer" @click="openPage(item.contentUrl)" alt="" />
<p class="introduce-title">{{ item.title }}</p> <p class="introduce-title">{{ item.title }}</p>
<p class="introduce-content">{{ item.intro }}</p> <p class="introduce-content">{{ item.intro }}</p>
</div> </div>
<!-- <div class="d-flex justify-space-between" v-if="index % 2 === 0"> <!-- <div class="d-flex justify-space-between" v-if="index % 2 === 0">
<div class="introduce-box" style="width: 50% !important"> <div class="introduce-box" style="width: 50% !important">
@ -80,11 +87,7 @@ export default {
}, },
async getData(getParam) { async getData(getParam) {
try { try {
if (getParam) { 0
this.typeNum = getParam.typeNum;
this.bannerNum = getParam.bannerNum;
this.titleText = getParam.titleText;
}
const params = { const params = {
param: { param: {
banner: this.bannerNum, banner: this.bannerNum,

9
src/views/Challenge/Children/components/Publish.vue

@ -203,6 +203,7 @@ export default {
// //
handleOk() { handleOk() {
this.subMitAdd(); this.subMitAdd();
// this.$message.success(',');
}, },
handleCancel1() { handleCancel1() {
this.visible1 = false; this.visible1 = false;
@ -229,12 +230,14 @@ export default {
const res = await addTelease(params); const res = await addTelease(params);
const { code, msg, data } = res.data; const { code, msg, data } = res.data;
if (code === 200) { if (code === 200) {
this.$message.success('发榜成功');
this.visible = false;
this.confirmLoading = false;
for (let key in this.platform) { for (let key in this.platform) {
this.platform[key] = ''; this.platform[key] = '';
} }
this.visible = false;
this.confirmLoading = false;
this.$message.success('发榜成功,等待审核');
} else { } else {
throw msg; throw msg;
this.confirmLoading = false; this.confirmLoading = false;

39
src/views/Hatch/Children/Space.vue

@ -68,8 +68,20 @@
<span class="ent-rh">联系电话{{ item.phone }}</span> <span class="ent-rh">联系电话{{ item.phone }}</span>
</p> </p>
</div> </div>
<!-- <a-button class="btn" style="bottom: 20px" type="primary">入驻企业注册</a-button> --> <!-- <a-button class="btn" style="bottom: 20px" type="primary">入驻企业注册</a-button> -->
</div> </div>
<a-pagination
:current="current"
:page-size="pageSize"
:total="total"
@change="onShowSizeChange"
class="pagination"
show-less-items
show-quick-jumper
v-show="total > 1"
/>
</div> </div>
</div> </div>
</template> </template>
@ -83,6 +95,10 @@ export default {
return { return {
lists: [], lists: [],
colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'], colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'],
current: 1,
pageSize: 4,
total: 10,
}; };
}, },
created() { created() {
@ -96,21 +112,26 @@ export default {
this.$router.push('/Hatch/Fictitious'); this.$router.push('/Hatch/Fictitious');
} }
}, },
async getData() { onShowSizeChange(current, size) {
this.current = current;
this.getData();
},
async getData(getParam) {
try { try {
const params = { const params = {
param: { param: {
placeType: 2, placeType: 2,
pageNum: 1, pageNum: this.current,
pageSize: 10, pageSize: this.pageSize,
}, },
}; };
const res = await searchPlaceFront(params); const res = await searchPlaceFront(params);
const { data, msg, code } = res.data; const { data, msg, code } = res.data;
if (code === 200) { if (code === 200) {
console.log(data) // console.log(data)
this.lists = data this.lists = data.list
// this.total = parseInt(data.total); this.total = parseInt(data.total);
} }
} catch (error) { } catch (error) {
console.log(error); console.log(error);
@ -219,6 +240,12 @@ export default {
float: right; float: right;
} }
.pagination {
margin-top: 28px;
text-align: right;
}
@media only screen and (max-width: 1600px) { @media only screen and (max-width: 1600px) {
.ent-rh { .ent-rh {
float: left; float: left;

Loading…
Cancel
Save