index.vue 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="index" @click="_handleClick">
  3. <image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_bg.png" mode="widthFix" />
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. onLoad() {
  9. // #ifdef MP-WEIXIN
  10. //分享按钮
  11. uni.showShareMenu({
  12. withShareTicket: true,
  13. menus: ['shareAppMessage', 'shareTimeline'],
  14. });
  15. // #endif
  16. },
  17. onShareAppMessage(obj) {
  18. // 返回分享信息
  19. return {
  20. title: '999智控终端平台\n执业药师要上岸,免费题库来相伴!',
  21. path: '/pages/doctor/index',
  22. imageUrl: 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_share.png',
  23. };
  24. },
  25. methods: {
  26. _handleClick() {
  27. uni.navigateToMiniProgram({
  28. appId: 'wx37802f7af7be337e',
  29. });
  30. },
  31. },
  32. };
  33. </script>
  34. <style scoped lang="less">
  35. .index {
  36. height: 100vh;
  37. overflow: hidden;
  38. background-color: #f43022;
  39. image {
  40. width: 100vw;
  41. }
  42. }
  43. </style>