123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <template>
- <view class="content">
- <web-view v-if="info.url" class="web-view" :src="info.url"></web-view>
- <view class="btns">
-
-
-
-
-
- </view>
-
-
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- thetoken:'',
- orderid:'',
- info: {
- url: ''
- },
-
- showShare:false,
-
- };
- },
- onLoad(e) {
- console.log('e',e);
- this.thetoken = 'Bearer' + ' ' + this.$store.state.token;
- this.orderid = e.orderid;
-
-
-
-
- uni.showLoading({
- title: '正在获取证书信息'
- });
- this.$api.http.get(this.config.apiBaseurl + '/carbon-h5/wap/order/getCredentialByOrderId?orderId='+this.orderid,{
- header: {
- Accept:'application/json',
- Authorization: this.thetoken,
- },
- }).then(res => {
- uni.hideLoading();
-
- this.info.url = '/static/html2canvas/index.html?key=' + this.orderid;
- console.log('res',JSON.parse(JSON.stringify(res.data.retBody)));
- }).catch(err =>{
- console.log('err',err)
- });
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- },
-
- onNavigationBarButtonTap(e) {
- this.$api.gohome(e);
- },
- methods: {
-
- showShareFun(){
- this.showShare = !this.showShare;
- },
- share() {
-
- this.$wxApi.showMenu();
- this.showShareFun();
-
- this.$wxApi.share({
- orderId: this.info.orderId
- });
- }
-
- }
- };
- </script>
- <style lang="scss">
- .content {
- .btns {
- position: absolute;
- top: 88%;
- width: 100%;
- display: flex;
- z-index: 1;
- button {
- flex: 1;
- margin: 0 10% 10% 10%;
- }
- }
- }
- .web-view {
- box-sizing: border-box;
- }
- .share-bg{
- position: fixed;
- z-index: 998;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- overflow: hidden;
- background: rgba(0,0,0,.7);
- box-sizing: border-box;
- &::after{
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: url(http://fqn.hongweisoft.com/cqcarbon/wxapp/guide01.png) no-repeat top right;
- background-size: 80% auto;
- }
- }
- </style>
|