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
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-merchant-sendDynamic-sendDynamic"],{"055c":function(t,e,n){"use strict";var r=n("4ea4");n("d81d"),n("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=r(n("1da1")),a=r(n("2c7c")),o=r(n("c2a2")),c=r(n("ec93")),u={data:function(){return{storeid:null,content:"",pic:[],picArr:[]}},components:{Loadlogo:o.default},computed:{isWxaudit:function(){return this.$store.state.isWxAudit}},onLoad:function(){var t=this;t.init()},onShow:function(t){},mounted:function(){},methods:{close:function(t,e){var n=this;this.picArr.map((function(e,r){e==t&&n.picArr.splice(r,1)}))},init:function(){var t=this;uni.getSystemInfo({success:function(e){t.phoneHight=e.windowHeight,t.scrollHeight=t.phoneHight-125+"px"}}),uni.getStorage({key:"checkStoreid",success:function(e){t.storeid=e.data,a.default._post_form("&p=store&do=addDynamicPage",{storeid:e.data},(function(t){1===t.data.status&&uni.navigateBack({delta:1})}))}}),c.default.wxRegister()},addDynamic:function(){var t=this,e={storeid:t.storeid,content:t.content,pic:t.pic};a.default._post_form("&p=store&do=addDynamic",e,(function(t){uni.navigateBack({delta:1})}))},uploadFiles:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,r,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,2!=a.default.getClientType()){e.next=16;break}return e.next=4,a.default.browser_upload(6);case 4:r=e.sent,i=0;case 6:if(!(i<r.tempFilePaths.length)){e.next=15;break}return e.next=9,a.default._upLoad(r.tempFilePaths[i]);case 9:o=e.sent,n.pic.push(o.data.image),n.picArr.push(o.data.img);case 12:i++,e.next=6;break;case 15:return e.abrupt("return");case 16:c.default.choseImage((function(t){c.default.uoloadIg(t.localIds[0],(function(t){if("uploadImage:ok"===t.errMsg){uni.showLoading({});var e={upload_type:2,id:t.serverId};a.default._post_form("&do=uploadFiles",e,(function(t){0===t.errno&&(n.picArr.push(t.data.img),n.pic.push(t.data.image))}),!1,(function(){uni.hideLoading()}))}else uni.hideLoading(),a.default.showError("上传失败")}))}));case 17:case"end":return e.stop()}}),e)})))()}}};e.default=u},"0f1d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},mounted:function(){},computed:{loadImage:function(){var t=this,e=t.$store.state.appInfo.loading;return e||""}}};e.default=r},"1da1":function(t,e,n){"use strict";function r(t,e,n,r,i,a,o){try{var c=t[a](o),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function c(t){r(o,i,a,c,u,"next",t)}function u(t){r(o,i,a,c,u,"throw",t)}c(void 0)}))}}n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},3863:function(t,e,n){"use strict";n.r(e);var r=n("f79b"),i=n("89e4");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("5e41");var o,c=n("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"9d9d864c",null,!1,r["a"],o);e["default"]=u.exports},"5e41":function(t,e,n){"use strict";var r=n("941a"),i=n.n(r);i.a},7316:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"loadlogo-container"},[n("v-uni-view",{staticClass:"loadlogo"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.loadImage||t.imgfixUrls+"loadlogo.svg",mode:"aspectFill"}})],1)],1)],1)},a=[]},"89e4":function(t,e,n){"use strict";n.r(e);var r=n("055c"),i=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},"941a":function(t,e,n){var r=n("a3d4");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("5948126e",r,!0,{sourceMap:!1,shadowMode:!1})},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",s="object"===typeof t,d=e.regeneratorRuntime;if(d)s&&(t.exports=d);else{d=e.regeneratorRuntime=s?t.exports:{},d.wrap=b;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",v={},g={};g[o]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==r&&i.call(y,o)&&(g=y);var w=L.prototype=_.prototype=Object.create(g);k.prototype=w.constructor=L,L.constructor=k,L[u]=k.displayName="GeneratorFunction",d.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},d.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},d.awrap=function(t){return{__await:t}},E(P.prototype),P.prototype[c]=function(){return this},d.AsyncIterator=P,d.async=function(t,e,n,r){var i=new P(b(t,e,n,r));return d.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),w[u]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},d.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},d.values=A,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return c.type="throw",c.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,r){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),o=new F(r||[]);return a._invoke=I(t,n,o),a}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function _(){}function k(){}function L(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function P(t){function e(n,r,a,o){var c=x(t[n],t,r);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"===typeof s&&i.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,a,o)}),(function(t){e("throw",t,a,o)})):Promise.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return e("throw",t,a,o)}))}o(c.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function I(t,e,n){var r=f;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return D()}n.method=i,n.arg=a;while(1){var o=n.delegate;if(o){var c=j(o,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=x(t,e,n);if("normal"===u.type){if(r=n.done?p:l,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:D}}function D(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},a3d4:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".subnitBitton[data-v-9d9d864c]{bottom:0;position:fixed;text-align:center;width:%?750?%;height:%?98?%;background:#38f}.subnitBitton > span[data-v-9d9d864c]{line-height:%?98?%;font-size:%?28?%;color:#fff}.userImgUpdata[data-v-9d9d864c]{width:%?157?%;height:%?157?%;background:#f6f6f6;border:%?1?% solid #ccc;border-radius:%?10?%;text-align:center}.userImgUpdata > uni-image[data-v-9d9d864c]{margin-top:%?53?%;width:%?53?%;height:%?53?%}.imgPreview[data-v-9d9d864c]{display:inline-block;overflow:hidden;width:%?157?%;height:%?157?%;background:grey;margin-right:%?37?%;margin-bottom:%?10?%;border-radius:%?10?%}.imgPreview > uni-image[data-v-9d9d864c]{width:%?157?%;height:%?157?%}.close[data-v-9d9d864c]{width:%?32?%!important;height:%?32?%!important;position:relative;bottom:%?150?%;left:%?120?%;z-index:30}.tips[data-v-9d9d864c]{margin-top:%?30?%}.tips > span[data-v-9d9d864c]{font-size:%?24?%;color:#333}.tips > span > span[data-v-9d9d864c]{color:#999}.sendInputTitle > span[data-v-9d9d864c]{font-size:%?24?%;color:#333}.sendInputPackage[data-v-9d9d864c]{padding:%?30?%;background:#f8f8f8}.sendDynamic[data-v-9d9d864c]{width:%?750?%;background:#fff;border-radius:%?10?%}uni-page-body[data-v-9d9d864c]{font-size:0;background:#f8f8f8}.sendDynamicPackage[data-v-9d9d864c]{padding:%?30?%}.inputView[data-v-9d9d864c]{margin-top:%?30?%;height:%?160?%!important;font-size:%?24?%;color:#333}.imgView[data-v-9d9d864c]{margin-top:%?30?%}body.?%PAGE?%[data-v-9d9d864c]{background:#f8f8f8}",""]),t.exports=e},c2a2:function(t,e,n){"use strict";n.r(e);var r=n("7316"),i=n("d7e5");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("c861");var o,c=n("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"bce21d66",null,!1,r["a"],o);e["default"]=u.exports},c757:function(t,e,n){var r=n("eb38");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("e81adc74",r,!0,{sourceMap:!1,shadowMode:!1})},c861:function(t,e,n){"use strict";var r=n("c757"),i=n.n(r);i.a},d7e5:function(t,e,n){"use strict";n.r(e);var r=n("0f1d"),i=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},eb38:function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".loadlogo-container[data-v-bce21d66]{width:100%;height:100%;background-color:#fff;position:fixed;z-index:999}.loadlogo[data-v-bce21d66]{width:80px;height:80px;\n\t/* margin: -60px 0 0 -60px; */position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.loadlogo .image[data-v-bce21d66]{width:100%;height:100%}",""]),t.exports=e},f79b:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.isWxaudit?t._e():n("loadlogo"),n("far-bottom"),n("v-uni-view",{staticClass:"sendDynamic"},[n("v-uni-view",{staticClass:"sendDynamicPackage"},[n("v-uni-view",{staticClass:"sendInput"},[n("v-uni-view",{staticClass:"sendInputPackage"},[n("v-uni-view",{staticClass:"sendInputTitle"},[n("span",[t._v("动态内容")])]),n("v-uni-view",[n("v-uni-textarea",{staticClass:"inputView",attrs:{placeholder:"内容描述,请尽量避免使用特殊符号,字体表情,颜文字等特殊文本,防止无法储存造成内容空白。"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1)],1),n("v-uni-view",{staticClass:"tips"},[n("span",[t._v("有图有真相"),n("span",[t._v("(最多上传6张图片)")])])]),n("v-uni-view",{staticClass:"imgView"},[t._l(t.picArr,(function(e,r){return n("v-uni-view",{staticClass:"imgPreview"},[n("v-uni-image",{attrs:{src:e}}),n("v-uni-image",{staticClass:"close",attrs:{src:t.imgfixUrls+"merchant/close.png"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.close(e,r)}}})],1)})),t.picArr.length<7?n("v-uni-view",{staticClass:"userImgUpdata",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadFiles.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.imgfixUrls+"merchant/addImg.svg"}})],1):t._e()],2)],1),n("v-uni-view",{staticClass:"subnitBitton",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addDynamic.apply(void 0,arguments)}}},[n("span",[t._v("确认发布")])])],1)],1)},a=[]}}]);
|