Commit 43edadbb by wuwx

修改ui提的样式,测试缺陷

1 parent 8328da1e
...@@ -12,11 +12,11 @@ let cfg = require('./conf.js') ...@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function (isEnv = true) {
// if (isEnv) { if (isEnv) {
// let { request } = cfg let { request } = cfg
// Object.assign(request, { timeout }) Object.assign(request, { timeout })
// return Promise.resolve(cfg) return Promise.resolve(cfg)
// } }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......
...@@ -34,13 +34,28 @@ ...@@ -34,13 +34,28 @@
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio> <el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
</template> </template>
<template slot="directionalFlagHtml" v-if="editForm.useChannel != 1"> <template slot="directionalFlagHtml" v-if="editForm.useChannel != 1">
<div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div>
</template> </template>
<template slot="directionalFlagHtml" v-else> <template slot="directionalFlagHtml" v-else>
<div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio> <el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
...@@ -849,4 +864,10 @@ export default { ...@@ -849,4 +864,10 @@ export default {
word-break: break-word; word-break: break-word;
overflow: auto; overflow: auto;
} }
.promptCopy {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
margin-left: -10px;
}
</style> </style>
...@@ -50,9 +50,18 @@ ...@@ -50,9 +50,18 @@
<p class="edit-title">{{ title }}折扣劵</p> <p class="edit-title">{{ title }}折扣劵</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="directionalFlagHtml"> <template slot="directionalFlagHtml">
<div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
...@@ -642,4 +651,10 @@ export default { ...@@ -642,4 +651,10 @@ export default {
word-break: break-word; word-break: break-word;
overflow: auto; overflow: auto;
} }
.promptCopy {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
margin-left: -10px;
}
</style> </style>
...@@ -29,9 +29,18 @@ ...@@ -29,9 +29,18 @@
<p class="edit-title">{{ title }}兑换券</p> <p class="edit-title">{{ title }}兑换券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="directionalFlagHtml"> <template slot="directionalFlagHtml">
<div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<span class="promptCopy">创建成功后立即生效,所有小程序用户均可领用</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<span class="promptCopy">企微员工通过企微工作台定向礼包发送给客户</span>
</div>
<div>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio> <el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
<span class="promptCopy">关联商品,用户支付成功后才能进行核销使用</span>
</div>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
...@@ -516,4 +525,10 @@ export default { ...@@ -516,4 +525,10 @@ export default {
word-break: break-word; word-break: break-word;
overflow: auto; overflow: auto;
} }
.promptCopy {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
margin-left: -10px;
}
</style> </style>
...@@ -97,9 +97,8 @@ ...@@ -97,9 +97,8 @@
</div> </div>
</div> </div>
<template slot="association"> <template slot="association">
<el-button type="text" @click="dialogTableVisible = true" v-if="routeInfo.addOrEdit !== 3">选择</el-button> <el-button type="default" @click="dialogTableVisible = true" v-if="routeInfo.addOrEdit !== 3">+选择</el-button>
<!-- <el-dialog title="选择优惠券" v-if="dialogTableVisible" :visible.sync="dialogTableVisible"> --> <glsx-dialog title="选择优惠券" :isVisible.sync="dialogTableVisible" width="50%" @confirmDialog="associationConfirm" @closeDialog="associationCancel" >
<glsx-dialog title="选择优惠券" :isVisible.sync="dialogTableVisible" width="50%" @confirmDialog="associationConfirm" @closeDialog="associationCancel">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -116,7 +115,6 @@ ...@@ -116,7 +115,6 @@
<el-button type="default" @click="associationCancel">取消</el-button> <el-button type="default" @click="associationCancel">取消</el-button>
</div> --> </div> -->
</glsx-dialog> </glsx-dialog>
<!-- </el-dialog> -->
<div class="association-X" v-if="editForm.relatedCouponId"> <div class="association-X" v-if="editForm.relatedCouponId">
<div class="associationRow"> <div class="associationRow">
<span class="associationLists">名称</span> <span class="associationLists">名称</span>
...@@ -124,13 +122,13 @@ ...@@ -124,13 +122,13 @@
<span class="associationLists">使用途径</span> <span class="associationLists">使用途径</span>
<span class="associationLists" v-if="routeInfo.addOrEdit !== 3">操作</span> <span class="associationLists" v-if="routeInfo.addOrEdit !== 3">操作</span>
</div> </div>
<div class="associationRow"> <div class="associationRow" style="background:white;">
<el-tooltip effect="dark" :content="editForm.relatedCouponName" placement="bottom"> <el-tooltip effect="dark" :content="editForm.relatedCouponName" placement="bottom">
<span class="associationLists">{{editForm.relatedCouponName}}</span> <span class="associationLists-X">{{editForm.relatedCouponName}}</span>
</el-tooltip> </el-tooltip>
<span class="associationLists">{{editForm.relatedDiscountType}}</span> <span class="associationLists-X">{{editForm.relatedDiscountType}}</span>
<span class="associationLists">{{editForm.relatedUseChannel}}</span> <span class="associationLists-X">{{editForm.relatedUseChannel}}</span>
<span class="associationLists" v-if="routeInfo.addOrEdit !== 3"><el-button type="text" @click="del()">删除</el-button></span> <span class="associationLists" v-if="routeInfo.addOrEdit !== 3"><el-button type="text" @click="del()">删除</el-button></span>
</div> </div>
</div> </div>
...@@ -1848,12 +1846,17 @@ export default { ...@@ -1848,12 +1846,17 @@ export default {
bottom: 26px; bottom: 26px;
} }
.association-X { .association-X {
width: 320px; width: 670px;
margin-left: -25px; height: 108px;
border: 1px solid #EEE;
margin-top: 10px;
} }
.association-X .associationRow { .association-X .associationRow {
display: flex; display: flex;
/* justify-content:space-evenly; */ height: 54px;
background: #F4F6FC;
align-items: center;
justify-content: center;
} }
.association-X .associationRow .associationLists { .association-X .associationRow .associationLists {
display: block; display: block;
...@@ -1862,5 +1865,25 @@ export default { ...@@ -1862,5 +1865,25 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
flex: 1; flex: 1;
text-align: center; text-align: center;
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #424242;
}
.association-X .associationRow .associationLists-X {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
text-align: center;
font-size: 14px;
color: #666;
}
.marketing .footer-btns {
float: none !important;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #606266;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!