Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1fde8566
authored
Jun 05, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'lt_yaohaoyou' into Development
# Conflicts: # view/15.js
parents
d9106a28
b55bc805
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
12 deletions
public/index.html
src/views/common/wxShare.vue
src/views/oscilloscope/Index.vue
view/11.js
view/14.js
view/16.js
view/17.js
view/index.html
public/index.html
View file @
1fde8566
...
...
@@ -24,7 +24,7 @@
<script
type=
"text/javascript"
>
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
</script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.
4
.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.
0
.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"<%= BASE_URL %>static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"<%= BASE_URL %>static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
...
...
src/views/common/wxShare.vue
View file @
1fde8566
...
...
@@ -73,14 +73,16 @@
type
:
"wxShare"
,
current_url
:
window
.
location
.
href
});
}
}
else
{
if
(
util
.
getCookie
(
"Yo4teW_uid"
))
{
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
current_url
:
window
.
location
.
href
});
}
}
},
methods
:
{
share
()
{
...
...
@@ -124,13 +126,13 @@
if
(
self
.
isSbq
){
self
.
shareObj
=
Object
.
assign
({},
self
.
shareObj
,{
success
:
function
(
res
){
alert
(
'垃圾微信模拟器
'
)
console
.
log
(
'分享成功
'
)
let
{
invitedId
}
=
self
.
$route
.
query
;
let
userId
=
util
.
getCookie
(
"Yo4teW_uid"
);
let
data
=
{
"share_num"
:
true
};
invitedId
&&
(
data
[
'invited_uid'
]
=
invitedId
);
userId
&&
(
data
[
'user_id '
]
=
userId
);
统计邀请的人数和页面访问统计
//
统计邀请的人数和页面访问统计
self
.
$store
.
dispatch
({
type
:
"oscilloscopeinvited"
,
data
:
{
...
...
src/views/oscilloscope/Index.vue
View file @
1fde8566
<
template
>
<section
class=
"oscilloscope"
>
<Header
:title=
"title"
:meaushow=
"meaushow"
:bgcolor=
"bgcolor"
></Header>
<wxShare
:link=
"shareUrl"
:isSbq=
"true"
></wxShare>
<wxShare
:link=
"shareUrl"
:isSbq=
"true"
:isLogin=
"false"
></wxShare>
<div
class=
"top-users"
>
<ul
:class=
"
{'animate-ul':animate}">
<li
v-for=
"item in bannerData"
>
{{
item
}}
</li>
...
...
view/11.js
View file @
1fde8566
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
\n\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n alert('垃圾微信模拟器');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId);\n 统计邀请的人数和页面访问统计;
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
else {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n console.log('分享成功');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId); //统计邀请的人数和页面访问统计\n
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"oscilloscope\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", {
attrs: { link: _vm.shareUrl, isSbq: true }
}),\n _c(\"div\", { staticClass: \"top-users\" }, [\n _c(\n \"ul\",\n { class: { \"animate-ul\": _vm.animate } },\n _vm._l(_vm.bannerData, function(item) {\n return _c(\"li\", [_vm._v(_vm._s(item))])\n }),\n 0\n )\n ]),\n _c(\"div\", { staticClass: \"oscilloscope-wrapper\" }, [\n _c(\"div\", { staticClass: \"banner-div\" }),\n _c(\"div\", { staticClass: \"prize-div\" }, [\n _c(\"h3\", { staticClass: \"title1 title\" }),\n _vm._m(0),\n _c(\"h3\", { staticClass: \"title2 title\" }),\n _c(\"div\", { staticClass: \"reward-div\" }, [\n _vm._m(1),\n _c(\"div\", { staticClass: \"reward-datas\" }, [\n _c(\n \"div\",\n { staticClass: \"reward-data clr\" },\n [\n _vm.prizeData.goodsNums ||\n _vm.prizeData.peopleNums ||\n _vm.prizeData.prize\n ? [\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.peopleNums) + \"人\")\n ]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.goodsNums) + \"台\")\n ]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.prize) + \"元京东卡\")\n ])\n ]\n : [\n _c(\"div\", { staticClass: \"no-data\" }, [\n _vm._v(\"您还没有相关奖品数据\")\n ])\n ]\n ],\n 2\n )\n ])\n ]),\n _c(\"h3\", { staticClass: \"title3 title\" }),\n _vm._m(2)\n ]),\n _c(\"div\", { staticClass: \"footer-btns clr\" }, [\n _c(\n \"div\",\n { staticClass: \"btn fl gm-btn\", on: { click: _vm.buyFun } },\n [_vm._v(\"立即购买\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"shareMask\",\n rawName: \"v-shareMask\",\n value: \"sbq\",\n expression: \"'sbq'\"\n }\n ],\n staticClass: \"btn fl fx-btn\"\n },\n [_vm._v(\"立即分享\")]\n )\n ])\n ])\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"prize-items-wrapper\" }, [\n _c(\"h3\", { staticClass: \"prize-title\" }, [\n _vm._v(\"好友成功购买ZDS1104台数\")\n ]),\n _c(\"div\", { staticClass: \"prize-items lbBox\" }, [\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/30.jpg */ \"./src/assets/images/oscilloscope/30.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"1台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/100.jpg */ \"./src/assets/images/oscilloscope/100.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"2-4台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/300.jpg */ \"./src/assets/images/oscilloscope/300.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"5-9台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/800.jpg */ \"./src/assets/images/oscilloscope/800.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"10台及以上\")])\n ])\n ])\n ])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"reward-div-header clr\" }, [\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"邀请好友数\")]),\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"好友购买台数\")]),\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"奖励\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"rule-datas\" }, [\n _c(\"p\", [_vm._v(\"1,活动时间:2020年6月15日-6月28日;\")]),\n _c(\"p\", [\n _vm._v(\"2,京东E卡将在活动结束\"),\n _c(\"span\", [_vm._v(\"7个\")]),\n _vm._v(\n \"工作日内分发,卡号卡密将直接发送到用户注册猎芯网账号【会员中心】-\"\n ),\n _c(\"span\", [_vm._v(\"【我的消息】\")]),\n _vm._v(\";\")\n ]),\n _c(\"p\", [\n _vm._v(\n \"3,在法律允许范围内,本活动最终解释权归猎芯网所有,详情可致电4008-755-881。\"\n )\n ])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/oscilloscope/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22dcf7c6fc-vue-loader-template%22%7D!./node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"oscilloscope\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", {
\n attrs: { link: _vm.shareUrl, isSbq: true, isLogin: false }\n
}),\n _c(\"div\", { staticClass: \"top-users\" }, [\n _c(\n \"ul\",\n { class: { \"animate-ul\": _vm.animate } },\n _vm._l(_vm.bannerData, function(item) {\n return _c(\"li\", [_vm._v(_vm._s(item))])\n }),\n 0\n )\n ]),\n _c(\"div\", { staticClass: \"oscilloscope-wrapper\" }, [\n _c(\"div\", { staticClass: \"banner-div\" }),\n _c(\"div\", { staticClass: \"prize-div\" }, [\n _c(\"h3\", { staticClass: \"title1 title\" }),\n _vm._m(0),\n _c(\"h3\", { staticClass: \"title2 title\" }),\n _c(\"div\", { staticClass: \"reward-div\" }, [\n _vm._m(1),\n _c(\"div\", { staticClass: \"reward-datas\" }, [\n _c(\n \"div\",\n { staticClass: \"reward-data clr\" },\n [\n _vm.prizeData.goodsNums ||\n _vm.prizeData.peopleNums ||\n _vm.prizeData.prize\n ? [\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.peopleNums) + \"人\")\n ]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.goodsNums) + \"台\")\n ]),\n _c(\"div\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(_vm.prizeData.prize) + \"元京东卡\")\n ])\n ]\n : [\n _c(\"div\", { staticClass: \"no-data\" }, [\n _vm._v(\"您还没有相关奖品数据\")\n ])\n ]\n ],\n 2\n )\n ])\n ]),\n _c(\"h3\", { staticClass: \"title3 title\" }),\n _vm._m(2)\n ]),\n _c(\"div\", { staticClass: \"footer-btns clr\" }, [\n _c(\n \"div\",\n { staticClass: \"btn fl gm-btn\", on: { click: _vm.buyFun } },\n [_vm._v(\"立即购买\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"shareMask\",\n rawName: \"v-shareMask\",\n value: \"sbq\",\n expression: \"'sbq'\"\n }\n ],\n staticClass: \"btn fl fx-btn\"\n },\n [_vm._v(\"立即分享\")]\n )\n ])\n ])\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"prize-items-wrapper\" }, [\n _c(\"h3\", { staticClass: \"prize-title\" }, [\n _vm._v(\"好友成功购买ZDS1104台数\")\n ]),\n _c(\"div\", { staticClass: \"prize-items lbBox\" }, [\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/30.jpg */ \"./src/assets/images/oscilloscope/30.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"1台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/100.jpg */ \"./src/assets/images/oscilloscope/100.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"2-4台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/300.jpg */ \"./src/assets/images/oscilloscope/300.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"5-9台\")])\n ])\n ]),\n _c(\"div\", { staticClass: \"prize-item lineBlock\" }, [\n _c(\"div\", { staticClass: \"item-top\" }, [\n _c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! ../../assets/images/oscilloscope/800.jpg */ \"./src/assets/images/oscilloscope/800.jpg\"),\n alt: \"\"\n }\n }),\n _c(\"span\", { staticClass: \"text\" }, [_vm._v(\"奖\")])\n ]),\n _c(\"div\", { staticClass: \"item-bottom\" }, [\n _c(\"span\", { staticClass: \"arrow-bottom\" }),\n _c(\"p\", { staticClass: \"num\" }, [_vm._v(\"10台及以上\")])\n ])\n ])\n ])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"reward-div-header clr\" }, [\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"邀请好友数\")]),\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"好友购买台数\")]),\n _c(\"div\", { staticClass: \"fl\" }, [_vm._v(\"奖励\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"rule-datas\" }, [\n _c(\"p\", [_vm._v(\"1,活动时间:2020年6月15日-6月28日;\")]),\n _c(\"p\", [\n _vm._v(\"2,京东E卡将在活动结束\"),\n _c(\"span\", [_vm._v(\"7个\")]),\n _vm._v(\n \"工作日内分发,卡号卡密将直接发送到用户注册猎芯网账号【会员中心】-\"\n ),\n _c(\"span\", [_vm._v(\"【我的消息】\")]),\n _vm._v(\";\")\n ]),\n _c(\"p\", [\n _vm._v(\n \"3,在法律允许范围内,本活动最终解释权归猎芯网所有,详情可致电4008-755-881。\"\n )\n ])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/oscilloscope/Index.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22dcf7c6fc-vue-loader-template%22%7D!./node_modules/_vue-loader@15.9.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/14.js
View file @
1fde8566
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
\n\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n alert('垃圾微信模拟器');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId);\n 统计邀请的人数和页面访问统计;
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
else {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n console.log('分享成功');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId); //统计邀请的人数和页面访问统计\n
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/16.js
View file @
1fde8566
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
\n\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n alert('垃圾微信模拟器');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId);\n 统计邀请的人数和页面访问统计;
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
else {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n console.log('分享成功');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId); //统计邀请的人数和页面访问统计\n
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/17.js
View file @
1fde8566
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
\n\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n alert('垃圾微信模拟器');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId);\n 统计邀请的人数和页面访问统计;
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.11@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.11@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.10.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.11@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.4.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n isLogin: {\n type: Boolean,\n default: true\n },\n isSbq: {\n type: Boolean,\n default: false\n },\n url: {\n type: String,\n default: window.location.href\n },\n title: {\n type: String,\n default: '好物分享给你,帮我助力,我们一起免费拿样品'\n },\n desc: {\n type: String,\n default: '在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'\n },\n link: {\n type: String,\n default: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")\n },\n imgUrl: {\n type: String,\n default: 'http://img.ichunt.com/images/ichunt/self_sample/apply.png'\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: this.title,\n // 分享标题\n desc: this.desc,\n // 分享描述\n link: this.link,\n // 分享链接\n imgUrl: this.imgUrl,\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_8__[\"mapState\"])({\n wxShareInfo: function wxShareInfo(state) {\n return state.common.wxShareInfo;\n },\n wxShareState: function wxShareState(state) {\n return state.common.wxShareState;\n }\n })),\n watch: {\n wxShareState: function wxShareState(val) {\n if (val) {\n this.share();\n }\n }\n },\n created: function created() {\n //无需登录的情况下\n if (!this.isLogin) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }
else {\n if (_util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.$store.dispatch({\n type: \"wxShare\",\n current_url: window.location.href\n });\n }\n }\n },\n methods: {\n share: function share() {\n var self = this;\n\n try {\n setShareInfo({\n title: self.shareObj.title,\n // 分享标题\n summary: self.shareObj.title,\n // 分享内容\n pic: self.shareObj.imgUrl,\n // 分享图片\n url: self.shareObj.link,\n // 分享链接\n WXconfig: {\n swapTitleInWX: true,\n // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)\n appId: self.wxShareInfo.appId,\n // 公众号的唯一标识\n timestamp: self.wxShareInfo.timestamp,\n // 生成签名的时间戳\n nonceStr: self.wxShareInfo.nonceStr,\n // 生成签名的随机串\n signature: self.wxShareInfo.signature // 签名\n\n }\n });\n } catch (e) {}\n\n wx.config({\n debug: false,\n appId: self.wxShareInfo.appId,\n timestamp: self.wxShareInfo.timestamp,\n nonceStr: self.wxShareInfo.nonceStr,\n signature: self.wxShareInfo.signature,\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'updateAppMessageShareData', 'updateTimelineShareData'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n if (self.isSbq) {\n self.shareObj = Object.assign({}, self.shareObj, {\n success: function success(res) {\n console.log('分享成功');\n var invitedId = self.$route.query.invitedId;\n var userId = _util_index__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getCookie(\"Yo4teW_uid\");\n var data = {\n \"share_num\": true\n };\n invitedId && (data['invited_uid'] = invitedId);\n userId && (data['user_id '] = userId); //统计邀请的人数和页面访问统计\n
\n self.$store.dispatch({\n type: \"oscilloscopeinvited\",\n data: _objectSpread({}, data)\n });\n }\n });\n }\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n if (wx.onMenuShareQQ) {\n wx.onMenuShareQQ(self.shareObj);\n } else {\n wx.updateAppMessageShareData(self.shareObj);\n }\n\n wx.updateTimelineShareData(self.shareObj);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/wxShare.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/index.html
View file @
1fde8566
...
...
@@ -24,7 +24,7 @@
<script
type=
"text/javascript"
>
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
</script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.
4
.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.
0
.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//szh5static.ichunt.com/static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//szh5static.ichunt.com/static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment