main
xy 2 years ago
parent 1aab99cf26
commit 0398d9a61e

@ -8,7 +8,7 @@
let temp = decodeURIComponent((new RegExp('[?|&]' + 'code' + '=' + '([^&;]+?)(&|#|;|$)')
.exec(link) || [, ''])[1].replace(/\+/g, '%20')) || null
let lifeData = uni.getStorageSync('lifeData')
if (!lifeData.vuex_token || !lifeData.vuex_user) {
if (!lifeData.vuex_token) {
this.$u.api.login({
code: temp
}).then(res => {
@ -18,7 +18,7 @@
this.$u.vuex('vuex_user', res)
let url = 'https://vr.langye.net/h5hssnx'
let url = location.href.split('#')[0]
this.$u.api.share({
url
}).then(res => {
@ -33,33 +33,64 @@
jwx.ready(() => {
jwx.updateAppMessageShareData({
title: '我是党史记录人——红色少年行 未成年人研学', //
desc: '我是党史记录人——红色少年行 未成年人研学',
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
success: () => {
console.log('updateAppMessageShareData-success')
},
});
jwx.updateTimelineShareData({
title: '我是党史记录人——红色少年行 未成年人研学', //
desc: '我是党史记录人——红色少年行 未成年人研学',
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
});
jwx.onMenuShareAppMessage({
title: '我是党史记录人——红色少年行 未成年人研学', //
desc: '我是党史记录人——红色少年行 未成年人研学',
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
});
jwx.onMenuShareTimeline({
title: '我是党史记录人——红色少年行 未成年人研学', //
desc: '我是党史记录人——红色少年行 未成年人研学',
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
success: () => {
console.log('updateTimelineShareData-success')
}
});
})
})
})
})
}
} else {
this.$u.api.user().then(res => {
this.$u.vuex('vuex_user', res)
let url = location.href.split('#')[0]
this.$u.api.share({
url
}).then(res => {
jwx.config({
debug: false, // , api alert pc log pc
appId: res.appId,
jsApiList: res.jsApiList,
nonceStr: res.nonceStr,
signature: res.signature,
timestamp: res.timestamp,
})
jwx.ready(() => {
jwx.updateAppMessageShareData({
title: '我是党史记录人——红色少年行 未成年人研学', //
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
success: () => {
console.log('updateAppMessageShareData-success')
},
});
jwx.updateTimelineShareData({
title: '我是党史记录人——红色少年行 未成年人研学', //
link: url, // ,JS
imgUrl: 'https://vr.langye.net/res/share-dangshi-img.jpg', //
success: () => {
console.log('updateTimelineShareData-success')
}
});
})
})
})
}
} else {
this.$u.api.getAppId().then(res => {
let redirect = encodeURIComponent(link.replace(/#\//, ""))
@ -82,4 +113,4 @@
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
</style>
</style>

@ -1,12 +1,12 @@
<template>
<div class="body">
<div class="bkg">
<u-image mode="aspectFill" height="100vh" width="100vw" :src="require('@/static/answer-bkg.png')"></u-image>
<u-image :lazy-load="false" :show-loading="false" mode="aspectFill" height="100vh" width="100vw" src="//cdn.langye.net/h5hssnx/answer-bkg.png"></u-image>
</div>
<div class="container">
<div class="container__bkg">
<u-image width="100%" height="100%" mode="scaleToFill" :src="require('@/static/answer-container-bkg.png')"></u-image>
<u-image :lazy-load="false" :show-loading="false" width="100%" height="100%" mode="scaleToFill" src="//cdn.langye.net/h5hssnx/answer-container-bkg.png"></u-image>
</div>
<div class="title">
{{ containerTitle(now+1) }}
@ -34,7 +34,7 @@
<div :style="{ 'display': progress !== 2 ? 'none' : '' }" class="answers correct" v-show="progress === 2">
<template v-if="isCorrect">
<div class="answers__img">
<u-image mode="widthFix" :width="194" :src="require('@/static/correct.png')"></u-image>
<u-image :show-loading="false" mode="widthFix" :width="194" src="//cdn.langye.net/h5hssnx/correct.png"></u-image>
</div>
<div class="answers__text">
@ -43,7 +43,7 @@
</template>
<template v-else>
<div class="answers__img">
<u-image mode="widthFix" :width="194" :src="require('@/static/error.png')"></u-image>
<u-image :show-loading="false" mode="widthFix" :width="194" src="//cdn.langye.net/h5hssnx/error.png"></u-image>
</div>
<div class="answers__text">
@ -52,7 +52,7 @@
</template>
<div class="answers__btn" @click="$u.throttle(next)">
<u-image mode="widthFix" :width="381" :src="require('@/static/next-btn.png')"></u-image>
<u-image :show-loading="false" mode="widthFix" :width="381" src="//cdn.langye.net/h5hssnx/next-btn.png"></u-image>
</div>
</div>
</transition>

@ -1,9 +1,8 @@
<template>
<div class="body" id="signed">
<u-image :show-loading="false" class="bkg" width="100vw" height="100%" src="//cdn.langye.net/h5hssnx/certificate-bkg.png"></u-image>
<u-image :show-loading="false" class="city" mode="widthFix" width="100vw" src="//cdn.langye.net/h5hssnx/city.png"></u-image>
<u-image :show-loading="false" class="people" mode="widthFix" :width="278" src="//cdn.langye.net/h5hssnx/people.png"></u-image>
<u-image mode="widthFix" width="100vw" class="piaodai" :src="require('@/static/piaodai.png')"></u-image>
<u-image :lazy-load="false" :show-loading="false" class="bkg" width="100vw" height="100%" src="//cdn.langye.net/h5hssnx/certificate-bkg.png"></u-image>
<u-image :lazy-load="false" :show-loading="false" class="city" mode="widthFix" width="100vw" src="//cdn.langye.net/h5hssnx/city.png"></u-image>
<u-image :lazy-load="false" :show-loading="false" mode="widthFix" width="100vw" class="piaodai" :src="require('@/static/piaodai.png')"></u-image>
<u-image id="share-img" v-show="!isHidden" class="share-img" mode="scaleToFill" :width="99" :height="99" :src="require('@/static/share.png')" @click="$u.throttle(share)"> mode=</u-image>
<div class="content">
<u-image :show-loading="false" style="display:flex;align-items: center;margin: auto;" mode="widthFix" :width="335" src="//cdn.langye.net/h5hssnx/certificate-word.png"></u-image>
@ -25,7 +24,7 @@
</div>
</div>
<u-image class="qrcode" :src="require('@/static/qrcode.png')" width="220" height="220" border-radius="10"></u-image>
<u-image :lazy-load="false" :show-loading="false" class="qrcode" :src="require('@/static/qrcode.png')" width="220" height="220" border-radius="10"></u-image>
</div>
<div class="footer">

@ -1,7 +1,7 @@
<template>
<div style="background: #FAEDCD;">
<div class="top">
<u-image :show-loading="false" mode="scaleToFill" width="100%" height="100%" src="//cdn.langye.net/h5hssnx/map-title-bkg.png"></u-image>
<u-image :show-loading="false" :lazy-load="false" mode="scaleToFill" width="100%" height="100%" src="//cdn.langye.net/h5hssnx/map-title-bkg.png"></u-image>
</div>
<div class="container" id="img-container">
<img ref="image"

@ -24,7 +24,6 @@
<body>
<div class="mainbox">
<div class="header">
<img src="skin/default/images/headwords.png">
</div>
<!-- VR看展 -->
<div class="common-title"><img src="skin/default/images/title_vr.png"></div>

@ -121,7 +121,7 @@ textarea::-webkit-input-placeholder{ color:#aaa; }
text-align: center;
padding-top: 4rem;
height: 12.3rem;
background-image: url(../images/headbg.jpg);
background-image: url(https://cdn.langye.net/h5hssnx/map-title-bkg.png);
background-repeat: no-repeat;
background-position: center top;
background-size: 100% auto;
@ -404,7 +404,7 @@ textarea::-webkit-input-placeholder{ color:#aaa; }
-moz-box-sizing: border-box;
}
.answer-start p{
color:#fbf2dd;/*
color:#fbf2dd;/*
line-height: 12px; */
font-size:14px;
zoom: .9;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Loading…
Cancel
Save