appDownload.vue 548 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view>
  3. <image v-if="os!='ios'" class="img" src="https://cdn.his.cdwjyyh.com/minapp/course/android_app.jpg" mode="widthFix"></image>
  4. <image v-if="os!='android'" class="img" src="https://cdn.his.cdwjyyh.com/minapp/course/ios_app.jpg" mode="widthFix"></image>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. os: ''
  12. }
  13. },
  14. onLoad() {
  15. uni.getSystemInfo({
  16. success: (res)=>{
  17. this.os = res.osName
  18. }
  19. });
  20. }
  21. }
  22. </script>
  23. <style scoped>
  24. .img {
  25. width: 100%;
  26. display: block;
  27. }
  28. </style>