main
xy 2 years ago
parent 5ec5c634eb
commit 71294d9a31

@ -1,8 +1,8 @@
const mode = 'devLocal'; //devLocal本地测试、devOnline线上测试、production生产环境 const mode = 'production'; //devLocal本地测试、devOnline线上测试、production生产环境
let ROOTPATH = ''; //域名 let ROOTPATH = ''; //域名
switch (mode) { switch (mode) {
case 'devLocal': case 'devLocal':
ROOTPATH = "//vr.langye.net" ROOTPATH = "//h5.ali251.langye.net"
break; break;
case 'devOnline': case 'devOnline':
ROOTPATH = "//vr.langye.net" ROOTPATH = "//vr.langye.net"

@ -1,5 +1,5 @@
{ {
"name" : "我是党史记录人-红色少年行 未成年人研学", "name" : "我是党史记录人——红色少年行 未成年人研学",
"appid" : "__UNI__2B9C5D3", "appid" : "__UNI__2B9C5D3",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
@ -72,6 +72,9 @@
"h5" : { "h5" : {
"router" : { "router" : {
"base" : "h5hssnx" "base" : "h5hssnx"
},
"devServer" : {
"disableHostCheck":true
} }
} }
} }

@ -45,7 +45,7 @@
}, },
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "\"我是党史记录人-红色少年行\"\n未成年人研学", "navigationBarTitleText": "\"我是党史记录人——红色少年行\"\n未成年人研学",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8" "backgroundColor": "#F8F8F8"
} }

@ -76,6 +76,7 @@
export default { export default {
data() { data() {
return { return {
isBkgLoad: false,
done: 0, done: 0,
isShowProgress: true, isShowProgress: true,
area: { area: {
@ -120,9 +121,14 @@ export default {
}, },
load () { load () {
this.isBkgLoad = true
this.area.w = this.$refs['image'].getBoundingClientRect().width this.area.w = this.$refs['image'].getBoundingClientRect().width
this.area.h = this.$refs['image'].getBoundingClientRect().height this.area.h = this.$refs['image'].getBoundingClientRect().height
this.scroll()
},
scroll () {
this.$nextTick(() => { this.$nextTick(() => {
let element = document.getElementById("img-container"); // let element = document.getElementById("img-container"); //
let scrollLeft = element.scrollWidth / 2 - element.offsetWidth / 2; // let scrollLeft = element.scrollWidth / 2 - element.offsetWidth / 2; //
@ -131,7 +137,6 @@ export default {
element.scrollTop = scrollTop; // element.scrollTop = scrollTop; //
}) })
}, },
async getPoints () { async getPoints () {
@ -187,11 +192,18 @@ export default {
} }
} }
}, },
mounted() { mounted () {
}, },
onLoad() { onLoad () {
this.getPoints() this.getPoints()
},
onShow () {
if (this.isBkgLoad) {
this.scroll();
}
} }
} }
</script> </script>

Loading…
Cancel
Save