浏览代码

no message

linwenxin 5 月之前
父节点
当前提交
f24dcfb5bb
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/packageEnter/pages/insurance/determineInfo/index.vue

+ 8 - 0
src/packageEnter/pages/insurance/determineInfo/index.vue

@@ -94,6 +94,14 @@ export default {
   methods: {
   methods: {
     async pay() {
     async pay() {
       mini_env(bool => {
       mini_env(bool => {
+        if (!bool) {
+          uni.showToast({
+            title: '请转移到小程序进行支付操作',
+            icon: 'success',
+            duration: 2000
+          })
+          return
+        }
         this.$api.post('/worker/pay', { policyOrderId: this.info.id }).then(res => {
         this.$api.post('/worker/pay', { policyOrderId: this.info.id }).then(res => {
           // 小程序环境
           // 小程序环境
           if (bool) {
           if (bool) {