1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cb4e07fe"],{"0c62":function(e,t,i){var o=i("6ee85");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("a22ddc8a",o,!0,{sourceMap:!1,shadowMode:!1})},"172d":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));i("b64b"),i("e9c4"),i("99af"),i("b680");var o={data:function(){return{header:{},goodsData:[],isLoadMore:!0,page:1,goodsDetail:{},ratio_data:{}}},activated:function(){},methods:{getCPSLogin:function(e){var t=this;if(this.page=1,this.isLoadMore=!0,this.goodsData=[],window.localStorage.getItem("CPSHeader")){if(this.header=JSON.parse(window.localStorage.getItem("CPSHeader")),this.header.t+420>Math.round(new Date/1e3))return void("list"===e?this.searchCPSGood():"good"===e?this.getGoodDetail():"link"===e?this.getCPSLink():"bird_link"===e?this.getCPSBirdLink():this.getCPSGood(0,this.datas.list[0].text));window.localStorage.removeItem("CPSHeader")}$http.get("plugin.aggregation-cps.api.web.mergeLogin",{},"加载中").then((function(i){1===i.result?(t.header=i.data.header,window.localStorage.setItem("CPSHeader",JSON.stringify(t.header)),"list"===e?t.searchCPSGood():"good"===e?t.getGoodDetail():"link"===e?t.getCPSLink():"bird_link"===e?t.getCPSBirdLink():t.getCPSGood(0,t.datas.list[0].text)):t.$dialog.alert({message:i.msg})}))},getPDDLogin:function(e,t,i,o){var a=this;$http.fetchUrl("https://v3.biyingniao.com/api/v3/user/is_union_oauth",{params:{platform:t},headers:this.header},"加载中").then((function(s){0===s.code?s.data.is_oauth?"list"===e?a.searchCPSGood():"good"===e?a.getGoodDetail():a.getCPSGood(e,i,o):window.location.href=2==t?s.data.oauth_url_info.url:s.data.oauth_url.url:30004===s.code&&a.getCPSLogin(e,t,i,o)}))},getCPSGood:function(e,t,i){var o=this;if(this.isLoadMore){this.isLoadMore=!1,"more"!==i&&(this.show_page=!1,this.show_text="加载中...");var a="https://v3.biyingniao.com/api/v3/goods/pdd/search";2==this.datas.list[e].is_minApp?a="https://v3.biyingniao.com/api/v3/goods/jd/search":3==this.datas.list[e].is_minApp&&(a="https://v3.biyingniao.com/api/v3/goods/tb/search"),$http.fetchUrl(a,{params:{keyword:1==this.datas.list[e].is_minApp?t:t||"百货",page:this.page},headers:this.header},"加载中").then((function(a){0===a.code?(1===o.page&&o.getRatio(),o.isLoadMore=a.data.has_next,o.goodsData="more"!==i?a.data.data||[]:o.goodsData.concat(a.data.data||[]),o.show_page=!0):30009===a.code||30007===a.code||1e4===a.code?(o.isLoadMore=!0,1==o.datas.list[e].is_minApp?o.getPDDLogin(e,2,t,i):3==o.datas.list[e].is_minApp&&o.getPDDLogin(e,1,t,i)):30004===a.code?o.getCPSLogin(e):(o.isLoadMore=!0,o.show_page=!1,o.show_text="数据报错",o.$dialog.alert({message:a.message}))}))}},searchCPSGood:function(){var e=this;if(this.isLoadMore){this.isLoadMore=!1;var t="https://v3.biyingniao.com/api/v3/goods/pdd/search";"jd"===this.searchActive?t="https://v3.biyingniao.com/api/v3/goods/jd/search":"tb"===this.searchActive&&(t="https://v3.biyingniao.com/api/v3/goods/tb/search");var i={keyword:"pdd"===this.searchActive?this.searchKey:this.searchKey||"百货",page:this.page};!this.searchKey&&this.channel_type&&(i={channel_type:this.channel_type,page:this.page},t="https://v3.biyingniao.com/api/v3/goods/pdd/recommend","jd"===this.searchActive&&(t="https://v3.biyingniao.com/api/v3/goods/jd/jf")),"tb"===this.searchActive&&!this.searchKey&&this.material_id&&(t="https://v3.biyingniao.com/api/v3/goods/tb/matter",i={material_id:this.material_id,page:this.page}),this.searchKey?this.channel_type_name="搜索":this.$route.query.channel_type_name&&(this.channel_type_name="".concat(this.$route.query.channel_type_name).concat("jd"===this.searchActive?"-京东":"tb"===this.searchActive?"-淘宝":"-拼多多")||"商品列表"),this.fun.setWXTitle(this.channel_type_name),this.fun.wxShare("",{},{title:this.channel_type_name}),$http.fetchUrl(t,{params:i,headers:this.header},"加载中").then((function(t){0===t.code?(1===e.page&&e.getRatio(),e.page+=1,e.isLoadMore=t.data.has_next,e.goodsData=e.goodsData.concat(t.data.data||[])):30009===t.code||30007===t.code||1e4===t.code?(e.isLoadMore=!0,"pdd"===e.searchActive?e.getPDDLogin("list",2):"jd"===e.searchActive?e.getCPSLogin("list"):"tb"===e.searchActive&&e.getPDDLogin("list",1)):30004===t.code?e.getCPSLogin("list"):(e.isLoadMore=!0,e.$dialog.alert({message:t.message}))}))}},getGoodDetail:function(){var e=this;$http.fetchUrl("https://v3.biyingniao.com/api/v3/goods/detail",{params:{item_id:this.good.item_id,platform_id:this.good.platform_id,activity_id:this.good.activity_id},headers:this.header},"加载中").then((function(t){0===t.code?(e.goodsDetail=t.data||{},e.fun.wxShare("",{mid:e.fun.getKeyByMid()},{title:e.goodsDetail.title,imgUrl:e.goodsDetail.cover_image,description:e.goodsDetail.title}),e.getRatio()):30009===t.code||30007===t.code||1e4===t.code?30007===t.code?e.getCPSLogin("good"):e.getPDDLogin("good",e.good.platform_id):30004===t.code?e.getCPSLogin("good"):e.$dialog.alert({message:t.message})}))},getCPSLink:function(){var e=this;$http.fetchUrl("https://v3.biyingniao.com/api/v3/popularize/cps",{params:{id:this.id,phone:this.phone},headers:this.header},"加载中").then((function(t){0===t.code?window.location.href=t.data.click_url:e.$dialog.alert({message:t.message})}))},getRatio:function(){var e=this;this.ratio_data&&this.ratio_data.ratio||$http.get("plugin.aggregation-cps.api.setting.index").then((function(t){1==t.result&&(e.ratio_data=t.data,e.ratioCommissionAmount=(e.goodsDetail.discount_price*(e.goodsDetail.tk_rate/100)*.78*.97*(e.ratio_data.ratio/100)).toFixed(2),e.shareCommissionAmount=(e.goodsDetail.discount_price*(e.goodsDetail.tk_rate/100)*.78*.97*(e.ratio_data.agent_ratio/100)).toFixed(2))}))},getCPSBirdLink:function(){window.location.href=decodeURIComponent(this.$route.query.bird_link)+"&token="+this.header.authorization}}}},"6ee85":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"[data-v-340f815d] .van-nav-bar{z-index:2}#cpsDetail .orderNav[data-v-340f815d]{position:fixed;bottom:0;width:100%;height:4.38rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .63rem 0 .8rem;background:#fff}#cpsDetail .orderNav[data-v-340f815d],#cpsDetail .orderNav .leftNav[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#cpsDetail .orderNav .leftNav[data-v-340f815d]{margin-right:.5rem}#cpsDetail .orderNav .leftNav .leftNav_min_right[data-v-340f815d]{margin-left:1.5rem}#cpsDetail .orderNav .leftNav .leftNav_min[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#777}#cpsDetail .orderNav .leftNav .leftNav_min .icon-fontclass-pingfen[data-v-340f815d]{color:#aaa;font-size:1.3rem}#cpsDetail .orderNav .leftNav .leftNav_min img[data-v-340f815d]{width:1.13rem;height:1.13rem}#cpsDetail .orderNav .btnAR[data-v-340f815d],#cpsDetail .orderNav .btnAR .orderNav_right[data-v-340f815d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#cpsDetail .orderNav .btnAR .orderNav_right[data-v-340f815d]{height:3.13rem;background-color:#e64a40;border-radius:0 1.56rem 1.56rem 0;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff}#cpsDetail .orderNav .btnAR .orderNav_right .orderNav_right_bottom[data-v-340f815d]{font-size:.75rem}#cpsDetail .orderNav .btnAR .orderNav_right .orderNav_right_top[data-v-340f815d]{font-size:1rem}#cpsDetail .orderNav .btnAR .orderNav_left[data-v-340f815d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:3.13rem;background-color:#e9c69a;border-radius:1.56rem 0 0 1.56rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#cpsDetail .orderNav .btnAR .orderNav_left .orderNav_left_bottom[data-v-340f815d]{color:#605446;font-size:.75rem}#cpsDetail .orderNav .btnAR .orderNav_left .orderNav_left_top[data-v-340f815d]{font-size:1rem;color:#272727}#cpsDetail .describe[data-v-340f815d]{background-color:#fff;padding-bottom:5.31rem;overflow:hidden}#cpsDetail .describe .describe_top[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.59rem .63rem}#cpsDetail .describe .describe_top span[data-v-340f815d]{font-size:1rem}#cpsDetail .describe .describe_top .describe_top_r[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#666;font-size:.88rem}#cpsDetail .describe .content img[data-v-340f815d]{max-width:100%;height:auto;display:block}#cpsDetail .line[data-v-340f815d]{background:#fafafa;height:.31rem;width:100%}#cpsDetail .storeIn[data-v-340f815d]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;margin-top:.88rem}#cpsDetail .storeIn[data-v-340f815d],#cpsDetail .storeIn .store_right[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}#cpsDetail .storeIn .store_right[data-v-340f815d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}#cpsDetail .storeIn .store_right .evaluate[data-v-340f815d]{width:80%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:.75rem;color:#777}#cpsDetail .storeIn .store_right .storeName[data-v-340f815d]{text-align:left;font-size:14px;margin-bottom:.3rem}#cpsDetail .storeIn .store_right .storeName .btn[data-v-340f815d]{padding:.19rem .47rem;background-color:#f0f0f0;color:#777;font-size:.63rem;border-radius:.5rem}#cpsDetail .storeIn .store_left[data-v-340f815d]{margin-right:.63rem;width:2.75rem;height:2.75rem}#cpsDetail .storeIn .store_left img[data-v-340f815d]{width:100%;height:100%}#cpsDetail .contenBox[data-v-340f815d]{background-color:#fff;padding:1rem .63rem .56rem .63rem}#cpsDetail .contenBox .couponBox[data-v-340f815d]{background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/cps/xqyhq.png);background-repeat:no-repeat;background-size:cover;height:3.5rem;width:100%;margin-top:1.3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fee3b7;padding-left:.59rem;font-size:.75rem;position:relative}#cpsDetail .contenBox .couponBox .time[data-v-340f815d]{text-align:left;font-size:.63rem;color:#afa89d}#cpsDetail .contenBox .couponBox .couponRight[data-v-340f815d]{position:absolute;right:1.25rem;top:.88rem;width:5.13rem;height:1.75rem;background-image:-webkit-gradient(linear,left bottom,left top,from(#eccb97),to(#fee3b7));background-image:-webkit-linear-gradient(bottom,#eccb97,#fee3b7);background-image:linear-gradient(0deg,#eccb97,#fee3b7);border-radius:.88rem;color:#39342e;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#cpsDetail .contenBox .couponBox .dor[data-v-340f815d]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;padding-bottom:.8rem}#cpsDetail .contenBox .couponBox .couponBox_price[data-v-340f815d]{font-size:1.75rem}#cpsDetail .contenBox .goodsDetail[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#cpsDetail .contenBox .goodsDetail .goodsDetail_left[data-v-340f815d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:1rem;color:#272727;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#cpsDetail .contenBox .goodsDetail .goodsDetail_left .shopType[data-v-340f815d]{margin-right:.3rem;background:#bb3e26;padding:2px 3px;color:#fff;text-align:center;line-height:1.2rem;border-radius:.35rem;font-size:12px;display:inline-grid}#cpsDetail .contenBox .goodsDetail .goodsDetail_right[data-v-340f815d]{padding:3px;margin-left:1.16rem;width:4.38rem;background-color:#fee3b7;border-radius:.31rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:10px;word-break:break-all}#cpsDetail .contenBox .goodsPrice[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.7rem}#cpsDetail .contenBox .goodsPrice .goodsPrice_right[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:.5rem;font-size:.75rem;color:#999}#cpsDetail .contenBox .goodsPrice .goodsPrice_left[data-v-340f815d]{color:#e64a40;margin-right:.75rem}#cpsDetail .contenBox .goodsPrice .goodsPrice_left .goodsPrice_left_price[data-v-340f815d]{font-size:2.38rem}#cpsDetail .contenBox .goodsPrice .goodsPrice_left_row[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;color:#e64a40}#cpsDetail .contenBox .goodsPrice .goodsPrice_left_row span[data-v-340f815d]{text-align:left}#cpsDetail .contenBox .goodsPrice .goodsPrice_left_row .original[data-v-340f815d]{text-decoration:line-through;color:#999}#cpsDetail .topimg[data-v-340f815d]{width:100%;min-height:10rem;position:relative}#cpsDetail .topimg .header-box[data-v-340f815d]{position:fixed;width:100%;height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;z-index:5}#cpsDetail .topimg .header-box.hoet[data-v-340f815d]{background:#fff}#cpsDetail .topimg .header-box.hoet .back[data-v-340f815d],#cpsDetail .topimg .header-box.hoet .member[data-v-340f815d]{background:#fff;color:#1f1f1f}#cpsDetail .topimg .back[data-v-340f815d]{left:.63rem}#cpsDetail .topimg .back[data-v-340f815d],#cpsDetail .topimg .member[data-v-340f815d]{background-color:#6d6d6b;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:1.5rem;height:1.5rem;border-radius:50%;color:#fff;position:absolute;top:.63rem;z-index:1}#cpsDetail .topimg .member[data-v-340f815d]{right:.63rem}#cpsDetail .topimg img[data-v-340f815d]{width:100%}#cpsDetail .wrapper[data-v-340f815d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}#cpsDetail .close[data-v-340f815d]{position:absolute;right:5%;top:5%}#cpsDetail .block[data-v-340f815d]{position:relative;width:17.5rem;border-radius:.25rem;background-color:#fff;padding:1.25rem .625rem}#cpsDetail .link_dy[data-v-340f815d]{margin-top:1.0625rem;margin-bottom:1.25rem;overflow:hidden;word-break:break-all;text-align:left;color:#999;font-size:.75rem}",""]),e.exports=t},"7ab9":function(e,t,i){"use strict";i("0c62")},e72b:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.goodsDetail.item_id?i("div",{attrs:{id:"cpsDetail"}},[i("div",{staticClass:"topimg"},[i("div",{staticClass:"header-box set-pc-styleLeft",class:{hoet:e.hoet}},[i("div",{staticClass:"back",on:{click:e.goBack}},[i("i",{staticClass:"iconfont icon-member-left"})]),i("div",{staticClass:"member",on:{click:function(t){return e.gotoUrl("member")}}},[i("i",{staticClass:"iconfont icon-wode-wode"})])]),e.goodsDetail.cover_image?i("van-swipe",{staticClass:"my-swipe",attrs:{autoplay:3e3,"indicator-color":"white"}},[i("van-swipe-item",[i("img",{attrs:{src:e.goodsDetail.cover_image,alt:""}})])],1):e._e()],1),i("div",{staticClass:"contenBox"},[i("div",{staticClass:"goodsPrice"},[i("div",{staticStyle:{display:"flex"}},[i("div",{staticClass:"goodsPrice_left"},[i("span",[e._v("¥")]),i("span",{staticClass:"goodsPrice_left_price"},[e._v(e._s(e.goodsDetail.discount_price))])]),e.goodsDetail.price>e.goodsDetail.discount_price?i("div",{staticClass:"goodsPrice_left_row"},[i("span",[e._v("折后价")]),i("span",{staticClass:"original"},[e._v("原价¥"+e._s(e.goodsDetail.price))])]):e._e()]),i("div",{staticClass:"goodsPrice_right"},[i("span",[e._v("已售 "+e._s(e.goodsDetail.month_sales))])])]),i("div",{staticClass:"goodsDetail"},[i("div",{staticClass:"goodsDetail_left"},[i("div",{staticClass:"shopType"},[e._v(e._s(2==e.goodsDetail.platform_id?"拼多多":1==e.goodsDetail.platform_id?"淘宝":"京东"))]),i("span",[e._v(e._s(e.goodsDetail.title))])]),i("div",{staticClass:"goodsDetail_right"},[i("div",[e._v("预估赠送")]),i("div",{staticStyle:{color:"#e64a40"}},[e._v(e._s(e.ratioCommissionAmount)+e._s(e.ratio_data.ratio_name))])])]),e.goodsDetail.coupon_money>0?i("div",{staticClass:"couponBox"},[i("div",{staticClass:"dor"},[e._v("¥")]),i("span",{staticClass:"couponBox_price"},[e._v(e._s(e.goodsDetail.coupon_money))]),i("div",{staticStyle:{"margin-left":"0.44rem"}},[i("div",{staticStyle:{"text-align":"left"}},[e._v("优惠券")]),i("div",{staticClass:"time"},[e._v(e._s(e.goodsDetail.coupon_starttime)+"~"+e._s(e.goodsDetail.coupon_endtime))])]),i("div",{staticClass:"couponRight",on:{click:e.getCoupon}},[e._v("立即领券")])]):e._e(),i("div",{staticClass:"storeIn"},[i("div",{staticClass:"store_left"},[i("img",{attrs:{src:e.goodsDetail.shop_logo||e.goodsDetail.platform_icon,alt:""}})]),i("div",{staticClass:"store_right"},[i("div",{staticClass:"storeName"},[i("span",[e._v(e._s(e.goodsDetail.shop_name))])]),e.goodsDetail.dsr_info?i("div",{staticClass:"evaluate"},[i("div",[e._v(" 宝贝描述 "),i("span",{staticStyle:{color:"#ff2424"}},[e._v(e._s(e.goodsDetail.dsr_info.descriptionMatch))])]),i("div",[e._v(" 卖家服务 "),i("span",{staticStyle:{color:"#ff2424"}},[e._v(e._s(e.goodsDetail.dsr_info.serviceAttitude))])]),i("div",[e._v(" 物流服务 "),i("span",{staticStyle:{color:"#ff2424"}},[e._v(e._s(e.goodsDetail.dsr_info.deliverySpeed))])])]):e._e()])])]),i("div",{staticClass:"line"}),i("div",{staticClass:"describe"},[i("div",{staticClass:"describe_top"},[i("span",[e._v("宝贝描述")]),i("div",{staticClass:"describe_top_r",on:{click:e.toShowContent}},[e._v(" "+e._s(e.showContent?"收起":"展开")+" "),e.showContent?i("van-icon",{attrs:{name:"arrow-up"}}):e._e(),e.showContent?e._e():i("van-icon",{attrs:{name:"arrow-down"}})],1)]),e.showContent?i("div",{staticClass:"content"},e._l(e.goodsDetail.images,(function(e,t){return i("img",{key:t,attrs:{src:e,alt:""}})})),0):e._e()]),i("div",{staticClass:"orderNav set-pc-styleLeft"},[i("div",{staticClass:"leftNav"},[i("div",{staticClass:"leftNav_min",on:{click:function(t){return e.gotoUrl("home")}}},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/cps/icon-xiaoxi@2x@2x.png",alt:""}}),e._v(" 首页 ")])]),i("div",{staticClass:"btnAR"},[i("div",{staticClass:"orderNav_left",on:{click:e.shareWeixin}},[i("div",{staticClass:"orderNav_left_top"},[e._v("立即分享")]),Number(e.shareCommissionAmount)>0?i("div",{staticClass:"orderNav_left_bottom"},[e._v("收益"+e._s(e.shareCommissionAmount))]):e._e()]),i("div",{staticClass:"orderNav_right",on:{click:e.getCoupon}},[i("div",{staticClass:"orderNav_right_top"},[e._v(e._s(e.goodsDetail.coupon_money>0?"立即领券":"立即购买"))]),e.goodsDetail.coupon_money>0?i("div",{staticClass:"orderNav_right_bottom"},[e._v("省"+e._s(e.goodsDetail.coupon_money)+"元")]):e._e()])])]),i("van-overlay",{attrs:{show:e.show_tb_popup},on:{click:function(t){e.show_tb_popup=!1}}},[i("div",{staticClass:"wrapper",on:{click:function(e){e.stopPropagation()}}},[i("div",{staticClass:"block"},[i("div",{staticClass:"detail"},[i("div",{staticClass:"flex"},[i("img",{staticStyle:{width:"2.75rem",height:"2.75rem","border-radius":"0.125rem"},attrs:{src:e.goodsDetail.cover_image}}),i("span",{staticClass:"name",staticStyle:{"margin-left":"0.25rem","margin-right":"1.2rem","text-align":"left"}},[e._v(e._s(e.goodsDetail.title))])])]),i("div",{staticClass:"close",on:{click:function(t){e.show_tb_popup=!1}}},[i("van-icon",{attrs:{name:"cross"}})],1),i("p",{staticClass:"link_dy"},[e._v(e._s(e.goodsDetail.tkl))]),i("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.goodsDetail.tkl,expression:"goodsDetail.tkl",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],staticStyle:{position:"relative",bottom:"5%",left:"0",right:"0"}},[i("van-button",{staticStyle:{width:"100%",border:"none"},attrs:{color:"#F42121"}},[e._v("一键复制,打开淘宝app领券")])],1)])])])],1):e._e()},a=[],s=(i("e7e5"),i("d399")),n=(i("e9c4"),i("14d9"),i("172d")),r={mixins:[n["a"]],data:function(){return{good:{},hoet:!1,showContent:!0,ratioCommissionAmount:0,shareCommissionAmount:0,deep_link:"",show_tb_popup:!1}},activated:function(){this.good=this.$route.query,this.showContent=!0,this.getCPSLogin("good"),window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{onCopy:function(e){Object(s["a"])({message:"口令已复制,打开淘宝app领券!",duration:1e3}),this.show_tb_popup=!1},getCoupon:function(){if(this.fun.isCPS()){var e={deep_link:this.goodsDetail.deep_link,coupon_click_url:this.goodsDetail.coupon_click_url,item_id:this.goodsDetail.item_id},t=this.goodsDetail.coupon_click_url;try{"ios"===this.fun.isIosOrAndroid()?t.indexOf("taobao")>-1?IOStoTB(JSON.stringify(e)):t.indexOf("yangkeduo")>-1?IOStoPDD(JSON.stringify(e)):IOStoJD(JSON.stringify(e)):t.indexOf("taobao")>-1?androidTB(this.goodsDetail.deep_link,this.goodsDetail.coupon_click_url,this.goodsDetail.item_id):t.indexOf("yangkeduo")>-1?androidToPDD(this.goodsDetail.deep_link,this.goodsDetail.coupon_click_url,this.goodsDetail.item_id):androidToJD(this.goodsDetail.deep_link,this.goodsDetail.coupon_click_url,this.goodsDetail.item_id)}catch(i){1==this.goodsDetail.platform_id&&this.goodsDetail.coupon_money>0?this.show_tb_popup=!0:window.location.href=this.goodsDetail.coupon_click_url}}else 1==this.goodsDetail.platform_id&&this.goodsDetail.coupon_money>0?this.show_tb_popup=!0:window.location.href=this.goodsDetail.coupon_click_url},toShowContent:function(){this.showContent=!this.showContent},shareWeixin:function(){7==this.fun.getTyep()||this.fun.isCPS()?this.appShare():5!=this.fun.getTyep()&&this.$dialog.alert({message:"请点击右上角微信分享"})},appSharesinit:function(){var e=this;$http.post("member.member.wxJsSdkConfig",{url:document.location.href}).then((function(t){1==t.result&&e.appShare(t.data)}))},appShare:function(e){var t=window.localStorage.getItem("uid"),i=document.location.href+"&share_tag=2";i=this.fun.isMid(i,t);var o=this.goodsDetail.title,a=this.goodsDetail.cover_image,s=this.goodsDetail.title,n={title:o,desc:s,link:i,imgUrl:a};this.fun.isCPS()?"ios"===this.fun.isIosOrAndroid()?shareByH5IOS({body:"shareByH5IOS",json:JSON.stringify(n)}):shareByH5Android(JSON.stringify(n)):YDB.Share(o,s,a,i,"Sharesback")},goBack:function(){this.fun.isCPS()?"ios"===this.fun.isIosOrAndroid()?routeBackUrlIOS({body:"routeBackUrlIOS"}):routeBackUrlAndroid():window.history.length<=1?this.$router.push(this.fun.getUrl("home",{})):this.$router.go(-1)},gotoUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$router.push(this.fun.getUrl(e,t))},handleScroll:function(){var e=document.documentElement.scrollTop||document.body.scrollTop;this.hoet=!(e<=40)}},components:{}},l=r,d=(i("7ab9"),i("2877")),c=Object(d["a"])(l,o,a,!1,null,"340f815d",null);t["default"]=c.exports}}]); |