|
@@ -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="400px">
|
|
|
+ <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>
|
|
|
+ <view class="menber-box">
|
|
|
+ <u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="recordShow = false">确定</u-button>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-top-tips ref="uTips"></u-top-tips>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -56,6 +69,8 @@
|
|
|
return {
|
|
|
qrCodeShow: false,
|
|
|
qrCodeUrl: '',
|
|
|
+ contractShow: false,
|
|
|
+ contractUrls: [],
|
|
|
triggered: false,
|
|
|
isOver: false,
|
|
|
pageIndex: 1,
|
|
@@ -125,14 +140,19 @@
|
|
|
},
|
|
|
// 查看合同
|
|
|
checkContract(item) {
|
|
|
- uni.downloadFile({
|
|
|
- url: item.url,
|
|
|
- success: (res) => {
|
|
|
- uni.openDocument({
|
|
|
- filePath: res.tempFilePath,
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
+ 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))
|
|
|
+ // })
|
|
|
},
|
|
|
},
|
|
|
}
|
|
@@ -184,4 +204,20 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .common-title {
|
|
|
+ width:100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 20px;
|
|
|
+ margin: 10px 0;
|
|
|
+ }
|
|
|
+ .menber-box {
|
|
|
+ width: 100%;
|
|
|
+ // float: left;
|
|
|
+ padding: 10px 15px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+
|
|
|
+ .card-item {
|
|
|
+ padding: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|