Commit 874b7811 authored by 郭志伟's avatar 郭志伟

Merge branch 'feature/couponFree' into 'master'

Feature/coupon free

See merge request !52
parents bcc871c6 d306a8db
...@@ -11,10 +11,16 @@ ...@@ -11,10 +11,16 @@
}, },
data() { data() {
return { return {
switchVal: this.value, switchVal: false,
} }
}, },
watch: { watch: {
value: {
immediate: true,
handler(val) {
this.switchVal = val;
}
},
switchVal(val) { switchVal(val) {
this.$emit('input', val); this.$emit('input', val);
} }
......
...@@ -42,6 +42,12 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) { ...@@ -42,6 +42,12 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
alpha: false alpha: false
} }
}, },
// 支持运营内部福利赛需求,包括优惠券组件也做了处理,如果后期不用,可以考虑下线
{
key: 'titleUseUrl',
name: '从URL中获取标题',
type: 'SwitchBtn'
},
]; ];
bottomSchema: object[] = [ bottomSchema: object[] = [
{ {
......
...@@ -51,6 +51,7 @@ export default class ContextMenuMixin extends Vue { ...@@ -51,6 +51,7 @@ export default class ContextMenuMixin extends Vue {
if (!this.curEleIndex && this.curEleIndex !== 0) { return; } if (!this.curEleIndex && this.curEleIndex !== 0) { return; }
const elements = this.pageData.elements[this.curEleIndex]; const elements = this.pageData.elements[this.curEleIndex];
const component = document.getElementById(elements.id); const component = document.getElementById(elements.id);
if (!component || (component && component.commonStyle && component.commonStyle.position === 'absolute')) { return; }
const height = component ? getStyle(component, 'height') : 0; const height = component ? getStyle(component, 'height') : 0;
const paddingTop = elements.commonStyle.paddingTop || 0; const paddingTop = elements.commonStyle.paddingTop || 0;
const paddingBottom = elements.commonStyle.paddingBottom || 0; const paddingBottom = elements.commonStyle.paddingBottom || 0;
......
...@@ -90,6 +90,7 @@ export const defaultState = { ...@@ -90,6 +90,7 @@ export const defaultState = {
}, },
props: { props: {
titleBgColor: '#fff', titleBgColor: '#fff',
titleUseUrl: false,
showPageBottomTip: true, showPageBottomTip: true,
pageBottomTxt: '没有更多啦~', pageBottomTxt: '没有更多啦~',
pageBottomColor: '#333', pageBottomColor: '#333',
......
...@@ -97,7 +97,7 @@ instance.interceptors.request.use( ...@@ -97,7 +97,7 @@ instance.interceptors.request.use(
if (config.accessToken) { config.headers['Access-Token'] = token; } if (config.accessToken) { config.headers['Access-Token'] = token; }
} }
const tenantId = localStorage.get('tenantId') || basicConfig.yxmTenantId || ''; const tenantId = localStorage.get('tenantId') || basicConfig.yxmTenantId || '';
config.headers['qg-tenant-id'] = tenantId || ''; config.headers['qg-tenant-id'] = tenantId;
return config; return config;
}, },
error => { error => {
......
...@@ -2176,9 +2176,9 @@ ...@@ -2176,9 +2176,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.3.23", "version": "0.3.23-beta1",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.23.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.23-beta1.tgz",
"integrity": "sha512-DLE3+htghKm3s0ZNeK8FUWH5ZmOxelQjVcPy1Iic1cSaP3XF3GHBym1S+5r2yh8XvAXmt76vc5ivgxv0EtsVJw==", "integrity": "sha512-FZ/Udd865iJY6Qtzcl2paKjB6rMZgytiOrVYDaUj0h/IjD08Z2hrDC3iGBwTPzMqwkBb3Fxjaw0ZDJNIFSPzpg==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9", "@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