xianyu-js-sdk.vue
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--
* @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>