|
@@ -35,6 +35,19 @@
|
|
|
<u-modal v-model="qrCodeShow" title="二维码">
|
|
|
<u-image :src="qrCodeUrl" mode="aspectFill" height="45vw" width="45vw" style="display: flex; justify-content: center;"></u-image>
|
|
|
</u-modal>
|
|
|
+ <u-popup v-model="contractShow" mode="center" border-radius="30" width="600rpx" height="500px">
|
|
|
+ <view class="common-title">合同列表</view>
|
|
|
+ <view class="menber-box" style="overflow-y: auto;height:390px;">
|
|
|
+ <template v-for="(item, index) in contractUrls">
|
|
|
+ <view class="card-item" :key="index" @click="handleContractShowClick(item)">
|
|
|
+ {{ item.name }}
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ <view class="button-box">
|
|
|
+ <u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="contractShow = false">确定</u-button>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-top-tips ref="uTips"></u-top-tips>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -48,6 +61,7 @@
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
+ 'customStyle',
|
|
|
'handleCustomStyle',
|
|
|
'handleDefaultCustomStyle',
|
|
|
])
|
|
@@ -56,6 +70,8 @@
|
|
|
return {
|
|
|
qrCodeShow: false,
|
|
|
qrCodeUrl: '',
|
|
|
+ contractShow: false,
|
|
|
+ contractUrls: [],
|
|
|
triggered: false,
|
|
|
isOver: false,
|
|
|
pageIndex: 1,
|
|
@@ -124,16 +140,22 @@
|
|
|
});
|
|
|
},
|
|
|
// 查看合同
|
|
|
- checkContract(item) {
|
|
|
+ handleContractShowClick(item) {
|
|
|
uni.downloadFile({
|
|
|
url: item.url,
|
|
|
success: (res) => {
|
|
|
+ console.log(res);
|
|
|
uni.openDocument({
|
|
|
filePath: res.tempFilePath,
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 显示合同列表
|
|
|
+ checkContract(item) {
|
|
|
+ this.contractUrls = item.url
|
|
|
+ this.contractShow = true
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -184,4 +206,51 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .menber-box {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px 15px;
|
|
|
+
|
|
|
+ .menber-col {
|
|
|
+ width: 100%;
|
|
|
+ padding: 15px;
|
|
|
+ display: inline-block;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 15px;
|
|
|
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .menber-label {
|
|
|
+ width: 100%;
|
|
|
+ font-size: 14px;
|
|
|
+ // line-height: 20px;
|
|
|
+ }
|
|
|
+ .menber-num {
|
|
|
+ width: 100%;
|
|
|
+ font-size: 26px;
|
|
|
+ line-height: 28px;
|
|
|
+ color: $mainColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .common-title {
|
|
|
+ width:100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 20px;
|
|
|
+ padding: 10px 0;
|
|
|
+ }
|
|
|
+ .button-box {
|
|
|
+ // width: 100%;
|
|
|
+ padding: 10px 15px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .card-item {
|
|
|
+ width: 100%;
|
|
|
+ padding:8px;
|
|
|
+ border-radius: 10px;
|
|
|
+ background-color: #ff6e3e;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
</style>
|