Commit 76d8d552 authored by 郭志伟's avatar 郭志伟

feat(coupon): 支持运营业务,开放页面title和优惠券配置

parent bcc871c6
......@@ -42,6 +42,12 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
alpha: false
}
},
// 支持运营内部福利赛需求,包括优惠券组件也做了处理,如果后期不用,可以考虑下线
{
key: 'titleUseUrl',
name: '从URL中获取标题',
type: 'SwitchBtn'
},
];
bottomSchema: object[] = [
{
......
......@@ -51,6 +51,7 @@ export default class ContextMenuMixin extends Vue {
if (!this.curEleIndex && this.curEleIndex !== 0) { return; }
const elements = this.pageData.elements[this.curEleIndex];
const component = document.getElementById(elements.id);
if (!component || (component && component.commonStyle.position === 'absolute')) { return; }
const height = component ? getStyle(component, 'height') : 0;
const paddingTop = elements.commonStyle.paddingTop || 0;
const paddingBottom = elements.commonStyle.paddingBottom || 0;
......
......@@ -90,6 +90,7 @@ export const defaultState = {
},
props: {
titleBgColor: '#fff',
titleUseUrl: false,
showPageBottomTip: true,
pageBottomTxt: '没有更多啦~',
pageBottomColor: '#333',
......
......@@ -2176,9 +2176,9 @@
}
},
"@qg/citrus-ui": {
"version": "0.3.23",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.23.tgz",
"integrity": "sha512-DLE3+htghKm3s0ZNeK8FUWH5ZmOxelQjVcPy1Iic1cSaP3XF3GHBym1S+5r2yh8XvAXmt76vc5ivgxv0EtsVJw==",
"version": "0.3.23-beta0",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.23-beta0.tgz",
"integrity": "sha512-Zk8w5QWA5LqwYdYjirFG5PwoMMLYUHOI4ym6po8CNFqO00BXYyahoeG3qXHlwL88yWl9DJ+378S5uk1nEfrKkQ==",
"requires": {
"@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment