1 line
8.1 KiB
JavaScript
1 line
8.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupon-ownerCoupon"],{"1fde":function(t,n,e){"use strict";e.r(n);var c=e("d398"),o=e("9307");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("bcc6");var u=e("828b"),i=Object(u["a"])(o["default"],c["b"],c["c"],!1,null,"d2e1d348",null,!1,c["a"],void 0);n["default"]=i.exports},"4a53":function(t,n,e){"use strict";e("6a54");var c=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("e838"),e("bf0f"),e("2797"),e("aa9c");var o=c(e("d5d0")),a=(c(e("4a5f")),c(e("1fde")),e("fcd3"),e("a6b0")),u=e("1c9a"),i=o.default.constant,s=(e("14e5"),{data:function(){return{couponList:[],tmpCouponList:[],userLink:"",couponAmount:0}},onLoad:function(t){o.default.onLoad(t),this._loadCouponUsers()},methods:{checkboxChange:function(t){this.couponAmount="0";for(var n=this.couponList,e=t.detail.value,c=0,o=n.length;c<o;++c){n[c].checked=!1;for(var a=0,u=e.length;a<u;++a)if(n[c].couponId==e[a]){n[c].checked=!0;break}1==n[c].checked&&(this.couponAmount=(parseFloat(this.couponAmount)+parseFloat(n[c].actualPrice)).toFixed(2))}console.log(this.couponList)},_loadCouponUsers:function(){var t=this,n={page:1,row:30,tel:o.default.getUserInfo().ownerTel,communityId:(0,u.getCommunityId)(),state:"1001",toType:"2002"};t.couponList=[];(0,a.getCouponUsers)(n,[]).then((function(n){console.log("测试测试"),n.data.forEach((function(n){n["checked"]=!1,"Y"==n.isExpire&&t.couponList.push(n)}))}),(function(){}))},_navigateBack:function(){var t=[];this.couponList.forEach((function(n){1==n.checked&&t.push(n)}));var n={couponList:t,couponAmount:this.couponAmount};uni.setStorageSync(i.mapping.COUPON_USER_KEY,n),uni.navigateBack()}}});n.default=s},5213:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[t.couponList.length>0?e("v-uni-view",{staticClass:"block__title"},[t._v(" "+t._s(t.$t("pages.coupon.ownerCoupon.可使用优惠卷")))]):t._e(),t.couponList.length<1?e("v-uni-view",{staticClass:"block__title"},[t._v(" "+t._s(t.$t("pages.coupon.ownerCoupon.请使用商城系统积累优惠卷")))]):t._e(),e("uni-collapse",{staticClass:"margin-top fee-content",on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.change.apply(void 0,arguments)}}},[e("uni-tr",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e("uni-th",{attrs:{align:"center",with:50}})],1),e("v-uni-view",{staticClass:"tl-section"},[e("v-uni-checkbox-group",{staticClass:"block",on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.checkboxChange.apply(void 0,arguments)}}},t._l(t.couponList,(function(n,c){return e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(n.couponName)+" "+t._s(t.$t("pages.coupon.ownerCoupon.面值:"))+t._s(n.actualPrice)+" "+t._s(t.$t("pages.coupon.ownerCoupon.元"))+" "+t._s(t.$t("pages.coupon.ownerCoupon.有效期:"))+t._s(n.actualPrice)+" ")]),e("v-uni-checkbox",{staticClass:"round",class:t.couponList[c].checked?"checked":"",attrs:{checked:!!t.couponList[c].checked,value:n.couponId}})],1)})),1)],1)],1),e("v-uni-view",{staticClass:" bg-white border flex justify-end",staticStyle:{position:"fixed",width:"100%",bottom:"0"}},[e("v-uni-view",{staticClass:"action text-orange margin-right line-height"},[t._v(" "+t._s(t.$t("pages.coupon.ownerCoupon.合计:"))+t._s(t.couponAmount+t.$t("pages.coupon.ownerCoupon.元"))+" ")]),e("v-uni-view",{staticClass:"btn-group"},[e("v-uni-button",{staticClass:"cu-btn bg-red shadow-blur lgplus sharp",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t._navigateBack()}}},[t._v(" "+t._s(t.$t("pages.coupon.ownerCoupon.确定")))])],1)],1)],1)},o=[]},5343:function(t,n,e){"use strict";e.r(n);var c=e("4a53"),o=e.n(c);for(var a in c)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(a);n["default"]=o.a},"54bb":function(t,n,e){var c=e("bc95");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[t.i,c,""]]),c.locals&&(t.exports=c.locals);var o=e("967d").default;o("4ce49eca",c,!0,{sourceMap:!1,shadowMode:!1})},"58c6":function(t,n,e){"use strict";var c=e("54bb"),o=e.n(c);o.a},"7f84":function(t,n,e){"use strict";e.r(n);var c=e("5213"),o=e("5343");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("58c6");var u=e("828b"),i=Object(u["a"])(o["default"],c["b"],c["c"],!1,null,"678c1a7a",null,!1,c["a"],void 0);n["default"]=i.exports},9307:function(t,n,e){"use strict";e.r(n);var c=e("cd9a"),o=e.n(c);for(var a in c)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(a);n["default"]=o.a},"9d3f":function(t,n,e){var c=e("b0b7");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[t.i,c,""]]),c.locals&&(t.exports=c.locals);var o=e("967d").default;o("6f84205c",c,!0,{sourceMap:!1,shadowMode:!1})},b0b7:function(t,n,e){var c=e("c86c");n=c(!1),n.push([t.i,".block__title[data-v-d2e1d348]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}",""]),t.exports=n},bc95:function(t,n,e){var c=e("c86c");n=c(!1),n.push([t.i,".ppf_item[data-v-678c1a7a]{padding:%?0?% %?0?% %?0?% %?0?%}.block__title[data-v-678c1a7a]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.button_up_blank[data-v-678c1a7a]{height:%?40?%}.block__bottom[data-v-678c1a7a]{height:%?180?%}.fee-last[data-v-678c1a7a]{margin-bottom:%?200?%}.cu-btn.lgplus[data-v-678c1a7a]{padding:0 20px;font-size:18px;height:%?100?%}.cu-btn.sharp[data-v-678c1a7a]{border-radius:%?0?%}.line-height[data-v-678c1a7a]{line-height:%?100?%}",""]),t.exports=n},bcc6:function(t,n,e){"use strict";var c=e("9d3f"),o=e.n(c);o.a},cd9a:function(t,n,e){"use strict";e("6a54");var c=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("bf0f"),e("2797"),e("4626"),e("5ac7"),e("e838"),e("aa9c");c(e("d5d0"));var o=e("b9a1"),a=(e("1c9a"),{components:{},data:function(){return{accounts:[],selectedAccounts:[]}},props:{},computed:{},watch:{selectedAccounts:function(t){var n=0,e=[];this.accounts.forEach((function(c){t.includes(c.acctId)&&("2004"==c.acctType?parseFloat(c.amount)>=parseFloat(c.maximumNumber)?(n+=parseFloat(c.maximumNumber/c.deductionProportion),e.push(c)):(n+=parseFloat(c.amount/c.deductionProportion),e.push(c)):(c.acctType,n+=parseFloat(c.amount),e.push(c)))})),this.$emit("getUserAmount",{totalUserAmount:n,selectedAccounts:e})}},methods:{checkboxChange:function(t){var n=t.detail.value;this.selectedAccounts=n,this.accounts.forEach((function(t,e){n.includes(t.acctId)&&(t.checked=!0)}))},_listOwnerAccount:function(t){var n=this;(0,o.queryOwnerAccount)({page:1,row:99,communityId:t,acctType:"2003"}).then((function(t){n.accounts=t||[]}))},_viewAccountDetail:function(t){}}});n.default=a},d398:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[t.accounts.length>0?e("v-uni-view",[e("v-uni-view",{staticClass:"block__title"},[t._v(" "+t._s(t.$t("components.vc-user-account.vc-user-account.业主账户")))]),e("v-uni-checkbox-group",{on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.checkboxChange.apply(void 0,arguments)}}},t._l(t.accounts,(function(n,c){return e("v-uni-view",{key:c,staticClass:"cu-list menu",attrs:{"data-item":n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._viewAccountDetail(n)}}},[e("v-uni-view",{staticClass:"cu-item "},[e("v-uni-view",{staticClass:"content padding-tb-sm"},[e("v-uni-view",[e("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"220px"}},[e("v-uni-checkbox",{attrs:{value:n.acctId,checked:n.checked}}),t._v(" "+t._s(t.$t("components.vc-user-account.vc-user-account."+n.acctTypeName))+" ")],1)],1)],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(" "+t._s(n.amount)+t._s("2004"==n.acctType?t.$t("components.vc-user-account.vc-user-account.分"):t.$t("components.vc-user-account.vc-user-account.元"))+" ")])],1)],1)],1)})),1)],1):t._e()],1)},o=[]}}]); |