Commit fe3cd4b3 authored by 夏彬's avatar 夏彬

添加微信jssdk

parent 5f5c415e
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
"video.js": "^5.11.9", "video.js": "^5.11.9",
"vue": "^2.0.8", "vue": "^2.0.8",
"vue-disabled": "^0.0.2", "vue-disabled": "^0.0.2",
"vue-router": "^2.5.3" "vue-router": "^2.5.3",
"weixin-js-sdk": "^1.2.0"
} }
} }
...@@ -6,6 +6,7 @@ var api = require('./api'); ...@@ -6,6 +6,7 @@ var api = require('./api');
module.exports = { module.exports = {
'init': function (title, desc, logo) { 'init': function (title, desc, logo) {
if (this.isWeixn()) { if (this.isWeixn()) {
var wx = require('weixin-js-sdk'); //引入sdk
var title = title; var title = title;
var link = window.location.href; var link = window.location.href;
var imgUrl = logo; var imgUrl = logo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment