Commit d7ff8ccb by cwq0219

样式

1 parent 878988f8
...@@ -5897,9 +5897,9 @@ ...@@ -5897,9 +5897,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.0.6", "version": "1.0.9",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.6.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.9.tgz",
"integrity": "sha512-wzgh338Ucq0XkE1CA2jym+TuLHWnLv+ZnXj3zzAgZYlEDzffOlntEYlT4jsBrMOGxX20iHDtTrXe2G0a9GPSyA==", "integrity": "sha512-mDSQuZM9m4yJoUBqEcZ7Ir9lzo7im1Ph2O1qDzHXLVTsJX04+H9aHnB1aV+YGdHbbYRXbsxwPIk+NVgxo+A2lg==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -5908,9 +5908,9 @@ ...@@ -5908,9 +5908,9 @@
}, },
"dependencies": { "dependencies": {
"core-js": { "core-js": {
"version": "3.18.3", "version": "3.19.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.3.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.0.tgz",
"integrity": "sha512-tReEhtMReZaPFVw7dajMx0vlsz3oOb8ajgPoHVYGxr8ErnZ6PcYEvvmjGmXlfpnxpkYSdOQttjB+MvVbCGfvLw==" "integrity": "sha512-L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg=="
}, },
"element-ui": { "element-ui": {
"version": "2.15.6", "version": "2.15.6",
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.0.6", "glsx-components": "^1.0.9",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -11,7 +11,15 @@ ...@@ -11,7 +11,15 @@
} }
.live-room .table-btns .el-button { .live-room .table-btns .el-button {
padding: 0 0 0 5px;
margin-left: 5px;
border-left: 1px solid #DCDFE6;
border-radius: 0;
}
.live-room .table-btns .el-button:first-child {
padding: 0; padding: 0;
border: 0;
} }
.live-room .img-60 { .live-room .img-60 {
......
...@@ -262,11 +262,11 @@ export default { ...@@ -262,11 +262,11 @@ export default {
/* .glsx-combi-form .el-form-item { /* .glsx-combi-form .el-form-item {
width: 65%; width: 65%;
} */ } */
.glsx-combi-form .no-label.el-form-item--mini .el-form-item__content, .glsx-combi-form .no-label.el-form-item--small .el-form-item__content,
.el-form-item--mini .el-form-item__label { .el-form-item--small .el-form-item__label {
width: 100%; width: 100%;
} }
/* .glsx-combi-form .el-form-item--mini .el-form-item__content { /* .glsx-combi-form .el-form-item--small .el-form-item__content {
width: calc(100% - 85px); width: calc(100% - 85px);
} */ } */
.glsx-combi-form .el-col { .glsx-combi-form .el-col {
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<span slot="coverImgUrl" slot-scope="scope"> <span slot="coverImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.coverImgUrl" /> <img class="img-60" :src="scope.scope.coverImgUrl" />
</span> </span>
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handlePush(scope.scope.id)">{{ targetId === scope.scope.id ? '已推送' + pushCountDown + 's' : '推送' }}</el-button> <el-button type="text" @click="handlePush(scope.scope.id)">{{ targetId === scope.scope.id ? '已推送' + pushCountDown + 's' : '推送' }}</el-button>
<el-button type="text" @click="handleUpOrDown(scope.scope)">{{ scope.scope.onSale == '1' ? '下架' : '上架' }}</el-button> <el-button type="text" @click="handleUpOrDown(scope.scope)">{{ scope.scope.onSale == '1' ? '下架' : '上架' }}</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="container"> <div class="container edit-container">
<div class="box"> <div class="box">
<div class="content"> <div class="content">
<p class="edit-title">直播设置</p> <p class="edit-title">直播设置</p>
...@@ -112,6 +112,9 @@ ...@@ -112,6 +112,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer">
<el-button type="primary" @click="handleBack">返回</el-button>
</div>
<select-muti-pro-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchWaitForm" :getListApi="getWaitImportListApi" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"> <select-muti-pro-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchWaitForm" :getListApi="getWaitImportListApi" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose">
<!-- <template slot="search"> <!-- <template slot="search">
<div class="flex"> <div class="flex">
...@@ -141,6 +144,7 @@ export default { ...@@ -141,6 +144,7 @@ export default {
size: 'small', size: 'small',
countDown: 0, countDown: 0,
timer: null, timer: null,
isFirst: true,
editForm: {}, editForm: {},
// 直播数据 - 表格 // 直播数据 - 表格
liveDataTable: [], liveDataTable: [],
...@@ -149,7 +153,7 @@ export default { ...@@ -149,7 +153,7 @@ export default {
{ {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
line: 1 line: 2
}, },
{ {
label: '商品图片', label: '商品图片',
...@@ -169,7 +173,7 @@ export default { ...@@ -169,7 +173,7 @@ export default {
{ {
label: '来源门店', label: '来源门店',
prop: 'merchantName', prop: 'merchantName',
line: 1 line: 2
} }
] ]
}, },
...@@ -192,17 +196,17 @@ export default { ...@@ -192,17 +196,17 @@ export default {
{ {
label: '商品图片', label: '商品图片',
prop: 'coverImgUrl', prop: 'coverImgUrl',
line: 1,
addHtml: 'coverImgUrl' addHtml: 'coverImgUrl'
}, },
{ {
label: '商品标题', label: '商品标题',
prop: 'name', prop: 'name',
line: 1 line: 2
}, },
{ {
label: '商品价格', label: '商品价格',
prop: 'price', prop: 'price',
line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.price2 && cellValue.price1 != cellValue.price2 ? (cellValue.price1 / 100).toFixed(2) + '-' + (cellValue.price2 / 100).toFixed(2) : (cellValue.price1 / 100).toFixed(2) return cellValue.price2 && cellValue.price1 != cellValue.price2 ? (cellValue.price1 / 100).toFixed(2) + '-' + (cellValue.price2 / 100).toFixed(2) : (cellValue.price1 / 100).toFixed(2)
} }
...@@ -210,6 +214,7 @@ export default { ...@@ -210,6 +214,7 @@ export default {
{ {
label: '状态', label: '状态',
prop: 'onSale', prop: 'onSale',
width: '80',
formatter: cellValue => { formatter: cellValue => {
return { return {
0: '下架', 0: '下架',
...@@ -219,19 +224,18 @@ export default { ...@@ -219,19 +224,18 @@ export default {
}, },
{ {
label: '点击次数', label: '点击次数',
prop: 'clickNumber' prop: 'clickNumber',
line: 1
}, },
{ {
label: '点击人数', label: '点击人数',
prop: 'clickUserNumber' prop: 'clickUserNumber',
line: 1
}, },
// {
// label: '点赞次数',
// prop: ''
// },
{ {
label: '来源门店', label: '来源门店',
prop: 'merchantName' prop: 'merchantName',
line: 2
} }
] ]
} }
...@@ -261,6 +265,7 @@ export default { ...@@ -261,6 +265,7 @@ export default {
getControlInfoApi({ id: this.routeInfo.id }).then(res => { getControlInfoApi({ id: this.routeInfo.id }).then(res => {
this.editForm = res this.editForm = res
this.liveDataTable = res.liveStatisticsDTOList this.liveDataTable = res.liveStatisticsDTOList
this.isFirst = true
console.log(this.editForm) console.log(this.editForm)
this.countDownTime() this.countDownTime()
}) })
...@@ -279,6 +284,7 @@ export default { ...@@ -279,6 +284,7 @@ export default {
this.handleConfigSearch() this.handleConfigSearch()
}, },
countDownTime() { countDownTime() {
this.isFirst ? (this.isFirst = false) : (this.editForm.systemTimestamp = this.editForm.systemTimestamp + 1)
clearInterval(this.timer) clearInterval(this.timer)
if (new Date() < new Date(this.editForm.startTime)) { if (new Date() < new Date(this.editForm.startTime)) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
...@@ -301,12 +307,12 @@ export default { ...@@ -301,12 +307,12 @@ export default {
} }
}, },
//将0-9的数字前面加上0,例1变为01 //将0-9的数字前面加上0,例1变为01
checkTime(i) { // checkTime(i) {
if (i < 10) { // if (i < 10) {
i = '0' + i // i = '0' + i
} // }
return i // return i
}, // },
handlePush(id) { handlePush(id) {
if (!this.targetId) { if (!this.targetId) {
this.targetId = id this.targetId = id
...@@ -375,7 +381,13 @@ export default { ...@@ -375,7 +381,13 @@ export default {
if (res.code != '0') { if (res.code != '0') {
this.editForm.closeReplay = val ? 0 : 1 this.editForm.closeReplay = val ? 0 : 1
} }
})} })
},
handleBack() {
this.$router.push({
path: '/liveRoom/liveRoomList'
})
}
} }
} }
</script> </script>
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<script> <script>
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
// import glsxTable from '@/components/glsx-table'
import { getLiveRoomListApi } from '@/api/modules/liveRoom' import { getLiveRoomListApi } from '@/api/modules/liveRoom'
import { liveStatusList } from '@/common/constant' import { liveStatusList } from '@/common/constant'
export default { export default {
...@@ -132,6 +133,7 @@ export default { ...@@ -132,6 +133,7 @@ export default {
components: { components: {
glsxDialog glsxDialog
// glsxTable
}, },
mounted() { mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!