1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-tabbar-box"],{"10d4":function(t,i,e){var a=e("24fb");i=a(!1),i.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/* 文章场景相关 */.an[data-v-1a77b197]{height:25px;width:25px;float:left;position:relative;top:42px}.box_head[data-v-1a77b197]{position:-webkit-sticky;position:sticky;top:%?88?%;left:0;background:#fafafa;z-index:2021;width:100%}.box_head .box_head_li[data-v-1a77b197]{flex:1;font-size:%?30?%;height:%?90?%;font-weight:700}.box_head .active[data-v-1a77b197]{border-radius:%?100?%;color:#69a8f8}.box_ul[data-v-1a77b197]{padding:0 %?30?% %?98?% %?30?%}.box_ul .box_ul_li[data-v-1a77b197]{padding:%?15?%;margin-bottom:%?20?%;background:#fff;border-radius:%?20?%}.box_ul .box_ul_li .box_ul_li_img[data-v-1a77b197]{width:30%;float:left;margin-right:%?20?%}.box_ul .box_ul_li .box_ul_li_img uni-image[data-v-1a77b197]{width:%?200?%;height:%?200?%;border-radius:%?10?%}.box_ul .box_ul_li .box_ul_li_main[data-v-1a77b197]{flex:1}.box_ul .box_ul_li .box_ul_li_name[data-v-1a77b197]{font-size:%?28?%;display:flex;overflow:hidden}.box_ul .box_ul_li .box_ul_li_name uni-text[data-v-1a77b197]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;flex:1;font-weight:700}.box_ul .box_ul_li .box_ul_li_price[data-v-1a77b197]{margin:%?15?% 0}.box_ul .box_ul_li .box_ul_li_price uni-text[data-v-1a77b197]{color:#66a6ff;font-size:%?28?%;font-weight:600}.box_ul .box_ul_li .box_ul_li_price uni-image[data-v-1a77b197]{width:%?44?%;height:%?44?%}.box_ul .box_ul_li .box_ul_li_price .hsj[data-v-1a77b197], .box_ul .box_ul_li .khj[data-v-1a77b197], .box_ul .box_ul_li .xsj[data-v-1a77b197]{display:block;margin:%?10?% 0}.box_ul .box_ul_li .box_ul_li_price .hsj uni-text[data-v-1a77b197], .box_ul .box_ul_li .khj uni-text[data-v-1a77b197], .box_ul .box_ul_li .xsj uni-text[data-v-1a77b197]{float:right}.box_ul .box_ul_li .box_ul_li_price .hsj uni-text[data-v-1a77b197]{color:#000}.box_ul .box_ul_li .box_ul_li_time[data-v-1a77b197]{color:#999;font-size:%?22?%;align-items:center;margin-top:%?20?%}.box_ul .box_ul_li .box_ul_li_time uni-text[data-v-1a77b197]{line-height:%?70?%}.box_ul .box_ul_li .box_ul_li_time uni-image[data-v-1a77b197]{width:%?48?%;height:%?48?%;float:right}.box_ul .box_ul_li .box_ul_li_time .item-btn[data-v-1a77b197]{background-image:-moz-linear-gradient(0deg,#89f7fe 0,#66a6ff 100%);background-image:-webkit-linear-gradient(0deg,#89f7fe,#66a6ff);background-image:-ms-linear-gradient(0deg,#89f7fe 0,#66a6ff 100%);color:#fff;border-radius:19px;font-size:%?28?%;margin-left:auto;width:%?200?%;height:%?60?%;float:right}.box_footer[data-v-1a77b197]{height:%?98?%;z-index:20;position:fixed;bottom:%?92?%;width:100%;padding:0 %?30?%;background:#fff}.box_footer .box_footer_all uni-image[data-v-1a77b197]{width:%?44?%;height:%?44?%;margin-right:%?10?%}.box_footer .box_footer_all uni-text[data-v-1a77b197]{color:#000;font-size:%?28?%}.box_footer .box_footer_li[data-v-1a77b197]{color:#fff;width:%?200?%;height:%?70?%;border-radius:%?39?%;font-size:%?30?%;margin-left:%?30?%}.box_footer .box_footer_li[data-v-1a77b197]:first-child{background-color:#ff67a4}.box_footer .box_footer_li[data-v-1a77b197]:last-child{background-color:#66a6ff}.donation[data-v-1a77b197]{background-color:#fff;padding:%?30?% %?40?%;border-radius:10px}.donation .title[data-v-1a77b197]{font-size:16px;font-weight:700;text-align:center;margin-bottom:%?30?%}.donation .input-container[data-v-1a77b197]{background-color:#f3f3f3;padding:%?16?% %?20?%;border-radius:%?6?%;margin-bottom:%?20?%}.donation .input-container uni-input[data-v-1a77b197]{font-size:%?30?%}.donation .tip[data-v-1a77b197]{font-size:12px;color:red;text-align:center;margin-bottom:%?30?%}.donation .donation-btns[data-v-1a77b197]{display:flex;gap:%?30?%}.donation .donation-btns uni-view[data-v-1a77b197]{color:#fff;flex:1;width:100%;height:%?70?%;border-radius:%?39?%;font-size:%?30?%}.donation .donation-btns uni-view[data-v-1a77b197]:first-child{background:-webkit-linear-gradient(60deg,#ffc8de,#ff67a4)}.donation .donation-btns uni-view[data-v-1a77b197]:last-child{background:-webkit-linear-gradient(0deg,#89f7fe,#66a6ff)}',""]),t.exports=i},"2f95":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var a={uniPopup:e("450c").default},n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("uni-popup",{ref:"recycle",attrs:{"mask-click":!1}},[e("v-uni-view",{staticClass:"recycle"},[e("v-uni-view",{staticClass:"recycle_close",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$refs.recycle.close()}}},[e("v-uni-image",{attrs:{src:"/static/image/publice/guanbi@2x.png",mode:""}})],1),e("v-uni-view",{staticClass:"recycle_head"},[t._v("提示")]),e("v-uni-view",{staticClass:"recycle_price center"},[e("v-uni-text",[t._v("¥"+t._s(t.recycleMessage.amount))]),e("v-uni-text",[t._v("回收金币")])],1),e("v-uni-view",{staticClass:"recycle_ul"},t._l(t.recycleMessage.goods_info,(function(i,a){return e("v-uni-view",{key:a,staticClass:"recycle_ul_li flex"},[e("v-uni-view",{staticClass:"recycle_ul_li_txt"},[t._v(t._s(i.name))]),e("v-uni-view",{staticClass:"recycle_ul_li_r flexs"},[e("v-uni-text",[t._v("¥"+t._s(i.price))]),e("v-uni-text",[t._v("x"+t._s(i.num))])],1)],1)})),1),e("v-uni-view",{staticClass:"recycle_txt"},[t._v("回收规则:平台统一回收折扣10,回收金币直接放【我的】 - 【余额】")]),e("v-uni-view",{staticClass:"sure",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$refs.recycle.close()}}},[t._v("确定")])],1)],1)},o=[]},"57fc":function(t,i,e){var a=e("fc10");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("0bad64d2",a,!0,{sourceMap:!1,shadowMode:!1})},"6a1b":function(t,i,e){"use strict";e("4160"),e("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"recycle",data:function(){return{recycleMessage:{}}},methods:{recycle:function(t){var i=this,e=[];t.forEach((function(t){e.push(t.prize_id)})),this.$api.exchange({record_ids:e.join(",")}).then((function(t){1===t.code&&(i.recycleMessage=t.data,i.$refs.recycle.open())}))},open:function(t){this.recycleMessage=t,this.$refs.recycle.open()}}};i.default=a},"7da7":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return a}));var a={uniPopup:e("450c").default},n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"box"},[e("v-uni-view",{staticClass:"box_head flexs"},t._l(3,(function(i,a){return e("v-uni-view",{key:a,staticClass:"box_head_li center",class:{active:a==t.i},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeIndex(a)}}},[t._v(t._s(t.titleName(a)))])})),1),e("v-uni-view",{staticClass:"box_ul"},[t.i<2?t._l(t.boxList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"box_ul_li",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),i.flag=!i.flag}}},[0==t.i?e("v-uni-image",{staticClass:"an",attrs:{src:i.flag?"/static/image/publice/xuanzhong1@2x.png":"/static/image/me/weixuanzhong@2x.png",mode:""}}):t._e(),e("v-uni-view",{staticClass:"box_ul_li_img"},[e("v-uni-image",{attrs:{src:i.goods_image,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"box_ul_li_main"},[e("v-uni-view",{staticClass:"box_ul_li_name"},[e("v-uni-text",[t._v(t._s(i.goods_name))])],1),e("v-uni-view",{staticClass:"box_ul_li_price"},[e("v-uni-view",{staticClass:"khj"},[t._v("开盒价:"),e("v-uni-text",[t._v(t._s(i.box_coin_price)+"金币")])],1),e("v-uni-view",{staticClass:"xsj"},[t._v("销售价:"),e("v-uni-text",[t._v(t._s(i.goods_coin_price)+"金币")])],1),e("v-uni-view",{staticClass:"hsj"},[t._v("回收价:"),e("v-uni-text",[t._v(t._s(i.goods_hui_price)+"金币")])],1)],1)],1),e("v-uni-view",{staticClass:"box_ul_li_time"},[e("v-uni-text",[t._v("时间:"+t._s(i.time))]),0==t.i?e("v-uni-view",{staticClass:"item-btn center",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.donationOpen(i)}}},[t._v("一键转赠")]):t._e()],1)],1)})):t._l(t.donationList,(function(i,a){return e("v-uni-view",{key:"donation-"+a,staticClass:"box_ul_li flexs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),i.flag=!i.flag}}},[e("v-uni-view",{staticClass:"box_ul_li_img"},[e("v-uni-image",{attrs:{src:i.zzimage,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"box_ul_li_main"},[e("v-uni-view",{staticClass:"box_ul_li_name"},[e("v-uni-text",[t._v(t._s(i.boxgoods))])],1),e("v-uni-view",{staticClass:"box_ul_li_price flex"},[e("v-uni-view",{staticClass:"box_ul_li_time"},[t._v("时间:"+t._s(i.zhuanztime))]),e("v-uni-text",{staticStyle:{"text-align":"right"}},[t._v("已转赠")])],1),e("v-uni-view",{staticClass:"box_ul_li_time"},[t._v("受赠人:"+t._s(i.szuser))])],1)],1)}))],2),0==t.i?e("v-uni-view",{staticClass:"box_footer flex"},[e("v-uni-view",{staticClass:"box_footer_all flexs"},[e("v-uni-image",{attrs:{src:t.isAll?"/static/image/publice/xuanzhong1@2x.png":"/static/image/me/weixuanzhong@2x.png",mode:""},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeAll.apply(void 0,arguments)}}}),e("v-uni-text",[t._v("全选("+t._s(t.totalNumber)+")")])],1),e("v-uni-view",{staticClass:"box_footer_ul flexs"},t._l(2,(function(i,a){return e("v-uni-view",{key:a,staticClass:"box_footer_li center",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.apply(a)}}},[t._v(t._s(0==a?"一键回收":"申请发货"))])})),1)],1):t._e(),e("uni-popup",{ref:"donation"},[e("v-uni-view",{staticClass:"donation"},[e("v-uni-view",{staticClass:"title"},[t._v("请输入您转赠人的手机号")]),e("v-uni-view",{staticClass:"input-container"},[e("v-uni-input",{attrs:{type:"number",placeholder:"请输入转赠人注册手机号"},model:{value:t.donationPhone,callback:function(i){t.donationPhone=i},expression:"donationPhone"}})],1),e("v-uni-view",{staticClass:"tip"},[t._v("注:一旦转赠成功不可退货,请谨慎操作")]),e("v-uni-view",{staticClass:"donation-btns"},[e("v-uni-view",{staticClass:"box_footer_li center",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$refs.donation.close()}}},[t._v("取消")]),e("v-uni-view",{staticClass:"box_footer_li center",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.donation()}}},[t._v("确定")])],1)],1)],1),e("recycle",{ref:"recycle"})],1)},o=[]},8903:function(t,i,e){var a=e("10d4");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("a6ea7c44",a,!0,{sourceMap:!1,shadowMode:!1})},a623:function(t,i,e){"use strict";var a=e("23e7"),n=e("b727").every,o=e("a640"),l=e("ae40"),r=o("every"),c=l("every");a({target:"Array",proto:!0,forced:!r||!c},{every:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},af55:function(t,i,e){"use strict";e.r(i);var a=e("b81a"),n=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},b81a:function(t,i,e){"use strict";var a=e("4ea4");e("99af"),e("a623"),e("c740"),e("4160"),e("45fc"),e("a434"),e("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a(e("2909")),o=a(e("e95a1")),l={components:{recycle:o.default},data:function(){return{i:0,page:1,isAll:!1,pages:null,totalNumber:0,boxList:[],donationList:[],recordId:null,donationPhone:null}},watch:{boxList:{handler:function(t){var i=0;this.isAll=t.every((function(t){return t.flag})),0==t.length&&(this.isAll=!1),t.forEach((function(t){t.flag&&i++})),this.totalNumber=i},deep:!0}},methods:{titleName:function(t){switch(t){case 0:return"待提货";case 1:return"已回收";case 2:return"已转赠"}},apply:function(t){var i=this;if(!this.boxList.some((function(t){return t.flag})))return uni.showToast({title:"请勾选要"+(0==t?"回收":"发货")+"的商品",icon:"none"});var e=[];this.boxList.forEach((function(t){t.flag&&e.push(t.record_id)})),0==t?uni.showModal({cancelText:"取消",confirmText:"确认",title:"一键回收",content:"是否确认一键回收?",success:function(t){t.confirm&&i.$api.exchange({record_ids:e.join(",")}).then((function(t){1===t.code&&(uni.showToast({title:t.msg}),i.page=1,i.getMyBox(),i.$refs["recycle"].open(t.data))}))}}):uni.navigateTo({url:"/pages/me/applyFaHuo?id="+e.join(",")})},changeAll:function(){var t=this;this.isAll=!this.isAll,this.boxList.forEach((function(i){i.flag=t.isAll}))},changeIndex:function(t){this.i=t,this.page=1,this.boxList=[],this.getMyBox()},getMyBox:function(){var t=this;2!=this.i?this.$api.myBox({status:this.i+1,page:this.page,msg:"数据加载中"}).then((function(i){1===i.code&&(i.data.data.forEach((function(t){t.flag=!1})),t.pages=i.data.last_page,t.boxList=1==t.page?i.data.data:[].concat((0,n.default)(t.boxList),(0,n.default)(i.data.data)))})):this.$api.echargezs({msg:"数据加载中"}).then((function(i){t.donationList=i.data}))},donationOpen:function(t){this.recordId=t.record_id,this.$refs.donation.open()},donation:function(){var t=this;this.checkPhone()&&this.$api.echargez({record_ids:this.recordId,mobile:this.donationPhone}).then((function(i){if(1===i.code){var e=t.boxList.findIndex((function(i){return i.record_id==t.recordId}));t.boxList.splice(e,1),t.$refs.donation.close(),uni.showToast({icon:"success",title:"转赠成功"})}}))},checkPhone:function(){return!!/^1[345789]\d{9}$/.test(this.donationPhone)||(uni.showToast({title:"请输入正确的手机号码",icon:"none"}),!1)}},onShow:function(){this.getMyBox()},onReachBottom:function(){2!=this.i&&this.page<this.pages&&(this.page++,this.getMyBox())}};i.default=l},bc06:function(t,i,e){"use strict";e.r(i);var a=e("6a1b"),n=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},d1b8:function(t,i,e){"use strict";var a=e("57fc"),n=e.n(a);n.a},d23b:function(t,i,e){"use strict";var a=e("8903"),n=e.n(a);n.a},e95a1:function(t,i,e){"use strict";e.r(i);var a=e("2f95"),n=e("bc06");for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("d1b8");var l,r=e("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"0d87cd54",null,!1,a["a"],l);i["default"]=c.exports},f741:function(t,i,e){"use strict";e.r(i);var a=e("7da7"),n=e("af55");for(var o in n)"default"!==o&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("d23b");var l,r=e("f0c5"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"1a77b197",null,!1,a["a"],l);i["default"]=c.exports},fc10:function(t,i,e){var a=e("24fb");i=a(!1),i.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/* 文章场景相关 */.sure[data-v-0d87cd54]{padding:%?10?% %?20?%;border-radius:%?30?%;font-size:%?26?%;background:-webkit-linear-gradient(0deg,#89f7fe,#66a6ff);color:#fff;width:%?200?%;text-align:center;margin:0 auto;margin-top:%?40?%}.recycle[data-v-0d87cd54]{width:%?640?%;padding-bottom:%?95?%;position:relative;background:#fff;box-shadow:%?0?% %?-5?% %?20?% %?0?% rgba(0,0,0,.1);border-radius:%?30?%}.recycle .sure[data-v-0d87cd54]{padding:%?10?% %?20?%;border-radius:%?30?%;font-size:%?26?%;background:-webkit-linear-gradient(0deg,#89f7fe,#66a6ff);color:#fff;width:%?200?%;text-align:center;margin:0 auto;margin-top:%?40?%}.recycle .recycle_close[data-v-0d87cd54]{top:%?20?%;right:%?30?%;width:%?44?%;height:%?44?%;position:absolute}.recycle .recycle_head[data-v-0d87cd54]{height:%?100?%;text-align:center;line-height:%?100?%;font-size:%?32?%;font-weight:700;border-bottom:%?2?% solid #e9e9e9}.recycle .recycle_price[data-v-0d87cd54]{margin:%?40?% 0 %?0?% 0;flex-direction:column}.recycle .recycle_price uni-text[data-v-0d87cd54]{color:#fa7e48;font-size:%?36?%;font-weight:700}.recycle .recycle_price uni-text[data-v-0d87cd54]:last-child{color:#333;margin-top:%?10?%;font-size:%?26?%}.recycle .recycle_ul[data-v-0d87cd54]{padding:0 %?30?%;margin:%?50?% 0}.recycle .recycle_ul_li[data-v-0d87cd54]{margin-bottom:%?30?%}.recycle .recycle_ul_li[data-v-0d87cd54]:last-child{margin-bottom:0}.recycle .recycle_ul_li .recycle_ul_li_txt[data-v-0d87cd54]{color:#999;font-size:%?26?%}.recycle .recycle_ul_li .recycle_ul_li_r uni-text[data-v-0d87cd54]{color:#999;font-size:%?26?%}.recycle .recycle_ul_li .recycle_ul_li_r uni-text[data-v-0d87cd54]:last-child{width:%?80?%;text-align:right;color:#fa7e48;font-size:%?30?%}.recycle .recycle_txt[data-v-0d87cd54]{padding:0 %?30?%;color:#999;font-size:%?26?%}',""]),t.exports=i}}]);
|