Commit 32c908ce authored by IvyXia123's avatar IvyXia123

支付宝支付

parent ef3872f3
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
position: fixed; position: fixed;
background: #f4f4f4; background: #f4f4f4;
} }
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.0138ed559ec0a77f74b7.js></script><script type=text/javascript src=static/js/vendor.0c1d6ebbba685002d59c.js></script><script type=text/javascript src=static/js/app.65392df84ee9666c6c6c.js></script></body></html> /* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.760f6c4fe6c18eb412a8.js></script><script type=text/javascript src=static/js/vendor.0c1d6ebbba685002d59c.js></script><script type=text/javascript src=static/js/app.1812babc6c3bbee3b00f.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([56],{"6IIy":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,s=t("bOdI"),a=t.n(s),r=(t("y+mr"),t("3JdW")),l=t.n(r),o=(t("f1Vh"),t("ZQVe")),c=t.n(o),p=(t("q/am"),t("4VPn")),d=t.n(p),u=t("CCn6"),h=t("/Bxx"),f=t.n(h),g={name:"shareConfig",components:(i={},a()(i,d.a.name,d.a),a()(i,c.a.name,c.a),a()(i,l.a.name,l.a),i),data:function(){return{desc:"赠你1元领取价值398元课程特权,和我一起快乐启蒙英语吧",shareUrl:f.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣,已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(n){Object(u._4)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(e){wx.config({debug:!1,appId:e.appId,timestamp:parseInt(e.timestamp),nonceStr:e.nonceStr,signature:e.signature,jsApiList:e.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},sharePage:function(){this.enableShare({product_title:this.title,desc:this.desc,shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:this.link}),this.shareVisible=!0}}},m=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("mt-popup",{staticClass:"refer-share",staticStyle:{background:"transparent"},attrs:{position:"top"},model:{value:n.shareVisible,callback:function(e){n.shareVisible=e},expression:"shareVisible"}},[t("img",{staticStyle:{width:"80vw"},attrs:{src:n.shareUrl}})]),n._v(" "),t("div",{staticStyle:{padding:"10px"}},[t("mt-field",{attrs:{label:"分享标题",type:"textarea",placeholder:"请输入分享标题",rows:"4"},model:{value:n.title,callback:function(e){n.title=e},expression:"title"}}),n._v(" "),t("mt-field",{attrs:{label:"分享链接",type:"textarea",placeholder:"请输入分享链接",rows:"4"},model:{value:n.link,callback:function(e){n.link=e},expression:"link"}}),n._v(" "),t("mt-field",{attrs:{label:"分享描述",type:"textarea",placeholder:"请输入分享描述",rows:"4"},model:{value:n.desc,callback:function(e){n.desc=e},expression:"desc"}}),n._v(" "),t("div",{staticStyle:{width:"calc(100vw - 20px)",margin:"0"}},[t("mt-button",{attrs:{type:"primary",size:"large"},on:{click:function(e){n.sharePage()}}},[n._v("分享")])],1)],1)],1)};m._withStripped=!0;var v={render:m,staticRenderFns:[]},b=v;var x=!1;var w=t("VU/8")(g,b,!1,function(n){x||t("oiC4")},"data-v-fe968cbe",null);w.options.__file="src/components/shareConfig.vue";e.default=w.exports},oiC4:function(n,e,t){var i=t("xc6X");"string"==typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);t("rjj0")("64f549e4",i,!1,{})},xc6X:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"shareConfig.vue",sourceRoot:""}])}}); webpackJsonp([56],{"6IIy":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,s=t("bOdI"),a=t.n(s),r=(t("y+mr"),t("3JdW")),l=t.n(r),o=(t("f1Vh"),t("ZQVe")),c=t.n(o),p=(t("q/am"),t("4VPn")),d=t.n(p),u=t("CCn6"),h=t("/Bxx"),f=t.n(h),g={name:"shareConfig",components:(i={},a()(i,d.a.name,d.a),a()(i,c.a.name,c.a),a()(i,l.a.name,l.a),i),data:function(){return{desc:"赠你1元领取价值398元课程特权,和我一起快乐启蒙英语吧",shareUrl:f.a,title:"我家宝宝正在【唱唱启蒙英语】挑战童谣,已坚持1天",link:window.location.href.split("#")[0],shareVisible:!1}},methods:{enableShare:function(n){Object(u._5)({api_list:"onMenuShareAppMessage,onMenuShareTimeline",url:window.location.href.split("#")[0]}).then(function(e){wx.config({debug:!1,appId:e.appId,timestamp:parseInt(e.timestamp),nonceStr:e.nonceStr,signature:e.signature,jsApiList:e.jsApiList}),wx.ready(function(){wx.onMenuShareTimeline({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}}),wx.onMenuShareAppMessage({title:n.product_title,desc:n.desc,link:n.shareUrl,imgUrl:n.shareIcon||"https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png",success:function(){},cancel:function(){}})})})},sharePage:function(){this.enableShare({product_title:this.title,desc:this.desc,shareIcon:"https://cdn.singsingenglish.com/logo/logo.jpg",shareUrl:this.link}),this.shareVisible=!0}}},m=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("mt-popup",{staticClass:"refer-share",staticStyle:{background:"transparent"},attrs:{position:"top"},model:{value:n.shareVisible,callback:function(e){n.shareVisible=e},expression:"shareVisible"}},[t("img",{staticStyle:{width:"80vw"},attrs:{src:n.shareUrl}})]),n._v(" "),t("div",{staticStyle:{padding:"10px"}},[t("mt-field",{attrs:{label:"分享标题",type:"textarea",placeholder:"请输入分享标题",rows:"4"},model:{value:n.title,callback:function(e){n.title=e},expression:"title"}}),n._v(" "),t("mt-field",{attrs:{label:"分享链接",type:"textarea",placeholder:"请输入分享链接",rows:"4"},model:{value:n.link,callback:function(e){n.link=e},expression:"link"}}),n._v(" "),t("mt-field",{attrs:{label:"分享描述",type:"textarea",placeholder:"请输入分享描述",rows:"4"},model:{value:n.desc,callback:function(e){n.desc=e},expression:"desc"}}),n._v(" "),t("div",{staticStyle:{width:"calc(100vw - 20px)",margin:"0"}},[t("mt-button",{attrs:{type:"primary",size:"large"},on:{click:function(e){n.sharePage()}}},[n._v("分享")])],1)],1)],1)};m._withStripped=!0;var v={render:m,staticRenderFns:[]},b=v;var x=!1;var w=t("VU/8")(g,b,!1,function(n){x||t("oiC4")},"data-v-fe968cbe",null);w.options.__file="src/components/shareConfig.vue";e.default=w.exports},oiC4:function(n,e,t){var i=t("xc6X");"string"==typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);t("rjj0")("64f549e4",i,!1,{})},xc6X:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"shareConfig.vue",sourceRoot:""}])}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([65],{"+N17":function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"navShare.vue",sourceRoot:""}])},oB2U:function(e,n,t){var o=t("+N17");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("rjj0")("15ac934c",o,!1,{})},w9jd:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("CCn6"),r={name:"navShare",mounted:function(){var e=this;Object(o.N)().then(function(n){e.shopId=n.id,e.$router.push({name:"buyDetail",query:{invite_code:e.$route.query.invite_code,shopId:e.shopId}})})},data:function(){return{}}},s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nofinish-block"})};s._withStripped=!0;var a={render:s,staticRenderFns:[]},i=a;var c=!1;var u=t("VU/8")(r,i,!1,function(e){c||t("oB2U")},"data-v-18aa337a",null);u.options.__file="src/components/newLesson/navShare.vue";n.default=u.exports}}); webpackJsonp([65],{"+N17":function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"navShare.vue",sourceRoot:""}])},oB2U:function(e,n,t){var o=t("+N17");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("rjj0")("15ac934c",o,!1,{})},w9jd:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("CCn6"),r={name:"navShare",mounted:function(){var e=this;Object(o.O)().then(function(n){e.shopId=n.id,e.$router.push({name:"buyDetail",query:{invite_code:e.$route.query.invite_code,shopId:e.shopId}})})},data:function(){return{}}},s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nofinish-block"})};s._withStripped=!0;var a={render:s,staticRenderFns:[]},i=a;var c=!1;var u=t("VU/8")(r,i,!1,function(e){c||t("oB2U")},"data-v-18aa337a",null);u.options.__file="src/components/newLesson/navShare.vue";n.default=u.exports}});
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={69:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,n.crossOrigin="anonymous",d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"b3bc8f9f5447ad6c3f53",1:"0f41e1a40286fcf71f42",2:"2c97ac6de4b2c197a788",3:"5f2f4dbe73e47a5a2f0c",4:"e036a40ec5493a2f1fe2",5:"9f0366f77e1e6bfd072c",6:"6f060aeb27e201d39a1d",7:"5ea7c7fa901065ad18d3",8:"ee96fc24a4c22c866ef0",9:"f1f2f981808dac360043",10:"1e7620dd9d82ff53a48b",11:"ef24e0abaab858c7068c",12:"c32793ec9c026ec4952c",13:"70e18470ba94e66ea636",14:"6f775b0f71ab907bf6c9",15:"aac97eac9185f386543e",16:"f41b28ff6bf3de8fc15a",17:"202ef012d70503034c38",18:"17bf5166834bef806a2a",19:"d817a9478a0f0f630c7c",20:"6b595c29e6aaaa7f14c1",21:"0c5886bf7427b7b183e7",22:"f68ea2c665fa37420ccb",23:"6027e15d466465201cf5",24:"66115b335ef36e664560",25:"386d0c50933db7378564",26:"926af732471739d5ee45",27:"8ee0be7fbb0fb087db54",28:"57ab508e80608a7ae6bf",29:"cb0ee5d9d72b28fe276f",30:"653c91ab86838e75b5e6",31:"496a4f1feee35020b28e",32:"d416f9c3eb225c407945",33:"ac86ed186ec22ef8a2f0",34:"f9100b504f7ad9f03fb7",35:"4c83dac57ccdccaca4a1",36:"d1457d79c6cca0e5dea3",37:"5f1924cd6103ee117c61",38:"e023144fad02fb9afd5b",39:"78faf4e875e58ebc2e45",40:"ff3778361e9c6e46fe3d",41:"5460cec8b4bef019ce1b",42:"98f43f4674c3dbc018a6",43:"141f3e876e053113ae40",44:"912133dc7b31ecc11d27",45:"ba6206c8ebb8afc0ddf2",46:"f34412903dee9d902d97",47:"7e2de6f7607c9787f0ba",48:"3a715ff2fe5ab9ac84f8",49:"5e454442d7bf0135d9ef",50:"3962e921c894dd8d9ab2",51:"7180b6e90305c63e6723",52:"7812d88a763e71d0c7a9",53:"8c820a1c38013da93bc8",54:"fc1e935cf671e98adffc",55:"6c8d1ac585f3c5feaf1d",56:"b199c5e1e08d7811cb4f",57:"3f35c830362905640c11",58:"d562647e054c2fd9acf1",59:"f10d630332a11d63d6c3",60:"2ff38cdcb0c8d13b51a0",61:"4bbe8d73fb4886ec560b",62:"05895947738105c18151",63:"ff2ed96474562cd5e44b",64:"caf94f2c30470c5b5010",65:"2e668d5dbdd605394d27",66:"d29a08ade6bda9eed6a6"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
This diff is collapsed.
...@@ -418,7 +418,8 @@ export default { ...@@ -418,7 +418,8 @@ export default {
let data = { pay_type: 'ALI', return_url: window.location.href, buy_type: this.groupDetail.goods_type } let data = { pay_type: 'ALI', return_url: window.location.href, buy_type: this.groupDetail.goods_type }
let dataObj = Object.assign({}, data, json) let dataObj = Object.assign({}, data, json)
postPayBillApi(dataObj).then(res => { postPayBillApi(dataObj).then(res => {
location.href = `http://${ window.location.host }/#/guidelines?pay_url=${ res.pay_url }` localStorage.setItem('out_trade_no', res.out_trade_no)
location.href = `http://${ window.location.host }/#/guidelines?pay_url=${ encodeURI(res.pay_url) }`
}) })
} }
} }
......
...@@ -11,6 +11,7 @@ import sa from 'sa-sdk-javascript'; ...@@ -11,6 +11,7 @@ import sa from 'sa-sdk-javascript';
import 'mint-ui/lib/style.css' import 'mint-ui/lib/style.css'
import scroll from "./base/scroll/scroll" import scroll from "./base/scroll/scroll"
import { Popup, Lazyload, Button, Dialog, Toast } from 'vant'; import { Popup, Lazyload, Button, Dialog, Toast } from 'vant';
import { getBillRefreshApi } from './service/api'
import * as fundebug from 'fundebug-javascript'; import * as fundebug from 'fundebug-javascript';
import fundebugVue from 'fundebug-vue'; import fundebugVue from 'fundebug-vue';
...@@ -46,6 +47,20 @@ Vue.prototype.$sa.quick('autoTrack') ...@@ -46,6 +47,20 @@ Vue.prototype.$sa.quick('autoTrack')
Vue.use(VueClipboard); Vue.use(VueClipboard);
Vue.use(Popup).use(Lazyload).use(Button).use(Dialog).use(Toast); Vue.use(Popup).use(Lazyload).use(Button).use(Dialog).use(Toast);
Vue.component('scroll', scroll); Vue.component('scroll', scroll);
// 支付宝支付完成,订单状态查询
let timer = null;
if(window.localStorage.out_trade_no) {
timer = setInterval(() => {
getBillRefreshApi({ outTradeNo: window.localStorage.out_trade_no }).then(res => {
if(res.status == 'SUCCESS') {
clearInterval(timer);
}
})
}, 6000)
}
// 全局错误日志 // 全局错误日志
const errorHandler = (error, vm)=>{ const errorHandler = (error, vm)=>{
Vue.prototype.$post(`api/client/report/errors/log`,{'routes_url':vm.$route.name,'result_text':error.toString()}) Vue.prototype.$post(`api/client/report/errors/log`,{'routes_url':vm.$route.name,'result_text':error.toString()})
...@@ -58,6 +73,10 @@ if (process.env.NODE_ENV != 'production') { ...@@ -58,6 +73,10 @@ if (process.env.NODE_ENV != 'production') {
new VConsole(); new VConsole();
} }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
next() next()
// chrome // chrome
......
...@@ -431,3 +431,13 @@ const getNewCashUrl = `${_baseUrl}api/client/new/return/cash/` ...@@ -431,3 +431,13 @@ const getNewCashUrl = `${_baseUrl}api/client/new/return/cash/`
export const getNewCashApi = function (element_id, category_id, periods_id, json) { export const getNewCashApi = function (element_id, category_id, periods_id, json) {
return Vue.prototype.$fetch(`${getNewCashUrl}${element_id}/${category_id}/${periods_id}`, json) return Vue.prototype.$fetch(`${getNewCashUrl}${element_id}/${category_id}/${periods_id}`, json)
}; };
// 订单状态查询
/*export const postBillRefreshApi = function (json) {
return Vue.prototype.$fetch(`/api/client/bill/refresh`, json)
};*/
const getBillRefreshUrl = `${_baseUrl}api/client/bill/refresh`
export const getBillRefreshApi = function (json) {
return Vue.prototype.$fetch(getBillRefreshUrl, json)
};
...@@ -194,7 +194,7 @@ export function fetch(url, params = {}) { ...@@ -194,7 +194,7 @@ export function fetch(url, params = {}) {
window.location.href = `${process.env.AUTHOR_UEL}&refresh=1` window.location.href = `${process.env.AUTHOR_UEL}&refresh=1`
} else { } else {
reject(response.data); reject(response.data);
if(response.data.code != 502) { if(response.data.code != 502 || response.data.code != 500) {
Toast(response.data.msg) Toast(response.data.msg)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment