frontend_h5/treegitee/unpackage/dist/build/h5/static/js/pages-mt-pay.34ae4794.js

1 line
8.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mt-pay"],{"0341":function(t,e,n){"use strict";n.r(e);var i=n("83f3"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"03d1":function(t,e,n){t.exports=n.p+"static/img/noselect.658036b2.png"},"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"3eed":function(t,e,n){"use strict";n.r(e);var i=n("7744"),o=n("0341");for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("d4fb");var a=n("f0c5"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"028fc792",null,!1,i["a"],void 0);e["default"]=c.exports},"595e":function(t,e,n){t.exports=n.p+"static/img/hasSelect1.a1d06310.png"},7744:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.istrue?n("v-uni-view",{staticClass:"contents",staticStyle:{overflow:"hidden"}},[n("v-uni-view",{staticClass:"flex_items flex_center mt30",staticStyle:{width:"100%",height:"160rpx"}},[n("v-uni-view",{staticClass:"flex_column flex_items"},[n("span",{staticClass:"bolder",staticStyle:{"font-size":"70rpx"}},[t._v("¥"+t._s(t.info.price))]),n("v-uni-view",{staticClass:"flex_start flex_items f32 mt20"},[n("span",[t._v("支付剩余时间")]),n("v-uni-view",{staticClass:"flex_start flex_items ml5",staticStyle:{color:"red"}},[n("v-uni-view",{},[t._v(t._s(t.minutes))]),n("v-uni-view",{},[t._v(":")]),n("v-uni-view",{},[t._v(t._s(t.secondsCom))])],1)],1)],1)],1),n("v-uni-view",{staticClass:"flex_column flex_items plr20 ptb10 mt30"},[n("v-uni-view",{staticClass:"bgwhite plr20 ptb30 flex_column",staticStyle:{"border-radius":"20rpx",width:"calc(100% - 60rpx)"}},[n("v-uni-view",{staticClass:"flex_between flex_items f30"},[n("v-uni-text",{staticClass:"f32"},[t._v("订单编号")]),n("v-uni-text",{staticStyle:{color:"#a3a1a1e6"}},[t._v(t._s(t.orderno))])],1),n("v-uni-view",{staticClass:"flex_between flex_items f30 mt30"},[n("v-uni-text",{staticClass:"f32"},[t._v("支付方式")]),n("v-uni-text",{staticStyle:{color:"#a3a1a1e6"}},[t._v("微信支付")])],1),n("v-uni-view",{staticClass:"flex_between flex_items f30 mt30",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goredm.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"f32"},[t._v("可用红包")]),0==t.hbs.length?n("v-uni-text",{staticStyle:{color:"#a3a1a1e6"}},[t._v("暂无可用")]):n("v-uni-view",{staticClass:"f24",staticStyle:{background:"red",color:"#fff",padding:"8rpx","border-radius":"6rpx"}},[""==t.whoname?n("v-uni-text",[t._v(t._s(t.hbs.length)+"张可用")]):n("v-uni-text",[t._v(t._s(t.whoname))])],1)],1)],1)],1),n("v-uni-view",{staticClass:"flex_between flex_items bgwhite"}),n("v-uni-view",{staticClass:"flex_items flex_center",staticStyle:{width:"100%",position:"fixed",left:"0",bottom:"30rpx"}},[n("v-uni-view",{staticClass:"f30 ptb20 f-center que",staticStyle:{background:"#fde64f","border-radius":"18rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goorder.apply(void 0,arguments)}}},[t._v("确认支付")])],1),n("Ywatermark",{attrs:{info:"蓝色兄弟"}})],1):t._e()},o=[]},"83f3":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("e25e"),n("c975"),n("e9c4"),n("d401"),n("d3b7"),n("25f0");var i={data:function(){return{payIndex:0,paymoney:"",minutes:null,seconds:0,timeShow:!0,foods:[],other:"",wwimg:n("8b70"),info:{},hbs:[],istrue:!1,hbimg:n("b5d2"),orderno:"",whoindex:"",whoname:"",packet_id:""}},onLoad:function(){var t=this.getRequestParams(),e=t["order_no"];this.orderno=e,this.getinfo(e)},computed:{secondsCom:function(){return this.seconds<10?"0"+this.seconds:this.seconds}},methods:{add:function(){var t=this;t.istrue=!0,uni.hideLoading();var e=window.setInterval((function(){0===t.seconds&&0!==t.minutes?(t.seconds=59,t.minutes-=1):0===t.minutes&&0===t.seconds?(t.seconds=0,t.timeShow=!1,window.clearInterval(e),uni.showModal({title:"提示",content:"支付已超时!",showCancel:!1,success:function(t){t.confirm?(console.log("用户点击确定"),uni.navigateBack({delta:1})):console.log("用户点击取消")}})):t.seconds-=1}),1e3)},getinfo:function(t){var e=this;uni.showLoading({title:"加载中...",icon:"none"}),this.api.getinfoorder({order_no:t}).then((function(t){console.log(t),200==t.data.code?(uni.hideLoading(),e.info=t.data.data.order,e.hbs=t.data.data.packet,e.changs(e.info.count_time),e.info.price=Number(e.info.price)+Number(e.info.service_amount)):uni.showToast({title:t.data.message,icon:"none"})}))},goorder:function(){uni.showLoading({title:"支付中..."}),this.api.paym({order_no:this.orderno,packet_id:this.packet_id}).then((function(t){console.log(t),200==t.data.code?(uni.hideLoading(),window.open(t.data.data.h5_url,"_self")):uni.showToast({title:t.data.message,icon:"none"})}))},changs:function(t){var e="".concat(parseInt(t/60));this.minutes=e,this.add(),console.log(e)},getlogin:function(){uni.showLoading({title:"加载中..."}),uni.request({url:"http://139.9.58.213:8091/v1/union/a50482b7b61efcf3e272d27cb7d42d38",method:"GET",data:{uid:"uid",phone:"18048557688",nickname:"啊啊"},success:function(t){console.log(t),200==t.data.code?(uni.setStorageSync("token",t.data.data.token),uni.navigateTo({url:"../web/index?url="+t.data.data.jump_url})):uni.showToast({title:t.data.message,duration:2e3,icon:"none"})}})},getRequestParams:function(){var t=location.href,e={};if(-1!==t.indexOf("?"))for(var n=t.substr(t.indexOf("?")+1),i=n.split("&"),o=0;o<i.length;o++)e[i[o].split("=")[0]]=decodeURI(i[o].split("=")[1]);return e},goredm:function(){if(0==this.hbs.length)return!1;uni.navigateTo({url:"/pages/mt/redm?hbs="+JSON.stringify(this.hbs)+"&&whoindex="+this.whoindex})},jian:function(t,e){var n,i,o,s;try{n=e.toString().split(".")[1].length}catch(a){n=0}try{i=t.toString().split(".")[1].length}catch(a){i=0}return o=Math.pow(10,Math.max(n,i)),s=n>=i?n:i,((t*o-e*o)/o).toFixed(s)}},onShow:function(){uni.getStorageSync("who")&&(this.whoindex=uni.getStorageSync("who"),this.packet_id=this.hbs[this.whoindex].id,this.whoname="已使用红包 -¥"+this.hbs[this.whoindex].balance,this.info.price=this.jian(this.info.price,this.hbs[this.whoindex].balance),uni.removeStorageSync("who"),console.log(this.info.price))}};e.default=i},"8b70":function(t,e,n){t.exports=n.p+"static/img/wxzf.6a4a7e14.png"},b5d2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAhlJREFUaEPtmD1v01AUhp+b2HFrnKRIrIiqXSsGxFKJoRWqkBhAiAk2Pv5AxdC/QCX+AkNViYqBhbVDOrRKJ9KtCAnEBFsVExMS282tHJSKNgqqfWXZru6VPEQ59/g873vOjWNBwZcoeP1ogKwd1A5oBxQV0C2kKKDydu2AsoSKCbQDigIqb1dxYLaK+PoWp69SxQs8q4OcB74nyaMCsPSBamMRM8l9T/c0CXhMZxnYSZJICeAdTmOJSpL7nu7ZwecpXjYANyg1mswoAazi8R4/G4BNnMYruhwkhLhJm9fYvMzKgdEM3KaNh2SbOtcp/deRnwy4i4uFoMUMmc7A+SFuEfIMj2lAIBgghzAlBBKJD2xQZYFyPoa48KfQpQWwHvqEh2WOv/xtleizsCW9LWtsPnI1A6Pqrh0dEX4ycB9VEXXJ1abL8ecy7ZVaMQCmnvdx3vzG3zYRjsRcDHHv1wj2jWIARFXaa3+GV7S81Sv0NsbbJ/ouly1U//gL8054Ru3u+jTRdX7lEqCyEmDcCocOBLsmwZ5Bb9Ni8GP8Ry6XALWtDpV7wRmxJ7VRLgH+PY2CXQP3wfjpM4rJNcDUkz5ByxgeoZNWrgEu8pytAS6i0oSY4v+lvLQPc3FczXIGZm3Ety5S5cUANkJ2kXNZvFaJI3RqsUrqpVZVjMQaIIZYqYRqB1KRNUZS7UAMsVIJ1Q6kImuMpIV34ATrZeoxHWZH9wAAAABJRU5ErkJggg=="},cb01:function(t,e,n){var i=n("f133");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("34266079",i,!0,{sourceMap:!1,shadowMode:!1})},d4fb:function(t,e,n){"use strict";var i=n("cb01"),o=n.n(i);o.a},f133:function(t,e,n){var i=n("24fb"),o=n("1de5"),s=n("595e"),a=n("03d1");e=i(!1);var c=o(s),r=o(a);e.push([t.i,".contents[data-v-028fc792]{background:#f5f5f5!important;height:100vh;margin:0 auto}.que[data-v-028fc792]{width:calc(100% - %?50?%)}\n\n\t/* @media screen and (max-width: 768px) {\n .contents {\n width: 100%;\n }\n .que {\n width: calc(100% - 25px);\n }\n}\n@media screen and (min-width: 769px) {\n .contents {\n width: 500px;\n }\n .que {\n width:460px;\n }\n} */.chooseIcon[data-v-028fc792]{width:%?48?%;height:%?48?%;display:inline-block;background:url("+c+") no-repeat;background-size:100%}.active[data-v-028fc792]{width:%?48?%;height:%?48?%;display:inline-block;background:url("+r+") no-repeat;background-size:100%}",""]),t.exports=e}}]);