@conecli/cone-render 0.8.11 → 0.8.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/index.h5.ts +1 -1
- package/dist/libs/taroAppReport.js +1 -4
- package/dist/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +606 -0
- package/dist/sass/app.scss +21 -0
- package/dist/sass/base.scss +67 -0
- package/dist/utils/MQ.ts +1 -1
- package/package.json +2 -1
package/dist/common/index.h5.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 2019-04-08 15:33:10 @issue to lijiwen@jd.com Thanks */
|
|
3
|
-
var Taro=require("@tarojs/taro");!function(e){var t={};"weapp"===process.env.TARO_ENV&&(t={1e3:["direct","t_1000578828_xcx_1000_wxtd","xcx",""],1001:["direct","t_1000578828_xcx_1001_fxrk","xcx",""],1005:["weixin","t_1000578826_xcx_1005_fxss","xcx",""],1006:["weixin","t_1000578826_xcx_1006_fxss","xcx",""],1007:["weixin","t_1000578832_xcx_1007_drxxkp","xcx",""],1008:["weixin","t_1000578832_xcx_1008_qlxxkp","xcx",""],1011:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1012:["weixin","t_1000578833_xcx_1012_tpsm","xcx",""],1013:["weixin","t_1000578833_xcx_1013_xcsm","xcx",""],1014:["weixin","t_1000578827_xcx_1014_xcxmbxx","xcx",""],1017:["weixin","t_1000578829_xcx_1017_tyb","xcx",""],1019:["direct","t_1000578830_xcx_1019_qb","xcx",""],1020:["weixin","t_1000072662_xcx_1020_gzhjs","xcx",""],1022:["direct","t_1000578828_xcx_1022_zdrk","xcx",""],1023:["direct","t_1000578828_xcx_1023_zmtb","xcx",""],1024:["direct","t_1000578828_xcx_1024_xcxjs","xcx",""],1025:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1026:["weixin","t_1000578829_xcx_1026_fjxcx","xcx",""],1027:["weixin","t_1000578826_xcx_1027_dbss","xcx",""],1028:["direct","t_1000578836_xcx_1028_kqkb","xcx",""],1029:["direct","t_1000578836_xcx_1029_kqxq","xcx",""],1030:["weixin","t_1000578829_xcx_1030_zdhcs","xcx",""],1031:["weixin","t_1000578833_xcx_1031_tpsm","xcx",""],1032:["weixin","t_1000578833_xcx_1032_xcsm","xcx",""],1034:["weixin","t_1000578827_xcx_1034_zfwcxx","xcx",""],1035:["weixin","t_1000072662_xcx_1035_cdl","xcx",""],1036:["weixin","t_335139774_xcx_1036_appfxxx","xcx",""],1037:["weixin","t_1000578834_xcx_1037_xcxtz","xcx",""],1038:["weixin","t_1000578834_xcx_1038_xcxtz","xcx",""],1039:["weixin","t_1000578829_xcx_1039_yds","xcx",""],1042:["weixin","t_1000578826_xcx_1042_tjss","xcx",""],1043:["weixin","t_1000072662_xcx_1043_gzhxx","xcx",""],1044:["weixin","t_1000578832_xcx_1044_fxxxkp","xcx",""],1045:["weixin","t_1000578835_xcx_1045_pyq","xcx",""],1047:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1048:["weixin","t_1000578833_xcx_1048_tpsm","xcx",""],1049:["weixin","t_1000578833_xcx_1049_xcsm","xcx",""],1052:["direct","t_1000578836_xcx_1052_kqmdlb","xcx",""],1053:["weixin","t_1000578826_xcx_1053_sys","xcx",""],1054:["direct","t_1000578828_xcx_1054_dbss","xcx",""],1055:["weixin","t_1000578829_xcx_1055_h5hq","xcx",""],1056:["weixin","t_1000578829_xcx_1056_ylbf","xcx",""],1057:["direct","t_1000578830_xcx_1057_yxkxqy","xcx",""],1058:["weixin","t_1000072663_xcx_1058_gzhwz","xcx",""],1059:["weixin","t_1000578829_xcx_1059_yqy","xcx",""],1064:["weixin","t_1000578829_xcx_1064_wifilj","xcx",""],1067:["weixin","t_1000578835_xcx_1067_gzh","xcx",""],1068:["weixin","t_1000578835_xcx_1068_fjxcx","xcx",""],1069:["weixin","t_1000578829_xcx_1069_ydyy","xcx",""],1071:["direct","t_1000578830_xcx_1071_yxklby","xcx",""],1072:["weixin","t_1000578833_xcx_1072_ewmsk","xcx",""],1073:["weixin","t_1000578829_xcx_1073_kfxx","xcx",""],1074:["weixin","t_1000072663_xcx_1074_gzhxx","xcx",""],1077:["weixin","t_1000578829_xcx_1077_yzb","xcx",""],1078:["weixin","t_1000578829_xcx_1078_wifilj","xcx",""],1079:["weixin","t_1000578829_xcx_1079_yxzx","xcx",""],1081:["weixin","t_1000578829_xcx_1081_kfwzl","xcx",""],1082:["weixin","t_1000072663_xcx_1082_hhwzl","xcx",""],1089:["direct","t_1000578828_xcx_1089_ltkxl","xcx",""],1090:["direct","t_1000578828_xcx_1090_xcxcd","xcx",""],1091:["weixin","t_1000072663_xcx_1091_wzspkp","xcx",""],1092:["direct","t_1000578829_xcx_1092_csfwrk","xcx",""],1095:["weixin","t_1000578835_xcx_1095_xcxzj","xcx",""],1096:["direct","t_1000578828_xcx_1096_ltjl","xcx",""],1097:["weixin","t_1000578829_xcx_1097_zfqy","xcx",""]});var n=function(t){var n="";try{n=e.getStorageSync(t)}catch(e){}return n},i=function(t,n){try{e.setStorageSync(t,n)}catch(e){}},a=e.request,x=e.getSystemInfo,r=e.getNetworkType,c="";"weapp"===process.env.TARO_ENV?c="wx-app":"swan"===process.env.TARO_ENV?c="baidu-app":"tt"===process.env.TARO_ENV?c="toutiao-app":"alipay"===process.env.TARO_ENV?c="alipay-app":"rn"===process.env.TARO_ENV?c="rn-app":"h5"===process.env.TARO_ENV&&(c="h5-app");var _="__jda",s="__jdd",p="__jdv",o="union_customerinfo",d=864e5,u=86400,v=1800,l="__refer",h="5YT%aC89$22OI@pQ",f=function(){var e="https://neptune.jd.com/log/m";try{var t=getApp({allowDefault:!0});t&&t.globalRequestUrl&&(e=t.globalRequestUrl.replace(/\/*$/,"/neptune/log/m"))}catch(e){}return e},g=0;function m(e){e=e||"tr-"+g++,this.name=e,this.logCache=[],this.env=[],this.ext={},this.isReady=m.isWxDataReady,m.loggerList&&m.loggerList instanceof Array&&m.loggerList.push(this),m.isInitJda||(m.initJda(),m.isInitJda=!0)}m.loggerList=[],m.dependList={sysinfo:0,netType:0},m.isWxDataReady=!1,m.dataReady=function(e){if(!m.isWxDataReady){m.dependList[e]=1;for(var t in m.dependList)if(!m.dependList[t])return;m.isWxDataReady=!0;t=0;for(var n=m.loggerList.length;t<n;t++)m.loggerList[t].ready();delete m.loggerList}},m.pr=m.prototype,m.pr.ready=function(){this.isReady=!0;for(var e=this.logCache.length,t=0;t<e;t++)this.sendData.apply(this,this.logCache[t])},m.pr.sendData=function(e,t,n){var i;(i="pv"==t?this.initPvData(n):"cl"==t?this.initClickData(n):"cd"==t?this.initShoppingData(n):"od"==t?this.initOrderData(n):"sr"==t?this.initPageUnloadData(n):"ep"==t?this.initExposureData(n):n).tpc=e,i.report_ts=w()/1e3,i.token=m.md5(i.report_ts+h),i.data[0].typ=t,this.request(i,"sr"==t||"cl"==t)},m.pr.send=function(e,t,n){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},m.pr.request=function(e,t){var n=!1;if(a({url:f()+"?std="+e.std,data:e,method:"POST",header:{"content-type":"application/json"},success:function(t){console.log("requestDone",e),n=!0}}),t)for(var i=w()+100;w()<i||n;);},m.pr.exports=function(){var e=this;return{set:function(t){e.setData(t)},pv:function(t){e.lastPvTime&&w()-e.lastPvTime<100||(e.lastPvTime=w(),e.env[L]||(e.setupPageview(),e.env[L]=!0),e.send("wx_app.000000","pv",t),e.env[L]=!1)},click:function(t){e.send("wx_app.000001","cl",t)},exposure:function(t){e.send("wx_app.000005","ep",t)},autoClick:function(t){var n,i=t.target.dataset,a=t.currentTarget.dataset;if(i&&i.eid?n=i:a&&a.eid&&(n=a),n){var x={eid:n.eid,elevel:n.elevel,eparam:n.eparam,pname:n.pname,pparam:n.pparam,target:n.target,event:t};e.send("wx_app.000001","cl",x)}},addToCart:function(t){e.send("wx_app.000002","cd",t)},order:function(t){e.send("wx_app.000003","od",t)},pageUnload:function(t){e.send("wx_app.000004","sr",t)},getSeries:function(){return e.env[L]||(e.setupPageview(),e.env[L]=!0),JSON.stringify(e.getSeriesData())},urlAddSeries:function(e){var t=(e||"").indexOf("#"),n="wxappSeries="+encodeURIComponent(this.getSeries());return t>-1?t===e.length-1?e+n:e+"&"+n:e+"#"+n},setMParam:function(t){return e.setMParam(t)}}},function(e){var t=0;function n(e){return a(i(x(e)))}function i(e){return c(_(r(e),8*e.length))}function a(e){for(var n,i=t?"0123456789ABCDEF":"0123456789abcdef",a="",x=0;x<e.length;x++)n=e.charCodeAt(x),a+=i.charAt(n>>>4&15)+i.charAt(15&n);return a}function x(e){for(var t,n,i="",a=-1;++a<e.length;)t=e.charCodeAt(a),n=a+1<e.length?e.charCodeAt(a+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),a++),t<=127?i+=String.fromCharCode(t):t<=2047?i+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i}function r(e){var t,n=Array(e.length>>2);for(t=0;t<n.length;t++)n[t]=0;for(t=0;t<8*e.length;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function c(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function _(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,i=-271733879,a=-1732584194,x=271733878,r=0;r<e.length;r+=16){var c=n,_=i,s=a,l=x;i=u(i=u(i=u(i=u(i=d(i=d(i=d(i=d(i=o(i=o(i=o(i=o(i=p(i=p(i=p(i=p(i,a=p(a,x=p(x,n=p(n,i,a,x,e[r+0],7,-680876936),i,a,e[r+1],12,-389564586),n,i,e[r+2],17,606105819),x,n,e[r+3],22,-1044525330),a=p(a,x=p(x,n=p(n,i,a,x,e[r+4],7,-176418897),i,a,e[r+5],12,1200080426),n,i,e[r+6],17,-1473231341),x,n,e[r+7],22,-45705983),a=p(a,x=p(x,n=p(n,i,a,x,e[r+8],7,1770035416),i,a,e[r+9],12,-1958414417),n,i,e[r+10],17,-42063),x,n,e[r+11],22,-1990404162),a=p(a,x=p(x,n=p(n,i,a,x,e[r+12],7,1804603682),i,a,e[r+13],12,-40341101),n,i,e[r+14],17,-1502002290),x,n,e[r+15],22,1236535329),a=o(a,x=o(x,n=o(n,i,a,x,e[r+1],5,-165796510),i,a,e[r+6],9,-1069501632),n,i,e[r+11],14,643717713),x,n,e[r+0],20,-373897302),a=o(a,x=o(x,n=o(n,i,a,x,e[r+5],5,-701558691),i,a,e[r+10],9,38016083),n,i,e[r+15],14,-660478335),x,n,e[r+4],20,-405537848),a=o(a,x=o(x,n=o(n,i,a,x,e[r+9],5,568446438),i,a,e[r+14],9,-1019803690),n,i,e[r+3],14,-187363961),x,n,e[r+8],20,1163531501),a=o(a,x=o(x,n=o(n,i,a,x,e[r+13],5,-1444681467),i,a,e[r+2],9,-51403784),n,i,e[r+7],14,1735328473),x,n,e[r+12],20,-1926607734),a=d(a,x=d(x,n=d(n,i,a,x,e[r+5],4,-378558),i,a,e[r+8],11,-2022574463),n,i,e[r+11],16,1839030562),x,n,e[r+14],23,-35309556),a=d(a,x=d(x,n=d(n,i,a,x,e[r+1],4,-1530992060),i,a,e[r+4],11,1272893353),n,i,e[r+7],16,-155497632),x,n,e[r+10],23,-1094730640),a=d(a,x=d(x,n=d(n,i,a,x,e[r+13],4,681279174),i,a,e[r+0],11,-358537222),n,i,e[r+3],16,-722521979),x,n,e[r+6],23,76029189),a=d(a,x=d(x,n=d(n,i,a,x,e[r+9],4,-640364487),i,a,e[r+12],11,-421815835),n,i,e[r+15],16,530742520),x,n,e[r+2],23,-995338651),a=u(a,x=u(x,n=u(n,i,a,x,e[r+0],6,-198630844),i,a,e[r+7],10,1126891415),n,i,e[r+14],15,-1416354905),x,n,e[r+5],21,-57434055),a=u(a,x=u(x,n=u(n,i,a,x,e[r+12],6,1700485571),i,a,e[r+3],10,-1894986606),n,i,e[r+10],15,-1051523),x,n,e[r+1],21,-2054922799),a=u(a,x=u(x,n=u(n,i,a,x,e[r+8],6,1873313359),i,a,e[r+15],10,-30611744),n,i,e[r+6],15,-1560198380),x,n,e[r+13],21,1309151649),a=u(a,x=u(x,n=u(n,i,a,x,e[r+4],6,-145523070),i,a,e[r+11],10,-1120210379),n,i,e[r+2],15,718787259),x,n,e[r+9],21,-343485551),n=v(n,c),i=v(i,_),a=v(a,s),x=v(x,l)}return Array(n,i,a,x)}function s(e,t,n,i,a,x){return v((r=v(v(t,e),v(i,x)))<<(c=a)|r>>>32-c,n);var r,c}function p(e,t,n,i,a,x,r){return s(t&n|~t&i,e,t,a,x,r)}function o(e,t,n,i,a,x,r){return s(t&i|n&~i,e,t,a,x,r)}function d(e,t,n,i,a,x,r){return s(t^n^i,e,t,a,x,r)}function u(e,t,n,i,a,x,r){return s(n^(t|~i),e,t,a,x,r)}function v(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}m.md5=n}();var w=function(){return(new Date).getTime()},y=function(){return w()+""+parseInt(2147483647*Math.random())},D=function(e){return"[object Object]"=={}.toString.call(e)},k=function(e,t){if(D(e)&&D(t))for(var n in t)e[n]=t[n]},C=function(e){if(D(e)){var t=[];for(var n in e)"m_param"!==n&&t.push(n+"="+e[n]);return t.join("&")}},R=0,S=R++,j=R++,A=R++,I=R++,T=R++,P=R++,b=R++,q=R++,z=R++,L=R++,O=R++,E=R++,U=R++,N=R++,J=R++,V=R++,W=R++,M=R++,X=R++,F=R++,Y=R++,$=R++,B=R++,H=R++,K=R++,Q=R++,G=R++,Z=R++,ee=R++,te=R++;m.pr.getData=function(e){for(var t={},n=0,i=e.length;n<i;n++){var a=e[n];t[a[0]]=this.env[a[1]]||""}return t};var ne=null;m.pr.setupPageview=function(){var e,a,x,r=this.env,c=w(),h=parseInt(c/1e3),f=n(_),g=n(s),m=n(p);r[z]=!1,e=h,a=r,(x=(g||"").split(".")).length>1?a[z]=a[z]||1*x[1]+v<e:a[z]=!0;var D,k,C,R,S,L,O,J,V,W,F,Y,$,Q=function(e,n,i){var a=(e||"").split("|"),x="",r="",c="",_="",s=!1;a.length>=6&&(n-a[5]<=d?(x=a[1],r=a[2],c=a[3],_=a[4]):s=!0);var p=i[N],o=[];if(ne&&t[ne]){var u=t[ne];o[0]=u[0],o[1]=encodeURIComponent(u[1]),o[2]=encodeURIComponent(u[2])||"none",o[3]=encodeURIComponent(u[3])||"-",ne=null}p&&p.utm_source&&(o[0]=encodeURIComponent(p.utm_source),o[1]=encodeURIComponent(p.utm_campaign||"")||r,o[2]=encodeURIComponent(p.utm_medium||"")||c,o[3]=encodeURIComponent(p.utm_term||"")||_,s=!0);var v=!1;o.length>0&&"direct"!=o[0]?v=(o[0]!==x||o[1]!==r||o[2]!==c)&&"referral"!==o[2]:o.length>0&&"direct"==o[0]&&("direct"===x||!x)&&(v=o[1]!==r||o[2]!==c||o[3]!==_);var l="";return(i[z]||v)&&(x=o[0]||x,r=o[1]||r,c=o[2]||c,_=o[3]||_),(s||v||a.length<5)&&(l=[1,x||"direct",r||"-",c||"none",_||"-",n].join("|")),i[z]=i[z]||v,l}(m,c,r),G=(W=h,F=r,Y=(g||"").split("."),$=1,Y.length>1?(F[z]=F[z]||1*Y[1]+v<W,$=(F[z]?1:1*Y[0]+1)||1):F[z]=!0,F[P]=$),Z=(D=h,k=r,O=(f||"").split("."),J=1,V=1,O.length>5?(J=O[0]||J,C=O[1]||y(),R=O[2]||D,k[z]?(S=O[4]||D,L=D,V=1*O[5]+1||1):(S=O[3]||D,L=O[4]||D,V=1*O[5]||1)):(C=y(),R=S=L=D,V=1),k[ee]=J,k[j]=C,k[A]=R,k[I]=S,k[T]=L,k[b]=V,[J,C,R,S,L,V].join("."));!function(e){if(e[te]&&e[te].pv_sid&&e[te].pv_seq){var t=1*e[te].pv_sid,n=1*e[te].pv_seq;t>99999999||(t>e[b]||t==e[b]&&n>=e[P])&&(e[b]=t,e[P]=n+1)}}(r),Q&&i(p,Q),G=[r[P],h].join("."),Z=[r[ee],r[j],r[A],r[I],r[T],r[b]].join("."),i(s,G),i(_,Z);var ie,ae,xe=function(e,t,n){var i=n[N],a="",x="";if(i&&i.customerinfo)a=i.customerinfo,x=t;else{var r=e instanceof Array?e:[];2==r.length&&t-r[1]<u&&(a=r[0],x=r[1])}return n[K]=a,a?[a,x]:[]}(n(o),h,r);if(i(o,xe),r[q]=Q||m,ie=this.env,(ae=n("jdwcx")||n("jdzdm"))&&(ae.unionid&&(ie[B]=ae.unionid),ae.wxversion&&(ie[H]=ae.wxversion)),!r[E])try{var re=getCurrentPages(),ce=re[re.length-1];ce.__route__?r[E]=ce.__route__:ce.route&&(r[E]=ce.route)}catch(e){}if(r[z])r[M]="",r[X]="";else{var _e=n(l);r[M]=_e[0],r[X]=_e[1]}i(l,[r[E],r[U]])},m.pr.initPvData=function(e){this.pageLoadTime=w(),this.maxClickDeep=0,e=e||{};var t=this.baseEnv(),n=[["sku",Q],["shp",G],["tit",O],["ldt",Z]],i=this.getData(n);return i.page_id=e.pageId||this.env[J]||"",i.pname=e.pname||this.env[V]||this.env[E]||"",i.pparam=e.pparam||this.env[W]||this.env[U]||"",k(t.data[0],i),k(t.data[0].ext,e.ext),t},m.pr.initClickData=function(e){var t,n=this.baseEnv(),i=n.data[0];if(i.eid=e.eid||"",i.eparam=e.eparam||"",i.elevel=e.elevel||"",i.page_id=e.pageId||this.env[J]||"",i.pname=e.pname||this.env[V]||this.env[E]||"",i.pparam=e.pparam||this.env[W]||this.env[U]||"",i.tar=e.target||"",i.x=0,i.y=0,t=e.event,D(t)&&t.type&&t.target){var a=e.event,x=a.touches;if((!x||x.length<1)&&(x=a.changedTouches),x&&x.length>0){i.x=parseInt(x[0].pageX);var r=parseInt(x[0].pageY);i.y=r,r>this.maxClickDeep&&(this.maxClickDeep=r)}}return k(i.ext,e.ext),n},m.pr.initExposureData=m.pr.initClickData,m.pr.initShoppingData=function(e){var t=this.baseEnv(),n=t.data[0];return n.eid=e.eid||"",n.eparam=e.eparam||"",n.elevel=e.elevel||"",n.page_id=e.pageId||this.env[J]||"",n.pname=e.pname||this.env[V]||this.env[E]||"",n.pparam=e.pparam||this.env[W]||this.env[U]||"",n.sku_list=e.shoppingList?JSON.stringify(e.shoppingList):"",k(n.ext,e.ext),t},m.pr.initOrderData=function(e){var t=this.baseEnv(),n=t.data[0];return n.eid=e.eid||"",n.eparam=e.eparam||"",n.elevel=e.elevel||"",n.page_id=e.pageId||this.env[J]||"",n.pname=e.pname||this.env[V]||this.env[E]||"",n.pparam=e.pparam||this.env[W]||this.env[U]||"",n.sku_list=e.orderList?JSON.stringify(e.orderList):"",n.order_total_fee=e.total||0,n.sale_ord_id=e.orderid||"",k(n.ext,e.ext),t},m.pr.initPageUnloadData=function(e){var t=((w()-this.pageLoadTime)/1e3).toFixed(3),n=this.baseEnv(),i=n.data[0];return e=e||{},i.page_id=e.pageId||this.env[J]||"",i.pname=e.pname||this.env[V]||this.env[E]||"",i.pparam=e.pparam||this.env[W]||this.env[U]||"",i.alive_seconds=t,i.click_deep=this.maxClickDeep,k(i.ext,e.ext),n},function(){m.wxDat={};var e=m.wxDat;x({success:function(t){t&&(e.dvc=t.model,e.pixelRatio=(t.pixelRatio||"")+"",e.scr=parseInt(t.windowWidth)+"x"+parseInt(t.windowHeight),e.lang=t.language,e.wxver=t.version,e.sdkver=t.SDKVersion||"")},complete:function(){m.dataReady("sysinfo")}}),r({success:function(t){t&&(e.net=t.networkType)},complete:function(){m.dataReady("netType")}})}(),m.pr.setData=function(e){if(D(e)){var t={account:[F],siteId:[S],skuid:[Q],shopid:[G],title:[O],loadtime:[Z],url:[E],urlParam:[U,C],pageId:[J],pname:[V],pparam:[W],appid:[Y],openid:[$],unionid:[B]};for(var i in e){var a=t[i];a?this.env[a[0]]=a[1]?a[1](e[i]):e[i]:this.ext[i]=e[i]}this.env[N]=e.urlParam||{},e&&D(e.urlParam)&&e.urlParam.m_param&&this.setMParam(e.urlParam.m_param),this.env[Y]||(this.env[Y]=n("appid"))}},m.appDat={},m.setAppData=function(e){for(var t in e)m.appDat[t]=e[t]},m.scene=null,m.setScene=function(e){m.scene=e,ne=e},m.pr.setMParam=function(e){try{this.env[te]=JSON.parse(e)||{}}catch(e){}},m.pr.baseEnv=function(){var e=this.env,t=m.wxDat,i={cli:c,std:e[S]||"WXAPP-JA2016-1",uuid:e[j]||"",scr:t.scr||"",dvc:t.dvc||"",lang:t.lang||"",appkey:e[H]||"",appid:e[Y]||"",openid:e[$]||"",unionid:e[B]||"",gender:t.gender||"",city:t.city||"",province:t.province||"",country:t.country||"",wxver:t.wxver||"",data:[]},a=[["ctp",E],["par",U],["ref",M],["rpr",X],["seq",P],["vts",b],["pin",F],["fst",A],["pst",I],["vct",T]],x=this.getData(a);return x.jsver="TR1.0.0",x.net=t.net||"",x.lat=t.lat||"",x.lon=t.lon||"",x.speed=t.speed||"",x.accuracy=t.accuracy||"",x.pixelRatio=t.pixelRatio||"",x.jdv=e[q]||"",x.customerInfo=e[K]||"",x.unpl=n("unpl")||"",x.scene=m.scene||"",x.sdkver=t.sdkver||"",x.ext={},k(x.ext,this.ext),k(x.ext,m.appDat),i.data.push(x),i},m.pr.getSeriesData=function(){var e=this.env,t={uuid:e[j]||"",std:e[S]||"WXAPP-JA2016-1",seq:e[P],vts:e[b]};return e[H]&&(t.appkey=e[H]),e[Y]&&(t.appid=e[Y]),t},m.initJda=function(){var e=n(_);if(!e){var t=(new Date).getTime();e=[1,t+""+parseInt(2147483647*Math.random()),t,t,t,0].join("."),i(_,e)}return e},module.exports={init:function(e){return new m(e).exports()},setAppData:function(e){m.setAppData(e)},setScene:function(e){m.setScene(e)}}}(Taro);
|
|
4
|
-
/* eslint-disable no-new */
|
|
1
|
+
var Taro=require("@tarojs/taro");!function(e){var t={};"weapp"===process.env.TARO_ENV&&(t={1e3:["direct","t_1000578828_xcx_1000_wxtd","xcx",""],1001:["direct","t_1000578828_xcx_1001_fxrk","xcx",""],1005:["weixin","t_1000578826_xcx_1005_fxss","xcx",""],1006:["weixin","t_1000578826_xcx_1006_fxss","xcx",""],1007:["weixin","t_1000578832_xcx_1007_drxxkp","xcx",""],1008:["weixin","t_1000578832_xcx_1008_qlxxkp","xcx",""],1011:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1012:["weixin","t_1000578833_xcx_1012_tpsm","xcx",""],1013:["weixin","t_1000578833_xcx_1013_xcsm","xcx",""],1014:["weixin","t_1000578827_xcx_1014_xcxmbxx","xcx",""],1017:["weixin","t_1000578829_xcx_1017_tyb","xcx",""],1019:["direct","t_1000578830_xcx_1019_qb","xcx",""],1020:["weixin","t_1000072662_xcx_1020_gzhjs","xcx",""],1022:["direct","t_1000578828_xcx_1022_zdrk","xcx",""],1023:["direct","t_1000578828_xcx_1023_zmtb","xcx",""],1024:["direct","t_1000578828_xcx_1024_xcxjs","xcx",""],1025:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1026:["weixin","t_1000578829_xcx_1026_fjxcx","xcx",""],1027:["weixin","t_1000578826_xcx_1027_dbss","xcx",""],1028:["direct","t_1000578836_xcx_1028_kqkb","xcx",""],1029:["direct","t_1000578836_xcx_1029_kqxq","xcx",""],1030:["weixin","t_1000578829_xcx_1030_zdhcs","xcx",""],1031:["weixin","t_1000578833_xcx_1031_tpsm","xcx",""],1032:["weixin","t_1000578833_xcx_1032_xcsm","xcx",""],1034:["weixin","t_1000578827_xcx_1034_zfwcxx","xcx",""],1035:["weixin","t_1000072662_xcx_1035_cdl","xcx",""],1036:["weixin","t_335139774_xcx_1036_appfxxx","xcx",""],1037:["weixin","t_1000578834_xcx_1037_xcxtz","xcx",""],1038:["weixin","t_1000578834_xcx_1038_xcxtz","xcx",""],1039:["weixin","t_1000578829_xcx_1039_yds","xcx",""],1042:["weixin","t_1000578826_xcx_1042_tjss","xcx",""],1043:["weixin","t_1000072662_xcx_1043_gzhxx","xcx",""],1044:["weixin","t_1000578832_xcx_1044_fxxxkp","xcx",""],1045:["weixin","t_1000578835_xcx_1045_pyq","xcx",""],1047:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1048:["weixin","t_1000578833_xcx_1048_tpsm","xcx",""],1049:["weixin","t_1000578833_xcx_1049_xcsm","xcx",""],1052:["direct","t_1000578836_xcx_1052_kqmdlb","xcx",""],1053:["weixin","t_1000578826_xcx_1053_sys","xcx",""],1054:["direct","t_1000578828_xcx_1054_dbss","xcx",""],1055:["weixin","t_1000578829_xcx_1055_h5hq","xcx",""],1056:["weixin","t_1000578829_xcx_1056_ylbf","xcx",""],1057:["direct","t_1000578830_xcx_1057_yxkxqy","xcx",""],1058:["weixin","t_1000072663_xcx_1058_gzhwz","xcx",""],1059:["weixin","t_1000578829_xcx_1059_yqy","xcx",""],1064:["weixin","t_1000578829_xcx_1064_wifilj","xcx",""],1067:["weixin","t_1000578835_xcx_1067_gzh","xcx",""],1068:["weixin","t_1000578835_xcx_1068_fjxcx","xcx",""],1069:["weixin","t_1000578829_xcx_1069_ydyy","xcx",""],1071:["direct","t_1000578830_xcx_1071_yxklby","xcx",""],1072:["weixin","t_1000578833_xcx_1072_ewmsk","xcx",""],1073:["weixin","t_1000578829_xcx_1073_kfxx","xcx",""],1074:["weixin","t_1000072663_xcx_1074_gzhxx","xcx",""],1077:["weixin","t_1000578829_xcx_1077_yzb","xcx",""],1078:["weixin","t_1000578829_xcx_1078_wifilj","xcx",""],1079:["weixin","t_1000578829_xcx_1079_yxzx","xcx",""],1081:["weixin","t_1000578829_xcx_1081_kfwzl","xcx",""],1082:["weixin","t_1000072663_xcx_1082_hhwzl","xcx",""],1089:["direct","t_1000578828_xcx_1089_ltkxl","xcx",""],1090:["direct","t_1000578828_xcx_1090_xcxcd","xcx",""],1091:["weixin","t_1000072663_xcx_1091_wzspkp","xcx",""],1092:["direct","t_1000578829_xcx_1092_csfwrk","xcx",""],1095:["weixin","t_1000578835_xcx_1095_xcxzj","xcx",""],1096:["direct","t_1000578828_xcx_1096_ltjl","xcx",""],1097:["weixin","t_1000578829_xcx_1097_zfqy","xcx",""]});var n=function(t){var n="";try{n=e.getStorageSync(t)}catch(e){}return n},i=function(t,n){try{e.setStorageSync(t,n)}catch(e){}},a=e.request,x=e.getSystemInfo,r=e.getNetworkType,c="";"weapp"===process.env.TARO_ENV?c="wx-app":"swan"===process.env.TARO_ENV?c="baidu-app":"tt"===process.env.TARO_ENV?c="toutiao-app":"alipay"===process.env.TARO_ENV?c="alipay-app":"rn"===process.env.TARO_ENV?c="rn-app":"h5"===process.env.TARO_ENV&&(c="h5-app");var _="__jda",s="__jdd",p="__jdv",o="union_customerinfo",d=864e5,u=86400,v=1800,l="__refer",h="5YT%aC89$22OI@pQ",f=function(){var e="https://conecli.com/log/m";try{var t=getApp({allowDefault:!0});t&&t.globalRequestUrl&&(e=t.globalRequestUrl.replace(/\
|
package/dist/open/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '../
|
|
1
|
+
import taroJdBaseInfo from '../common'
|
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
|
|
2
|
+
@import '~normalize.css';
|
|
3
|
+
@import './base';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
html {
|
|
7
|
+
|
|
8
|
+
//font-size: 32PX;
|
|
9
|
+
-webkit-text-size-adjust: 100%;
|
|
10
|
+
-ms-text-size-adjust: 100%;
|
|
11
|
+
-moz-text-size-adjust: 100%;
|
|
12
|
+
width: 100%; // 安卓webview需要撑开
|
|
13
|
+
min-height: 100px;
|
|
14
|
+
//height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
width: 100%; // 安卓webview需要撑开
|
|
19
|
+
//height: 100%;
|
|
20
|
+
min-height: 100px; // 最小高度在安卓webview中必须存在
|
|
21
|
+
|
|
22
|
+
font-family: 'Microsoft YaHei', PingFangSC, Helvetica, 'Droid Sans', Arial,
|
|
23
|
+
sans-serif !important;
|
|
24
|
+
background-color: #f2f2f2;
|
|
25
|
+
//解决taro转换h5后默认body行高1.6
|
|
26
|
+
line-height: 1.15;
|
|
27
|
+
// 解决某些情况下完全不相关的元素也跟着抖动闪烁 ----- 无法解决,还会引起app里面click事件点击无效 ,需删除
|
|
28
|
+
//transform: translate3d(0, 0, 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body,
|
|
32
|
+
div,
|
|
33
|
+
dl,
|
|
34
|
+
dt,
|
|
35
|
+
dd,
|
|
36
|
+
ul,
|
|
37
|
+
ol,
|
|
38
|
+
li,
|
|
39
|
+
h1,
|
|
40
|
+
h2,
|
|
41
|
+
h3,
|
|
42
|
+
h4,
|
|
43
|
+
h5,
|
|
44
|
+
h6,
|
|
45
|
+
pre,
|
|
46
|
+
code,
|
|
47
|
+
form,
|
|
48
|
+
fieldset,
|
|
49
|
+
legend,
|
|
50
|
+
input,
|
|
51
|
+
textarea,
|
|
52
|
+
p,
|
|
53
|
+
blockquote,
|
|
54
|
+
th,
|
|
55
|
+
td,
|
|
56
|
+
hr,
|
|
57
|
+
button,
|
|
58
|
+
article,
|
|
59
|
+
aside,
|
|
60
|
+
details,
|
|
61
|
+
figcaption,
|
|
62
|
+
figure,
|
|
63
|
+
footer,
|
|
64
|
+
header,
|
|
65
|
+
hgroup,
|
|
66
|
+
menu,
|
|
67
|
+
nav,
|
|
68
|
+
section {
|
|
69
|
+
margin: 0;
|
|
70
|
+
padding: 0;
|
|
71
|
+
|
|
72
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
73
|
+
-webkit-tap-highlight-color: transparent;
|
|
74
|
+
|
|
75
|
+
outline: none;
|
|
76
|
+
//font-weight: normal;
|
|
77
|
+
// 该属性会额外引起safari等ios浏览器偶发卡顿,ios13也默认支持回弹效果,所以移除该属性 https://www.cnblogs.com/xiahj/p/8036419.html
|
|
78
|
+
//-webkit-overflow-scrolling: touch;
|
|
79
|
+
//对字体进行抗锯齿渲染可以使字体看起来会更清晰舒服。在图标字体成为一种趋势的今天,抗锯齿渲染使用也越来越多。antialiased:抗锯齿很好
|
|
80
|
+
-webkit-font-smoothing: antialiased;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
.ban-show-menu {
|
|
85
|
+
-webkit-touch-callout: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.user-ban-select {
|
|
90
|
+
user-select: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.user-can-select {
|
|
94
|
+
user-select: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
input[type='number']::-webkit-outer-spin-button,
|
|
99
|
+
input[type='number']::-webkit-inner-spin-button {
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
input,
|
|
105
|
+
button,
|
|
106
|
+
select,
|
|
107
|
+
textarea,
|
|
108
|
+
a {
|
|
109
|
+
-webkit-appearance: none !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
a,
|
|
113
|
+
a:active {
|
|
114
|
+
outline: none;
|
|
115
|
+
text-decoration: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
textarea {
|
|
119
|
+
resize: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
input,
|
|
123
|
+
button,
|
|
124
|
+
textarea,
|
|
125
|
+
a {
|
|
126
|
+
border: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.clearFix {
|
|
130
|
+
zoom: 1;
|
|
131
|
+
display: block;
|
|
132
|
+
_height: 1px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.clearFix:after {
|
|
136
|
+
content: '.';
|
|
137
|
+
display: block;
|
|
138
|
+
height: 0;
|
|
139
|
+
clear: both;
|
|
140
|
+
visibility: hidden;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
img {
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
|
|
147
|
+
//transform: perspective(1px) translate3d(0, 0, 0);
|
|
148
|
+
//-webkit-backface-visibility: hidden;
|
|
149
|
+
//-webkit-transform-style: preserve-3d;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.clearFlow {
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
*zoom: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
ul li {
|
|
159
|
+
list-style-type: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ul-li-float li {
|
|
163
|
+
float: left;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
.opacity-0 {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
filter: alpha(opacity=0);
|
|
170
|
+
*zoom: 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.opacity-20 {
|
|
174
|
+
opacity: 0.2;
|
|
175
|
+
filter: alpha(opacity=20);
|
|
176
|
+
*zoom: 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.opacity-50 {
|
|
180
|
+
opacity: 0.5;
|
|
181
|
+
filter: alpha(opacity=50);
|
|
182
|
+
*zoom: 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.opacity-60 {
|
|
186
|
+
opacity: 0.6;
|
|
187
|
+
filter: alpha(opacity=60);
|
|
188
|
+
*zoom: 1;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.opacity-80 {
|
|
192
|
+
opacity: 0.8;
|
|
193
|
+
filter: alpha(opacity=80);
|
|
194
|
+
*zoom: 1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.opacity-100 {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
filter: alpha(opacity=100);
|
|
200
|
+
*zoom: 1;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
.d-half-1px-line::after {
|
|
205
|
+
border-width: 0;
|
|
206
|
+
border-radius: 0;
|
|
207
|
+
border-bottom-width: 1PX;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.d-ios-force-border-radius {
|
|
211
|
+
transform: translateZ(0);
|
|
212
|
+
mask-image: radial-gradient(circle, white 100%, black 100%);
|
|
213
|
+
}
|
|
214
|
+
//反写taro转小程序样式
|
|
215
|
+
.hydrated {
|
|
216
|
+
visibility: visible;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 视频封面全屏铺满
|
|
220
|
+
video {
|
|
221
|
+
object-fit: cover;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.d-video-forbid-fullscreen-button {
|
|
225
|
+
&::-webkit-media-controls-fullscreen-button {
|
|
226
|
+
display: none !important;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
taro-view-core,
|
|
231
|
+
taro-image-core,
|
|
232
|
+
taro-text-core,
|
|
233
|
+
taro-video-core {
|
|
234
|
+
|
|
235
|
+
outline: none;
|
|
236
|
+
//font-weight: normal;
|
|
237
|
+
-webkit-overflow-scrolling: touch;
|
|
238
|
+
//对字体进行抗锯齿渲染可以使字体看起来会更清晰舒服。在图标字体成为一种趋势的今天,抗锯齿渲染使用也越来越多。antialiased:抗锯齿很好
|
|
239
|
+
-webkit-font-smoothing: antialiased;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
//解决小程序图片宽度320高度默认240的问题
|
|
243
|
+
taro-image-core {
|
|
244
|
+
display: block;
|
|
245
|
+
width: 100%;
|
|
246
|
+
height: auto;
|
|
247
|
+
|
|
248
|
+
//transform: translate3d(0, 0, 0) perspective(1px);
|
|
249
|
+
//-webkit-backface-visibility: hidden;
|
|
250
|
+
//-webkit-transform-style: preserve-3d;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// 解决多行省略的时候可能无法展示的问题
|
|
254
|
+
taro-text-core {
|
|
255
|
+
white-space: normal;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
taro-video-core {
|
|
259
|
+
video {
|
|
260
|
+
object-fit: cover !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//标签选择不生效
|
|
264
|
+
taro-video-control {
|
|
265
|
+
background-color: transparent;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.taro-video-bar {
|
|
269
|
+
background-color: transparent;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.weui-icon-info {
|
|
274
|
+
&:before {
|
|
275
|
+
content: '';
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
.taro-checkbox_checked {
|
|
279
|
+
display: inline-block;
|
|
280
|
+
top: 0;
|
|
281
|
+
margin: -2px 10px 0 0;
|
|
282
|
+
width: 32px;
|
|
283
|
+
height: 32px;
|
|
284
|
+
font-size: 36px;
|
|
285
|
+
color: #333;
|
|
286
|
+
vertical-align: middle;
|
|
287
|
+
border-color: rgba(209, 209, 209, 0.8);
|
|
288
|
+
&:checked:before {
|
|
289
|
+
color: #e93b3d;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
taro-radio-core {
|
|
293
|
+
&.weui-cells_checkbox {
|
|
294
|
+
.weui-check + .weui-icon-checked {
|
|
295
|
+
vertical-align: middle;
|
|
296
|
+
&:before {
|
|
297
|
+
margin-top: -4px;
|
|
298
|
+
font-size: 36px;
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
.weui-check:checked + .weui-icon-checked {
|
|
303
|
+
&:before {
|
|
304
|
+
color: #e93b3d;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
.taro__toast {
|
|
312
|
+
transition: none !important;
|
|
313
|
+
|
|
314
|
+
div:last-child {
|
|
315
|
+
//background: transparent !important;
|
|
316
|
+
|
|
317
|
+
p {
|
|
318
|
+
&:first-child {
|
|
319
|
+
width: 80px !important;
|
|
320
|
+
height: 80px !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:last-child {
|
|
324
|
+
margin-top: 8px !important;
|
|
325
|
+
font-size: 28px !important;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.d-shop-loading {
|
|
332
|
+
position: fixed;
|
|
333
|
+
top: 0;
|
|
334
|
+
left: 0;
|
|
335
|
+
right: 0;
|
|
336
|
+
bottom: 0;
|
|
337
|
+
z-index: 100;
|
|
338
|
+
|
|
339
|
+
.d-loading-content {
|
|
340
|
+
text-align: center;
|
|
341
|
+
}
|
|
342
|
+
span {
|
|
343
|
+
display: inline-block;
|
|
344
|
+
width: 100px;
|
|
345
|
+
height: 100px;
|
|
346
|
+
background: url('https://img13.360buyimg.com/imagetools/jfs/t1/151010/32/14284/30214/5ff66791Ea1bc6cc6/698c0772b377aef5.png')
|
|
347
|
+
no-repeat center center / 72px 72px;
|
|
348
|
+
}
|
|
349
|
+
.d-shop-text {
|
|
350
|
+
font-size: 24px;
|
|
351
|
+
color: #232325;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
//
|
|
356
|
+
//.Yep-mask {
|
|
357
|
+
// position: fixed;
|
|
358
|
+
// z-index: 222;
|
|
359
|
+
// top: 0;
|
|
360
|
+
// right: 0;
|
|
361
|
+
// left: 0;
|
|
362
|
+
// bottom: 0;
|
|
363
|
+
// background: rgba(0, 0, 0, 0.65);
|
|
364
|
+
// height: 100%;
|
|
365
|
+
//}
|
|
366
|
+
//
|
|
367
|
+
//.Yep-mask_transparent {
|
|
368
|
+
// position: fixed;
|
|
369
|
+
// z-index: 222;
|
|
370
|
+
// top: 0;
|
|
371
|
+
// right: 0;
|
|
372
|
+
// left: 0;
|
|
373
|
+
// bottom: 0;
|
|
374
|
+
// height: 100%;
|
|
375
|
+
//}
|
|
376
|
+
//
|
|
377
|
+
//.Yep-popup {
|
|
378
|
+
// position: fixed;
|
|
379
|
+
// left: 0;
|
|
380
|
+
// right: 0;
|
|
381
|
+
// top: 0;
|
|
382
|
+
// bottom: 0;
|
|
383
|
+
// width: 100%;
|
|
384
|
+
// z-index: 222;
|
|
385
|
+
// overflow: auto;
|
|
386
|
+
// outline: 0;
|
|
387
|
+
//}
|
|
388
|
+
//
|
|
389
|
+
//.Yep-dialog {
|
|
390
|
+
// position: relative;
|
|
391
|
+
//
|
|
392
|
+
// &-transparent {
|
|
393
|
+
// width: 540px;
|
|
394
|
+
// }
|
|
395
|
+
//
|
|
396
|
+
// &-content {
|
|
397
|
+
// position: relative;
|
|
398
|
+
// background-color: #ffffff;
|
|
399
|
+
// border: 0;
|
|
400
|
+
// text-align: center;
|
|
401
|
+
// height: 100%;
|
|
402
|
+
// overflow: hidden;
|
|
403
|
+
// }
|
|
404
|
+
//
|
|
405
|
+
// &-transparent &-content {
|
|
406
|
+
// border-radius: 18px;
|
|
407
|
+
// padding-top: 30px;
|
|
408
|
+
// }
|
|
409
|
+
//
|
|
410
|
+
// &-header {
|
|
411
|
+
// padding: 12px 30px 30px;
|
|
412
|
+
// }
|
|
413
|
+
//
|
|
414
|
+
// &-title {
|
|
415
|
+
// margin: 0;
|
|
416
|
+
// font-size: 36px;
|
|
417
|
+
// line-height: 1;
|
|
418
|
+
// color: #000;
|
|
419
|
+
// text-align: center;
|
|
420
|
+
// }
|
|
421
|
+
//
|
|
422
|
+
// &-body {
|
|
423
|
+
// font-size: 32px;
|
|
424
|
+
// color: #888;
|
|
425
|
+
// height: 100%;
|
|
426
|
+
// line-height: 1.5;
|
|
427
|
+
// overflow: auto;
|
|
428
|
+
// }
|
|
429
|
+
//
|
|
430
|
+
//
|
|
431
|
+
// &-transparent &-content &-header + &-body {
|
|
432
|
+
// padding: 0 30px 30px;
|
|
433
|
+
// }
|
|
434
|
+
//
|
|
435
|
+
// &-transparent &-content &-body {
|
|
436
|
+
// padding: 28px 30px 58px;
|
|
437
|
+
// }
|
|
438
|
+
//
|
|
439
|
+
// &-wrap {
|
|
440
|
+
// display: flex;
|
|
441
|
+
// align-items: center;
|
|
442
|
+
// justify-content: center;
|
|
443
|
+
// position: fixed;
|
|
444
|
+
// top: 0;
|
|
445
|
+
// left: 0;
|
|
446
|
+
// bottom: 0;
|
|
447
|
+
// right: 0;
|
|
448
|
+
// z-index: 222;
|
|
449
|
+
// }
|
|
450
|
+
//
|
|
451
|
+
// &-button-group-h {
|
|
452
|
+
// display: flex;
|
|
453
|
+
// }
|
|
454
|
+
//
|
|
455
|
+
// &-button-group-h &-button {
|
|
456
|
+
// position: relative;
|
|
457
|
+
// flex: 1;
|
|
458
|
+
// box-sizing: border-box;
|
|
459
|
+
// text-align: center;
|
|
460
|
+
// text-decoration: none;
|
|
461
|
+
// outline: none;
|
|
462
|
+
// background-color: #2a83e1;
|
|
463
|
+
// color: #ffffff;
|
|
464
|
+
// font-size: 36px;
|
|
465
|
+
// height: 88px;
|
|
466
|
+
// line-height: 88px;
|
|
467
|
+
// display: block;
|
|
468
|
+
// width: auto;
|
|
469
|
+
// overflow: hidden;
|
|
470
|
+
// text-overflow: ellipsis;
|
|
471
|
+
// white-space: nowrap;
|
|
472
|
+
//
|
|
473
|
+
// &:after {
|
|
474
|
+
// content: '';
|
|
475
|
+
// display: block;
|
|
476
|
+
// position: absolute;
|
|
477
|
+
// width: 100%;
|
|
478
|
+
// left: 0;
|
|
479
|
+
// top: 0;
|
|
480
|
+
// height: 1px;
|
|
481
|
+
// background-color: #dadada;
|
|
482
|
+
// -webkit-transform: scaleY(0.5);
|
|
483
|
+
// transform: scaleY(0.5);
|
|
484
|
+
// pointer-events: none;
|
|
485
|
+
// }
|
|
486
|
+
// }
|
|
487
|
+
//
|
|
488
|
+
// &-button:first-child {
|
|
489
|
+
// background-color: #ffffff;
|
|
490
|
+
// color: #000000;
|
|
491
|
+
// }
|
|
492
|
+
//}
|
|
493
|
+
|
|
494
|
+
.fade-enter {
|
|
495
|
+
opacity: 0.01;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.fade-enter-active {
|
|
499
|
+
opacity: 1;
|
|
500
|
+
transition: all 300ms ease-out;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.fade-exit {
|
|
504
|
+
opacity: 1;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.fade-exit-active {
|
|
508
|
+
opacity: 0.01;
|
|
509
|
+
transition: all 300ms ease-out;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.zoom-enter {
|
|
513
|
+
opacity: 0.01;
|
|
514
|
+
transform: scale(0);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.zoom-enter-active {
|
|
518
|
+
opacity: 1;
|
|
519
|
+
transform: scale(1);
|
|
520
|
+
transition: all 300ms ease-out;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.zoom-exit {
|
|
524
|
+
opacity: 1;
|
|
525
|
+
transform: scale(1);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.zoom-exit-active {
|
|
529
|
+
opacity: 0.01;
|
|
530
|
+
transform: scale(0);
|
|
531
|
+
transition: all 300ms ease-out;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.slide-up-enter {
|
|
535
|
+
transform: translateY(100%);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.slide-up-enter-active {
|
|
539
|
+
transform: translateY(0%);
|
|
540
|
+
transition: all 300ms ease-out;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.slide-up-exit {
|
|
544
|
+
transform: translateY(0%);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.slide-up-exit-active {
|
|
548
|
+
transform: translateY(100%);
|
|
549
|
+
transition: all 300ms ease-in;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.slide-down-enter {
|
|
553
|
+
transform: translateY(-100%);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.slide-down-enter-active {
|
|
557
|
+
transform: translateY(0%);
|
|
558
|
+
transition: all 300ms ease-out;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.slide-down-exit {
|
|
562
|
+
transform: translateY(0%);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.slide-down-exit-active {
|
|
566
|
+
transform: translateY(-100%);
|
|
567
|
+
transition: all 300ms ease-in;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.slide-right-enter {
|
|
571
|
+
transform: translateX(100%);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.slide-right-enter-active {
|
|
575
|
+
transform: translateX(0%);
|
|
576
|
+
transition: all 300ms ease-out;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.slide-right-exit {
|
|
580
|
+
transform: translateX(0%);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.slide-right-exit-active {
|
|
584
|
+
transform: translateX(100%);
|
|
585
|
+
transition: all 300ms ease-in;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.slide-left-enter {
|
|
589
|
+
transform: translateX(-100%);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.slide-left-enter-active {
|
|
593
|
+
transform: translateX(0%);
|
|
594
|
+
transition: all 300ms ease-out;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.slide-left-exit {
|
|
598
|
+
transform: translateX(0%);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.slide-left-exit-active {
|
|
602
|
+
transform: translateX(-100%);
|
|
603
|
+
transition: all 300ms ease-in;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
page {
|
|
3
|
+
|
|
4
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
5
|
+
-webkit-tap-highlight-color: transparent;
|
|
6
|
+
outline: none;
|
|
7
|
+
// 京购小程序app有默认行高,这里反写回来,防止影响 和 h5保持一致
|
|
8
|
+
line-height: 1.15 !important;
|
|
9
|
+
background: #f2f2f2;
|
|
10
|
+
// 购物小程序在app.css中全局给page顶部加了一条边,可以使用以下方式覆盖:
|
|
11
|
+
&::before {
|
|
12
|
+
border-bottom: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@import './base';
|
|
16
|
+
|
|
17
|
+
image {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
package/dist/sass/base.scss
CHANGED
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'JDZhengHT-Bold';
|
|
4
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Bold.ttf) format('truetype');
|
|
5
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Bold.ttf')
|
|
6
|
+
format('truetype');
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'JDZhengHT-Light';
|
|
13
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Light.ttf) format('truetype');
|
|
14
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Light.ttf')
|
|
15
|
+
format('truetype');
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'JDZhengHT-Regular';
|
|
22
|
+
//src: url(https://storage.360buyimg.com/jshopstorage/JDZhengHT-Regular.ttf) format('truetype');
|
|
23
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZH_Regular.ttf')
|
|
24
|
+
format('truetype');
|
|
25
|
+
font-weight: normal;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'JDZhengHT-EN-Bold';
|
|
31
|
+
src: url('https://wq.360buyimg.com/data/ppms/others/JDZhengHei_01_Bold.ttf')
|
|
32
|
+
format('truetype');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.font-jdzht {
|
|
36
|
+
font-family: 'JDZhengHT-Regular';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.font-jdzht-bold {
|
|
40
|
+
font-family: 'JDZhengHT-Bold';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.font-jdzht-en-bold {
|
|
44
|
+
font-family: 'JDZhengHT-EN-Bold';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.font-jdzht-light {
|
|
48
|
+
font-family: 'JDZhengHT-Light';
|
|
49
|
+
}
|
|
50
|
+
|
|
2
51
|
|
|
3
52
|
.border-box {
|
|
4
53
|
box-sizing: border-box;
|
|
@@ -204,6 +253,24 @@
|
|
|
204
253
|
overflow: hidden;
|
|
205
254
|
white-space: nowrap;
|
|
206
255
|
text-overflow: clip;
|
|
256
|
+
//display: -webkit-box;
|
|
257
|
+
//overflow: hidden;
|
|
258
|
+
//word-break: break-all;
|
|
259
|
+
//text-overflow: ellipsis;
|
|
260
|
+
//-webkit-line-clamp: 1;
|
|
261
|
+
//
|
|
262
|
+
//-webkit-box-orient: inherit;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.text-ellipsis-1-no-omit {
|
|
266
|
+
display: -webkit-box;
|
|
267
|
+
overflow: hidden;
|
|
268
|
+
word-break: break-all;
|
|
269
|
+
text-overflow: ellipsis;
|
|
270
|
+
-webkit-line-clamp: 1;
|
|
271
|
+
|
|
272
|
+
// -webkit-box-orient: inherit;
|
|
273
|
+
-webkit-box-orient: vertical;
|
|
207
274
|
}
|
|
208
275
|
|
|
209
276
|
.text-ellipsis-2-no-omit {
|
package/dist/utils/MQ.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
interface Message {
|
|
2
1
|
callback:Function
|
|
3
2
|
time: number
|
|
4
3
|
messages: Message[]
|
|
5
4
|
timerId: number
|
|
6
5
|
timeGap: number
|
|
7
6
|
mqDelay: number
|
|
8
7
|
constructor() {
|
|
9
8
|
this.messages = []
|
|
10
9
|
this.timerId = 0
|
|
11
10
|
this.timeGap = 17
|
|
12
11
|
this.mqDelay = 50
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
static getInstance() {
|
|
16
15
|
if (window.top._mq == null) {
|
|
17
16
|
window.top._mq = new MQ()
|
|
18
17
|
}
|
|
19
18
|
return window.top._mq
|
|
20
19
|
}
|
|
21
20
|
onTimer() {
|
|
22
21
|
const nowTime = Date.now()
|
|
23
22
|
let leftMsgList:Message[] = []
|
|
24
23
|
const msgList = this.messages.filter((item:Message)=>{
|
|
25
24
|
if(nowTime - item.time >= this.mqDelay){
|
|
26
25
|
return true
|
|
27
26
|
}
|
|
28
27
|
else{
|
|
29
28
|
leftMsgList.push(item)
|
|
30
29
|
return false
|
|
31
30
|
}
|
|
32
31
|
})
|
|
33
32
|
msgList.forEach((msg)=>{
|
|
34
33
|
msg.callback()
|
|
35
34
|
})
|
|
36
35
|
this.messages = leftMsgList
|
|
37
36
|
if(this.messages.length>0){
|
|
38
37
|
this.timerId = 0
|
|
39
38
|
this.starTimer()
|
|
40
39
|
}
|
|
41
40
|
else{
|
|
42
41
|
this.stopTimer()
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
starTimer() {
|
|
46
45
|
if(this.timerId== 0){
|
|
47
46
|
this.timerId = setTimeout(()=>{
|
|
48
47
|
this.onTimer()
|
|
49
48
|
}, this.timeGap)
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
stopTimer() {
|
|
53
52
|
if(this.timerId>0){
|
|
54
53
|
clearTimeout(this.timerId)
|
|
55
54
|
}
|
|
56
55
|
this.timerId = 0
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
addCallBack(callback: Function) {
|
|
60
59
|
if(callback){
|
|
61
60
|
const msg: Message = {
|
|
62
61
|
callback,
|
|
63
62
|
time: Date.now()
|
|
64
63
|
}
|
|
65
64
|
this.messages.push(msg)
|
|
66
65
|
this.starTimer()
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
clear() {
|
|
70
69
|
this.messages = []
|
|
71
70
|
this.stopTimer()
|
|
72
71
|
}
|
|
72
|
+
interface Message {
|
|
73
73
|
callback:Function
|
|
74
74
|
time: number
|
|
75
75
|
messages: Message[]
|
|
76
76
|
timerId: number
|
|
77
77
|
timeGap: number
|
|
78
78
|
mqDelay: number
|
|
79
79
|
constructor() {
|
|
80
80
|
this.messages = []
|
|
81
81
|
this.timerId = 0
|
|
82
82
|
this.timeGap = 17
|
|
83
83
|
this.mqDelay = 50
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
static getInstance() {
|
|
87
87
|
_mq = new MQ()
|
|
88
88
|
}
|
|
89
89
|
return _mq
|
|
90
90
|
}
|
|
91
91
|
onTimer() {
|
|
92
92
|
const nowTime = Date.now()
|
|
93
93
|
let leftMsgList:Message[] = []
|
|
94
94
|
const msgList = this.messages.filter((item:Message)=>{
|
|
95
95
|
if(nowTime - item.time >= this.mqDelay){
|
|
96
96
|
return true
|
|
97
97
|
}
|
|
98
98
|
else{
|
|
99
99
|
leftMsgList.push(item)
|
|
100
100
|
return false
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
103
|
msgList.forEach((msg)=>{
|
|
104
104
|
msg.callback()
|
|
105
105
|
})
|
|
106
106
|
this.messages = leftMsgList
|
|
107
107
|
if(this.messages.length>0){
|
|
108
108
|
this.timerId = 0
|
|
109
109
|
this.starTimer()
|
|
110
110
|
}
|
|
111
111
|
else{
|
|
112
112
|
this.stopTimer()
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
starTimer() {
|
|
116
116
|
if(this.timerId== 0){
|
|
117
117
|
this.timerId = setTimeout(()=>{
|
|
118
118
|
this.onTimer()
|
|
119
119
|
}, this.timeGap)
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
stopTimer() {
|
|
123
123
|
if(this.timerId>0){
|
|
124
124
|
clearTimeout(this.timerId)
|
|
125
125
|
}
|
|
126
126
|
this.timerId = 0
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
addCallBack(callback: Function) {
|
|
130
130
|
if(callback){
|
|
131
131
|
const msg: Message = {
|
|
132
132
|
callback,
|
|
133
133
|
time: Date.now()
|
|
134
134
|
}
|
|
135
135
|
this.messages.push(msg)
|
|
136
136
|
this.starTimer()
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
clear() {
|
|
140
140
|
this.messages = []
|
|
141
141
|
this.stopTimer()
|
|
142
142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/open/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@tarojs/runtime": "3.4.3",
|
|
53
53
|
"@tarojs/taro": "3.4.3",
|
|
54
54
|
"art-template": "^4.13.2",
|
|
55
|
+
"normalize.css": "^8.0.1",
|
|
55
56
|
"raf": "^3.4.1",
|
|
56
57
|
"react": "^17.0.0",
|
|
57
58
|
"react-content-loader": "^6.2.0",
|