This commit is contained in:
2025-06-13 20:48:15 +08:00
parent 52e34ffd7c
commit 1e0b2b125b
403 changed files with 16069 additions and 0 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "编辑文章",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
"uni-popup-dialog": "/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
"cloud-image": "/components/cloud-image"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"uni-forms-item": "/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item",
"u-picker": "/uni_modules/uview-ui/components/u-picker/u-picker",
"u-input": "/uni_modules/uview-ui/components/u-input/u-input",
"uni-section": "/uni_modules/uni-section/components/uni-section/uni-section",
"uni-data-checkbox": "/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox",
"cloud-image": "/components/cloud-image"
}
}
@@ -0,0 +1 @@
<view><uni-nav-bar vue-id="578874c3-1" title="文章设置" leftText="取消" left-icon="left" right-text="预览" backgroundColor="#ffffff" color="#000000" data-event-opts="{{[['^clickRight',[['toPreview']]],['^clickLeft',[['back']]]]}}" bind:clickRight="__e" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar><uni-forms-item vue-id="578874c3-2" label="兵种" bind:__l="__l" vue-slots="{{['default']}}"><u-picker vue-id="{{('578874c3-3')+','+('578874c3-2')}}" show="{{p_show}}" columns="{{pItems}}" keyName="text" closeOnClickOverlay="true" data-event-opts="{{[['^close',[['p_close']]],['^cancel',[['p_close']]],['^confirm',[['p_select']]]]}}" bind:close="__e" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></u-picker><view data-event-opts="{{[['tap',[['p_open']]]]}}" style="margin-right:50rpx;" bindtap="__e"><u-input bind:input="__e" vue-id="{{('578874c3-4')+','+('578874c3-2')}}" placeholder="请选择" disabled="{{true}}" suffixIcon="arrow-right" value="{{pItems[0][p_index].text}}" data-event-opts="{{[['^input',[['__set_model',['$0','text','$event',[]],['pItems.__$n0.'+p_index+'']]]]]}}" bind:__l="__l"></u-input></view></uni-forms-item><uni-forms-item vue-id="578874c3-5" label="文章分类" bind:__l="__l" vue-slots="{{['default']}}"><u-picker vue-id="{{('578874c3-6')+','+('578874c3-5')}}" show="{{tag_show}}" columns="{{tags}}" keyName="text" closeOnClickOverlay="true" data-event-opts="{{[['^close',[['tag_close']]],['^cancel',[['tag_close']]],['^confirm',[['tag_select']]]]}}" bind:close="__e" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></u-picker><view data-event-opts="{{[['tap',[['tag_open']]]]}}" style="margin-right:50rpx;" bindtap="__e"><u-input bind:input="__e" vue-id="{{('578874c3-7')+','+('578874c3-5')}}" placeholder="请选择" disabled="{{true}}" suffixIcon="arrow-right" value="{{tags[0][tag_index].text}}" data-event-opts="{{[['^input',[['__set_model',['$0','text','$event',[]],['tags.__$n0.'+tag_index+'']]]]]}}" bind:__l="__l"></u-input></view></uni-forms-item><uni-section vue-id="578874c3-8" title="文章封面" type="line" bind:__l="__l" vue-slots="{{['default']}}"><view class="uni-px-5 uni-pb-5"><uni-data-checkbox vue-id="{{('578874c3-9')+','+('578874c3-8')}}" localdata="{{thumbnailType}}" value="{{thumbMode}}" data-event-opts="{{[['^change',[['thumbnailChange']]],['^input',[['__set_model',['','thumbMode','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-data-checkbox></view><block wx:if="{{thumbMode===1}}"><view><view data-event-opts="{{[['tap',[['updateImage',[0]]]]]}}" class="container" bindtap="__e"><block wx:if="{{!thumbnail[0]}}"><view><view class="cross-line horizontal"></view><view class="cross-line vertical"></view></view></block><block wx:else><cloud-image vue-id="{{('578874c3-10')+','+('578874c3-8')}}" width="200rpx" height="200rpx" mode="scaleToFill" src="{{thumbnail[0]}}" bind:__l="__l"></cloud-image></block></view></view></block><block wx:if="{{thumbMode===3}}"><view class="parent-container"><block wx:for="{{thumbnail}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['updateImage',[index]]]]]}}" class="container" bindtap="__e"><block wx:if="{{!thumbnail[index]||!thumbnail[index]}}"><view><view class="cross-line horizontal"></view><view class="cross-line vertical"></view></view></block><block wx:else><cloud-image vue-id="{{('578874c3-11-'+index)+','+('578874c3-8')}}" width="200rpx" height="200rpx" mode="scaleToFill" src="{{thumbnail[index]}}" bind:__l="__l"></cloud-image></block></view></block></view></block></uni-section></view>
@@ -0,0 +1 @@
.parent-container{display:flex;gap:20rpx;justify-content:flex-start}.container{position:relative;flex-shrink:0;width:200rpx;height:200rpx;border:1rpx solid #ccc}.cross-line{position:absolute;background-color:#ccc;left:50%;top:50%}.horizontal{width:30rpx;height:5rpx;border-radius:2rpx;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vertical{height:30rpx;width:5rpx;border-radius:2rpx;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"zb-popover": "/uni_modules/zb-popover/components/zb-popover/zb-popover",
"cloud-image": "/components/cloud-image"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,20 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"u-parse": "/uni_modules/uview-ui/components/u-parse/u-parse",
"uni-card": "/uni_modules/uni-card/components/uni-card/uni-card",
"u-radio-group": "/uni_modules/uview-ui/components/u-radio-group/u-radio-group",
"u-radio": "/uni_modules/uview-ui/components/u-radio/u-radio",
"u-checkbox-group": "/uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group",
"u-checkbox": "/uni_modules/uview-ui/components/u-checkbox/u-checkbox",
"u-tabbar": "/uni_modules/uview-ui/components/u-tabbar/u-tabbar",
"u-tabbar-item": "/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item",
"hqs-popup": "/components/hqs-popup/hqs-popup",
"uni-grid": "/uni_modules/uni-grid/components/uni-grid/uni-grid",
"uni-grid-item": "/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item",
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"media-list": "/components/image-grid/media-list",
"cloud-image": "/components/cloud-image"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages2/editCms/smallTitle"],{"08d1":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7eb4")),i=o(n("ee10")),a={data:function(){return{readOnly:!1,formats:{color:"#000000",fontSize:"36rpx"},actions:[{text:"选项一"},{text:"选项二"},{text:"选项三"}]}},onLoad:function(){},methods:{isColor:function(t){return console.log(t,this.formats.color),t===this.formats.color},toSuccess:function(){return(0,i.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},back:function(){return(0,i.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{t.navigateBack({delta:1})}catch(n){t.navigateTo({url:"/pages2/editCms/editCms"})}case 1:case"end":return e.stop()}}),e)})))()},readOnlyChange:function(){this.readOnly=!this.readOnly},onEditorReady:function(){var e=this;t.createSelectorQuery().select("#editor").context((function(t){e.editorCtx=t.context})).exec()},undo:function(){this.editorCtx.undo()},redo:function(){this.editorCtx.redo()},format:function(t){var e=t.target.dataset,n=e.name,o=e.value;n&&this.editorCtx.format(n,o)},onStatusChange:function(t){var e=t.detail;this.formats=e},insertDivider:function(){this.editorCtx.insertDivider({success:function(){console.log("insert divider success")}})},clear:function(){var e=this;t.showModal({title:"清空编辑器",content:"确定清空编辑器全部内容?",success:function(t){t.confirm&&e.editorCtx.clear({success:function(t){console.log("clear success")}})}})},removeFormat:function(){this.editorCtx.removeFormat()},insertDate:function(){var t=new Date,e="".concat(t.getFullYear(),"/").concat(t.getMonth()+1,"/").concat(t.getDate());this.editorCtx.insertText({text:e})},insertImage:function(){var e=this;t.chooseImage({count:1,success:function(t){e.editorCtx.insertImage({src:t.tempFilePaths[0],alt:"图像",success:function(){console.log("insert image success")}})}})}}};e.default=a}).call(this,n("df3c")["default"])},"0dfc":function(t,e,n){"use strict";var o=n("6ef0"),r=n.n(o);r.a},"254c":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("7bfe"),n("861b");o(n("3240"));var r=o(n("85dd"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"312a":function(t,e,n){"use strict";n.r(e);var o=n("08d1"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},"6ef0":function(t,e,n){},"85dd":function(t,e,n){"use strict";n.r(e);var o=n("a89b"),r=n("312a");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("0dfc");var a=n("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},a89b:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uniNavBar:function(){return n.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(n.bind(null,"3634"))},zbPopover:function(){return n.e("uni_modules/zb-popover/components/zb-popover/zb-popover").then(n.bind(null,"0b9b"))}},r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isColor("#000000")),o=t.isColor("#000000"),r=t.isColor("#7a7e83"),i=t.isColor("#7a7e83"),a=t.isColor("#ff0000"),c=t.isColor("#ff0000"),s=t.isColor("#ff9900"),u=t.isColor("#ff9900"),f=t.isColor("#1aad19"),l=t.isColor("#1aad19"),d=t.isColor("#1a73e8"),m=t.isColor("#1a73e8"),v=t.isColor("#cc00cc"),h=t.isColor("#cc00cc");t.$mp.data=Object.assign({},{$root:{m0:n,m1:o,m2:r,m3:i,m4:a,m5:c,m6:s,m7:u,m8:f,m9:l,m10:d,m11:m,m12:v,m13:h}})},i=[]}},[["254c","common/runtime","common/vendor"]]]);
@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"zb-popover": "/uni_modules/zb-popover/components/zb-popover/zb-popover"
}
}
@@ -0,0 +1 @@
<view class="container"><view><uni-nav-bar vue-id="4ffbe2a2-1" title="添加小标题" leftText="取消" left-icon="left" right-text="完成" backgroundColor="#ffffff" color="#000000" data-event-opts="{{[['^clickRight',[['toSuccess']]],['^clickLeft',[['back']]]]}}" bind:clickRight="__e" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="page-body"><view class="wrapper"><view class="editor-wrapper"><editor class="ql-container" id="editor" placeholder="开始输入..." show-img-size="{{true}}" show-img-toolbar="{{true}}" show-img-resize="{{true}}" read-only="{{readOnly}}" data-event-opts="{{[['statuschange',[['onStatusChange',['$event']]]],['ready',[['onEditorReady',['$event']]]]]}}" bindstatuschange="__e" bindready="__e"></editor></view><view data-event-opts="{{[['tap',[['format',['$event']]]]]}}" class="toolbar" bindtap="__e"><view class="item-wrap"><zb-popover class="vue-ref" vue-id="4ffbe2a2-2" placement="top" options="{{actions}}" actions-direction="horizontal" data-ref="Popover1" bind:__l="__l" vue-slots="{{['default','content']}}"><view class="{{['iconfont','icon-fontsize',formats.fontSize==='36rpx'?'ql-active':'']}}" data-name="fontSize" data-value="36rpx" slot="content"></view><view class="iconfont icon-fontsize"></view></zb-popover><zb-popover class="vue-ref" vue-id="4ffbe2a2-3" placement="bottom-end" options="{{actions}}" actions-direction="horizontal" data-ref="Popover1" bind:__l="__l" vue-slots="{{['default','content']}}"><view slot="content"><view class="{{['iconfont','icon-zuoduiqi',formats.align==='left'?'ql-active':'']}}" data-name="align" data-value="left"></view><view class="{{['iconfont','icon-juzhongduiqi',formats.align==='center'?'ql-active':'']}}" data-name="align" data-value="center"></view><view class="{{['iconfont','icon-youduiqi',formats.align==='right'?'ql-active':'']}}" data-name="align" data-value="right"></view><view class="{{['iconfont','icon-zuoyouduiqi',formats.align==='justify'?'ql-active':'']}}" data-name="align" data-value="justify"></view></view><view class="iconfont icon-juzhongduiqi"></view></zb-popover><view class="{{['color-000000-item','color-item',($root.m0)?'is-color':'',(!$root.m1)?'not-color':'']}}" data-name="color" data-value="#000000"></view><view class="{{['color-7a7e83-item','color-item',($root.m2)?'is-color':'',(!$root.m3)?'not-color':'']}}" data-name="color" data-value="#7a7e83"></view><view class="{{['color-ff0000-item','color-item',($root.m4)?'is-color':'',(!$root.m5)?'not-color':'']}}" data-name="color" data-value="#ff0000"></view><view class="{{['color-ff9900-item','color-item',($root.m6)?'is-color':'',(!$root.m7)?'not-color':'']}}" data-name="color" data-value="#ff9900"></view><view class="{{['color-1aad19-item','color-item',($root.m8)?'is-color':'',(!$root.m9)?'not-color':'']}}" data-name="color" data-value="#1aad19"></view><view class="{{['color-1a73e8-item','color-item',($root.m10)?'is-color':'',(!$root.m11)?'not-color':'']}}" data-name="color" data-value="#1a73e8"></view><view class="{{['color-cc00cc-item','color-item',($root.m12)?'is-color':'',(!$root.m13)?'not-color':'']}}" data-name="color" data-value="#cc00cc"></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"zb-popover": "/uni_modules/zb-popover/components/zb-popover/zb-popover"
}
}
@@ -0,0 +1 @@
<view class="container"><view><uni-nav-bar vue-id="35e5f2fa-1" title="标题样式" leftText="取消" left-icon="left" right-text="完成" backgroundColor="#ffffff" color="#000000" data-event-opts="{{[['^clickRight',[['toSuccess']]],['^clickLeft',[['back']]]]}}" bind:clickRight="__e" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="page-body"><view class="wrapper"><view class="editor-wrapper"><editor class="ql-container" id="editor" placeholder="开始输入..." show-img-size="{{true}}" show-img-toolbar="{{true}}" show-img-resize="{{true}}" read-only="{{readOnly}}" data-event-opts="{{[['statuschange',[['onStatusChange',['$event']]]],['ready',[['onEditorReady',['$event']]]]]}}" bindstatuschange="__e" bindready="__e"></editor></view><view data-event-opts="{{[['tap',[['format',['$event']]]]]}}" class="toolbar" bindtap="__e"><view class="item-wrap"><zb-popover class="vue-ref" vue-id="35e5f2fa-2" placement="top-end" options="{{actions}}" actionsDirection="horizontal" data-ref="Popover1" bind:__l="__l" vue-slots="{{['default','content']}}"><view slot="content"><view class="{{['iconfont','icon-zitijiacu',formats.bold?'ql-active':'']}}" data-name="bold"></view><view class="{{['iconfont','icon-zitixieti',formats.italic?'ql-active':'']}}" data-name="italic"></view><view class="{{['iconfont','icon-zitixiahuaxian',formats.underline?'ql-active':'']}}" data-name="underline"></view></view><view class="iconfont icon-zitijiacu"></view></zb-popover><zb-popover class="vue-ref" vue-id="35e5f2fa-3" actionsDirection="vertical" placement="top" options="{{actions}}" data-ref="fontSize" data-event-opts="{{[['^handleClick',[['handleFontSizeClick']]],['^select',[['selectFontSizeItme']]]]}}" bind:handleClick="__e" bind:select="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="iconfont icon-fontsize"></view></zb-popover><view class="{{['color-000000-item','color-item',($root.m0)?'is-color':'',(!$root.m1)?'not-color':'']}}" data-name="color" data-value="#000000"></view><view class="{{['color-7a7e83-item','color-item',($root.m2)?'is-color':'',(!$root.m3)?'not-color':'']}}" data-name="color" data-value="#7a7e83"></view><view class="{{['color-ff0000-item','color-item',($root.m4)?'is-color':'',(!$root.m5)?'not-color':'']}}" data-name="color" data-value="#ff0000"></view><view class="{{['color-ff9900-item','color-item',($root.m6)?'is-color':'',(!$root.m7)?'not-color':'']}}" data-name="color" data-value="#ff9900"></view><view class="{{['color-1aad19-item','color-item',($root.m8)?'is-color':'',(!$root.m9)?'not-color':'']}}" data-name="color" data-value="#1aad19"></view><view class="{{['color-1a73e8-item','color-item',($root.m10)?'is-color':'',(!$root.m11)?'not-color':'']}}" data-name="color" data-value="#1a73e8"></view><view class="{{['color-cc00cc-item','color-item',($root.m12)?'is-color':'',(!$root.m13)?'not-color':'']}}" data-name="color" data-value="#cc00cc"></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages2/editCms/vote"],{4094:function(e,t,n){"use strict";n.r(t);var i=n("49ba"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=u.a},"49ba":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=i(n("7eb4")),a=i(n("ee10")),o={onLoad:function(t){if(console.log(t),this.pageType=t.type,"edit"===this.pageType){var n=e.getStorageSync("cms"),i=e.getStorageSync("selectIndex");console.log(i),console.log(n.cmsLst[i]),this.voteLst=n.cmsLst[i].vote.voteLst,this.voteTitle=n.cmsLst[i].text,this.birthday=n.cmsLst[i].vote.datetime;for(var u=0;u<this.array.lenght;u++)array[u]===n.cmsLst[i].vote.type&&(this.select=u)}},data:function(){return{birthday:"",array:["单选(默认)","多选,无限制","多选, 最多两项"],select:0,voteTitle:"",voteLst:[{value:""},{value:""},{value:""}],pageType:"add"}},methods:{openDatetimePicker:function(){this.$refs.myPicker.show()},closeDatetimePicker:function(){this.$refs.myPicker.hide()},handleSubmit:function(e){console.log(e),this.birthday="".concat(e.year,"-").concat(e.month,"-").concat(e.day," ").concat(e.hour,":").concat(e.minute,":").concat(e.second)},bindPickerChange:function(e){this.select=e.detail.value},del:function(t){this.voteLst.length>=3?this.voteLst.splice(t,1):(e.showLoading({title:"投票最少保留两个选项..."}),setTimeout((function(){return e.hideLoading()}),1e3))},toSuccess:function(){var t=this;return(0,a.default)(u.default.mark((function n(){var i,a,o,r,c;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.voteTitle){n.next=4;break}return e.showLoading({title:"标题不能为空"}),setTimeout((function(){return e.hideLoading()}),1e3),n.abrupt("return");case 4:if(i={voteLst:t.voteLst,voteTitle:t.voteTitle,type:t.array[t.select],datetime:t.birthday},i.type){n.next=9;break}return e.showLoading({title:"投票类型不能为空"}),setTimeout((function(){return e.hideLoading()}),1e3),n.abrupt("return");case 9:if(i.datetime){n.next=13;break}return e.showLoading({title:"截止时间不能为空"}),setTimeout((function(){return e.hideLoading()}),1e3),n.abrupt("return");case 13:if(i.datetime){n.next=20;break}for(a=-1,o=0;o<i.voteLst.length;o++)i.voteLst[o].value||(a=o);if(1===a){n.next=20;break}return e.showLoading({title:"选项".concat(a+1,"不能为空")}),setTimeout((function(){return e.hideLoading()}),1e3),n.abrupt("return");case 20:return r=e.getStorageSync("selectIndex"),c=e.getStorageSync("cms"),i.type===t.array[0]?i.selectValue="":i.selectValue=[],i.selectValu=!1,"add"===t.pageType?c.cmsLst.splice(r,0,{type:"vote",text:t.voteTitle,vote:i}):"edit"===t.pageType&&c.cmsLst.splice(r,1,{type:"vote",text:t.voteTitle,vote:i}),e.setStorageSync("cms",c),n.next=28,t.back();case 28:case"end":return n.stop()}}),n)})))()},back:function(){return(0,a.default)(u.default.mark((function t(){return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.navigateBack({delta:1,fail:function(t){console.log(t),e.navigateTo({url:"/pages2/editCms/editCms"})}});case 1:case"end":return t.stop()}}),t)})))()},add:function(){this.voteLst.push({value:""})}}};t.default=o}).call(this,n("df3c")["default"])},"51c4":function(e,t,n){},"763f":function(e,t,n){"use strict";var i=n("51c4"),u=n.n(i);u.a},8001:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("7bfe"),n("861b");i(n("3240"));var u=i(n("bd52"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bd52:function(e,t,n){"use strict";n.r(t);var i=n("fcd0"),u=n("4094");for(var a in u)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(a);n("763f");var o=n("828b"),r=Object(o["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=r.exports},fcd0:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uniNavBar:function(){return n.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(n.bind(null,"3634"))},uniCard:function(){return n.e("uni_modules/uni-card/components/uni-card/uni-card").then(n.bind(null,"8e2d"))},uniFormsItem:function(){return n.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item").then(n.bind(null,"47be"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"1986"))},buuug7SimpleDatetimePicker:function(){return n.e("uni_modules/buuug7-simple-datetime-picker/components/buuug7-simple-datetime-picker/buuug7-simple-datetime-picker").then(n.bind(null,"186f"))}},u=function(){var e=this.$createElement;this._self._c},a=[]}},[["8001","common/runtime","common/vendor"]]]);
+10
View File
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "投票设置",
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"uni-card": "/uni_modules/uni-card/components/uni-card/uni-card",
"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",
"buuug7-simple-datetime-picker": "/uni_modules/buuug7-simple-datetime-picker/components/buuug7-simple-datetime-picker/buuug7-simple-datetime-picker"
}
}
@@ -0,0 +1 @@
<view class="b_col_ccc body"><uni-nav-bar vue-id="4b8068a9-1" title="投票设置" leftText="取消" left-icon="left" right-text="完成" backgroundColor="#ffffff" color="#000000" data-event-opts="{{[['^clickRight',[['toSuccess']]],['^clickLeft',[['back']]]]}}" bind:clickRight="__e" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar><uni-card vue-id="4b8068a9-2" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item class="top" vue-id="{{('4b8068a9-3')+','+('4b8068a9-2')}}" label="投票描述" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('4b8068a9-4')+','+('4b8068a9-3')}}" inputBorder="{{false}}" placeholder="请输入投票主题" both="{{true}}" value="{{voteTitle}}" data-event-opts="{{[['^input',[['__set_model',['','voteTitle','$event',[]]]]]]}}" bind:__l="__l"></uni-easyinput></uni-forms-item><block wx:for="{{voteLst}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-forms-item class="top" vue-id="{{('4b8068a9-5-'+index)+','+('4b8068a9-2')}}" bind:__l="__l" vue-slots="{{['default','label']}}"><view class="label" slot="label"></view><uni-easyinput class="top" vue-id="{{('4b8068a9-6-'+index)+','+('4b8068a9-5-'+index)}}" inputBorder="{{false}}" placeholder="{{'选项'+(index+1)}}" both="{{true}}" suffixIcon="closeempty" clearable="false" value="{{voteLst[index].value}}" data-event-opts="{{[['^iconClick',[['del',[index]]]],['^input',[['__set_model',['$0','value','$event',[]],['voteLst.'+index+'']]]]]}}" bind:iconClick="__e" bind:input="__e" bind:__l="__l"></uni-easyinput></uni-forms-item></block><view data-event-opts="{{[['tap',[['add']]]]}}" class="btn-add top" bindtap="__e">+ 添加选项</view></uni-card><uni-card vue-id="4b8068a9-7" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('4b8068a9-8')+','+('4b8068a9-7')}}" label="截止时间" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['openDatetimePicker',['$event']]]]]}}" bindtap="__e">{{''+(birthday?birthday:"请选择截止日期")+''}}</view></uni-forms-item><uni-forms-item vue-id="{{('4b8068a9-9')+','+('4b8068a9-7')}}" label="投票类型" bind:__l="__l" vue-slots="{{['default']}}"><picker range="{{array}}" mode="selector" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><view class="picker">{{array[select]}}</view></picker></uni-forms-item><buuug7-simple-datetime-picker class="vue-ref" vue-id="{{('4b8068a9-10')+','+('4b8068a9-7')}}" start-year="{{2000}}" end-year="{{2099}}" time-init="{{1688860800000}}" time-hide="{{[true,true,true,true,true,true]}}" time-label="{{['年','月','日','时','分','秒']}}" data-ref="myPicker" data-event-opts="{{[['^submit',[['handleSubmit']]]]}}" bind:submit="__e" bind:__l="__l"></buuug7-simple-datetime-picker></uni-card></view>
@@ -0,0 +1 @@
.top{border-top:1px solid #dcdfe6}.btn-add{border:none;color:#4876ff;text-align:center;line-height:2em}.label{width:15px;height:15px;border-radius:50%;border:2px solid #666;margin:8px}.b_col_ccc{background-color:#eee}.body{width:100vw;min-height:100vh}