<template>
  <view class="index" @click="_handleClick">
    <image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_bg.png" mode="widthFix" />
  </view>
</template>

<script>
export default {
  onLoad() {
    // #ifdef MP-WEIXIN
    //分享按钮
    uni.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline'],
    });
    // #endif
  },
  onShareAppMessage(obj) {
    // 返回分享信息
    return {
      title: '999智控终端平台\n执业药师要上岸，免费题库来相伴！',
      path: '/pages/doctor/index',
      imageUrl: 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/index/doctor_share.png',
    };
  },
  methods: {
    _handleClick() {
      uni.navigateToMiniProgram({
        appId: 'wx37802f7af7be337e',
      });
    },
  },
};
</script>

<style scoped lang="less">
.index {
  height: 100vh;
  overflow: hidden;
  background-color: #f43022;
  image {
    width: 100vw;
  }
}
</style>
