|
@@ -225,6 +225,13 @@
|
|
|
</svg>
|
|
</svg>
|
|
|
<view class="text-email">Send receipt to my email</view>
|
|
<view class="text-email">Send receipt to my email</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="card-view flexc" @click="downloadReceipt">
|
|
|
|
|
+ <i-icon
|
|
|
|
|
+ name="file-download-fill"
|
|
|
|
|
+ color="#009E81"
|
|
|
|
|
+ size="46rpx"/>
|
|
|
|
|
+ <view class="text-email">Download receipt</view>
|
|
|
|
|
+ </view>
|
|
|
<button class="ui-button button-anim" type="primary" @click="toHome">DONE</button>
|
|
<button class="ui-button button-anim" type="primary" @click="toHome">DONE</button>
|
|
|
</view>
|
|
</view>
|
|
|
</x-skeleton>
|
|
</x-skeleton>
|
|
@@ -306,6 +313,9 @@ import apiCharge from '@/api/apiCharge';
|
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ downloadReceipt() {
|
|
|
|
|
+ apiCharge.downloadRecript(this.chargingPk);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.getReceipt();
|
|
this.getReceipt();
|