Blame view

pages/invoicePreview/invoicePreview.vue 665 Bytes
28010de0   chenbiao   add 发票申领 发票填充
1
2
  <template>
  	<view>
81028275   刘淇   发票
3
4
5
  		<!--<image style="width: 100%" mode="scaleToFill" :src="src"-->
  		<!--@error="imageError"></image>-->
  		<web-view :src="invoiceUrl"></web-view>
28010de0   chenbiao   add 发票申领 发票填充
6
7
8
9
  	</view>
  </template>
  
  <script>
81028275   刘淇   发票
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  export default {
    data() {
      return {
        src: '',
        invoiceUrl:'',
        index:0,
      };
    },
    onLoad(params) {
      var pages = getCurrentPages();//当前页
      var beforePage = pages[pages.length - 3];//上二个页面
      console.log(beforePage.$vm.list)
      console.log(params)
      this.index = params.index
      this.invoiceUrl = beforePage.$vm.list[this.index].invoiceUrl
      console.log(this.invoiceUrl)
    },
  }
28010de0   chenbiao   add 发票申领 发票填充
28
29
30
31
32
  </script>
  
  <style lang="scss">
  
  </style>