服务器提交
This commit is contained in:
10
public/weapp/pages_promotion/components/l-time/l-time.js
Executable file
10
public/weapp/pages_promotion/components/l-time/l-time.js
Executable file
@@ -0,0 +1,10 @@
|
||||
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/components/l-time/l-time"],{"57fd":function(t,e,n){"use strict";var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("9851")),u={name:"l-time",props:{text:{type:[String,Number,Date],default:""},maxDate:{type:Boolean,default:!1}},data:function(){return{textVal:this.text}},watch:{text:function(){this.textVal=this.text}},computed:{temp:function(){return this.getText()}},methods:{getText:function(){var t=this,e=i.default.getFormatTime(t.textVal,t.maxDate);return e&&(e.endsWith("刚刚")||e.endsWith("分钟前"))&&setTimeout((function(){var e=t.textVal;t.textVal="",t.textVal=e}),6e4),this.textVal?e:""},onClick:function(){this.$emit("on-tap",this.textVal)}}};e.default=u},"60c5":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]},7477:function(t,e,n){"use strict";n.r(e);var a=n("60c5"),i=n("aaa6");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);var o=n("828b"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports},aaa6:function(t,e,n){"use strict";n.r(e);var a=n("57fd"),i=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages_promotion/components/l-time/l-time-create-component',
|
||||
{
|
||||
'pages_promotion/components/l-time/l-time-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("7477"))
|
||||
})
|
||||
},
|
||||
[['pages_promotion/components/l-time/l-time-create-component']]
|
||||
]);
|
||||
4
public/weapp/pages_promotion/components/l-time/l-time.json
Executable file
4
public/weapp/pages_promotion/components/l-time/l-time.json
Executable file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/weapp/pages_promotion/components/l-time/l-time.wxml
Executable file
1
public/weapp/pages_promotion/components/l-time/l-time.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<text>{{temp}}</text>
|
||||
Reference in New Issue
Block a user