优化
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"customPKMessage.js","sources":["pages/index/chat/messageComponent/customPKMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvY3VzdG9tUEtNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <!-- 自定义PK消息组件模板 -->\r\n <view class=\"custom-pk-message\" @click=\"onTap\">\r\n <image\r\n :src=\"message.link\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 100%;height: 100%;\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n onTap() {\r\n uni.navigateTo({\r\n url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`,\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .custom-pk-message{\r\n width: 385rpx;\r\n height: 195rpx;\r\n padding: 20rpx;\r\n background-color: #ffffff;\r\n border-radius: 20rpx;\r\n margin:19rpx 15rpx 19rpx 15rpx;;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/customPKMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAYI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEL,QAAQ;AACJA,oBAAAA,MAAI,WAAW;AAAA,QACX,KAAK,6DAA6D,KAAK,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,MAC7G,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;AClCJ,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"customPKMessage.js","sources":["pages/index/chat/messageComponent/customPKMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvY3VzdG9tUEtNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <!-- 自定义PK消息组件模板 -->\r\n <view class=\"custom-pk-message\" @click=\"onTap\">\r\n <image\r\n :src=\"message.link\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 100%;height: 100%;\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n onTap() {\r\n uni.navigateTo({\r\n url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${JSON.stringify(this.message.customData)}`,\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .custom-pk-message{\r\n width: 385rpx;\r\n height: 195rpx;\r\n padding: 20rpx;\r\n background-color: #ffffff;\r\n border-radius: 20rpx;\r\n margin:19rpx 15rpx 19rpx 15rpx;;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/customPKMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AAYI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEL,QAAQ;AACJA,oBAAAA,MAAI,WAAW;AAAA,QACX,KAAK,6DAA6D,KAAK,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,MAC7G,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;AClCJ,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"imagePreview.js","sources":["pages/index/chat/messageComponent/fullscreen/imagePreview.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvY2hhdC9tZXNzYWdlQ29tcG9uZW50L2Z1bGxzY3JlZW4vaW1hZ2VQcmV2aWV3LnZ1ZQ"],"sourcesContent":["<template>\n <view class=\"image-preview\" @click=\"goBack\">\n <view></view>\n <image class=\"image\" :src=\"url\" mode=\"aspectFill\"></image>\n <view class=\"Localbtn\" @click.stop>\n <image\n class=\"Local\"\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png\"\n mode=\"aspectFit\"\n @click=\"saveImage\"\n ></image>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n url: \"\",\n };\n },\n onLoad(options) {\n this.url = options.url;\n },\n methods: {\n //返回上一页\n goBack() {\n wx.navigateBack({\n delta: 1,\n });\n },\n //保存图片\n saveImage() {\n uni.showLoading({\n title: '正在下载图片...',\n mask: true\n });\n \n // 下载网络图片到临时文件\n uni.downloadFile({\n url: this.url,\n success: (downloadRes) => {\n if (downloadRes.statusCode === 200) {\n // 保存到相册\n uni.saveImageToPhotosAlbum({\n filePath: downloadRes.tempFilePath,\n success: () => {\n uni.hideLoading();\n uni.showToast({\n title: '保存成功',\n icon: 'none',\n duration: 2000\n });\n },\n fail: (saveErr) => {\n uni.hideLoading();\n uni.showToast({\n title: '保存失败: ' + saveErr.errMsg,\n icon: 'none',\n duration: 2000\n });\n }\n });\n } else {\n uni.hideLoading();\n uni.showToast({\n title: '下载失败',\n icon: 'none',\n duration: 2000\n });\n }\n },\n fail: (downloadErr) => {\n uni.hideLoading();\n uni.showToast({\n title: '下载失败: ' + downloadErr.errMsg,\n icon: 'none',\n duration: 2000\n });\n }\n });\n },\n },\n};\n</script>\n\n<style scoped>\n.image-preview {\n width: 100vw;\n height: 100vh;\n background-color: black;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n}\n.image {\n width: 100vw;\n object-fit: contain;\n}\n.Localbtn {\n width: 100vw;\n height: 50rpx;\n margin-bottom: 50rpx;\n display: flex;\n flex-direction: row-reverse;\n}\n.Local {\n width: 50rpx;\n height: 50rpx;\n margin-right: 50rpx;\n}\n</style>","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/fullscreen/imagePreview.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx","uni"],"mappings":";;AAgBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,KAAK;AAAA;EAER;AAAA,EACD,OAAO,SAAS;AACd,SAAK,MAAM,QAAQ;AAAA,EACpB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA;AAAA,IAED,YAAY;AACRC,oBAAAA,MAAI,YAAY;AAAA,QAChB,OAAO;AAAA,QACP,MAAM;AAAA,MACR,CAAC;AAGDA,oBAAAA,MAAI,aAAa;AAAA,QACf,KAAK,KAAK;AAAA,QACV,SAAS,CAAC,gBAAgB;AACxB,cAAI,YAAY,eAAe,KAAK;AAElCA,0BAAAA,MAAI,uBAAuB;AAAA,cACzB,UAAU,YAAY;AAAA,cACtB,SAAS,MAAM;AACbA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,cACD,MAAM,CAAC,YAAY;AACjBA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO,WAAW,QAAQ;AAAA,kBAC1B,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACH;AAAA,YACF,CAAC;AAAA,iBACI;AACLA,0BAAG,MAAC,YAAW;AACfA,0BAAAA,MAAI,UAAU;AAAA,cACZ,OAAO;AAAA,cACP,MAAM;AAAA,cACN,UAAU;AAAA,YACZ,CAAC;AAAA,UACH;AAAA,QACD;AAAA,QACD,MAAM,CAAC,gBAAgB;AACrBA,wBAAG,MAAC,YAAW;AACfA,wBAAAA,MAAI,UAAU;AAAA,YACZ,OAAO,WAAW,YAAY;AAAA,YAC9B,MAAM;AAAA,YACN,UAAU;AAAA,UACZ,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;;;;ACnFA,GAAG,WAAW,eAAe;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"videoPreview.js","sources":["pages/index/chat/messageComponent/fullscreen/videoPreview.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvY2hhdC9tZXNzYWdlQ29tcG9uZW50L2Z1bGxzY3JlZW4vdmlkZW9QcmV2aWV3LnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"image-preview\">\r\n <view class=\"top\">\r\n <image\r\n class=\"Fork\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/crossCross.png\"\r\n mode=\"scaleToFill\"\r\n @click=\"goBack() \"\r\n />\r\n </view>\r\n <video class=\"image\" :src=\"url\" mode=\"aspectFill\"></video>\r\n <view class=\"Localbtn\" @click.stop>\r\n <image\r\n class=\"Local\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png\"\r\n mode=\"aspectFit\"\r\n @click=\"saveImage\"\r\n ></image>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n url: \"\",\r\n };\r\n },\r\n onLoad(options) {\r\n this.url = options.url;\r\n },\r\n methods: {\r\n //返回上一页\r\n goBack() {\r\n wx.navigateBack({\r\n delta: 1,\r\n });\r\n },\r\n //保存图片\r\n saveImage() {\r\n uni.showLoading({\r\n title: \"正在下载视频...\",\r\n mask: true,\r\n });\r\n\r\n // 下载网络图片到临时文件\r\n uni.downloadFile({\r\n url: this.url,\r\n success: (downloadRes) => {\r\n if (downloadRes.statusCode === 200) {\r\n // 保存到相册\r\n uni.saveVideoToPhotosAlbum({\r\n filePath: downloadRes.tempFilePath,\r\n success: () => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"保存成功\",\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n fail: (saveErr) => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"保存失败: \" + saveErr.errMsg,\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n });\r\n } else {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"下载失败\",\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n }\r\n },\r\n fail: (downloadErr) => {\r\n uni.hideLoading();\r\n uni.showToast({\r\n title: \"下载失败: \" + downloadErr.errMsg,\r\n icon: \"none\",\r\n duration: 2000,\r\n });\r\n },\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.image-preview {\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: black;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.image {\r\n width: 100vw;\r\n object-fit: contain;\r\n}\r\n.Localbtn {\r\n width: 100vw;\r\n height: 50rpx;\r\n margin-bottom: 50rpx;\r\n display: flex;\r\n flex-direction: row-reverse;\r\n}\r\n.Local {\r\n width: 50rpx;\r\n height: 50rpx;\r\n margin-right: 50rpx;\r\n}\r\n.Fork{\r\n width: 60rpx;\r\n height: 60rpx;\r\n margin-left: 50rpx;\r\n}\r\n.top{\r\n margin-top: 110rpx;\r\n width: 100vw;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/fullscreen/videoPreview.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx","uni"],"mappings":";;AAuBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,KAAK;AAAA;EAER;AAAA,EACD,OAAO,SAAS;AACd,SAAK,MAAM,QAAQ;AAAA,EACpB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA;AAAA,IAED,YAAY;AACVC,oBAAAA,MAAI,YAAY;AAAA,QACd,OAAO;AAAA,QACP,MAAM;AAAA,MACR,CAAC;AAGDA,oBAAAA,MAAI,aAAa;AAAA,QACf,KAAK,KAAK;AAAA,QACV,SAAS,CAAC,gBAAgB;AACxB,cAAI,YAAY,eAAe,KAAK;AAElCA,0BAAAA,MAAI,uBAAuB;AAAA,cACzB,UAAU,YAAY;AAAA,cACtB,SAAS,MAAM;AACbA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,cACD,MAAM,CAAC,YAAY;AACjBA,8BAAG,MAAC,YAAW;AACfA,8BAAAA,MAAI,UAAU;AAAA,kBACZ,OAAO,WAAW,QAAQ;AAAA,kBAC1B,MAAM;AAAA,kBACN,UAAU;AAAA,gBACZ,CAAC;AAAA,cACF;AAAA,YACH,CAAC;AAAA,iBACI;AACLA,0BAAG,MAAC,YAAW;AACfA,0BAAAA,MAAI,UAAU;AAAA,cACZ,OAAO;AAAA,cACP,MAAM;AAAA,cACN,UAAU;AAAA,YACZ,CAAC;AAAA,UACH;AAAA,QACD;AAAA,QACD,MAAM,CAAC,gBAAgB;AACrBA,wBAAG,MAAC,YAAW;AACfA,wBAAAA,MAAI,UAAU;AAAA,YACZ,OAAO,WAAW,YAAY;AAAA,YAC9B,MAAM;AAAA,YACN,UAAU;AAAA,UACZ,CAAC;AAAA,QACF;AAAA,MACH,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;;;;AC1FA,GAAG,WAAW,eAAe;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"imageMessage.js","sources":["pages/index/chat/messageComponent/imageMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvaW1hZ2VNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"image-message\" @click=\"imadeFullScreen\">\r\n <image class=\"image\" :style=\"{width: imageWidth + 'rpx', height: imageHeight + 'rpx'}\" @load=\"load\" :src=\"message.url\" mode=\"aspectFit\"></image>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n imageHeight: 0,\r\n imageWidth: 0,\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n load(event) {\r\n if (event.detail.height > 400){\r\n this.imageHeight = 400;\r\n }else{\r\n this.imageHeight = event.detail.height\r\n }\r\n if (event.detail.width > 400){\r\n this.imageWidth = 400;\r\n }else{\r\n this.imageWidth = event.detail.width\r\n }\r\n },\r\n // 点击图片全屏显示\r\n imadeFullScreen(){\r\n wx.navigateTo({\r\n url: '/pages/index/chat/messageComponent/fullscreen/imagePreview?url=' + this.message.url\r\n })\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .image-message{\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .image{\r\n border-radius: 20rpx;\r\n }\r\n</style>","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/imageMessage.vue'\nwx.createComponent(Component)"],"names":["wx"],"mappings":";;AAOI,MAAK,YAAU;AAAA,EACX,OAAO;AAAA,IACH,SAAS;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,aAAa;AAAA,MACb,YAAY;AAAA,IAChB;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACL,KAAK,OAAO;AACR,UAAI,MAAM,OAAO,SAAS,KAAI;AAC1B,aAAK,cAAc;AAAA,aAClB;AACD,aAAK,cAAc,MAAM,OAAO;AAAA,MACpC;AACA,UAAI,MAAM,OAAO,QAAQ,KAAI;AACzB,aAAK,aAAa;AAAA,aACjB;AACD,aAAK,aAAa,MAAM,OAAO;AAAA,MACnC;AAAA,IACH;AAAA;AAAA,IAED,kBAAiB;AACbA,oBAAAA,KAAG,WAAW;AAAA,QACV,KAAK,oEAAoE,KAAK,QAAQ;AAAA,OACzF;AAAA,IACL;AAAA,EACJ;AACJ;;;;;;;;;;;AC1CJ,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"videoMessage.js","sources":["pages/index/chat/messageComponent/videoMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvdmlkZW9NZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"video-message\" @click=\"onTap\">\r\n <image class=\"video-player\" :src=\"message.thumbnail.url\" mode=\"scaleToFill\" />\r\n <image\r\n class=\"Play\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Play.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: \"\",\r\n },\r\n },\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n onTap() {\r\n wx.navigateTo({\r\n url:\r\n \"/pages/index/chat/messageComponent/fullscreen/videoPreview?url=\" +\r\n this.message.video.url,\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.video-message {\r\n width: 450rpx;\r\n height: 300rpx;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n.video-player {\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 20px;\r\n}\r\n.Play {\r\n width: 200rpx;\r\n height: 200rpx;\r\n margin-left: -330rpx;\r\n margin-top: 50rpx;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/videoMessage.vue'\nwx.createComponent(Component)"],"names":["wx"],"mappings":";;AAYA,MAAK,YAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA;EAEV;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,QAAQ;AACNA,oBAAAA,KAAG,WAAW;AAAA,QACZ,KACE,oEACA,KAAK,QAAQ,MAAM;AAAA,MACvB,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;;ACnCA,GAAG,gBAAgB,SAAS;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"voiceMessage.js","sources":["pages/index/chat/messageComponent/voiceMessage.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9wYWdlcy9pbmRleC9jaGF0L21lc3NhZ2VDb21wb25lbnQvdm9pY2VNZXNzYWdlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"voice-message\" @click=\"Play\">\r\n <view class=\"voice-message-content\" v-if=\"senderId == userId\">\r\n <view>{{ floor(message.duration) }}\"</view>\r\n <image\r\n v-if=\"NumberClicks == 0\"\r\n class=\"voice-message-avatar\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 1\">播放中...</view>\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 2\">暂停中...</view>\r\n </view>\r\n\r\n <view class=\"voice-message-content\" v-else>\r\n <image\r\n v-if=\"NumberClicks == 0\"\r\n class=\"voice-message-avatar\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 1\">播放中...</view>\r\n <view class=\"voice-message-name\" v-if=\"NumberClicks == 2\">暂停中...</view>\r\n <view>\"{{ floor(message.duration) }}\"</view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n message: {\r\n type: Object,\r\n default: () => ({}),\r\n },\r\n senderId: {\r\n type: String,\r\n default: \"\",\r\n },\r\n userId: {\r\n type: Number,\r\n },\r\n playbackStatus: {\r\n type: Boolean,\r\n },\r\n },\r\n data() {\r\n return {\r\n innerAudioContext: null,\r\n NumberClicks: 0,\r\n };\r\n },\r\n watch: {\r\n playbackStatus(newVal) {\r\n if (!newVal) {\r\n if (this.innerAudioContext) {\r\n this.innerAudioContext.pause();\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n this.NumberClicks = 0;\r\n this.$emit(\"notplayVoice\", true);\r\n } else {\r\n this.$emit(\"notplayVoice\", true);\r\n }\r\n } else {\r\n this.$emit(\"notplayVoice\", true);\r\n }\r\n },\r\n },\r\n methods: {\r\n floor(num) {\r\n return Math.floor(num);\r\n },\r\n Play() {\r\n this.$emit(\"notplayVoice\", false);\r\n setTimeout(() => {\r\n this.innerAudioContext = uni.createInnerAudioContext();\r\n this.innerAudioContext.src = this.message.url;\r\n this.innerAudioContext.onEnded(() => {\r\n this.NumberClicks = 0;\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n });\r\n this.innerAudioContext.onError((res) => {\r\n this.NumberClicks = 0;\r\n this.innerAudioContext.destroy();\r\n this.innerAudioContext = null;\r\n });\r\n\r\n this.innerAudioContext.play();\r\n this.NumberClicks = 1;\r\n }, 500);\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.voice-message {\r\n padding: 0 20rpx 0 20rpx;\r\n}\r\n\r\n.voice-message-avatar {\r\n width: 100rpx;\r\n height: 80rpx;\r\n margin-left: 10rpx;\r\n}\r\n\r\n.voice-message-content {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.voice-message-name {\r\n height: 80rpx;\r\n margin-left: 10rpx;\r\n font-size: 28rpx;\r\n color: #999;\r\n line-height: 80rpx;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/pages/index/chat/messageComponent/voiceMessage.vue'\nwx.createComponent(Component)"],"names":["uni"],"mappings":";;AA6BA,MAAK,YAAU;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IACD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,QAAQ;AAAA,MACN,MAAM;AAAA,IACP;AAAA,IACD,gBAAgB;AAAA,MACd,MAAM;AAAA,IACP;AAAA,EACF;AAAA,EACD,OAAO;AACL,WAAO;AAAA,MACL,mBAAmB;AAAA,MACnB,cAAc;AAAA;EAEjB;AAAA,EACD,OAAO;AAAA,IACL,eAAe,QAAQ;AACrB,UAAI,CAAC,QAAQ;AACX,YAAI,KAAK,mBAAmB;AAC1B,eAAK,kBAAkB;AACvB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AACzB,eAAK,eAAe;AACpB,eAAK,MAAM,gBAAgB,IAAI;AAAA,eAC1B;AACL,eAAK,MAAM,gBAAgB,IAAI;AAAA,QACjC;AAAA,aACK;AACL,aAAK,MAAM,gBAAgB,IAAI;AAAA,MACjC;AAAA,IACD;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,MAAM,KAAK;AACT,aAAO,KAAK,MAAM,GAAG;AAAA,IACtB;AAAA,IACD,OAAO;AACL,WAAK,MAAM,gBAAgB,KAAK;AAChC,iBAAW,MAAM;AACf,aAAK,oBAAoBA,oBAAI;AAC7B,aAAK,kBAAkB,MAAM,KAAK,QAAQ;AAC1C,aAAK,kBAAkB,QAAQ,MAAM;AACnC,eAAK,eAAe;AACpB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AAAA,QAC3B,CAAC;AACD,aAAK,kBAAkB,QAAQ,CAAC,QAAQ;AACtC,eAAK,eAAe;AACpB,eAAK,kBAAkB;AACvB,eAAK,oBAAoB;AAAA,QAC3B,CAAC;AAED,aAAK,kBAAkB;AACvB,aAAK,eAAe;AAAA,MACrB,GAAE,GAAG;AAAA,IACP;AAAA,EACF;AACH;;;;;;;;;;;;;;;;;;;;;;;;AC7FA,GAAG,gBAAgB,SAAS;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/mp-weixin/app.js
vendored
2
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -13,6 +13,8 @@ if (!Math) {
|
||||
"./pages/Mine/minecomponents/serviceProtocol.js";
|
||||
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
|
||||
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
||||
"./pages/index/chat/messageComponent/fullscreen/imagePreview.js";
|
||||
"./pages/index/chat/messageComponent/fullscreen/videoPreview.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/index/chat/chat.js";
|
||||
"./pages/login/login.js";
|
||||
|
||||
2
unpackage/dist/dev/mp-weixin/app.json
vendored
2
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -11,6 +11,8 @@
|
||||
"pages/Mine/minecomponents/serviceProtocol",
|
||||
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
"pages/PKMessageprocessing/PKMessageprocessing",
|
||||
"pages/index/chat/messageComponent/fullscreen/imagePreview",
|
||||
"pages/index/chat/messageComponent/fullscreen/videoPreview",
|
||||
"pages/index/index",
|
||||
"pages/index/chat/chat",
|
||||
"pages/login/login",
|
||||
|
||||
@@ -7362,7 +7362,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.1.112,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_q8yHR6";
|
||||
const id = "mp-weixin_Ck4vXb";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
new common_vendor.COS({
|
||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
|
||||
// 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
|
||||
// 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
});
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/audioMessages.js.map
|
||||
@@ -38,6 +38,10 @@ function getConversationList(goeasy) {
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:43", "获取会话列表失败, code:" + error.code + " content:" + error.content);
|
||||
common_vendor.index.showToast({
|
||||
title: "获取会话列表失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -55,12 +59,16 @@ function getConversationMessages(goeasy, userid, imestamp) {
|
||||
limit: 30,
|
||||
//可选项,返回的消息条数,默认为10条,最多30条
|
||||
onSuccess: function(result) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:59", "获取消息列表成功", result);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:63", "获取消息列表成功", result);
|
||||
resolve(result.content);
|
||||
},
|
||||
//查询成功
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:63", "获取消息列表失败, code:" + error.code + " content:" + error.content);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:67", "获取消息列表失败, code:" + error.code + " content:" + error.content);
|
||||
common_vendor.index.showToast({
|
||||
title: "获取消息列表失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
//查询失败
|
||||
});
|
||||
@@ -87,7 +95,11 @@ function sendMessage(goeasy, userid, message, avatar, nickname) {
|
||||
resolve(textMessage);
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:90", "发送消息失败,code:" + error.code + " ,error " + error.content);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:98", "发送消息失败,code:" + error.code + " ,error " + error.content);
|
||||
common_vendor.index.showToast({
|
||||
title: "发送消息失败",
|
||||
icon: "none"
|
||||
});
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
@@ -104,7 +116,11 @@ function messageRead(goeasy, userid) {
|
||||
resolve();
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:109", "标记私聊已读失败", error);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:121", "标记私聊已读失败", error);
|
||||
common_vendor.index.showToast({
|
||||
title: "标记私聊已读失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -131,7 +147,11 @@ function sendCustomMessage(goeasy, type, userid, order, avatar, nickname) {
|
||||
resolve(customMessage);
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:137", "Failed to send message,code:" + error.code + ",error" + error.content);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:153", "Failed to send message,code:" + error.code + ",error" + error.content);
|
||||
common_vendor.index.showToast({
|
||||
title: "发送自定义消息失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -147,7 +167,11 @@ function conversationTop(goeasy, conversation, top) {
|
||||
resolve("成功");
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:154", "失败:", error);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:174", "失败:", error);
|
||||
common_vendor.index.showToast({
|
||||
title: "置顶会话失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -161,7 +185,28 @@ function conversationDelete(goeasy, conversation) {
|
||||
resolve("删除会话成功");
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:169", error);
|
||||
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:193", error);
|
||||
common_vendor.index.showToast({
|
||||
title: "删除会话失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
function sendGroupMessage(goeasy, message) {
|
||||
return new Promise((resolve, reject) => {
|
||||
var im = goeasy.im;
|
||||
im.sendMessage({
|
||||
message,
|
||||
onSuccess: () => {
|
||||
resolve(message);
|
||||
},
|
||||
onFailed: function(error) {
|
||||
common_vendor.index.showToast({
|
||||
title: "发送消息失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -174,5 +219,6 @@ exports.goEasylogin = goEasylogin;
|
||||
exports.goEasylogout = goEasylogout;
|
||||
exports.messageRead = messageRead;
|
||||
exports.sendCustomMessage = sendCustomMessage;
|
||||
exports.sendGroupMessage = sendGroupMessage;
|
||||
exports.sendMessage = sendMessage;
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/goEasyTool/tool.js.map
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
new common_vendor.COS({
|
||||
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
|
||||
// 推荐使用环境变量获取;用户的 SecretId,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
|
||||
// 推荐使用环境变量获取;用户的 SecretKey,建议使用子账号密钥,授权遵循最小权限指引,降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
|
||||
});
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/picturesVideosMessages.js.map
|
||||
@@ -266,7 +266,8 @@ const _sfc_main = {
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id,
|
||||
userId: this.info.id
|
||||
userId: this.info.id,
|
||||
from: 1
|
||||
},
|
||||
userInfo: true
|
||||
});
|
||||
|
||||
@@ -161,8 +161,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.myPkRecorddata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:393", "this.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddatathis.myPkRecorddata", JSON.stringify(this.myPkRecorddata));
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:394", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:395", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -303,7 +304,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null ? {} : item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null ? {} : {}, {
|
||||
c: item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null,
|
||||
d: common_vendor.t(item.pkNumber),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime * 1e3)),
|
||||
f: index,
|
||||
g: common_vendor.o(($event) => $options.onItemClick(item), index)
|
||||
});
|
||||
|
||||
@@ -8,8 +8,7 @@ const _sfc_main = {
|
||||
title: "Hello",
|
||||
item: {},
|
||||
coinNumlist: [],
|
||||
triggered: false,
|
||||
iconNumber: 123457
|
||||
triggered: false
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -60,7 +59,7 @@ const _sfc_main = {
|
||||
this.coinNumlist = res.data;
|
||||
this.triggered = false;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:180", "获取金币数量失败");
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:177", "获取金币数量失败");
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -85,17 +84,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.item.winnerAnchorId == $data.item.anchorIdA ? {} : {}, {
|
||||
d: common_vendor.t($data.item.anchorIdA),
|
||||
e: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
f: common_vendor.t($options.formatCoinNum($data.iconNumber)),
|
||||
g: $data.item.anchorIconB,
|
||||
h: $data.item.winnerAnchorId == $data.item.anchorIdB
|
||||
}, $data.item.winnerAnchorId == $data.item.anchorIdB ? {} : {}, {
|
||||
i: common_vendor.t($data.item.anchorIdB),
|
||||
j: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
k: $data.item.userBCoins !== null
|
||||
}, $data.item.userBCoins !== null ? {
|
||||
l: common_vendor.t($options.formatCoinNum($data.item.userBCoins))
|
||||
f: $data.item.userACoins !== null
|
||||
}, $data.item.userACoins !== null ? {
|
||||
g: common_vendor.t($options.formatCoinNum($data.item.userACoins))
|
||||
} : {}, {
|
||||
m: common_vendor.f($data.coinNumlist, (items, index, i0) => {
|
||||
h: $data.item.anchorIconB,
|
||||
i: $data.item.winnerAnchorId == $data.item.anchorIdB
|
||||
}, $data.item.winnerAnchorId == $data.item.anchorIdB ? {} : {}, {
|
||||
j: common_vendor.t($data.item.anchorIdB),
|
||||
k: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
l: $data.item.userBCoins !== null
|
||||
}, $data.item.userBCoins !== null ? {
|
||||
m: common_vendor.t($options.formatCoinNum($data.item.userBCoins))
|
||||
} : {}, {
|
||||
n: common_vendor.f($data.coinNumlist, (items, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t($options.formatCoinNum(items.anchorCoinA)),
|
||||
b: items.anchorIdA == items.winnerAnchorId ? "#00fbff21" : "#ff000011",
|
||||
@@ -105,8 +107,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: "414631de-0-" + i0
|
||||
};
|
||||
}),
|
||||
n: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||
o: $data.triggered
|
||||
o: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||
p: $data.triggered
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-414631de"]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-414631de">PK记录详情</view><view class="pkrecords data-v-414631de"><view class="card data-v-414631de"><view class="AnchorA data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorAImgcss data-v-414631de" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{f}}</view></view></view></view><view class="vstext data-v-414631de"><view class="Vtext data-v-414631de">V</view><view class="Stext data-v-414631de">S</view></view><view class="AnchorB data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{g}}" mode="scaleToFill"/></view><image wx:if="{{h}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{i}}</view><view class="AnchorATime data-v-414631de">{{j}}</view><view wx:if="{{k}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{l}}</view></view></view></view></view><view class="pkrecords-content data-v-414631de"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-414631de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{n}}" refresher-triggered="{{o}}"><uni-card wx:for="{{m}}" wx:for-item="items" wx:key="e" class="data-v-414631de" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-414631de"><view class="contentcard-titleA data-v-414631de" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.a}}</view></view><view class="contentcard-titleB data-v-414631de" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
||||
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-414631de">PK记录详情</view><view class="pkrecords data-v-414631de"><view class="card data-v-414631de"><view class="AnchorA data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorAImgcss data-v-414631de" src="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view wx:if="{{f}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{g}}</view></view></view></view><view class="vstext data-v-414631de"><view class="Vtext data-v-414631de">V</view><view class="Stext data-v-414631de">S</view></view><view class="AnchorB data-v-414631de"><view class="Anchor data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{h}}" mode="scaleToFill"/></view><image wx:if="{{i}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view><view class="AnchorBinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{j}}</view><view class="AnchorATime data-v-414631de">{{k}}</view><view wx:if="{{l}}" class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{m}}</view></view></view></view></view><view class="pkrecords-content data-v-414631de"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-414631de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{o}}" refresher-triggered="{{p}}"><uni-card wx:for="{{n}}" wx:for-item="items" wx:key="e" class="data-v-414631de" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-414631de"><view class="contentcard-titleA data-v-414631de" style="{{'background-color:' + items.b}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.a}}</view></view><view class="contentcard-titleB data-v-414631de" style="{{'background-color:' + items.d}}"><view class="ciontext data-v-414631de">金币数量</view><view class="cion data-v-414631de">{{items.c}}</view></view></view></uni-card></scroll-view></view></view></view>
|
||||
@@ -54,6 +54,26 @@ const _sfc_main = {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//金币数量格式化
|
||||
formatCoinNum(coin) {
|
||||
if (coin === null || coin === void 0) {
|
||||
return "";
|
||||
}
|
||||
if (coin < 1e3) {
|
||||
return String(coin);
|
||||
}
|
||||
if (coin >= 1e6) {
|
||||
return "1M+";
|
||||
}
|
||||
const kValue = coin / 1e3;
|
||||
const formattedString = kValue.toFixed(2);
|
||||
const matchResult = formattedString.match(/^\d+\.\d{0,2}/);
|
||||
if (matchResult === null) {
|
||||
return kValue.toFixed(2) + "k";
|
||||
}
|
||||
const formatted = matchResult[0];
|
||||
return `${formatted}k`;
|
||||
},
|
||||
onRefresherRefresh() {
|
||||
this.pkRecordlist = [];
|
||||
this.triggered = true;
|
||||
@@ -80,11 +100,9 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack(
|
||||
{
|
||||
delta: 1
|
||||
}
|
||||
);
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
//获取我发布的PK记录列表
|
||||
@@ -114,7 +132,7 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:200", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:236", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -154,13 +172,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
e: item.userACoins !== null
|
||||
}, item.userACoins !== null ? {
|
||||
f: common_vendor.t(item.userACoins)
|
||||
f: common_vendor.t($options.formatCoinNum(item.userACoins))
|
||||
} : {}, {
|
||||
g: common_vendor.t(item.anchorIdB),
|
||||
h: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
i: item.userBCoins !== null
|
||||
}, item.userBCoins !== null ? {
|
||||
j: common_vendor.t(item.userBCoins)
|
||||
j: common_vendor.t($options.formatCoinNum(item.userBCoins))
|
||||
} : {}, {
|
||||
k: item.anchorIconB,
|
||||
l: item.winnerAnchorId == item.anchorIdB
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="pkRecord data-v-6fa696de"><view class="bg data-v-6fa696de"><image class="bgImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6fa696de" bindtap="{{a}}"><image class="ReturnImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6fa696de">PK记录</view><view class="navigation data-v-6fa696de"><view class="navigationItem data-v-6fa696de"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-6fa696de', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-6fa696de', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-6fa696de" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-6fa696de"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-6fa696de" bindtap="{{item.m}}"><view class="AnchorA data-v-6fa696de"><view class="AnchorAImg data-v-6fa696de"><image class="AnchorAImgcss data-v-6fa696de" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.c}}</view><view class="AnchorATime data-v-6fa696de">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.f}}K</view></view></view></view><view class="vstext data-v-6fa696de"><view class="Vtext data-v-6fa696de">V</view><view class="Stext data-v-6fa696de">S</view></view><view class="AnchorB data-v-6fa696de"><view class="AnchorBinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.g}}</view><view class="AnchorATime data-v-6fa696de">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.j}}K</view></view></view><view class="AnchorAImg data-v-6fa696de"><image class="AnchorBImgcss data-v-6fa696de" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-6fa696de">暂无内容</view></view></view>
|
||||
<view class="pkRecord data-v-6fa696de"><view class="bg data-v-6fa696de"><image class="bgImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6fa696de" bindtap="{{a}}"><image class="ReturnImg data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6fa696de">PK记录</view><view class="navigation data-v-6fa696de"><view class="navigationItem data-v-6fa696de"><view bindtap="{{b}}" class="{{['navigationItemTitle', 'data-v-6fa696de', c && 'active']}}">我发布的PK</view><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-6fa696de', e && 'active']}}">我邀请的PK</view></view><view class="slide data-v-6fa696de" style="{{'left:' + g + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{f}}</view></view><view class="content data-v-6fa696de"><scroll-view wx:if="{{h}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{j}}" lower-threshold="100" bindscrolltolower="{{k}}" refresher-triggered="{{l}}"><uni-card wx:for="{{i}}" wx:for-item="item" wx:key="n" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-6fa696de" bindtap="{{item.m}}"><view class="AnchorA data-v-6fa696de"><view class="AnchorAImg data-v-6fa696de"><image class="AnchorAImgcss data-v-6fa696de" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.c}}</view><view class="AnchorATime data-v-6fa696de">{{item.d}}</view><view wx:if="{{item.e}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.f}}</view></view></view></view><view class="vstext data-v-6fa696de"><view class="Vtext data-v-6fa696de">V</view><view class="Stext data-v-6fa696de">S</view></view><view class="AnchorB data-v-6fa696de"><view class="AnchorBinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.g}}</view><view class="AnchorATime data-v-6fa696de">{{item.h}}</view><view wx:if="{{item.i}}" class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.j}}</view></view></view><view class="AnchorAImg data-v-6fa696de"><image class="AnchorBImgcss data-v-6fa696de" src="{{item.k}}" mode="scaleToFill"/></view><image wx:if="{{item.l}}" class="Crown data-v-6fa696de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:if="{{m}}" class="nodata data-v-6fa696de">暂无内容</view></view></view>
|
||||
@@ -143,8 +143,8 @@
|
||||
color: #58d8db;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
white-space: nowrap; /* 防止换行 */
|
||||
overflow: hidden; /* 隐藏溢出内容 */
|
||||
white-space: nowrap; /* 防止换行 */
|
||||
overflow: hidden; /* 隐藏溢出内容 */
|
||||
text-overflow: ellipsis; /* 显示省略号 */
|
||||
}
|
||||
.AnchorATime.data-v-6fa696de {
|
||||
@@ -188,11 +188,11 @@
|
||||
border-bottom: #5ddadd solid 2rpx;
|
||||
border-right: #5ddadd solid 2rpx;
|
||||
}
|
||||
.Crown.data-v-6fa696de{
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
.Crown.data-v-6fa696de {
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
}
|
||||
.vstext.data-v-6fa696de {
|
||||
display: flex;
|
||||
@@ -211,4 +211,3 @@
|
||||
font-style: italic;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ const _sfc_main = {
|
||||
this.getPkIDInfo();
|
||||
this.getPkyourInfo();
|
||||
this.getPkmineInfo();
|
||||
}, 500);
|
||||
}, 1e3);
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === "menu") {
|
||||
@@ -45,7 +45,7 @@ const _sfc_main = {
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:214", res.data);
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:227", res.data);
|
||||
this.PkIDInfodata = res.data;
|
||||
});
|
||||
},
|
||||
@@ -55,12 +55,23 @@ const _sfc_main = {
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdA
|
||||
id: this.customData.pkIdA,
|
||||
userId: this.id,
|
||||
from: 2
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:228", res.data);
|
||||
this.SenderData = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:243", res);
|
||||
if (res.code === 200) {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:245", res.data);
|
||||
this.SenderData = res.data;
|
||||
} else {
|
||||
common_vendor.wx$1.showToast({
|
||||
title: "获取发布者信息失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
//被邀请者
|
||||
@@ -69,12 +80,22 @@ const _sfc_main = {
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdB
|
||||
id: this.customData.pkIdB,
|
||||
userId: this.id,
|
||||
from: 2
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:242", res.data);
|
||||
this.ReceiverData = res.data;
|
||||
if (res.code === 200) {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:269", res.data);
|
||||
this.ReceiverData = res.data;
|
||||
} else {
|
||||
common_vendor.wx$1.showToast({
|
||||
title: "获取被邀请者信息失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
//返回上一页
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
align-items: center;
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.buttontext.data-v-cadadfe7{
|
||||
.buttontext.data-v-cadadfe7 {
|
||||
font-size: 40rpx;
|
||||
color: #666666;
|
||||
font-weight: bold;
|
||||
@@ -180,7 +180,7 @@
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
.popup-Hintcontent.data-v-cadadfe7{
|
||||
.popup-Hintcontent.data-v-cadadfe7 {
|
||||
width: 600rpx;
|
||||
height: 500rpx;
|
||||
background-repeat: no-repeat;
|
||||
@@ -198,7 +198,7 @@
|
||||
font-weight: bold;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.popup-texts.data-v-cadadfe7{
|
||||
.popup-texts.data-v-cadadfe7 {
|
||||
margin-left: 50rpx;
|
||||
color: #7e7e7e;
|
||||
font-size: 26rpx;
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const components_ChatId = require("../../../components/ChatId.js");
|
||||
const components_TimeFormatting = require("../../../components/TimeFormatting.js");
|
||||
require("../../../components/picturesVideosMessages.js");
|
||||
require("../../../components/audioMessages.js");
|
||||
const components_request = require("../../../components/request.js");
|
||||
const components_goEasyTool_tool = require("../../../components/goEasyTool/tool.js");
|
||||
const textmessage = () => "./messageComponent/textmessage.js";
|
||||
const customPKMessage = () => "./messageComponent/customPKMessage.js";
|
||||
const imageMessage = () => "./messageComponent/imageMessage.js";
|
||||
const videoMessage = () => "./messageComponent/videoMessage.js";
|
||||
const voiceMessage = () => "./messageComponent/voiceMessage.js";
|
||||
const InvitationComponents = () => "./moreMessageComponents/InvitationComponents.js";
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
@@ -63,12 +64,28 @@ const _sfc_main = {
|
||||
//直接发送自定义消息的对方选中主播
|
||||
type: null,
|
||||
//直接发送自定义消息的消息类型
|
||||
voiceStatus: false,
|
||||
// 语音状态
|
||||
inputfocus: false,
|
||||
// 输入框焦点状态
|
||||
voicepopUpstart: false,
|
||||
// 语音长按状态/false关闭/true开启
|
||||
voiceCancelOrSend: false,
|
||||
// 语音取消/发送/false发送/true取消
|
||||
recorderManager: common_vendor.index.getRecorderManager(),
|
||||
playbackStatus: true,
|
||||
// 语音播放状态
|
||||
popUpList: [
|
||||
{
|
||||
name: "相册",
|
||||
name: "图片",
|
||||
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Album.png",
|
||||
type: "Album"
|
||||
},
|
||||
{
|
||||
name: "视频",
|
||||
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
|
||||
type: "Video"
|
||||
},
|
||||
{
|
||||
name: "邀请",
|
||||
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",
|
||||
@@ -88,6 +105,40 @@ const _sfc_main = {
|
||||
this.onPage = false;
|
||||
},
|
||||
onLoad(options) {
|
||||
this.recorderManager.onStop((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:384", "录音结束", res);
|
||||
if (this.ioshide != 0) {
|
||||
if (res.fileSize < 20 * 1024) {
|
||||
common_vendor.index.showToast({
|
||||
title: "您说话太短",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
} else {
|
||||
if (this.voiceCancelOrSend) {
|
||||
this.voiceCancelOrSend = false;
|
||||
} else {
|
||||
this.sendVoice(res);
|
||||
this.voiceCancelOrSend = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (res.fileSize < 2 * 1024) {
|
||||
common_vendor.index.showToast({
|
||||
title: "您说话太短",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
} else {
|
||||
if (this.voiceCancelOrSend) {
|
||||
this.voiceCancelOrSend = false;
|
||||
} else {
|
||||
this.sendVoice(res);
|
||||
this.voiceCancelOrSend = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
@@ -132,7 +183,7 @@ const _sfc_main = {
|
||||
}).exec();
|
||||
});
|
||||
components_goEasyTool_tool.messageRead(this.$goeasy, this.userId).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:300", "已读对方的消息");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:466", "已读对方的消息");
|
||||
});
|
||||
this.getIOSDeviceType();
|
||||
var im = this.$goeasy.im;
|
||||
@@ -141,6 +192,119 @@ const _sfc_main = {
|
||||
this.getscrollviewheight();
|
||||
},
|
||||
methods: {
|
||||
//暂停所有播放
|
||||
notplayVoice(type) {
|
||||
this.playbackStatus = type;
|
||||
},
|
||||
//发送录音
|
||||
sendVoice(res) {
|
||||
const im = this.$goeasy.im;
|
||||
var message = im.createAudioMessage({
|
||||
file: res,
|
||||
to: {
|
||||
type: common_vendor.jo.IM_SCENE.PRIVATE,
|
||||
id: this.userId,
|
||||
//对方用户id
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:491", "file uploading:", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
components_goEasyTool_tool.sendGroupMessage(this.$goeasy, message).then((ress) => {
|
||||
this.ElementPositioning = ress.id = components_ChatId.generateId();
|
||||
ress.timestampStatus = this.checkInterval(ress.timestamp);
|
||||
this.chatList.push(ress);
|
||||
this.judgescrollTop = false;
|
||||
});
|
||||
},
|
||||
//长按语音
|
||||
voiceTouchstart() {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:503", "长按语音");
|
||||
this.voicepopUpstart = true;
|
||||
this.recorderManager.start();
|
||||
this.notplayVoice(false);
|
||||
},
|
||||
//松开语音
|
||||
voiceTouchend() {
|
||||
setTimeout(() => {
|
||||
this.recorderManager.stop();
|
||||
}, 100);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:513", "松开语音");
|
||||
this.voicepopUpstart = false;
|
||||
},
|
||||
//移动语音
|
||||
voiceTouchmove(event) {
|
||||
const threshold = common_vendor.index.getSystemInfoSync().windowHeight * 0.86;
|
||||
try {
|
||||
if (event.touches[0].clientY > threshold) {
|
||||
this.voiceCancelOrSend = false;
|
||||
} else {
|
||||
this.voiceCancelOrSend = true;
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
},
|
||||
//中断语音
|
||||
voiceTouchcancel() {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:529", "中断语音");
|
||||
this.voicepopUpstart = false;
|
||||
this.voiceCancelOrSend = false;
|
||||
},
|
||||
//语音切换
|
||||
onVoice(status) {
|
||||
this.checkRecordPermission();
|
||||
if (status) {
|
||||
this.inputfocus = false;
|
||||
this.MoreStatus = false;
|
||||
} else {
|
||||
this.inputfocus = true;
|
||||
}
|
||||
this.voiceStatus = status;
|
||||
},
|
||||
//录音权限
|
||||
checkRecordPermission() {
|
||||
common_vendor.index.getSetting({
|
||||
success: (res) => {
|
||||
const hasPermission = res.authSetting["scope.record"];
|
||||
if (hasPermission === void 0) {
|
||||
this.requestPermission();
|
||||
} else if (!hasPermission) {
|
||||
this.voiceStatus = false;
|
||||
common_vendor.index.showModal({
|
||||
title: "权限提示",
|
||||
content: "需要录音权限才能正常使用功能,请在设置中开启",
|
||||
confirmText: "去开启",
|
||||
success: (modalRes) => {
|
||||
if (modalRes.confirm) {
|
||||
common_vendor.index.openSetting({
|
||||
success: (settingRes) => {
|
||||
if (settingRes.authSetting["scope.record"] === true) {
|
||||
this.checkRecordPermission();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//请求录音权限
|
||||
requestPermission() {
|
||||
common_vendor.index.authorize({
|
||||
scope: "scope.record",
|
||||
fail: (err) => {
|
||||
this.voiceStatus = false;
|
||||
common_vendor.index.showToast({
|
||||
title: "请授予麦克风权限,否则可能导致语音功能异常",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
//直接发送自定义消息
|
||||
sendCustomMessage() {
|
||||
components_request.request({
|
||||
@@ -243,14 +407,14 @@ const _sfc_main = {
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.chatList = [...this.MoreMessageList, ...this.chatList];
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:418", "获取更多聊天记录", this.chatList);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:695", "获取更多聊天记录", this.chatList);
|
||||
this.LastTime = this.chatList[0].timestamp;
|
||||
this.ElementPositioning = this.Record;
|
||||
}, 300);
|
||||
},
|
||||
//监听已读消息
|
||||
onMessageRead(message) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:425", "1已读消息", message);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:702", "1已读消息", message);
|
||||
},
|
||||
//监听接受消息
|
||||
onPrivateMessageReceived(message) {
|
||||
@@ -265,7 +429,7 @@ const _sfc_main = {
|
||||
this.chatList.push(message);
|
||||
if (this.onPage) {
|
||||
components_goEasyTool_tool.messageRead(this.$goeasy, this.userId).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:440", "已读对方的消息");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:717", "已读对方的消息");
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -279,7 +443,7 @@ const _sfc_main = {
|
||||
this.avatar,
|
||||
this.nickname
|
||||
).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:454", "发送成功", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:731", "发送成功", res);
|
||||
this.ElementPositioning = res.id = components_ChatId.generateId();
|
||||
res.timestampStatus = this.checkInterval(res.timestamp);
|
||||
this.chatList.push(res);
|
||||
@@ -320,7 +484,12 @@ const _sfc_main = {
|
||||
this.judgescrollTop = false;
|
||||
}
|
||||
this.getscrollviewheight();
|
||||
this.MoreStatus = Status;
|
||||
if (Status) {
|
||||
this.MoreStatus = Status;
|
||||
this.voiceStatus = false;
|
||||
} else {
|
||||
this.MoreStatus = Status;
|
||||
}
|
||||
const query = common_vendor.index.createSelectorQuery().in(this);
|
||||
query.select(".inputComponent").boundingClientRect((res) => {
|
||||
this.Elementheight = res.height * 2;
|
||||
@@ -330,29 +499,75 @@ const _sfc_main = {
|
||||
onMoreItem(type) {
|
||||
if (type == "Album") {
|
||||
this.onSendMedia();
|
||||
} else if (type == "Video") {
|
||||
this.onSendVideo();
|
||||
} else {
|
||||
this.MoreItemStatus = type;
|
||||
}
|
||||
},
|
||||
//发送图片,视频消息
|
||||
onSendMedia() {
|
||||
common_vendor.index.chooseMedia({
|
||||
count: 9,
|
||||
mediaType: ["image", "video"],
|
||||
//发送视频
|
||||
onSendVideo() {
|
||||
var im = this.$goeasy.im;
|
||||
common_vendor.index.chooseVideo({
|
||||
sourceType: ["album", "camera"],
|
||||
maxDuration: 60,
|
||||
camera: "front",
|
||||
success(res) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:523", res.tempFiles);
|
||||
if (res.tempFiles.fileType == "image")
|
||||
;
|
||||
else if (res.tempFiles.fileType == "video")
|
||||
;
|
||||
success: (res) => {
|
||||
var message = im.createVideoMessage({
|
||||
file: res,
|
||||
//H5获得的视频file对象, Uniapp和小程序调用chooseVideo,success时得到的res对象
|
||||
to: {
|
||||
type: common_vendor.jo.IM_SCENE.PRIVATE,
|
||||
id: this.userId,
|
||||
//对方用户id
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:811", "file uploading:", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
components_goEasyTool_tool.sendGroupMessage(this.$goeasy, message).then((res2) => {
|
||||
this.ElementPositioning = res2.id = components_ChatId.generateId();
|
||||
res2.timestampStatus = this.checkInterval(res2.timestamp);
|
||||
this.chatList.push(res2);
|
||||
this.judgescrollTop = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
//发送音频消息
|
||||
onSendAudio() {
|
||||
//发送图片
|
||||
onSendMedia() {
|
||||
var im = this.$goeasy.im;
|
||||
common_vendor.index.chooseImage({
|
||||
count: 9,
|
||||
//默认9
|
||||
sizeType: ["original", "compressed"],
|
||||
//可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ["album", "camera"],
|
||||
//从相册选择
|
||||
success: (res) => {
|
||||
const tempFiles = res.tempFiles;
|
||||
tempFiles.forEach((item, index) => {
|
||||
var message = im.createImageMessage({
|
||||
file: item,
|
||||
to: {
|
||||
type: common_vendor.jo.IM_SCENE.PRIVATE,
|
||||
id: this.userId,
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:841", "上传进度", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
components_goEasyTool_tool.sendGroupMessage(this.$goeasy, message).then((res2) => {
|
||||
this.ElementPositioning = res2.id = components_ChatId.generateId();
|
||||
res2.timestampStatus = this.checkInterval(res2.timestamp);
|
||||
this.chatList.push(res2);
|
||||
this.judgescrollTop = false;
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取键盘高度
|
||||
onFocus(event) {
|
||||
@@ -400,14 +615,20 @@ const _sfc_main = {
|
||||
components: {
|
||||
textmessage,
|
||||
InvitationComponents,
|
||||
customPKMessage
|
||||
customPKMessage,
|
||||
imageMessage,
|
||||
videoMessage,
|
||||
voiceMessage
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_textmessage = common_vendor.resolveComponent("textmessage");
|
||||
const _component_customPKMessage = common_vendor.resolveComponent("customPKMessage");
|
||||
const _component_imageMessage = common_vendor.resolveComponent("imageMessage");
|
||||
const _component_videoMessage = common_vendor.resolveComponent("videoMessage");
|
||||
const _component_voiceMessage = common_vendor.resolveComponent("voiceMessage");
|
||||
const _component_InvitationComponents = common_vendor.resolveComponent("InvitationComponents");
|
||||
(_component_textmessage + _component_customPKMessage + _component_InvitationComponents)();
|
||||
(_component_textmessage + _component_customPKMessage + _component_imageMessage + _component_videoMessage + _component_voiceMessage + _component_InvitationComponents)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
@@ -424,60 +645,135 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: item.senderId == $data.userId
|
||||
}, item.senderId == $data.userId ? common_vendor.e({
|
||||
d: $data.avatar,
|
||||
e: item.type == "text"
|
||||
e: item.type == "text" || item.type == "audio"
|
||||
}, item.type == "text" || item.type == "audio" ? {} : {}, {
|
||||
f: item.type == "text"
|
||||
}, item.type == "text" ? {
|
||||
f: "f4b42ac4-0-" + i0,
|
||||
g: common_vendor.p({
|
||||
g: "f4b42ac4-0-" + i0,
|
||||
h: common_vendor.p({
|
||||
messagetext: item.payload.text
|
||||
})
|
||||
} : {}, {
|
||||
h: item.type == "pk"
|
||||
i: item.type == "pk"
|
||||
}, item.type == "pk" ? {
|
||||
i: "f4b42ac4-1-" + i0,
|
||||
j: common_vendor.p({
|
||||
j: "f4b42ac4-1-" + i0,
|
||||
k: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}) : {}, {
|
||||
k: item.senderId == $data.userinfo.id
|
||||
} : {}, {
|
||||
l: item.type == "image"
|
||||
}, item.type == "image" ? {
|
||||
m: "f4b42ac4-2-" + i0,
|
||||
n: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}, {
|
||||
o: item.type == "video"
|
||||
}, item.type == "video" ? {
|
||||
p: "f4b42ac4-3-" + i0,
|
||||
q: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}, {
|
||||
r: item.type == "audio"
|
||||
}, item.type == "audio" ? {
|
||||
s: "f4b42ac4-4-" + i0,
|
||||
t: common_vendor.p({
|
||||
message: item.payload,
|
||||
senderId: item.senderId,
|
||||
userId: $data.userinfo.id
|
||||
})
|
||||
} : {}, {
|
||||
v: item.type == "text" || item.type == "audio" ? "#7bbd0093" : "#ffffff"
|
||||
}) : {}, {
|
||||
w: item.senderId == $data.userinfo.id
|
||||
}, item.senderId == $data.userinfo.id ? common_vendor.e({
|
||||
l: $data.userinfo.headerIcon,
|
||||
m: item.type == "text"
|
||||
x: $data.userinfo.headerIcon,
|
||||
y: item.type == "text" || item.type == "audio"
|
||||
}, item.type == "text" || item.type == "audio" ? {} : {}, {
|
||||
z: item.type == "text"
|
||||
}, item.type == "text" ? {
|
||||
n: "f4b42ac4-2-" + i0,
|
||||
o: common_vendor.p({
|
||||
A: "f4b42ac4-5-" + i0,
|
||||
B: common_vendor.p({
|
||||
messagetext: item.payload.text
|
||||
})
|
||||
} : {}, {
|
||||
p: item.type == "pk"
|
||||
C: item.type == "pk"
|
||||
}, item.type == "pk" ? {
|
||||
q: "f4b42ac4-3-" + i0,
|
||||
r: common_vendor.p({
|
||||
D: "f4b42ac4-6-" + i0,
|
||||
E: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}) : {}, {
|
||||
s: item.id,
|
||||
t: item.id
|
||||
} : {}, {
|
||||
F: item.type == "image"
|
||||
}, item.type == "image" ? {
|
||||
G: "f4b42ac4-7-" + i0,
|
||||
H: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}, {
|
||||
I: item.type == "video"
|
||||
}, item.type == "video" ? {
|
||||
J: "f4b42ac4-8-" + i0,
|
||||
K: common_vendor.p({
|
||||
message: item.payload
|
||||
})
|
||||
} : {}, {
|
||||
L: item.type == "audio"
|
||||
}, item.type == "audio" ? {
|
||||
M: common_vendor.o($options.notplayVoice, item.id),
|
||||
N: "f4b42ac4-9-" + i0,
|
||||
O: common_vendor.p({
|
||||
message: item.payload,
|
||||
senderId: item.senderId,
|
||||
userId: $data.userinfo.id,
|
||||
playbackStatus: $data.playbackStatus
|
||||
})
|
||||
} : {}, {
|
||||
P: item.type == "text" || item.type == "audio" ? "#7bbd0093" : "#ffffff"
|
||||
}) : {}, {
|
||||
Q: item.id,
|
||||
R: item.id
|
||||
});
|
||||
}),
|
||||
f: common_vendor.o((...args) => $options.onScrollToUpper && $options.onScrollToUpper(...args)),
|
||||
g: $data.ElementPositioning,
|
||||
h: common_vendor.o((...args) => $options.onScroll && $options.onScroll(...args)),
|
||||
i: common_vendor.o(($event) => $options.onMore(false)),
|
||||
j: $data.MoreStatus || $data.KeyboardHeight != 0 || $data.Elementheight != 0 ? $data.MoreStatus ? 650 + $data.Elementheight + "rpx" : $data.KeyboardHeight != 0 ? $data.KeyboardHeight + $data.Elementheight + "rpx" : $data.Elementheight + "rpx" : $data.Elementheight + "rpx",
|
||||
k: common_vendor.o([($event) => $data.content = $event.detail.value, (...args) => $options.SendInput && $options.SendInput(...args)]),
|
||||
l: common_vendor.o((...args) => $options.onFocus && $options.onFocus(...args)),
|
||||
m: common_vendor.o((...args) => $options.onBlur && $options.onBlur(...args)),
|
||||
n: $data.content,
|
||||
o: !$data.ButtonStatus
|
||||
j: $data.MoreStatus || $data.KeyboardHeight != 0 ? $data.MoreStatus ? 650 + $data.Elementheight + "rpx" : $data.KeyboardHeight != 0 ? $data.KeyboardHeight + $data.Elementheight + "rpx" : "10vh" : "10vh",
|
||||
k: !$data.voiceStatus
|
||||
}, !$data.voiceStatus ? {
|
||||
l: common_vendor.o(($event) => $options.onVoice(!$data.voiceStatus))
|
||||
} : {}, {
|
||||
m: $data.voiceStatus
|
||||
}, $data.voiceStatus ? {
|
||||
n: common_vendor.o(($event) => $options.onVoice(!$data.voiceStatus))
|
||||
} : {}, {
|
||||
o: $data.voiceStatus
|
||||
}, $data.voiceStatus ? {
|
||||
p: common_vendor.o((...args) => $options.voiceTouchstart && $options.voiceTouchstart(...args)),
|
||||
q: common_vendor.o((...args) => $options.voiceTouchend && $options.voiceTouchend(...args)),
|
||||
r: common_vendor.o((...args) => $options.voiceTouchmove && $options.voiceTouchmove(...args)),
|
||||
s: common_vendor.o((...args) => $options.voiceTouchcancel && $options.voiceTouchcancel(...args))
|
||||
} : {}, {
|
||||
t: !$data.voiceStatus
|
||||
}, !$data.voiceStatus ? {
|
||||
v: common_vendor.o([($event) => $data.content = $event.detail.value, (...args) => $options.SendInput && $options.SendInput(...args)]),
|
||||
w: common_vendor.o((...args) => $options.onFocus && $options.onFocus(...args)),
|
||||
x: $data.inputfocus,
|
||||
y: common_vendor.o((...args) => $options.onBlur && $options.onBlur(...args)),
|
||||
z: $data.content
|
||||
} : {}, {
|
||||
A: !$data.ButtonStatus
|
||||
}, !$data.ButtonStatus ? {
|
||||
p: common_vendor.o(($event) => $options.onMore(!$data.MoreStatus))
|
||||
B: common_vendor.o(($event) => $options.onMore(!$data.MoreStatus))
|
||||
} : {}, {
|
||||
q: $data.ButtonStatus
|
||||
C: $data.ButtonStatus
|
||||
}, $data.ButtonStatus ? {
|
||||
r: common_vendor.o((...args) => $options.onSend && $options.onSend(...args))
|
||||
D: common_vendor.o((...args) => $options.onSend && $options.onSend(...args))
|
||||
} : {}, {
|
||||
s: $data.MoreStatus || $data.KeyboardHeight > 300 ? $data.MoreStatus ? "650rpx" : $data.KeyboardHeight > 300 ? $data.KeyboardHeight + "rpx" : "0" : "0",
|
||||
t: common_vendor.f($data.popUpList, (item, index, i0) => {
|
||||
E: $data.MoreStatus || $data.KeyboardHeight > 300 ? $data.MoreStatus ? "650rpx" : $data.KeyboardHeight > 300 ? $data.KeyboardHeight + "rpx" : "0" : "0",
|
||||
F: common_vendor.f($data.popUpList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
@@ -485,22 +781,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
v: $data.MoreStatus || $data.KeyboardHeight > 300 ? $data.MoreStatus ? "0" : $data.KeyboardHeight > 300 ? "0" : $data.KeyboardHeight + "rpx" : "-650rpx",
|
||||
w: $data.MoreItemStatus == "Invitation"
|
||||
G: $data.MoreStatus || $data.KeyboardHeight > 300 ? $data.MoreStatus ? "0" : $data.KeyboardHeight > 300 ? "0" : $data.KeyboardHeight + "rpx" : "-650rpx",
|
||||
H: $data.MoreItemStatus == "Invitation"
|
||||
}, $data.MoreItemStatus == "Invitation" ? {
|
||||
x: common_vendor.o($options.refreshMessage),
|
||||
y: common_vendor.p({
|
||||
I: common_vendor.o($options.refreshMessage),
|
||||
J: common_vendor.p({
|
||||
oppositeId: $data.userId,
|
||||
myId: $data.userinfo.id,
|
||||
avatar: $data.avatar,
|
||||
nickname: $data.nickname
|
||||
})
|
||||
} : {}, {
|
||||
z: common_vendor.o(() => {
|
||||
K: common_vendor.o(() => {
|
||||
}),
|
||||
A: $data.MoreItemStatus == null ? "-1000rpx" : "0",
|
||||
B: common_vendor.o(($event) => $options.onMoreItem(null)),
|
||||
C: $data.MoreItemStatus == null ? "100vh" : "0"
|
||||
L: $data.MoreItemStatus == null ? "-1000rpx" : "0",
|
||||
M: common_vendor.o(($event) => $options.onMoreItem(null)),
|
||||
N: $data.MoreItemStatus == null ? "100vh" : "0",
|
||||
O: $data.voiceCancelOrSend ? "#ebebeb" : "#000000a9",
|
||||
P: common_vendor.t($data.voiceCancelOrSend ? "取消" : "松手发送"),
|
||||
Q: !$data.voiceCancelOrSend ? "#ebebeb" : "#000000a9",
|
||||
R: $data.voicepopUpstart == false ? "-1000rpx" : "0",
|
||||
S: $data.voicepopUpstart == false ? "100vh" : "0"
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f4b42ac4"]]);
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
"usingComponents": {
|
||||
"textmessage": "./messageComponent/textmessage",
|
||||
"custom-p-k-message": "./messageComponent/customPKMessage",
|
||||
"image-message": "./messageComponent/imageMessage",
|
||||
"video-message": "./messageComponent/videoMessage",
|
||||
"voice-message": "./messageComponent/voiceMessage",
|
||||
"invitation-components": "./moreMessageComponents/InvitationComponents"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -134,7 +134,6 @@
|
||||
.myChatNewsContent.data-v-f4b42ac4 {
|
||||
width: auto;
|
||||
height: auto;
|
||||
background-color: #7bbd0093;
|
||||
border-radius: 20rpx;
|
||||
max-width: 450rpx;
|
||||
}
|
||||
@@ -143,6 +142,43 @@
|
||||
height: 80rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.Voice.data-v-f4b42ac4 {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50rpx;
|
||||
margin-left: 10rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.KeyboardImg.data-v-f4b42ac4 {
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Keyboardpng.data-v-f4b42ac4 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
.MicrophoneImg.data-v-f4b42ac4 {
|
||||
margin-top: 5rpx;
|
||||
width: 53rpx;
|
||||
height: 53rpx;
|
||||
border: 4rpx solid #424242;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Microphonepng.data-v-f4b42ac4 {
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
.textareacomponent.data-v-f4b42ac4 {
|
||||
width: 570rpx;
|
||||
height: auto;
|
||||
@@ -157,6 +193,18 @@
|
||||
overflow-wrap: break-word;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.VoiceInput.data-v-f4b42ac4 {
|
||||
width: 95%;
|
||||
background-color: #ffffff;
|
||||
height: 60rpx;
|
||||
border-radius: 10rpx;
|
||||
padding: 10rpx;
|
||||
overflow-wrap: break-word;
|
||||
margin-left: 30rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
color: #000;
|
||||
}
|
||||
.sendComponent.data-v-f4b42ac4 {
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
@@ -219,6 +267,14 @@
|
||||
transition: top 0.25s ease;
|
||||
z-index: 1000;
|
||||
}
|
||||
.popUpVoice.data-v-f4b42ac4 {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 1000;
|
||||
background-color: #8b8b8bd7;
|
||||
}
|
||||
.popUpInvitationContent.data-v-f4b42ac4 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@@ -229,3 +285,54 @@
|
||||
border-top-left-radius: 40rpx;
|
||||
border-top-right-radius: 40rpx;
|
||||
}
|
||||
.popUpvoiceContent.data-v-f4b42ac4 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1000rpx;
|
||||
/* transition: bottom 0.1s ease; */
|
||||
/* background-color: #ebebeb; */
|
||||
}
|
||||
.gifModule.data-v-f4b42ac4 {
|
||||
padding: 20rpx;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
height: 120rpx;
|
||||
background-color: #232123;
|
||||
}
|
||||
.voiceCenter.data-v-f4b42ac4 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.video-player.data-v-f4b42ac4 {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
border-radius: 20rpx;
|
||||
margin-top: -94rpx;
|
||||
}
|
||||
.CancelModule.data-v-f4b42ac4 {
|
||||
width: 95%;
|
||||
height: 100rpx;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
background-color: #000000a9;
|
||||
font-size: 30rpx;
|
||||
color: #999999;
|
||||
border-radius: 50rpx;
|
||||
margin-top: 500rpx;
|
||||
}
|
||||
.btnModule.data-v-f4b42ac4 {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
background-color: #000000;
|
||||
color: #999999;
|
||||
font-size: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 200rpx;
|
||||
border-top-left-radius: 50%;
|
||||
border-top-right-radius: 50%;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
props: {
|
||||
message: {
|
||||
type: String,
|
||||
type: Object,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
|
||||
80
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.js
vendored
Normal file
80
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.js
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
url: ""
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.url = options.url;
|
||||
},
|
||||
methods: {
|
||||
//返回上一页
|
||||
goBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
//保存图片
|
||||
saveImage() {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在下载图片...",
|
||||
mask: true
|
||||
});
|
||||
common_vendor.index.downloadFile({
|
||||
url: this.url,
|
||||
success: (downloadRes) => {
|
||||
if (downloadRes.statusCode === 200) {
|
||||
common_vendor.index.saveImageToPhotosAlbum({
|
||||
filePath: downloadRes.tempFilePath,
|
||||
success: () => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "保存成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
},
|
||||
fail: (saveErr) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "保存失败: " + saveErr.errMsg,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "下载失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (downloadErr) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "下载失败: " + downloadErr.errMsg,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $data.url,
|
||||
b: common_vendor.o((...args) => $options.saveImage && $options.saveImage(...args)),
|
||||
c: common_vendor.o(() => {
|
||||
}),
|
||||
d: common_vendor.o((...args) => $options.goBack && $options.goBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-61106fa9"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "图片预览",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="image-preview data-v-61106fa9" bindtap="{{d}}"><view class="data-v-61106fa9"></view><image class="image data-v-61106fa9" src="{{a}}" mode="aspectFill"></image><view class="Localbtn data-v-61106fa9" catchtap="{{c}}"><image class="Local data-v-61106fa9" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png" mode="aspectFit" bindtap="{{b}}"></image></view></view>
|
||||
26
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.wxss
vendored
Normal file
26
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/imagePreview.wxss
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
.image-preview.data-v-61106fa9 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: black;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.image.data-v-61106fa9 {
|
||||
width: 100vw;
|
||||
object-fit: contain;
|
||||
}
|
||||
.Localbtn.data-v-61106fa9 {
|
||||
width: 100vw;
|
||||
height: 50rpx;
|
||||
margin-bottom: 50rpx;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.Local.data-v-61106fa9 {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
margin-right: 50rpx;
|
||||
}
|
||||
80
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.js
vendored
Normal file
80
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.js
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
url: ""
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.url = options.url;
|
||||
},
|
||||
methods: {
|
||||
//返回上一页
|
||||
goBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
//保存图片
|
||||
saveImage() {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在下载视频...",
|
||||
mask: true
|
||||
});
|
||||
common_vendor.index.downloadFile({
|
||||
url: this.url,
|
||||
success: (downloadRes) => {
|
||||
if (downloadRes.statusCode === 200) {
|
||||
common_vendor.index.saveVideoToPhotosAlbum({
|
||||
filePath: downloadRes.tempFilePath,
|
||||
success: () => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "保存成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
},
|
||||
fail: (saveErr) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "保存失败: " + saveErr.errMsg,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "下载失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (downloadErr) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "下载失败: " + downloadErr.errMsg,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o(($event) => $options.goBack()),
|
||||
b: $data.url,
|
||||
c: common_vendor.o((...args) => $options.saveImage && $options.saveImage(...args)),
|
||||
d: common_vendor.o(() => {
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3d18a684"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "视频预览",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="image-preview data-v-3d18a684"><view class="top data-v-3d18a684"><image class="Fork data-v-3d18a684" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/crossCross.png" mode="scaleToFill" bindtap="{{a}}"/></view><video class="image data-v-3d18a684" src="{{b}}" mode="aspectFill"></video><view class="Localbtn data-v-3d18a684" catchtap="{{d}}"><image class="Local data-v-3d18a684" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Local.png" mode="aspectFit" bindtap="{{c}}"></image></view></view>
|
||||
35
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.wxss
vendored
Normal file
35
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/fullscreen/videoPreview.wxss
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
.image-preview.data-v-3d18a684 {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: black;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.image.data-v-3d18a684 {
|
||||
width: 100vw;
|
||||
object-fit: contain;
|
||||
}
|
||||
.Localbtn.data-v-3d18a684 {
|
||||
width: 100vw;
|
||||
height: 50rpx;
|
||||
margin-bottom: 50rpx;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.Local.data-v-3d18a684 {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
margin-right: 50rpx;
|
||||
}
|
||||
.Fork.data-v-3d18a684{
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
margin-left: 50rpx;
|
||||
}
|
||||
.top.data-v-3d18a684{
|
||||
margin-top: 110rpx;
|
||||
width: 100vw;
|
||||
}
|
||||
50
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
50
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
imageHeight: 0,
|
||||
imageWidth: 0
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
load(event) {
|
||||
if (event.detail.height > 400) {
|
||||
this.imageHeight = 400;
|
||||
} else {
|
||||
this.imageHeight = event.detail.height;
|
||||
}
|
||||
if (event.detail.width > 400) {
|
||||
this.imageWidth = 400;
|
||||
} else {
|
||||
this.imageWidth = event.detail.width;
|
||||
}
|
||||
},
|
||||
// 点击图片全屏显示
|
||||
imadeFullScreen() {
|
||||
common_vendor.wx$1.navigateTo({
|
||||
url: "/pages/index/chat/messageComponent/fullscreen/imagePreview?url=" + this.message.url
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $data.imageWidth + "rpx",
|
||||
b: $data.imageHeight + "rpx",
|
||||
c: common_vendor.o((...args) => $options.load && $options.load(...args)),
|
||||
d: $props.message.url,
|
||||
e: common_vendor.o((...args) => $options.imadeFullScreen && $options.imadeFullScreen(...args))
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d774affd"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/imageMessage.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="image-message data-v-d774affd" bindtap="{{e}}"><image class="image data-v-d774affd" style="{{'width:' + a + ';' + ('height:' + b)}}" bindload="{{c}}" src="{{d}}" mode="aspectFit"></image></view>
|
||||
8
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxss
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/imageMessage.wxss
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
.image-message.data-v-d774affd{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.image.data-v-d774affd{
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
33
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.js
vendored
Normal file
33
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
common_vendor.wx$1.navigateTo({
|
||||
url: "/pages/index/chat/messageComponent/fullscreen/videoPreview?url=" + this.message.video.url
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $props.message.thumbnail.url,
|
||||
b: common_vendor.o((...args) => $options.onTap && $options.onTap(...args))
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23a12dbe"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/videoMessage.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="video-message data-v-23a12dbe" bindtap="{{b}}"><image class="video-player data-v-23a12dbe" src="{{a}}" mode="scaleToFill"/><image class="Play data-v-23a12dbe" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Play.png" mode="scaleToFill"/></view>
|
||||
18
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxss
vendored
Normal file
18
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/videoMessage.wxss
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
.video-message.data-v-23a12dbe {
|
||||
width: 450rpx;
|
||||
height: 300rpx;
|
||||
border-radius: 20px;
|
||||
display: flex;
|
||||
}
|
||||
.video-player.data-v-23a12dbe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.Play.data-v-23a12dbe {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
margin-left: -330rpx;
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
92
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.js
vendored
Normal file
92
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.js
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
senderId: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
userId: {
|
||||
type: Number
|
||||
},
|
||||
playbackStatus: {
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
innerAudioContext: null,
|
||||
NumberClicks: 0
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
playbackStatus(newVal) {
|
||||
if (!newVal) {
|
||||
if (this.innerAudioContext) {
|
||||
this.innerAudioContext.pause();
|
||||
this.innerAudioContext.destroy();
|
||||
this.innerAudioContext = null;
|
||||
this.NumberClicks = 0;
|
||||
this.$emit("notplayVoice", true);
|
||||
} else {
|
||||
this.$emit("notplayVoice", true);
|
||||
}
|
||||
} else {
|
||||
this.$emit("notplayVoice", true);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
floor(num) {
|
||||
return Math.floor(num);
|
||||
},
|
||||
Play() {
|
||||
this.$emit("notplayVoice", false);
|
||||
setTimeout(() => {
|
||||
this.innerAudioContext = common_vendor.index.createInnerAudioContext();
|
||||
this.innerAudioContext.src = this.message.url;
|
||||
this.innerAudioContext.onEnded(() => {
|
||||
this.NumberClicks = 0;
|
||||
this.innerAudioContext.destroy();
|
||||
this.innerAudioContext = null;
|
||||
});
|
||||
this.innerAudioContext.onError((res) => {
|
||||
this.NumberClicks = 0;
|
||||
this.innerAudioContext.destroy();
|
||||
this.innerAudioContext = null;
|
||||
});
|
||||
this.innerAudioContext.play();
|
||||
this.NumberClicks = 1;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $props.senderId == $props.userId
|
||||
}, $props.senderId == $props.userId ? common_vendor.e({
|
||||
b: common_vendor.t($options.floor($props.message.duration)),
|
||||
c: $data.NumberClicks == 0
|
||||
}, $data.NumberClicks == 0 ? {} : {}, {
|
||||
d: $data.NumberClicks == 1
|
||||
}, $data.NumberClicks == 1 ? {} : {}, {
|
||||
e: $data.NumberClicks == 2
|
||||
}, $data.NumberClicks == 2 ? {} : {}) : common_vendor.e({
|
||||
f: $data.NumberClicks == 0
|
||||
}, $data.NumberClicks == 0 ? {} : {}, {
|
||||
g: $data.NumberClicks == 1
|
||||
}, $data.NumberClicks == 1 ? {} : {}, {
|
||||
h: $data.NumberClicks == 2
|
||||
}, $data.NumberClicks == 2 ? {} : {}, {
|
||||
i: common_vendor.t($options.floor($props.message.duration))
|
||||
}), {
|
||||
j: common_vendor.o((...args) => $options.Play && $options.Play(...args))
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2ecc0080"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/voiceMessage.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="voice-message data-v-2ecc0080" bindtap="{{j}}"><view wx:if="{{a}}" class="voice-message-content data-v-2ecc0080"><view class="data-v-2ecc0080">{{b}}"</view><image wx:if="{{c}}" class="voice-message-avatar data-v-2ecc0080" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png" mode="scaleToFill"/><view wx:if="{{d}}" class="voice-message-name data-v-2ecc0080">播放中...</view><view wx:if="{{e}}" class="voice-message-name data-v-2ecc0080">暂停中...</view></view><view wx:else class="voice-message-content data-v-2ecc0080"><image wx:if="{{f}}" class="voice-message-avatar data-v-2ecc0080" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/voice.png" mode="scaleToFill"/><view wx:if="{{g}}" class="voice-message-name data-v-2ecc0080">播放中...</view><view wx:if="{{h}}" class="voice-message-name data-v-2ecc0080">暂停中...</view><view class="data-v-2ecc0080">"{{i}}"</view></view></view>
|
||||
20
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxss
vendored
Normal file
20
unpackage/dist/dev/mp-weixin/pages/index/chat/messageComponent/voiceMessage.wxss
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
.voice-message.data-v-2ecc0080 {
|
||||
padding: 0 20rpx 0 20rpx;
|
||||
}
|
||||
.voice-message-avatar.data-v-2ecc0080 {
|
||||
width: 100rpx;
|
||||
height: 80rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.voice-message-content.data-v-2ecc0080 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.voice-message-name.data-v-2ecc0080 {
|
||||
height: 80rpx;
|
||||
margin-left: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
@@ -73,7 +73,8 @@ const _sfc_main = {
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.inid,
|
||||
userId: this.id
|
||||
userId: this.id,
|
||||
from: 1
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user