|
@@ -18,7 +18,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='content1'>
|
|
<view class='content1'>
|
|
- <view class="title">上传企业授权书</view>
|
|
|
|
|
|
+ <!-- <view class="title">上传企业授权书</view> -->
|
|
|
|
+ <view class="flex">
|
|
|
|
+ <view class="title">上传企业授权书</view>
|
|
|
|
+ <view class="title title_css" @click="formWork">授权书模板</view>
|
|
|
|
+ </view>
|
|
<!-- {{show}} -->
|
|
<!-- {{show}} -->
|
|
<!-- <button type="default" @click="()=>{show = true}" style="width: 80%;background-color: #007AFF;color: #fff;margin-top: 60rpx;">选择文件</button>
|
|
<!-- <button type="default" @click="()=>{show = true}" style="width: 80%;background-color: #007AFF;color: #fff;margin-top: 60rpx;">选择文件</button>
|
|
<view class="textStyle" v-for="(item,index) in pathArr" :key="index">
|
|
<view class="textStyle" v-for="(item,index) in pathArr" :key="index">
|
|
@@ -76,6 +80,8 @@
|
|
提交
|
|
提交
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-picker :show="formWorkShow" @cancel="formWorkShow = false" @close="formWorkShow = false"
|
|
|
|
+ :columns="formWorkColumns" @confirm="formWorkSubmit"></u-picker>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -103,7 +109,11 @@
|
|
uploadType:'',
|
|
uploadType:'',
|
|
index:0,
|
|
index:0,
|
|
fileList1: [],
|
|
fileList1: [],
|
|
- urlList:[]
|
|
|
|
|
|
+ urlList:[],
|
|
|
|
+ formWorkShow: false,
|
|
|
|
+ formWorkColumns: [
|
|
|
|
+ ["复制下载链接", "预览模板"]
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -144,6 +154,44 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ formWork() {
|
|
|
|
+ this.formWorkShow = true
|
|
|
|
+ },
|
|
|
|
+ formWorkSubmit(e) {
|
|
|
|
+ let that = this
|
|
|
|
+ console.log(e.value[0])
|
|
|
|
+ if (e.value[0] == "复制下载链接") {
|
|
|
|
+ uni.setClipboardData({
|
|
|
|
+ data: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/contractPdf/1069f84fcbbe4c2d9ce048bf98ea7a63.pdf',
|
|
|
|
+ success: function() {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '复制成功',
|
|
|
|
+ });
|
|
|
|
+ that.formWorkShow = false
|
|
|
|
+ },
|
|
|
|
+ fail: function() {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '复制失败',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ uni.downloadFile({
|
|
|
|
+ url: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/contractPdf/1069f84fcbbe4c2d9ce048bf98ea7a63.pdf',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ var filePath = res.tempFilePath;
|
|
|
|
+ uni.openDocument({
|
|
|
|
+ filePath: filePath,
|
|
|
|
+ showMenu: true,
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log('打开文档成功');
|
|
|
|
+ that.formWorkShow = false
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async get_camera_permission() {
|
|
async get_camera_permission() {
|
|
var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
if(photol == false){
|
|
if(photol == false){
|
|
@@ -384,6 +432,13 @@
|
|
.title {
|
|
.title {
|
|
color: #999999;
|
|
color: #999999;
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
|
|
+ width: 50%;
|
|
|
|
+ }
|
|
|
|
+ .title_css {
|
|
|
|
+ text-align: right;
|
|
|
|
+ color: #2772FB;
|
|
|
|
+ margin: 20rpx 0;
|
|
|
|
+ font-size: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.u-input{
|
|
.u-input{
|