Commit 18053bb6 by xuzhenghua

测试分享

parent 1ef670f9
......@@ -7,8 +7,8 @@
"mrstatic/js/2.94d294dd.chunk.js": "/mrstatic/js/2.94d294dd.chunk.js",
"mrstatic/js/2.94d294dd.chunk.js.map": "/mrstatic/js/2.94d294dd.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.fa2c419d.chunk.css",
"Activity.js": "/mrstatic/js/Activity.98ecb255.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.98ecb255.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.95be3a03.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.95be3a03.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js.map",
......@@ -56,14 +56,14 @@
"aist-share.js": "/mrstatic/js/aist-share.1aac9dd7.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.1aac9dd7.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.4660c218.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.4660c218.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.2ca65536.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.2ca65536.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.466858c7.chunk.css",
"coupons.js": "/mrstatic/js/coupons.7b30820c.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.7b30820c.chunk.js.map",
"coupons.js": "/mrstatic/js/coupons.588b230f.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.588b230f.chunk.js.map",
"deposit-order.css": "/mrstatic/css/deposit-order.5ea077aa.chunk.css",
"deposit-order.js": "/mrstatic/js/deposit-order.12e65d34.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.12e65d34.chunk.js.map",
......@@ -71,8 +71,8 @@
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js.map",
"detail.css": "/mrstatic/css/detail.54d9956e.chunk.css",
"detail.js": "/mrstatic/js/detail.b1be5899.chunk.js",
"detail.js.map": "/mrstatic/js/detail.b1be5899.chunk.js.map",
"detail.js": "/mrstatic/js/detail.454052b6.chunk.js",
"detail.js.map": "/mrstatic/js/detail.454052b6.chunk.js.map",
"main.css": "/mrstatic/css/main.f9f26bcf.chunk.css",
"main.js": "/mrstatic/js/main.b85a8e2f.chunk.js",
"main.js.map": "/mrstatic/js/main.b85a8e2f.chunk.js.map",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.d4a92690.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.d4a92690.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.29099c02.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.29099c02.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a7acd8d3.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a7acd8d3.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.34ce5f12.chunk.js",
"search.js.map": "/mrstatic/js/search.34ce5f12.chunk.js.map",
......@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js": "/precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js",
"precache-manifest.1292f00762a03a7437feb7232d42dc04.js": "/precache-manifest.1292f00762a03a7437feb7232d42dc04.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var i=n(12),c=n.n(i),a=n(5),s=n(7),o=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),p=n(22),b=n(3),m=(n(728),n(37)),f=n.n(m),v=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):c.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(b.c)("shareuid"),{domain:".julyedu.com",expires:30}),f.a.set("blessing_invite_code",Object(b.c)("inviteCode"),{domain:".julyedu.com",expires:30})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(v)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.95be3a03.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","domain","expires","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,sCAY/F,OACEC,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,iBACbF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,gBACfF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,gBACbF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,cAAcC,QAASpB,KAAKI,SAA3C,qCAvBaiB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAAClB,KAAMkB,EAAMlB,OACvB,KAFaiB,CAGb3B","file":"mrstatic/js/Activity.95be3a03.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var c=n(12),a=n.n(c),i=n(5),o=n(7),s=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),b=n(22),m=n(3),p=(n(728),n(37)),f=n.n(p),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(m.c)("shareuid"),{domain:".julyedu.com"}),f.a.set("blessing_invite_code",Object(m.c)("inviteCode"),{domain:".julyedu.com"})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(b.b)(function(e){return{user:e.user}},null)(v)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.98ecb255.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","domain","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,iBACnEH,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,kDAYtE,OACEC,EAAAN,EAAAO,cAAA,OAAKC,UAAU,iBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACfF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,cAAcC,QAASnB,KAAKI,SAA3C,qCAvBagB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAACjB,KAAMiB,EAAMjB,OACvB,KAFagB,CAGb1B","file":"mrstatic/js/Activity.98ecb255.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com'});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com'});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ 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.
This source diff could not be displayed because it is too large. You can view the blob instead.
self.__precacheManifest = [
{
"revision": "79fbf34fe2bc5c30c436",
"url": "/mrstatic/js/detail.b1be5899.chunk.js"
"revision": "d4249f6c6e14ee7989f4",
"url": "/mrstatic/js/detail.454052b6.chunk.js"
},
{
"revision": "29d11d2f46d301d41b82",
......@@ -20,8 +20,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "ce6ff4f258074b4c0163",
"url": "/mrstatic/js/Activity.98ecb255.chunk.js"
"revision": "3669a1bd3c7b073d093e",
"url": "/mrstatic/js/Activity.95be3a03.chunk.js"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
......@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.94f33fa9.chunk.js"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "4c1cbc5f78aaebc347cf",
......@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.75fbdb93.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "d8ff407b74cf1d5edf99",
......@@ -148,8 +148,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.70e9bd98.chunk.js"
},
{
"revision": "07583cff4df2a4f5f713",
"url": "/mrstatic/js/blessing-preheat.4660c218.chunk.js"
"revision": "f79dd5e238cd00f75937",
"url": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js"
},
{
"revision": "71d97cf00cf6d7c0538e",
......@@ -164,8 +164,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/36.b3176d91.chunk.js"
},
{
"revision": "42ab5505a79a6e65ae36",
"url": "/mrstatic/js/coupons.7b30820c.chunk.js"
"revision": "3352a9b002ca69d66ddb",
"url": "/mrstatic/js/coupons.588b230f.chunk.js"
},
{
"revision": "253052c4f4dfc3b7f507",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.1c01ec2c.chunk.js"
},
{
"revision": "95ea50bd61b102b18054",
"url": "/mrstatic/js/runtime~main.29099c02.js"
"revision": "61aceabf7192c442a371",
"url": "/mrstatic/js/runtime~main.a7acd8d3.js"
},
{
"revision": "52917a3a43143beb8b70",
......@@ -252,7 +252,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/ShareCourse.8046fb41.chunk.css"
},
{
"revision": "79fbf34fe2bc5c30c436",
"revision": "d4249f6c6e14ee7989f4",
"url": "/mrstatic/css/detail.54d9956e.chunk.css"
},
{
......@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css"
},
{
"revision": "07583cff4df2a4f5f713",
"revision": "f79dd5e238cd00f75937",
"url": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css"
},
{
......@@ -320,7 +320,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/42.b02d1de6.chunk.css"
},
{
"revision": "42ab5505a79a6e65ae36",
"revision": "3352a9b002ca69d66ddb",
"url": "/mrstatic/css/coupons.466858c7.chunk.css"
},
{
......@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css"
},
{
"revision": "ce6ff4f258074b4c0163",
"revision": "3669a1bd3c7b073d093e",
"url": "/mrstatic/css/Activity.fa2c419d.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "3e59ae6f02aab92c333c1e3ca2ff5bbb",
"revision": "3f7211c743d7a506cd01f6c79cfe7752",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js"
"/precache-manifest.1292f00762a03a7437feb7232d42dc04.js"
);
workbox.clientsClaim();
......
import React, {Component} from 'react'
import {SendMessageToApp} from '@/utils'
import {SendMessageToApp,wxShare} from '@/utils'
import {setCurrentUser, startFetchUser} from "@/store/userAction"
import {Button, Toast, WhiteSpace} from 'antd-mobile'
import cookie from 'js-cookie'
......@@ -11,8 +11,7 @@ import {connect} from "react-redux";
class ToAppDemo extends Component {
state = {
userInfoList: [
],
userInfoList: [],
}
componentDidMount() {
......@@ -69,6 +68,14 @@ class ToAppDemo extends Component {
return payload
}
testShare = () => {
wxShare({
title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',
desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',
link: window.location.href,
imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',
})
}
// 跳转App登录
......@@ -134,6 +141,7 @@ class ToAppDemo extends Component {
render() {
return (
<div>
<Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>
<p>登录</p>
<Button type={'primary'} onClick={() => this.toLogin()}>App登录</Button><WhiteSpace/>
<p>去课程详情页</p>
......
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