初始化代码

This commit is contained in:
2025-12-22 17:13:05 +08:00
parent ed0de08e3a
commit 1f7e9d401b
2947 changed files with 526137 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/coupon"],{"0757":function(t,n,e){"use strict";(function(t,n){var a=e("4ea4");e("b03e");a(e("66fd"));var i=a(e("366e"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"2ad5":function(t,n,e){"use strict";(function(t){var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("2eee")),o=a(e("c973")),s=e("26cb"),u={components:{},data:function(){return{options:{},useType:{is_land:"土地租赁",is_claim:"认养服务",is_shop:"商城"},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading(),this.options=t,this.initIndex()},onUnload:function(){this.$util.back()},onPullDownRefresh:function(){this.param.page=1,t.showNavigationBarLoading(),this.initIndex(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){this.param.page=1,this.getList()},initRefresh:function(){this.initIndex()},getList:function(){var t=this;return(0,o.default)(i.default.mark((function n(){var e,a,o,s;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.list,a=t.param,o=t.useType,n.next=3,t.$api.shop.couponList(a);case 3:s=n.sent,s.data.map((function(t){t.is_show=!1;var n="";for(var e in o)t[e]&&(n+="".concat(o[e],"、"));t.use_range=n.substring(0,n.length-1)})),1==t.param.page||(s.data=e.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 8:case"end":return n.stop()}}),n)})))()},toGetCoupon:function(t){var n=this;return(0,o.default)(i.default.mark((function e(){var a,o,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=n.list.data[t].id,!n.lockTap){e.next=3;break}return e.abrupt("return");case 3:return n.lockTap=!0,n.$util.showLoading(),e.prev=5,e.next=8,n.$api.shop.userGetCoupon({coupon_id:a});case 8:o=n.$util.getPage(-1).detail.coupon_total,s=void 0===o?0:o,n.$util.getPage(-1).detail.coupon_total=s-1,n.list.data.splice(t,1),n.$util.hideAll(),n.lockTap=!1,n.$refs.show_coupon_succ_item.open(),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](5),setTimeout((function(){n.lockTap=!1,n.$util.hideAll()}),2e3);case 19:case"end":return e.stop()}}),e,null,[[5,16]])})))()},goCoupon:function(){this.$util.goUrl({url:"/mine/pages/coupon/list"}),this.$refs.show_coupon_succ_item.close()}}};n.default=u}).call(this,e("543d")["default"])},"366e":function(t,n,e){"use strict";e.r(n);var a=e("d090"),i=e("b172c");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("9149");var s=e("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},9149:function(t,n,e){"use strict";var a=e("f1fe"),i=e.n(a);i.a},b172c:function(t,n,e){"use strict";e.r(n);var a=e("2ad5"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},d090:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),a=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t._isMounted||(t.e0=function(t,n){var e=arguments[arguments.length-1].currentTarget.dataset,a=e.eventParams||e["event-params"];n=a.index;t.stopPropagation(),this.list.data[n].is_show=!this.list.data[n].is_show},t.e1=function(n){return n.stopPropagation(),t.$refs.show_coupon_succ_item.close()}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:a}})},i=[]},f1fe:function(t,n,e){}},[["0757","common/runtime","common/vendor"]]]);