|
@@ -8,19 +8,22 @@
|
|
|
@click-overlay="showFlag = false"
|
|
|
style="height: 40%;">
|
|
|
<wx-open-launch-weapp
|
|
|
+ ref="launchBtn"
|
|
|
:username="accountId"
|
|
|
:path="appPath"
|
|
|
- style="display: block;width: 100%;height: 100%;">
|
|
|
+ style="position: absolute;left:0;top:0;width: 100%;height: 100%;"
|
|
|
+ @error="errorHandle">
|
|
|
<script type="text/wxtag-template">
|
|
|
<style>
|
|
|
.jump-btn {
|
|
|
- height: 44px;
|
|
|
- line-height: 44px;
|
|
|
- border: none;
|
|
|
- font-size: 16px;
|
|
|
- color: #ffffff;
|
|
|
- background-color: #f94048;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 100%;
|
|
|
text-align: center;
|
|
|
+ font-size: 12px;
|
|
|
}
|
|
|
</style>
|
|
|
<div class="jump-btn">打开小程序</div>
|
|
@@ -33,6 +36,7 @@
|
|
|
<script>
|
|
|
import { Toast, Popup, Dialog } from 'vant'
|
|
|
import { getJumpConfig } from '../marketing/save/api'
|
|
|
+import { platform } from '../../utils/platform'
|
|
|
|
|
|
export default {
|
|
|
name: 'index',
|
|
@@ -81,6 +85,11 @@ export default {
|
|
|
this.showFlag = true
|
|
|
// top.location.href = url
|
|
|
}
|
|
|
+ if (platform.isWeixin) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.launchBtn.click()
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
Toast(msg)
|
|
|
}
|