提交 805cd6e2 编写于 作者: tao.wu's avatar tao.wu

增加H5页面唤醒APP功能

上级 ed24f219
......@@ -195,6 +195,7 @@
.wx-share-wrap {
width: 100%;
height: 100vh;
// padding-bottom: 60px;
button,input{
appearance: none;
border: none;
......@@ -377,6 +378,7 @@
.wx-share-result{
width: 100%;
position: relative;
padding-bottom: 60px;
section{
width: 100%;
padding-top: 40px;
......
......@@ -88,4 +88,14 @@
right: 20px;
position: absolute;
}
}
\ No newline at end of file
}
.call-app-container{
.flex-right{
.btn{
height: 32px;
box-sizing: border-box;
font-size: 14px;
}
}
}
......@@ -2818,6 +2818,11 @@
"schema-utils": "^1.0.0"
}
},
"callapp-lib": {
"version": "2.1.8",
"resolved": "http://192.168.110.93:4873/callapp-lib/-/callapp-lib-2.1.8.tgz",
"integrity": "sha512-9FUmTz0LCCF43LhiMEN3CJ4RuLGppu8hOn0u9UzUFyd7TU7AXW82Zc9qTq4Mfes36yOGqNYO1v8DJdkQY7+7rA=="
},
"caller-callsite": {
"version": "2.0.0",
"resolved": "http://192.168.110.93:4873/caller-callsite/-/caller-callsite-2.0.0.tgz",
......@@ -8511,8 +8516,7 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"aproba": {
"version": "1.2.0",
......@@ -8555,8 +8559,7 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"concat-map": {
"version": "0.0.1",
......@@ -8567,8 +8570,7 @@
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -8685,8 +8687,7 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"ini": {
"version": "1.3.5",
......@@ -8698,7 +8699,6 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -8728,7 +8728,6 @@
"version": "2.3.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -8747,7 +8746,6 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -8841,7 +8839,6 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -8927,8 +8924,7 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -8964,7 +8960,6 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -8984,7 +8979,6 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -9028,14 +9022,12 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true
"dev": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"dev": true,
"optional": true
"dev": true
}
}
},
......@@ -9656,6 +9648,33 @@
"resolved": "http://192.168.110.93:4873/performance-now/-/performance-now-2.1.0.tgz",
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
},
"pica-call-app": {
"version": "1.0.42",
"resolved": "http://192.168.110.93:4873/pica-call-app/-/pica-call-app-1.0.42.tgz",
"integrity": "sha512-SV1Ipa02GU3lT1cPC1qVD1GfiqHdFvXUA2TdxdncqTVUbqfJ27FlT+Beu3eWu9GdqDI5nRnu0sGk+pwH0QcsIA==",
"requires": {
"callapp-lib": "^2.1.7",
"vant": "^1.4.2"
},
"dependencies": {
"@vant/icons": {
"version": "1.1.7",
"resolved": "http://192.168.110.93:4873/@vant%2ficons/-/icons-1.1.7.tgz",
"integrity": "sha1-KVYa3/+mp1DSedzNvpppt0OTTz8="
},
"vant": {
"version": "1.6.28",
"resolved": "http://192.168.110.93:4873/vant/-/vant-1.6.28.tgz",
"integrity": "sha512-yGiQFPA7tmvlA05ezWg2MnknDK2OKlHmJurvHm2mWt1zdjfiVDJj+XFh6xMY8jZUsBZMWqdBSc+gAKzII8fOqg==",
"requires": {
"@babel/runtime": "^7.4.3",
"@vant/icons": "1.1.7",
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.3",
"vue-lazyload": "1.2.3"
}
}
}
},
"pica-h5-login": {
"version": "1.0.63",
"resolved": "http://192.168.110.93:4873/pica-h5-login/-/pica-h5-login-1.0.63.tgz",
......@@ -13647,8 +13666,7 @@
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -13788,7 +13806,6 @@
"minipass": {
"version": "2.3.5",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -13805,7 +13822,6 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -13889,7 +13905,6 @@
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -13965,8 +13980,7 @@
},
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"optional": true
"bundled": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -13996,7 +14010,6 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -14053,13 +14066,11 @@
},
"wrappy": {
"version": "1.0.2",
"bundled": true,
"optional": true
"bundled": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"optional": true
"bundled": true
}
}
},
......
......@@ -49,15 +49,23 @@
<button class="btn-post" @click="getCourse">领取课程</button>
</div>
</section>
<no-ssr>
<pica-call-app
:path="path"
:text="'更多精彩内容,不容错过'"
/>
</no-ssr>
</div>
</template>
<script>
import { getInviteInfo, getCourseById, getCaptchaGet, getAuthCode } from '@/service';
import { getShareUrl } from '@/utils/index';
import { wxShare } from '@/configs/wxShare';
import { Base64 } from 'js-base64';
const queryString = require('query-string');
const TIMEALL = 60000; // 倒计时常量 60 秒
export default {
data(){
return {
......@@ -72,6 +80,7 @@
time: TIMEALL,
btnMsg: '点击获取',
isReq: false,
path: getShareUrl() + 'year_end_ssr/activityPage',
}
},
async asyncData({ query }){
......
......@@ -49,17 +49,25 @@
</div>
</div>
</section>
<no-ssr>
<pica-call-app
:path="path"
:text="'更多精彩内容,不容错过'"
/>
</no-ssr>
<div v-if="showMask" @click="showMask=false" class="mask-div"><img src="../assets/img/mask.png"></div>
</div>
</template>
<script>
import { getShareUrl } from '@/utils/index';
import { wxShare } from '@/configs/wxShare';
export default {
data(){
return {
statusTxt: '',
showMask: false,
path: getShareUrl() + 'year_end_ssr/activityPage',
}
},
mounted(){
......
import Vue from 'vue'
import PicaJsBridge from '@/utils/jsbridge'
import Vconsole from 'vconsole';
const vConsole = new Vconsole();
// import Vconsole from 'vconsole';
// const vConsole = new Vconsole();
Vue.prototype.$rocNative = new PicaJsBridge();
......@@ -2,6 +2,7 @@ import Vue from 'vue'
import {
BASE_URL
} from '@/utils/enumerate';
import PicaCallApp from 'pica-call-app';
import PicaWxShare from 'pica-wx-share';
Vue.prototype.$picaWxShare = PicaWxShare;
......@@ -29,10 +30,11 @@ import WebBuriedPoint, {
sendBuriedData
} from 'web-buried-point';
Vue.use(PicaCallApp);
Vue.use(CountDown).use(Field).use(Cell).use(CellGroup).use(Button).use(Popup).use(Checkbox).use(CheckboxGroup).use(RadioGroup).use(Radio).use(Progress).use(ImagePreview).use(Uploader).use(Overlay).use(Loading);
Vue.use(PicaH5Login);
Vue.use(Toast)
Vue.use(Dialog)
Vue.use(Toast);
Vue.use(Dialog);
const {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册