java-mall-app/unpackage/dist/build/mp-weixin/member/fans/fansrank.js
2024-11-01 16:35:40 +08:00

1 line
8.3 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/fansrank"],{"311c":function(t,n,o){t.exports={theme_bg:"#f30213"}},"4d2b":function(t,n,o){"use strict";(function(t){var e=o("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(o("7ca3")),s=o("8f59");function a(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),o.push.apply(o,e)}return o}function r(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?a(Object(o),!0).forEach((function(n){(0,i.default)(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))}))}return t}var u={data:function(){return{options:{},invite_info:{},UserInfo:{},isShowBtn:!1,ProductInfo:null,isShowMag:!1,Level1Discount:0,Level2Discount:0,imgUrl:"",ProductUrl:"",StoreName:"",StoreLogo:"",buyname:"",PromotionRule:"",htmlString:"",RuleEnabled:!0,flag:!0,CashData:{},shareData:{}}},components:{shareBoxMp:function(){o.e("components/share-box-mp").then(function(){return resolve(o("49ce"))}.bind(null,o)).catch(o.oe)},shareBoxApp:function(){o.e("components/share-box-app").then(function(){return resolve(o("68b1"))}.bind(null,o)).catch(o.oe)}},computed:(0,s.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(n){t.setNavigationBarTitle({title:this.__("粉丝排行榜")});var o=this;this.getPlantformInfo((function(t){o.setData({StoreName:t.name,StoreLogo:t.logo})})),this.setData({options:n}),o.$.isNull(n.type)?this.setData({ProductUrl:"/pages/product/detail",buyname:"去购买"}):this.setData({ProductUrl:"/pages/product/detail",buyname:"去预约"}),o.$.isNull(this.userInfo)?this.forceUserInfo((function(t){t&&(o.setData({isShowBtn:!o.$.isNull(n.uid)}),o.showButton(),o.getPageInfo(o.$.isNull(n.uid)?o.userInfo.user_id:n.uid))})):(this.setData({isShowBtn:!o.$.isNull(n.uid)}),this.showButton(),this.getPageInfo(o.$.isNull(n.uid)?this.userInfo.user_id:n.uid),o.$.isNull(n.pid)?o.$.setNavigationBarTitle({title:"我要代言"}):(o.$.setNavigationBarTitle({title:"我要推广"}),this.setData({ProductInfo:n}),this.getPlantformInfo((function(t){o.setData({flag:!0,RuleEnabled:t.promotion}),o.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(n){0===n.index?this.onShareBox():t.showToast({title:"你点了收藏按钮",icon:"none"})},methods:r(r({},(0,s.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{showButton:function(){this.userInfo.user_id;this.setData({CashData:{isShowDistributionButton:!0}})},onShareAppMessage:function(){var t,n;return this.setData({isShowMag:!1}),this.$.isNull(this.ProductInfo)?(t="/member/fans/endorsement?uid="+this.UserInfo.Id,n=this.UserInfo.user_nickname+"偷偷的告诉你,粉丝也能赚钱哦~"):(t="/member/fans/endorsement?pid="+this.ProductInfo.pid+"&pname="+this.ProductInfo.pname+"&pprice="+this.ProductInfo.pprice+"&ppic="+this.ProductInfo.ppic+"&uid="+this.UserInfo.Id+"&type="+this.ProductInfo.type,n="我发现这个商品很好,非常适合你哦!"),{title:n,desc:n,path:t}},share:function(){this.getPageInfo(this.userInfo.user_id),this.setData({isShowBtn:!1})},getPageInfo:function(t){var n=this,o={user_id:t,path:"pages/index/index?uid="+t,width:430};n.setData({Level1Discount:this.shopInfo.Level1Discount,Level2Discount:this.shopInfo.Level2Discount,imgUrl:this.shopInfo.ShopConfig.AppIconPath}),n.$.request({url:this.Config.URL.fx.invite,data:o,success:function(t,o,e,i){200==o?n.setData({invite_info:t.invite_info}):n.setData({flag:!1,ispage:!1})}}),n.$.request({url:this.Config.URL.user.overview,data:o,success:function(t,o,e,i){200==o&&n.setData({UserInfo:t.member_info,UserBase:t.base})}})},closeMsk:function(){this.setData({isShowMag:!1})},onShareBox:function(t){var n,o,e="/pages/index/index?uid="+this.userInfo.user_id;this.$.isNull(this.ProductInfo)?("/member/fans/endorsement?uid="+this.userInfo.user_id,n=this.userInfo.user_nickname+"偷偷的告诉你,粉丝也能赚钱哦~",o=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,n="我发现这个商品很好,非常适合你哦!",o=this.ProductInfo.ppic),this.setData({shareData:{shareTitle:n,shareText:n,href:e,image:o}}),this.$refs.shareBoxApp.show()}})};n.default=u}).call(this,o("df3c")["default"])},5822:function(t,n,o){"use strict";var e=o("311c"),i=o.n(e);i.a},"69fa":function(t,n,o){"use strict";(function(t,n){var e=o("47a9");o("90c2");e(o("3240"));var i=e(o("cfd4"));t.__webpack_require_UNI_MP_PLUGIN__=o,n(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},a11a:function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return i})),o.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,o=(t._self._c,t.CashData.isShowDistributionButton||t.isShowBtn?t.sprintf(t.__("我是%s"),t.UserInfo.user_nickname):null),e=t.CashData.isShowDistributionButton||t.isShowBtn?t.sprintf(t.__("我为%s代言"),t.StoreName):null,i=(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.__("推广规则"),h=!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.__("当好友产生消费时,再获得返利奖励"),c=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null==t.ProductInfo&&t.isShowBtn&&t.CashData.isShowDistributionButton?t.__("我也要代言"):null,d=(t.CashData.isShowDistributionButton||t.isShowBtn)&&null!=t.ProductInfo&&t.isShowBtn?t.__("我也要推广"):null,p=(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,b=0==t.CashData.isShowDistributionButton&&0==t.isShowBtn?t.__("多多购物有助于获取权限哦。"):null;t.$mp.data=Object.assign({},{$root:{m0:o,m1:e,m2:i,m3:s,m4:a,m5:r,m6:u,m7:l,m8:h,m9:f,m10:c,m11:d,m12:p,m13:m,m14:b}})},i=[]},cfd4:function(t,n,o){"use strict";o.r(n);var e=o("a11a"),i=o("e654");for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(n,t,(function(){return i[t]}))}(s);o("5822");var a=o("828b"),r=Object(a["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=r.exports},e654:function(t,n,o){"use strict";o.r(n);var e=o("4d2b"),i=o.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(s);n["default"]=i.a}},[["69fa","common/runtime","common/vendor"]]]);