(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/web/web"],{1081:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"web",data:function(){return{url:"",webviewStyles:{progress:{width:"100%",height:"100%"}}}},onLoad:function(e){this.getUrl(unescape(e.url))},onShareAppMessage:function(){var e={path:"/pages/web/web",params:{url:encodeURIComponent(this.url)}};return this.$shareAppMessage(e)},methods:{getUrl:function(e){e=decodeURIComponent(e);var n=e.split("?"),t=n[0],o=n[1]?n[1].split("&"):"";if(o){if(e=t,this.$user.isLogin())for(var r in o){if("visiter_id="==o[r]){var a=this.$store.state.user.accessToken;o[r]+=a||""}var i=this.$store.state.user.info;"visiter_name="==o[r]&&(o[r]+=encodeURIComponent(i?i.nickname:"游客")),"avatar="==o[r]&&(o[r]+=encodeURIComponent(i?i.avatar:""))}var s=getCurrentPages();if(s.length>1){var u=s[s.length-2];if(u.data.goods){var c="",d="";c=u.data.goods,d={pid:c.id,title:c.name,img:c.cover_pic,info:"",price:"￥"+c.price,url:""},"plugins/integral_mall/goods/goods"==u.route&&(d.price="","undefined"!=typeof c.integral&&(d.price+=c.integral+"积分 + "),d.price+="￥"+c.price),"plugins/step/goods/goods"==u.route&&(d.price=c.price),d&&o.push("product="+encodeURIComponent(JSON.stringify(d)))}}e=t+"?"+o.join("&")}this.url=e},load:function(e){console.log("load"),console.log(e)},error:function(e){console.log("error"),console.log(e)}}};n.default=o},"7a83":function(e,n,t){"use strict";t.r(n);var o=t("1081"),r=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},b68d:function(e,n,t){"use strict";(function(e){t("8748");o(t("66fd"));var n=o(t("fa3c"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},d25a:function(e,n,t){},da35:function(e,n,t){"use strict";var o=t("d25a"),r=t.n(o);r.a},dc42:function(e,n,t){"use strict";var o,r=function(){var e=this,n=e.$createElement;e._self._c},a=[];t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}))},fa3c:function(e,n,t){"use strict";t.r(n);var o=t("dc42"),r=t("7a83");for(var a in r)"default"!==a&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t("da35");var i,s=t("f0c5"),u=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,"05a9a396",null,!1,o["a"],i);n["default"]=u.exports}},[["b68d","common/runtime","common/vendor"]]]);