(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-merchant-details"],{"1b04":function(t,e,a){"use strict";a.r(e);var i=a("7ee1"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"273c":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.tipnews[data-v-27ff11fb]{height:15vw;position:fixed;color:#fff;z-index:999999;top:24vw}.hongren[data-v-27ff11fb]{bottom:auto;box-shadow:0 1px 2px rgba(26,26,26,.1)}.head[data-v-27ff11fb]{display:-webkit-box;display:-webkit-flex;display:flex;background-color:#e71d36;width:100vw;height:100px;padding:12px 3vw}.head .logo[data-v-27ff11fb]{height:20vw;text-align:center}.head .logo img[data-v-27ff11fb]{width:20vw;height:20vw;margin-right:3vw;border-radius:1.5vw}.head .conpany .title[data-v-27ff11fb]{color:#fff;font-size:5vw;line-height:12vw}.head .conpany .title .name[data-v-27ff11fb]{vertical-align:middle}.head .conpany .title .renzheng[data-v-27ff11fb]{width:14vw;vertical-align:middle;margin-left:1vw}.head .conpany .num[data-v-27ff11fb]{color:#fff;font-size:3.5vw}.hongren-content[data-v-27ff11fb]{position:fixed;left:0;right:0;bottom:0;padding-bottom:20vw;overflow-y:scroll;overflow-x:hidden;background:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.content[data-v-27ff11fb]{text-align:right;padding-right:8vw}.action.avatar[data-v-27ff11fb]{text-align:right}.action[data-v-27ff11fb]{-webkit-box-flex:3;-webkit-flex:3;flex:3}\n/* 联系客服 */.customer[data-v-27ff11fb]{position:fixed;bottom:6vw;left:0;right:0;height:10vw;line-height:10vw;font-size:4vw;text-align:center;z-index:210}.customer .bottombtn[data-v-27ff11fb]{width:60vw;height:100%;margin:auto;color:#fff;border-radius:10vw;box-shadow:0 0 0 4px hsla(0,0%,87.1%,.3)}.customer .bottombtn .offerbtn[data-v-27ff11fb]{width:50%;float:left;background-color:#ffb759;border-top-left-radius:10vw;border-bottom-left-radius:10vw}.customer .bottombtn .custbtn[data-v-27ff11fb]{width:50%;float:left;background-color:#e71d36;border-top-right-radius:10vw;border-bottom-right-radius:10vw}\n/* 联系客服弹框*/.cu-modal[data-v-27ff11fb]{z-index:210}.cu-dialog[data-v-27ff11fb]{background-color:initial;width:auto;padding:4vw;height:auto}.cu-bar .action:first-child>uni-text[class*="cuIcon-"][data-v-27ff11fb]{margin:0}.cu-bar.tabbar .action [class*="cuIcon-"][data-v-27ff11fb]{width:auto}.cuIcon-close[data-v-27ff11fb]:before{background-color:rgba(0,0,0,.5);padding:1.5vw;border-radius:50%}.wechat[data-v-27ff11fb]{width:200px;height:200px}.tip[data-v-27ff11fb]{color:#fff;margin:2vw 0;font-size:3.4vw}.member[data-v-27ff11fb]{width:100vw;padding:3vw}.member .item[data-v-27ff11fb]{width:100%;height:24vw;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:3vw;background-color:#fdfdfd;padding:2vw;border-radius:1.5vw;box-shadow:0 1px 2px rgba(26,26,26,.1)}.member .item .img[data-v-27ff11fb]{width:20vw;height:20vw;border-radius:1.5vw;margin-right:2vw}.member .item .img uni-image[data-v-27ff11fb]{width:100%;height:100%;border-radius:1.5vw}.member .item .count[data-v-27ff11fb]{width:68vw;height:20vw}.member .item .name[data-v-27ff11fb]{font-size:3.5vw;height:10vw;padding:1vw 0;line-height:4vw;width:100%}.member .item .fans[data-v-27ff11fb]{font-size:3vw;line-height:5vw}.member .item .fans .nowprice[data-v-27ff11fb]{font-size:4vw;font-weight:700;margin-right:2vw}.member .item .fans .totalprice[data-v-27ff11fb]{font-size:3vw;text-decoration:line-through}.member .item .time[data-v-27ff11fb]{font-size:2.5vw;line-height:4vw}.member .item .time .commission[data-v-27ff11fb]{margin-right:2vw}',""]),t.exports=e},3965:function(t,e,a){"use strict";a.r(e);var i=a("5a96"),n=a("1b04");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("b5fd");var o,r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"27ff11fb",null,!1,i["a"],o);e["default"]=c.exports},"5a96":function(t,e,a){"use strict";var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("uni-top-bar",{attrs:{title:t.toptitle}}),a("v-uni-view",{staticClass:"tipnews"},[t.tip?a("v-uni-view",{staticClass:"animated1 fadeInRight"},[a("v-uni-view",{staticClass:"cuIcon-notificationfill"}),a("span",[a("span",{staticClass:"cor-ff"},[t._v(t._s(t.message.minute)+t._s(t.message.timename)+"前")]),a("span",[t._v("红人"+t._s(t.message.celebrity))]),t._v("查看了"),a("span",[t._v("商家"+t._s(t.message.merchant))])])],1):t._e()],1),a("v-uni-view",{staticClass:"hongren",style:{top:t.height+43+"px"}},[a("v-uni-view",{staticClass:"head"},[a("v-uni-view",{staticClass:"logo"},[a("img",{attrs:{src:t.merchant["logo"]}})]),a("v-uni-view",{staticClass:"conpany"},[a("v-uni-view",{staticClass:"title"},[a("span",{staticClass:"name"},[t._v(t._s(t.merchant.title))]),1==t.merchant.attestatio?a("img",{staticClass:"renzheng",attrs:{src:"https://www.hongrensutui.com/h5/img/huangv2.png",mode:"widthFix"}}):t._e(),2==t.merchant.attestatio?a("img",{staticClass:"renzheng",attrs:{src:"https://www.hongrensutui.com/h5/img/lanv2.png",mode:"widthFix"}}):t._e()]),a("v-uni-view",{staticClass:"num"},[t._v("商品数量："+t._s(t.goods.length))])],1)],1)],1),a("v-uni-view",{staticClass:"hongren-content",style:{top:t.height+143+"px"}},[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"cu-list menu sm-border"},[a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"text-grey"},[t._v("谁看过他")])],1),a("v-uni-view",{staticClass:"action avatar"},[a("v-uni-view",{staticClass:"cu-avatar-group"},t._l(t.yxhz,(function(t,e){return a("v-uni-view",{key:e,staticClass:"cu-avatar round sm",style:{backgroundImage:"url("+t.avatar+")"}})})),1),a("v-uni-text",{staticClass:"text-grey text-sm"},[t._v("10+")])],1)],1),a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"text-grey"},[t._v("商家分类")])],1),a("v-uni-view",{staticClass:"action"},t._l(t.merchant.category,(function(e,i){return a("v-uni-view",{key:i,staticClass:"cu-tag round bg-grey light"},[t._v(t._s(e))])})),1)],1),a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"text-grey"},[t._v("拥有平台")])],1),a("v-uni-view",{staticClass:"action"},[t._l(t.merchant.platform,(function(e,i){return""!=t.merchant.platform&&t.merchant.platform.length>0?a("v-uni-view",{key:i,staticClass:"cu-tag round bg-grey light"},[t._v(t._s(e))]):t._e()})),t.merchant.platform&&t.merchant.platform.length?a("v-uni-view",{staticClass:"cu-tag round bg-grey light"},[t._v("实体")]):t._e()],2)],1),a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"text-grey"},[t._v("对接商务")])],1),a("v-uni-view",{staticClass:"action"},[t._v(t._s(t.merchant.contact))])],1),t.merchant.mobile?a("v-uni-view",{staticClass:"cu-item"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-text",{staticClass:"text-grey"},[t._v("联系电话")])],1),a("v-uni-view",{staticClass:"action"},[t._v(t._s(t._f("intercept")(t.merchant.mobile)))])],1):t._e(),a("v-uni-view",{staticClass:"member"},[t._l(t.goods,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item"},[a("v-uni-view",{staticClass:"img"},[a("v-uni-image",{staticClass:"wedding_img",attrs:{src:e["images"],mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"count"},[a("v-uni-view",{staticClass:"name ellipsis2"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"fans"},[a("span",{staticClass:"nowprice cor-e8"},[t._v("￥"+t._s(e.nowprice))]),e.nowprice!=e.totalprice?a("span",{staticClass:"text-gray"},[t._v("原价:")]):t._e(),e.nowprice!=e.totalprice?a("span",{staticClass:"totalprice text-gray"},[t._v("￥"+t._s(e.totalprice))]):t._e()]),a("v-uni-view",{staticClass:"time"},[a("span",{staticClass:"cu-tag round sm light bg-red commission"},[t._v("佣金比:"+t._s(e.commission))]),e.starttime&&!e.endtime?a("span",{staticClass:"timecycle text-grey"},[t._v("开始时间:"+t._s(e.starttime))]):t._e(),!e.starttime&&e.endtime?a("span",{staticClass:"timecycle text-grey"},[t._v("结束时间:"+t._s(e.endtime))]):t._e(),e.starttime&&e.endtime?a("span",{staticClass:"timecycle text-grey"},[t._v("时间周期:"+t._s(e.starttime)+" ~ "+t._s(e.endtime))]):t._e()])],1)],1)})),""==t.goods&&t.goods.length<=0?a("v-uni-view",{staticClass:"no-data"},[t._v("暂无商品信息")]):t._e()],2)],1)],1)],1),a("v-uni-view",{staticClass:"cu-modal",class:"Image"==t.modalName?"show":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hideModal.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"cu-dialog"},[a("v-uni-view",{staticClass:"bg-img"},[a("img",{staticClass:"wechat",attrs:{src:"https://www.hongrensutui.com/h5/img/wechat.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"tip"},[t._v("咨询微信：zhuoyu10086")]),a("v-uni-view",{staticClass:"cu-bar justify-center text-white"},[a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hideModal.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"cuIcon-close"})],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:"customer round shadow text-center"},[a("v-uni-view",{staticClass:"bottombtn clearfix"},[a("v-uni-view",{staticClass:"offerbtn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navToDetailPage("user/atte")}}},[t._v("商家入驻")]),a("v-uni-view",{staticClass:"custbtn",attrs:{"data-target":"Image"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showModal.apply(void 0,arguments)}}},[t._v("联系客服")])],1)],1)],1)},s=[];a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}))},"7ee1":function(t,e,a){"use strict";(function(t){var i=a("ee27");a("d3b7"),a("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("9dcd")),s={components:{uniTopBar:n.default},data:function(){return{modalName:null,merchant:"",goods:"",yxhz:"",toptitle:"商家详情",userInfo:[],merchantid:"",codetime:2e3,tip:!1,message:"",messagelist:"",height:"",backurl:location.href}},filters:{intercept:function(t){var e="";return t&&t.length>1&&(e=t[0]+t[1]+t[2]+"****"+t[7]+t[8]+t[9]+t[10]),e}},onLoad:function(t){var e=this;this.height=this.StatusBar,t.id&&(e.merchantid=t.id),t.invite&&(uni.getStorageSync("invite")||uni.setStorageSync("invite",t.invite)),t.code?uni.getStorage({key:"invite",success:function(a){uni.request({url:"https://www.hongrensutui.com/api/index/user",data:{code:t.code,invite:a.data},method:"POST",success:function(t){uni.removeStorageSync("invite"),e.userInfo=t.data.data.info,uni.setStorageSync("userInfo",t.data.data.info),e.getmerchant()}})},fail:function(a){uni.request({url:"https://www.hongrensutui.com/api/index/user",data:{code:t.code},method:"POST",success:function(t){e.userInfo=t.data.data.info,uni.setStorageSync("userInfo",t.data.data.info),e.getmerchant()}})}}):uni.getStorage({key:"userInfo",success:function(t){""!=t.data&&null!=t.data?e.updateuser(t.data.id):wxlogin(e.backurl)},fail:function(t){wxlogin(e.backurl)}}),e.getRandomArbitrary(0,49),e.getmessage(),e.timerInt=setInterval((function(){if(e.codetime--,e.message=e.messagelist[e.getRandomArbitrary(0,50)],e.message.celebrity&&e.message.celebrity.length>1&&(e.message.celebrity=e.message.celebrity[0]+e.message.celebrity[1]+"***"),e.message.merchant&&e.message.merchant.length>1&&(e.message.merchant=e.message.merchant[0]+e.message.merchant[1]+"***"),e.tip=!e.tip,0==e.codetime)return clearInterval(e.timerInt),void(e.codetime=2e3)}),4e3)},methods:{updateuser:function(t){var e=this;t&&uni.request({url:"https://www.hongrensutui.com/api/index/userinfo",data:{id:t},method:"POST",success:function(t){t.data.data.info?(e.userInfo=t.data.data.info,uni.setStorageSync("userInfo",t.data.data.info),e.getmerchant()):wxlogin(e.backurl)}})},getRandomArbitrary:function(t,e){return Math.floor(Math.random()*(e-t)+t)},getmessage:function(){var t=this;uni.request({url:"https://www.hongrensutui.com/api/index/message",method:"POST",success:function(e){t.messagelist=e.data.data.list,t.message=t.messagelist[t.getRandomArbitrary(0,50)],t.message.celebrity&&t.message.celebrity.length>1&&(t.message.celebrity=t.message.celebrity[0]+t.message.celebrity[1]+"***"),t.message.merchant&&t.message.merchant.length>1&&(t.message.merchant=t.message.merchant[0]+t.message.merchant[1]+"***"),t.tip=!t.tip}})},getmerchant:function(){var t=this;uni.getStorage({key:"userInfo",success:function(e){t.userInfo=e.data,uni.request({url:"https://www.hongrensutui.com/api/index/onemerchant",data:{id:t.merchantid},method:"POST",success:function(a){t.merchant=a.data.data.list,t.getCewebrityyxhz(t.merchant.people),t.share(t.merchant,e.data.company_id,e.data.id),uni.request({url:"https://www.hongrensutui.com/api/index/getgoods",data:{mid:e.data.data.list.mid},method:"POST",success:function(e){t.goods=e.data.data.list}})}})},fail:function(e){t.userInfo=e.data,uni.request({url:"https://www.hongrensutui.com/api/index/onemerchant",data:{id:t.merchantid},method:"POST",success:function(a){t.merchant=a.data.data.list,t.getCewebrityyxhz(t.merchant.people),t.share(t.merchant,0,0),uni.request({url:"https://www.hongrensutui.com/api/index/getgoods",data:{mid:e.data.data.list.mid},method:"POST",success:function(e){t.goods=e.data.data.list}})}})}})},getCewebrityyxhz:function(e){var a=this;uni.request({url:"https://www.hongrensutui.com/api/index/getCewebrityyxhz",data:{people:e},method:"POST",success:function(e){t("log",e.data.data.info," at pages/merchant/details.vue:375"),a.yxhz=e.data.data.info,a.yxhznum=e.data.data.info[0]["tal"]}})},showModal:function(t){this.modalName=t.currentTarget.dataset.target},hideModal:function(t){this.modalName=null},navToDetailPage:function(t){uni.navigateTo({url:"/pages/"+t})},share:function(t){function e(e,a,i){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e,a){var i=location.href,n=t.title+" | 红人速推 | 网红直播带货一站式服务平台",s="红人速推就是网红多 商家多，直播带货就上红人速推。",o=t.logo,r=i;if(e>0)r=r+"&invite="+a;share(i,n,s,o,r)}))}};e.default=s}).call(this,a("0de9")["log"])},"81e5":function(t,e,a){var i=a("273c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("0815e93b",i,!0,{sourceMap:!1,shadowMode:!1})},b5fd:function(t,e,a){"use strict";var i=a("81e5"),n=a.n(i);n.a}}]);