diff --git a/pages/chat/components/fileIcon.vue b/components/FileIcon/fileIcon.vue
similarity index 100%
rename from pages/chat/components/fileIcon.vue
rename to components/FileIcon/fileIcon.vue
diff --git a/pages/chat/components/fileText.vue b/components/FileText/fileText.vue
similarity index 100%
rename from pages/chat/components/fileText.vue
rename to components/FileText/fileText.vue
diff --git a/main.js b/main.js
index dcc7438..6a562ea 100644
--- a/main.js
+++ b/main.js
@@ -26,6 +26,8 @@ import renderCompanyCollectionRecord from '@/components/renderCompanyCollectionR
import renderJobViewRecord from '@/components/renderJobViewRecord/renderJobViewRecord.vue';
import MyIcons from '@/components/My-icons/my-icons.vue';
import GlobalPopup from '@/components/GlobalPopup/GlobalPopup.vue'
+import FileIcon from '@/components/FileIcon/fileIcon.vue'
+import FileText from '@/components/FileText/fileText.vue'
// import Tabbar from '@/components/tabbar/midell-box.vue'
// 自动导入 directives 目录下所有指令
@@ -58,6 +60,8 @@ export function createApp() {
app.component('renderJobViewRecord', renderJobViewRecord) //渲染岗位浏览记录
app.component('MyIcons', MyIcons)
app.component('global-popup', GlobalPopup)
+ app.component('FileIcon', FileIcon)
+ app.component('FileText', FileText)
// app.component('tabbar-custom', Tabbar)
for (const path in directives) {
diff --git a/packageA/pages/myResume/components/uploadQrcode.vue b/packageA/pages/myResume/components/uploadQrcode.vue
new file mode 100644
index 0000000..57abf0b
--- /dev/null
+++ b/packageA/pages/myResume/components/uploadQrcode.vue
@@ -0,0 +1,564 @@
+
+
+
+
+
+
+
+
+
diff --git a/packageA/pages/myResume/myResume.vue b/packageA/pages/myResume/myResume.vue
index 3ebb004..5818063 100644
--- a/packageA/pages/myResume/myResume.vue
+++ b/packageA/pages/myResume/myResume.vue
@@ -127,6 +127,7 @@
+
@@ -137,11 +138,14 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
import { storeToRefs } from 'pinia';
import useUserStore from '@/stores/useUserStore';
import useDictStore from '@/stores/useDictStore';
-const { userInfo, isMiniProgram } = storeToRefs(useUserStore());
+const { userInfo, isMiniProgram,isMachineEnv } = storeToRefs(useUserStore());
const { getUserResume } = useUserStore();
const { getDictData, oneDictData } = useDictStore();
+import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
import config from '@/config.js';
+import UploadQrcode from './components/uploadQrcode.vue';
+const qrcodeRef = ref(null);
const showNotice = ref(true);
onLoad(() => {
getUserResume();
@@ -152,6 +156,10 @@ function closeNotice() {
}
function chooseResume() {
+ if(isMachineEnv.value){
+ qrcodeRef.value?.open()
+ return
+ }
uni.chooseImage({
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
@@ -162,9 +170,11 @@ function chooseResume() {
res = JSON.parse(res);
getUserResume();
$api.msg('上传成功');
+ playTextDirectly('上传成功')
})
.catch((err) => {
$api.msg('上传失败');
+ playTextDirectly('上传失败')
});
},
fail: (error) => {},
@@ -209,6 +219,23 @@ function uploadResume(tempFilePath, loading) {
});
});
}
+const handleFileSend = (rows)=>{
+ const file = {
+ url: rows[0].fileUrl,
+ type: rows[0].fileSuffix,
+ name: rows[0].originalName,
+ }
+
+ $api.createRequest('/app/oss/uploadToObs', { userId: userInfo.value.userId,url:file.url }, 'POST').then((res) => {
+ getUserResume();
+ $api.msg('上传成功');
+ playTextDirectly('上传失败')
+ }).catch(()=>{
+ $api.msg('上传失败');
+ playTextDirectly('上传失败')
+ })
+}
+