Sfoglia il codice sorgente

分享落地页:打开微信小程序

panyong 3 anni fa
parent
commit
c289c857a0

+ 1 - 7
htmldev/cps/src/views/common/openWxMiniProgram/index.vue

@@ -92,14 +92,8 @@ export default {
         if (status) {
           // type 类型:1-h5 2-小程序
           const { type, url } = data
-          let pagePath = data.page_path
           this.accountId = data.app_id
-          if (pagePath.indexOf('.html?') === -1) {
-            pagePath = pagePath.replace('?', '.html?')
-          } else if (pagePath.indexOf('?') === -1) {
-            pagePath += '.html'
-          }
-          this.appPath = pagePath
+          this.appPath = data.page_path
           if (type === 2 && isSupportJumpWXmini()) {
             this.showFlag = true
           } else {