Commit 001e2c79 authored by 王勇霞's avatar 王勇霞

feat: 埋点

parent cca15120
......@@ -88,6 +88,6 @@ if (CFG.projectId == "p16fceb94") {
CFG.MER_ID = getUrlParam("merId") || "10478";
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1749625170378/styles/main.b1c7e26b423b83e9f004.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>"use strict";
}</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1749694210224/styles/main.94ca292fc3ad549d51ec.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>"use strict";
CFG.___G___ = 'qiqi%3Bdev%3Borigin%09git%40gitlab2.dui88.com%3Asparkprojects%2Fzzh_salarywish-20250609.git%20(fetch)%3Borigin%09git%40gitlab2.dui88.com%3Asparkprojects%2Fzzh_salarywish-20250609.git%20(push)%3B';</script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749625170378/js/runtime-main.0b396e75.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749625170378/js/vendors.c2e29312.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749625170378/js/main.352556e3.js" crossorigin="anonymous"></script></body></html>
\ No newline at end of file
CFG.___G___ = 'qiqi%3Bdev%3Borigin%09git%40gitlab2.dui88.com%3Asparkprojects%2Fzzh_salarywish-20250609.git%20(fetch)%3Borigin%09git%40gitlab2.dui88.com%3Asparkprojects%2Fzzh_salarywish-20250609.git%20(push)%3B';</script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749694210224/js/runtime-main.c00fc532.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749694210224/js/vendors.8237ef09.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1749694210224/js/main.240fd290.js" crossorigin="anonymous"></script></body></html>
\ 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.
!function(e){function r(r){for(var n,a,l=r[0],i=r[1],p=r[2],c=0,s=[];c<l.length;c++)a=l[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var i=t[l];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="//yun.duiba.com.cn/spark/v2/temp_base/1749625170378/";var l=window.webpackJsonp=window.webpackJsonp||[],i=l.push.bind(l);l.push=r,l=l.slice();for(var p=0;p<l.length;p++)r(l[p]);var f=i;t()}([]);
//# sourceMappingURL=runtime-main.0b396e75.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,l=r[0],i=r[1],p=r[2],c=0,s=[];c<l.length;c++)a=l[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var i=t[l];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="//yun.duiba.com.cn/spark/v2/temp_base/1749694210224/";var l=window.webpackJsonp=window.webpackJsonp||[],i=l.push.bind(l);l.push=r,l=l.slice();for(var p=0;p<l.length;p++)r(l[p]);var f=i;t()}([]);
//# sourceMappingURL=runtime-main.c00fc532.js.map
\ No newline at end of file
......@@ -166,4 +166,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e,t,n,o,a,s,u){return void 0===t&&(t={}),void 0===n&&(n="get"),void 0===o&&(o={}),void 0===a&&(a="form"),void 0===s&&(s=!1),new Promise((function(l,c){var f;if(window.XMLHttpRequest?f=new XMLHttpRequest:window.ActiveXObject?f=new window.ActiveXObject(void 0):alert("no xhr"),null!=f){t&&(t=JSON.parse(JSON.stringify(t)));var d="GET"===n.toUpperCase(),h=void 0,p=Date.now();switch(a){case"form":o["Content-Type"]="application/x-www-form-urlencoded",t._t=p,h=function(e,t,n){e&&Object.keys(e).length>0&&("function"==typeof t?e.sign=t(e,n):t&&(e.sign=function(e,t){var n=Object.keys(e);n.sort();for(var i=[],o=0,a=n;o<a.length;o++){var s=a[o];i.push(s+"="+e[s])}i.push("key="+t);var u=i.join("&");return Object(r.i)(u)}(e,n)));return Object(r.j)(e)}(t,s,u);break;case"json":o["Content-Type"]="application/json",h=JSON.stringify(t);break;case"plain":o["Content-Type"]="text/plain",h=t}var m=e,v=window.url_process;for(var _ in v&&(m=v(m)),m=d?Object(r.m)(m,h):Object(r.m)(m,"_t="+p),f.timeout=1e4,f.open(n,m,!0),o)f.setRequestHeader(_,o[_]);f.responseType="text",f.onreadystatechange=function(){4==f.readyState&&200==f.status&&l(f.response)},f.onerror=function(){c(new i.a({code:i.b.NET_ERROR,message:"网络错误,请检查网络是否通畅"}))},f.onloadend=function(){var t=f.status;if(200!==t){var n=i.b.NET_ERROR,r="网络错误,请检查网络是否通畅";switch(t){case 404:r=e+" 404 (Not Found)";break;case 429:r="活动太火爆了,请稍后再试~";try{r=JSON.parse(f.response).message}catch(e){}n=i.b.CALL_LIMITING}c(new i.a({code:n,message:r,payload:{code:t,response:f.response}}))}},f.ontimeout=function(){c(new i.a(i.b.REQUEST_TIMEOUT,"请求超时"))},d?f.send():f.send(h)}}))}function u(e,t){void 0===t&&(t={}),t._t=Date.now();var n=Object(r.m)(e,Object(r.j)(t));return Object(r.a)(n)}function l(e,t,n,r,u,l,c,f){return void 0===n&&(n="get"),void 0===u&&(u=!0),void 0===l&&(l=!1),o(this,void 0,void 0,(function(){var o,d;return a(this,(function(a){switch(a.label){case 0:return[4,s(e,t,n,r,f,l,c)];case 1:o=a.sent();try{d=JSON.parse(o)}catch(e){throw new i.a(i.b.INVALID_RESPONSE)}if(u){if(d.success)return[2,d.data];throw new i.a(d)}return[2,d]}}))}))}function c(e,t,n,r,o,a,s,u){void 0===r&&(r=10),void 0===o&&(o=500),void 0===a&&(a="get"),void 0===u&&(u=!0);for(var c,f=Promise.resolve(),d=0;d<r;d++)f=(f=f.then(h)).then((function(){return new Promise((function(e){return setTimeout(e,o)}))}));return f.then((function(){throw new i.a(i.b.POLLING_TIMEOUT,"轮询超时")}),(function(e){if("success"===e){if(u){if(c.success)return c.data;throw new i.a(c)}return c}throw e}));function h(){return l(t,n,a,s,!1).then((function(t){if(e(t))return c=t,Promise.reject("success")}),(function(e){return Promise.reject(e)}))}}function f(e){var t=e.uri,n=e.params,r=e.method,i=e.headers,o=e.justData,a=e.secret,s=e.secretKey,u=e.requestContentType;return l.apply(null,[t,n,r,i,o,a,s,u])}}}]);
//# sourceMappingURL=vendors.c2e29312.js.map
\ No newline at end of file
//# sourceMappingURL=vendors.8237ef09.js.map
\ No newline at end of file
{"numOfComponents":5048,"numOfProject":1585}
\ No newline at end of file
{"numOfComponents":5048,"numOfProject":1593}
\ No newline at end of file
......@@ -7,7 +7,8 @@ module.exports = {
floatingInfo:
'{"img":"//yun.duiba.com.cn/polaris/浮窗.89b6cca48e36ca24674512910386363f08644605.png","appUrl":"Au9NAuPYCjyfV3XvIHTtkM9sIGhrlwXvHjKgWNK=","wxUrl":"https://mbs.boc.cn/v/a/f36sq6BLIf"}',
shareInfo:
'{"title":"最高享1288元立减金","content":"新开中行户 福利轻松享 常用中行卡 优惠随时有","url":"https://activity.dexfu.cn/customShare/share?id=Did1NjA2NzE","thumbnail":"https://yun.duiba.com.cn/polaris/900_1125.b33bb450c3b4242a76713cb8338c3850186e6b20.jpg"}',
pageBgImg: "https://yun.tuisnake.com/ZZH_SalaryWish/pno4_bilvhney9z43nhmg.png",
'{"title":"最高享1288元立减金","content":"新开中行户 福利轻松享 常用中行卡 优惠随时有","url":"https://activity.dexfu.cn/customShare/share?id=Did1NjEyNzk","thumbnail":"https://yun.tuisnake.com/ZZH_SalaryWish/WechatIMG48.jpg"}',
// pageBgImg: "https://yun.tuisnake.com/ZZH_SalaryWish/pno4_bilvhney9z43nhmg.png",
pageBgImg: "https://yun.tuisnake.com/ZZH_SalaryWish/bxjbmo-bavhhwienmcwqq.png",
},
};
\ No newline at end of file
const rule = require("./rule");
// const rule = require("./rule");
module.exports = {
code: null,
......@@ -6,14 +6,49 @@ module.exports = {
bannerInfo: [
{
appUrl:
"Au9NAuPYCjyfV2XflxBrkG5vmuPzms9gmw9dl3Bzl25AIGnvZ2ntnOF4nRTrEQPiIG1jZCE3AsEiWxFilMEiWsEjACEiWwr0nRLjTDXLTDTQTDTQl3LvlwPgkC5sl2WeI24vWuJzlwF3miEiBxLdTDTQTDSjTDTQWtq1WsEiWsE3BK==",
bannerImg: "//yun.duiba.com.cn/polaris/banner.b41421b436f9452b88e05b038434779016eea805.png",
wxUrl: "https://openapi.boc.cn/inews/pm/#/2852",
"BOCBANK://search/depositManagementLargeDeposit",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/gtdqpo-oci4sfjqigsi7d.png",
wxUrl: "https://mbs.boc.cn/v/a/N0U0KUT5w6",
},
{
appUrl: "Au9NAuPYCjyfV3XvIHTtkM9cl2PeDGPeIGnvlGFenO1rlwPxJEFcl2Pe",
bannerImg: "//yun.duiba.com.cn/polaris/banner 2.4b6b30904fa795078be89546828f565ce3b9a0d4.png",
wxUrl: "https://mbs.boc.cn/v/a/Z3HsKjleZJ",
appUrl: "BOCBANK://search/wealthManagementProductDetail?productCode=GRSDR250268",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/pbst1hqnfepbpwurxoyqz.png",
wxUrl: "https://ccsa.ebsnew.boc.cn/shareFinace/shareVue/structuredDeposit/index.html#/productDetail?unctionCode=wealthManagementProductDetail&productCode=GRSDR250268&functionCode=wealthManagementProductDetail",
},
{
appUrl: "BOCBANK://search/wealthManagementProductDetail?productCode=GRSDR250269",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/adnluv8xm4ql3wdpk-ruv.png",
wxUrl: "https://ccsa.ebsnew.boc.cn/shareFinace/shareVue/structuredDeposit/index.html#/productDetail?unctionCode=wealthManagementProductDetail&productCode=GRSDR250269&functionCode=wealthManagementProductDetail",
},
{
appUrl: "BOCBANK://search/bocFinanceProductDetail?productId=0YIXTT085A",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/n7xaogiz7jtwpp8qm99tm.png",
wxUrl: "https://ebsnew.boc.cn/bocphone/VueLocalCli4/bocFinanceDetail/index.html#/productDetail?functionCode=bocFinanceProductDetail&productId=0YIXTT085A&lastShortUrl=nOJ4DyeDrS",
},
{
appUrl: "BOCBANK://search/bocFinanceProductDetail?productId=CYQWFZDJQ30DA",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/7q2yb0uvjrmgyvthi88pz.png",
wxUrl: "https://ebsnew.boc.cn/bocphone/VueLocalCli4/bocFinanceDetail/index.html#/productDetail?functionCode=bocFinanceProductDetail&productId=CYQWFZDJQ30DA&lastShortUrl=RO84BS3kaG",
},
{
appUrl: "BOCBANK://search/bocFinanceProductDetail?productId=FCYQZQ18M02L",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/brjve-wbjkryfz8bmrxhp.png",
wxUrl: "https://ebsnew.boc.cn/bocphone/VueLocalCli4/bocFinanceDetail/index.html#/productDetail?functionCode=bocFinanceProductDetail&productId=FCYQZQ18M02L&lastShortUrl=bOr43D41ef",
},
{
appUrl: "BOCBANK://search/balance_0000",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/d9wjnqz79shq3lycsusht.png",
wxUrl: "https://mbas.mbs.boc.cn/WeiBankFront/weixinVue/openApp/index.html#/openApp?lastShortUrl=Dzx4CdY1sb",
},
{
appUrl: "BOCBANK://search/fundProductDetail?productId=004513",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/cwhmiaxa3qwzbg5pjfxqa.png",
wxUrl: "https://ebsnew.boc.cn/bocphone/VueLocalCli4/fundDetail/index.html#/productDetail?productId=004513&lastShortUrl=QOY4KlFaRm",
},
{
appUrl: "BOCBANK://search/fundProductDetail?productId=217023",
bannerImg: "https://yun.tuisnake.com/ZZH_SalaryWish/t7b-ohhrmk2zajkpt2ser.png",
wxUrl: "https://ebsnew.boc.cn/bocphone/VueLocalCli4/fundDetail/index.html#/productDetail?productId=217023&lastShortUrl=7OT4cZxAyL",
},
],
activityInfo: [
......
......@@ -9,6 +9,6 @@ module.exports ={
"IMAGE_Q1": 0.6,
"IMAGE_Q2": 0.8,
"RES_PATH": "/src/assets/",
"RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1749625163709",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1749625170378/js"
"RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1749694202592",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1749694210224/js"
}
\ No newline at end of file
......@@ -55,14 +55,14 @@ class ShouYe extends React.Component {
});
}, 500);
// handleClickBanner = _asyncThrottle(async (item, index) => {
// if (noUrl(item)) return;
// await store.appAuth(() => {
// handleLogClick(1, 2, `第${index + 1}个banner`);
// opfStatisticSdkClick(`banner-${index + 1}`, `第${index + 1}个banner`);
// setTimeout(() => store.jumpLink(item));
// });
// }, 500);
handleClickBanner = _asyncThrottle(async (item, index) => {
if (noUrl(item)) return;
await store.appAuth(() => {
handleLogClick(1, 6, `第${index + 1}个card`);
opfStatisticSdkClick(`card-${index + 1}`, `第${index + 1}个card`);
setTimeout(() => store.jumpLink(item));
});
}, 500);
handleClickShare = _asyncThrottle(async () => {
handleLogClick(1, 2);
......@@ -71,7 +71,7 @@ class ShouYe extends React.Component {
}, 1000);
render() {
const { activityInfo = [] } = store.homeInfo;
const { activityInfo = [], bannerInfo = [] } = store.homeInfo;
const { pageBgImg } = store.frontVariable;
return (
......@@ -87,7 +87,7 @@ class ShouYe extends React.Component {
</span>
))}
</div>
{/* <div className="bannerInfo">
<div className="bannerInfo">
{bannerInfo?.map((banner, index) => (
<span
key={"banner_" + index}
......@@ -96,7 +96,7 @@ class ShouYe extends React.Component {
<img src={banner.bannerImg} alt="" />
</span>
))}
</div> */}
</div>
<span className="share" onClick={this.handleClickShare}></span>
{/* <FloatingIcon /> */}
......
......@@ -57,21 +57,23 @@
}
.bannerInfo {
width: 750px;
width: 636px;
height: auto;
left: 0;
top: 2812px;
left: 50%;
top: 1423px;
position: absolute;
transform: translateX(-50%);
padding-bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
.banner {
display: block;
width: 659px;
height: 199px;
position: relative;
margin: 0 auto 16px;
overflow: hidden;
border-radius: 20px;
width: 184px;
height: 222px;
margin: 0 10px 82px;
}
}
......
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