info
This commit is contained in:
-1
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
.preview-tip.data-v-79393c9f{display:flex;align-items:center}.preview-tip .mp-preview.data-v-79393c9f{position:relative;color:#2979ff;cursor:pointer}.preview-tip .mp-preview:hover .qr.data-v-79393c9f{display:block}.preview-tip .mp-preview .qr.data-v-79393c9f{display:none;position:absolute;left:50%;margin-left:-70px;width:140px;height:140px;padding:10px;background:#fff;z-index:1;top:34px;border-radius:8px;border:#e1e1e1 solid 1px;box-shadow:rgba(0,0,0,.1) 0 5px 8px;box-sizing:border-box}.preview-tip .mp-preview .qr .img.data-v-79393c9f{width:100%;height:100%}
|
||||
-1
@@ -1 +0,0 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-cms/pages/categories/add/add"],{"1f4b":function(n,t,e){"use strict";e.r(t);var r=e("9084"),o=e("a20f");for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);var u=e("828b"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=a.exports},"3fe3":function(n,t,e){"use strict";(function(n,t){var r=e("47a9");e("7bfe"),e("861b");r(e("3240"));var o=r(e("1f4b"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"633a":function(n,t,e){"use strict";(function(n,r){var o=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e("7ca3")),u=e("f8a1");function a(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function c(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?a(Object(e),!0).forEach((function(t){(0,i.default)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var s=n.database();s.command;function f(n){var t={};for(var e in u.validator)n.includes(e)&&(t[e]=u.validator[e]);return t}var l={data:function(){var n={name:"",description:"",icon:"",sort:null,article_count:null};return{formData:n,formOptions:{},rules:c({},f(Object.keys(n)))}},onReady:function(){this.$refs.form.setRules(this.rules)},methods:{submit:function(){var n=this;r.showLoading({mask:!0}),this.$refs.form.validate().then((function(t){return n.submitForm(t)})).catch((function(){})).finally((function(){r.hideLoading()}))},submitForm:function(n){var t=this;return s.collection("uni-cms-categories").add(n).then((function(n){r.showToast({title:"新增成功"});try{t.getOpenerEventChannel().emit("refreshData")}catch(e){}setTimeout((function(){return r.navigateBack()}),500)})).catch((function(n){r.showModal({content:n.message||"请求服务失败",showCancel:!1})}))}}};t.default=l}).call(this,e("861b")["uniCloud"],e("df3c")["default"])},9084:function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return r}));var r={uniForms:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(e.bind(null,"67e1"))},uniFormsItem:function(){return e.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item").then(e.bind(null,"47be"))},uniEasyinput:function(){return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null,"1986"))}},o=function(){var n=this.$createElement;this._self._c},i=[]},a20f:function(n,t,e){"use strict";e.r(t);var r=e("633a"),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a}},[["3fe3","common/runtime","common/vendor"]]]);
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "新增分类",
|
||||
"usingComponents": {
|
||||
"uni-forms": "/uni_modules/uni-forms/components/uni-forms/uni-forms",
|
||||
"uni-forms-item": "/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item",
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
|
||||
}
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
<view class="uni-container"><uni-forms class="vue-ref" vue-id="daa4479a-1" model="{{formData}}" validateTrigger="bind" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('daa4479a-2')+','+('daa4479a-1')}}" name="name" label="名称" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('daa4479a-3')+','+('daa4479a-2')}}" placeholder="类别名称" trim="both" value="{{formData.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('daa4479a-4')+','+('daa4479a-1')}}" name="description" label="描述" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('daa4479a-5')+','+('daa4479a-4')}}" placeholder="类别描述" trim="both" value="{{formData.description}}" data-event-opts="{{[['^input',[['__set_model',['$0','description','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('daa4479a-6')+','+('daa4479a-1')}}" name="sort" label="排序" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('daa4479a-7')+','+('daa4479a-6')}}" placeholder="类别显示顺序" type="number" value="{{formData.sort}}" data-event-opts="{{[['^input',[['__set_model',['$0','sort','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><view class="uni-button-group"><button class="uni-button" style="width:100px;" type="primary" data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" bindtap="__e">提交</button><navigator style="margin-left:15px;" open-type="navigateBack"><button class="uni-button" style="width:100px;">返回</button></navigator></view></uni-forms></view>
|
||||
-1
@@ -1 +0,0 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-cms/pages/categories/edit/edit"],{"0a60":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("7bfe"),e("861b");i(e("3240"));var o=i(e("55b3"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},3038:function(t,n,e){"use strict";(function(t,i){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("7ca3")),a=e("f8a1");function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){(0,r.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s=t.database();s.command;function f(t){var n={};for(var e in a.validator)t.includes(e)&&(n[e]=a.validator[e]);return n}var l={data:function(){var t={name:"",description:"",icon:"",sort:null,create_date:null};return{formData:t,formOptions:{},rules:c({},f(Object.keys(t)))}},onLoad:function(t){if(t.id){var n=t.id;this.formDataId=n,this.getDetail(n)}},onReady:function(){this.$refs.form.setRules(this.rules)},methods:{submit:function(){var t=this;i.showLoading({mask:!0}),this.$refs.form.validate().then((function(n){return t.submitForm(n)})).catch((function(){})).finally((function(){i.hideLoading()}))},submitForm:function(t){var n=this;return s.collection("uni-cms-categories").doc(this.formDataId).update(t).then((function(t){i.showToast({title:"修改成功"});try{n.getOpenerEventChannel().emit("refreshData")}catch(e){}setTimeout((function(){return i.navigateBack()}),500)})).catch((function(t){i.showModal({content:t.message||"请求服务失败",showCancel:!1})}))},getDetail:function(t){var n=this;i.showLoading({mask:!0}),s.collection("uni-cms-categories").doc(t).field("name,description,icon,sort,create_date").get().then((function(t){var e=t.result.data[0];e&&(n.formData=e)})).catch((function(t){i.showModal({content:t.message||"请求服务失败",showCancel:!1})})).finally((function(){i.hideLoading()}))}}};n.default=l}).call(this,e("861b")["uniCloud"],e("df3c")["default"])},"55b3":function(t,n,e){"use strict";e.r(n);var i=e("76d5"),o=e("8590");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);var a=e("828b"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},"76d5":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return i}));var i={uniForms:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(e.bind(null,"67e1"))},uniFormsItem:function(){return e.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item").then(e.bind(null,"47be"))},uniEasyinput:function(){return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null,"1986"))}},o=function(){var t=this.$createElement;this._self._c},r=[]},8590:function(t,n,e){"use strict";e.r(n);var i=e("3038"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a}},[["0a60","common/runtime","common/vendor"]]]);
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "编辑分类",
|
||||
"usingComponents": {
|
||||
"uni-forms": "/uni_modules/uni-forms/components/uni-forms/uni-forms",
|
||||
"uni-forms-item": "/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item",
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
|
||||
}
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
<view class="uni-container"><uni-forms class="vue-ref" vue-id="740a9af7-1" model="{{formData}}" validateTrigger="bind" data-ref="form" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('740a9af7-2')+','+('740a9af7-1')}}" name="name" label="名称" required="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('740a9af7-3')+','+('740a9af7-2')}}" placeholder="类别名称" trim="both" value="{{formData.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('740a9af7-4')+','+('740a9af7-1')}}" name="description" label="描述" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('740a9af7-5')+','+('740a9af7-4')}}" placeholder="类别描述" trim="both" value="{{formData.description}}" data-event-opts="{{[['^input',[['__set_model',['$0','description','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('740a9af7-6')+','+('740a9af7-1')}}" name="sort" label="排序" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('740a9af7-7')+','+('740a9af7-6')}}" placeholder="类别显示顺序" type="number" value="{{formData.sort}}" data-event-opts="{{[['^input',[['__set_model',['$0','sort','$event',[]],['formData']]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><view class="uni-button-group"><button class="uni-button" style="width:100px;" type="primary" data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" bindtap="__e">提交</button><navigator style="margin-left:15px;" open-type="navigateBack"><button class="uni-button" style="width:100px;">返回</button></navigator></view></uni-forms></view>
|
||||
-1
File diff suppressed because one or more lines are too long
-12
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "分类列表",
|
||||
"usingComponents": {
|
||||
"unicloud-db": "/node-modules/@dcloudio/uni-cli-shared/components/unicloud-db",
|
||||
"uni-table": "/uni_modules/uni-table/components/uni-table/uni-table",
|
||||
"uni-tr": "/uni_modules/uni-table/components/uni-tr/uni-tr",
|
||||
"uni-th": "/uni_modules/uni-table/components/uni-th/uni-th",
|
||||
"uni-td": "/uni_modules/uni-table/components/uni-td/uni-td",
|
||||
"uni-dateformat": "/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
|
||||
"uni-pagination": "/uni_modules/uni-pagination/components/uni-pagination/uni-pagination"
|
||||
}
|
||||
}
|
||||
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user