1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupon-writeOffCoupon"],{"1f92":function(t,e,n){"use strict";n.r(e);var o=n("568f"),i=n("93ac");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var s=n("828b"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"36dcb318",null,!1,o["a"],void 0);e["default"]=u.exports},"568f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={noDataPage:n("8981").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"cu-bar bg-white search "},[n("v-uni-view",{staticClass:"search-form round"},[n("v-uni-text",{staticClass:"cuIcon-search"}),n("v-uni-input",{attrs:{type:"text",placeholder:this.$t("pages.coupon.writeOffCoupon.输入核销码"),"confirm-type":"search"},model:{value:t.couponQrcode,callback:function(e){t.couponQrcode=e},expression:"couponQrcode"}})],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-gradual-green shadow-blur round",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navigateToScan()}}},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.扫码")))]),n("v-uni-button",{staticClass:"cu-btn bg-gradual-red shadow-blur round",staticStyle:{"margin-left":"10px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.comfirmTimeId(t.couponQrcode)}}},[t._v(t._s(t.$t("pages.coupon.writeOffCoupon.核销")))])],1)],1),t.couponOrders&&t.couponOrders.length>0?n("v-uni-view",t._l(t.couponOrders,(function(e,o){return n("v-uni-view",{key:o,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs padding"},[n("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[n("v-uni-view",{staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.单号"))),n("span",{staticClass:"text-gray",staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.uoId))])])],1),n("v-uni-view",{staticClass:"flex margin-top justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.优惠券")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.couponName)+"("+t._s(e.value)+")")])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.用户")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.userName)+"("+t._s(e.tel)+")")])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.使用时间")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.createTime))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.coupon.writeOffCoupon.用途")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.remark))])],1)],1)})),1):n("v-uni-view",[n("no-data-page")],1)],1)},a=[]},"61fb":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("8981")),a=o(n("aa02")),s=o(n("9494")),u=n("7fee"),r=n("69b5"),c=n("a98f"),f=o(n("9b8e"));f.default.prototype.$preventClick=c.preventClick;var d={data:function(){return{onoff:!0,orderImg:s.default.baseUrl+"img/order.png",couponOrders:[],page:1,loadingStatus:"loading",loadingContentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"},couponQrcode:"",modal:{showModal:!1,title:this.$t("pages.coupon.writeOffCoupon.暂停原因"),text:this.$t("pages.coupon.writeOffCoupon.请填写暂停原因")}}},components:{noDataPage:i.default,uniLoadMore:a.default},onLoad:function(){this.java110Context.onLoad(),this._loadCouponUserDetail()},onShow:function(){var t=this.java110Context.getUserInfo(),e=t.storeId;this.storeId=e},methods:{_loadCouponUserDetail:function(){var t=this;(0,r.listCouponPropertyUserDetail)(this,{page:1,row:100,communityId:(0,u.getCurrentCommunity)().communityId}).then((function(e){t.couponOrders=e.data}))},navigateToScan:function(){setTimeout((function(){uni.navigateTo({url:"/pages/appointment/hou_one"})}),300)},comfirmTimeId:function(t){var e=this;t&&(e.couponQrcode=t,setTimeout((function(){var n=this;uni.showModal({cancelText:this.$t("pages.coupon.writeOffCoupon.取消"),confirmText:this.$t("pages.coupon.writeOffCoupon.核销"),content:this.$t("pages.coupon.writeOffCoupon.核销码:")+t,success:function(o){o.confirm&&(wx.showToast({title:n.$t("pages.coupon.writeOffCoupon.请稍后"),icon:"none"}),(0,r.writeOffCouponPropertyUser)(e,{couponQrcode:t,communityId:(0,u.getCurrentCommunity)().communityId,giftCount:1}).then((function(t){uni.showToast({title:this.$t("pages.coupon.writeOffCoupon.操作成功")}),e.couponQrcode="",wx.hideLoading(),e._loadCouponUserDetail()})))}})}),1e3))}}};e.default=d},"69b5":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getIntegralSetting=function(t,e){return new Promise((function(n,o){t.context.get({url:i.default.listIntegralSetting,data:e,success:function(t){0==t.data.code?n(t.data):o(t.data.msg)},fail:function(t){o(t)}})}))},e.getIntegralUserDetail=function(t,e){return new Promise((function(n,o){t.context.get({url:i.default.listIntegralUserDetail,data:e,success:function(t){0==t.data.code?n(t.data):o(t.data.msg)},fail:function(t){o(t)}})}))},e.getReserveGoodsConfirmOrder=function(t,e){return new Promise((function(n,o){t.context.get({url:i.default.listReserveGoodsConfirmOrder,data:e,success:function(t){0==t.data.code?n(t.data):o(t.data.msg)},fail:function(t){o(t)}})}))},e.listCouponPropertyUserDetail=function(t,e){return new Promise((function(n,o){t.context.get({url:i.default.listCouponPropertyUserDetail,data:e,success:function(t){0==t.data.code?n(t.data):o(t.data.msg)},fail:function(t){o(t)}})}))},e.saveReserveGoodsConfirmOrder=function(t,e){return new Promise((function(n,o){t.context.post({url:i.default.saveReserveGoodsConfirmOrder,data:e,success:function(t){0==t.data.code?n(t):wx.showToast({title:"核销状态:"+t.data.msg,icon:"none",duration:3e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:3e3})}})}))},e.useIntegral=function(t,e){return new Promise((function(n,o){t.context.post({url:i.default.useIntegral,data:e,success:function(t){0==t.data.code?n(t):wx.showToast({title:"核销状态:"+t.data.msg,icon:"none",duration:3e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:3e3})}})}))},e.writeOffCouponPropertyUser=function(t,e){return new Promise((function(n,o){t.context.post({url:i.default.writeOffCouponPropertyUser,data:e,success:function(t){0==t.data.code?n(t):wx.showToast({title:"核销状态:"+t.data.msg,icon:"none",duration:3e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:3e3})}})}))},n("bf0f");var i=o(n("9494"));o(n("4a01"))},"93ac":function(t,e,n){"use strict";n.r(e);var o=n("61fb"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},a98f:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.preventClick=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this;n.onoff?(n.onoff=!1,t(e)):uni.showToast({title:"操作过于频繁",icon:"none"})}}}]); |