Commit 808c194c authored by 郭志伟's avatar 郭志伟

fix(adjustHeight): 组件高度设置

parent d782499f
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
@click="dot(item.title)" @click="dot(item.title)"
@touchend="disTouch" @touchend="disTouch"
> >
<component :data-index="index" :containerIndex="index" :component-data="item" :childItem="item" :is="item.name" :sa-info="getSaInfo(item)" v-bind="item.props"></component> <component :data-index="index" :id="item.id" :containerIndex="index" :component-data="item" :childItem="item" :is="item.name" :sa-info="getSaInfo(item)" v-bind="item.props"></component>
</div> </div>
<div <div
v-if="pageData.props.showPageBottomTip" v-if="pageData.props.showPageBottomTip"
......
...@@ -43,6 +43,5 @@ export default class TransformStyleMixin extends Vue { ...@@ -43,6 +43,5 @@ export default class TransformStyleMixin extends Vue {
const point = { ...component.point, h: component.name === 'cs-goods-tabs' ? Math.floor(+calcHeight) : Math.ceil(+calcHeight) }; const point = { ...component.point, h: component.name === 'cs-goods-tabs' ? Math.floor(+calcHeight) : Math.ceil(+calcHeight) };
this.setElementPoint({ id: eleId, data: point }); this.setElementPoint({ id: eleId, data: point });
// console.log('adjustHeight', height, component, element.getAttribute('id'), point); // console.log('adjustHeight', height, component, element.getAttribute('id'), point);
} }
} }
...@@ -4,11 +4,11 @@ import Storage from '@/service/localStorage.service'; ...@@ -4,11 +4,11 @@ import Storage from '@/service/localStorage.service';
import { getParameterByName, isWxMp, isApp } from '@/service/utils.service'; import { getParameterByName, isWxMp, isApp } from '@/service/utils.service';
export function initSa(router) { export function initSa(router) {
if (process.env.NODE_ENV === 'development') { return; }
const sa = require('sa-sdk-javascript'); const sa = require('sa-sdk-javascript');
const activityId = window.location.pathname.split('/')?.[2] || ''; const activityId = window.location.pathname.split('/')?.[2] || '';
const vccChannel = getParameterByName('vccChannel') || getParameterByName('registerFrom'); const vccChannel = getParameterByName('vccChannel') || getParameterByName('registerFrom');
const sonVccChannel = getParameterByName('sonVccChannel'); const sonVccChannel = getParameterByName('sonVccChannel');
const sa = require('sa-sdk-javascript');
sa.init({ sa.init({
server_url: config.shenceUrl, server_url: config.shenceUrl,
heatmap: { heatmap: {
......
...@@ -8,7 +8,6 @@ export default (appInfo: EggAppConfig) => { ...@@ -8,7 +8,6 @@ export default (appInfo: EggAppConfig) => {
const siteFile = wxVertify; const siteFile = wxVertify;
siteFile['/favicon.ico'] = fs.readFileSync(path.join(appInfo.baseDir, 'app/web/asset/images/favicon.ico')); siteFile['/favicon.ico'] = fs.readFileSync(path.join(appInfo.baseDir, 'app/web/asset/images/favicon.ico'));
config.siteFile = siteFile; config.siteFile = siteFile;
config.view = { config.view = {
......
...@@ -1658,9 +1658,9 @@ ...@@ -1658,9 +1658,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.3.5-bata3", "version": "0.3.5-beta4",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.5-bata3.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.5-beta4.tgz",
"integrity": "sha512-PsNMBo4YISZ8+htjZ4yu+UE4kQkI1OpryorNtTBehKluxfyc7wz1wnJ8240BZA5YYOkJuOU4Fz5SR1HolvBdxg==", "integrity": "sha512-gt58YL5EstZ//TttcsJcwCsMQJO1vPb55qj5wJdcDc5kAO6QCyd8O1zZuy0Nu+cOO3/iovGK3f3edVykX2eo/w==",
"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