|
@@ -3,7 +3,7 @@
|
|
|
<scroll-view scroll-y class="scroll-box" @scrolltolower="handleLoadMore" :refresher-enabled="true"
|
|
|
:refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
|
|
|
@refresherrestore="onRestore">
|
|
|
- <u-card :head-border-bottom="false" :foot-border-top="false" padding="0px" margin="10px" borderRadius="40" v-for="(item, index) in tableList"
|
|
|
+ <u-card :head-border-bottom="false" padding="0px" margin="10px" borderRadius="40" v-for="(item, index) in tableList"
|
|
|
:key="index" class="class-card">
|
|
|
<view class="class-content" slot="head" style="padding-top: 10px;">
|
|
|
<view class="class-name">{{item.className}}</view>
|
|
@@ -22,6 +22,11 @@
|
|
|
支付金额:{{item.factPrices}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="class-content" slot="foot" style="padding-top: 10px;padding-bottom: 10px;text-align: right;">
|
|
|
+ <u-button type="default" shape="circle" :ripple="true" :custom-style="handleDefaultCustomStyle" size="mini"
|
|
|
+ :hair-line="false" plain @click.stop="copyOrderNumber(item)">复制订单号</u-button>
|
|
|
+ <u-button type="warning" shape="circle" :ripple="true" :custom-style="handleCustomStyle" size="mini" @click.stop="checkContract(item)">查看合同</u-button>
|
|
|
+ </view>
|
|
|
</u-card>
|
|
|
<u-divider v-if="isOver" bg-color="transparent">没有更多了</u-divider>
|
|
|
</scroll-view>
|
|
@@ -37,7 +42,10 @@
|
|
|
const API = require('@/config/api')
|
|
|
export default {
|
|
|
computed: {
|
|
|
- ...mapGetters([])
|
|
|
+ ...mapGetters([
|
|
|
+ 'handleCustomStyle',
|
|
|
+ 'handleDefaultCustomStyle',
|
|
|
+ ])
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -88,7 +96,30 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 复制订单号
|
|
|
+ copyOrderNumber(item) {
|
|
|
+ uni.setClipboardData({
|
|
|
+ data: item.orderNumber,
|
|
|
+ success: () => {
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: '复制成功',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 查看合同
|
|
|
+ checkContract(item) {
|
|
|
+ uni.downloadFile({
|
|
|
+ url: item.url,
|
|
|
+ success: (res) => {
|
|
|
+ uni.openDocument({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|