first commit
This commit is contained in:
10
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.js
vendored
Normal file
10
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-code/u-code"],{"0b2d":function(e,t,n){"use strict";n.r(t);var i=n("f2a1"),s=n("7f4d");for(var u in s)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(u);n("f635");var a=n("828b"),c=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"75cd6d19",null,!1,i["a"],void 0);t["default"]=c.exports},"331b":function(e,t,n){},7695:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("e6bd")),u={name:"u-code",mixins:[e.$u.mpMixin,e.$u.mixin,s.default],data:function(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted:function(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler:function(e){this.secNum=e}}},methods:{checkKeepRunning:function(){var t=Number(e.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!t)return this.changeEvent(this.startText);var n=Math.floor(+new Date/1e3);this.keepRunning&&t&&t>n?(this.secNum=t-n,e.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var e=this;this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.timer=setInterval((function(){--e.secNum?e.changeEvent(e.changeText.replace(/x|X/,e.secNum)):(clearInterval(e.timer),e.timer=null,e.changeEvent(e.endText),e.secNum=e.seconds,e.$emit("end"),e.canGetCode=!0)}),1e3),this.setTimeToStorage()},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(e){this.$emit("change",e)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var t=Math.floor(+new Date/1e3);e.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:t+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};t.default=u}).call(this,n("df3c")["default"])},"7f4d":function(e,t,n){"use strict";n.r(t);var i=n("7695"),s=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);t["default"]=s.a},f2a1:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},s=[]},f635:function(e,t,n){"use strict";var i=n("331b"),s=n.n(i);s.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'node-modules/uview-ui/components/u-code/u-code-create-component',
|
||||
{
|
||||
'node-modules/uview-ui/components/u-code/u-code-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("0b2d"))
|
||||
})
|
||||
},
|
||||
[['node-modules/uview-ui/components/u-code/u-code-create-component']]
|
||||
]);
|
||||
4
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-code data-v-75cd6d19"></view>
|
||||
1
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/node-modules/uview-ui/components/u-code/u-code.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
view.data-v-75cd6d19, scroll-view.data-v-75cd6d19, swiper-item.data-v-75cd6d19{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}
|
||||
Reference in New Issue
Block a user