lyuis 7 kuukautta sitten
vanhempi
sitoutus
329ed233a7

+ 4 - 0
pages/index/webView.vue

@@ -11,6 +11,10 @@
         },
         onLoad: function (option) {
             this.url = option.url
+			if(option&&option.title)
+				uni.setNavigationBarTitle({
+					title:option.title
+				})
         }
     }
 </script>

+ 9 - 9
pages/my/attachment.vue

@@ -19,10 +19,10 @@
 					<view class="usermain-item item-padding" v-for="item in content">
 						<view class="usermain-item-title c-flex-center"><image src="../../static/images/pdf.svg" class="header-icon" /></view>
 						<view @click="seekDoc(item)" class="fileContent c-flex-center">
-							<view class="fileName">{{item.attachment_name}}</view>
-							<view class="filedesc">{{item.attachment_size}} 更新于{{item.create_time}}</view>
+							<view class="fileName">{{item.attachmentName}}</view>
+							<view class="filedesc">{{item.attachmentSize}}kb 更新于{{item.createTime}}</view>
 						</view>
-						<view @click.stop="more(item.resumes_attachment_id)" class="c-flex-center">
+						<view @click.stop="more(item.resumesAttachmentId)" class="c-flex-center">
 							<u-icon name="more-dot-fill"></u-icon>
 						</view>
 					</view>
@@ -242,9 +242,9 @@
 					that.$queue.uploadFile(e.path,function(path){
 						if(path)
 							that.$Request.postJson("/app/resumes/saveAttachment", {
-							  		attachment_address:path,
-									attachment_name:e.name,
-									attachment_size
+							  		attachmentAddress:path,
+									attachmentName:e.name,
+									attachmentSize:attachment_size
 							  	}).then(res => {
 							  		if (res.code === 0) {
 							  			that.getUserInfo()
@@ -287,11 +287,11 @@
 			    success(res) {
 			      if (res.confirm) {
 			        that.$Request.postJson("/app/resumes/deleteAttachment", {
-			        		resumes_attachment_id: id
+			        		resumesAttachmentId: id
 			        	}).then(res => {
 			        		if (res.code === 0) {
 			        			var info = that.content.filter(function (item) {
-			        			  return item.resumes_attachment_id != id;
+			        			  return item.resumesAttachmentId != id;
 			        			});
 			        			that.content=info
 			        		} else {
@@ -312,7 +312,7 @@
 			},
 			seekDoc(it){
 				uni.navigateTo({
-					url: '/pages/index/webView?url=' + it.attachment_address
+					url: '/pages/index/webView?url=' + it.attachmentAddress+'&title='+it.attachmentName
 				});
 			}
 		},

+ 3 - 3
uni_modules/zhouquan-fileSelector/components/zhouquan-fileSelector/file-selector.vue

@@ -153,13 +153,13 @@ export default {
 
                 Array.from(e.target.files).forEach(file => {
                     //#ifdef H5
-                    ownerVm.callMethod('receiveRenderFile', {
+                    /* ownerVm.callMethod('receiveRenderFile', {
                         name: file.name,
                         filePath: URL.createObjectURL(file)
-                    })
+                    }) */
                     //#endif
 
-                    //#ifdef APP-PLUS
+                    //#ifdef APP-PLUS||H5
                     const reader = new FileReader()
                     reader.onload = ({target}) => {
                         target?.result && ownerVm.callMethod('receiveRenderFile', {