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
9745a6ad
authored
Nov 13, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
a3d74831
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
84 additions
and
37 deletions
src/store/modules/special/index.js
src/views/common/wxShare.vue
src/views/risk/Success.vue
view/14.js
view/16.js
view/19.js
view/4.js
view/app.js
src/store/modules/special/index.js
View file @
9745a6ad
...
@@ -51,7 +51,7 @@ const actions = {
...
@@ -51,7 +51,7 @@ const actions = {
setTimeout
(
function
()
{
setTimeout
(
function
()
{
toast
.
clear
();
toast
.
clear
();
if
(
payload
.
from
==
'risk'
)
{
if
(
payload
.
from
==
'risk'
)
{
window
.
location
.
href
=
"/h5/view/#/risksuccess
"
;
window
.
location
.
href
=
"/h5/view/#/risksuccess
?account="
+
payload
.
account
;
}
else
{
}
else
{
window
.
location
.
href
=
"/"
;
window
.
location
.
href
=
"/"
;
}
}
...
...
src/views/common/wxShare.vue
View file @
9745a6ad
...
@@ -5,82 +5,100 @@
...
@@ -5,82 +5,100 @@
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
util
from
"../../util/index"
import
util
from
"../../util/index"
let
wxjs
=
require
(
'weixin-js-sdk'
);
let
wxjs
=
require
(
'weixin-js-sdk'
);
export
default
{
export
default
{
name
:
'wxShare'
,
name
:
'wxShare'
,
props
:
{
props
:
{
url
:
{
url
:
{
type
:
String
,
type
:
String
,
default
:
window
.
location
.
href
default
:
window
.
location
.
href
},
title
:
{
type
:
String
,
default
:
'好物分享给你,帮我助力,我们一起免费拿样品'
},
desc
:
{
type
:
String
,
default
:
'在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品'
},
link
:
{
type
:
String
,
default
:
window
.
location
.
origin
+
"/v3/samplereg?uid="
+
util
.
getCookie
(
"Yo4teW_uid"
)
},
imgUrl
:
{
type
:
String
,
default
:
'http://img.ichunt.com/images/ichunt/self_sample/apply.png'
}
}
},
},
data
()
{
data
()
{
return
{
return
{
shareObj
:
{
shareObj
:
{
title
:
"好物分享给你,帮我助力,我们一起免费拿样品"
,
// 分享标题
title
:
this
.
title
,
// 分享标题
desc
:
"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"
,
// 分享描述
desc
:
this
.
desc
,
// 分享描述
link
:
window
.
location
.
origin
+
"/v3/samplereg?uid="
+
util
.
getCookie
(
"Yo4teW_uid"
)
,
// 分享链接
link
:
this
.
link
,
// 分享链接
imgUrl
:
"http://img.ichunt.com/images/ichunt/self_sample/apply.png"
,
// 分享图标
imgUrl
:
this
.
imgUrl
,
// 分享图标
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
},
},
error
:
function
()
{
error
:
function
()
{
}
}
}
}
}
}
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
wxShareInfo
:
state
=>
state
.
common
.
wxShareInfo
,
wxShareInfo
:
state
=>
state
.
common
.
wxShareInfo
,
wxShareState
:
state
=>
state
.
common
.
wxShareState
,
wxShareState
:
state
=>
state
.
common
.
wxShareState
,
}),
})
},
},
watch
:
{
watch
:
{
wxShareState
(
val
)
{
wxShareState
(
val
)
{
if
(
val
&&
util
.
getCookie
(
"Yo4teW_uid"
))
{
if
(
val
&&
util
.
getCookie
(
"Yo4teW_uid"
))
{
this
.
share
();
this
.
share
();
}
}
}
}
},
},
created
()
{
created
()
{
if
(
util
.
getCookie
(
"Yo4teW_uid"
))
{
if
(
util
.
getCookie
(
"Yo4teW_uid"
))
{
this
.
$store
.
dispatch
({
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
type
:
"wxShare"
,
current_url
:
window
.
location
.
href
current_url
:
window
.
location
.
href
});
});
}
}
},
},
methods
:
{
methods
:
{
share
(){
share
()
{
var
self
=
this
;
var
self
=
this
;
// 微信配置
wx
.
config
({
wx
.
config
({
debug
:
false
,
debug
:
false
,
appId
:
self
.
wxShareInfo
.
appId
,
appId
:
self
.
wxShareInfo
.
appId
,
timestamp
:
self
.
wxShareInfo
.
timestamp
,
timestamp
:
self
.
wxShareInfo
.
timestamp
,
nonceStr
:
self
.
wxShareInfo
.
nonceStr
,
nonceStr
:
self
.
wxShareInfo
.
nonceStr
,
signature
:
self
.
wxShareInfo
.
signature
,
signature
:
self
.
wxShareInfo
.
signature
,
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'onMenuShareQQ'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
]
// 功能列表,我们要使用JS-SDK的什么功能
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'onMenuShareQQ'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
]
});
});
// config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。
wx
.
ready
(
function
()
{
wx
.
ready
(
function
(){
wx
.
checkJsApi
({
wx
.
checkJsApi
({
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'onMenuShareQQ'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
],
//
需要检测的JS接口列表,所有JS接口列表见附录2,
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'onMenuShareQQ'
,
'onMenuShareWeibo'
,
'onMenuShareQZone'
],
//
需要检测的JS接口列表,所有JS接口列表见附录2,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
res
);
console
.
log
(
res
);
// 以键值对的形式返回,可用的api值true,不可用为false
// 如:{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
}
}
});
});
// 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口
// 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口
wx
.
onMenuShareTimeline
(
self
.
shareObj
);
wx
.
onMenuShareTimeline
(
self
.
shareObj
);
// 获取“分享给朋友”按钮点击状态及自定义分享内容接口
// 获取“分享给朋友”按钮点击状态及自定义分享内容接口
wx
.
onMenuShareAppMessage
(
self
.
shareObj
);
wx
.
onMenuShareAppMessage
(
self
.
shareObj
);
//获取“分享到QQ”按钮点击状态及自定义分享内容接口
//获取“分享到QQ”按钮点击状态及自定义分享内容接口
wx
.
onMenuShareQQ
(
self
.
shareObj
);
wx
.
onMenuShareQQ
(
self
.
shareObj
);
//获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口
//获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口
wx
.
onMenuShareWeibo
(
self
.
shareObj
);
wx
.
onMenuShareWeibo
(
self
.
shareObj
);
//获取“分享到QQ空间”按钮点击状态及自定义分享内容接口
//获取“分享到QQ空间”按钮点击状态及自定义分享内容接口
wx
.
onMenuShareQZone
(
self
.
shareObj
);
wx
.
onMenuShareQZone
(
self
.
shareObj
);
});
});
...
...
src/views/risk/Success.vue
View file @
9745a6ad
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"shade"
v-if=
"shade"
@
click=
"shade=false"
>
<div
class=
"shade"
v-if=
"shade"
@
click=
"shade=false"
>
<b
class=
"im"
></b>
<b
class=
"im"
></b>
</div>
</div>
<wxShare
:
url=
"share
Url"
></wxShare>
<wxShare
:
link=
"link"
:title=
"title"
:desc=
"desc"
:imgUrl=
"img
Url"
></wxShare>
</section>
</section>
</
template
>
</
template
>
...
@@ -35,18 +35,23 @@
...
@@ -35,18 +35,23 @@
level
:
''
,
level
:
''
,
quota
:
''
,
quota
:
''
,
text
:
[],
text
:
[],
shareUrl
:
''
link
:
''
,
title
:
'邀你偷偷看看你的公司评分'
,
desc
:
''
,
imgUrl
:
''
,
account
:
''
}
}
},
},
created
()
{
created
()
{
var
num
=
Math
.
floor
(
Math
.
random
()
*
4
);
var
num
=
Math
.
floor
(
Math
.
random
()
*
4
);
this
.
account
=
this
.
$route
.
query
.
account
;
this
.
getData
(
num
);
this
.
getData
(
num
);
},
},
methods
:
{
methods
:
{
getData
:
function
(
num
)
{
getData
:
function
(
num
)
{
var
level
=
[
'SSS'
,
'SS'
,
'S'
,
'A+'
];
var
level
=
[
'SSS'
,
'SS'
,
'S'
,
'A+'
];
var
quota
=
[
'500'
,
'300'
,
'100'
,
'20'
];
var
quota
=
[
'500'
,
'300'
,
'100'
,
'20'
];
var
desc
=
[
'的公司综合评级SSS,“老板说赚多少亿无所谓,做人重要是开心!'
,
'的公司综合评级SS,“问:‘你的超能力是什么?答:‘Rich’”'
,
'的公司综合评级S,“先定一个能达到的小目标,比如我先赚他一个亿”'
,
'的公司综合评级A+,“别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!'
]
var
text
=
[
var
text
=
[
[
[
{
{
...
@@ -141,6 +146,7 @@
...
@@ -141,6 +146,7 @@
this
.
text
=
text
[
num
];
this
.
text
=
text
[
num
];
this
.
level
=
level
[
num
];
this
.
level
=
level
[
num
];
this
.
quota
=
quota
[
num
];
this
.
quota
=
quota
[
num
];
this
.
desc
=
this
.
account
+
desc
[
num
];
},
},
share
:
function
()
{
share
:
function
()
{
this
.
shade
=
true
;
this
.
shade
=
true
;
...
...
view/14.js
View file @
9745a6ad
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n url: {\n type: String,\n default: window.location.href\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: \"好物分享给你,帮我助力,我们一起免费拿样品\",\n // 分享标题\n desc: \"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品\",\n // 分享描述\n link: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\"),\n // 分享链接\n imgUrl: \"http://img.ichunt.com/images/ichunt/self_sample/apply.png\",\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_7__[\"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 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'] // 功能列表,我们要使用JS-SDK的什么功能\n\n }); // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。\n\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n // 需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res); // 以键值对的形式返回,可用的api值true,不可用为false\n // 如:{\"checkResult\":{\"chooseImage\":true},\"errMsg\":\"checkJsApi:ok\"}
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\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_8__[\"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_7__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_8__[\"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 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']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risk-success',\n data: function data() {\n return {\n shade: false,\n level: '',\n quota: '',\n text: [],\n
shareUrl: ''\n };\n },\n created: function created() {\n var num = Math.floor(Math.random() * 4);\n this.getData(num);\n },\n methods: {\n getData: function getData(num) {\n var level = ['SSS', 'SS', 'S', 'A+'];\n var quota = ['500', '300', '100', '20'];\n var text = [[{\n 'text_1': '巨无霸型公司',\n 'text_2': '订单接到手软,数钱数到抽筋。真不是我服务不努力,谁叫我客户多只能雨露均沾呢!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '财大气粗本粗',\n 'text_2': '此路是我开,此树是我栽,要想从此过,留下买路财!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '一诺千金就是你',\n 'text_2': '靠兄弟行走江湖,靠口碑扬名立万说的就是我!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '蒸蒸日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '传说型大公司',\n 'text_2': '他人贪婪我恐惧,他人恐惧我贪婪!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '豪气满满',\n 'text_2': '你的超能力是什么?”答:“Rich!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '颂声遍野就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '日高日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '大公司就是你,你就是大公司',\n 'text_2': '稳扎稳打,一步一个脚印!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '人间难寻的真土豪',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '童叟无欺就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '欣欣向荣很开心',\n 'text_2': '先定一个能达到的小目标,比如我先赚他一个亿!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '史诗型巨巨',\n 'text_2': '客户虐我千百遍,我待客户如初恋!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '·真· 腰缠万贯',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '言而有信就是你',\n 'text_2': '别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '势如破竹很开心',\n 'text_2': '我是一只潜力股,不管你信不信,反正我是不信的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }]];\n this.text = text[num];\n this.level = level[num];\n this.quota = quota
[num];\n },\n share: function share() {\n this.shade = true;\n }\n },\n components: {\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Success.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'risk-success',\n data: function data() {\n return {\n shade: false,\n level: '',\n quota: '',\n text: [],\n
link: '',\n title: '邀你偷偷看看你的公司评分',\n desc: '',\n imgUrl: '',\n account: ''\n };\n },\n created: function created() {\n var num = Math.floor(Math.random() * 4);\n this.account = this.$route.query.account;\n this.getData(num);\n },\n methods: {\n getData: function getData(num) {\n var level = ['SSS', 'SS', 'S', 'A+'];\n var quota = ['500', '300', '100', '20'];\n var desc = ['的公司综合评级SSS,“老板说赚多少亿无所谓,做人重要是开心!', '的公司综合评级SS,“问:‘你的超能力是什么?答:‘Rich’”', '的公司综合评级S,“先定一个能达到的小目标,比如我先赚他一个亿”', '的公司综合评级A+,“别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!'];\n var text = [[{\n 'text_1': '巨无霸型公司',\n 'text_2': '订单接到手软,数钱数到抽筋。真不是我服务不努力,谁叫我客户多只能雨露均沾呢!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '财大气粗本粗',\n 'text_2': '此路是我开,此树是我栽,要想从此过,留下买路财!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '一诺千金就是你',\n 'text_2': '靠兄弟行走江湖,靠口碑扬名立万说的就是我!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '蒸蒸日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '传说型大公司',\n 'text_2': '他人贪婪我恐惧,他人恐惧我贪婪!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '豪气满满',\n 'text_2': '你的超能力是什么?”答:“Rich!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '颂声遍野就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '日高日上很开心',\n 'text_2': '老板说赚多少亿无所谓,做人重要是开心!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '大公司就是你,你就是大公司',\n 'text_2': '稳扎稳打,一步一个脚印!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '人间难寻的真土豪',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '童叟无欺就是你',\n 'text_2': '跟我谈信用!看看华强北有多少兄弟给我点赞!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '欣欣向荣很开心',\n 'text_2': '先定一个能达到的小目标,比如我先赚他一个亿!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }], [{\n 'text_1': '史诗型巨巨',\n 'text_2': '客户虐我千百遍,我待客户如初恋!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/61565cb8f1ed21365366297300e546e8.png'\n }, {\n 'text_1': '·真· 腰缠万贯',\n 'text_2': '钱会有的,女朋(基)友也会有的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/8fc978fdd1c6f6b986a22f29c6b70935.png'\n }, {\n 'text_1': '言而有信就是你',\n 'text_2': '别的我不敢说,就算骗自己我也不会骗我的客(父)户(母)!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/3663a7c8e978057c69943614f1b567c8.png'\n }, {\n 'text_1': '势如破竹很开心',\n 'text_2': '我是一只潜力股,不管你信不信,反正我是不信的!',\n 'text_3': 'http://img.ichunt.com/images/ichunt/minProgram/b600f7291689e1c107edefd828eb43ad.png'\n }]];\n this.text = text[num];\n this.level = level[num];\n this.quota = quota[num];\n this.desc = this.account + desc
[num];\n },\n share: function share() {\n this.shade = true;\n }\n },\n components: {\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/risk/Success.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
...
@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"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: \"risk-success\" },\n [\n _c(\"div\", { staticClass: \"head\" }, [\n _c(\"p\", { staticClass: \"tit\" }, [_vm._v(\"你的公司评级\")]),\n _c(\"p\", { staticClass: \"level\" }, [_vm._v(_vm._s(_vm.level) + \"级\")]),\n _c(\"p\", { staticClass: \"txt\" }, [\n _vm._v(\"IC信用贷额度\" + _vm._s(_vm.quota) + \"万!\")\n ])\n ]),\n _c(\"div\", { staticClass: \"content\" }, [\n _c(\n \"ul\",\n { staticClass: \"list\" },\n _vm._l(_vm.text, function(item, index) {\n return _c(\"li\", { key: index }, [\n _c(\"img\", { attrs: { src: item.text_3, alt: \"\" } }),\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(_vm._s(item.text_1))]),\n _c(\"p\", { staticClass: \"t2\" }, [_vm._v(_vm._s(item.text_2))])\n ])\n }),\n 0\n )\n ]),\n _c(\"a\", {\n staticClass: \"share\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.share }\n }),\n _vm.shade\n ? _c(\n \"div\",\n {\n staticClass: \"shade\",\n on: {\n click: function($event) {\n _vm.shade = false\n }\n }\n },\n [_c(\"b\", { staticClass: \"im\" })]\n )\n : _vm._e(),\n _c(\"wxShare\", {
attrs: { url: _vm.shareUrl }
})\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/risk/Success.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221627c33a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@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.7.1@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: \"risk-success\" },\n [\n _c(\"div\", { staticClass: \"head\" }, [\n _c(\"p\", { staticClass: \"tit\" }, [_vm._v(\"你的公司评级\")]),\n _c(\"p\", { staticClass: \"level\" }, [_vm._v(_vm._s(_vm.level) + \"级\")]),\n _c(\"p\", { staticClass: \"txt\" }, [\n _vm._v(\"IC信用贷额度\" + _vm._s(_vm.quota) + \"万!\")\n ])\n ]),\n _c(\"div\", { staticClass: \"content\" }, [\n _c(\n \"ul\",\n { staticClass: \"list\" },\n _vm._l(_vm.text, function(item, index) {\n return _c(\"li\", { key: index }, [\n _c(\"img\", { attrs: { src: item.text_3, alt: \"\" } }),\n _c(\"p\", { staticClass: \"t1\" }, [_vm._v(_vm._s(item.text_1))]),\n _c(\"p\", { staticClass: \"t2\" }, [_vm._v(_vm._s(item.text_2))])\n ])\n }),\n 0\n )\n ]),\n _c(\"a\", {\n staticClass: \"share\",\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.share }\n }),\n _vm.shade\n ? _c(\n \"div\",\n {\n staticClass: \"shade\",\n on: {\n click: function($event) {\n _vm.shade = false\n }\n }\n },\n [_c(\"b\", { staticClass: \"im\" })]\n )\n : _vm._e(),\n _c(\"wxShare\", {
\n attrs: {\n link: _vm.link,\n title: _vm.title,\n desc: _vm.desc,\n imgUrl: _vm.imgUrl\n }\n
})\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/risk/Success.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221627c33a-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@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.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/16.js
View file @
9745a6ad
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n url: {\n type: String,\n default: window.location.href\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: \"好物分享给你,帮我助力,我们一起免费拿样品\",\n // 分享标题\n desc: \"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品\",\n // 分享描述\n link: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\"),\n // 分享链接\n imgUrl: \"http://img.ichunt.com/images/ichunt/self_sample/apply.png\",\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_7__[\"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 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'] // 功能列表,我们要使用JS-SDK的什么功能\n\n }); // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。\n\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n // 需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res); // 以键值对的形式返回,可用的api值true,不可用为false\n // 如:{\"checkResult\":{\"chooseImage\":true},\"errMsg\":\"checkJsApi:ok\"}
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\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_8__[\"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_7__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_8__[\"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 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']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/19.js
View file @
9745a6ad
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\n url: {\n type: String,\n default: window.location.href\n }\n },\n data: function data() {\n return {\n shareObj: {\n title: \"好物分享给你,帮我助力,我们一起免费拿样品\",\n // 分享标题\n desc: \"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品\",\n // 分享描述\n link: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\"),\n // 分享链接\n imgUrl: \"http://img.ichunt.com/images/ichunt/self_sample/apply.png\",\n // 分享图标\n success: function success(resp) {},\n error: function error() {}\n }\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_7__[\"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 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'] // 功能列表,我们要使用JS-SDK的什么功能\n\n }); // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。\n\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n // 需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res); // 以键值对的形式返回,可用的api值true,不可用为false\n // 如:{\"checkResult\":{\"chooseImage\":true},\"errMsg\":\"checkJsApi:ok\"}
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@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.10@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.10@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.10@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.10@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 E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.3@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var
core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es6.string.link */ \"./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js\");\n/* harmony import */ var core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_string_link__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\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(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n\n\n\n\nvar wxjs = __webpack_require__(/*! weixin-js-sdk */ \"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'wxShare',\n props: {\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_8__[\"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_7__[\"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 && _util_index__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getCookie(\"Yo4teW_uid\")) {\n this.share();\n }\n }\n },\n created: function created() {\n if (_util_index__WEBPACK_IMPORTED_MODULE_8__[\"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 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']\n });\n wx.ready(function () {\n wx.checkJsApi({\n jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone'],\n //需要检测的JS接口列表,所有JS接口列表见附录2,\n success: function success(res) {\n console.log(res);
\n }\n }); // 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareTimeline(self.shareObj); // 获取“分享给朋友”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareAppMessage(self.shareObj); //获取“分享到QQ”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQQ(self.shareObj); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareWeibo(self.shareObj); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口\n\n wx.onMenuShareQZone(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.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/4.js
View file @
9745a6ad
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
4
],{
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
4
],{
/***/
"./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js"
:
/*!**********************************************************************!*\
!*** ./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js ***!
\**********************************************************************/
/*! no static exports found */
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
eval
(
"var $export = __webpack_require__(/*! ./_export */ \"./node_modules/_core-js@2.6.10@core-js/modules/_export.js\");\nvar fails = __webpack_require__(/*! ./_fails */ \"./node_modules/_core-js@2.6.10@core-js/modules/_fails.js\");\nvar defined = __webpack_require__(/*! ./_defined */ \"./node_modules/_core-js@2.6.10@core-js/modules/_defined.js\");\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js?"
);
/***/
}),
/***/
"./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js"
:
/*!*************************************************************************!*\
!*** ./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js ***!
\*************************************************************************/
/*! no static exports found */
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
eval
(
"\n// B.2.3.10 String.prototype.link(url)\n__webpack_require__(/*! ./_string-html */ \"./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js\")('link', function (createHTML) {\n return function link(url) {\n return createHTML(this, 'a', 'href', url);\n };\n});\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js?"
);
/***/
}),
/***/
"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js"
:
/***/
"./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js"
:
/*!***********************************************************************!*\
/*!***********************************************************************!*\
!*** ./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js ***!
!*** ./node_modules/_weixin-js-sdk@1.4.0-test@weixin-js-sdk/index.js ***!
...
...
view/app.js
View file @
9745a6ad
...
@@ -4326,7 +4326,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
...
@@ -4326,7 +4326,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n formImgShow: false,\n countDown: false\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n actionLogins: function actionLogins(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n forbidClick: true\n }); //IC信用贷\n\n if (payload.from == 'risk') {\n var params = {\n com_name: payload.com_name,\n user_name: payload.user_name,\n account: payload.account,\n sms_verify: payload.sms_verify,\n \"ptag\": 'edcp'\n };\n } else {\n var params = {\n account: payload.account,\n sms_verify: payload.sms_verify\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].actionLogins(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n setTimeout(function () {\n toast.clear();\n\n if (payload.from == 'risk') {\n window.location.href = \"/h5/view/#/risksuccess
\"
;\n } else {\n window.location.href = \"/\";\n }\n }, 1000);\n } else {\n toast.clear();\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n smsVerifys: function smsVerifys(_ref2, payload) {\n var commit = _ref2.commit;\n var params = {\n mobile: payload.mobile,\n verify: payload.verify,\n channel: 1\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].smsVerifys(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.formImgShow = false;\n state.countDown = true;\n } else if (data.err_code == 10001 || data.err_code == 10002) {\n state.formImgShow = true;\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/special/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.7@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n formImgShow: false,\n countDown: false\n};\nvar mutations = {\n getfileuploadbanner: function getfileuploadbanner(state, payload) {\n state.getfileuploadbanner = payload.data;\n },\n articleShowData: function articleShowData(state, payload) {\n state.articleShowData = payload.data;\n }\n};\nvar actions = {\n actionLogins: function actionLogins(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n forbidClick: true\n }); //IC信用贷\n\n if (payload.from == 'risk') {\n var params = {\n com_name: payload.com_name,\n user_name: payload.user_name,\n account: payload.account,\n sms_verify: payload.sms_verify,\n \"ptag\": 'edcp'\n };\n } else {\n var params = {\n account: payload.account,\n sms_verify: payload.sms_verify\n };\n }\n\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].actionLogins(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n setTimeout(function () {\n toast.clear();\n\n if (payload.from == 'risk') {\n window.location.href = \"/h5/view/#/risksuccess
?account=\" + payload.account
;\n } else {\n window.location.href = \"/\";\n }\n }, 1000);\n } else {\n toast.clear();\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n smsVerifys: function smsVerifys(_ref2, payload) {\n var commit = _ref2.commit;\n var params = {\n mobile: payload.mobile,\n verify: payload.verify,\n channel: 1\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].smsVerifys(qs.stringify(params)).then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n state.formImgShow = false;\n state.countDown = true;\n } else if (data.err_code == 10001 || data.err_code == 10002) {\n state.formImgShow = true;\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 2000\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/special/index.js?"
);
/***/
}),
/***/
}),
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