|
|
@ -14,9 +14,10 @@ import 'element-ui/lib/theme-chalk/index.css' |
|
|
import $ from 'jquery' |
|
|
import $ from 'jquery' |
|
|
//import Swiper from 'swiper/dist/js/swiper.js';
|
|
|
//import Swiper from 'swiper/dist/js/swiper.js';
|
|
|
import VueAwesomeSwiper from 'vue-awesome-swiper' |
|
|
import VueAwesomeSwiper from 'vue-awesome-swiper' |
|
|
import 'swiper/dist/css/swiper.css'//这里注意具体看使用的版本是否需要引入样式,以及具体位置。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//import 'swiper/dist/css/swiper.css'//这里注意具体看使用的版本是否需要引入样式,以及具体位置。
|
|
|
|
|
|
//import '@/assets/styles/swiper.css
|
|
|
|
|
|
//import wx from 'weixin-js-sdk'
|
|
|
|
|
|
//import axios from 'axios'
|
|
|
Vue.config.productionTip = false |
|
|
Vue.config.productionTip = false |
|
|
Vue.use(WechatPlugin) |
|
|
Vue.use(WechatPlugin) |
|
|
Vue.use(AjaxPlugin) |
|
|
Vue.use(AjaxPlugin) |
|
|
@ -28,10 +29,37 @@ Vue.use(VueAwesomeSwiper, /* { default global options } */) |
|
|
//Vue.use(VueAwesomeSwiper)
|
|
|
//Vue.use(VueAwesomeSwiper)
|
|
|
/* eslint-disable no-new */ |
|
|
/* eslint-disable no-new */ |
|
|
|
|
|
|
|
|
|
|
|
//Vue.prototype.wxShare = function(title="",dec="",links=""){
|
|
|
|
|
|
// var wxconfigApi = 'http://1hjz.3ncto.com.cn/mall/web/share/config';
|
|
|
|
|
|
// axios.get(wxconfigApi).then((res)=>{
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
// //配置微信参数
|
|
|
|
|
|
//// wx.config({
|
|
|
|
|
|
//// debug: false, // 开启调试模式,开发时可以开启
|
|
|
|
|
|
//// appId: Data.appid, // 必填,公众号的唯一标识 由接口返回
|
|
|
|
|
|
//// timestamp: Data.timestamp, // 必填,生成签名的时间戳 由接口返回
|
|
|
|
|
|
//// nonceStr: Data.nonceStr, // 必填,生成签名的随机串 由接口返回
|
|
|
|
|
|
//// signature: Data.signature, // 必填,签名 由接口返回
|
|
|
|
|
|
//// jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline']
|
|
|
|
|
|
//// })
|
|
|
|
|
|
////// 验证参数通过后
|
|
|
|
|
|
//// wx.ready(()=>{
|
|
|
|
|
|
////
|
|
|
|
|
|
//// })
|
|
|
|
|
|
//
|
|
|
|
|
|
// }).error((error)=>{
|
|
|
|
|
|
//
|
|
|
|
|
|
// })
|
|
|
|
|
|
//
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new Vue({ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var v = new Vue({ |
|
|
el: '#app', |
|
|
el: '#app', |
|
|
router, |
|
|
router, |
|
|
template: '<App/>', |
|
|
template: '<App/>', |
|
|
components: {App} |
|
|
components: {App} |
|
|
}) |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
//v.wxShare();
|