(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/views/order/afterSale"],{"174d":function(e,t,o){},"18b7":function(e,t,o){"use strict";var n=o("174d"),s=o.n(n);s.a},"47c7":function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return s})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return n}));var s=function(){var e=this,t=e.$createElement,o=(e._self._c,0==e.tapIndex?e._f("formatPhone")(e.Pickaddress.phone):null),n=1!=e.type?e._f("formatPhone")(e.Toaddress.phone):null,s=e._f("formatPhone")(e.Toaddress.phone);e.$mp.data=Object.assign({},{$root:{f0:o,f1:n,f2:s}})},i=[]},"624f":function(e,t,o){"use strict";o.r(t);var n=o("fe26"),s=o.n(n);for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=s.a},"93dd":function(e,t,o){"use strict";(function(e){o("2804");n(o("66fd"));var t=n(o("b3b3"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},b3b3:function(e,t,o){"use strict";o.r(t);var n=o("47c7"),s=o("624f");for(var i in s)"default"!==i&&function(e){o.d(t,e,(function(){return s[e]}))}(i);o("18b7");var a,r=o("f0c5"),c=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,"18f45d61",null,!1,n["a"],a);t["default"]=c.exports},fe26:function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("c041");function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var i=getApp(),a=function(){o.e("pages/commponent/order/setTime").then(function(){return resolve(o("9d74"))}.bind(null,o)).catch(o.oe)},r={data:function(){return{colors:"",type:1,platform:"",types:"上门取件",tapIndex:0,shows:!1,showVideo:!1,videos:"",pickTime:"",remarkList:[{name:"个人原因"},{name:"性价比太低"},{name:"态度不好"},{name:"价格不合理"},{name:"做工不行"},{name:"物流时间长"},{name:"价格优惠低"},{name:"其他原因"}],data:"",imgUrl:[],goodData:{},Pickaddress:{name:"反转",phone:"17712333156",address:"安徽省合肥市庐阳区",moreAddres:"逍遥津",address_id:1},Toaddress:{name:"反转",phone:"17712333156",address:"安徽省合肥市庐阳区",moreAddres:"逍遥津",address_id:1}}},filters:{formatPhone:function(e){var t=/(\d{3})\d{4}(\d{4})/,o=e.replace(t,"$1****$2");return o}},components:{setTimes:a},props:{},created:function(){this.platform=e.getSystemInfoSync().platform,this.newVideo=e.createVideoContext("newVideo")},onLoad:function(t){(0,n.removePickaddress)(),(0,n.removeToaddress)();var o=JSON.parse(e.getStorageSync("goodData")),s=t.type||1;e.setNavigationBarTitle({title:t.typeText}),this.setData({colors:i.globalData.newColor,goodData:o,type:s})},onReady:function(){},onShow:function(){(0,n.getPickaddress)()&&(this.Pickaddress=(0,n.getPickaddress)()),(0,n.getToaddress)()&&(this.Toaddress=(0,n.getToaddress)())},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{setCurrent:function(e){var t=this.remarkList[e];t.current=!t.current;var o="remarkList["+e+"]";this.setData(s({},o,t));var n=[];this.remarkList.forEach((function(e){1==e.current&&n.push(e)})),console.log(n)},onChoose:function(){var t=this;e.showActionSheet({title:"选择上传类型",itemList:["图片","视频"],success:function(e){0==e.tapIndex?t.chooseImages():t.chooseVideo()}})},chooseImages:function(){var t=this;e.chooseImage({count:1,sizeType:["original","compressed"],success:function(o){if(t.imgUrl.length>=3)e.showToast({title:"最多上传3个",icon:"none"});else{var n={url:"/static/images/goods/four.jpg",type:1};t.imgUrl.push(n)}}})},chooseVideo:function(){var t=this;e.chooseVideo({count:1,sourceType:["camera","album"],success:function(o){if(console.log(o),t.imgUrl.length>=3)e.showToast({title:"最多上传3个",icon:"none"});else{var n={url:"https://fzdz.soft.haoyangsoft.com/uploads/system/videos/20200813/6c819d24ee6868aee33e150c4333329b.mp4",type:2,poster:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1603080909940&di=ac10c5f2c952dd1b40441bb696c55a88&imgtype=0&src=http%3A%2F%2Fn.sinaimg.cn%2Fsinacn%2Fw640h640%2F20180127%2F369b-fyqzcxh1087346.jpg"};t.imgUrl.push(n)}}})},delImg:function(e){this.imgUrl.splice(e,1)},previewImg:function(t){var o=[];o[0]=t,e.previewImage({urls:o})},onshowVideo:function(e){this.videos=e,this.showVideo=!0},hideShow:function(){this.showVideo=!1},ondefault:function(){},setReturn:function(){var t=this;e.showActionSheet({title:"选择返回方式",itemList:["上门取件","到店邮寄"],success:function(e){t.types=0==e.tapIndex?"上门取件":"到店邮寄",t.tapIndex=e.tapIndex}})},openPopup:function(){this.shows=!0},onClose:function(){this.shows=!1},setLocation:function(t){var o=0==t?this.Pickaddress:this.Toaddress;e.navigateTo({url:"/pages/views/order/location/location?status="+t+"&address="+JSON.stringify(o)})},onComplete:function(e){console.log("取货时间",e),this.pickTime=e},onsubmit:function(){e.showToast({title:"提交成功"}),setTimeout((function(){e.navigateBack({delta:2})}),1500)}}};t.default=r}).call(this,o("543d")["default"])}},[["93dd","common/runtime","common/vendor"]]]);