xianyu-js-sdk.vue 1.3 KB
<!--
 * @description:
 * @fileName: xianyu-js-sdk.vue
 * @author: huzhiming
 * @date: 2019-11-04 18:02:07
 * @后台人员:
 * @version: V1.0.5
 * @path: 页面访问路径及参数说明
!-->
<template>
  <div class="xianyu-js-sdk-wrap">
    <h2>我是一个测试页面</h2>
    <ul>
      <li @click="share()">分享</li>
    </ul>
    {{ props }}
  </div>
</template>

<script>
export default {
  // head() {
  //   return {
  //     title: '',
  //     meta: [{ hid: 'keywords', name: 'keywords', content: '' },{ hid: 'hid', name: 'description', content: '' }],
  //     // link: [{ rel: 'stylesheet', href: '' }],
  //     // script: [{ src: '' }]
  //   }
  // },
  props: {},
  data() {
    return {
      props: null
    }
  },
  created() {},
  mounted() {
    this.$nextTick(async ()=>{
      await this.$xianyu.setXianyuShare()
    })
    // this.props = window
    // console.log(window.AlipayJSBridgeReady);
    console.log(window.WindVane)
  },
  destroyed() {},
  methods: {
    share() {
      this.$xianyu.setXianyuShare()
    }
  },
  computed: {},
  watch: {},
  components: {}
};
</script>

/* 定义局部样式,添加外围容器,scss嵌套尽量不要超过三层,会影响查找器性能 */
<style rel='stylesheet/scss' lang='scss' scoped>
.xianyu-js-sdk-wrap {}
//@import "./style.scss";
</style>