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
19 KiB
1 lines
19 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages2-blindDate-dynamics-edit"],{"1da1":function(t,e,n){"use strict";function o(t,e,n,o,r,i,a){try{var s=t[i](a),c=s.value}catch(d){return void n(d)}s.done?e(c):Promise.resolve(c).then(o,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)}))}}n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},2240:function(t,e,n){"use strict";var o=n("4ea4");n("99af"),n("4160"),n("a434"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var r=o(n("1da1")),i=o(n("2c7c")),a=o(n("ec93")),s=o(n("8f6e")),c={data:function(){return{form:{content:"",photo:[],photo_show:[],video:"",lng:"",lat:"",address:"点击定位地址"},dynamic_id:"",isOpenLaction:!1,disabled:!0,userAddress:{},owenscitylist:[],phoneHight:"",phoneWidth:"",latlngs:null,counts:!0,userInfo:{},lblis:{}}},components:{PopManager:s.default},onLoad:function(t){var e=this;0!=t.id&&(console.log("触发"),e.dynamic_id=t.id),e.owenscitylist=uni.getStorageSync("cityList");var n=uni.getStorageSync("curLoction")||{};e.form.lat=n.latitude||"",e.form.lng=n.longitude||"",0!=t.id&&e.getMemberList(),e.latlngs=uni.getStorageSync("curLoction"),e.toLocale(),uni.getSystemInfo({success:function(t){e.phoneHight=t.windowHeight+"px",e.phoneWidth=t.windowWidth+"px"}})},onShow:function(){},methods:{getMemberList:function(){var t=this;i.default._post_form("&p=dating&do=dynamicEdit&type=get",{id:t.dynamic_id},(function(e){0==e.errno&&(t.form=e.data,t.form.address=e.data.address?e.data.address:"点击定位地址",t.form.photo_show=e.data.photo_show?e.data.photo_show:[])}),!1,(function(){}))},handlesubmitClick:function(){var t=this,e={};"点击定位地址"===t.form.address&&(t.form.address="",t.form.lat="",t.form.lng=""),e.data=JSON.stringify(t.form),i.default._post_form("&p=dating&do=dynamicEdit&id=".concat(t.dynamic_id,"&type=post"),e,(function(t){0==t.errno&&uni.reLaunch({url:"/pages/subPages2/blindDate/dynamics/myself"})}),!1,(function(){}))},goLocation:function(){var t=this;t.isOpenLaction=!0},getloctions:function(t){console.log(t,"666666");var e=this;i.default._post_form("&p=member&do=lng2areaid&lng=".concat(t.lng,"&lat=").concat(t.lat),{},(function(n){e.userAddress.detailed_address=t.detailed_address,e.userAddress.lat=t.lat,e.userAddress.lng=t.lng,e.userAddress.provinceid=n.data.provinceid,e.userAddress.countyid=n.data.countyid,e.userAddress.cityid=n.data.cityid,e.userAddress.provinceidName="",e.owenscitylist.forEach((function(t,n){t.id==e.userAddress.provinceid&&(e.form.address=t.name,e.userAddress.provinceidName=t.name,t.area.forEach((function(t){t.id==e.userAddress.cityid&&(e.form.address="".concat(e.form.address).concat(t.name),e.userAddress.areaidName=t.name,console.log(e.form.address,t.name),t.dist.forEach((function(t){t.id==e.userAddress.countyid&&(e.form.address="".concat(e.form.address).concat(t.name),e.userAddress.distidName=t.name)})))})))})),console.log(e.userAddress)}))},toLocale:function(){var t,e=this,n=1;window.addEventListener("message",(function(o){var r=o.data;e.counts&&((n>1||e.counts)&&r&&"locationPicker"==r.module&&(console.log(n),t={lat:r.latlng.lat,lng:r.latlng.lng,detailed_address:r.poiaddress},e.isOpenLaction=!1,e.disabled=!1,e.getloctions(t)),n++,e.counts=!1,setTimeout((function(){e.counts=!0}),1e3))}),!1)},uoloadIgs:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,o=this;a.default.uoloadIg(n.localIds[e],(function(r){if("uploadImage:ok"===r.errMsg){uni.showLoading({});var a={upload_type:2,id:r.serverId};i.default._post_form("&do=uploadFiles",a,(function(r){0===r.errno&&(o.form.photo.push(r.data.image),o.form.photo_show.push(r.data.img),e<t-1&&(e++,uni.setTimeout(o.uoloadIgs(t,e,n),500)),o.$forceUpdate())}),!1,(function(){uni.hideLoading()}))}else uni.hideLoading(),i.default.showError("上传失败")}))},upImages:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,o=6-n.form.photo_show.length||0,!(o<=0)){e.next=4;break}return i.default.showError("最多上传6涨图片"),e.abrupt("return");case 4:if(2!=i.default.getClientType()){e.next=11;break}return e.next=7,i.default.browser_upload(o);case 7:return r=e.sent,uni.showLoading(),r.tempFilePaths.forEach((function(t){i.default._upLoad(t).then((function(t){n.form.photo.push(t.data.image),n.form.photo_show.push(t.data.img),uni.hideLoading()}))})),e.abrupt("return");case 11:a.default.choseImage((function(t){var e=t.localIds.length;n.uoloadIgs(e,0,t)}),o);case 12:case"end":return e.stop()}}),e)})))()},deleteImage:function(t){this.form.photo_show.splice(t,1),this.form.photo.splice(t,1)},upLoadVideo:function(){var t=this;uni.chooseVideo({count:1,sourceType:["camera","album"],success:function(e){console.log(e,"视频上传的res"),uni.showLoading(),uni.uploadFile({url:i.default.api_root+"&do=uploadFiles",filePath:e.tempFilePath,name:"file",formData:{upload_type:1,is_base:1},success:function(e){var n=JSON.parse(e.data),o=new t.$util.Base64;console.log("data",n),0===n.errno?t.form.video=o.decode(n.data.img):i.default.showError(n.message,(function(){})),uni.hideLoading()},fail:function(t){uni.hideLoading()}})}})},deleteVideo:function(){this.form.video="",this.isShowVideoClose=!1}}};e.default=c},"2ec1":function(t,e,n){"use strict";n.r(e);var o=n("2240"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},"48f1":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticStyle:{"padding-bottom":"50rpx"}},[n("v-uni-view",{staticClass:"desc"},[n("v-uni-view",{staticClass:"h1-title"},[t._v("动态信息")]),n("v-uni-textarea",{staticClass:"value",attrs:{placeholder:"请输入动态信息","placeholder-style":"fontsize: 28rpx"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"avatar-info"},[n("v-uni-view",{staticClass:"h1-title"},[t._v("上传图片")]),n("v-uni-view",{staticClass:"up-box"},[n("v-uni-view",{staticClass:"up-load",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.upImages.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"iconfont icon-tianjia"})],1),t._l(t.form.photo_show,(function(e,o){return n("v-uni-view",{key:o,staticClass:"up-load",staticStyle:{border:"none"}},[n("v-uni-image",{attrs:{src:e,mode:""}}),n("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteImage(o)}}},[t._v("+")])],1)}))],2)],1),n("v-uni-view",{staticClass:"line"}),n("v-uni-view",{staticClass:"video-box"},[n("v-uni-view",{staticClass:"h1-title"},[t._v("上传视频")]),t.form.video?n("v-uni-view",{staticClass:"video-up-load"},[n("v-uni-video",{staticClass:"video",attrs:{src:t.form.video,controls:!0}}),n("v-uni-view",{staticClass:"close",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.deleteVideo.apply(void 0,arguments)}}},[t._v("+")])],1):n("v-uni-view",{staticClass:"video-up-load",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.upLoadVideo.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"iconfont icon-tianjia"})],1)],1),n("v-uni-view",{staticClass:"location",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goLocation.apply(void 0,arguments)}}},[n("v-uni-view",{staticStyle:{color:"#333"}},[t._v(t._s(t.form.address))]),n("v-uni-image",{attrs:{src:t.imgfixUrls+"merchant/where.svg"}}),n("v-uni-view",[t._v("定位")])],1),n("v-uni-view",{staticClass:"footer-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlesubmitClick.apply(void 0,arguments)}}},[t._v("发布")]),n("PopManager",{attrs:{show:t.isOpenLaction,type:"bottom",overlay:"false",showOverlay:"false"}},[t.latlngs.latitude?n("v-uni-view",{staticClass:"iframe-wid-hgt",style:{height:t.phoneHight,width:t.phoneWidth}},[n("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp&coord="+t.latlngs.latitude+","+t.latlngs.longitude}})]):t._e(),t.latlngs.latitude?t._e():n("v-uni-view",{staticClass:"iframe-wid-hgt",style:{height:t.phoneHight,width:t.phoneWidth}},[n("iframe",{attrs:{id:"mapPage",width:"100%",height:"100%",frameborder:"0",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp"}})])],1)],1)},i=[]},"4feb":function(t,e,n){"use strict";n.r(e);var o=n("48f1"),r=n("2ec1");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("fda1");var a,s=n("f0c5"),c=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,"543b5e2c",null,!1,o["a"],a);e["default"]=c.exports},"96cf":function(t,e){!function(e){"use strict";var n,o=Object.prototype,r=o.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",d="object"===typeof t,u=e.regeneratorRuntime;if(u)d&&(t.exports=u);else{u=e.regeneratorRuntime=d?t.exports:{},u.wrap=b;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",v={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(j([])));w&&w!==o&&r.call(w,a)&&(g=w);var y=E.prototype=_.prototype=Object.create(g);L.prototype=y.constructor=E,E.constructor=L,E[c]=L.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(y),t},u.awrap=function(t){return{__await:t}},k(C.prototype),C.prototype[s]=function(){return this},u.AsyncIterator=C,u.async=function(t,e,n,o){var r=new C(b(t,e,n,o));return u.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},k(y),y[c]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},u.values=j,S.prototype={constructor:S,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(I),!t)for(var e in this)"t"===e.charAt(0)&&r.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 o(o,r){return s.type="throw",s.arg=t,e.next=o,r&&(e.method="next",e.arg=n),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),d=r.call(a,"finallyLoc");if(c&&d){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},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),I(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 o=n.completion;if("throw"===o.type){var r=o.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:j(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,o){var r=e&&e.prototype instanceof _?e:_,i=Object.create(r.prototype),a=new S(o||[]);return i._invoke=O(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(o){return{type:"throw",arg:o}}}function _(){}function L(){}function E(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function C(t){function e(n,o,i,a){var s=x(t[n],t,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?Promise.resolve(d.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}var n;function o(t,o){function r(){return new Promise((function(n,r){e(t,o,n,r)}))}return n=n?n.then(r,r):r()}this._invoke=o}function O(t,e,n){var o=l;return function(r,i){if(o===h)throw new Error("Generator is already running");if(o===p){if("throw"===r)throw i;return F()}n.method=r,n.arg=i;while(1){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===l)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var c=x(t,e,n);if("normal"===c.type){if(o=n.done?p:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=p,n.method="throw",n.arg=c.arg)}}}function P(t,e){var o=t.iterator[e.method];if(o===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(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 r=x(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function A(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){while(++o<t.length)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},c443:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.desc[data-v-543b5e2c]{width:%?690?%;height:%?260?%;margin:auto;padding-top:%?30?%;color:#333;font-size:%?28?%}.desc .label[data-v-543b5e2c]{height:%?40?%}.desc .value[data-v-543b5e2c]{width:100%;height:%?200?%;margin-top:%?20?%;line-height:%?40?%}.line[data-v-543b5e2c]{width:%?690?%;height:%?8?%;background-color:#f8f8f8;margin:auto;border-radius:%?4?%}.avatar-info[data-v-543b5e2c]{width:%?690?%;height:auto;margin:auto;padding:%?40?% 0}.avatar-info .up-box[data-v-543b5e2c]{width:100%;height:auto;display:flex;flex-wrap:wrap}.avatar-info .up-box .up-load[data-v-543b5e2c]{width:%?158?%;height:%?158?%;line-height:%?158?%;text-align:center;border-radius:%?20?%;margin:%?30?% %?10?% 0 0;border:%?1?% dashed #ccc;position:relative}.avatar-info .up-box .up-load .iconfont[data-v-543b5e2c]{font-size:%?60?%;color:#333;font-weight:700}.avatar-info .up-box .up-load uni-image[data-v-543b5e2c]{width:%?158?%;height:%?158?%;border-radius:%?20?%}.avatar-info .up-box .up-load .close[data-v-543b5e2c]{width:%?30?%;height:%?30?%;border-radius:%?15?%;color:#fff;background-color:rgba(0,0,0,.5);position:absolute;top:%?10?%;right:%?10?%;-webkit-transform:rotate(45deg);transform:rotate(45deg);font-size:%?32?%;line-height:%?28?%;text-align:center}.avatar-info .avatar[data-v-543b5e2c]{border:none}.avatar-info .qrcode[data-v-543b5e2c]{border:none}.h1-title[data-v-543b5e2c]{height:%?45?%;line-height:%?45?%;font-size:%?32?%;color:#333;font-weight:700}.video-box[data-v-543b5e2c]{width:%?690?%;margin:%?30?% auto 0;height:auto}.video-box .video-up-load[data-v-543b5e2c]{width:100%;height:%?390?%;border-radius:%?20?%;border:%?1?% dashed #ccc;line-height:%?390?%;text-align:center;margin:%?30?% auto %?40?%;position:relative}.video-box .video-up-load .iconfont[data-v-543b5e2c]{font-size:%?54?%;font-weight:700}.video-box .video-up-load .video[data-v-543b5e2c]{width:100%;height:100%}.video-box .video-up-load .close[data-v-543b5e2c]{width:%?60?%;height:%?60?%;border-radius:%?30?%;color:#fff;background-color:rgba(0,0,0,.5);position:absolute;top:%?18?%;right:%?18?%;-webkit-transform:rotate(45deg);transform:rotate(45deg);font-size:%?50?%;line-height:%?60?%;text-align:center}.footer-btn[data-v-543b5e2c]{width:%?690?%;height:%?80?%;line-height:%?80?%;text-align:center;border-radius:%?20?%;background:linear-gradient(270deg,#ff8e88,#fdad28);border-radius:%?20?%;margin:auto;color:#fff;font-size:%?32?%}.location[data-v-543b5e2c]{width:%?690?%;height:auto;padding:%?20?% 0;font-size:%?26?%;color:#f44;margin:auto;display:flex;align-items:center;justify-content:flex-end}.location uni-image[data-v-543b5e2c]{padding-left:%?10?%;width:%?22?%;height:%?22?%}',""]),t.exports=e},ea16:function(t,e,n){var o=n("c443");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("4f06").default;r("da4eba2c",o,!0,{sourceMap:!1,shadowMode:!1})},fda1:function(t,e,n){"use strict";var o=n("ea16"),r=n.n(o);r.a}}]);
|