Commit 8c989851 by xuzhenghua

用户id

parents 1e8a97db 41f4c4cf
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
"detail.js": "/mrstatic/js/detail.5541ed10.chunk.js", "detail.js": "/mrstatic/js/detail.5541ed10.chunk.js",
"detail.js.map": "/mrstatic/js/detail.5541ed10.chunk.js.map", "detail.js.map": "/mrstatic/js/detail.5541ed10.chunk.js.map",
"main.css": "/mrstatic/css/main.bd7bbf45.chunk.css", "main.css": "/mrstatic/css/main.bd7bbf45.chunk.css",
"main.js": "/mrstatic/js/main.1272ecb2.chunk.js", "main.js": "/mrstatic/js/main.f487493e.chunk.js",
"main.js.map": "/mrstatic/js/main.1272ecb2.chunk.js.map", "main.js.map": "/mrstatic/js/main.f487493e.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.179a42fc.chunk.css", "myorders.css": "/mrstatic/css/myorders.179a42fc.chunk.css",
"myorders.js": "/mrstatic/js/myorders.04486386.chunk.js", "myorders.js": "/mrstatic/js/myorders.04486386.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.04486386.chunk.js.map", "myorders.js.map": "/mrstatic/js/myorders.04486386.chunk.js.map",
...@@ -200,6 +200,6 @@ ...@@ -200,6 +200,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.8b401994659533a8e6d64a7059f2acf5.js": "/precache-manifest.8b401994659533a8e6d64a7059f2acf5.js", "precache-manifest.19de3e6c384bfa0552115a7184b97c5a.js": "/precache-manifest.19de3e6c384bfa0552115a7184b97c5a.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -84,8 +84,8 @@ self.__precacheManifest = [ ...@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Examination.cbe58c71.chunk.js" "url": "/mrstatic/js/Examination.cbe58c71.chunk.js"
}, },
{ {
"revision": "258b4b114d3d9be3018cd113b2470a13", "revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.258b4b11.ttf" "url": "/mrstatic/media/iconfont.7aa984ce.eot"
}, },
{ {
"revision": "d0c90ca447f9e464d75a", "revision": "d0c90ca447f9e464d75a",
...@@ -96,8 +96,8 @@ self.__precacheManifest = [ ...@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.83cc02c9.chunk.js" "url": "/mrstatic/js/MyEdit.83cc02c9.chunk.js"
}, },
{ {
"revision": "7aa984cefad739ea18edb76c541aa1fd", "revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.7aa984ce.eot" "url": "/mrstatic/media/iconfont.258b4b11.ttf"
}, },
{ {
"revision": "a2ea84eb6cee142ad987", "revision": "a2ea84eb6cee142ad987",
...@@ -216,8 +216,8 @@ self.__precacheManifest = [ ...@@ -216,8 +216,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/system-notices.60a559ae.chunk.js" "url": "/mrstatic/js/system-notices.60a559ae.chunk.js"
}, },
{ {
"revision": "5def9aea5d918235f5e4", "revision": "351c1291fb693bc88589",
"url": "/mrstatic/js/main.1272ecb2.chunk.js" "url": "/mrstatic/js/main.f487493e.chunk.js"
}, },
{ {
"revision": "f62f62038af07b9ac236", "revision": "f62f62038af07b9ac236",
...@@ -300,7 +300,7 @@ self.__precacheManifest = [ ...@@ -300,7 +300,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/1.781074ea.chunk.css" "url": "/mrstatic/css/1.781074ea.chunk.css"
}, },
{ {
"revision": "5def9aea5d918235f5e4", "revision": "351c1291fb693bc88589",
"url": "/mrstatic/css/main.bd7bbf45.chunk.css" "url": "/mrstatic/css/main.bd7bbf45.chunk.css"
}, },
{ {
...@@ -440,7 +440,7 @@ self.__precacheManifest = [ ...@@ -440,7 +440,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css" "url": "/mrstatic/css/2.bf839917.chunk.css"
}, },
{ {
"revision": "0a8f64132818f52f1fbf9b70f0ec0c66", "revision": "d5006f16aca3c93e75c05ed4771009b3",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.8b401994659533a8e6d64a7059f2acf5.js" "/precache-manifest.19de3e6c384bfa0552115a7184b97c5a.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
...@@ -32,13 +32,12 @@ class App extends Component { ...@@ -32,13 +32,12 @@ class App extends Component {
pathnameBlacklist = ['/country', '/passport'] pathnameBlacklist = ['/country', '/passport']
firstLoad = true firstLoad = true
componentWillMount(){
this.getqimoClientId()
}
componentDidMount() { componentDidMount() {
this.umengStatistic() this.umengStatistic()
this.QimoClient()
//平台信息 //平台信息
cookie.set('plat', '5', {domain: '.julyedu.com'}) cookie.set('plat', '5', {domain: '.julyedu.com'})
...@@ -204,6 +203,10 @@ class App extends Component { ...@@ -204,6 +203,10 @@ class App extends Component {
if (!this.props.user.hasError && getParam('redirect')) { if (!this.props.user.hasError && getParam('redirect')) {
window.location.href = getParam('redirect') window.location.href = getParam('redirect')
} }
this.QimoClient()
} }
setPreviousLocation = () => { setPreviousLocation = () => {
...@@ -279,6 +282,17 @@ class App extends Component { ...@@ -279,6 +282,17 @@ class App extends Component {
// 七陌客服代码 start // 七陌客服代码 start
getqimoClientId =()=>{
http.post(`${API['home']}/qiMoUserId`)
.then(res => {
if (res.data.code == 200) {
window.qimoClientId = res.data.data.userId
}
})
.catch(function () {
})
}
QimoClient=()=>{ QimoClient=()=>{
let utm_source = getParam('utm_source') let utm_source = getParam('utm_source')
let utm_medium = getParam('utm_medium') let utm_medium = getParam('utm_medium')
...@@ -299,16 +313,7 @@ class App extends Component { ...@@ -299,16 +313,7 @@ class App extends Component {
script.type = 'text/javascript' script.type = 'text/javascript'
script.src = src script.src = src
script.async = 'async' script.async = 'async'
var qimoClientId = ''// 自定义用户的唯一id,由英文字母,数字,下划线组成
http.get(`${API['home']}/qiMoUserId`)
.then(res => {
if (res.data.code == 200) {
qimoClientId = res.data.data.userId
}
console.log(qimoClientId)
document.body.appendChild(script) document.body.appendChild(script)
})
} }
// 七陌客服代码 end // 七陌客服代码 end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment