(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-gold-buy"],{2557:function(t,i,a){"use strict";var e=a("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e(a("befe")),o={data:function(){return{goldList:[],goldModalClass:"",goldid:0}},onLoad:function(){this.getPage()},methods:{getPage:function(){var t=this;t.app.get({url:t.app.apiHost+"/module.php?m=im_gold",success:function(i){t.goldList=i.data.list}})},buyGold:function(){var t=this;if(0==t.goldid)return!1;t.app.get({url:t.app.apiHost+"/module.php?m=im_gold&a=buy&id="+this.goldid,success:function(i){if(i.error)return uni.showToast({title:i.message}),!1;"pay"==i.data.action&&(n.default.paytype=t.paytype,n.default.pay({payurl:i.data.payurl,orderno:i.data.orderno}))}})}}};i.default=o},"34cb":function(t,i,a){"use strict";var e=a("ad65"),n=a.n(e);n.a},"46c7":function(t,i,a){"use strict";a.r(i);var e=a("2557"),n=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(i,t,(function(){return e[t]}))}(o);i["default"]=n.a},"57b6":function(t,i,a){"use strict";a.r(i);var e=a("fa1f"),n=a("46c7");for(var o in n)"default"!==o&&function(t){a.d(i,t,(function(){return n[t]}))}(o);a("34cb");var u,r=a("f0c5"),s=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"497b7c4a",null,!1,e["a"],u);i["default"]=s.exports},ad65:function(t,i,a){var e=a("e096");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("6ae60c8f",e,!0,{sourceMap:!1,shadowMode:!1})},befe:function(t,i){t.exports={apiHost:"https://www.fd175.com/",appRoot:"https://www.fd175.com/uniapp/h5/",urlSuccess:"../b2c_order/success",urlFail:"../b2c_order/fail",paytype:"alipay",pay:function(t){window.location=t.payurl}}},e096:function(t,i,a){var e=a("24fb");i=e(!1),i.push([t.i,".giftItem[data-v-497b7c4a]{width:25%;margin:5px;padding:5px;box-sizing:border-box;cursor:pointer}.giftItem-img[data-v-497b7c4a]{width:50px;height:50px;border-radius:50%;margin-bottom:5px}.giftItem-title[data-v-497b7c4a]{color:#333;font-size:12px;margin-bottom:5px}.giftItem-price[data-v-497b7c4a]{color:#f60;font-size:14px}",""]),t.exports=i},fa1f:function(t,i,a){"use strict";var e;a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){return e}));var n=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",[a("v-uni-view",{staticClass:"row-box"},[a("v-uni-view",{staticStyle:{width:"100%"}},[t._l(t.goldList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"row-item-text"},[a("v-uni-view",{staticClass:"row-item-title flex flex-ai-center",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goldid=i.id}}},[a("v-uni-view",{staticClass:"cl-num"},[t._v(t._s(i.gold))]),a("v-uni-view",[t._v("金币")]),a("v-uni-view",{staticClass:"cl-num"},[t._v("￥"+t._s(i.price))]),a("v-uni-view",{staticClass:"flex-1"}),t.goldid==i.id?a("v-uni-view",{staticClass:"yes f16"}):t._e()],1)],1)})),a("v-uni-view",{staticClass:"btn-row-submit",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.buyGold.apply(void 0,arguments)}}},[t._v("立即购买")])],2)],1)],1)},o=[]}}]);