Commit 79a50449 by xuyl

提交代码

1 parent 7a591475
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"glsx-table": "^1.1.0", "glsx-table": "^1.1.0",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"sha1": "^1.1.1", "sha1": "^1.1.1",
"swiper": "^4.0.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-animate-number": "^0.4.2", "vue-animate-number": "^0.4.2",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -30,16 +30,17 @@ Vue.prototype.$apis = apis ...@@ -30,16 +30,17 @@ Vue.prototype.$apis = apis
Vue.use(glsxTable) Vue.use(glsxTable)
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.size = 'small' Vue.prototype.size = 'small'
// Vue.prototype.btn_size = 'mini' // Vue.prototype.btn_size = 'mini'
Vue.prototype.$Constants = Constants Vue.prototype.$Constants = Constants
Vue.prototype.$Utils = Util Vue.prototype.$Utils = Util
Vue.prototype.$Commons = common Vue.prototype.$Commons = common
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
//过滤器统一处理预加载 //过滤器统一处理预加载
Object.keys(filters).forEach(key => { Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key]) Vue.filter(key, filters[key])
}) })
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params) export const http2 = params => Vue.prototype.$http2(params)
export const http3 = params => Vue.prototype.$http3(params) export const http3 = params => Vue.prototype.$http3(params)
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<!-- 滚动条展示 --> <!-- 滚动条展示 -->
<div class="rollMarketItem" v-else v-dragscroll> <!-- <div class="rollMarketItem" v-else v-dragscroll>
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)"> <div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div class="marketItem-border"> <div class="marketItem-border">
<p class="peopleName">人群名称</p> <p class="peopleName">人群名称</p>
...@@ -52,13 +52,11 @@ ...@@ -52,13 +52,11 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<div class="progressBar" v-if="!closeFlag"> <div v-show="!closeFlag">
<!-- :style="{ width: showWidth + '%' }" --> <div class="swiper-container" id="swiper">
<div class="progress"></div> <div class="swiper-wrapper">
</div> <div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx)">
<!-- <el-carousel :interval="5000" arrow="always" indicator-position="none">
<el-carousel-item v-for="(item, idx) in itemArr" :key="idx">
<div class="marketItem-border"> <div class="marketItem-border">
<p class="peopleName">人群名称</p> <p class="peopleName">人群名称</p>
<div class="itemBox"> <div class="itemBox">
...@@ -70,8 +68,16 @@ ...@@ -70,8 +68,16 @@
<el-button class="createSOP">创建营销SOP</el-button> <el-button class="createSOP">创建营销SOP</el-button>
</div> </div>
</div> </div>
</el-carousel-item> </div>
</el-carousel> --> </div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<!-- <div class="progressBar" v-if="!closeFlag">
<div class="progress"></div>
</div> -->
</div> </div>
<div class="otherPageContent"> <div class="otherPageContent">
<GLCombiForm :formObj="searchForm" :formData="marketPeopleFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <GLCombiForm :formObj="searchForm" :formData="marketPeopleFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
...@@ -96,6 +102,9 @@ ...@@ -96,6 +102,9 @@
<script> <script>
import marketingPlan from './components/marketingPlan.vue' import marketingPlan from './components/marketingPlan.vue'
import Swiper from 'swiper'
import 'swiper/dist/css/swiper.min.css'
export default { export default {
name: 'marketPeople', name: 'marketPeople',
components: { marketingPlan }, components: { marketingPlan },
...@@ -103,20 +112,20 @@ export default { ...@@ -103,20 +112,20 @@ export default {
return { return {
activeName: 'first', activeName: 'first',
searchForm: {}, searchForm: {},
isActive:-1, isActive: -1,
displayNum: 4, //展示的数目 displayNum: 4, //展示的数目
closeFlag: false, //展开收起 closeFlag: false, //展开收起
itemArr: [ itemArr: [
{ num: 562, desc: '不该他basdbajsda' },
{ num: 323, desc: '我顶着大太阳,只想为你撑伞' }, { num: 323, desc: '我顶着大太阳,只想为你撑伞' },
{ num: 1312, desc: '你专心在画睫毛,我专心在等你笑' }, { num: 1312, desc: '你专心在画睫毛,我专心在等你笑' },
{ num: 43133, desc: '气球在我手上,牵着你瞎逛' }, { num: 43133, desc: '气球在我手上,牵着你瞎逛' },
{ num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' }, { num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
{ num: 1233, desc: '喜欢在人潮中,你只属于我的那画面' },
{ num: 43133, desc: '但偏偏,风渐渐,把距离吹的好远' },
{ num: 123213, desc: '最美的不是下雨天,是曾与你躲过雨的屋檐' },
{ num: 12345, desc: '人群描述人群描述人群描述人群描述人 群描' },
{ num: 1233, desc: '美人鱼的眼泪' }, { num: 1233, desc: '美人鱼的眼泪' },
{ num: 43133, desc: '气球在我手上,牵着你瞎逛' }, { num: 1233, desc: '我一路向北,离开有你的季节' }
{ num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
{ num: 1233, desc: '美人鱼的眼泪' },
{ num: 1233, desc: '美人鱼的眼泪' }
], ],
marketPeopleFormList: [ marketPeopleFormList: [
{ {
...@@ -278,9 +287,20 @@ export default { ...@@ -278,9 +287,20 @@ export default {
// getListApi: getDetailQuitTableList, // getListApi: getDetailQuitTableList,
} }
}, },
// created() {
// this.showWidth = (4 / this.itemArr.length).toFixed(2) * 100 mounted() {
// }, new Swiper('.swiper-container', {
// paginationClickable: true,
grabCursor: true,
spaceBetween: 16,
mousewheel: true,
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'progressbar'
}
})
},
methods: { methods: {
expandClick(val) { expandClick(val) {
if (val == 'expand') { if (val == 'expand') {
...@@ -289,7 +309,6 @@ export default { ...@@ -289,7 +309,6 @@ export default {
} else { } else {
this.closeFlag = false this.closeFlag = false
this.displayNum = 4 this.displayNum = 4
// document.getElementById('bigMarketItem').style.display = 'flex'
} }
}, },
// 选择的人群 // 选择的人群
...@@ -348,8 +367,75 @@ export default { ...@@ -348,8 +367,75 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.active{ /deep/.swiper-container-horizontal > .swiper-pagination-progressbar {
border:1px solid #5850ff; width: 5%;
bottom: 0px;
top: auto;
right: 0;
margin: auto;
border-radius: 3px;
background: #dddee0;
.swiper-pagination-progressbar-fill {
background: #5850ff;
border-radius: 3px;
}
}
#swiper {
padding: 0 20px;
.swiper-wrapper {
margin-bottom: 20px;
.swiper-slide {
width: 274px;
.marketItem-border {
min-height: 251px;
.peopleName {
height: 54px;
line-height: 54px;
background: #f7f7fc;
font-size: 16px;
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
}
.itemBox {
border-left: 1px solid #ededf0;
border-right: 1px solid #ededf0;
border-bottom: 1px solid #ededf0;
padding: 0 16px;
box-sizing: border-box;
.peopleNum {
padding: 24px 0;
font-size: 26px;
font-weight: 600;
color: #333333;
span {
font-size: 14px;
font-weight: 400;
}
}
.peopledesc {
font-size: 14px;
color: #999999;
line-height: 20px;
// min-height: 40px;
}
.createSOP {
margin: 24px 0;
border-radius: 4px;
border: 1px solid #5850ff;
width: 100%;
color: #5850ff;
padding: 9px 20px;
}
}
}
}
}
}
.active {
border: 1px solid #5850ff;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
...@@ -380,7 +466,7 @@ export default { ...@@ -380,7 +466,7 @@ export default {
} }
} }
.pageContent { .pageContent {
padding: 0 0 30px; padding: 0 0 20px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff; background-color: #fff;
.markPeople { .markPeople {
...@@ -432,7 +518,8 @@ export default { ...@@ -432,7 +518,8 @@ export default {
} }
.peopledesc { .peopledesc {
font-size: 14px; font-size: 14px;
color: #666666; color: #999999;
line-height: 20px;
} }
.createSOP { .createSOP {
margin: 24px 0; margin: 24px 0;
...@@ -445,63 +532,60 @@ export default { ...@@ -445,63 +532,60 @@ export default {
} }
} }
} }
.rollMarketItem { // .rollMarketItem {
padding: 0 20px; // padding: 0 20px;
width: 100%; // width: 100%;
display: flex; // display: flex;
justify-content: space-between; // justify-content: space-between;
overflow-x: auto; // overflow-x: auto;
// white-space: nowrap;
// overflow: hidden;
.marketItem {
// flex: 1;
width: 25%;
// padding-right: 16px;
margin-right: 16px;
&-border {
width: 274px;
}
.peopleName { // .marketItem {
height: 54px; // width: 25%;
line-height: 54px; // margin-right: 16px;
background: #f7f7fc; // &-border {
font-size: 16px; // width: 274px;
font-weight: 600; // }
padding-left: 16px;
vertical-align: middle; // .peopleName {
} // height: 54px;
.itemBox { // line-height: 54px;
border-left: 1px solid #ededf0; // background: #f7f7fc;
border-right: 1px solid #ededf0; // font-size: 16px;
border-bottom: 1px solid #ededf0; // font-weight: 600;
padding: 0 16px; // padding-left: 16px;
box-sizing: border-box; // vertical-align: middle;
.peopleNum { // }
padding: 24px 0; // .itemBox {
font-size: 26px; // border-left: 1px solid #ededf0;
font-weight: 600; // border-right: 1px solid #ededf0;
color: #333333; // border-bottom: 1px solid #ededf0;
span { // padding: 0 16px;
font-size: 14px; // box-sizing: border-box;
font-weight: 400; // .peopleNum {
} // padding: 24px 0;
} // font-size: 26px;
.peopledesc { // font-weight: 600;
font-size: 14px; // color: #333333;
color: #666666; // span {
} // font-size: 14px;
.createSOP { // font-weight: 400;
margin: 24px 0; // }
border-radius: 4px; // }
border: 1px solid #5850ff; // .peopledesc {
width: 100%; // font-size: 14px;
color: #5850ff; // color: #666666;
padding: 9px 20px; // }
} // .createSOP {
} // margin: 24px 0;
} // border-radius: 4px;
} // border: 1px solid #5850ff;
// width: 100%;
// color: #5850ff;
// padding: 9px 20px;
// }
// }
// }
// }
.progressBar { .progressBar {
width: 40px; width: 40px;
height: 4px; height: 4px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!