12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!-- 发票详情 -->
- <template>
- <view class="details">
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- invoiceInfo: null
- };
- },
- onLoad(options) {
- const { id, orderType } = options;
- if (id) {
- // this.getInvoiceDetails(id);
- }
- },
- methods: {
- /**
- * @description: 获取发票详情
- * @param {*} id
- * @return {*}
- */
- async getInvoiceDetails(id) {
- const { code, data } = await this.$u.api.invoiceModuleApi.getInvoiceDetailsApi({ id });
- if (code === 200) {
- this.invoiceInfo = data;
- }
- },
- /**
- * @description: 预览图片
- * @param {*} url
- * @return {*}
- */
- previewImage(url) {
- uni.previewImage({
- urls: [url]
- });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- @import './invoiceDetails.scss';
- </style>
|