caimei-hlbpay.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. /**
  2. *Created by ZHJY on 2020/7/14.
  3. */
  4. var payContainer = new Vue({
  5. el:"#payContainer",
  6. mixins: [cardsMixns,hlbPayMixin,cmSysVitaMixins],
  7. data: {
  8. loginLoading:true,
  9. isSubMitStatus:false,
  10. payInfo:{
  11. payBankNum: '', //支付类型
  12. shopOrderId: '', //订单ID
  13. obligation: '', //待支付金额
  14. payAmount: 0,//本次支付金额
  15. payMobileUrl: '',//二维码生成链接
  16. payData:{}, //支付数据
  17. payUserType:'B2B',
  18. payType:'1',
  19. },
  20. iframe:'',
  21. orderFlag:1,// 是否是订单 0非订单 1订单
  22. couponInfo:{},
  23. bankListB2BData:[],// 企业网银银行列表
  24. bankListB2CData:[],// 个人网银银行列表
  25. methodTab:['线上支付','转账支付'],
  26. mobileData:[
  27. {imgUrl:'/img/pay/iconbank-ali@2x.png',bankName:'支付宝支付',bankNum:'ALIPAY'},
  28. {imgUrl:'/img/pay/iconbank-wx@2x.png',bankName:'微信支付',bankNum:'WEIXIN'},
  29. {imgUrl:'/img/pay/iconbank-B2Bbank@2x.png',bankName:'网银支付',bankNum:'ICBC_B2B'},
  30. {imgUrl:'/img/pay/iconbank-B2Cbank@2x.png',bankName:'个人网银',bankNum:'ICBC_B2C'}
  31. ],
  32. pageType:'',//页面跳转类型 1 二手支付
  33. obligation:'',//订单待付金额
  34. payableAmount:'',//应付金额
  35. receiptAmount:'',//已支付金额
  36. balanceAmount:'',//应付剩余金额
  37. payAmount:'',//本次支付金额
  38. paymentIimit:50000,
  39. paymentIimitText:'',
  40. discernReceiptList:[],//支付记录列表
  41. mbOrderId:'',//支付订单ID
  42. bigPayInfo:{},// 银联转账信息
  43. BankUserType:1,
  44. mobileTabIndex:null,
  45. bankTabIndex:0,
  46. isRequest:false,
  47. isPayAlert:false,
  48. isPaySwitch:false,
  49. paySuccessCounter:'',
  50. bankPayLink_url:'',
  51. invoiceStatus:false,
  52. isReceiptStatus:false,
  53. onlinePay:'',
  54. QuickPayFlag: false,//快捷支付开关
  55. B2BpayFlag: false,//企业网银支付开关
  56. is_Wechat_bowcr:false, // 是否是微信浏览器
  57. weChatFlag: false, // 微信支付开关
  58. aliPayFlag: false, // 支付宝支付开关
  59. svipPayFlag: false, // 是否支付开通超级会员
  60. couponPayFlag: false, // 是否支付优惠券
  61. payStatusText:'支付全部金额后,供应商会在24小时后发货,周末、节假日顺延。',
  62. productID:'',//发布商品的ID
  63. comboInfo: null, //选中的svip套餐信息
  64. vipRecordId: undefined,
  65. couponRecordId:undefined,
  66. couponId:undefined,
  67. userId:0,
  68. orderId:0,
  69. orderNo:0,
  70. list: [],// 快捷支付我的银行
  71. },
  72. filters: {
  73. NumFormat:function(value) {
  74. if(!value) return '0.00';
  75. var intPart = Number(value) - Number(value)%1; //获取整数部分(这里是windy93的方法)
  76. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,'); //将整数部分逢三一断
  77. var floatPart = ".00"; //预定义小数部分
  78. var value2Array = value.toString().split(".");
  79. if(value2Array.length == 2) { //=2表示数据有小数位
  80. floatPart = value2Array[1].toString(); //拿到小数部分
  81. if(floatPart.length == 1) { //补0,实际上用不着
  82. return intPartFormat + "." + floatPart + '0';
  83. } else {
  84. return intPartFormat + "." + floatPart;
  85. }
  86. } else {
  87. return intPartFormat + floatPart;
  88. }
  89. }
  90. },
  91. computed: {
  92. showAliPayMode(){
  93. return !this.is_Wechat_bowcr && (this.aliPayFlag || this.svipPayFlag || this.couponPayFlag)
  94. },
  95. showWeChatPayMode(){
  96. return this.weChatFlag || this.svipPayFlag || this.couponPayFlag
  97. },
  98. showB2BpayMode(){
  99. return this.B2BpayFlag || this.svipPayFlag || this.couponPayFlag
  100. },
  101. showQuickpayMode() {
  102. return this.QuickPayFlag
  103. }
  104. },
  105. methods: {
  106. initCouponDetail:function (couponId) {//初始化优惠券数据
  107. const _self = this;
  108. ProductApi.QueryCouponDetail({ couponId: couponId },function (response) {
  109. if(response.code === 0){
  110. _self.couponInfo = response.data
  111. if(globalUserData){
  112. _self.userId = globalUserData.userId;
  113. }
  114. }else{
  115. CAIMEI.Alert(response.msg, '确定', false);
  116. }
  117. })
  118. },
  119. infoPayOrderCheckoutCounter:function(){//初始化子订单数据
  120. const _self = this;
  121. PayApi.PayOrderCheckoutShoporders({shopOrderId:_self.payInfo.shopOrderId},function(response){
  122. if(response.code === 0){
  123. console.log(response);
  124. var data = response.data; //金额初始化
  125. _self.payInfo.payAmount = (data.shopOrder.realPay - data.shopOrder.receiptAmount).toFixed(2);
  126. _self.discernReceiptList = data.discernReceipt;// 支付记录
  127. _self.payInfo.obligation = data.shopOrder.obligation;
  128. _self.orderId = data.shopOrder.orderId;// 主订单Id
  129. _self.orderNo = data.shopOrder.orderNo;// 主订单编号
  130. _self.obligation = data.shopOrder.obligation;// 待付金额
  131. _self.payableAmount = data.shopOrder.realPay;
  132. _self.receiptAmount = data.shopOrder.receiptAmount;
  133. _self.balanceAmount = (_self.obligation*100 - _self.payInfo.payAmount*100)/100;
  134. _self.payAmount = (_self.payableAmount - _self.receiptAmount).toFixed(2);
  135. _self.paySuccessCounter = data.shopOrder.paySuccessCounter;
  136. _self.onlinePay = data.onlinePay;
  137. _self.isRequest = true;
  138. // 支付方式配置
  139. _self.checkPayMode(data.onlinePayWays,data.weChatFlag,data.aliPayFlag)
  140. _self.PayOrderOnLineSwitch();
  141. }else{
  142. CAIMEI.Alert(response.msg,'确定',false);
  143. }
  144. })
  145. },
  146. // 校验支付模式
  147. checkPayMode(range,weChatFlag,aliPayFlag){
  148. // test range = '4'
  149. // 1微信 2支付宝 3个人网银 4企业网银
  150. if(weChatFlag === '2'){
  151. this.weChatFlag = false
  152. }else{
  153. this.weChatFlag = range.indexOf('1') > -1
  154. }
  155. if(aliPayFlag === '2'){
  156. this.aliPayFlag = false
  157. }else{
  158. this.aliPayFlag = range.indexOf('1') > -1
  159. }
  160. this.B2BpayFlag = range.indexOf('4') > -1
  161. this.QuickPayFlag = range.indexOf('5') > -1
  162. // 设置默认支付方式
  163. if(this.QuickPayFlag){
  164. this.mobileTabIndex = 4
  165. }else{
  166. this.mobileTabIndex = this.aliPayFlag ? 0 : this.weChatFlag ? 1 : this.B2BpayFlag ? 2 : 3
  167. }
  168. },
  169. getBankList () {// 获取网银支付银行列表
  170. const _self = this;
  171. PayApi.PayGetBankCode({},function(response){
  172. if(response.code === 0){
  173. _self.bankListB2BData = response.data.B2B;
  174. _self.bankListB2CData = response.data.B2C;
  175. }else{
  176. console.log('获取网银支付银行列表异常')
  177. }
  178. })
  179. },
  180. PayOrderOnLineSwitch(){//获取是否可以先上支付
  181. const _self = this;
  182. PayApi.PayOrderOnLineSwitch({},function(response){
  183. if(response.code === 0){
  184. if(response.data === 0){
  185. _self.isPaySwitch = true;
  186. if (_self.pageType === '2') {
  187. CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
  188. return;
  189. }
  190. CAIMEI.Alert('线上支付功能正在维护中,请前往查看线下转账方式进行付款','确定',true,function(){
  191. window.location.href= '/pay/caimei-payunder.html?orderId='+_self.orderId;
  192. });
  193. }
  194. }else{
  195. CAIMEI.Alert(response.msg,'确定',false);
  196. }
  197. })
  198. },
  199. PayMobileSubmitFn:function(){//点击移动支付方式
  200. const _self = this;
  201. if(_self.isPaySwitch && _self.pageType === '2'){
  202. CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
  203. return;
  204. }
  205. if(_self.pageType === '3'){// 移动支付优惠券
  206. _self.PayCouponMiniPayFn();
  207. }else{
  208. if(_self.payInfo.payBankNum === ''){
  209. CAIMEI.dialog('请选择支付方式');
  210. return;
  211. }
  212. if(_self.payAmount === ''){
  213. CAIMEI.dialog('请输入本次支付金额');
  214. return;
  215. }
  216. if(_self.payAmount === 0){
  217. CAIMEI.dialog('本次支付金额不能为0');
  218. return;
  219. }
  220. if(_self.payAmount*100 < 2){
  221. CAIMEI.dialog('本次支付金额必须大于¥0.02');
  222. return;
  223. }
  224. // if(_self.payAmount > _self.paymentIimit){
  225. // switch (_self.payInfo.payBankNum) {
  226. // case 'WEIXIN':
  227. // _self.paymentIimitText = '本次支付金额已超出微信支付限额,请输入小于5万的金额进行支付。';
  228. // break;
  229. // case 'ALIPAY':
  230. // _self.paymentIimitText = '本次支付金额已超出支付宝限额,请输入小于5万的金额进行支付。';
  231. // break;
  232. // }
  233. // CAIMEI.Alert(_self.paymentIimitText,'知道了');
  234. // return;
  235. // }
  236. if(_self.payInfo.payBankNum === "WEIXIN"){// 微信
  237. if(_self.pageType === '1'){ // 二手
  238. _self.hlb_PaySecondMiniWxPay();
  239. }else if(_self.pageType === '2'){ // 会员
  240. _self.hlb_PayVipMiniWxPay();
  241. }else{ // 正常订单
  242. _self.hlb_PayOrderMiniWxPay();
  243. }
  244. }else if(_self.payInfo.payBankNum === "ALIPAY"){// 支付宝
  245. if(_self.pageType === '1'){// 二手
  246. _self.hlb_PayOrdersecondScanAliPay();
  247. }else if(_self.pageType === '2'){ // 会员
  248. _self.hlb_PayVipScanAliPay();
  249. }else{// 正常订单
  250. _self.hlb_PayOrderPcScanAliPay();
  251. }
  252. }
  253. }
  254. },
  255. PaySubmitFn(){//点击网银支付方式
  256. if(this.isPaySwitch && this.pageType === '2'){
  257. CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
  258. return;
  259. }
  260. if(this.pageType === '3'){// 网银支付优惠券
  261. if(this.payInfo.payBankNum === ''){
  262. CAIMEI.dialog('请选择银行!');
  263. return;
  264. }
  265. this.hlb_PayCouponUnionPayFn();
  266. }else{
  267. if(this.payInfo.payBankNum === ''){
  268. CAIMEI.dialog('请选择银行!');
  269. return;
  270. }
  271. if(this.payAmount <= 10){
  272. CAIMEI.dialog('网银支付的金额必须大于¥10.00');
  273. return;
  274. }
  275. if( this.orderFlag === 1 && this.mobileTabIndex === 2){
  276. if(this.payAmount*1 !== this.obligation){
  277. CAIMEI.Alert('企业网银支付每次收取的手续费较高,建议一次性全额付款。','确定',false);
  278. return;
  279. }
  280. }
  281. if(this.pageType === '1'){// 二手
  282. this.hlb_PayOrdersecondUnion();
  283. } else if (this.pageType === '2') { // 会员
  284. this.hlb_PayVipPcMallPay();
  285. } else {// 正常订单
  286. this.hlb_PayOrderPcMallPay();
  287. }
  288. }
  289. },
  290. handleQuickPay(){
  291. //快捷支付
  292. if(this.pageType === '1'){// 二手
  293. this.orderPayQuickPay();
  294. } else if (this.pageType === '2') { // 会员
  295. this.orderPayQuickPay();
  296. } else if (this.pageType === '3') { // 优惠券
  297. this.orderPayQuickPay();
  298. } else {// 正常订单
  299. this.orderPayQuickPay();
  300. }
  301. },
  302. PayCouponMiniPayFn () { // 移动支付购买优惠券
  303. const _self = this;
  304. if(this.payInfo.payBankNum === "WEIXIN"){
  305. this.hlb_PayCouponMiniWxPay();
  306. }else if(this.payInfo.payBankNum === "ALIPAY"){//支付宝支付
  307. this.hlb_PayCouponAliPay();
  308. }
  309. },
  310. changePayAmount(event){//输入支付金额控制
  311. const _self = this;
  312. const value = event.target.value;
  313. if(value === "" || value <0 ){//判断是否等于0 或者为空
  314. this.payAmount = '';
  315. this.payInfo.payAmount = this.payInfo.obligation;
  316. this.balanceAmount = this.toFixedFn(this.payInfo.obligation);
  317. }else if(Number(value) > this.payInfo.obligation){//判断大于应付金额
  318. this.payAmount = this.payInfo.obligation;
  319. this.payInfo.payAmount = this.payAmount;
  320. this.balanceAmount = this.toFixedFn(this.payInfo.obligation-this.payInfo.payAmount);
  321. }else{
  322. this.payAmount = value;
  323. this.payInfo.payAmount = this.payAmount;
  324. this.balanceAmount = this.toFixedFn(this.payInfo.obligation-this.payInfo.payAmount);
  325. }
  326. },
  327. changePayAmountBlur(event){//失去焦点设置金额
  328. const _self = this;
  329. this.payAmount = this.toFixedFn(event.target.value);
  330. this.payInfo.payAmount = this.payAmount;
  331. },
  332. changeTab(index,item){//选择支付方式切换
  333. this.tabIndex = index;
  334. switch (this.tabIndex) {
  335. case 0:
  336. this.payInfo.payBankNum = 'ALIPAY';
  337. break;
  338. case 1:
  339. this.payInfo.payBankNum = '';
  340. break;
  341. }
  342. },
  343. checkMobilePay(index,bankNum){//选择移动支付方式
  344. this.current = '';
  345. this.mobileTabIndex = index;
  346. this.payInfo.payBankNum = bankNum;
  347. switch (index) {
  348. case 2:// 企业网银
  349. this.bankTabIndex = 0
  350. this.payInfo.payType = '1';
  351. this.payInfo.payUserType = 'B2B';
  352. this.payInfo.payBankNum = this.bankListB2BData[0].b2B;
  353. break;
  354. case 3:// 个人网银
  355. this.bankTabIndex = 0
  356. this.payInfo.payType = '2';
  357. this.payInfo.payUserType = 'B2C';
  358. this.payInfo.payBankNum = this.bankListB2CData[0].b2C;
  359. break;
  360. }
  361. },
  362. checkBankPay(index,item){//选择网银支付方式-选择银行
  363. var _self = this;
  364. _self.bankTabIndex = index;
  365. switch (_self.mobileTabIndex) {
  366. case 2:// 企业网银
  367. _self.payInfo.payBankNum = item.b2B;
  368. break;
  369. case 3:// 个人网银
  370. _self.payInfo.payBankNum = item.b2C;
  371. break;
  372. }
  373. },
  374. copyLinkPaySubmitFn(){//复制网银支付链接
  375. var _self = this;
  376. if(_self.isPaySwitch && _self.pageType === '2'){
  377. CAIMEI.dialog('支付系统遇到点小问题,请稍后重试', false);
  378. return;
  379. }
  380. if(_self.payAmount === ''){
  381. CAIMEI.dialog('请输入本次支付金额');
  382. return;
  383. }
  384. if(_self.payAmount === 0){
  385. CAIMEI.dialog('本次支付金额不能为0');
  386. return;
  387. }
  388. if(_self.payAmount <= 10){
  389. CAIMEI.dialog('网银支付的金额必须大于¥12.00');
  390. return;
  391. }
  392. if( _self.orderFlag === 1 && _self.mobileTabIndex === 2){
  393. if(_self.payAmount*1 !== _self.obligation){
  394. CAIMEI.Alert('企业网银支付每次收取的手续费较高,建议一次性全额付款。','确定',false);
  395. return;
  396. }
  397. }
  398. let params = {};
  399. if(_self.pageType === 2){
  400. params = {
  401. unpaidAmount:_self.payAmount,
  402. vipRecordId: _self.vipRecordId,
  403. payType:_self.payInfo.payType,
  404. }
  405. }else{
  406. params = {
  407. unpaidAmount:_self.payAmount,
  408. shopOrderId:_self.payInfo.shopOrderId,
  409. payType:_self.payInfo.payType
  410. }
  411. }
  412. _self.hlb_CopyLinkPaySubmitFn(params)
  413. },
  414. hidePayAlert(){//隐藏已支付弹窗
  415. var _self = this;
  416. _self.isPayAlert = false;
  417. },
  418. RefreshBody(){//刷新页面
  419. var _self = this;
  420. if(_self.payInfo.payBankNum == 'WEIXIN'){
  421. if( _self.pageType == '2' ){ // 验证支付(支付会员)
  422. PayApi.PayOrderPayVipCheck({recordId : _self.vipRecordId},function(response){
  423. // console.log(response);
  424. if(response.code === 0){
  425. _self.windowLocationHref('success');
  426. }else{
  427. _self.windowLocationHref('error');
  428. }
  429. });
  430. }else if(_self.pageType == '3'){ // 验证支付(优惠券)
  431. PayApi.PayOrderPayCouponCheck({ couponRecordId: _self.couponRecordId },function(response){
  432. // console.log(response);
  433. if(response.code === 0){
  434. _self.windowLocationHref('success');
  435. }else{
  436. _self.windowLocationHref('error');
  437. }
  438. });
  439. }else{
  440. PayApi.PayOrderPayWhetherSuccess({shopOrderId: _self.payInfo.shopOrderId, paySuccessCounter:_self.paySuccessCounter,shopOrderId:_self.payInfo.shopOrderId},function(response){
  441. _self.isPayAlert = false;
  442. if(response.code === 0){
  443. _self.windowLocationHref('success');
  444. }else{
  445. _self.windowLocationHref('error');
  446. }
  447. });
  448. }
  449. }else if(_self.payInfo.payBankNum == 'ALIPAY'){// 校验支付宝支付成功
  450. PayApi.PayOrderFindOrderStatus({mbOrderId:_self.mbOrderId,orderFlag:_self.orderFlag,shopOrderId:_self.payInfo.shopOrderId},function(response){
  451. if(response.code === 0){
  452. _self.isPayAlert = false;
  453. var data = response.data;
  454. if(data.rt7_orderStatus === 'SUCCESS'){
  455. _self.windowLocationHref('success');
  456. }else{
  457. _self.windowLocationHref('error');
  458. }
  459. }else{
  460. CAIMEI.Alert(response.msg,'确定',false);
  461. }
  462. });
  463. }else{// 校验网银支付成功
  464. PayApi.PayOrderUnionStatus({mbOrderId:_self.mbOrderId,orderFlag:_self.orderFlag,shopOrderId:_self.payInfo.shopOrderId},function(response){
  465. if(response.code === 0){
  466. _self.isPayAlert = false;
  467. var data = response.data;
  468. if(data.rt10_orderStatus === 'SUCCESS'){
  469. _self.windowLocationHref('success');
  470. }else{
  471. _self.windowLocationHref('error');
  472. }
  473. }else{
  474. CAIMEI.Alert(response.msg,'确定',false);
  475. }
  476. });
  477. }
  478. },
  479. windowLocationHref(state){
  480. const _self = this;
  481. if( _self.pageType === '1'){
  482. window.location.href = '/pay/success.html?pageType=second&type='+state+'&payAmount='+_self.payAmount;
  483. }else if(_self.pageType === '2'){
  484. window.location.href = '/pay/success.html?pageType=vip&type='+state+'&payAmount='+_self.payAmount;
  485. }else if(_self.pageType === '3') {
  486. window.location.href = '/pay/success.html?pageType=coupon&type=' + state + '&payAmount=' + _self.couponInfo.moneyCouponPrice;
  487. }else{
  488. window.location.href = '/pay/success.html?pageType=www&type='+state+'&payAmount='+_self.payAmount;
  489. }
  490. },
  491. payTypeText(record) {
  492. //处理支付记录文字
  493. const map = {
  494. 12: '企业网银',
  495. 13: '微信支付',
  496. 14: '支付宝',
  497. 15: '微信支付',
  498. 16: '余额抵扣',
  499. }
  500. if(record.payType === 28 || record.payType === 29 ){
  501. return record.quickPayStr
  502. }else{
  503. return map[record.payType]
  504. }
  505. },
  506. toFixedFn(text){//处理小数点后两位数
  507. return Number(text).toFixed(2);
  508. },
  509. },
  510. mounted () {
  511. const _self = this;
  512. // 判断当前支付是订单支付
  513. this.pageType = CAIMEI.getUrlParam('pageType');
  514. if (this.pageType === '1') {//二手
  515. this.productID = CAIMEI.getUrlParam('productID');
  516. this.payAmount = _self.toFixedFn(100);
  517. this.isRequest = true;
  518. this.payStatusText = '';
  519. this.orderFlag = 0;
  520. } else if (this.pageType === '2') { // 支付会员
  521. this.svipPayFlag = true;
  522. this.orderFlag = 0;
  523. this.vipRecordId = this.params.vipRecordId = parseInt(CAIMEI.getUrlParam('vipRecordId'));
  524. this.params.quickPayFlag = 2;
  525. this.PayOrderOnLineSwitch();
  526. // 从本地获取选中的svip套餐信息后删除本地信息
  527. this.comboInfo = JSON.parse(CAIMEI.Storage.getItem('comboInfo'));
  528. // CAIMEI.Storage.removeItem('comboInfo');
  529. // 设置支付金额
  530. this.payAmount = this.toFixedFn(this.comboInfo.price);
  531. // 获取银行列表
  532. this.getBankList();
  533. this.userClubBanks()
  534. } else if(this.pageType === '3') {// 支付优惠券
  535. this.couponPayFlag = true
  536. this.orderFlag = 0;
  537. this.couponId = this.params.couponId = parseInt(CAIMEI.getUrlParam('couponId'));
  538. this.couponRecordId = this.params.couponRecordId = parseInt(CAIMEI.getUrlParam('couponRecordId'));
  539. this.params.quickPayFlag = 4;
  540. this.initCouponDetail(this.couponId);
  541. this.PayOrderOnLineSwitch();
  542. this.getBankList();
  543. this.userClubBanks()
  544. }else{
  545. this.orderFlag = 1;
  546. this.payInfo.shopOrderId = this.params.shopOrderId = CAIMEI.getUrlParam('shopOrderId');
  547. this.params.quickPayFlag = 1;
  548. // 获取银行列表
  549. this.getBankList();
  550. this.userClubBanks()
  551. //正常订单初始化
  552. this.infoPayOrderCheckoutCounter();
  553. }
  554. const viewer = window.navigator.userAgent.toLowerCase();
  555. if(viewer.match(/MicroMessenger/i) == 'micromessenger'){
  556. this.is_Wechat_bowcr = true;
  557. this.payInfo.payBankNum = 'WEIXIN';
  558. this.mobileTabIndex = 1;
  559. }else{
  560. this.is_Wechat_bowcr = false;
  561. this.payInfo.payBankNum = 'ALIPAY';
  562. this.mobileTabIndex = 0;
  563. }
  564. this.loginLoading = false
  565. }
  566. });