Browse Source

更新字段读取

master
Weller 1 year ago
parent
commit
0db66c0bfe
1 changed files with 14 additions and 13 deletions
  1. +14
    -13
      src/components/HomeStyle.vue

+ 14
- 13
src/components/HomeStyle.vue View File

@@ -17,6 +17,7 @@
<div class="homeTextStyle"> <div class="homeTextStyle">
<h1 class="display-1" style="font-weight: bold;margin-top: 8px;">{{ mod.mainText }}</h1> <h1 class="display-1" style="font-weight: bold;margin-top: 8px;">{{ mod.mainText }}</h1>
<h1 style="margin-top: 8px;margin-bottom: 8px;">{{ mod.subText }}</h1> <h1 style="margin-top: 8px;margin-bottom: 8px;">{{ mod.subText }}</h1>
<div style="color: #999999;">{{ mod.content }}</div>
<div class="text-contentButton-flex row"> <div class="text-contentButton-flex row">
<div class="col-sm-5" style="margin-top: 10px;"> <div class="col-sm-5" style="margin-top: 10px;">
<div class=" button-box chang-button top15" :style="getHoversColor" <div class=" button-box chang-button top15" :style="getHoversColor"
@@ -60,15 +61,15 @@
</div> </div>
</div> </div>
</div> </div>
<DefaultBowser ref="bowser"/> <DefaultBowser ref="bowser"/>
</div> </div>
</template> </template>
<script> <script>
import QrcodeVue from 'qrcode.vue'
import DefaultBowser from './default-browser.vue'
import QrcodeVue from 'qrcode.vue'
import DefaultBowser from './default-browser.vue'
import {isWxBrowser} from '../utlis/browser.js' import {isWxBrowser} from '../utlis/browser.js'
export default { export default {
@@ -124,7 +125,7 @@
console.log(document.URL) console.log(document.URL)
}, },
components: { components: {
QrcodeVue,
QrcodeVue,
DefaultBowser DefaultBowser
}, },
@@ -137,14 +138,14 @@
}, },
methods: { methods: {
downloadLink: function(link) {
console.log(link, isWxBrowser())
if (isWxBrowser() && link.endsWith('.apk')) {
console.log('请使用默认浏览器打开')
this.$refs.bowser.show()
} else {
window.open(link);
downloadLink: function(link) {
console.log(link, isWxBrowser())
if (isWxBrowser() && link.endsWith('.apk')) {
console.log('请使用默认浏览器打开')
this.$refs.bowser.show()
} else {
window.open(link);
} }
}, },
@@ -310,4 +311,4 @@
opacity: 1; opacity: 1;
} }
} }
</style>
</style>

Loading…
Cancel
Save