|
@@ -46,48 +46,42 @@
|
|
|
<div class="share-tips">
|
|
|
<div class="tips-left">
|
|
|
<div class="tips-logo"></div>
|
|
|
- <div class="tips-title">运动智能鞋</div>
|
|
|
- <div class="sub-tips">这是一段产品sloagn</div>
|
|
|
+ <h3 class="tips-title">趣动</h3>
|
|
|
+ <p class="sub-tips">让运动变得有趣</p>
|
|
|
</div>
|
|
|
<div class="tips-qrcode-container">
|
|
|
<div class="qrcode-item qrcode-item-1">
|
|
|
- <div class="qrcode-img">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="qrcode-title">安卓下载</div>
|
|
|
- </div>
|
|
|
- <div class="qrcode-item">
|
|
|
<div class="qrcode-img"></div>
|
|
|
- <div class="qrcode-title">IOS下载</div>
|
|
|
+ <div class="qrcode-title">扫一扫下载</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, computed } from "vue";
|
|
|
-import { initShare } from "./share";
|
|
|
-import { getUrlParameter } from "@/utils/index";
|
|
|
+import { defineComponent, computed } from 'vue'
|
|
|
+import { initShare } from './share'
|
|
|
+import { getUrlParameter } from '@/utils/index'
|
|
|
export default defineComponent({
|
|
|
setup() {
|
|
|
// 0 是步行 1是骑行 2是跑
|
|
|
- const words = ["步行", "骑行", "跑步"];
|
|
|
- const unit = [0.8214, 0.6142, 1.036];
|
|
|
+ const words = ['步行', '骑行', '跑步']
|
|
|
+ const unit = [0.8214, 0.6142, 1.036]
|
|
|
|
|
|
- const randomNumber = computed(() => parseInt(`${Math.random() * 3}`));
|
|
|
+ const randomNumber = computed(() => parseInt(`${Math.random() * 3}`))
|
|
|
|
|
|
const currentBg = computed(() => {
|
|
|
- return "bg-" + randomNumber.value;
|
|
|
- });
|
|
|
+ return 'bg-' + randomNumber.value
|
|
|
+ })
|
|
|
|
|
|
- const hash = getUrlParameter(window.location.href, "h");
|
|
|
+ const hash = getUrlParameter(window.location.href, 'h')
|
|
|
const { user, consume, duration, defeat, period, createdAt } = initShare(
|
|
|
hash
|
|
|
- );
|
|
|
+ )
|
|
|
|
|
|
const kilometer = computed(() =>
|
|
|
Math.floor(consume.value / 55 / unit[randomNumber.value])
|
|
|
- );
|
|
|
+ )
|
|
|
return {
|
|
|
currentBg,
|
|
|
user,
|
|
@@ -98,10 +92,10 @@ export default defineComponent({
|
|
|
createdAt,
|
|
|
words,
|
|
|
randomNumber,
|
|
|
- kilometer,
|
|
|
- };
|
|
|
- },
|
|
|
-});
|
|
|
+ kilometer
|
|
|
+ }
|
|
|
+ }
|
|
|
+})
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.ignore-share-page {
|
|
@@ -231,8 +225,8 @@ export default defineComponent({
|
|
|
.share-bottom-title {
|
|
|
margin: 0 auto;
|
|
|
// width: 80%;
|
|
|
- width:254px;
|
|
|
- img{
|
|
|
+ width: 254px;
|
|
|
+ img {
|
|
|
max-width: 100%;
|
|
|
max-height: 100%;
|
|
|
}
|
|
@@ -276,12 +270,15 @@ export default defineComponent({
|
|
|
|
|
|
.tips-left {
|
|
|
margin-top: 19px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
.tips-logo {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
- background: #ffc400;
|
|
|
+ background-image: url(~@/assets/sport-share-link/logo_img.png);
|
|
|
+ background-size: cover;
|
|
|
border-radius: 5px;
|
|
|
+ margin: 0 auto;
|
|
|
}
|
|
|
.tips-title {
|
|
|
font-size: 16px;
|