Commit efaecf43 by 匡雅琴

提测

1 parent bff96a03
import { http } from '@/main' import { http,http_merchant } from '@/main'
const defaultPath = 'marketing.api.material.' const defaultPath = 'marketing.api.material.'
...@@ -151,11 +151,11 @@ const sendDetailPage = params => { ...@@ -151,11 +151,11 @@ const sendDetailPage = params => {
const findAllDictData = params => { const findAllDictData = params => {
params.method = 'merchants.api.menu.findAllDictData' params.method = 'merchants.api.menu.findAllDictData'
return http({ return http_merchant({
url: 'http://rop-merchant.dev.glsx.com.cn/rop-merchants/router', url: 'rop-merchants/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
......
...@@ -22,3 +22,4 @@ export { bootstrap, mount, unmount } from '@/setup' ...@@ -22,3 +22,4 @@ 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 http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
...@@ -15,7 +15,7 @@ Vue.use(ElementUI) ...@@ -15,7 +15,7 @@ Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request2, sign, secret, sign_common, request_common } = await fetchConfig(false) const { response, request, request2, sign, secret, sign_common, request_common, request_merchant} = await fetchConfig(false)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -24,6 +24,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -24,6 +24,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
</div> </div>
</el-form> </el-form>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel> <SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
<GLFooter> <GLFooter class="gl-footer">
<el-button @click="onSave">存草稿</el-button> <el-button @click="onSave">存草稿</el-button>
<el-button @click="handleCancel" class="btn-cancle">取消</el-button> <el-button @click="handleCancel" class="btn-cancle">取消</el-button>
<el-button @click="handleSubmit" type="primary">确定</el-button> <el-button @click="handleSubmit" type="primary">确定</el-button>
...@@ -816,4 +816,7 @@ export default { ...@@ -816,4 +816,7 @@ export default {
width: 200px; width: 200px;
height: 200px; height: 200px;
} }
.gl-footer {
z-index: 999;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
}) })
}) })
this.eventBus.$on('editMaterialGroup', data => { this.eventBus.$on('editMaterialGroup', data => {
data.businessType = data.businessType.toString() // data.businessType = data.businessType.toString()
this.$apis.material.editMaterialGroup(data).then(res => { this.$apis.material.editMaterialGroup(data).then(res => {
if (res) { if (res) {
this.getMaterialList() this.getMaterialList()
......
...@@ -90,4 +90,7 @@ export default { ...@@ -90,4 +90,7 @@ export default {
.w-e-text-container { .w-e-text-container {
z-index: 1 !important; z-index: 1 !important;
} }
.w-e-toolbar{
z-index: 2 !important;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -49,9 +49,7 @@ ...@@ -49,9 +49,7 @@
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16"> <el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16">
<span>{{ scope.scope.materialContentRpcResponse.materialName }}</span> <span>{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip> </el-tooltip>
<el-popover <el-popover placement="top" trigger="click">
placement="top"
trigger="click">
<div> <div>
<img class="img-plus" src="@/assets/material/car.png" alt=""> <img class="img-plus" src="@/assets/material/car.png" alt="">
</div> </div>
...@@ -72,11 +70,10 @@ ...@@ -72,11 +70,10 @@
<span v-if="scope.scope.materialType == 3">图文</span> <span v-if="scope.scope.materialType == 3">图文</span>
</div> </div>
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> <!-- <el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> -->
<GLButton type="text" fn="详情" @click="handleDetail(scope.scope)">详情</GLButton> <GLButton type="text" fn="详情" @click="handleDetail(scope.scope)">详情</GLButton>
<!-- <el-button type="text" @click="addMaterial(2, scope.scope)">编辑</el-button> --> <!-- <el-button type="text" @click="addMaterial(2, scope.scope)">编辑</el-button> -->
<GLButton :size="size" type="text" fn="编辑" @click="addMaterial(2, scope.scope)">编辑</GLButton> <GLButton :size="size" type="text" fn="编辑" @click="addMaterial(2, scope.scope)">编辑</GLButton>
<!-- <GLButton :size="size" type="text" fn="详情" class="el-icon-plus" @click="addMaterial(1)">详情</GLButton> -->
<el-popover placement="right" trigger="click"> <el-popover placement="right" trigger="click">
<ul> <ul>
<li> <li>
...@@ -325,7 +322,7 @@ export default { ...@@ -325,7 +322,7 @@ export default {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offTop = document.querySelector('.tabelList').offsetTop let offTop = document.querySelector('.tabelList').offsetTop
console.log(clientHeight, offTop); console.log(clientHeight, offTop);
this.boxHeight = clientHeight - offTop - 40 + 'px' this.boxHeight = clientHeight - offTop + 'px'
this.findAllDictData('business_type') this.findAllDictData('business_type')
this.firstCome() this.firstCome()
this.getListApi() this.getListApi()
...@@ -438,10 +435,11 @@ export default { ...@@ -438,10 +435,11 @@ export default {
}, },
getListApi() { getListApi() {
var params = this.getParams() var params = this.getParams()
params.pageSize = this.$refs.materialRef.page.pageSize, params.pageSize = this.$refs.materialRef.page.pageSize
params.pageNum = this.$refs.materialRef.page.pageNum params.pageNum = this.$refs.materialRef.page.pageNum
this.$apis.material.materialList(params).then(res => { this.$apis.material.materialList(params).then(res => {
this.materialTableData = res.data this.materialTableData = res.data
console.log(this.materialTableData, 'sdggfb')
this.tableTotal = res.count this.tableTotal = res.count
}) })
}, },
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<div class="content-item-desc" v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div> <div class="content-item-desc" v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div>
</div> </div>
<div class="content-item-image"> <div class="content-item-image">
<img src="@/assets/material/car.png" alt="" v-if="detailInfo.materialType == 3" /> <img :src="imgSrc ? imgSrc[1] : '@/assets/material/car.png'" alt="" v-if="detailInfo.materialType == 3" />
<img src="@/assets/material/pdf.png" alt="" v-if="detailInfo.materialType == 1" /> <img src="@/assets/material/pdf.png" alt="" v-if="detailInfo.materialType == 1" />
</div> </div>
</div> </div>
...@@ -151,10 +151,6 @@ ...@@ -151,10 +151,6 @@
<div class="phone-content"> <div class="phone-content">
<h4 class="phone-content-title">{{ detailInfo.materialName }}</h4> <h4 class="phone-content-title">{{ detailInfo.materialName }}</h4>
<div class="phone-content-word" v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div> <div class="phone-content-word" v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div>
<div class="phone-content-word">活动时间:2022年3月17日 8:00-23:00</div>
<div>
<img src="@/assets/material/car.png" alt="" />
</div>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -182,7 +178,8 @@ export default { ...@@ -182,7 +178,8 @@ export default {
selectTime: [], selectTime: [],
routerInfo: '', routerInfo: '',
detailInfo: {}, detailInfo: {},
overviewInfo: {} overviewInfo: {},
imgSrc: []
} }
}, },
mounted() { mounted() {
...@@ -197,7 +194,6 @@ export default { ...@@ -197,7 +194,6 @@ export default {
params.id = this.routerInfo.id params.id = this.routerInfo.id
params.flag = 0 params.flag = 0
this.$apis.material.materialDetail(params).then(res => { this.$apis.material.materialDetail(params).then(res => {
console.log(res, 'dhakfh')
this.detailInfo = res this.detailInfo = res
if (this.detailInfo.tagJson) { if (this.detailInfo.tagJson) {
this.detailInfo.tagJson = eval(this.detailInfo.tagJson) this.detailInfo.tagJson = eval(this.detailInfo.tagJson)
...@@ -206,6 +202,12 @@ export default { ...@@ -206,6 +202,12 @@ export default {
} }
if (this.detailInfo.materialType == 3) { if (this.detailInfo.materialType == 3) {
this.detailInfo.materialUrl = decodeURIComponent(this.detailInfo.materialUrl) this.detailInfo.materialUrl = decodeURIComponent(this.detailInfo.materialUrl)
console.log(this.detailInfo.materialUrl, 'dhakfh')
let html = this.detailInfo.materialUrl
let imgHtml = html.match(/<img.*?(?:>|\/>)/g)
// html = html.replace(imgHtml[0],'')
this.imgSrc = imgHtml[0].match('<img[^<>]*? src="([^<>]*?)"')
console.log(this.imgSrc[1], 'imgimg')
} }
}) })
}, },
...@@ -280,7 +282,7 @@ export default { ...@@ -280,7 +282,7 @@ export default {
display: flex; display: flex;
.content-item { .content-item {
box-sizing: border-box; box-sizing: border-box;
width: 321px; width: 296px;
height: 117px; height: 117px;
background: #f5f5f5; background: #f5f5f5;
border-radius: 2px; border-radius: 2px;
...@@ -438,16 +440,24 @@ export default { ...@@ -438,16 +440,24 @@ export default {
height: 600px; height: 600px;
position: relative; position: relative;
.img-phone { .img-phone {
height: 500px; height: 558px;
width: 312px; width: 312px;
position: absolute; position: absolute;
top: 10%; top: 4%;
left: 25%; left: 15%;
} }
.phone-content { .phone-content {
position: absolute; position: absolute;
top: 20%; top: 15%;
left: 30%; left: 23%;
width: 244px;
height: 414px;
overflow: auto;
background-color: #fff;
padding: 8px;
box-sizing: border-box;
border-radius: 13px;
box-shadow: -2px 4px 3px #ccc;
&-title { &-title {
width: 100%; width: 100%;
height: 30px; height: 30px;
...@@ -460,6 +470,7 @@ export default { ...@@ -460,6 +470,7 @@ export default {
} }
} }
.content-item-image { .content-item-image {
margin-top: -5px;
img { img {
width: 85px; width: 85px;
height: 85px; height: 85px;
...@@ -468,4 +479,8 @@ export default { ...@@ -468,4 +479,8 @@ export default {
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
} }
p {
margin: 0 !important;
padding-right: 10px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!