(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-code_info-code_info"],{"151c":function(e,t,n){"use strict";n("fb6a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5021"),o={data:function(){return{type:"",codeInfo:"",code:"",lowerInfo:"",state:"",failBg:"http://fangw.jiuweiyun.cn/banner_1/fail.png",suceBg:"http://fangw.jiuweiyun.cn/banner_1/suce.png",intr:"",popShoow:!1}},onLoad:function(e){this.type=e.type;var t="";t=0==this.type?"扫码发货基本信息":1==this.type?"扫码退货基本信息":2==this.type?"扫码零售基本信息":"基本信息",uni.setNavigationBarTitle({title:t}),this.code=e.code,this.codeInfo=JSON.parse(decodeURIComponent(e.info))},onShow:function(){this.otherFun()},methods:{skipIndex:function(){uni.reLaunch({url:"../index/index"})},getName:function(e){return e?e.length>10?e.slice(0,10)+"...":e:""},retailGoods:function(){var e=this,t=encodeURIComponent(e.code);(0,i.retailGoods)({code:t}).then((function(t){200==t.code?(e.state=4,e.intr="恭喜您零售发货成功!赶快发送下一个吧~"):(e.state=5,e.intr=t.msg?t.msg:"零售发货失败,请重新扫码"),e.popShoow=!0}))},sendGoods:function(){var e=this;if(!e.lowerInfo.id)return uni.showModal({content:"请先修改所属者",showCancel:!1}),!1;var t=encodeURIComponent(e.code);(0,i.sendGoods)({code:t,id:e.lowerInfo.id}).then((function(t){200==t.code?(e.state=0,e.intr="恭喜您发货成功!赶快发送下一个吧~"):(e.state=1,e.intr=t.msg?t.msg:"发货失败,请重新扫码"),e.popShoow=!0}))},salesReturn:function(){var e=this,t=encodeURIComponent(e.code);(0,i.returnGoods)({code:t}).then((function(t){200==t.code?(e.state=2,e.intr="退货成功,请点击确定按钮继续操作"):(e.state=3,e.intr=t.msg?t.msg:"退货失败,请重新扫码"),e.popShoow=!0}))},otherFun:function(e){e&&(this.lowerInfo=e)},skipJunior:function(){uni.navigateTo({url:"../junior/junior"})}}};t.default=o},"34b9":function(e,t,n){e.exports=n.p+"static/img/return.30e13ede.png"},"38b6":function(e,t,n){"use strict";var i=n("57a4"),o=n.n(i);o.a},5021:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.retailGoods=t.returnGoods=t.sendGoods=void 0;var o=i(n("74f7")),a=function(e){return o.default.get("/user_send_good",e)};t.sendGoods=a;var c=function(e){return o.default.get("/user_return_good",e)};t.returnGoods=c;var r=function(e){return o.default.get("/sell",e)};t.retailGoods=r},"57a4":function(e,t,n){var i=n("c712");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("f60599e4",i,!0,{sourceMap:!1,shadowMode:!1})},"8b5a":function(e,t,n){e.exports=n.p+"static/img/send.4d65e0b4.png"},9781:function(e,t,n){"use strict";n.r(t);var i=n("fb6c"),o=n("c0fb");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("38b6");var c,r=n("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"e3a94fb8",null,!1,i["a"],c);t["default"]=s.exports},a71c:function(e,t,n){e.exports=n.p+"static/img/retail.5581a480.png"},c0fb:function(e,t,n){"use strict";n.r(t);var i=n("151c"),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},c712:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.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/* 文章场景相关 */.flexV[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.flexC[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.flexS[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.flexA[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.flexB[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.flexCC[data-v-e3a94fb8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.code_info .info_bg[data-v-e3a94fb8]{width:%?690?%;margin:%?30?% auto 0}.code_info .info_bg uni-image[data-v-e3a94fb8]{width:%?690?%;height:%?276?%}.code_info .info_con[data-v-e3a94fb8]{width:%?690?%;margin:%?50?% auto %?84?%}.code_info .info_con .title[data-v-e3a94fb8]{font-size:%?32?%;color:#333;font-weight:600}.code_info .info_con .con > uni-view[data-v-e3a94fb8]{width:100%;height:%?80?%;font-size:%?28?%;margin-top:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.code_info .info_con .con > uni-view uni-view[data-v-e3a94fb8],\r\n.code_info .info_con .con > uni-view uni-text[data-v-e3a94fb8]{height:%?80?%;line-height:%?80?%}.code_info .info_con .con > uni-view uni-text[data-v-e3a94fb8]{width:%?120?%;-webkit-flex-shrink:0;flex-shrink:0;color:#333;font-weight:600}.code_info .info_con .con > uni-view > uni-view[data-v-e3a94fb8]{width:%?564?%;background:#f8f8f8;padding-left:%?30?%}.code_info .info_con .con .belong[data-v-e3a94fb8]{padding-right:%?30?%}.code_info .info_con .con .belong uni-text[data-v-e3a94fb8]{font-weight:400;margin-right:%?5?%;color:#333}.code_info .info_con .con .belong .arrow[data-v-e3a94fb8]{width:%?30?%;height:%?30?%;vertical-align:%?-6?%}.code_info .info_con .con .belong .avatar[data-v-e3a94fb8]{width:%?56?%;height:%?56?%;border-radius:50%;vertical-align:%?-16?%;margin-right:%?10?%}.code_info .info_con .con .belong .name[data-v-e3a94fb8]{width:65%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.code_info .info_btn[data-v-e3a94fb8]{width:%?530?%;height:%?88?%;margin:0 auto;background:-webkit-linear-gradient(357deg,#a080ff,#5d6bff);background:linear-gradient(93deg,#a080ff,#5d6bff);opacity:1;border-radius:%?44?%;font-size:%?32?%;color:#fff}.pop[data-v-e3a94fb8]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999;width:100vw;height:100vh;background-color:rgba(0,0,0,.8);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.pop .pop_con[data-v-e3a94fb8]{width:%?598?%;height:%?704?%;text-align:center;margin:0 auto}.pop .pop_con uni-view[data-v-e3a94fb8]{font-size:%?28?%;color:#333}.pop .pop_con .intr[data-v-e3a94fb8]{width:90%;margin:0 auto;text-align:center;line-height:1.5;min-height:18%}.pop .pop_con .notice[data-v-e3a94fb8]{font-size:%?48?%;font-weight:700;color:#fff;margin:%?230?% 0 %?100?%}.pop .pop_con .pop_btn[data-v-e3a94fb8]{width:%?430?%;height:%?88?%;background:-webkit-linear-gradient(357deg,#a080ff,#5d6bff);background:linear-gradient(93deg,#a080ff,#5d6bff);border-radius:%?44?%;margin:%?15?% auto 0;color:#fff;font-size:%?32?%}',""]),e.exports=t},d741:function(e,t,n){e.exports=n.p+"static/img/arrow_left.a49c3717.png"},fb6c:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"code_info"},[i("v-uni-view",{staticClass:"info_bg"},[1==e.type?i("v-uni-image",{attrs:{src:n("34b9")}}):e._e(),2==e.type?i("v-uni-image",{attrs:{src:n("a71c")}}):i("v-uni-image",{attrs:{src:n("8b5a")}})],1),i("v-uni-view",{staticClass:"info_con"},[i("v-uni-view",{staticClass:"title"},[e._v("产品信息")]),i("v-uni-view",{staticClass:"con"},[i("v-uni-view",[i("v-uni-text",[e._v("款式:")]),i("v-uni-view",[e._v(e._s(e.codeInfo.style))])],1),0==e.type||2==e.type?i("v-uni-view",[i("v-uni-text",[e._v("所属者:")]),i("v-uni-view",{staticClass:"belong flexB",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),0==e.type&&e.skipJunior()}}},[i("v-uni-text",{staticClass:"name"},[e._v(e._s(e.lowerInfo.nickname?e.lowerInfo.nickname:e.codeInfo.nickname))]),0==e.type?i("v-uni-view",[i("v-uni-image",{staticClass:"avatar",attrs:{src:e.lowerInfo.avatar?e.lowerInfo.avatar:e.codeInfo.avatar}}),i("v-uni-text",{staticStyle:{color:"#999"}},[e._v("修改")]),i("v-uni-image",{staticClass:"arrow",attrs:{src:n("d741")}})],1):e._e()],1)],1):e._e(),1==e.type?i("v-uni-view",[i("v-uni-text",[e._v("退货人:")]),i("v-uni-view",[e._v(e._s(e.getName(e.codeInfo.nickname)))])],1):e._e(),i("v-uni-view",[i("v-uni-text",[e._v("等级:")]),i("v-uni-view",[e._v(e._s(e.codeInfo.level))])],1),i("v-uni-view",[i("v-uni-text",[e._v("手机:")]),i("v-uni-view",[e._v(e._s(e.lowerInfo.phone?e.lowerInfo.phone:e.codeInfo.phone))])],1),i("v-uni-view",[i("v-uni-text",[e._v("时间:")]),i("v-uni-view",[e._v(e._s(e.codeInfo.time))])],1)],1)],1),0==e.type?i("v-uni-view",{staticClass:"info_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendGoods.apply(void 0,arguments)}}},[e._v("确认发货")]):e._e(),1==e.type?i("v-uni-view",{staticClass:"info_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.salesReturn.apply(void 0,arguments)}}},[e._v("确认退货")]):e._e(),2==e.type?i("v-uni-view",{staticClass:"info_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.retailGoods.apply(void 0,arguments)}}},[e._v("零售发货")]):e._e(),1==e.popShoow?i("v-uni-view",{staticClass:"pop",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.popShoow=!1}}},[i("v-uni-view",{staticClass:"pop_con",style:{backgroundImage:"url("+(1==e.state||3==e.state||5==e.state?e.failBg:e.suceBg)+")",backgroundSize:"contain"}},[i("v-uni-view",{staticClass:"notice"},[0==e.state?i("v-uni-text",[e._v("发货成功")]):e._e(),1==e.state?i("v-uni-text",[e._v("发货失败")]):e._e(),2==e.state?i("v-uni-text",[e._v("退货成功")]):e._e(),3==e.state?i("v-uni-text",[e._v("退货失败")]):e._e(),4==e.state?i("v-uni-text",[e._v("零售发货成功")]):e._e(),5==e.state?i("v-uni-text",[e._v("零售发货失败")]):e._e()],1),i("v-uni-view",{staticClass:"intr"},[e._v(e._s(e.intr))]),i("v-uni-view",{staticClass:"pop_btn flexC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.skipIndex.apply(void 0,arguments)}}},[e._v("确定")])],1)],1):e._e()],1)},a=[]}}]);