4 文件已重命名
18个文件已修改
2 文件已复制
62个文件已添加
| | |
| | | const g = typeof global !== 'undefined' ? global : self; |
| | | g.appXAppJson = { |
| | | "app": { |
| | | "$homepage": "pages/mine/mine" |
| | | "$homepage": "pages/sponsor-signup/sponsor-signup" |
| | | } |
| | | }; |
| | |
| | | require('../../node_modules/mini-ali-ui/es/list/auto-size-img/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/list/list-item/index?hash=a5465b8c889360e3f854461d3ac41cf414aec633'); |
| | | require('../../node_modules/mini-ali-ui/es/picker-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../node_modules/mini-ali-ui/es/notice/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/mask/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/index?hash=6d8aebee62dceaacd4af71bcf2a181cfc15220af'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/popover-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/footer/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/pagination/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/grid/index?hash=45fe1418d25fc81c09eccb62e0568b7faa62b362'); |
| | | require('../../node_modules/circle-statistic-view/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-switch/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../pages/sponsor-signup/sponsor-signup?hash=20dde489a4061a5579b2889ba2acc7e23b779522'); |
| | | require('../../pages/advice/advice?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/scan-record/scan-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/rewards/rewards?hash=95ab0ede16cb1ad22ed1404bf4fb0e0873afc706'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/mine/mine?hash=d479ca49a8aaa25923410044915915eb0ba6fb67'); |
| | | require('../../pages/canvas/canvas?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/activity-detail/activity-detail?hash=768e06c932dc70ff05ac6183e0331c45776096ba'); |
| | | require('../../pages/reward-announcement/reward-announcement?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/join-statistic/join-statistic?hash=f91084abb9cc4d6a1ab7c5f7212504dbfa35116b'); |
| | | require('../../pages/assist-process/assist-process?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/lucky-coupon/lucky-coupon?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/web/web?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/msg-record/msg-record?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/assist-friends/assist-friends?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/msg_setting/msg_setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/msg-setting/msg-setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/lucky-record/lucky-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/rewards/rewards?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/template/template?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/scan-record/scan-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | |
| | | if(!self.__appxInited) { |
| | | self.__appxInited = 1; |
| | | |
| | | require('@alipay/appx-compiler/lib/sjsEnvInit'); |
| | | |
| | | require('./config$'); |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | if(AFAppX.compilerConfig){ AFAppX.compilerConfig.component2 = true; } |
| | | |
| | | function success() { |
| | | require('../../app'); |
| | |
| | | require('../../node_modules/mini-ali-ui/es/list/auto-size-img/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/list/list-item/index?hash=a5465b8c889360e3f854461d3ac41cf414aec633'); |
| | | require('../../node_modules/mini-ali-ui/es/picker-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../node_modules/mini-ali-ui/es/notice/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/mask/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/index?hash=6d8aebee62dceaacd4af71bcf2a181cfc15220af'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/popover-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/footer/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/pagination/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/grid/index?hash=45fe1418d25fc81c09eccb62e0568b7faa62b362'); |
| | | require('../../node_modules/circle-statistic-view/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-switch/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../pages/sponsor-signup/sponsor-signup?hash=20dde489a4061a5579b2889ba2acc7e23b779522'); |
| | | require('../../pages/advice/advice?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/scan-record/scan-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/rewards/rewards?hash=95ab0ede16cb1ad22ed1404bf4fb0e0873afc706'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/mine/mine?hash=d479ca49a8aaa25923410044915915eb0ba6fb67'); |
| | | require('../../pages/canvas/canvas?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/activity-detail/activity-detail?hash=768e06c932dc70ff05ac6183e0331c45776096ba'); |
| | | require('../../pages/reward-announcement/reward-announcement?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/join-statistic/join-statistic?hash=f91084abb9cc4d6a1ab7c5f7212504dbfa35116b'); |
| | | require('../../pages/assist-process/assist-process?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/lucky-coupon/lucky-coupon?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/web/web?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/msg-record/msg-record?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/assist-friends/assist-friends?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/msg_setting/msg_setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/msg-setting/msg-setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/lucky-record/lucky-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/rewards/rewards?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/template/template?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/scan-record/scan-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | } |
| | | self.bootstrapApp ? self.bootstrapApp({ success }) : success(); |
| | | } |
| | |
| | | const g = typeof global !== 'undefined' ? global : self; |
| | | g.appXAppJson = { |
| | | "app": { |
| | | "$homepage": "pages/msg-record/msg-record" |
| | | "$homepage": "pages/rewards/rewards" |
| | | } |
| | | }; |
| | |
| | | require('../../node_modules/mini-ali-ui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/loading/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../node_modules/mini-ali-ui/es/notice/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/list/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/list/auto-size-img/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/list/list-item/index?hash=a5465b8c889360e3f854461d3ac41cf414aec633'); |
| | | require('../../node_modules/mini-ali-ui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/mask/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/index?hash=6d8aebee62dceaacd4af71bcf2a181cfc15220af'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/popover-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/footer/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/pagination/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/grid/index?hash=45fe1418d25fc81c09eccb62e0568b7faa62b362'); |
| | | require('../../node_modules/circle-statistic-view/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-switch/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../pages/rewards/rewards?hash=95ab0ede16cb1ad22ed1404bf4fb0e0873afc706'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/mine/mine?hash=d479ca49a8aaa25923410044915915eb0ba6fb67'); |
| | | require('../../pages/canvas/canvas?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/activity-detail/activity-detail?hash=768e06c932dc70ff05ac6183e0331c45776096ba'); |
| | | require('../../pages/reward-announcement/reward-announcement?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/join-statistic/join-statistic?hash=f91084abb9cc4d6a1ab7c5f7212504dbfa35116b'); |
| | | require('../../pages/assist-process/assist-process?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/lucky-coupon/lucky-coupon?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/web/web?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/msg-record/msg-record?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/assist-friends/assist-friends?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/msg_setting/msg_setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/msg-setting/msg-setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/lucky-record/lucky-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/mine/mine?hash=7c1eddb9a98b2682c7ab146a65b99169d5808444'); |
| | | require('../../pages/rewards/rewards?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/template/template?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | |
| | | !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({0:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var originalBridgeCall=self.AlipayJSBridge&&self.AlipayJSBridge.call,originalFetch=self.fetch,originImportScripts=self.importScripts,originEval="function"==typeof self.__eval?self.__eval:self.eval;exports.getUserAgent=function(){return navigator.swuserAgent||navigator.userAgent||""},exports.debug=console.log.bind(console),exports.checkIOS=function(){return/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(exports.getUserAgent())},exports.isLyra=function(){return Boolean(self.__LyraWSWorkerOrigin)},exports.callInternalAPI=function(e,t){var n={data:{method:e,param:t},action:"internalAPI"},o=encodeURIComponent(JSON.stringify(n));originalFetch?originalFetch("https://alipay.kylinBridge/?data="+o,{mode:"no-cors"}).then((function(){})).catch((function(){})):originalBridgeCall&&originalBridgeCall("internalAPI",{method:e,param:t})},exports.getStartupParams=function(){return self.__appxStartupParams&&self.__appxStartupParams.appId?self.__appxStartupParams:self.AFAppX&&self.AFAppX.bridge&&self.AFAppX.bridge.callSync&&self.AFAppX.bridge.callSync("getStartupParams")||{}},exports.getBridge=function(){return self.AFAppX.bridge};var appxImported=!1,appxImportListener=[];exports.runAfterAppx=function(e){if(self.AFAppX)return appxImported=!0,void e();self.importScripts=function(e){originImportScripts(e),!appxImported&&/af-appx\.worker\.min\.js$/.test(e)&&(appxImported=!0,appxImportListener.forEach((function(e){return e()})),appxImportListener=[])},appxImportListener.push(e)},exports.evaluateScript=function(expression){return"function"==typeof eval?eval(expression):"function"==typeof originEval?(self.eval=originEval,eval(expression)):void 0}},11:function(e,t){var n="\\x"+("0"+"~".charCodeAt(0).toString(16)).slice(-2),o="\\"+n,r=new RegExp(n,"g"),s=new RegExp(o,"g"),a=new RegExp("(?:^|([^\\\\]))"+o),i=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},c=String;function u(e,t,n){return t instanceof Array?function(e,t,n){for(var o=0,r=t.length;o<r;o++)t[o]=u(e,t[o],n);return t}(e,t,n):t instanceof c?t.length?n.hasOwnProperty(t)?n[t]:n[t]=function(e,t){for(var n=0,o=t.length;n<o;e=e[t[n++].replace(s,"~")]);return e}(e,t.split("~")):e:t instanceof Object?function(e,t,n){for(var o in t)t.hasOwnProperty(o)&&(t[o]=u(e,t[o],n));return t}(e,t,n):t}var l={stringify:function(e,t,s,a){return l.parser.stringify(e,function(e,t,s){var a,c,u=!1,l=!!t,p=[],f=[e],d=[e],g=[s?"~":"[Circular]"],m=e,h=1;return l&&(c="object"==typeof t?function(e,n){return""!==e&&t.indexOf(e)<0?void 0:n}:t),function(e,t){return l&&(t=c.call(this,e,t)),u?(m!==this&&(a=h-i.call(f,this)-1,h-=a,f.splice(h,f.length),p.splice(h-1,p.length),m=this),"object"==typeof t&&t?(i.call(f,t)<0&&f.push(m=t),h=f.length,(a=i.call(d,t))<0?(a=d.push(t)-1,s?(p.push((""+e).replace(r,n)),g[a]="~"+p.join("~")):g[a]=g[0]):t=g[a]):"string"==typeof t&&s&&(t=t.replace(n,o).replace("~",n))):u=!0,t}}(e,t,!a),s)},parse:function(e,t){return l.parser.parse(e,function(e){return function(t,r){var s="string"==typeof r;return s&&"~"===r.charAt(0)?new c(r.slice(1)):(""===t&&(r=u(r,r,{})),s&&(r=r.replace(a,"$1~").replace(o,n)),e?e.call(this,t,r):r)}}(t))},parser:JSON};e.exports=l},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Connect="RemoteX.connect",e.Disconnect="RemoteX.disconnect",e.PageChanged="RemoteX.pageChanged",e.DataChanged="RemoteX.dataChanged",e.EvaluteScript="RemoteX.evaluteScript",e.syncStorage="RemoteX.syncStorage",e.requestWillBeSent="RemoteX.requestWillBeSent",e.requestFinished="RemoteX.requestFinished",e.Ping="RemoteX.ping",e.Pong="RemoteX.pong"}(t.RemoteXMethods||(t.RemoteXMethods={}))},43:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),r=n(47),s=n(48),a=n(0);a.runAfterAppx((function(){setTimeout((function(){a.debug("[bugme] run after appx"),a.getStartupParams().isRemoteX||a.isLyra()?(a.debug("[bugme] remotex mode"),o.registerRemoteX()):(a.debug("[bugme] preview mode"),s.registerPreview())}),1e3)}));try{r.initAppXHook()}catch(e){console.error(e)}},44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=n(0),s=n(45);t.registerRemoteX=function(){if(self.navigator){r.debug("[bugme] start to register remotex"),s.listenEvents(),o.SocketConn.open(),self.bugmeAPI={send:function(e){o.SocketConn.send(e)}};if(self.document&&self.document.dispatchEvent)try{self.document.dispatchEvent("bugmeInjected")}catch(e){self.document.dispatchEvent(new CustomEvent("bugmeInjected"))}else self.dispatchEvent&&self.dispatchEvent(new CustomEvent("bugmeInjected"))}}},45:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(0),s=n(6),a=n(46);function i(e){if(!e||"object"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=""+e[n]})),t}var c=/^https?:\/\/hpmweb\.alipay\.com/,u=function(e){c.test(e.url)||s.SocketConn.send({method:o.RemoteXMethods.requestWillBeSent,params:{reqId:e.requestId,url:e.url,method:(e.method||"GET").toUpperCase(),body:e.postBody,headers:i(e.headers)}})},l=function(e){c.test(e.url)||s.SocketConn.send({method:o.RemoteXMethods.requestFinished,params:{reqId:e.requestId,url:e.url,status:e.status,body:e.body,headers:i(e.headers)}})},p=function(e){c.test(e.url)||s.SocketConn.send({method:o.RemoteXMethods.requestFinished,params:{reqId:e.requestId,url:e.url,status:null}})},f=function(e){var t={};Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),s.SocketConn.send({method:o.RemoteXMethods.syncStorage,params:{data:t}})};t.listenEvents=function(){var e=r.getBridge();e.on(a.ERiverWorkerEvent.PageResume,(function(){s.SocketConn.send({method:o.RemoteXMethods.PageChanged})})),e.on(a.ERiverWorkerEvent.DebugPanelClick,(function(){s.SocketConn.close()})),r.checkIOS()&&!r.isLyra()?(e.on(a.ERiverDebugEvent.networkRequest,(function(e){var t=e.data;u(t)})),e.on(a.ERiverDebugEvent.networkResponse,(function(e){var t=e.data;l(t)})),e.on(a.ERiverDebugEvent.networkError,(function(e){var t=e.data;p(t)})),e.on(a.ERiverDebugEvent.storageChanged,(function(e){var t=e.data;f(t)}))):e.on(a.ERiverDebugEvent.debugConsole,(function(e){var t,n=e.data,o=n.type,r=n.content;try{t=JSON.parse(r)}catch(e){return}switch(o){case a.ERiverDebugEvent.networkRequest:u(t);break;case a.ERiverDebugEvent.networkResponse:l(t);break;case a.ERiverDebugEvent.networkError:p(t);break;case a.ERiverDebugEvent.storageChanged:f(t)}}))}},46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.networkRequest="tinyAppRemoteDebug_network_request",e.networkResponse="tinyAppRemoteDebug_network_response",e.networkError="tinyAppRemoteDebug_network_error",e.storageChanged="tinyAppRemoteDebug_storage",e.debugConsole="onTinyDebugConsole",e.vconsoleMessage="onMessageFromVConsole"}(t.ERiverDebugEvent||(t.ERiverDebugEvent={})),function(e){e.PageResume="pageResume",e.DebugPanelClick="tinyRemoteDebugPanelButtonClick"}(t.ERiverWorkerEvent||(t.ERiverWorkerEvent={}))},47:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=null;t.initAppXHook=function(){var e=self.__APPX_DEVTOOLS_GLOBAL_HOOK__,t={};e&&Object.assign(t,e),t.onSetData=function(t){if(e&&e.onSetData)try{e.onSetData(t)}catch(e){console.error(e)}o.SocketConn.socketTask&&(clearTimeout(r),r=setTimeout((function(){o.SocketConn.send({method:"RemoteX.dataChanged"})}),300))},t.onSetDataCallback=function(t){e&&e.onSetDataCallback&&e.onSetDataCallback(t)},self.__APPX_DEVTOOLS_GLOBAL_HOOK__=t}},48:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),r=n(0),s=function(e,t){return void 0===t?"©undefined":null===t?"©null":t===-1/0?"©- Infinity":t===1/0?"©Infinity":"number"==typeof t&&isNaN(t)?"©NaN":"function"==typeof t?"©function":t},a=Function,i=function(e){try{if(e.fromVConsoleToWorker){var t=e.requestId;if("exec"===e.method){try{new a("requestId","sendBack","var res = "+e.script+";console.log(res);")(t,(function(e){return r.callInternalAPI("tinyDebugConsole",{type:"msgFromWorkerToVConsole",content:o.stringify({requestId:t,returnValue:e},s)})}))}catch(e){console.error(e.name+":"+e.message)}}}}catch(e){}};t.registerPreview=function(){setTimeout((function(){self.document?self.document.addEventListener("push",(function(e){try{var t=e.data.param;i(JSON.parse(t.content||t.data.content))}catch(e){}})):self.addEventListener&&self.addEventListener("push",(function(e){try{var t=JSON.parse(JSON.parse(e.data.text()).param.data.content);i(t)}catch(e){}}))}),10),["log","info","error","debug","warn"].forEach((function(e){var t="o"+e;console[t]||(console[t]=console[e],console[e]=function(){for(var n,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];console[t].apply(console,a);try{n=o.stringify(a.map((function(e){return e instanceof Error?e.name+": "+e.message:e})),s)}catch(e){return void console.error(e.name+": "+e.message)}r.callInternalAPI("tinyDebugConsole",{content:n,type:"console_"+e})})}))}},5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wssConfig={default:{openchannel:"openchannel.alipay.com",hpmweb:"hpmweb.alipay.com"},1:{openchannel:"miniprogram.alipay.com",hpmweb:"hpmweb.alipay.com"}}},6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),r=n(0),s=n(2),a=n(5),i=function(){r.getBridge().call("showRemoteDebugPanel",{status:"connecting",text:"远程调试准备中",buttonTitle:"退出"})},c=function(){r.getBridge().call("showRemoteDebugPanel",{status:"connected",text:"远程调试已连接",buttonTitle:"退出"})},u=function(){r.getBridge().call("showRemoteDebugPanel",{status:"disconnected",text:"远程调试已断开",buttonTitle:"退出"})};t.SocketConn={messageQueue:[],socketTask:null,send:function(e){var t=this,n="string"==typeof e?e:JSON.stringify(e);n.length>5242880?r.debug("[bugme] socket send failed, size: ",n.length):this.socketTask?(this.messageQueue.length&&(this.messageQueue.forEach((function(e){t.socketTask.send({data:e})})),this.messageQueue=[]),this.socketTask.send({data:n})):this.messageQueue.push(n)},close:function(){this.socketTask?this.socketTask.close():r.getBridge().showToast({content:"请点击右上角关闭按钮退出",duration:1e3})},connect:function(e){var t=this,n=r.getBridge(),o=n.connectSocket({url:e,multiple:!0}),s=function(){t.socketTask||(t.socketTask=o,t.onopen(),r.debug("[bugme] websocket connected"))};o.onOpen((function(){s()})),o.onMessage((function(e){t.socketTask||s(),t.onmessage(e)})),o.onClose((function(){t.onclose()})),o.onError((function(){t.socketTask||(u(),n.showToast({content:"本次真机调试已结束,请重新生成调试版本",duration:2e3}))}))},open:function(){var e=this,t=r.getStartupParams(),n=t.channelId,o=t.channelAuthPair,s=t.remoteCh,c=self.__LyraWSWorkerOrigin;if(n||c){i();var u=a.wssConfig.default.openchannel;s&&a.wssConfig[s]&&a.wssConfig[s].openchannel&&(u=a.wssConfig[s].openchannel);var l=r.getBridge(),p=c?c+"/worker":"wss://"+u+"/group/connect/"+n+"?scene=tinyAppDebug&roleType=TINYAPP&roleId=0";if(o&&(p+="?"+o.key+"="+o.value),r.checkIOS()&&!r.isLyra()){this.connect(p);var f=l.connectSocket;l.connectSocket=function(e){if(e&&e.multiple)return f(e);l.showToast({content:"iOS 真机调试暂不支持 connectSocket JSAPI",duration:1e3})},l.onSocketOpen=l.offSocketOpen=l.onSocketMessage=l.offSocketMessage=l.closeSocket=function(){}}else setTimeout((function(){e.connect(p)}),1200)}else r.debug("[bugme] missing channelId in startup params")},onopen:function(){var e=r.getBridge(),t=e.getSystemInfoSync();this.send({method:s.RemoteXMethods.Connect,params:{userAgent:r.getUserAgent(),sdkVersion:e.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system}}),c()},onmessage:function(e){try{var t=JSON.parse(e.data.data),n=t.method,a=t.id,i=t.params;if(n===s.RemoteXMethods.Disconnect)this.close();else if(n===s.RemoteXMethods.EvaluteScript){if(i&&i.code)try{var c=r.evaluateScript(i.code);this.send({returnId:a,payload:o.stringify(c)})}catch(e){r.debug("[remoteX worker evaluateScript] ",e)}}else n===s.RemoteXMethods.Ping&&this.send({method:s.RemoteXMethods.Pong,params:{returnId:a}})}catch(t){r.debug("RemoteX onSocketMessage error",t,e)}},onclose:function(){this.socketTask=null,this.messageQueue=[],u(),[1,2].forEach((function(e){r.getBridge().call("closeSocket",{socketTaskId:e})}))}}}}); /**! __BUGME_END__ */ |
| | | if(!self.__appxInited) { |
| | | self.__appxInited = 1; |
| | | |
| | | require('@alipay/appx-compiler/lib/sjsEnvInit'); |
| | | |
| | | require('./config$'); |
| | | require('./importScripts$'); |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | if(AFAppX.compilerConfig){ AFAppX.compilerConfig.component2 = true; } |
| | | |
| | | function success() { |
| | | require('../../app'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/loading/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../node_modules/mini-ali-ui/es/notice/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/list/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/list/auto-size-img/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/list/list-item/index?hash=a5465b8c889360e3f854461d3ac41cf414aec633'); |
| | | require('../../node_modules/mini-ali-ui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/mask/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/index?hash=6d8aebee62dceaacd4af71bcf2a181cfc15220af'); |
| | | require('../../node_modules/mini-ali-ui/es/popover/popover-item/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/footer/index?hash=5a0c180d5ccf7c9d483dd4817cdab5489824013c'); |
| | | require('../../node_modules/mini-ali-ui/es/pagination/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/grid/index?hash=45fe1418d25fc81c09eccb62e0568b7faa62b362'); |
| | | require('../../node_modules/circle-statistic-view/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/am-switch/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); |
| | | require('../../node_modules/mini-ali-ui/es/button/index?hash=e1617a0257fb9de746f60d50b03404ad924976c9'); |
| | | require('../../node_modules/mini-ali-ui/es/modal/index?hash=febd4c40992222524e0db12a74760a28f8f9b339'); |
| | | require('../../pages/rewards/rewards?hash=95ab0ede16cb1ad22ed1404bf4fb0e0873afc706'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/mine/mine?hash=d479ca49a8aaa25923410044915915eb0ba6fb67'); |
| | | require('../../pages/canvas/canvas?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/activity-detail/activity-detail?hash=768e06c932dc70ff05ac6183e0331c45776096ba'); |
| | | require('../../pages/reward-announcement/reward-announcement?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/join-statistic/join-statistic?hash=f91084abb9cc4d6a1ab7c5f7212504dbfa35116b'); |
| | | require('../../pages/assist-process/assist-process?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/lucky-coupon/lucky-coupon?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/web/web?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/msg-record/msg-record?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/assist-friends/assist-friends?hash=5d86f384244ee40ea6500a270a121b3c10155863'); |
| | | require('../../pages/msg_setting/msg_setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/msg-setting/msg-setting?hash=bae612b4ae5b5e7f34a588a703442c2a3d9b953c'); |
| | | require('../../pages/lucky-record/lucky-record?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/mine/mine?hash=7c1eddb9a98b2682c7ab146a65b99169d5808444'); |
| | | require('../../pages/rewards/rewards?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | require('../../pages/goods/goods?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68'); |
| | | require('../../pages/template/template?hash=d2c2848db0818b7a65235ff7a4451e03796136b5'); |
| | | } |
| | | self.bootstrapApp ? self.bootstrapApp({ success }) : success(); |
| | |
| | | page { |
| | | background: #EEEEEE; |
| | | font-family: Microsoft YaHei; |
| | | } |
| | | |
| | | |
| | | /*-------上拉加载------- */ |
| | | .spinner { |
| | | text-align: center; |
| | | height: 60rpx; |
| | | line-height: 60rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .spinner .bounce { |
| | | margin-top: 20rpx; |
| | | width: 13rpx; |
| | | height: 21rpx; |
| | | display: inline-block; |
| | | animation-fill-mode: both; |
| | | margin-left: 13rpx; |
| | | transform: skewX(-15deg); |
| | | } |
| | | |
| | | .spinner .bounce1 { |
| | | background: #108EE9; |
| | | animation: bouncedelay1 2.1s infinite linear; |
| | | } |
| | | |
| | | .spinner .bounce2 { |
| | | background: #9DCDEF; |
| | | animation: bouncedelay2 2.1s infinite linear; |
| | | } |
| | | |
| | | .spinner .bounce3 { |
| | | background: #EAECF3; |
| | | animation: bouncedelay3 2.1s infinite linear; |
| | | } |
| | | |
| | | .spinner .spinner-word { |
| | | margin-top: 24rpx; |
| | | line-height: 40rpx; |
| | | height: 40rpx; |
| | | font-family: PingFangSC-Regular; |
| | | font-size: 28rpx; |
| | | color: #999999; |
| | | } |
| | | |
| | | @keyframes bouncedelay1 { |
| | | 0% { |
| | | background: #108EE9; |
| | | } |
| | | 50% { |
| | | background: #9DCDEF; |
| | | } |
| | | 100% { |
| | | background: #EAECF3; |
| | | } |
| | | } |
| | | |
| | | @keyframes bouncedelay2 { |
| | | 0% { |
| | | background: #9DCDEF; |
| | | } |
| | | 50% { |
| | | background: #EAECF3; |
| | | } |
| | | 100% { |
| | | background: #108EE9; |
| | | } |
| | | } |
| | | |
| | | @keyframes bouncedelay3 { |
| | | 0% { |
| | | background: #EAECF3; |
| | | } |
| | | 50% { |
| | | background: #108EE9; |
| | | } |
| | | 100% { |
| | | background: #9DCDEF; |
| | | } |
| | | } |
| | | |
| | | /**------------页脚--------------**/ |
| | | footer{ |
| | | color: white !important; |
| | | } |
| | | |
| | | |
| | | /**---------抽奖活动列表----------**/ |
| | | |
| | | |
| | | .lucky-activity-item { |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | margin-top: 20rpx; |
| | | position: relative; |
| | | background: white; |
| | | border-radius: 20rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .poster { |
| | | width: 100%; |
| | | height: 354rpx; |
| | | border-top-left-radius: 20rpx; |
| | | border-top-right-radius: 20rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .joined { |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | height: 105rpx; |
| | | width: 105rpx; |
| | | border-top-left-radius: 20rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content { |
| | | margin: 20rpx; |
| | | padding-bottom: 20rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .sponsor .icon { |
| | | width: 25rpx; |
| | | height: 25rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .sponsor .title { |
| | | color: #0080FF; |
| | | font-size: 24rpx; |
| | | margin-left: 8rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .reward-way { |
| | | width: 28rpx; |
| | | height: 29rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .reward-title { |
| | | color: #333333; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | margin-left: 10rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .open-time { |
| | | font-size: 22rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .lucky-activity-item .content .joiner-num { |
| | | font-size: 22rpx; |
| | | color: #AAAAAA; |
| | | font-weight: 400; |
| | | margin-left: 11rpx; |
| | | } |
| | | |
| | | .lucky-activity-item .content .portrait { |
| | | width: 27rpx; |
| | | height: 27rpx; |
| | | border-radius: 27rpx; |
| | | margin-left: -8rpx; |
| | | } |
| | |
| | | var help = require('./util/help.js'); |
| | | App({ |
| | | themeColor:"#0080FF", |
| | | onLaunch(options) { |
| | | // 第一次打开 |
| | | // options.query == {number:1} |
| | |
| | | { |
| | | "pages": [ |
| | | "pages/mine/mine", |
| | | "pages/msg-record/msg-record", |
| | | "pages/assist-friends/assist-friends", |
| | | "pages/msg_setting/msg_setting", |
| | | "pages/lucky-record/lucky-record", |
| | | |
| | | "pages/sponsor-signup/sponsor-signup", |
| | | "pages/advice/advice", |
| | | "pages/scan-record/scan-record", |
| | | "pages/rewards/rewards", |
| | | "pages/goods/goods", |
| | | |
| | | |
| | | |
| | | "pages/template/template" |
| | | "pages/mine/mine", |
| | | "pages/canvas/canvas", |
| | | "pages/activity-detail/activity-detail", |
| | | "pages/reward-announcement/reward-announcement", |
| | | "pages/join-statistic/join-statistic", |
| | | "pages/assist-process/assist-process", |
| | | "pages/lucky-coupon/lucky-coupon", |
| | | "pages/web/web", |
| | | "pages/msg-record/msg-record", |
| | | "pages/assist-friends/assist-friends", |
| | | "pages/msg-setting/msg-setting", |
| | | "pages/lucky-record/lucky-record", |
| | | "pages/template/template", |
| | | "pages/scan-record/scan-record" |
| | | ], |
| | | "window": { |
| | | "defaultTitle": "天天领现金" |
| | | "defaultTitle": "天天领现金", |
| | | "enableComponentOverlayer": "YES" |
| | | }, |
| | | "tabBars": { |
| | | "tabBar": { |
| | | "textColor": "#dddddd", |
| | | "selectedColor": "#49a9ee", |
| | | "backgroundColor": "#ffffff", |
| | |
| | | "activeIcon": "image/goods_highlight.png" |
| | | }, |
| | | { |
| | | "pagePath": "pages/lucky-record/lucky-record", |
| | | "pagePath": "pages/mine/mine", |
| | | "name": "我的", |
| | | "icon": "image/mine.png", |
| | | "activeIcon": "image/mine_highlight.png" |
New file |
| | |
| | | { |
| | | "component2": true |
| | | } |
New file |
| | |
| | | .container { |
| | | background: transparent; |
| | | position: relative; |
| | | } |
| | | |
| | | canvas { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | background: transparent; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | .percent { |
| | | font-size: 35rpx; |
| | | font-weight: bold; |
| | | color: #0080FF; |
| | | line-height: 184rpx; |
| | | text-align: center; |
| | | } |
New file |
| | |
| | | <view class="container" style="width:{{width}};height:{{height}}"> |
| | | <canvas width="1500" height="1500" id="canvas-bg"></canvas> |
| | | <canvas width="1500" height="1500" id="canvas"></canvas> |
| | | <view class="percent"> |
| | | {{percent}} |
| | | </view> |
| | | </view> |
New file |
| | |
| | | const x = 750; |
| | | const y = 750; |
| | | const r = 640; |
| | | const lineWidth = 200; |
| | | var arc; |
| | | Component({ |
| | | mixins: [], |
| | | data: { percent: '0%', width: '', height: '' }, |
| | | props: { |
| | | percent: 0, |
| | | width: '', |
| | | height: '' |
| | | }, |
| | | didMount() { }, |
| | | didUpdate() { }, |
| | | didUnmount() { }, |
| | | methods: { |
| | | drawBg() { |
| | | var ctx = this.ctxbg; |
| | | //画背景圆 |
| | | ctx.setLineWidth(lineWidth - 10); |
| | | ctx.setLineCap('round'); |
| | | ctx.arc(x, y, r, 0, Math.PI * 2, true); |
| | | ctx.setStrokeStyle("#EAEAEA"); |
| | | ctx.stroke(); |
| | | ctx.draw(); |
| | | }, |
| | | draw() { |
| | | console.log("画图"); |
| | | var ctx = this.ctx; |
| | | //画背景圆 |
| | | ctx.setLineWidth(lineWidth); |
| | | ctx.setLineCap('round'); |
| | | |
| | | const gx1 = x + r; |
| | | const gy1 = y; |
| | | |
| | | const gx2 = x + r * Math.cos(Math.PI * 2 - arc); |
| | | const gy2 = y + r * Math.sin(Math.PI * 2 - arc); |
| | | |
| | | const grd = this.ctx.createLinearGradient(gx1, gy1, gx2, gy2); |
| | | |
| | | grd.addColorStop(0, '#DC51FF'); |
| | | grd.addColorStop(1, '#6FBDFF'); |
| | | ctx.setStrokeStyle(grd); |
| | | ctx.arc(x, y, r, 0, Math.PI * 2 - arc, true); |
| | | ctx.stroke(); |
| | | ctx.draw(); |
| | | } |
| | | }, |
| | | |
| | | onInit() { |
| | | //设置角度 |
| | | arc = this.props.percent * Math.PI * 2 / 100; |
| | | this.setData({ |
| | | percent: this.props.percent + "%", |
| | | width: this.props.width, |
| | | height: this.props.height |
| | | }); |
| | | this.ctxbg = my.createCanvasContext('canvas-bg'); |
| | | this.ctx = my.createCanvasContext('canvas'); |
| | | this.drawBg(); |
| | | this.draw(); |
| | | }, |
| | | }); |
New file |
| | |
| | | { |
| | | "component": true |
| | | } |
New file |
| | |
| | | .input { |
| | | width: 14rpx !important; |
| | | height: 29rpx !important; |
| | | } |
| | | |
| | | .top .banner { |
| | | width: 100%; |
| | | height: 381rpx; |
| | | } |
| | | |
| | | .top .banner swiper { |
| | | width: 100%; |
| | | height: 381rpx; |
| | | } |
| | | |
| | | .top .banner image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .top .info { |
| | | position: relative; |
| | | box-sizing: border-box; |
| | | background: #FFFFFF; |
| | | font-size: 0; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | padding-left: 16rpx; |
| | | padding-right: 16rpx; |
| | | align-items: center; |
| | | height: 42rpx; |
| | | } |
| | | |
| | | .top .number { |
| | | font-size: 20rpx; |
| | | position: absolute; |
| | | left: 20rpx; |
| | | line-height: 50rpx; |
| | | } |
| | | |
| | | .top .time { |
| | | display: flex; |
| | | height: 29rpx; |
| | | font-size: 0; |
| | | line-height: 35rpx !important; |
| | | position: absolute; |
| | | right: 20rpx; |
| | | top: 6rpx; |
| | | } |
| | | |
| | | .top .time view { |
| | | background: #D4253F; |
| | | border-radius: 8rpx; |
| | | font-weight: 400; |
| | | color: #FFFFFF; |
| | | width: 31rpx; |
| | | height: 29rpx; |
| | | font-size: 19rpx; |
| | | font-weight: bold; |
| | | text-align: center; |
| | | } |
| | | |
| | | .top .time text { |
| | | font-size: 19rpx; |
| | | color: #000000; |
| | | height: 29rpx; |
| | | } |
| | | |
| | | .content { |
| | | box-sizing: border-box; |
| | | padding: 15rpx; |
| | | } |
| | | |
| | | .content .item { |
| | | box-sizing: border-box; |
| | | background: #FFFFFF; |
| | | border-radius: 20rpx; |
| | | padding: 23rpx 28rpx; |
| | | margin-bottom: 18rpx; |
| | | } |
| | | |
| | | .content .item .title { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | } |
| | | |
| | | .content .award { |
| | | position: relative; |
| | | } |
| | | |
| | | .content .award image { |
| | | width: 28rpx; |
| | | height: 28rpx; |
| | | } |
| | | |
| | | .content .award .question { |
| | | width: 30rpx !important; |
| | | height: 30rpx !important; |
| | | position: absolute; |
| | | right: 25rpx; |
| | | top: 25rpx; |
| | | } |
| | | |
| | | .content .award .load-more { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | line-height: 24rpx; |
| | | text-align: center; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .content .award .load-more image { |
| | | width: 20rpx; |
| | | height: 20rpx; |
| | | margin-left: 7rpx; |
| | | } |
| | | |
| | | .content .label { |
| | | box-sizing: border-box; |
| | | font-size: 18rpx; |
| | | font-weight: 400; |
| | | height: 30rpx; |
| | | line-height: 36rpx; |
| | | padding: 0rpx 13rpx; |
| | | border-radius: 4rpx; |
| | | margin-right: 16rpx; |
| | | word-break: keep-all; |
| | | } |
| | | |
| | | .content .ad { |
| | | display: flex; |
| | | position: relative; |
| | | } |
| | | |
| | | .content .ad image { |
| | | width: 118rpx; |
| | | height: 118rpx; |
| | | border-radius: 10rpx; |
| | | } |
| | | |
| | | .content .ad .desc { |
| | | font-size: 20rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | line-height: 34rpx; |
| | | } |
| | | |
| | | .content .ad .content { |
| | | max-width: 374rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | padding: 0; |
| | | margin-left: 16rpx; |
| | | flex-grow: 1; |
| | | } |
| | | |
| | | .content .ad button { |
| | | height: 54rpx; |
| | | line-height: 54rpx; |
| | | font-size: 24rpx; |
| | | padding: 0 16rpx; |
| | | border-radius: 27rpx; |
| | | position: absolute; |
| | | right: 20rpx; |
| | | top: 60rpx; |
| | | } |
| | | |
| | | .content .join {} |
| | | |
| | | .content .join button { |
| | | height: 82rpx; |
| | | line-height: 82rpx; |
| | | border-radius: 41rpx; |
| | | font-size: 30rpx; |
| | | } |
| | | |
| | | .content .step { |
| | | display: flex; |
| | | } |
| | | |
| | | .content .step image { |
| | | width: 23rpx; |
| | | height: 22rpx; |
| | | margin-right: 5rpx; |
| | | margin-top: 8rpx; |
| | | } |
| | | |
| | | .content .step text { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | line-height: 39rpx; |
| | | width: 636rpx; |
| | | } |
| | | |
| | | .content .join .beizhu { |
| | | font-size: 20rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | margin-top: 20rpx; |
| | | line-height: 34rpx; |
| | | } |
| | | |
| | | .content .join .beizhu view { |
| | | font-size: 20rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | align-items: center; |
| | | justify-content: center; |
| | | line-height: 20rpx; |
| | | display: flex; |
| | | box-sizing: border-box; |
| | | margin-top: 10rpx; |
| | | } |
| | | |
| | | .content .join .beizhu view image { |
| | | width: 20rpx; |
| | | height: 20rpx; |
| | | margin-left: 5rpx; |
| | | margin-top: -5rpx; |
| | | } |
| | | |
| | | .content .joiner-list { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | } |
| | | |
| | | .content .joiner-list .title { |
| | | margin-bottom: 19rpx; |
| | | } |
| | | |
| | | .content .joiner-list image { |
| | | width: 62rpx; |
| | | height: 62rpx; |
| | | } |
| | | |
| | | .content .assist-process { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | } |
| | | |
| | | .content .assist-process .title { |
| | | margin-bottom: 19rpx; |
| | | } |
| | | |
| | | .content .assist-process rich-text { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | } |
| | | |
| | | .content .open .beizhu { |
| | | font-size: 20rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | margin-top: 20rpx; |
| | | line-height: 34rpx; |
| | | } |
| | | |
| | | .content .open .beizhu view { |
| | | font-size: 20rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | align-items: center; |
| | | justify-content: center; |
| | | line-height: 20rpx; |
| | | display: flex; |
| | | box-sizing: border-box; |
| | | margin-top: 10rpx; |
| | | } |
| | | |
| | | .content .open .beizhu view image { |
| | | width: 20rpx; |
| | | height: 20rpx; |
| | | margin-left: 5rpx; |
| | | margin-top: -3rpx; |
| | | } |
| | | |
| | | .content .award-anouncement { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | } |
| | | |
| | | .content .award-anouncement .title { |
| | | margin-bottom: 19rpx; |
| | | } |
| | | |
| | | .content .sponsor-join { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | } |
| | | |
| | | .content .sponsor-join .title { |
| | | margin-bottom: 19rpx; |
| | | } |
| | | |
| | | .footer { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | font-size: 22rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | margin: 30rpx 0 30rpx 0; |
| | | box-sizing: border-box; |
| | | padding: 0 20rpx; |
| | | align-items: center; |
| | | } |
| | | |
| | | .footer .cut-line { |
| | | width: 1px; |
| | | height: 28rpx; |
| | | background: #999999; |
| | | } |
| | | |
| | | .modal-mianze { |
| | | background: transparent; |
| | | } |
| | | |
| | | .modal-mianze .body { |
| | | width: 508rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | padding: 38rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .modal-mianze .title { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | margin-bottom: 25rpx; |
| | | } |
| | | |
| | | .modal-mianze .content { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | line-height: 30rpx; |
| | | text-align: left !important; |
| | | } |
| | | |
| | | .modal-mianze button { |
| | | width: 376rpx; |
| | | height: 82rpx; |
| | | line-height: 82rpx; |
| | | background: #0080FF; |
| | | border-radius: 41px; |
| | | font-size: 30rpx; |
| | | margin: 0 auto; |
| | | margin-top: 49rpx; |
| | | } |
| | | |
| | | .modal-coupon { |
| | | background: transparent; |
| | | } |
| | | |
| | | .modal-coupon image { |
| | | width: 411rpx; |
| | | height: 420rpx; |
| | | position: absolute; |
| | | top: -193rpx; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | .modal-coupon .content-bg { |
| | | width: 420rpx; |
| | | height: 420rpx; |
| | | background: linear-gradient(0deg, #F23D59 0%, #C81F35 91%); |
| | | border-radius: 24rpx; |
| | | } |
| | | |
| | | .modal-coupon .content { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | .modal-coupon .content .number { |
| | | font-size: 60rpx; |
| | | font-weight: 800; |
| | | color: #FFFFFF; |
| | | margin-top: 50rpx; |
| | | } |
| | | |
| | | .modal-coupon .content .state { |
| | | font-size: 40rpx; |
| | | font-weight: bold; |
| | | color: #FFEC9B; |
| | | margin-top: 40rpx; |
| | | } |
| | | |
| | | .modal-coupon .content .desc { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #FFFFFF; |
| | | line-height: 50rpx; |
| | | text-align: center; |
| | | margin-top: 20rpx; |
| | | } |
| | | |
| | | .modal-assist { |
| | | background: transparent; |
| | | position: relative; |
| | | } |
| | | |
| | | .modal-assist .body { |
| | | position: relative; |
| | | height: 610rpx; |
| | | padding-left: 30rpx; |
| | | } |
| | | |
| | | .modal-assist .top { |
| | | width: 510rpx; |
| | | height: 244rpx; |
| | | } |
| | | |
| | | .modal-assist .content { |
| | | position: absolute; |
| | | width: 480rpx; |
| | | height: 478rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | top: 129rpx; |
| | | } |
| | | |
| | | .modal-assist button { |
| | | width: 376rpx; |
| | | height: 82rpx; |
| | | line-height: 82rpx; |
| | | border-radius: 41rpx; |
| | | font-size: 30rpx; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .modal-assist .portrait { |
| | | width: 120rpx; |
| | | height: 120rpx; |
| | | border-radius: 50%; |
| | | margin-top: 50rpx; |
| | | } |
| | | |
| | | .modal-assist .nick-name { |
| | | color: #0080FF; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .modal-assist .desc { |
| | | color: #000000; |
| | | font-size: 24rpx; |
| | | margin-top: 20rpx; |
| | | margin-bottom: 60rpx; |
| | | } |
| | | |
| | | .other-activity { |
| | | width: 702rpx; |
| | | height: 81rpx; |
| | | background: #000000; |
| | | opacity: 0.75; |
| | | border-radius: 41rpx; |
| | | margin: 0 auto; |
| | | font-size: 30rpx; |
| | | color: white; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | padding: 0 34rpx; |
| | | box-sizing: border-box; |
| | | position: fixed; |
| | | bottom: 10rpx; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | .other-activity image { |
| | | width: 10rpx; |
| | | height: 20rpx; |
| | | margin-left: 10rpx; |
| | | } |
New file |
| | |
| | | <view> |
| | | <scroll-view scroll-y style="height:100%;"></scroll-view> |
| | | <view class="top"> |
| | | <view class="banner"> |
| | | <swiper indicator-dots="{{false}}" autoplay="true" interval="{{5000}}" circular="{{true}}"> |
| | | <swiper-item > |
| | | <image onTap="onBannerClick" mode="aspectFill" src="https://img.zcool.cn/community/013dbb5fc4bb3b11013fdcc7cc7c72.jpg@260w_195h_1c_1e_1o_100sh.jpg"/> |
| | | </swiper-item > |
| | | </swiper> |
| | | <!--<popover position="topRight" show="true" showMask="{{false}}"></popover> --> |
| | | </view> |
| | | <view class="info"> |
| | | <text class="number">活动期号 NO.12317823</text> |
| | | <view class="time"> |
| | | <text decode="true">剩: </text> |
| | | <view> |
| | | {{leftTime.h}} |
| | | </view> |
| | | <text decode="true"> : </text> |
| | | <view> |
| | | {{leftTime.m}} |
| | | </view> |
| | | <text decode="true"> : </text> |
| | | <view> |
| | | {{leftTime.s}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="award item"> |
| | | <view style="display:flex;"> |
| | | <view a:for="{{activity.labels}}" style="color:{{item.color}}; background:{{item.background}}; " class="label"> |
| | | {{item.value}} |
| | | </view> |
| | | </view> |
| | | <view class="award-item" a:for="{{activity.awardList}}" onTap="onAwardDetailClick"> |
| | | <image mode="scaleToFill" src=""/> |
| | | <rich-text class="title" nodes="{{}}"></rich-text> |
| | | </view> |
| | | <view class="load-more" a:if="{{awardShowMore}}" data-type="award" onTap="showMore"> |
| | | 查看更多 |
| | | <image src="/image/icon/icon_array_down_fill.png"/> |
| | | </view> |
| | | <image mode="scaleToFill" class="question" src="/image/icon/icon_question.png" onTap="onAwardQuestionClick"/> |
| | | </view> |
| | | <view class="ad item"> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <view class="content"> |
| | | <view style="display:flex;align-items: center;"> |
| | | <text class="title" number-of-lines="1" style="margin-right:11rpx;">中国银行中国银行中国银行中国银行</text> |
| | | <view class="label" style="color:#0080FF;background:#D2E9FF;"> |
| | | 生活号 |
| | | </view> |
| | | </view> |
| | | <text class="desc" number-of-lines="2">单个现金红包定额为1.88元,共200个,抽中者可得,将会以转账的形转账中者可得,将会以转账的形转账账中者可得,将会以转账的形转账账</text> |
| | | </view> |
| | | <button type="ghost" onTap="onAdClick">收藏直播间</button> |
| | | <view> |
| | | </view> |
| | | </view> |
| | | <view class="join item"> |
| | | <view class="title" style="margin-bottom:15rpx;"> |
| | | 参与条件 |
| | | </view> |
| | | <view class="step" a:for="{{[{},{}]}}"> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_gray.png"/> |
| | | <text>关注赞助商服务号关注赞助商服务号关注赞助商服务号关注赞助商服务号关注赞助商服务号。</text> |
| | | </view> |
| | | <view class="beizhu"> |
| | | <text number-of-lines="{{joinShowMore?2:100}}" id="beizhu"> |
| | | 注:系统将会由"支付宝首页-服务提醒"给用户下发是否中奖提醒消息提醒消息提醒消息提醒消息提醒消息提醒消息提醒醒消息提醒醒醒消息提醒消息提醒消息提醒消息提醒消息提醒醒消息提醒醒 |
| | | </text> |
| | | <view a:if="{{joinShowMore}}" data-type="join" onTap="showMore"> |
| | | <text> |
| | | 查看全文 |
| | | </text> |
| | | <image src="/image/icon/icon_array_down_fill.png"/> |
| | | </view> |
| | | </view> |
| | | <view style="display:flex; justify-content: space-between;margin:40rpx 0;"> |
| | | <button type="ghost" onTap="onAssistClick" style="width:238rpx;"> |
| | | 好友助力 |
| | | </button> |
| | | <button type="primary" onTap="{{activity.joined?'onMyCouponClick':'onFreeLuckyClick'}}" style="width:392rpx;"> |
| | | {{activity.joined?'幸运券':'免费抽奖'}} |
| | | </button> |
| | | </view> |
| | | </view> |
| | | <view class="joiner-list item" onTap="onJoinerMoreClick"> |
| | | <view style="flex-grow:1;"> |
| | | <view class="title">共352123人参与拼手气抽奖</view> |
| | | <scroll-view scroll-x style="display:flex;width:600rpx;"> |
| | | <image mode="scaleToFill" a:for="{{[1,2,3,4,5,6,7,8]}}" style=" margin-right:{{index+1==activity.userList.size?'0':'11rpx;'}}" src="/image/portrait-test.jpg"/> |
| | | </scroll-view> |
| | | </view> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_array_input.png" class="input"/> |
| | | </view> |
| | | <view class="assist-process item" onTap="onAssistProcessClick"> |
| | | <view style="flex-grow:1;"> |
| | | <view class="title">助力进度</view> |
| | | <rich-text nodes="{{}}"> |
| | | </rich-text> |
| | | </view> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_array_input.png" class="input"/> |
| | | </view> |
| | | <view class="open item"> |
| | | <view class="title" style="margin-bottom:15rpx;"> |
| | | 开奖条件 |
| | | </view> |
| | | <view class="step" a:for="{{[{},{}]}}"> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_gray.png"/> |
| | | <text>11月11日18:00自动开奖</text> |
| | | </view> |
| | | <view class="beizhu"> |
| | | <text number-of-lines="{{openShowMore?2:100}}"> |
| | | 注:系统将会由"支付宝首页-服务提醒"给用户下发是否中奖提醒消息提醒消息提醒消息提醒消息提醒消息提醒消息提醒醒消息提醒醒醒消息提醒消息提醒消息提醒消息提醒消息提醒醒消息提醒醒醒消息提醒消息提醒消息提醒消息提醒消息提醒醒消息提醒醒 |
| | | </text> |
| | | <view a:if="{{openShowMore}}" data-type="open" onTap="showMore"> |
| | | <text> |
| | | 查看全文 |
| | | </text> |
| | | <image src="/image/icon/icon_array_down_fill.png"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="award-anouncement item" onTap="onDrawnAnouncementClick"> |
| | | <view style="flex-grow:1;"> |
| | | <view class="title">中奖公示</view> |
| | | <rich-text nodes="{{}}"> |
| | | </rich-text> |
| | | </view> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_array_input.png" class="input"/> |
| | | </view> |
| | | <view class="sponsor-join item" onTap="onSponsorSignUpClick"> |
| | | <view style="flex-grow:1;"> |
| | | <view class="title">赞助报名</view> |
| | | <rich-text nodes="{{}}"> |
| | | </rich-text> |
| | | </view> |
| | | <image mode="scaleToFill" src="/image/icon/icon_right_array_input.png" class="input"/> |
| | | </view> |
| | | <view class="footer"> |
| | | <view onTap="onAdviceClick">意见反馈</view> |
| | | <view class="cut-line"></view> |
| | | <view onTap="mianZe">免责申明</view> |
| | | <view class="cut-line"></view> |
| | | <view onTap="onComplaintClick">我要投诉</view> |
| | | <view class="cut-line"></view> |
| | | <view onTap="onMsgSettingClick">消息设置</view> |
| | | </view> |
| | | <view style="height:81rpx;"></view> |
| | | </view> |
| | | <view class="other-activity" onTap="onOtherAcitivtyClick"> |
| | | <text>查看赞助商其他活动</text> |
| | | <view> |
| | | <text>共2个</text> |
| | | <image mode="scaleToFill" src="/image/icon/icon_array_right_white.png"/> |
| | | </view> |
| | | </view> |
| | | <!--免责声明--> |
| | | <modal class="modal-mianze" onModalClose="closeMianZeModal" show="{{showMianZeModal}}"> |
| | | <view class="body"> |
| | | <view class="title"> |
| | | 免责申明 |
| | | </view> |
| | | <view class="content" decode="true"> |
| | | <text> |
| | | 我们天天领现金-淘拼团作为提供发起及参与抽奖的小程序平台,不对任何第三方发起人行为承担责任,活动中所包含的所有奖品均由活动发起者提供并发放。 |
| | | 我们天天领现金-淘拼团会在法律范围内规范、监督、督促用户遵守相关法律和平台使用规则,营造良好、公平、公正、真实的平台环境,感谢支持。 |
| | | </text> |
| | | </view> |
| | | <button type="primary" onTap="closeMianZeModal"> |
| | | 我知道了 |
| | | </button> |
| | | </view> |
| | | </modal> |
| | | <!--参与抽奖成功--> |
| | | <modal class="modal-coupon" show="{{showCouponModal}}" onModalClose="closeCouponModal" advice="{{true}}"> |
| | | <view> |
| | | <view class="content-bg"> |
| | | </view> |
| | | <image mode="scaleToFill" src="/image/detail_join_coupon.png"/> |
| | | <view class="content"> |
| | | <view class="number"> |
| | | ×1 |
| | | </view> |
| | | <view class="state"> |
| | | 你已成功参与 |
| | | </view> |
| | | <view class="desc"> |
| | | <text decode="true"> |
| | | 活动期号: NO.12317823 |
| | | 抽奖活动 |
| | | </text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </modal> |
| | | <!--助力成功 --> |
| | | <modal class="modal-assist" show="{{showAssistModal}}" onModalClose="closeAssistModal" advice="{{true}}"> |
| | | <view class="body"> |
| | | <image class="top" mode="scaleToFill" src="/image/detail_assist_success_top.png"/> |
| | | <view class="content"> |
| | | <image class="portrait" mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <view class="nick-name"> |
| | | 昵*****称 |
| | | </view> |
| | | <view class="desc"> |
| | | <text decode="true"> 邀请你助力拼手气抽奖</text> |
| | | </view> |
| | | <button type="primary" onTap="onFreeLuckyClick"> |
| | | 我也参与 |
| | | </button> |
| | | </view> |
| | | </view> |
| | | </modal> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | leftTime: {//剩余时间 |
| | | h: "00", |
| | | m: "00", |
| | | s: "00" |
| | | }, |
| | | |
| | | //免责弹框 |
| | | showMianZeModal: false, |
| | | //参与抽奖成功弹框 |
| | | showCouponModal: false, |
| | | //助力成功弹框 |
| | | showAssistModal: true, |
| | | //奖项查看更多 |
| | | awardShowMore: true, |
| | | |
| | | |
| | | //参与条件查看更多 |
| | | joinShowMore: true, |
| | | |
| | | //开奖条件查看更多 |
| | | openShowMore: true, |
| | | //奖品列表最大数量 |
| | | maxAward: 3, |
| | | |
| | | activity: { |
| | | joined: false, |
| | | awardList: [{}, {}, {}], |
| | | labels: [{ background: "#E0FFD2", color: "#008B10", value: "进行中" }, { background: "#FFF5D2", color: "#FF8A00", value: "押金预付" }, { background: "#FFE2E6", color: "#F53D59", value: "礼金核实" }] |
| | | } |
| | | |
| | | }, |
| | | onLoad() { |
| | | help.setPageNavBar("抽奖详情"); |
| | | }, |
| | | onReady() { |
| | | |
| | | var item = my.createSelectorQuery() |
| | | .select('#beizhu'); |
| | | console.log(item); |
| | | }, |
| | | closeMianZeModal() { |
| | | this.setData({ |
| | | showMianZeModal: false |
| | | }); |
| | | }, |
| | | closeCouponModal() { |
| | | this.setData({ |
| | | showCouponModal: false |
| | | }); |
| | | }, |
| | | closeAssistModal() { |
| | | this.setData({ |
| | | showAssistModal: false |
| | | }); |
| | | }, |
| | | showMore(event) { |
| | | var type = help.getEventParam(event, "type"); |
| | | console.log(type) |
| | | switch (type) { |
| | | case "award"://查看更多奖项 |
| | | this.setData({ |
| | | awardShowMore: false, |
| | | maxAward: 100 |
| | | }); |
| | | break; |
| | | case "join"://参与条件-查看全文 |
| | | this.setData({ |
| | | joinShowMore: false |
| | | }); |
| | | break; |
| | | case "open"://开奖条件-查看全文 |
| | | this.setData({ |
| | | openShowMore: false |
| | | }); |
| | | break; |
| | | } |
| | | }, |
| | | |
| | | |
| | | //banner图点击 |
| | | onBannerClick() { |
| | | my.showToast({ |
| | | content: 'banner点击' |
| | | }); |
| | | }, |
| | | |
| | | //奖品疑问点击 |
| | | onAwardQuestionClick() { |
| | | my.showToast({ |
| | | content: '奖品疑问' |
| | | }); |
| | | }, |
| | | //查看奖品详情 |
| | | onAwardDetailClick() { |
| | | my.showToast({ |
| | | content: '奖品详情' |
| | | }); |
| | | }, |
| | | |
| | | //广告点击 |
| | | onAdClick() { |
| | | my.showToast({ |
| | | content: '广告详情' |
| | | }); |
| | | }, |
| | | |
| | | //好友助力 |
| | | onAssistClick() { |
| | | my.showToast({ |
| | | content: '好友助力' |
| | | }); |
| | | }, |
| | | //免费抽奖 |
| | | onFreeLuckyClick() { |
| | | //关闭助力弹框 |
| | | this.closeAssistModal(); |
| | | |
| | | this.setData({ |
| | | activity: { |
| | | joined: true |
| | | } |
| | | }); |
| | | this.setData({ |
| | | showCouponModal: true |
| | | }); |
| | | }, |
| | | |
| | | //我的幸运券 |
| | | onMyCouponClick() { |
| | | my.navigateTo({ |
| | | url: '/pages/lucky-coupon/lucky-coupon' |
| | | }); |
| | | }, |
| | | //更多参与者 |
| | | onJoinerMoreClick() { |
| | | my.navigateTo({ |
| | | url: '/pages/join-statistic/join-statistic' |
| | | }); |
| | | }, |
| | | |
| | | //助力进度 |
| | | onAssistProcessClick() { |
| | | my.navigateTo({ |
| | | url: '/pages/assist-process/assist-process' |
| | | }); |
| | | }, |
| | | |
| | | //中奖公示 |
| | | onDrawnAnouncementClick() { |
| | | my.navigateTo({ |
| | | url: '/pages/reward-announcement/reward-announcement' |
| | | }); |
| | | }, |
| | | |
| | | //赞助商报名 |
| | | onSponsorSignUpClick() { |
| | | my.showToast({ |
| | | content: '赞助报名' |
| | | }); |
| | | }, |
| | | |
| | | //意见反馈 |
| | | onAdviceClick() { |
| | | my.navigateTo({ |
| | | url: '/pages/advice/advice' |
| | | }); |
| | | }, |
| | | |
| | | //免责申明 |
| | | mianZe() { |
| | | this.setData({ |
| | | showMianZeModal: true |
| | | }); |
| | | }, |
| | | //我要投诉 |
| | | onComplaintClick() { |
| | | my.showToast({ |
| | | content: '投诉' |
| | | }); |
| | | }, |
| | | //消息设置 |
| | | onMsgSettingClick() { |
| | | |
| | | my.navigateTo({ |
| | | url: '/pages/msg-setting/msg-setting' |
| | | }); |
| | | |
| | | }, |
| | | //赞助商的其他活动 |
| | | onOtherAcitivtyClick() { |
| | | my.showToast({ |
| | | content: '赞助商的其他活动' |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }); |
New file |
| | |
| | | { |
| | | "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index", |
| | | "popover": "mini-ali-ui/es/popover/index", |
| | | "popover-item": "mini-ali-ui/es/popover/popover-item/index", |
| | | "footer": "mini-ali-ui/es/footer/index" |
| | | } |
| | | } |
New file |
| | |
| | | .body { |
| | | box-sizing: border-box; |
| | | padding: 20rpx; |
| | | } |
| | | |
| | | .body textarea { |
| | | line-height: 60rpx; |
| | | height: 302rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | color: #666666; |
| | | font-size: 30rpx; |
| | | } |
| | | |
| | | .body button { |
| | | width: 640rpx; |
| | | height: 82rpx; |
| | | border-radius: 41rpx; |
| | | margin: 53rpx auto 0 auto; |
| | | font-size: 30rpx; |
| | | line-height: 82rpx; |
| | | } |
New file |
| | |
| | | <view> |
| | | <view class="body"> |
| | | <textarea maxlength="150" placeholder="你的意见很宝贵,感谢你的任何想法。"></textarea> |
| | | <button type="primary" onTap="onClick">确认反馈</button> |
| | | </view> |
| | | </view> |
New file |
| | |
| | | var help = require("../../util/help.js"); |
| | | |
| | | Page({ |
| | | data: {}, |
| | | onLoad() { |
| | | help.setPageNavBar("意见反馈"); |
| | | }, |
| | | onClick(){ |
| | | |
| | | |
| | | } |
| | | }); |
New file |
| | |
| | | @import "../common.acss"; |
| | | .top { |
| | | height: 15vh; |
| | | background: #0080FF; |
| | | padding-top: 1vh; |
| | | } |
| | | |
| | | .top view { |
| | | padding: 20rpx; |
| | | margin: 0 auto; |
| | | width: 676rpx; |
| | | text-align: center; |
| | | background: #FFF5B1; |
| | | border-radius: 16rpx; |
| | | font-size: 0; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | |
| | | .top view text { |
| | | font-size: 24rpx; |
| | | line-height: 20rpx; |
| | | } |
| | | |
| | | .content { |
| | | padding: 20rpx; |
| | | position: absolute; |
| | | height: 83vh; |
| | | width: 670rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | margin-left: 20rpx; |
| | | margin-top: -5vh; |
| | | z-index: 100; |
| | | } |
| | | |
| | | .content .title { |
| | | padding-top: 0rpx; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 60rpx; |
| | | padding-bottom: 20rpx; |
| | | } |
| | | |
| | | .content .item { |
| | | color: #666666; |
| | | line-height: 31rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 40rpx; |
| | | border-radius: 6rpx; |
| | | } |
| | | |
| | | .content .column1 { |
| | | width: 356rpx; |
| | | padding-left: 16rpx; |
| | | } |
| | | |
| | | .content .column1 image { |
| | | width: 66rpx; |
| | | height: 66rpx; |
| | | border-radius: 50%; |
| | | margin-right: 11rpx; |
| | | } |
| | | |
| | | .content .column1 text { |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .content .column2 { |
| | | width: 146rpx; |
| | | text-align: center; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .content .column3 { |
| | | width: 176rpx; |
| | | text-align: right; |
| | | padding-right: 16rpx; |
| | | font-size: 28rpx; |
| | | } |
New file |
| | |
| | | <view> |
| | | <view class="top"> |
| | | <view> |
| | | <text decode="true"> |
| | | 你的好友成功助力并参与抽奖你们分别得1张幸运券\n |
| | | 你的好友成功助力未参与抽奖你得1张幸运券 |
| | | </text> |
| | | </view> |
| | | </view> |
| | | <view class="content"> |
| | | <flex class="title" justify="between" direction="row" wrap="nowrap"> |
| | | <view class="column1">助力好友</view> |
| | | <view class="column2">状态</view> |
| | | <view class="column3">获得幸运券</view> |
| | | </flex> |
| | | <scroll-view scroll-y style="height:100%;"> |
| | | <flex class="item" direction="row" align="center" wrap="nowrap" a:for="{{friendsList}}"> |
| | | <flex class="column1" direction="row" wrap="wrap"> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <text number-of-lines="1">text</text> |
| | | </flex> |
| | | <text class="column2">助力成功\n且参与抽奖</text> |
| | | <text class="column3">+ 12张</text> |
| | | </flex> |
| | | <include src="../loading_view.axml" /> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | friendsList: [{}, {}, {}], |
| | | showLoading: true |
| | | }, |
| | | |
| | | onLoad() { |
| | | help.setPageNavBar("助力进度"); |
| | | }, |
| | | }); |
New file |
| | |
| | | {"usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index" |
| | | } |
| | | } |
New file |
| | |
| | | .container { |
| | | width: 184rpx; |
| | | height: 184rpx; |
| | | background: white; |
| | | position: relative; |
| | | } |
| | | |
| | | canvas { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | background: transparent; |
| | | top: 0; |
| | | } |
| | | |
| | | .percent { |
| | | font-size: 35rpx; |
| | | font-weight: bold; |
| | | color: #0080FF; |
| | | line-height: 184rpx; |
| | | text-align: center; |
| | | } |
New file |
| | |
| | | <view style="padding:100rpx;"> |
| | | <view class="container"> |
| | | <canvas width="1500" height="1500" id="canvas-bg"></canvas> |
| | | <canvas width="1500" height="1500" id="canvas"></canvas> |
| | | <view class="percent"> |
| | | 75% |
| | | </view> |
| | | </view> |
| | | </view> |
New file |
| | |
| | | const x = 750; |
| | | const y = 750; |
| | | const r = 640; |
| | | const arc = Math.PI + Math.PI/2; |
| | | const lineWidth = 200; |
| | | Page({ |
| | | data: {}, |
| | | onLoad() { |
| | | this.ctxbg = my.createCanvasContext('canvas-bg'); |
| | | this.ctx = my.createCanvasContext('canvas'); |
| | | this.drawBg(); |
| | | this.draw(); |
| | | }, |
| | | |
| | | drawBg() { |
| | | var ctx = this.ctxbg; |
| | | //画背景圆 |
| | | ctx.setLineWidth(lineWidth-10); |
| | | ctx.setLineCap('round'); |
| | | ctx.arc(x, y, r, 0, Math.PI * 2, true); |
| | | ctx.setStrokeStyle("#EAEAEA"); |
| | | ctx.stroke(); |
| | | ctx.draw(); |
| | | }, |
| | | draw() { |
| | | console.log("画图"); |
| | | var ctx = this.ctx; |
| | | //画背景圆 |
| | | ctx.setLineWidth(lineWidth); |
| | | ctx.setLineCap('round'); |
| | | |
| | | //画进度 |
| | | //画背景圆 |
| | | // ctx=my.createCanvasContext('canvas'); |
| | | // ctx.setLineWidth(lineWidth); |
| | | // ctx.setLineCap('round'); |
| | | const gx1 = x + r; |
| | | const gy1 = y; |
| | | |
| | | const gx2 = x + r * Math.cos(Math.PI * 2 - arc); |
| | | const gy2 = y + r * Math.sin(Math.PI * 2 - arc); |
| | | |
| | | const grd = this.ctx.createLinearGradient(gx1, gy1, gx2, gy2); |
| | | |
| | | grd.addColorStop(0, '#DC51FF'); |
| | | grd.addColorStop(1, '#6FBDFF'); |
| | | ctx.setStrokeStyle(grd); |
| | | ctx.arc(x, y, r, 0, Math.PI * 2 - arc, true); |
| | | ctx.stroke(); |
| | | ctx.draw(); |
| | | }, |
| | | |
| | | computeGrd() { |
| | | const grd = this.ctx.createLinearGradient(150, 100, 100, 150); |
| | | return grd; |
| | | } |
| | | |
| | | |
| | | }); |
New file |
| | |
| | | @import "../common.acss"; |
| | | .top { |
| | | background: #0080FF; |
| | | height: 190rpx; |
| | | } |
| | | |
| | | .nav { |
| | | height: 102rpx; |
| | | } |
| | | |
| | | .nav view { |
| | | width: 354rpx; |
| | | height: 89rpx; |
| | | background: #006EDB; |
| | | color: #FFFFFF; |
| | | font-size: 30rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | text-align: center; |
| | | line-height: 89rpx; |
| | | } |
| | | |
| | | .nav .active { |
| | | height: 102rpx; |
| | | background: #FFFFFF; |
| | | font-weight: bold; |
| | | color: #000000; |
| | | line-height: 102rpx; |
| | | font-size: 34rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | } |
| | | |
| | | .body { |
| | | position: absolute; |
| | | top: 1vh; |
| | | padding-left: 17rpx; |
| | | padding-right: 17rpx; |
| | | height: 99vh; |
| | | } |
| | | |
| | | .body .content-rank { |
| | | background: #FFFFFF; |
| | | padding: 20rpx; |
| | | border-radius: 0rpx 0rpx 16rpx 16rpx; |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | height: 85%; |
| | | } |
| | | |
| | | .body .content-rank .notify { |
| | | height: 63rpx; |
| | | background: #FFF5B1; |
| | | border-radius: 6rpx; |
| | | line-height: 63rpx; |
| | | text-align: center; |
| | | color: #666666; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | margin-top: 29rpx; |
| | | margin-bottom: 18rpx; |
| | | } |
| | | |
| | | .body .content-rank .title { |
| | | margin-top: 15rpx; |
| | | } |
| | | |
| | | .body .content-rank .column1 { |
| | | width: 127rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .body .content-rank .column2 { |
| | | width: 271rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .body .content-rank .column3 { |
| | | width: 97rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .body .content-rank .column4 { |
| | | width: 173rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .body .content-rank .item .column1 { |
| | | color: #0080FF; |
| | | font-size: 28rpx; |
| | | font-weight: bold; |
| | | line-height: 110rpx; |
| | | } |
| | | |
| | | .body .content-rank .item .column1 image { |
| | | width: 38rpx; |
| | | height: 48rpx; |
| | | } |
| | | |
| | | .body .content-rank .column2 image { |
| | | width: 66rpx; |
| | | height: 66rpx; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | .body .content-rank .title .column2 { |
| | | text-align: left; |
| | | } |
| | | |
| | | .body .content-rank .item .column2 text { |
| | | color: #666666; |
| | | font-size: 28rpx; |
| | | width: 200rpx; |
| | | margin-left: 11rpx; |
| | | text-align: left; |
| | | } |
| | | |
| | | .body .content-rank .item .column3 { |
| | | color: #666666; |
| | | font-size: 28rpx; |
| | | } |
| | | |
| | | .body .content-rank .item .column4 image { |
| | | width: 35rpx; |
| | | height: 34rpx; |
| | | } |
| | | |
| | | .item { |
| | | height: 110rpx; |
| | | line-height: 110rpx; |
| | | margin-bottom: 10rpx; |
| | | } |
| | | |
| | | .content-rank .active { |
| | | background: #EAF5FF; |
| | | border-radius: 6rpx; |
| | | } |
| | | |
| | | scroll-view { |
| | | height: 95%; |
| | | } |
| | | |
| | | .footer { |
| | | text-align: center; |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | |
| | | .content-joiner { |
| | | background: #FFFFFF; |
| | | padding: 20rpx; |
| | | border-radius: 0rpx 0rpx 16rpx 16rpx; |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | height: 85%; |
| | | } |
| | | |
| | | .content-joiner .title { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 76rpx; |
| | | width: 644rpx; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .content-joiner .joiner-list { |
| | | width: 656rpx; |
| | | margin-left: 15rpx; |
| | | } |
| | | |
| | | .content-joiner .joiner-list image { |
| | | width: 62rpx; |
| | | height: 62rpx; |
| | | } |
| | | |
| | | .content-joiner .load-more { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #0080FF; |
| | | line-height: 76rpx; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | } |
| | | |
| | | .statistic-modal image { |
| | | width: 39rpx; |
| | | height: 38rpx; |
| | | margin-right: 15rpx; |
| | | } |
| | | |
| | | |
| | | .statistic-modal .model-content { |
| | | width: 516rpx; |
| | | height: 484rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 24px; |
| | | line-height: 24rpx; |
| | | padding-top: 41rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .statistic-modal .number { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 80rpx; |
| | | margin-top: 20rpx; |
| | | } |
New file |
| | |
| | | <view> |
| | | <view class="top"> |
| | | </view> |
| | | <view class="body"> |
| | | <flex class="nav" direction="row" justify="between" align="end" wrap="wrap"> |
| | | <view class="{{currentType==1?'active':''}}" data-type="1" onTap="changeNav">概率排行榜</view> |
| | | <view class="{{currentType==2?'active':''}}" style="margin-left :8rpx;" data-type="2" onTap="changeNav">全部参与者</view> |
| | | </flex> |
| | | <!--概率排行榜--> |
| | | <view class="content-rank" a:if="{{currentType==1}}"> |
| | | <flex class="title" direction="row" wrap="nowrap"> |
| | | <view class="column1">排名</view> |
| | | <text class="column2" decode="true"> 参与者</text> |
| | | <view class="column3">幸运券</view> |
| | | <view class="column4">中奖概率</view> |
| | | </flex> |
| | | <scroll-view scroll-y> |
| | | <view class="notify"> |
| | | 你未能入榜,赶快去邀请好友助力提高中奖概率 |
| | | </view> |
| | | <flex class="item {{index==0?'active':''}}" a:for="{{rankList}}" direction="row" wrap="nowrap"> |
| | | <flex class="column1" justify="center"> |
| | | <image a:if="{{item.rank<4}}" mode="scaleToFill" src="/image/icon/icon_rank_{{item.rank}}.png"/> |
| | | <text a:else>1888</text> |
| | | </flex> |
| | | <flex class="column2" wrap="nowrap" align="center"> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <text number-of-lines="1">红袖添香</text> |
| | | </flex> |
| | | <view class="column3"> ×12张</view> |
| | | <flex class="column4" justify="center"> |
| | | <image mode="scaleToFill" src="/image/icon/icon_statistic_detail.png"/> |
| | | </flex> |
| | | </flex> |
| | | <view class="footer"> |
| | | 注:仅展示前10参与者 |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <!--全部参与者--> |
| | | <view class="content-joiner" a:if="{{currentType==2}}"> |
| | | <flex class="title" direction="row" justify="between" wrap="wrap"> |
| | | <view class="placeholder">共12834参与</view> |
| | | <view class="placeholder">你是第1002参与</view> |
| | | </flex> |
| | | <scroll-view scroll-y style="height:92%;"> |
| | | <flex class="joiner-list" direction="row" wrap="wrap"> |
| | | <image style="margin-right:{{(index+1)%10!=0?'4rpx;':'0;'}} margin-top:{{(index+1)>10?'4rpx;':'0;'}}" mode="scaleToFill" src="/image/portrait-test.jpg" a:for="{{joinerList}}"/> |
| | | </flex> |
| | | <view class="load-more" a:if="{{joinerHasMore}}" onTap="onMoreJoiner"> |
| | | 加载更多 |
| | | </view> |
| | | <view class="footer" style="line-height:76rpx;"> |
| | | 注:参与先后顺序与中奖概率无关 |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | <modal class="statistic-modal" show="{{showStatistic}}" onModalClose="onStatisticClose" advice="{{true}}"> |
| | | <view class="model-content"> |
| | | <text class="title">当前中奖概率高于平均值</text> |
| | | <view class="number"> |
| | | <image src="/image/icon/icon_percent_up.png"/> |
| | | <text class="percent">10.05倍</text> |
| | | </view> |
| | | <view style="display:flex; justify-content: center; margin-bottom: 30rpx;"> |
| | | <circle-statistic-view percent="50" width="184rpx" height="184rpx"></circle-statistic-view> |
| | | </view> |
| | | <text> |
| | | |
| | | 注:当前平均中奖概率是12.00%,\n |
| | | 平均概率为12.00% |
| | | </text> |
| | | </view> |
| | | </modal> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | showStatistic: true, |
| | | currentType: 1, |
| | | showLoading: true, |
| | | rankList: [{ rank: 1 }, { rank: 3 }, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}], |
| | | joinerList: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}], |
| | | joinerHasMore: true |
| | | }, |
| | | onLoad() { |
| | | help.setPageNavBar("参与统计"); |
| | | }, |
| | | changeNav(event) { |
| | | var type = help.getEventParam(event, "type"); |
| | | type = parseInt(type); |
| | | if (type == this.data.currentType) |
| | | return; |
| | | console.log(type); |
| | | this.setData({ |
| | | currentType: type |
| | | }); |
| | | }, |
| | | onMoreJoiner() { |
| | | console.log("加载更多参与者信息"); |
| | | }, |
| | | onStatisticClose() { |
| | | this.setData({ |
| | | showStatistic: false |
| | | }); |
| | | |
| | | } |
| | | }); |
New file |
| | |
| | | { "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index", |
| | | "grid":"mini-ali-ui/es/grid/index", |
| | | "circle-statistic-view":"circle-statistic-view/index" |
| | | } |
| | | } |
New file |
| | |
| | | @import "../common.acss"; |
| | | .top { |
| | | height: 15vh; |
| | | background: #0080FF; |
| | | } |
| | | |
| | | .top text { |
| | | color: #FFFFFF; |
| | | font-size: 30rpx; |
| | | margin-left: 108rpx; |
| | | margin-top: -3vh; |
| | | } |
| | | |
| | | .top image { |
| | | width: 217rpx; |
| | | height: 140rpx; |
| | | margin-top: 1vh; |
| | | } |
| | | |
| | | .content { |
| | | padding: 20rpx; |
| | | position: absolute; |
| | | height: 83vh; |
| | | width: 670rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | margin-left: 20rpx; |
| | | margin-top: -4vh; |
| | | z-index: 100; |
| | | } |
| | | |
| | | .content .title { |
| | | padding-top: 6rpx; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 60rpx; |
| | | padding-bottom: 20rpx; |
| | | } |
| | | |
| | | .content .item { |
| | | color: #666666; |
| | | line-height: 63rpx; |
| | | font-size: 28rpx; |
| | | margin-bottom: 10rpx; |
| | | border-radius: 6rpx; |
| | | } |
| | | |
| | | .content .source { |
| | | width: 276rpx; |
| | | padding-left: 16rpx; |
| | | } |
| | | |
| | | .content .number { |
| | | width: 126rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .content .time { |
| | | width: 276rpx; |
| | | text-align: right; |
| | | padding-right: 16rpx; |
| | | } |
| | | |
| | | .content .even { |
| | | background: #E5F2FF; |
| | | } |
| | | |
| | | .content .odd { |
| | | background: #FFFFFF; |
| | | } |
New file |
| | |
| | | <view> |
| | | <view class="top"> |
| | | <flex direction="row" justify="between" wrap="wrap"> |
| | | <text decode="true"> |
| | | 每一张幸运券\n 都是一次中奖机会 |
| | | </text> |
| | | <image mode="scaleToFill" src="/image/lucky_coupon_top_icon.png"/> |
| | | </flex> |
| | | </view> |
| | | <view class="content"> |
| | | <flex class="title" justify="between" direction="row" wrap="nowrap"> |
| | | <view class="source">来源</view> |
| | | <view class="number">幸运券</view> |
| | | <view class="time">获得时间</view> |
| | | </flex> |
| | | <scroll-view scroll-y=""> |
| | | <flex class="item {{index%2==0?'even':'odd'}}" direction="row" align="center" wrap="nowrap" a:for="{{couponList}}"> |
| | | <text class="source" number-of-lines="1">自己擦浴12</text> |
| | | <text class="number">x10张</text> |
| | | <text class="time">2020.02.02 12:00</text> |
| | | </flex> |
| | | |
| | | <include src="../loading_view.axml" /> |
| | | |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | showLoading:true, |
| | | couponList: [ |
| | | {}, {}, {} |
| | | ] |
| | | }, |
| | | onLoad() { |
| | | help.setPageNavBar("幸运券"); |
| | | }, |
| | | }); |
| | | |
New file |
| | |
| | | { |
| | | "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index" |
| | | } |
| | | } |
| | |
| | | background: #0080FF; |
| | | position: relative; |
| | | color: white; |
| | | padding: 50rpx 30rpx;; |
| | | |
| | | padding: 50rpx 30rpx; |
| | | ; |
| | | } |
| | | |
| | | .user .portrait { |
| | |
| | | border: #73B9FF solid 1px; |
| | | text-align: center; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .modal-logout {} |
| | | |
| | | .modal-logout .body { |
| | | padding: 0 20rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .modal-logout .body .title { |
| | | font-size: 36rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | } |
| | | |
| | | .modal-logout .body .content { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | line-height: 39rpx; |
| | | margin-bottom: 60rpx; |
| | | margin-top: 30rpx; |
| | | text-align: left; |
| | | } |
| | | |
| | | .modal-logout .body button { |
| | | width: 220rpx; |
| | | height: 70rpx; |
| | | line-height: 70rpx; |
| | | border-radius: 35rpx; |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | | } |
| | | |
| | | badge{ |
| | | z-index: 10; |
| | | } |
| | |
| | | <list-item thumb="/image/icon/icon_mine_lucky_record.png" thumbSize="50rpx" arrow="{{true}}" data-key="luckRecord" onClick="onItemClick"> |
| | | 抽奖记录 |
| | | </list-item> |
| | | <list-item thumb="/image/icon/icon_mine_assist_friends.png" arrow="{{true}}" thumbSize="45rpx" data-key="friends" onClick="onItemClick"> |
| | | <list-item thumb="/image/icon/icon_mine_assist_friends.png" arrow="{{true}}" thumbSize="45rpx" data-key="friends" onClick="onItemClick"> |
| | | 助力好友 |
| | | </list-item> |
| | | <view style="height:22rpx;"></view> |
| | | <list-item thumb="/image/icon/icon_mine_msg.png" arrow="{{true}}" thumbSize="48rpx" data-key="msg" onClick="onItemClick"> |
| | | <list-item thumb="/image/icon/icon_mine_msg.png" arrow="{{true}}" thumbSize="48rpx" data-key="msg" onClick="onItemClick"> |
| | | 消息记录 |
| | | <badge slot="extra" text="{{'99+'}}" dot="{{false}}" /> |
| | | </list-item> |
| | | <view style="height:22rpx;"></view> |
| | | <list-item thumb="/image/icon/icon_mine_scan_history.png" arrow="{{true}}" thumbSize="51rpx" data-key="scanHistory" onClick="onItemClick"> |
| | | <list-item thumb="/image/icon/icon_mine_scan_history.png" arrow="{{true}}" thumbSize="51rpx" data-key="scanHistory" onClick="onItemClick"> |
| | | 浏览足迹 |
| | | </list-item> |
| | | <list-item thumb="/image/icon/icon_mine_newer_course.png" arrow="{{true}}" thumbSize="43rpx" data-key="newerCourse" onClick="onItemClick"> |
| | | <list-item thumb="/image/icon/icon_mine_newer_course.png" arrow="{{true}}" thumbSize="43rpx" data-key="newerCourse" onClick="onItemClick"> |
| | | 新手教程 |
| | | </list-item> |
| | | <list-item thumb="/image/icon/icon_mine_question.png" arrow="{{true}}" thumbSize="48rpx" data-key="question" onClick="onItemClick"> |
| | | <list-item thumb="/image/icon/icon_mine_question.png" arrow="{{true}}" thumbSize="48rpx" data-key="question" onClick="onItemClick"> |
| | | 常见问题 |
| | | </list-item> |
| | | </list> |
| | | <modal class="modal-logout" zIndex=1000 show="{{showLogout}}"> |
| | | <view class="body"> |
| | | <view class="title"> |
| | | 确定要退出登录吗? |
| | | </view> |
| | | <view class="content"> |
| | | 退出登录后将无法及时查看到抽奖进度、中奖状态、领取奖品等状态更新和提醒 |
| | | </view> |
| | | <view style="display:flex;justify-content:space-between"> |
| | | <button type="ghost" onTap="onLogout"> |
| | | 确定退出 |
| | | </button> |
| | | <button type="primary" onTap="onCloseLogout"> |
| | | 考虑一下 |
| | | </button> |
| | | </view> |
| | | </view> |
| | | </modal> |
| | | <view> |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: {}, |
| | | data: { |
| | | showLogout: true |
| | | }, |
| | | onLoad() { |
| | | my.setNavigationBar({ |
| | | backgroundColor: "#0080FF", |
| | |
| | | case 'friends': |
| | | path = '/pages/assist-friends/assist-friends'; |
| | | break; |
| | | case 'msg': |
| | | case 'msg': |
| | | path = '/pages/msg-record/msg-record'; |
| | | break; |
| | | case 'scanHistory': break; |
| | | break; |
| | | case 'scanHistory': |
| | | path = '/pages/scan-record/scan-record'; |
| | | break; |
| | | case 'newerCourse': break; |
| | | case 'question': break; |
| | | case 'question': |
| | | path = '/pages/web/web?title=测试&url=http://www.baidu.com'; |
| | | break; |
| | | |
| | | } |
| | | my.navigateTo({ |
| | | url: '/pages/assist-friends/assist-friends' |
| | | url: path |
| | | }); |
| | | }, |
| | | //关闭退出弹框 |
| | | onCloseLogout() { |
| | | this.setData({ |
| | | showLogout: false |
| | | }); |
| | | }, |
| | | onLogout() { |
| | | this.onCloseLogout(); |
| | | } |
| | | |
| | | |
| | | }); |
New file |
| | |
| | | .top { |
| | | height: 16vh; |
| | | text-align: center; |
| | | font-size: 32rpx; |
| | | color: #FFFFFF; |
| | | background: #0080FF; |
| | | line-height: 38rpx; |
| | | } |
| | | |
| | | .body { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | position: absolute; |
| | | top: 6vh; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | .body .top-image { |
| | | width: 336rpx; |
| | | height: 85rpx; |
| | | margin-bottom: -10rpx; |
| | | } |
| | | |
| | | .body .content { |
| | | width: 656rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 16rpx; |
| | | height: 79vh; |
| | | padding: 3vh 30rpx; |
| | | box-sizing: content-box; |
| | | } |
| | | |
| | | .award { |
| | | margin-top: 20rpx; |
| | | } |
| | | |
| | | .award-way { |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | margin-left: 7rpx; |
| | | } |
| | | |
| | | .award-name { |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 60rpx; |
| | | } |
| | | |
| | | .user-list { |
| | | width: 656rpx; |
| | | margin-left: 7rpx; |
| | | margin-top: 25rpx; |
| | | } |
| | | |
| | | .user-list image { |
| | | width: 62rpx; |
| | | height: 62rpx; |
| | | } |
| | | |
| | | .load-more { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #0080FF; |
| | | line-height: 76rpx; |
| | | text-align: center; |
| | | } |
New file |
| | |
| | | <view> |
| | | <view class="top"> |
| | | <view style="font-size:32rpx;"> |
| | | 中奖名单 |
| | | </view> |
| | | <view style="font-size:22rpx;"> |
| | | 更新于2020.11.18 12:00 |
| | | </view>> |
| | | </view> |
| | | <view class="body"> |
| | | <view> |
| | | <image class="top-image" src="/image/reward_annocement_top.png"/> |
| | | </view> |
| | | <view class="content"> |
| | | <scroll-view scroll-y style="height:100%;"> |
| | | <view a:for="{{awardList}}" class="award"> |
| | | <flex direction="row" wrap="wrap" align="top"> |
| | | <image class="award-way" mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <rich-text class="award-name" nodes="{{item.awardName}}"></rich-text> |
| | | </flex> |
| | | <flex direction="row" wrap="wrap" class="user-list"> |
| | | <image style="margin-right:{{(userIndex+1)%10!=0?'4rpx;':'0;'}} margin-top:{{(userIndex+1)>10?'4rpx;':'0;'}}" mode="scaleToFill" a:for-item="user" a:for-index="userIndex" src="{{user.portrait}}" a:for="{{item.userList}}"/> |
| | | </flex> |
| | | <view class="load-more"> |
| | | 加载更多 |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | awardList: [ |
| | | { |
| | | userList: [{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }] |
| | | |
| | | }, { |
| | | |
| | | userList: [{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }] |
| | | |
| | | }, { |
| | | userList: [{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' }, { portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' },{ portrait: '/image/portrait-test.jpg' }] |
| | | |
| | | } |
| | | ] |
| | | }, |
| | | onLoad() { |
| | | help.setPageNavBar("中奖公示"); |
| | | }, |
| | | }); |
New file |
| | |
| | | { "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index" |
| | | } |
| | | } |
| | |
| | | @import "../common.acss"; |
| | | .notice { |
| | | background: #FFF5B1; |
| | | color: #666666; |
| | | text-align: center; |
| | | padding-left: 19rpx; |
| | | padding-right: 19rpx; |
| | | .notice { |
| | | /* padding-left: 19rpx; |
| | | padding-right: 19rpx; */ |
| | | border-radius: 16rpx; |
| | | margin: 19rpx; |
| | | height: 63rpx; |
| | | line-height: 63rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | .notice .content { |
| | | width: 582rpx; |
| | | margin-left: 14rpx; |
| | | margin-right: 14rpx; |
| | | word-break: keep-all; |
| | | word-wrap: unset; |
| | | } |
| | | |
| | | .notice .msg { |
| | | height: 24rpx; |
| | | width: 24rpx; |
| | | } |
| | | |
| | | .notice .del { |
| | | height: 33rpx; |
| | | width: 33rpx; |
| | | } |
| | | |
| | | .item { |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | margin-top: 20rpx; |
| | | position: relative; |
| | | background: white; |
| | | border-radius: 20rpx; |
| | | } |
| | | |
| | | .item .poster { |
| | | width: 100%; |
| | | height: 354rpx; |
| | | border-top-left-radius: 20rpx; |
| | | border-top-right-radius: 20rpx; |
| | | } |
| | | |
| | | .item .joined { |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | height: 105rpx; |
| | | width: 105rpx; |
| | | border-top-left-radius: 20rpx; |
| | | } |
| | | |
| | | .item .content { |
| | | margin: 20rpx; |
| | | padding-bottom: 20rpx; |
| | | } |
| | | |
| | | .item .content .sponsor .icon { |
| | | width: 25rpx; |
| | | height: 25rpx; |
| | | } |
| | | |
| | | .item .content .sponsor .title { |
| | | color: #0080FF; |
| | | font-size: 24rpx; |
| | | margin-left: 8rpx; |
| | | } |
| | | |
| | | .item .content .reward-way { |
| | | width: 28rpx; |
| | | height: 29rpx; |
| | | } |
| | | |
| | | .item .content .reward-title { |
| | | color: #333333; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | margin-left: 10rpx; |
| | | } |
| | | |
| | | .item .content .open-time { |
| | | font-size: 22rpx; |
| | | color: #999999; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .item .content .joiner-num { |
| | | font-size: 22rpx; |
| | | color: #AAAAAA; |
| | | font-weight: 400; |
| | | margin-left: 11rpx; |
| | | } |
| | | |
| | | .item .content .portrait { |
| | | width: 27rpx; |
| | | height: 27rpx; |
| | | border-radius: 27rpx; |
| | | margin-left: -8rpx; |
| | | } |
| | | /* height: 63rpx; |
| | | line-height: 50rpx; |
| | | text-align: center; */ |
| | | } |
| | | |
| | | .dialog { |
| | | text-align: center; |
| | |
| | | background: #F2CC8B; |
| | | margin: 0 auto; |
| | | margin-top: 41rpx; |
| | | } |
| | | |
| | | .dialog-outdate { |
| | | text-align: center; |
| | | background: transparent; |
| | | } |
| | | |
| | | .dialog-outdate .title { |
| | | width: 602rpx; |
| | | height: 99rpx; |
| | | } |
| | | |
| | | .dialog-outdate .content { |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | color: #FFFFFF; |
| | | width: 496rpx; |
| | | height: 624rpx; |
| | | background: #5294E5; |
| | | border-radius: 16rpx; |
| | | padding: 31rpx 60rpx; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .dialog-outdate .icon { |
| | | width: 308rpx; |
| | | height: 197rpx; |
| | | margin-top: 35rpx; |
| | | } |
| | | |
| | | .dialog-outdate .btn { |
| | | width: 312rpx; |
| | | height: 54rpx; |
| | | line-height: 54rpx; |
| | | background: #FFEE7E; |
| | | border-radius: 27rpx; |
| | | color: #0080FF; |
| | | font-size: 24rpx; |
| | | margin: 0 auto; |
| | | margin-top: 29rpx; |
| | | } |
| | | |
| | | .dialog-outdate .reward { |
| | | font-size: 30rpx; |
| | | margin-top: 18rpx; |
| | | display: flex; |
| | | line-height: 39rpx; |
| | | box-sizing: border-box; |
| | | padding-left: 30rpx; |
| | | } |
| | | |
| | | .dialog-outdate .reward image { |
| | | width: 28rpx; |
| | | height: 28rpx; |
| | | margin-top: 6rpx; |
| | | margin-right: 14rpx; |
| | | } |
| | | |
| | | .dialog-outdate .reward text { |
| | | width: 275rpx; |
| | | } |
| | |
| | | <view class="dyt-list" style="position: relative;"> |
| | | <scroll-view style="height: 100vh;" |
| | | scroll-y onScrollToLower="scrollMytrip" enable-back-to-top="true"> |
| | | <flex direction="row" wrap="nowrap" class="notice" align="center"> |
| | | <image class="msg" src="/image/icon/icon_notice.png" /> |
| | | <view class="content"> |
| | | <text number-of-lines="1">12123123 12123123 12123123 12123123 12123123 12123123</text> |
| | | </view> |
| | | <image class="del" src="/image/icon/icon_notice_del.png" /> |
| | | </flex> |
| | | <view a:for="{{list}}" class="item"> |
| | | <image mode="aspectFill" class="poster" src="/image/test.jpg"></image> |
| | | <image mode="scaleToFill" src="/image/icon/tag_joined.png" class="joined"/> |
| | | <import src="../template/template.axml"/> |
| | | <template is="activityItemBottom" data="{{item}}"/> |
| | | </view> |
| | | <notice class="notice" marqueeProps="{{loop:true}}" enableMarquee="{{true}}" show="{{showNotice}}" mode="{{noticeMode}}" onClick="onNoticeClick"> |
| | | 无限循环滚动的通告栏展示情况。文字不够继续添加文字凑数。 |
| | | </notice> |
| | | <import src="../template/template.axml"/> |
| | | <template is="commonActivityListItem" a:for="{{list}}" data="{{item}}"/> |
| | | <include src="../loading_view.axml" /> |
| | | </scroll-view> |
| | | <modal show="{{true}}" onModalClose="onCloseDialog" class="dialog" advice="{{true}}"> |
| | | <modal show="{{false}}" onModalClose="onCloseDialog" class="dialog" advice="{{true}}"> |
| | | <view > |
| | | <image class="title" mode="scaleToFill" src="/image/reward_dialog_title.png"/> |
| | | <view class="content"> |
| | |
| | | </view> |
| | | </view> |
| | | </modal> |
| | | <modal show="{{false}}" onModalClose="onCloseDialog" class="dialog-outdate" advice="{{true}}"> |
| | | <view > |
| | | <image class="title" mode="scaleToFill" src="/image/reward_outdate_dialog_title.png"/> |
| | | <view class="content"> |
| | | <view style="font-size:24rpx;"> |
| | | 活动期号:NO.12378947 |
| | | </view> |
| | | <image class="icon" src="/image/reward_outdate_dialog_icon.png"/> |
| | | <view class="reward"> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg"/> |
| | | <text number-of-lines="2">大额现金红包大额现金红包大额现红包10000</text> |
| | | </view> |
| | | <view class="btn" onTap="onDetail"> |
| | | 查看详情 |
| | | </view> |
| | | <view style="font-size:24rpx;margin-top:32rpx;line-height:28rpx;"> |
| | | 注:中奖日起7天内未领取奖品,将会把对应奖品原路退回赞助商,切记中奖后按时领取奖品。 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </modal> |
| | | </view> |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | list: [1, 2, 3, 4, 5, 6, 7, 8, 10], |
| | | list: [{id:13213}, 2, 3, 4, 5, 6, 7, 8, 10], |
| | | showLoading: false, |
| | | page: 1, |
| | | total: 15 |
| | | total: 15, |
| | | showNotice: true, |
| | | noticeMode: 'closable',//closable |
| | | }, |
| | | onLoad() { }, |
| | | onPullDownRefresh() { |
| | |
| | | content: "领奖" |
| | | }); |
| | | |
| | | }, |
| | | onNoticeClick() { |
| | | |
| | | if (this.data.noticeMode == 'closable') { |
| | | this.setData({ |
| | | showNotice: false |
| | | }); |
| | | } else { |
| | | my.showToast({ |
| | | content: "进入详情" |
| | | }); |
| | | } |
| | | |
| | | |
| | | }, |
| | | clickItem(event) { |
| | | var item = help.getEventParam(event, 'item'); |
| | | console.log(item.id); |
| | | my.navigateTo({ |
| | | url: '/pages/activity-detail/activity-detail?id='+item.id |
| | | }); |
| | | } |
| | | |
| | | |
| | |
| | | "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index" |
| | | "modal": "mini-ali-ui/es/modal/index", |
| | | "notice": "mini-ali-ui/es/notice/index" |
| | | } |
| | | } |
copy from pages/msg_setting/msg_setting.acss
copy to pages/scan-record/scan-record.acss
New file |
| | |
| | | <view class="dyt-list" style="position: relative;"> |
| | | <scroll-view style="height: 100vh;" |
| | | scroll-y onScrollToLower="scrollMytrip" enable-back-to-top="true"> |
| | | <import src="../template/template.axml"/> |
| | | <template is="commonActivityListItem" a:for="{{list}}" data="{{item}}"/> |
| | | <include src="../loading_view.axml" /> |
| | | </scroll-view> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | Page({ |
| | | data: { |
| | | list: [{ id: 13213 }, 2, 3, 4, 5, 6, 7, 8, 10], |
| | | showLoading: false, |
| | | page: 1, |
| | | total: 15 |
| | | }, |
| | | onLoad() { |
| | | help.setPageNavBar("浏览足迹"); |
| | | }, |
| | | onPullDownRefresh() { |
| | | console.log('onPullDownRefresh', new Date()); |
| | | my.showToast({ |
| | | content: "下拉刷新触发" |
| | | }); |
| | | |
| | | this.getActivityList(1); |
| | | |
| | | |
| | | }, |
| | | async scrollMytrip() { |
| | | try { |
| | | console.log('scrollMytrip:'); |
| | | const { page, list, } = this.data; |
| | | // 判断是否还有数据需要加载 |
| | | if (list.length < this.data.total) { |
| | | //开启加载 |
| | | this.setData({ showLoading: true }); |
| | | const newPage = page + 1; |
| | | this.getActivityList(newPage); |
| | | } |
| | | } catch (e) { |
| | | this.setData({ show: false }); |
| | | console.log('scrollMytrip执行异常:', e); |
| | | } |
| | | }, |
| | | //获取列表 |
| | | getActivityList(page = 1) { |
| | | setTimeout(function () { |
| | | my.stopPullDownRefresh({ |
| | | complete(res) { |
| | | console.log(res, new Date()) |
| | | } |
| | | }); |
| | | my.showToast({ |
| | | content: "请求数据:" + page |
| | | }); |
| | | |
| | | }, 5000); |
| | | }, |
| | | clickItem(event) { |
| | | var item = help.getEventParam(event, 'item'); |
| | | console.log(item.id); |
| | | my.navigateTo({ |
| | | url: '/pages/activity-detail/activity-detail?id=' + item.id |
| | | }); |
| | | } |
| | | |
| | | |
| | | }); |
New file |
| | |
| | | { |
| | | "pullRefresh": true, |
| | | "usingComponents": { |
| | | "flex": "mini-ali-ui/es/flex/index", |
| | | "flex-item": "mini-ali-ui/es/flex/flex-item/index", |
| | | "modal": "mini-ali-ui/es/modal/index" |
| | | } |
| | | } |
New file |
| | |
| | | button { |
| | | width: 640rpx; |
| | | height: 82rpx; |
| | | border-radius: 41rpx; |
| | | margin: 68rpx auto 0 auto; |
| | | line-height: 82rpx; |
| | | font-size: 30rpx; |
| | | } |
New file |
| | |
| | | <view style="padding-top:20rpx;"> |
| | | <list > |
| | | <picker-item data-field="bank" placeholder="" value="{{bank}}" onPickerTap="onPickerTap"> |
| | | 我是 |
| | | </picker-item> |
| | | <picker-item data-field="bank" placeholder="" value="{{bank}}" onPickerTap="onPickerTap"> |
| | | 我能提供 |
| | | </picker-item> |
| | | <list-item arrow="{{false}}" style="display:flex;line-height:0" upperSubtitle=""> |
| | | <text> 联系方式 |
| | | </text> |
| | | <input placeholder="请输入" style="text-align:left;" slot="afterTitle"/> |
| | | </list-item> |
| | | </list> |
| | | <button type="primary" onTap=""> |
| | | 提交信息 |
| | | </button> |
| | | </view> |
New file |
| | |
| | | var help = require("../../util/help.js") |
| | | const banks=[1,2,3,4]; |
| | | Page({ |
| | | data: {}, |
| | | onLoad() { |
| | | help.setPageNavBar("赞助报名"); |
| | | }, |
| | | onPickerTap() { |
| | | my.showActionSheet({ |
| | | items: banks, |
| | | success: (res) => { |
| | | this.setData({ |
| | | bank: banks[res.index], |
| | | }); |
| | | }, |
| | | }); |
| | | } |
| | | }); |
New file |
| | |
| | | { |
| | | "usingComponents": { |
| | | "list": "mini-ali-ui/es/list/index", |
| | | "list-item": "mini-ali-ui/es/list/list-item/index", |
| | | "picker-item": "mini-ali-ui/es/picker-item/index" |
| | | } |
| | | } |
| | |
| | | </flex> |
| | | </view> |
| | | |
| | | </template> |
| | | |
| | | <template name="commonActivityListItem"> |
| | | |
| | | <view class="lucky-activity-item" data-item="{{item}}" onTap="clickItem"> |
| | | <image mode="aspectFill" class="poster" src="/image/test.jpg"></image> |
| | | <image mode="scaleToFill" src="/image/icon/tag_joined.png" class="joined"/> |
| | | <template is="activityItemBottom" data="{{item}}"/> |
| | | </view> |
| | | |
| | | </template> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <template name="circleProcess"> |
| | | <view class="content"> |
| | | <!--赞助商信息--> |
| | | <flex direction="row" wrap="wrap" class="sponsor"> |
| | | <image mode="scaleToFill" src="{{item.activity.sponsorInfo.icon}}" class="icon" /> |
| | | <view class="title">{{item.activity.sponsorInfo.sponsors.name}}</view> |
| | | </flex> |
| | | <!--奖品列表--> |
| | | <flex a:for="{{item.activity.awardsList}}" a:for-item="award" direction="row" wrap="wrap" style="margin-top:23rpx;"> |
| | | <image mode="scaleToFill" class="reward-way" src="{{award.awardWay}}"/> |
| | | <view class="placeholder" class="reward-title ">{{award.awardName}}</view> |
| | | </flex> |
| | | <!--空白区域--> |
| | | <view style="height:39rpx;"> |
| | | </view> |
| | | <flex direction="row" justify="between"> |
| | | <!--开奖时间--> |
| | | <view class="open-time">11月11日 18:00自动开奖</view> |
| | | <!--参与人信息--> |
| | | <view class="placeholder"> |
| | | <flex direction="row"> |
| | | <flex> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg" class="portrait"/> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg" class="portrait"/> |
| | | <image mode="scaleToFill" src="/image/portrait-test.jpg" class="portrait"/> |
| | | </flex> |
| | | <view class="joiner-num">352112323人参与拼手气</view> |
| | | </flex> |
| | | </view> |
| | | </flex> |
| | | </view> |
| | | |
| | | </template> |
copy from pages/msg_setting/msg_setting.acss
copy to pages/web/web.acss
New file |
| | |
| | | <view> |
| | | <web-view id="web-view" src="{{url}}" onMessage="onmessage"></web-view> |
| | | </view> |
New file |
| | |
| | | var help = require('../../util/help.js'); |
| | | |
| | | Page({ |
| | | data: { |
| | | url: 'https://render.alipay.com/p/s/web-view/index' |
| | | }, |
| | | onLoad(query) { |
| | | console.log(query.url); |
| | | help.setPageNavBar(query.title); |
| | | // this.setData({ |
| | | // url: query.url |
| | | // }); |
| | | this.webViewContext = my.createWebViewContext('web-view'); |
| | | }, |
| | | onmessage(e) { |
| | | my.alert({ |
| | | content: JSON.stringify(e.detail), |
| | | }); |
| | | } |
| | | }); |
| | |
| | | var help = { |
| | | getEventParam(event, name) { |
| | | return event.target.dataset[name]; |
| | | }, |
| | | setPageNavBar(title){ |
| | | my.setNavigationBar({ |
| | | title: title, |
| | | backgroundColor: getApp().themeColor, |
| | | borderBottomColor: getApp().themeColor |
| | | }); |
| | | } |
| | | }; |
| | | |