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/1/GJodaM3uB0sXt+J2a6A43aX8U2XpY2ON2QsqzZ7F0fbKVn3+J8AA0aCVg5Vm8vsAAAAASUVORK5CYII="},103:function(e,t,a){"use strict";var i=a(44);a.n(i).a},104:function(e,t,a){var i=a(41);(e.exports=a(10)(!1)).push([e.i,".page-yahtzee{position:fixed;top:0;right:0;bottom:0;left:0;text-align:center;background:url("+i(a(105))+') 0 0/cover repeat-x}.page-yahtzee:before{content:"";display:block;width:100%;height:11.30667rem;background:url('+i(a(106))+") 0 0/cover repeat-x}.page-yahtzee .box-shop-wrap{background:#986145;border:1px solid #592913;border-radius:.512rem;padding:.192rem;margin:-3.2rem .32rem 0}.page-yahtzee .box-shop{background:#efe2bf;border:1px solid #592913;border-radius:.512rem;min-height:19.2rem}.page-yahtzee h1{font-size:1.024rem;color:#986145;padding:.448rem 0}.page-yahtzee .list-gold{display:flex;flex-wrap:wrap;margin-left:.384rem}.page-yahtzee .gold-item{width:4.39467rem;height:6.12267rem;margin:0 .384rem .512rem 0;background:url("+i(a(107))+") 50%/100% no-repeat}.page-yahtzee .gold-item:hover{opacity:.8}.page-yahtzee .gold-item .item-bd{color:#fff;font-weight:700;font-size:.768rem;height:4.26667rem}.page-yahtzee .gold-item .item-bd img{width:1.92rem;height:1.92rem;margin:.512rem 0}.page-yahtzee .gold-item .item-ft{display:flex;height:1.92rem;color:#5e4542;font-size:.64rem;align-items:center;justify-content:center}.page-yahtzee .gold-item .item-ft img{width:.78933rem;height:.576rem;margin:0 .192rem}",""])},105:function(e,t,a){e.exports=a.p+"img/cf841ad67168ac309138651a5814358b.png"},106:function(e,t,a){e.exports=a.p+"img/e10977cc6bee7e4b53fa8ba01f13fa61.png"},107:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM4AAAEfCAYAAAAJCvn6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eH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A46zn57scVp9uQH6RwWpu/Ph/Ov3sh/9Ab2XucS2mcXnoDVA0zvzvnphdyZn4zU3uPX/fH6TfPftiYjv5J49Hz6apzZua8owXJmRNnVl9taq30fm/8K6F+1ckieiFb+OiDa2FwqD/sf2jPBtxSuVVzq7Y5b9XOvvXXMPPbt/Lve36erjav5cPJnEhjMo2HsxUv/fNq+OTqjbBvbHcY3NEvHOFsm3D+e+16+P2vT4Qzf3gnH82pFM2PGgulVdu8mMaraRyrTRa896/wwT+uhPEjB8MThw+EL4/tCcMjg6Gn1384YOvIJr2yCYCPZ/8dLp57P1xIt2arfuF5qt7GcnNTk08XPddUGtMOKYSX0pXmnhaaXTpeSuP5UJ9tg20oO/efL4qm6Fbtng3TOJTGD9KYSOMbaRxMo89xZQspp3E5jT+Hpf8Q8HoK5lKrDf4vwADurFE6hht8+AAAAABJRU5ErkJggg=="},111:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-yahtzee"},[i("div",{staticClass:"box-shop-wrap"},[i("div",{staticClass:"box-shop"},[i("h1",[e._v("商城")]),e._v(" "),i("ul",{staticClass:"list-gold"},e._l(e.shopList,function(t,n){return i("li",{key:n,staticClass:"gold-item",on:{click:function(a){e.handlePay(t.id,1)}}},[i("div",{staticClass:"item-bd"},[i("img",{attrs:{src:t.icon,alt:""}}),e._v(" "),i("p",[e._v("¥"+e._s(t.price/100))])]),e._v(" "),i("div",{staticClass:"item-ft"},[e._v("获取 "),i("img",{attrs:{src:a(102),alt:""}}),i("em",[e._v(e._s(t.name))])])])}))])])])},n=[];a.d(t,"a",function(){return i}),a.d(t,"b",function(){return n})},28:function(e,t,a){"use strict";a.r(t);var i=a(111),n=a(42);for(var A in n)"default"!==A&&function(e){a.d(t,e,function(){return n[e]})}(A);a(103);var c=a(5),o=Object(c.a)(n.default,i.a,i.b,!1,null,null,null);o.options.__file="index.vue",t.default=o.exports},39:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=c(a(9)),n=c(a(30)),A=a(4);function c(e){return e&&e.__esModule?e:{default:e}}var o,d=i.default.getParam("dwAppId"),r=i.default.getParam("uid"),g=i.default.getParam("openid"),s=0,l={handlePay:async function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;i.default.checkWXAgent()?await this.configWX()?(A.Indicator.open("正在创建订单..."),n.default.post(i.default.apiUrl+"/order/proxyPay",{dwAppId:d,uid:r,openid:g,productId:e,count:t}).then(function(e){var t=e.data;if(A.Indicator.close(),t.data){var a=t.data.platformData;o=t.data.traceNo,setTimeout(function(){wx.chooseWXPay({timestamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(e){A.Indicator.close(),A.Indicator.open("游戏充值中..."),l.checkOrder()},cancel:function(e){A.Indicator.close()},fail:function(e){A.Indicator.close()}})},100)}else(0,A.MessageBox)("提示",t.msg)})):(0,A.MessageBox)("提示","未知错误,请重试"):(0,A.MessageBox)("提示","请在微信客户端打开")},configWX:function(){return new Promise(function(e,t){n.default.get(i.default.apiUrl+"/auth/jsSign",{params:{url:location.href}}).then(function(t){var a=t.data;wx.config({debug:!1,appId:"wxc137e1554d993f74",nonceStr:a.data.nonceStr,signature:a.data.signature,timestamp:a.data.timestamp,jsApiList:["chooseWXPay"]}),wx.error(function(e){(0,A.MessageBox)("提示",JSON.stringify(e))}),wx.ready(function(){e(!0)})}).catch(function(e){var a=e.data;(0,A.MessageBox)("提示",a.msg),t(!1)})})},checkOrder:function(){n.default.get(i.default.apiUrl+"/order/state",{params:{dwAppId:d,tradeNo:o}}).then(function(e){var t=e.data;switch(t.data.state=1*t.data.state,t.data.state){case-1:A.Indicator.close(),(0,A.MessageBox)("提示","商品购买失败");break;case 0:if(s>5e3)return A.Indicator.close(),void(0,A.MessageBox)("提示","商品购买结果请进游戏确认");setTimeout(function(){s+=500,l.checkOrder()},500);break;case 1:A.Indicator.close(),(0,A.MessageBox)("提示","商品购买成功")}}).catch(function(e){var t=e.data;A.Indicator.close(),(0,A.MessageBox)("提示",t.msg)})}};t.default=l},41:function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},42:function(e,t,a){"use strict";a.r(t);var i=a(43),n=a.n(i);for(var A in i)"default"!==A&&function(e){a.d(t,e,function(){return i[e]})}(A);t.default=n.a},43:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=c(a(9)),n=c(a(30)),A=(a(4),c(a(39)));function c(e){return e&&e.__esModule?e:{default:e}}t.default={data:function(){return{picUrl:i.default.domain+"/build/img/taptapstar/",appid:i.default.getParam("dwAppId"),selectIndex:1,shopList:[],tradeNo:""}},mounted:function(){this.getGoodsInfo()},methods:{getGoodsInfo:function(){var e=this,t=i.default.apiUrl+"/product/"+this.appid+"/products/"+this.selectIndex;n.default.get(t,{dwAppId:this.appid,type:this.selectIndex}).then(function(t){var a=t.data;console.log(a.data.list),e.shopList=a.data.list})},handlePay:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;A.default.handlePay(e,t)}}}},44:function(e,t,a){var i=a(104);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,a(6).default)("b5d8cf02",i,!0,{})}}]);