Browse Source

修复部分bug

master
rose 4 years ago
parent
commit
f66345b0fe
  1. 63
      src/components/Introduce/FicHatch.vue
  2. 19
      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>
<!-- <a-button class="btn" style="bottom: 20px" type="primary">入驻企业注册</a-button> -->
</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>
</template>
@ -117,38 +127,12 @@ export default {
},
data() {
return {
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',
},
],
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)'],
placeType: 1,
current: 1,
pageSize: 4,
total: 10,
};
},
created() {
@ -162,21 +146,26 @@ export default {
},
methods: {
onShowSizeChange(current, size) {
this.current = current;
this.getData();
},
async getData() {
try {
const params = {
param: {
placeType: this.placeType,
pageNum: 1,
pageSize: 10,
pageNum: this.current,
pageSize: this.pageSize,
},
};
const res = await searchPlaceFront(params);
const { data, msg, code } = res.data;
if (code === 200) {
console.log(data)
// this.lists = data.list;
// this.total = parseInt(data.total);
this.lists = data.list;
this.total = parseInt(data.total);
}
} catch (error) {
console.log(error);
@ -233,6 +222,12 @@ export default {
width: 100px;
border-radius: 50%;
}
.pagination {
margin-top: 28px;
margin-bottom: 28px;
text-align: right;
}
.ent-title {
text-align: center;

19
src/views/Business/Children/Business.vue

@ -5,14 +5,21 @@
<div class="inner content-box" style="padding-bottom: 80px">
<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 style="height: 500px">
<video v-if="item.type !== 3" :poster="item.picUrl" class="fill-height" controls style="width: 100%; height: 300px">
<div style="height: 500px">
<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/ogg" />
</video>
</video> -->
<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-content">{{ item.intro }}</p>
</div>
<!-- <div class="d-flex justify-space-between" v-if="index % 2 === 0">
<div class="introduce-box" style="width: 50% !important">
@ -80,11 +87,7 @@ export default {
},
async getData(getParam) {
try {
if (getParam) {
this.typeNum = getParam.typeNum;
this.bannerNum = getParam.bannerNum;
this.titleText = getParam.titleText;
}
0
const params = {
param: {
banner: this.bannerNum,

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

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

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

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

Loading…
Cancel
Save