|
@@ -35,17 +35,17 @@
|
|
|
<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="400px">
|
|
|
+ <u-popup v-model="contractShow" mode="center" border-radius="30" width="600rpx" height="500px">
|
|
|
<view class="common-title">合同列表</view>
|
|
|
- <view class="menber-box">
|
|
|
- <u-card :head-border-bottom="false" padding="0px" margin="10px" borderRadius="40" v-for="(item, index) in contractUrls">
|
|
|
- <view class="card-item" slot="body">
|
|
|
- 1111111111
|
|
|
- </view>
|
|
|
- </u-card>
|
|
|
+ <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="menber-box">
|
|
|
- <u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="recordShow = false">确定</u-button>
|
|
|
+ <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>
|
|
@@ -61,6 +61,7 @@
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
+ 'customStyle',
|
|
|
'handleCustomStyle',
|
|
|
'handleDefaultCustomStyle',
|
|
|
])
|
|
@@ -139,20 +140,21 @@
|
|
|
});
|
|
|
},
|
|
|
// 查看合同
|
|
|
+ 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
|
|
|
- // uni.downloadFile({
|
|
|
- // url: item.url,
|
|
|
- // success: (res) => {
|
|
|
- // uni.openDocument({
|
|
|
- // filePath: res.tempFilePath,
|
|
|
- // });
|
|
|
- // }
|
|
|
- // })
|
|
|
- // uni.navigateTo({
|
|
|
- // url: '/pagesMain/contractList?contractUrls=' + encodeURIComponent(JSON.stringify(item))
|
|
|
- // })
|
|
|
},
|
|
|
},
|
|
|
}
|
|
@@ -204,20 +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;
|
|
|
- margin: 10px 0;
|
|
|
+ padding: 10px 0;
|
|
|
}
|
|
|
- .menber-box {
|
|
|
- width: 100%;
|
|
|
- // float: left;
|
|
|
+ .button-box {
|
|
|
+ // width: 100%;
|
|
|
padding: 10px 15px;
|
|
|
- margin-bottom: 10px;
|
|
|
-
|
|
|
- .card-item {
|
|
|
- padding: 10px;
|
|
|
- }
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .card-item {
|
|
|
+ width: 100%;
|
|
|
+ padding:8px;
|
|
|
+ border-radius: 10px;
|
|
|
+ background-color: #ff6e3e;
|
|
|
+ margin-bottom: 8px;
|
|
|
}
|
|
|
</style>
|