You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
9.2 KiB
1 lines
9.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-dongtai-add"],{"222d":function(t,n,i){"use strict";i("6a54");var e=i("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e(i("2634")),o=e(i("2fdc"));i("aa9c"),i("dd2b");var d={data:function(){return{content:"",imgurl:[]}},onReady:function(){var t=this;uni.$on("uAvatarCropper",(function(n){var i=t;uni.uploadFile({url:i.$baseUrl+"/prod-api/common/upload",filePath:n,name:"file",complete:function(t){if(200==t.statusCode){var n=JSON.parse(t.data),e=n.code,a=(n.fileName,n.url);n.msg;200==e?(uni.showToast({title:"上传成功"}),i.imgurl.push(a)):uni.showToast({icon:"error",title:"上传失败"})}else uni.showToast({icon:"error",title:"上传失败"})}})}))},methods:{toReg:function(){var t=this;return(0,o.default)((0,a.default)().mark((function n(){var i,e;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.publishArticle({userId:uni.getStorageSync("userInfo").id,content:t.content,imgurl:t.imgurl.join(",")});case 2:i=n.sent,e=i.code,i.data,200==e?(uni.showToast({title:"发布成功"}),uni.$emit("toAddDongtai"),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({icon:"none",position:"bottom",title:msg});case 6:case"end":return n.stop()}}),n)})))()},toDel:function(t){this.imgurl.splice(t,1)},toNext:function(){this.$u.route({url:"/uni_modules/vk-uview-ui/components/u-avatar-cropper/u-avatar-cropper",params:{destWidth:900,rectWidth:300,fileType:"jpg"}})}}};n.default=d},"243d":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAsNJREFUSEvtl01vElEUhk8TyAx1OmqiJu2CllVXVE3Qv+DCuCGk6XYIH43RULCE0kzCqgltM5UOZOKigU4TCum2K/0JutC4Eo0LjNUQjQmOE/kYGHMIUxtTOpcC6UZWA/fc95n33HMP947B348dAOYA4AYAWE78PozHBgB8B4C3APAJBce6qncA4PYwCAQarwHgFYKnAeAewYRhhjxH8AMAmBymKoHWVwR7R7CmZmwNwQGzqFGM/wePIqunahKl+vDw8L7L5ZoLhULywcHBl7Pezu12T2az2UeVSuVodnZW6hVLBK5Wq2ssy16r1WoKx3FbxWLxVPj8/PxULpcLj4+Ps41G4zdFUUsDgRcXFx2iKC5ZrVa6F9zj8Uzu7e09sdlsE5qmNXmeT6+vr5cGAuNkn883LUlSpAv/xXGcYDhHp7u7uxGEtlqt5vLy8nYqlfpw1pIQpdoQOA2uaZpuOEXo6upqemNjo6dTQ6svME4KBoMz6XQ6jM5VVa3quq4zDHMFobFYTBQE4T3J1ugbjKJ+v39GFMXHNE0z+L1Wq6k8zz8jhRp/i323TCwkWZaxei+jiKqqP/1+f6pQKByRuD0XeGFhYSqbzXYKCbeMruttiqIu1et1LLgtUnhfqcbqlWU5QtP0RLvdbkaj0W1FUZqSJIUtFguNcK/X+3R/f/+zmXNiMDrN5XLH0JWVFXFzc7NTSIFAwJHJZLDgqHq9ruJWM3NOBMY2mM/nEcpi9fI8n0kmk+9Ouuo2mQ4ci83n8wn5fL7nmhOBFUVJMgxzFaHxePzY6b/pPNnhFEX5wbJsfKDOVSqVHtrtdkcikdgxaw641QRBCJbL5Y9Op3NnILBZoZxnnCjV5xE2m4NgDgCsZoFDHu8c9i7seHsRB/oXxhXmLgDcGnI6e8m9AYCXBhiD8NJ2EwCuj+CArwHAt+6lrYywP49/M8MLP/onAAAAAElFTkSuQmCC"},"41a0":function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"add"},[e("v-uni-view",{staticClass:"add-content"},[e("v-uni-view",{staticClass:"content"},[e("v-uni-textarea",{attrs:{maxlength:"-1",placeholder:"请输入您想发布的内容哦~"},model:{value:t.content,callback:function(n){t.content=n},expression:"content"}})],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"title"},[t._v("上传图片")]),e("v-uni-view",{staticClass:"list"},[t._l(t.imgurl,(function(n,a){return e("v-uni-view",{key:a,staticClass:"item"},[e("v-uni-image",{staticClass:"pic",attrs:{src:n}}),e("v-uni-image",{staticClass:"del",attrs:{src:i("243d")},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toDel(a)}}})],1)})),e("v-uni-view",{staticClass:"upload",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toNext()}}},[e("v-uni-image",{staticClass:"pic",attrs:{src:i("cce8")}}),e("v-uni-view",{staticClass:"txt"},[t._v("上传")])],1)],2)],1)],1),e("v-uni-view",{staticClass:"add-fd"},[e("v-uni-view",{staticClass:"btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toReg()}}},[t._v("发布")])],1)],1)},a=[]},4848:function(t,n,i){var e=i("c86c");n=e(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.add[data-v-3ccf3c2d]{overflow:hidden;padding-bottom:%?110?%}.add-content[data-v-3ccf3c2d]{padding:0 %?25?%;overflow:hidden}.add-content .content[data-v-3ccf3c2d]{background:#fff;border-radius:%?20?%;padding:%?30?%;box-sizing:border-box;margin-top:%?20?%;overflow:hidden}.add-content .content uni-textarea[data-v-3ccf3c2d]{width:100%;height:%?320?%;font-weight:400;font-size:%?30?%;color:#212121}.add-content .title[data-v-3ccf3c2d]{font-size:%?30?%;color:#333}.add-content .list[data-v-3ccf3c2d]{width:110%}.add-content .list .upload[data-v-3ccf3c2d]{width:%?206?%;height:%?206?%;background:#f8f8f8;border-radius:%?5?%;float:left;font-weight:400;text-align:center;font-size:%?24?%;color:#333;margin-top:%?30?%}.add-content .list .upload uni-image[data-v-3ccf3c2d]{width:%?50?%;height:%?50?%;display:block;margin:0 auto;margin-top:%?55?%;margin-bottom:%?10?%}.add-content .list .item[data-v-3ccf3c2d]{width:%?206?%;height:%?206?%;border-radius:%?5?%;float:left;margin-top:%?30?%;overflow:hidden;position:relative;margin-right:%?12?%}.add-content .list .item .pic[data-v-3ccf3c2d]{width:100%;height:100%}.add-content .list .item .del[data-v-3ccf3c2d]{width:%?35?%;height:%?35?%;position:absolute;right:0;top:0;z-index:2}.add-fd[data-v-3ccf3c2d]{background-color:#f3f4f5;width:100%;padding:%?30?% %?25?%;box-sizing:border-box;position:fixed;left:0;bottom:0;z-index:22}.add-fd .btn[data-v-3ccf3c2d]{width:100%;line-height:%?98?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?98?%;text-align:center;font-weight:400;font-size:%?30?%;color:#fff;letter-spacing:%?5?%}',""]),t.exports=n},"7ad6":function(t,n,i){"use strict";var e=i("b409"),a=i.n(e);a.a},b409:function(t,n,i){var e=i("4848");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("967d").default;a("8f9e8046",e,!0,{sourceMap:!1,shadowMode:!1})},cce8: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ihVHvc1qIjqsrfHp0NF4PH5RU1PTX+l0elJNTc2vAM71qVs2ka3MvNDLhrng3vNpeEQxEVlu2/YbHt7H3oXpB7JsIpuYudlY6uzsXCkiL/uxOpqMiGywbfsxr7w2EtEyn3jlETF3QSKRMPeEIWK61Cd8Gh5RbCieUsq8Ok2H7WeVRwTA28zc6JXCIwBe8WN1jIw8b9v2k15GWoko5ROvPCIi0m3bdqFVyGazQU+aYT5qrZsdx9nkBcY0nLeeEiIAzINmhumflFLVAA6M1/yN4djBgYGB6UuXLj3inYDm1Jp8qogYOw8y80YvK6uJKNT0w7wEmfkpD6eeiAp3k89VXml5RnaaBs40dEqpShHZTkTX+HSgIGZeefl8fm4qler3iHxORPMDYERCBFrrBxzHaTOGM5nMtHg8/gGA63w60uO67l3JZHK/R4IHn9lZn7pFsWiIAOjTWt/mOM4ug9za2jqlsrLyRQDLAVgjOSUiOhaL5UTk0eIDTCl1+eBT4IsADWfkRAzgPtd1FxUja37I5XJzzEkEwNz+53tW/xy8sbdprTscx/m+6IlSyjSaHw3GwZAJuiLLSNHw7wCamNkMMHyvXC53g9bavO2LZH3reoKREzEb1wy+ulzXXd/T07Nj7dq1ejSvMpnMbMuyHiciB0BlUO+HyEdPpMSZnSLyDhHtFpHCHJeI6kTkEiK6b3DCMhdArAwCJ2WPROBPaIgRM2L+lwj7pgjtSTmKZgRl23ahCxg61/oawPXlAJ8G3U+YefEJRNrb22+0LOstANNPg0NhTPZqre8uHuUnTCzS6XRddXX1gng8frGIDJuCh7EWtY75S0Brvbeqqqq7oaHBjGcLK8joJWqfIsWbIBJpOCMAm8hIBEGMFGIiI5GGMwKw/wB2OGNROojHaQAAAABJRU5ErkJggg=="},e977:function(t,n,i){"use strict";i.r(n);var e=i("222d"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},fea4:function(t,n,i){"use strict";i.r(n);var e=i("41a0"),a=i("e977");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("7ad6");var d=i("828b"),c=Object(d["a"])(a["default"],e["b"],e["c"],!1,null,"3ccf3c2d",null,!1,e["a"],void 0);n["default"]=c.exports}}]); |