(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plus-signin_adv_open-signin_adv_open"],{"7ace":function(t,e,i){"use strict";i.r(e);var n=i("b1f9"),a=i("d674");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("f0ac");var c,r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"a5383432",null,!1,n["a"],c);e["default"]=u.exports},b1f9:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"margin-bottom":"3rem"}},[t._l(t.orderList,(function(e,n){return i("v-uni-view",{key:n},[i("v-uni-view",{staticClass:"zo",style:{height:6*(e.product_count-1)+8+"rem"}},[i("v-uni-label",{staticStyle:{width:"10%",float:"left","line-height":"8rem"}},[i("v-uni-checkbox",{attrs:{checked:e.checked},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.xuan(e.checked,n)}}})],1),i("v-uni-view",{staticStyle:{width:"80%",float:"left"}},[i("v-uni-view",[i("v-uni-view",{staticStyle:{float:"left"}},[t._v("订单号："+t._s(e.order_no))]),i("v-uni-view",{staticStyle:{color:"red",float:"right"}},[t._v(t._s(e.state_text))]),i("v-uni-view",{staticStyle:{clear:"both"}})],1),t._l(e.product_list,(function(e,n){return i("v-uni-view",{key:n,staticStyle:{"margin-top":"1rem"}},[i("v-uni-view",{staticStyle:{float:"left"}},[i("v-uni-image",{staticStyle:{width:"5rem",height:"5rem"},attrs:{src:e.product_img}})],1),i("v-uni-view",{staticStyle:{float:"left","margin-left":"10px"}},[t._v(t._s(e.product_name)+"x"+t._s(e.product_num))]),i("v-uni-view",{staticStyle:{clear:"both"}})],1)}))],2),i("v-uni-view",{staticStyle:{clear:"both"}}),i("v-uni-view",{staticStyle:{position:"relative",bottom:"1.5rem",float:"right",right:"2rem"}},[t._v("有效期："+t._s(e.days_count)+"天")])],1)],1)})),i("v-uni-view",{staticStyle:{position:"fixed",width:"100%","background-color":"#FFFFFF",bottom:"0",height:"2.5rem",padding:"0rem 0.5rem"}},[i("v-uni-view",{staticStyle:{"line-height":"2.5rem",float:"left"}},[i("v-uni-label",[i("v-uni-checkbox",{attrs:{checked:t.quan},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.xuan_quan()}}})],1),i("v-uni-text",[t._v("全选")])],1),i("v-uni-view",{staticStyle:{float:"right","line-height":"2.5rem","margin-right":".5rem"}},[i("v-uni-view",{staticStyle:{float:"left","margin-right":"2rem"}},[t._v("合计："+t._s(t.tian)+"天")]),i("v-uni-view",{staticStyle:{float:"left",width:"4rem","text-align":"center","background-color":"#e2231a",color:"#FFFFFF"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.go_open()}}},[t._v("开通")]),i("v-uni-view",{staticStyle:{clear:"both"}})],1),i("v-uni-view",{staticStyle:{clear:"both"}})],1)],2)},o=[]},b23a:function(t,e,i){"use strict";i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{orderList:[],quan:!1,dan:!1,tian:0}},onLoad:function(){this.getOrderList()},onShow:function(){},methods:{getOrderList:function(){var t=this;t._get("plus.signadv.Signadv/getOrderList",{},(function(e){console.log(e),t.orderList=e.data.is_order_list}))},xuan_quan:function(){var t=this;t.quan?(t.quan=!1,t.orderList.forEach((function(t){t.checked=!1}))):(t.quan=!0,t.orderList.forEach((function(t){t.checked=!0}))),t.calculateTian()},calculateTian:function(){var t=this,e=0;t.orderList.forEach((function(t){t.checked&&(e+=t.days_count)})),t.tian=e,console.log(e)},xuan:function(t,e){var i=this;i.orderList[e]["checked"]=!t,i.calculateTian()},go_open:function(){var t=this,e="";if(t.orderList.forEach((function(t){t.checked&&(e=e+","+t.order_id)})),console.log(e),0==e.length)return uni.showModal({title:"提示",content:"请选择订单",showCancel:!1}),!1;t._get("plus.signadv.signadv/changeOrderType",{order_ids:e,days:t.tian},(function(t){uni.showModal({title:"提示",content:t.msg,showCancel:!1,success:function(t){if(t.confirm){var e="/pages/plus/signin_adv/signin_adv";uni.navigateTo({url:"/pages/common/success?go_url="+e+"&go_font=前去打卡"})}}})}),(function(){}))}}};e.default=n},b404:function(t,e,i){var n=i("e7c2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4ad3d76f",n,!0,{sourceMap:!1,shadowMode:!1})},d674:function(t,e,i){"use strict";i.r(e);var n=i("b23a"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},e7c2:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".zo[data-v-a5383432]{width:100%;border:1px solid #d7d7d7;padding:.5rem 1rem;background-color:#fff;margin-top:.5rem}",""]),t.exports=e},f0ac:function(t,e,i){"use strict";var n=i("b404"),a=i.n(n);a.a}}]);