1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["spread-page-spread-poster_goods"],{"3e51":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.singleAgentData=e.setAccount=e.myApplyApi=e.multipleAgentData=e.getWithdrawalRecord=e.getSpreadWithdrawal=e.getSpreadPoster=e.getSpreadMyTeam=e.getSpreadIndex=e.getScanTipsInfo=e.getPosterGoodsApi=e.getCurrentLogList=e.getAccount=e.bindingPromotionRelationship=e.applyWithdrawal=e.applyApi=e.allGroupsApi=e.agentList=void 0;var a=i(n("7653"));e.getSpreadIndex=function(){return a.default.get("api/user.spread.index/index")};e.getSpreadWithdrawal=function(){return a.default.get("api/user.spread.get_cash/index")};e.getCurrentLogList=function(t){return a.default.get("api/user.spread.current_log/list",t)};e.getSpreadPoster=function(){return a.default.post("api/user.spread.poster/index")};e.getWithdrawalRecord=function(t){return a.default.get("api/user.spread.get_cash/list",t)};e.getSpreadMyTeam=function(t){return a.default.get("api/user.spread.index/down",t)};e.applyWithdrawal=function(t){return a.default.post("api/user.spread.get_cash/apply",t)};e.getScanTipsInfo=function(t){return a.default.get("api/user.spread.index/scanTipsInfo",t)};e.bindingPromotionRelationship=function(t){return a.default.get("api/user.spread.index/member_spread_bind",t)};e.getAccount=function(){return a.default.post("api/user.spread.get_cash/getAccount")};e.setAccount=function(t){return a.default.post("api/user.spread.get_cash/setAccount",t)};e.getPosterGoodsApi=function(t){return a.default.get("api/user.spread.service_provider/index",t)};e.allGroupsApi=function(){return a.default.get("api/user.spread.index/allGroups")};e.agentList=function(){return a.default.get("api/user.partner.index/agentList")};e.singleAgentData=function(t){return a.default.post("api/user.partner.index/singleAgentData",t)};e.multipleAgentData=function(t){return a.default.post("api/user.partner.index/multipleAgentData",t)};e.myApplyApi=function(t){return a.default.get("api/user.spread.apply/myApply",t)};e.applyApi=function(t){return a.default.post("api/user.spread.apply/apply",t)}},"6e56":function(t,e,n){var i=n("9d42");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("16b2b708",i,!0,{sourceMap:!1,shadowMode:!1})},7430:function(t,e,n){"use strict";n.r(e);var i=n("c945"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"9d42":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.container[data-v-4ea65855]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.container uni-image[data-v-4ea65855]{height:100%!important;margin:0}',""]),t.exports=e},b0d2:function(t,e,n){"use strict";n.r(e);var i=n("e94c"),a=n("7430");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("dfa1b");var r=n("828b"),d=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"4ea65855",null,!1,i["a"],void 0);e["default"]=d.exports},ba1f:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.updateGoodCartApi=e.getStoreShoppingCartSpecGoodNumApi=e.clearStoreShoppingCartApi=e.addTangshiGoodToCartApi=e.addGoodToCartApi=e._zfbdataPurchaseGoods=void 0;var a=i(n("7653"));e.getStoreShoppingCartSpecGoodNumApi=function(t){var e=t.sid,n=t.goodsId,i=t.tableId;return a.default.get("api/user.store.goods/cartOption",{sid:e,goods_id:n,table_id:i||""})};e.addGoodToCartApi=function(t){var e=t.sid,n=t.goodsId,i=t.spellriceId,o=t.optionId,r=t.sign,d=t.type,s=t.tableId,u=t.num,p=t.activity_id,c=t.miniProgramPath;return console.log(o),a.default.post("api/user.store.goods/cart",{sid:e,goods_id:n,spellrice_id:i||"",option_id:o||"",sign:r,type:d||"",table_id:s||"",activity_id:p||0,num:u,miniProgramPath:c||""})};e.addTangshiGoodToCartApi=function(t){var e=t.sid,n=t.goodsId,i=t.optionId,o=t.sign,r=t.type,d=t.tableId,s=t.num;return a.default.post("api/user.store.table/cart",{sid:e,goods_id:n,option_id:i||"",sign:o,type:r||"",table_id:d||"",num:s})};e.updateGoodCartApi=function(t){var e=t.goodsId,n=t.sid,i=t.num,o=t.options_id;return a.default.post("api/user.store.goods/updateCart",{sid:n,goods_id:e,num:i,options_id:o})};e.clearStoreShoppingCartApi=function(t){var e=t.sid;return a.default.get("api/user.store.goods/truncate",{sid:e})};e._zfbdataPurchaseGoods=function(t){var e=t.sign,n=t.goodsId;console.log("增长分析埋点中加减购物车的商品ID: ",n);var i="+"===e?0:1;my.reportCustomEvent("1045127",{bizType:"cloudappevent",spu_id:n,action_type:i,action_num:1,is_goods_page:0})}},c945:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("c223");var i=n("3e51"),a=n("ba1f"),o=n("419c"),r={data:function(){return{config:null}},onLoad:function(t){this.getConfig()},onShow:function(){},onPullDownRefresh:function(){},computed:{},methods:{getConfig:function(){var t=this;(0,i.getPosterGoodsApi)().then((function(e){console.log("res",e),e||uni.showModal({title:"提示",content:"获取配置失败",showCancel:!1,success:function(t){t.confirm&&uni.navigateBack()}}),t.config=e})).catch((function(t){showToast({title:t.msg})}))},buy:function(){uni.showLoading({title:"加载中"});var t=this.config.giftPack,e=t.sid,n=t.goods_id;(0,a.addGoodToCartApi)({sid:e,goodsId:n,spellriceId:0,optionId:0,sign:"+",type:"",tableId:0,num:1}).then((function(t){console.log("res",t),uni.hideLoading(),(0,o.navPage)("/order-page/submit-order/index?sid=".concat(e,"&orderType=").concat("poster_goods_mall"))})).finally((function(){uni.hideLoading()}))}}};e.default=r},dfa1b:function(t,e,n){"use strict";var i=n("6e56"),a=n.n(i);a.a},e94c: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(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.buy.apply(void 0,arguments)}}},[n("v-uni-image",{staticStyle:{width:"100%"},attrs:{src:t.config.poster_image,mode:"widthFix"}})],1)},a=[]}}]);
|