java-mall-app/unpackage/dist/build/mp-weixin/member/fans/endorsement.js
2025-12-12 17:04:03 +08:00

1 line
9.1 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["member/fans/endorsement"],{"02f8":function(t,e,n){"use strict";n.r(e);var i=n("8e8d"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},1259:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("ec76");i(n("3240"));var o=i(n("28cc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"28cc":function(t,e,n){"use strict";n.r(e);var i=n("5291"),o=n("02f8");for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("e31e");var a=n("828b"),r=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},5291:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.CashData.isShowDistributionButton||t.isShowBtn?t.sprintf(t.__("我是%s"),t.UserInfo.user_nickname):null),i=t.CashData.isShowDistributionButton||t.isShowBtn?t.sprintf(t.__("我为%s代言"),t.StoreName):null,o=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null!=t.ProductInfo?t.__("为您推荐"):null,s=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null!=t.ProductInfo?t.__("¥"):null,a=(t.CashData.isShowDistributionButton||t.isShowBtn)&&t.RuleEnabled&&0==t.flag?t.__("推广规则"):null,r=(t.CashData.isShowDistributionButton||t.isShowBtn)&&t.RuleEnabled&&0==t.flag?t.sprintf(t.__("当你的粉丝在店铺内支付订单后,订单中的所有商品,都有相应的收益比例:一级粉丝 %s%% ,二级粉丝 %s%% 。将支付订单金额和收益比例相乘后,累计计算出你此单的总收益。* 注: - 不计算收益的内容运费、优惠券、关税以及收益比例为0的商品"),t.Level1Discount,t.Level2Discount):null,u=(t.CashData.isShowDistributionButton||t.isShowBtn)&&t.RuleEnabled&&0==t.flag?t.__(" - 如果发生了退货退款,需要按照实际退货数量对收益进行相应的扣除;- 按照国家法律规定,当你的月累计收入达到相关税金起征点后,商家会为你代缴税款,你的收益将是税后收入;"):null,l=!t.CashData.isShowDistributionButton&&!t.isShowBtn||t.RuleEnabled&&0==t.flag?null:t.__("推广规则"),f=!t.CashData.isShowDistributionButton&&!t.isShowBtn||t.RuleEnabled&&0==t.flag?null:t.__("成功邀请一位好友,可获积分奖励:"),h=!t.CashData.isShowDistributionButton&&!t.isShowBtn||t.RuleEnabled&&0==t.flag?null:t.__("枚"),c=!t.CashData.isShowDistributionButton&&!t.isShowBtn||t.RuleEnabled&&0==t.flag?null:t.__("当好友产生消费时,再获得相应佣金奖励"),d=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null==t.ProductInfo&&t.isShowBtn&&t.CashData.isShowDistributionButton?t.__("我也要代言"):null,p=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null!=t.ProductInfo&&t.isShowBtn?t.__("我也要推广"):null,_=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null==t.ProductInfo&&0==t.isShowBtn&&t.CashData.isShowDistributionButton?t.__("分享赚钱"):null,m=0==t.CashData.isShowDistributionButton&&0==t.isShowBtn?t.__("对不起,您现在还没有分销权限"):null,g=0==t.CashData.isShowDistributionButton&&0==t.isShowBtn?t.__("多多购物有助于获取权限哦。"):null;t.$mp.data=Object.assign({},{$root:{m0:n,m1:i,m2:o,m3:s,m4:a,m5:r,m6:u,m7:l,m8:f,m9:h,m10:c,m11:d,m12:p,m13:_,m14:m,m15:g}})},o=[]},"8e8d":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),s=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{options:{},invite_qrcode:"",UserInfo:{},UserBase:{},isShowBtn:!1,ProductInfo:null,isShowMag:!1,Level1Discount:0,Level2Discount:0,Level3Discount:0,imgUrl:"",ProductUrl:"",StoreName:"",StoreLogo:"",buyname:"",PromotionRule:"",htmlString:"",RuleEnabled:!0,flag:!0,CashData:{},shareData:{},PageQRCodeInfo:{Path:"",IsShare:!1,IsShareBox:!1,IsJT:!1}}},components:{shareBoxMp:function(){n.e("components/share-box-mp").then(function(){return resolve(n("75dd"))}.bind(null,n)).catch(n.oe)},shareBoxApp:function(){n.e("components/share-box-app").then(function(){return resolve(n("6802"))}.bind(null,n)).catch(n.oe)}},computed:(0,s.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(e){t.setNavigationBarTitle({title:this.__("我要代言")});var n=this;this.getPlantformInfo((function(t){n.setData({StoreName:t.name,StoreLogo:t.logo,Level1Discount:n.plantformInfo.plantform_fx_cps_rate_1,Level2Discount:n.plantformInfo.plantform_fx_cps_rate_2,imgUrl:n.plantformInfo.logo})})),this.setData({options:e}),n.$.isNull(e.type)?this.setData({ProductUrl:"/pages/product/detail",buyname:n.__("去购买")}):this.setData({ProductUrl:"/pages/product/detail",buyname:n.__("去预约")});n=this;n.$.isNull(this.userInfo)?this.forceUserInfo((function(t){t&&(n.setData({isShowBtn:!n.$.isNull(e.uid)}),n.showButton(),n.getPageInfo(n.$.isNull(e.uid)?n.userInfo.user_id:e.uid))})):(this.setData({isShowBtn:!n.$.isNull(e.uid)}),this.showButton(),this.getPageInfo(n.$.isNull(e.uid)?this.userInfo.user_id:e.uid),n.$.isNull(e.pid)?n.$.setNavigationBarTitle({title:n.__("我要代言")}):(n.$.setNavigationBarTitle({title:n.__("我要推广")}),this.setData({ProductInfo:e}),this.getPlantformInfo((function(t){n.setData({flag:!0,RuleEnabled:t.promotion}),n.htmlString=t.promotion.replace(/\\/g,"").replace(/<img/g,'<img style="display:none;"')}))))},onBackPress:function(){if(this.$refs.shareBoxApp.showBoxView)return this.$refs.shareBoxApp.cancel(),!0},onUnload:function(){this.$refs.shareBoxApp.showBoxView&&this.$refs.shareBoxApp.cancel()},onNavigationBarButtonTap:function(e){0===e.index?this.onShareBox():t.showToast({title:"你点了收藏按钮",icon:"none"})},onShareAppMessage:function(){var t,e;return this.setData({isShowMag:!1}),this.$.isNull(this.ProductInfo)?(t="/member/fans/endorsement?uid="+this.userInfo.user_id,e=this.UserInfo.user_nickname+this.__("偷偷的告诉你,粉丝也能赚钱哦~")):(t="/member/fans/endorsement?pid="+this.ProductInfo.pid+"&pname="+this.ProductInfo.pname+"&pprice="+this.ProductInfo.pprice+"&ppic="+this.ProductInfo.ppic+"&uid="+this.userInfo.user_id+"&type="+this.ProductInfo.type,e=this.__("我发现这个商品很好,非常适合你哦!")),{title:e,desc:e,path:t}},methods:r(r({},(0,s.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{showButton:function(){this.userInfo.user_id;this.setData({CashData:{isShowDistributionButton:!0}})},share:function(){this.getPageInfo(this.userInfo.user_id),this.setData({isShowBtn:!1})},getPageInfo:function(t){var e=this,n={user_id:t,path:"pages/index/index?uid="+t,width:430},i=e.$.sprintf("%s/h5/pages/index/index?uid=%d",e.Config.SiteUrl,t);i=e.$.sprintf("%s/pages/index/index?uid=%d",e.Config.SiteUrl,t),n["poster_type"]=2,n["path"]=i,e.$.request({url:this.Config.URL.fx.poster,data:n,method:"POST",success:function(t,n,i,o){200==n?e.setData({invite_qrcode:t.qrcode,Level1Discount:t.plantform_fx_cps_rate_1,Level2Discount:t.plantform_fx_cps_rate_2,Level3Discount:t.plantform_fx_cps_rate_3}):e.setData({flag:!1,ispage:!1})}}),e.$.request({url:this.Config.URL.user.overview,data:n,success:function(t,n,i,o){200==n&&e.setData({UserInfo:t.member_info,UserBase:t.base})}})},closeMsk:function(){this.setData({isShowMag:!1})},onShareBox:function(t){var e,n,i=this.$.sprintf("%s/h5/pages/index/index?uid=%d",this.Config.SiteUrl,this.userInfo.user_id);i=this.$.sprintf("%s/pages/index/index?uid=%d",this.Config.SiteUrl,this.userInfo.user_id),this.$.isNull(this.ProductInfo)?("/member/fans/endorsement?uid="+this.userInfo.user_id,e=this.userInfo.user_nickname+this.__("偷偷的告诉你,粉丝也能赚钱哦~"),n=this.StoreLogo):("/member/fans/endorsement?pid="+this.ProductInfo.pid+"&pname="+this.ProductInfo.pname+"&pprice="+this.ProductInfo.pprice+"&ppic="+this.ProductInfo.ppic+"&uid="+this.userInfo.user_id+"&type="+this.ProductInfo.type,e=this.__("我发现这个商品很好,非常适合你哦!"),n=this.ProductInfo.ppic),this.setData({shareData:{shareTitle:e,shareText:e,href:i,image:n,price:0}}),this.$refs.shareBoxMp.show()},cancelShare:function(t){},showCodeImg:function(t){},shareQRCode:function(t){},saveImg:function(t){},previewImg:function(){this.$.previewImage({current:this.invite_qrcode,urls:[this.invite_qrcode]})}})};e.default=u}).call(this,n("df3c")["default"])},af8c:function(t,e,n){t.exports={theme_bg:"#f30213"}},e31e:function(t,e,n){"use strict";var i=n("af8c"),o=n.n(i);o.a}},[["1259","common/runtime","common/vendor"]]]);