Commit 4a6afcb8 authored by rockyl's avatar rockyl

Merge branch 'dev' into dep-lock

# Conflicts:
#	src/config.js
parents b998748e 7aa6eb23
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
export let API_HOST; export let API_HOST;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
//API_HOST = '//10.10.95.74:7777'; //API_HOST = '//10.10.95.74:7777';
API_HOST = '//192.168.1.16:7777'; //API_HOST = '//192.168.1.16:7777';
//API_HOST = '//192.168.0.104:7777'; API_HOST = '//192.168.2.143:7777';
//API_HOST = '//10.10.92.33:7777'; //API_HOST = '//10.10.92.33:7777';
//API_HOST = '//localhost:3002'; //API_HOST = '//localhost:3002';
//API_HOST = window.__data.apiHost; //API_HOST = window.__data.apiHost;
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
"Import single": "导入单", "Import single": "导入单",
"Import multi": "导入多", "Import multi": "导入多",
"Import view success": "视图导入成功", "Import view success": "视图导入成功",
"Input projectx id": "请舒服{envName}星速台项目ID", "Input projectx id": "请输入{envName}星速台项目ID",
"Save template to projectx": "是否保存皮肤到星速台", "Save template to projectx": "是否保存皮肤到星速台",
"eventGroup": { "eventGroup": {
"in": "接收", "in": "接收",
......
...@@ -179,11 +179,16 @@ export default { ...@@ -179,11 +179,16 @@ export default {
},*/ },*/
value: 12 value: 12
}, },
lineHeight: { lineSpacing: {
title: '行间距',
type: 'inputNumber',
value: 14
},
/*lineHeight: {
title: '行高', title: '行高',
type: 'inputNumber', type: 'inputNumber',
value: 1 value: 1
}, },*/
textAlign: { textAlign: {
title: '文本对齐', title: '文本对齐',
type: 'select', type: 'select',
...@@ -252,8 +257,8 @@ export default { ...@@ -252,8 +257,8 @@ export default {
], ],
value: 'text' value: 'text'
}, },
pattern: { charRegStr: {
title: '输入模式', title: '字符正则式',
type: 'input', type: 'input',
value: '', value: '',
props: { props: {
......
...@@ -76,10 +76,10 @@ export default { ...@@ -76,10 +76,10 @@ export default {
}, },
data() { data() {
return { return {
pxEnvs: this.$t('pxEnvs'), pxEnvs: this.$t("pxEnvs"),
tplOperates: this.$t('tplOperates'), tplOperates: this.$t("tplOperates"),
tplTypes: this.$t('tplTypes'), tplTypes: this.$t("tplTypes"),
env: "dev", env: "dev",
operate: 1, operate: 1,
tplType: 0, tplType: 0,
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
}, },
hasIndex() { hasIndex() {
const { skinList } = this; const { skinList } = this;
return skinList.some(v => v.type === '1'); return skinList.some(v => v.type === "1");
}, },
async saveSkins() { async saveSkins() {
const { const {
...@@ -209,14 +209,20 @@ export default { ...@@ -209,14 +209,20 @@ export default {
}, },
/** 获取访问链接 */ /** 获取访问链接 */
getUrl() { getUrl() {
const { tplType, env, skinId, projectId } = this; const { tplType, env, skinId, projectId, skinList } = this;
let type = 1;
skinList.forEach(skin => {
if (skin.id === skinId) {
type = skin.type;
}
});
const mapping = { const mapping = {
dev: "activity.m.duibadev.com.cn", dev: "activity.m.duibadev.com.cn",
test: "activity.m.duibatest.com.cn", test: "activity.m.duibatest.com.cn",
prod: "https://activity.m.duiba.com.cn" prod: "https://activity.m.duiba.com.cn"
}; };
const url = `${mapping[env]}/projectx/${projectId}/${ const url = `${mapping[env]}/projectx/${projectId}/${
tplType === 0 ? "index" : skinId type === "1" ? "index" : skinId
}.html`; }.html`;
copy(url); copy(url);
this.$message({ this.$message({
......
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
<el-dropdown-item command="refresh">刷新</el-dropdown-item> <el-dropdown-item command="refresh">刷新</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown>--> </el-dropdown>-->
<!--<iframe ref="proxyIframe" id="proxyIframe" <!--<div ref="proxyIframeWrapper" class="proxy-iframe-wrapper">
src="http://activity.m.duibadev.com.cn/projectx/p7c3b4fa4/index.html?__proxy_mode1__" <iframe ref="proxyIframe" v-if="showProxyIframe"
@load="onProxyIframeLoaded"></iframe>--> src="http://activity.m.duibadev.com.cn/projectx/p46967122/index.html?__proxy_mode__"
@load="onProxyIframeLoaded"></iframe>
</div>-->
<el-button style="opacity: 0.5" circle plain class="side-bar micro" icon="el-icon-refresh" :underline="false" <el-button style="opacity: 0.5" circle plain class="side-bar micro" icon="el-icon-refresh" :underline="false"
@click="reload"/> @click="reload"/>
</div> </div>
...@@ -28,6 +30,7 @@ ...@@ -28,6 +30,7 @@
ts: '', ts: '',
flag: false, flag: false,
proxyReady: true, proxyReady: true,
showProxyIframe: false,
} }
}, },
async mounted() { async mounted() {
...@@ -43,6 +46,18 @@ ...@@ -43,6 +46,18 @@
await db.open(); await db.open();
this.reload(); this.reload();
/*let url = 'http://activity.m.duibadev.com.cn/projectx/p46967122/index.html?__proxy_mode__';
let proxyWindow = this.proxyWindow = window.open(url,"myWindow",'width=1,height=1');
/!*proxyWindow.onload = function(){
console.log('proxyWindow loaded');
};*!/
setTimeout(()=>{
this.onProxyIframeLoaded();
//this.showProxyIframe = true;
//myWindow.close();
//this.$refs.proxyIframeWrapper.innerHTML = iframe;
},1000);*/
}, },
destroyed() { destroyed() {
document.removeEventListener("visibilitychange", this.onVisibilityChange); document.removeEventListener("visibilitychange", this.onVisibilityChange);
...@@ -117,6 +132,7 @@ ...@@ -117,6 +132,7 @@
doc.write(tpl); doc.write(tpl);
//win.proxy_window = this.$refs.proxyIframe.contentWindow; //win.proxy_window = this.$refs.proxyIframe.contentWindow;
//win.proxy_window = this.proxyWindow;
applyMock(projectID, win); applyMock(projectID, win);
}, },
...@@ -156,11 +172,17 @@ ...@@ -156,11 +172,17 @@
bottom: 10px; bottom: 10px;
} }
#proxyIframe { .proxy-iframe-wrapper{
/*display: none;*/ /*display: none;*/
position: absolute;
top: 0; top: 0;
width: 100px; position: absolute;
height: 100px; width: 200px;
height: 300px;
}
.proxy-iframe-wrapper iframe {
width: 100%;
height: 100%;
} }
</style> </style>
\ No newline at end of file
...@@ -6783,6 +6783,10 @@ promise-inflight@^1.0.1: ...@@ -6783,6 +6783,10 @@ promise-inflight@^1.0.1:
resolved "https://registry.npm.taobao.org/promise-inflight/download/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" resolved "https://registry.npm.taobao.org/promise-inflight/download/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
"props-compute@http://gitlab2.dui88.com/laoqifeng/props-compute.git":
version "1.0.0"
resolved "http://gitlab2.dui88.com/laoqifeng/props-compute.git#c676e9e12a06ccc3556101197171ee47e9ebdd3c"
proxy-addr@~2.0.5: proxy-addr@~2.0.5:
version "2.0.5" version "2.0.5"
resolved "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" resolved "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34"
......
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