jufubao-movie 1.0.52 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -288,6 +288,11 @@
288
288
  import {getContainerPropsValue, baseJsDateToTime,getParentsStyle} from "@/utils/xd.base";
289
289
  import {mapState} from 'vuex';
290
290
 
291
+ // #ifdef H5
292
+ import cookie from "@/common/cookie";
293
+ //#endif
294
+ import {Base64} from "js-base64";
295
+
291
296
  export default {
292
297
  name: "JfbMovieConfirm",
293
298
  components: {
@@ -702,9 +707,10 @@
702
707
  total_price: this.res_total_price,
703
708
  selected_card_list_json: "[]"
704
709
  }, (res1) => {
705
- this.$xdUniHelper.redirectTo({
706
- url: this.payPath + `?order_id=${res1['pay_order_id']}&main_order_id=${res1['order_id']}`
707
- }, false, true)
710
+ this.handleToPay(res1);
711
+ // this.$xdUniHelper.redirectTo({
712
+ // url: this.payPath + `?order_id=${res1['pay_order_id']}&main_order_id=${res1['order_id']}`
713
+ // }, false, true)
708
714
  })
709
715
  }
710
716
  }
@@ -841,6 +847,27 @@
841
847
  this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
842
848
  this.getContent();
843
849
  },
850
+
851
+ handleToPay(res){
852
+ let payPath = '';
853
+ let isMp = false;
854
+ // #ifdef H5
855
+ payPath = cookie.get(`jfb-pay-path-${this.brandInfo.site_id}`);
856
+ if(navigator.userAgent.match(/miniprogram/i)) isMp = true;
857
+ //#endif
858
+ if(payPath && isMp) {
859
+ payPath = Base64.encodeURI(`${this.payPath}?order_id=${res['pay_order_id']}&main_order_id=${res['order_id']}`);
860
+ this['$xdUniHelper'].redirectTo({
861
+ url: `/pages/jumptomp/jumptomp?callback=${payPath}`
862
+ });
863
+ }
864
+ else {
865
+ this.$xdUniHelper.redirectTo({
866
+ url: this.payPath + `?order_id=${res['pay_order_id']}&main_order_id=${res['order_id']}`
867
+ }, false, true)
868
+ }
869
+ },
870
+
844
871
  handleCreateSuccess(val) {
845
872
  if (val.need_pay_price == 0) {
846
873
  this.$xdUniHelper.redirectTo({
@@ -850,9 +877,10 @@
850
877
  else {
851
878
  //支持补差, 跳转补差页
852
879
  if(this.payThird){
853
- this.$xdUniHelper.redirectTo({
854
- url: this.payPath + `?order_id=${val['pay_order_id']}&main_order_id=${val['order_id']}`
855
- })
880
+ this.handleToPay(val)
881
+ // this.$xdUniHelper.redirectTo({
882
+ // url: this.payPath + `?order_id=${val['pay_order_id']}&main_order_id=${val['order_id']}`
883
+ // })
856
884
  }else{
857
885
  this.$xdAlert({
858
886
  content: '余额不足,请选择其他票券',