From e881af358017042209a076554c333bd5e58d1b68 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期四, 30 五月 2024 09:19:16 +0800 Subject: [PATCH] 1 --- /dev/null | 939 --------------------------------------- src/assets/main.css | 1 src/views/components/dictionary.vue | 176 ++++--- src/plugin/axios/index.ts | 2 src/assets/images/operation/sound.png | 0 src/views/home.vue | 267 ++++++++-- src/assets/images/operation/tag-w.svg | 1 src/main.ts | 2 8 files changed, 304 insertions(+), 1,084 deletions(-) diff --git a/public/resource.json b/public/resource.json deleted file mode 100644 index a123547..0000000 --- a/public/resource.json +++ /dev/null @@ -1,939 +0,0 @@ -[ - { - "index": 1, - "resourceName": "1-1銆丮ODULE 1锛坙esson one锛�", - "md5": "3B2BB09BF969690D2914A5DF9F56E964", - "resourceType": "PPT", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson one ", - "pagination": 18, - "isTeacherResource": "鏄�" - }, - { - "index": 2, - "resourceName": "1-1銆丮ODULE 1锛坙esson one 锛�", - "md5": "3B2BB09BF969690D2914A5DF9F56E964", - "resourceType": "PPT", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson one ", - "pagination": 18, - "isTeacherResource": "鏄�" - }, - { - "index": 3, - "resourceName": "01-Module one Lesson 1-Listening", - "md5": "422139A2EF66EA888C5ED1D550AE23E0", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson one ", - "pagination": 13, - "isTeacherResource": "鍚�" - }, - { - "index": 4, - "resourceName": "02-Module one Lesson 1-Reading", - "md5": "3F442B682D84C8AB06C800B29D734920", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson one ", - "pagination": 13, - "isTeacherResource": "鍚�" - }, - { - "index": 5, - "resourceName": "03-Module one Lesson 1-Reading-Words&Expressions", - "md5": "E8719EC88026BCFB11D292AA999F6D3D", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson one ", - "pagination": 14, - "isTeacherResource": "鍚�" - }, - { - "index": 6, - "resourceName": "1-2銆丮ODULE 1锛坙esson two锛�", - "md5": "CE90404D3022BEC7678CAA42F55B53F9", - "resourceType": "PPT", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson two", - "pagination": 23, - "isTeacherResource": "鏄�" - }, - { - "index": 7, - "resourceName": "04-Module one Lesson 2-Reading ", - "md5": "43AAC2E2725009F975A611DDB5AF41A4", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson two", - "pagination": 20, - "isTeacherResource": "鍚�" - }, - { - "index": 8, - "resourceName": "05-Module one Lesson 2-Reading-Words&Expressions", - "md5": "9B2DC045F8CD6697F14784714D472DBB", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson two", - "pagination": 21, - "isTeacherResource": "鍚�" - }, - { - "index": 9, - "resourceName": "1-3銆丮ODULE 1锛坙esson three锛�", - "md5": "A598DD3E100CD2A0A100AF1C2AC53F15", - "resourceType": "PPT", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson three", - "pagination": 28, - "isTeacherResource": "鏄�" - }, - { - "index": 10, - "resourceName": "06-Module one Lesson 3-Listening-1", - "md5": "D3DD18BEA1DCB8CF3772E9D1DCC8B893", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson three", - "pagination": 14, - "isTeacherResource": "鍚�" - }, - { - "index": 11, - "resourceName": "07-Module one Lesson 3-Listening-2", - "md5": "F7026C57657D78745D38676F7854E9D7", - "resourceType": "闊抽", - "chapterNum": 5, - "chapter": "MODULE1 CHINA,A WONDERLAND", - "section": "lesson three", - "pagination": 14, - "isTeacherResource": "鍚�" - }, - { - "index": 12, - "resourceName": "2-1銆丮ODULE 2锛坙esson one 锛�", - "md5": "962F7ABE3FEF61D27C6ADB2C68730092", - "resourceType": "PPT", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson one ", - "pagination": 37, - "isTeacherResource": "鏄�" - }, - { - "index": 13, - "resourceName": "08-Module Two Lesson 1-Listening ", - "md5": "D96D6F8082786B037A2B1842860BC0C4 ", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson one ", - "pagination": 31, - "isTeacherResource": "鍚�" - }, - { - "index": 14, - "resourceName": "09-Module Two Lesson 1-Reading", - "md5": "E51F6E052B08F00B19819E4D5504219F", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson one ", - "pagination": 31, - "isTeacherResource": "鍚�" - }, - { - "index": 15, - "resourceName": "10-Module Two Lesson 1-Reading-Words&Expressions ", - "md5": "1456A70576E21C0E8C1497916A6E8D57", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson one ", - "pagination": 32, - "isTeacherResource": "鍚�" - }, - { - "index": 16, - "resourceName": "2-2銆丮ODULE 2锛坙esson two锛�", - "md5": "7FDFE8A1F0C925A90D9ED370C4417C72", - "resourceType": "PPT", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson two", - "pagination": 42, - "isTeacherResource": "鏄�" - }, - { - "index": 17, - "resourceName": "11-Module Two Lesson 2-Warm-up", - "md5": "7301D06AC2208C93FE05A9952C8858E7", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson two", - "pagination": 37, - "isTeacherResource": "鍚�" - }, - { - "index": 18, - "resourceName": "12-Module Two Lesson 2-Reading ", - "md5": "85198824B16CA185AFF073275FC394BE", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson two", - "pagination": 38, - "isTeacherResource": "鍚�" - }, - { - "index": 19, - "resourceName": "13-Module Two Lesson 2-Reading-Words&Expressions", - "md5": "148CD1F30A60DAF665B4E4678755D767", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson two", - "pagination": 39, - "isTeacherResource": "鍚�" - }, - { - "index": 20, - "resourceName": "2-3銆丮ODULE 2锛坙esson three锛�", - "md5": "5CA19662B7E5F39AF73B907F5C4513F8", - "resourceType": "PPT", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson three", - "pagination": 47, - "isTeacherResource": "鏄�" - }, - { - "index": 21, - "resourceName": "14-Module Two Lesson 3-Listening 1", - "md5": "7CE34F30D8440BAE15D4A76479834434", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson three", - "pagination": 33, - "isTeacherResource": "鍚�" - }, - { - "index": 22, - "resourceName": "15-Module Two Lesson 3-Listening 2", - "md5": "D5080B2EEBFE29233A6DB282B1A28D6C", - "resourceType": "闊抽", - "chapterNum": 6, - "chapter": "MODULE2 GOING GLOBAL", - "section": "lesson three", - "pagination": 33, - "isTeacherResource": "鍚�" - }, - { - "index": 23, - "resourceName": "3-1銆丮ODULE 3锛坙esson one 锛�", - "md5": "91ED78195E3A140520285007E8B07496", - "resourceType": "PPT", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson one ", - "pagination": 55, - "isTeacherResource": "鏄�" - }, - { - "index": 24, - "resourceName": "16-Module Three Lesson 1-Listening", - "md5": "BE415E5F4ACF889844A235A19832EB42", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson one ", - "pagination": 49, - "isTeacherResource": "鍚�" - }, - { - "index": 25, - "resourceName": "17-Module Three Lesson 1-Reading", - "md5": "CAA563DB7727326EF9469C71E198DC20", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson one ", - "pagination": 50, - "isTeacherResource": "鍚�" - }, - { - "index": 26, - "resourceName": "18-Module Three Lesson 1-Reading-Words&Expressions ", - "md5": "E18F33A25DEB9B77CCBA5FC2977E3385", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson one ", - "pagination": 51, - "isTeacherResource": "鍚�" - }, - { - "index": 27, - "resourceName": "3-2銆丮ODULE 3锛坙esson two 锛�", - "md5": "104F0A7AC131026929589FBEBC29BAFB", - "resourceType": "PPT", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson two", - "pagination": 61, - "isTeacherResource": "鏄�" - }, - { - "index": 28, - "resourceName": "19-Module Three Lesson 2-Listening ", - "md5": "EE3DC2A770CB6280D5F57930017F8473", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "", - "pagination": "", - "isTeacherResource": "鍚�", - "鎻掑叆鏍峰紡璇︾粏璇存槑": "涔︿腑浣嶇疆娌℃湁璇ヨ祫婧愪綅缃�" - }, - { - "index": 29, - "resourceName": "19-Module Three Lesson 2-Reading", - "md5": "6CC658238756D3B60721712FA2453082", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson two", - "pagination": 57, - "isTeacherResource": "鍚�" - }, - { - "index": 30, - "resourceName": "20-Module Three Lesson 2-Reading-Words&Expressions", - "md5": "7E56A7028EFD4ECB1320DB02D079F2A2", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson two", - "pagination": 58, - "isTeacherResource": "鍚�" - }, - { - "index": 31, - "resourceName": "3-3銆丮ODULE 3锛坙esson three 锛�", - "md5": "79B3C4727A3648ED0D7D77D985083599", - "resourceType": "PPT", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson three", - "pagination": 66, - "isTeacherResource": "鏄�" - }, - { - "index": 32, - "resourceName": "21-Module Three Lesson 3-Listening 1", - "md5": "E143D4F451EA8172C368005710C4692B", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson three", - "pagination": 62, - "isTeacherResource": "鍚�" - }, - { - "index": 33, - "resourceName": "22-Module Three Lesson 3-Listening 2 ", - "md5": "B9FD8D144AB41BB9BFB7D363F0FD7975", - "resourceType": "闊抽", - "chapterNum": 7, - "chapter": "MODULE3 A BETTER WORLD WITH VOLUNTEER", - "section": "lesson three", - "pagination": 62, - "isTeacherResource": "鍚�" - }, - { - "index": 34, - "resourceName": "4-1銆丮ODULE 4锛坙esson one锛�", - "md5": "C1EEDE2F8E823D035E8AFBAA367D8623", - "resourceType": "PPT", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson one ", - "pagination": 75, - "isTeacherResource": "鏄�" - }, - { - "index": 35, - "resourceName": "23-Module Four Lesson 1-Listening", - "md5": "A502FE9E4A034ACF1B055B1D547C4B8F", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson one ", - "pagination": 70, - "isTeacherResource": "鍚�" - }, - { - "index": 36, - "resourceName": "24-Module Four Lesson 1-Reading ", - "md5": "59A4053C6BE193D9A97945841614841D", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson one ", - "pagination": 70, - "isTeacherResource": "鍚�" - }, - { - "index": 37, - "resourceName": "25-Module Four Lesson 1-Reading-Words&Expressions", - "md5": "541CA8B7A9AE8746340C1259A83F8422", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson one ", - "pagination": 71, - "isTeacherResource": "鍚�" - }, - { - "index": 38, - "resourceName": "4-2銆丮ODULE 4锛坙esson two锛� ", - "md5": "2A3BF5E3075DDD2EA5B4887CF08AF33E", - "resourceType": "PPT", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson two", - "pagination": 81, - "isTeacherResource": "鏄�" - }, - { - "index": 39, - "resourceName": "26-Module Four Lesson 2-Reading ", - "md5": "53A742267A1C22C01B8D5D35B13D3B9A", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson two", - "pagination": 76, - "isTeacherResource": "鍚�" - }, - { - "index": 40, - "resourceName": "27-Module Four Lesson 2-Reading-Words&Expressions", - "md5": "2683C3F79104E353CE30961433F6AB35", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson two", - "pagination": 77, - "isTeacherResource": "鍚�" - }, - { - "index": 41, - "resourceName": "4-3銆丮ODULE 4锛坙esson three锛� ", - "md5": "92A9E5D4CA97A09947F9E6DD39292AEF", - "resourceType": "PPT", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson three", - "pagination": 86, - "isTeacherResource": "鏄�" - }, - { - "index": 42, - "resourceName": "28-Module Four Lesson 3-Listening 1", - "md5": "393DD3913EF74B1CCCADCE8EC81EC7E2", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson three", - "pagination": 81, - "isTeacherResource": "鍚�" - }, - { - "index": 43, - "resourceName": "29-Module Four Lesson 3-Listening 2", - "md5": "B65A5824313D5331C53AF83FDB42D6AC", - "resourceType": "闊抽", - "chapterNum": 8, - "chapter": "MODULE4 TECHNOLOGY AND OUR LIFE", - "section": "lesson three", - "pagination": 82, - "isTeacherResource": "鍚�" - }, - { - "index": 44, - "resourceName": "5-1銆丮ODULE 5锛坙esson one锛�", - "md5": "4713C703ABB481B5FD8CB59D4BCEDB44", - "resourceType": "PPT", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson one ", - "pagination": 94, - "isTeacherResource": "鏄�" - }, - { - "index": 45, - "resourceName": "30-Module Five Lesson 1-Listening ", - "md5": "66F0637DD5232C224AF3A791D043A0A7", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson one ", - "pagination": 88, - "isTeacherResource": "鍚�" - }, - { - "index": 46, - "resourceName": "31-Module Five Lesson 1-Reading ", - "md5": "157842B38CA587C8134070E66D174DDE", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson one ", - "pagination": 89, - "isTeacherResource": "鍚�" - }, - { - "index": 47, - "resourceName": "32-Module Five Lesson 1-Reading-Words&Expressions", - "md5": "F0060BCF874B78E05E2DC9FE317A6D37", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson one ", - "pagination": 90, - "isTeacherResource": "鍚�" - }, - { - "index": 48, - "resourceName": "5-2銆丮ODULE 5锛坙esson two锛�", - "md5": "6621ED56EDC5B274F01BBDF8CC68E799", - "resourceType": "PPT", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson two", - "pagination": 100, - "isTeacherResource": "鏄�" - }, - { - "index": 49, - "resourceName": "33-Module Five Lesson 2-Reading", - "md5": "4AC860B7C2CEB89231AF97F85275A9C6", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson two", - "pagination": 96, - "isTeacherResource": "鍚�" - }, - { - "index": 50, - "resourceName": "34-Module Five Lesson 2-Reading-Words&Expressions ", - "md5": "31AE82BE3BFCD4F772C7C3AFD27D0E31", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson two", - "pagination": 97, - "isTeacherResource": "鍚�" - }, - { - "index": 51, - "resourceName": "5-3銆丮ODULE 5锛坙esson three锛�", - "md5": "764736AD5A058748C59CD108953D1E0B", - "resourceType": "PPT", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson three", - "pagination": 105, - "isTeacherResource": "鏄�" - }, - { - "index": 52, - "resourceName": "35-Module Five Lesson 3-Listening 1 ", - "md5": "5D9F90ABD53E30608E09A0DEE07401C1", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson three", - "pagination": 101, - "isTeacherResource": "鍚�" - }, - { - "index": 53, - "resourceName": "36-Module Five Lesson 3-Listening 2", - "md5": "3DF0EEC6B4334C0C7FF7BC69F8322C22", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson three", - "pagination": 101, - "isTeacherResource": "鍚�" - }, - { - "index": 54, - "resourceName": "37-Module Five Unit Project", - "md5": "BB6F58469CF7056440FE458E82960F4A", - "resourceType": "闊抽", - "chapterNum": 9, - "chapter": "MODULE5 BETTER PLANET,BETTER HOME", - "section": "lesson three", - "pagination": 105, - "isTeacherResource": "鍚�" - }, - { - "index": 55, - "resourceName": "6-1銆丮ODULE 6锛坙esson one锛� ", - "md5": "8805836F4D952A280157DEE1F58B1F07", - "resourceType": "PPT", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson one ", - "pagination": 114, - "isTeacherResource": "鏄�" - }, - { - "index": 56, - "resourceName": "38-Module Six Lesson 1-Listening\t", - "md5": "AB15FA5A96B3FA325489F2E6620827FD\t", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson one ", - "pagination": 109, - "isTeacherResource": "鍚�" - }, - { - "index": 57, - "resourceName": "39-Module Six Lesson 1-Reading ", - "md5": "DF353557BE4B2C0E71BB2A50C0CA753C", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson one ", - "pagination": 109, - "isTeacherResource": "鍚�" - }, - { - "index": 58, - "resourceName": "40-Module Six Lesson 1-Reading-Words&Expressions ", - "md5": "88F39B788C726DD5DB25F429570FFF7D", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson one ", - "pagination": 110, - "isTeacherResource": "鍚�" - }, - { - "index": 59, - "resourceName": "6-2銆丮ODULE 6锛坙esson two锛�", - "md5": "3504E1248920017C76D416BA50E157C4", - "resourceType": "PPT", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson two", - "pagination": 121, - "isTeacherResource": "鏄�" - }, - { - "index": 60, - "resourceName": "41-Module Six Lesson 2-Reading", - "md5": "B32CC91B062501D0D75349EC300C37EA", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson two", - "pagination": 116, - "isTeacherResource": "鍚�" - }, - { - "index": 61, - "resourceName": "42-Module Six Lesson 2-Reading-Words&Expressions(1) ", - "md5": "0CFCC206E2DC45FBA070CD9CD7F0428B", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson two", - "pagination": 117, - "isTeacherResource": "鍚�" - }, - { - "index": 62, - "resourceName": "6-3銆丮ODULE 6锛坙esson three锛�", - "md5": "713A0651ED9F26C2EEAACD1248BE98FF", - "resourceType": "PPT", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson three", - "pagination": 126, - "isTeacherResource": "鏄�" - }, - { - "index": 63, - "resourceName": "43-Module Six Lesson 3-Listening 1", - "md5": "B392589318D7CC282BE811EDA2D8E6B0", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson three", - "pagination": 121, - "isTeacherResource": "鍚�" - }, - { - "index": 64, - "resourceName": "44-Module Six Lesson 3-Listening 2", - "md5": "625FDB71EC5BD35CF489AA4DE6730373", - "resourceType": "闊抽", - "chapterNum": 10, - "chapter": "MODULE6 A GLIMPSE OF THR WORK ENVIRONMENT", - "section": "lesson three", - "pagination": 122, - "isTeacherResource": "鍚�" - }, - { - "index": 65, - "resourceName": "7-1銆丮ODULE 7锛坙esson one锛�", - "md5": "AFCF0AF62F3AEE0B2AD3D9F1A34C0BAE", - "resourceType": "PPT", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson one ", - "pagination": 134, - "isTeacherResource": "鏄�" - }, - { - "index": 66, - "resourceName": "45-Module Seven Lesson 1-Listening", - "md5": "20D9B02E3B0C95E7CD524224C57E643A", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson one ", - "pagination": 129, - "isTeacherResource": "鍚�" - }, - { - "index": 67, - "resourceName": "46-Module Seven Lesson 1-Reading ", - "md5": "01A4E8C1E8E2801EF48DDBBA3E4A30BD", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson one ", - "pagination": 130, - "isTeacherResource": "鍚�" - }, - { - "index": 68, - "resourceName": "47-Module Seven Lesson 1-Reading-Words&Expressions", - "md5": "8D5057637DBB959B365E38360121FB41", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson one ", - "pagination": 131, - "isTeacherResource": "鍚�" - }, - { - "index": 69, - "resourceName": "7-2銆丮ODULE 7锛坙esson two锛�", - "md5": "7DCB21F624B0928D3FEC68FC25E7E8E9", - "resourceType": "PPT", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson two", - "pagination": 138, - "isTeacherResource": "鏄�" - }, - { - "index": 70, - "resourceName": "48-Module Seven Lesson 2-Reading", - "md5": "113D24C2D701120C0F6283A72F9F4366", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson two", - "pagination": 135, - "isTeacherResource": "鍚�" - }, - { - "index": 71, - "resourceName": "49-Module Seven Lesson 2-Reading-Words&Expressions", - "md5": "DE0C4081FE1FFE2374EDB989609B25E9", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson two", - "pagination": 136, - "isTeacherResource": "鍚�" - }, - { - "index": 72, - "resourceName": "7-3銆丮ODULE 7锛坙esson three锛�", - "md5": "F37024A9011D81F7E6199D511AF26A7E", - "resourceType": "PPT", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson three", - "pagination": 143, - "isTeacherResource": "鏄�" - }, - { - "index": 73, - "resourceName": "50-Module Seven Lesson 3-Listening 1", - "md5": "DB59D9F65B437605F766F7975026B61D", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson three", - "pagination": 139, - "isTeacherResource": "鍚�" - }, - { - "index": 74, - "resourceName": "51-Module Seven Lesson 3-Listening 2", - "md5": "53543E43DC90215C21CFC432D46CAB18", - "resourceType": "闊抽", - "chapterNum": 11, - "chapter": "MODULE7 WORK ETHIC AND SUCCESS IN THE WORKPLACE", - "section": "lesson three", - "pagination": 139, - "isTeacherResource": "鍚�" - }, - { - "index": 75, - "resourceName": "8-1銆丮ODULE 8锛坙esson one锛�", - "md5": "13C04E5D87E99850A743AB9EEE8BFD30", - "resourceType": "PPT", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson one ", - "pagination": 152, - "isTeacherResource": "鏄�" - }, - { - "index": 76, - "resourceName": "52-Module Eight Lesson 1-Listening", - "md5": "0D60202A6F614D6B23AF7C48AFC39AB6", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson one ", - "pagination": 147, - "isTeacherResource": "鍚�" - }, - { - "index": 77, - "resourceName": "53-Module Eight Lesson 1-Reading", - "md5": "8C19582CDE35B48FDA735B7E0C206F77", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson one ", - "pagination": 147, - "isTeacherResource": "鍚�" - }, - { - "index": 78, - "resourceName": "54-Module Eight Lesson 1-Reading-Words&Expressions", - "md5": "946A5702CC80B0DB657CCFD66DEE1515", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson one ", - "pagination": 148, - "isTeacherResource": "鍚�" - }, - { - "index": 79, - "resourceName": "8-2銆丮ODULE 8锛坙esson two锛�", - "md5": "691BB643727AD0F4DAC5101DC7BACE07", - "resourceType": "PPT", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson two", - "pagination": 159, - "isTeacherResource": "鏄�" - }, - { - "index": 80, - "resourceName": "55-Module Eight Lesson 2-Reading ", - "md5": "ADAFFAB7BC7A868574889809AB1166A6", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson two", - "pagination": 154, - "isTeacherResource": "鍚�" - }, - { - "index": 81, - "resourceName": "56-Module Eight Lesson 2-Reading-Words&Expressions", - "md5": "966C8CEB3448A41D92BDF9B494F02B88", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson two", - "pagination": 155, - "isTeacherResource": "鍚�" - }, - { - "index": 82, - "resourceName": "8-3銆丮ODULE 8锛坙esson three锛�", - "md5": "62F8CEE1D02966E34591AF62828985BC", - "resourceType": "PPT", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson three", - "pagination": "", - "isTeacherResource": "鏄�", - "鎻掑叆鏍峰紡璇︾粏璇存槑": "涔︿笂娌℃湁浣嶇疆" - }, - { - "index": 83, - "resourceName": "57-Module Eight Lesson 3-Listening 1", - "md5": "76546423FCFAB4B861BC8B94C97D24A2", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson three", - "pagination": 159, - "isTeacherResource": "鍚�" - }, - { - "index": 84, - "resourceName": "58-Module Eight Lesson 3-Listening 2", - "md5": "717A3B915B114D7DC5CA9D3AAA1FC3ED", - "resourceType": "闊抽", - "chapterNum": 12, - "chapter": "MODULE8 THE FIRST STEP TOWARD A CAREER", - "section": "lesson three", - "pagination": 160, - "isTeacherResource": "鍚�" - }, - { - "index": 85, - "resourceName": "寰", - "md5": "29A9C275EEF0BF71C52BE68D8842C0E4", - "resourceType": "瑙嗛", - "chapterNum": "", - "chapter": "", - "section": "", - "pagination": "", - "isTeacherResource": "鍚�" - } -] diff --git a/src/assets/images/operation/sound.png b/src/assets/images/operation/sound.png new file mode 100644 index 0000000..935beb8 --- /dev/null +++ b/src/assets/images/operation/sound.png Binary files differ diff --git a/src/assets/images/operation/tag-w.svg b/src/assets/images/operation/tag-w.svg new file mode 100644 index 0000000..f5cc4ed --- /dev/null +++ b/src/assets/images/operation/tag-w.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="23.862" height="20.816" viewBox="0 0 23.862 20.816"><defs><style>.a{fill:#ff6d00;stroke:#ff6d00;stroke-width:0.4px;}</style></defs><path class="a" d="M6.414,89.28a2.467,2.467,0,1,0,2.467,2.467A2.47,2.47,0,0,0,6.414,89.28Zm0,3.947a1.48,1.48,0,1,1,1.48-1.48A1.48,1.48,0,0,1,6.414,93.227Zm16.6,2.088-9.621-9.621a1.225,1.225,0,0,0-.872-.361H1.233A1.235,1.235,0,0,0,0,86.567v8.328a1.225,1.225,0,0,0,.361.872l9.621,9.621a1.233,1.233,0,0,0,1.744,0l.608-.608.608.608a1.233,1.233,0,0,0,1.744,0l8.328-8.328a1.235,1.235,0,0,0,0-1.744ZM11.029,104.69a.247.247,0,0,1-.349,0L1.059,95.069a.245.245,0,0,1-.072-.174V86.567a.247.247,0,0,1,.247-.247H9.561a.245.245,0,0,1,.174.072l9.621,9.621a.247.247,0,0,1,0,.349Zm11.288-8.328-8.328,8.328a.247.247,0,0,1-.349,0l-.608-.608,7.022-7.022a1.235,1.235,0,0,0,0-1.744l-9-9h1.463a.245.245,0,0,1,.174.072l9.621,9.621a.247.247,0,0,1,0,.349Z" transform="translate(0.2 -85.133)"/></svg> \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index 521e39c..347012c 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -291,6 +291,7 @@ } .catalogueLabel{ padding-right:10px; + flex:1; /* width:200px; white-space: nowrap; overflow: hidden; diff --git a/src/main.ts b/src/main.ts index 595c414..6bb3e37 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,7 @@ if (handleGetToken()) { // 鏄惁鏄櫥褰曢〉闈紝鐩存帴鍒伴椤� if (to.path === '/login') { - next({ path: '/home',query: { bookId: localStorage.getItem('bookId') } }) + next({ path: '/home', query: { bookId: localStorage.getItem('bookId') } }) } else { // 濡傛灉涓嶆槸鐧诲綍椤甸潰锛岃烦杞埌鐩爣鐨勯〉闈� next() diff --git a/src/plugin/axios/index.ts b/src/plugin/axios/index.ts index 320cff3..33ecffe 100644 --- a/src/plugin/axios/index.ts +++ b/src/plugin/axios/index.ts @@ -36,7 +36,7 @@ (error) => { let msg = '璇锋眰鍙戠敓閿欒'; if ((error.response && error.response.status == 401) || error.code == "ERR_NETWORK") { - localStorage.clear() + localStorage.removeItem("token") router.replace({ path: '/login' }) diff --git a/src/views/components/dictionary.vue b/src/views/components/dictionary.vue index 49c0079..a8d67d7 100644 --- a/src/views/components/dictionary.vue +++ b/src/views/components/dictionary.vue @@ -10,24 +10,38 @@ <div class="resultBox" v-if="searchResult.length > 0"> <div v-for="result in searchResult" :key="result.id"> <div class="phone_con"> - <div class="per-phone">鑻� /<span>{{result.ukPhone}}</span>/</div> - <div class="per-phone">缇� /<span>{{result.usPhone}}</span>/</div> + <div class="per-phone"> + 鑻� <span>/{{ result.ukPhone }}/</span + ><img + :src="sound" + class="soundBtn hover" + @click="soundWord(result.ukPhone)" + /> + </div> + <div class="per-phone"> + 缇� <span>/{{ result.usPhone }}/</span + ><img + :src="sound" + class="soundBtn hover" + @click="soundWord(result.usPhone)" + /> + </div> </div> <div class="trans"> <div v-for="item in result.trans" :key="item"> <div class="itemList"> - <div class="pos">{{item.pos}}.</div> - <div class="tranCn">{{item.tranCn}}</div> + <div class="pos">{{ item.pos }}.</div> + <div class="tranCn">{{ item.tranCn }}</div> </div> </div> </div> <div class="trans" v-if="result.phrase"> <div class="title">璇嶇粍鐭</div> - <div v-for="(item,index) in result.phrase" :key="item"> + <div v-for="(item, index) in result.phrase" :key="item"> <div class="itemList"> - <div class="index">{{index + 1}}</div> - <div class="pos">{{item.pContent}}</div> - <div class="tranCn">{{item.pCn}}</div> + <div class="index">{{ index + 1 }}</div> + <div class="pos">{{ item.pContent }}</div> + <div class="tranCn">{{ item.pCn }}</div> </div> </div> </div> @@ -35,71 +49,84 @@ <div class="title">杩戜箟璇�</div> <div v-for="item in result.syno" :key="item"> <div class="itemList"> - <div class="pos">{{item.pos}}</div> - <div class="tranCn">{{item.tran}}</div> + <div class="pos">{{ item.pos }}</div> + <div class="tranCn">{{ item.tran }}</div> </div> <div class="hwds"> - <div v-for="hw in item.hwds" :key="hw" class="">{{hw.w}}</div> + <div v-for="hw in item.hwds" :key="hw" class="">{{ hw.w }}</div> </div> </div> </div> <div class="trans" v-if="result.sentence"> <div class="title">渚嬪彞</div> - <div v-for="(item,index) in result.sentence" :key="item"> + <div v-for="(item, index) in result.sentence" :key="item"> <div class="itemList1"> - <div class="pos"><span class="index">{{index +1}}</span>{{item.sContent}}</div> - <div class="tranCn">{{item.sCn}}</div> + <div class="pos"> + <span class="index">{{ index + 1 }}</span + >{{ item.sContent }} + </div> + <div class="tranCn">{{ item.sCn }}</div> </div> </div> </div> </div> </div> - <div class="noResultBox" v-else> - 鏆傛棤鍐呭 - </div> + <div class="noResultBox" v-else>鏆傛棤鍐呭</div> </div> </template> <script setup lang="ts"> import { ref, reactive, watch, onMounted, inject } from 'vue' +import sound from '@/assets/images/operation/sound.png' const MG: any = inject('MG') const searchContent = ref('') const isFull = ref(false) -onMounted(() => { -}) +onMounted(() => {}) const searchResult = ref([]) - const getSearchResult = () => { if (searchContent.value) { - MG.edu.findWords([{ - word: searchContent.value, - isFull: isFull.value - }]).then((res) => { + MG.edu + .findWords([ + { + word: searchContent.value, + isFull: isFull.value + } + ]) + .then((res) => { console.log(res) - if (res.length > 0) { - res[0].map((item) => { - item.phrase = JSON.parse(item.phrase) - item.relWord = JSON.parse(item.relWord) - item.sentence = JSON.parse(item.sentence) - item.syno = JSON.parse(item.syno) - item.trans = JSON.parse(item.trans) - }) - searchResult.value = res[0] - } - }) + if (res.length > 0) { + res[0].map((item) => { + item.phrase = JSON.parse(item.phrase) + item.relWord = JSON.parse(item.relWord) + item.sentence = JSON.parse(item.sentence) + item.syno = JSON.parse(item.syno) + item.trans = JSON.parse(item.trans) + }) + searchResult.value = res[0] + } + }) } +} + +const soundWord =(word)=>{ + window.speechSynthesis.cancel() + const synth = window.speechSynthesis + const utterances = new SpeechSynthesisUtterance(searchContent.value) + // utterances.lang = 'EN' // 璁剧疆璇█涓轰腑鏂� + synth.speak(utterances) + } </script> <style lang="less"> -.page{ - height:100%; - overflow-y:auto +.page { + height: 100%; + overflow-y: auto; } .search-Box { - width: 400px; + width: 90%; margin: 0 auto; .custom-input { height: 40px; @@ -118,15 +145,15 @@ } } } -.noResultBox{ - padding:40px; +.noResultBox { + padding: 40px; text-align: center; } -.resultBox{ - padding:20px; - .phone_con{ - .per-phone{ - width:150px; +.resultBox { + padding: 20px; + .phone_con { + .per-phone { + width: 200px; align-items: center; background: #f4f5f7; border-radius: 15px; @@ -136,43 +163,48 @@ font-weight: 500; margin-right: 10px; margin-top: 10px; - // max-width: 100%; + max-width: 100%; padding: 8px 10px; - span{ - margin:0 10px; + span { + margin: 0 10px; + flex: 1; + } + .soundBtn { + width: 18px; + height: 16px; } } } - .trans{ - padding:20px 0; - border-bottom:1px solid #eeeff0; - .title{ - padding:10px 0; - } - .itemList{ - display:flex; + .trans { + padding: 20px 0; + border-bottom: 1px solid #eeeff0; + .title { padding: 10px 0; - .index{ - margin-right:15px; + } + .itemList { + display: flex; + padding: 10px 0; + .index { + margin-right: 15px; } - .pos{ - margin-right:30px; + .pos { + margin-right: 30px; } } - .hwds{ - display:flex; - div{ - padding:0 10px; + .hwds { + display: flex; + div { + padding: 0 10px; } } - .itemList1{ - padding:10px 0; - .index{ - margin-right:15px; + .itemList1 { + padding: 10px 0; + .index { + margin-right: 15px; } - .tranCn{ - margin-left:20px; - margin-top:5px; + .tranCn { + margin-left: 20px; + margin-top: 5px; } } } diff --git a/src/views/home.vue b/src/views/home.vue index 30ceec7..798cad6 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -182,10 +182,21 @@ <div v-if="scribeData.noteList.length > 0"> <div v-for="(noteItem, index) in scribeData.noteList" :key="noteItem"> <div class="chapterName"> - <el-icon @click="noteClose(index)" v-if="scribeData.isShow && scribeData.openIndex == index" class="hover"><ArrowDown /></el-icon> + <el-icon + @click="noteClose(index)" + v-if="scribeData.isShow && scribeData.openIndex == index" + class="hover" + ><ArrowDown + /></el-icon> <el-icon @click="noteOpen(index)" v-else class="hover"><ArrowRight /></el-icon> - <span>{{ noteItem.chapterName }}</span></div> - <div v-for="(item, index1) in noteItem.noteList" :key="item.key" class="listItem" v-show="scribeData.isShow && scribeData.openIndex == index"> + <span>{{ noteItem.chapterName }}</span> + </div> + <div + v-for="(item, index1) in noteItem.noteList" + :key="item.key" + class="listItem" + v-show="scribeData.isShow && scribeData.openIndex == index" + > <div class="textBox"> <div class="title"> <div class="title-con"> @@ -302,8 +313,9 @@ @mouseover="showHandle = index" @mouseleave="showHandle = null" > - <img :src="item.icon" mode="" v-if="item.icon" /> - <el-icon v-else-if="activeClassify == 'image'" size="30"><Picture /></el-icon> + <img :src="item.resourcePath" mode="" v-if="activeClassify == 'image'"/> + <img :src="item.icon" mode="" v-else-if="item.icon && activeClassify != 'image'" /> + <!-- <el-icon v-else-if="activeClassify == 'image'" size="30"></el-icon> --> <el-icon v-else-if="activeClassify == 'audio'" size="30"><Headset /></el-icon> <el-icon v-else-if="activeClassify == 'video'" size="30" ><VideoCamera @@ -407,7 +419,9 @@ <div class="list-box"> <div v-if="reMarkList.length > 0"> <div v-for="(item, index) in reMarkList" :key="index" class="reMarkItem"> - <div class="reMarkCon">{{ item.chapterName }} P{{ item.page }}</div> + <div class="reMarkCon"> + <span class="con">{{ item.content }}</span> <span>P{{ item.page }}</span> + </div> <div class="deleteReMarkImg"> <img :src="shanchu" class="icon hover" @click="deleteReMark(item)" /> </div> @@ -715,7 +729,10 @@ </li> </ul> </div> - <div :class="['openBox', toolState.open ? 'right' : '']"> + <div + :class="['openBox', toolState.open ? 'right' : '']" + v-if="teachToolsMenuData.length > 0" + > <!-- <img :src="shouqiR" v-if="toolState.open" @click="toolState.open = false" /> --> <!-- <img :src="shouqiL" v-if="!toolState.open" @click="toolState.open = true" /> --> <svg @@ -841,7 +858,17 @@ </div> </template> </el-popover> - <div + <div class="floatToolItem mark" + v-if="floatingToolData.activeToolData == '涔︾'" + > + <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> + <div class="imgBox"> + <img :src="tagW" alt="" v-if="floatingToolData.activeToolData == item.name"/> + <img :src="item.icon" alt="" v-else/> + </div> + </el-tooltip> + </div> + <div :class=" floatingToolData.activeToolData == item.name ? 'floatToolActive floatToolItem' @@ -851,7 +878,7 @@ > <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> <div class="imgBox"> - <img :src="item.icon" alt="" /> + <img :src="item.icon" alt=""/> </div> </el-tooltip> <!-- <div class="text">{{ item.name }}</div> --> @@ -932,14 +959,23 @@ :style="{ top: `${dialogToolData.top}px`, left: `${dialogToolData.left}px` }" > <div class="content"> + <div class="word">{{ dictionaryData.data.word }}</div> <div class="phone_con"> <div class="per-phone"> - 鑻� /<span>{{ dictionaryData.data.ukPhone }}</span - >/ + 鑻� <span>/{{ dictionaryData.data.ukPhone }}/</span + ><img + :src="sound" + class="soundBtn hover" + @click="soundWord(dictionaryData.data.word, 'en-UK')" + /> </div> <div class="per-phone"> - 缇� /<span>{{ dictionaryData.data.usPhone }}</span - >/ + 缇� <span>/{{ dictionaryData.data.usPhone }}/</span + ><img + :src="sound" + class="soundBtn hover" + @click="soundWord(dictionaryData.data.word, 'en-US')" + /> </div> </div> <div class="trans"> @@ -1100,6 +1136,7 @@ import setting from '@/assets/images/operation/setting.png' import search from '@/assets/images/operation/search.png' import search1 from '@/assets/images/operation/search1.png' +import sound from '@/assets/images/operation/sound.png' import aIzhinengwenda from '@/assets/images/menu/AIzhinengwenda.png' import aIyuyinyuedu from '@/assets/images/menu/AIyuyinyuedu.png' @@ -1118,15 +1155,16 @@ import daiban from '@/assets/images/menu/daiban.png' import shouqiR from '@/assets/images/menu/shouqi-R.png' import shouqiL from '@/assets/images/menu/shouqi-L.png' -import charuziyuan from '../assets/images/operation/charuziyuan.png' -import charuziyuan_blue from '../assets/images/operation/charuziyuan_blue.png' -import dati_charu from '../assets/images/operation/dati_charu.png' -import dati_charu_blue from '../assets/images/operation/dati_charu_blue.png' -import xiake from '../assets/images/operation/xiake.png' +import charuziyuan from '@/assets/images/operation/charuziyuan.png' +import charuziyuan_blue from '@/assets/images/operation/charuziyuan_blue.png' +import dati_charu from '@/assets/images/operation/dati_charu.png' +import dati_charu_blue from '@/assets/images/operation/dati_charu_blue.png' +import xiake from '@/assets/images/operation/xiake.png' import huabi from '../assets/images/operation/huabi-w.png' import wenzi2 from '../assets/images/operation/wenzi.png' import biaoqianw from '../assets/images/operation/biaoqian-w.png' +import tagW from '../assets/images/operation/tag-w.svg' import baiban from '../assets/images/operation/baiban-w.png' import biaozhu from '../assets/images/operation/pencil-minus.svg' import jieping from '../assets/images/operation/screenshot-w.png' @@ -1223,7 +1261,10 @@ console.log('鐖跺眰state鍙樺寲', state) window.qiankunState = state if (window.qiankunState && window.qiankunState.initTestBook) { - window.qiankunState.initTestBook(localStorage.getItem('bookId') + '',localStorage.getItem('tryPageCount')) + window.qiankunState.initTestBook( + localStorage.getItem('bookId') + '', + localStorage.getItem('tryPageCount') + ) } }) @@ -1247,22 +1288,20 @@ }, chooseWords: (data) => { console.log(data, '鑻辫鐢熻瘝') - if(data){ + if (data) { dialogToolData.txt = data.word dialogToolData.left = data.x dialogToolData.top = data.y + 20 getSearchResult() } - - }, getBookConfig: (data) => { console.log(data.bookConfig, '鍥句功閰嶇疆') bookConfig.value = data.bookConfig getCatalogueData() - getResourceData() + // getResourceData() getTextbookComponents() - getReMarkList() + // getReMarkList() }, catalogChange: (data) => { activeCatalog.value = data.showCatalogList @@ -1272,7 +1311,6 @@ pageChange: (data) => { headerData.process = Number(data.page) currentChapter.value = data.catalog - // catalogTree.value.filter(Number(data.start)) console.log(data, '椤甸潰鍒囨崲锛氱洰鍓嶆樉绀洪〉闈㈠拰瀵瑰簲鐨勭珷鑺備俊鎭�') if (catalogTree.value) { catalogTree.value.setCurrentKey(Number(data.page)) @@ -1280,6 +1318,8 @@ showToolBox.value = false lineDelete.showLineDelete = false dictionaryData.showContent = false + + reMarkCon.value = data.text reMarResult.value = reMarkData.value.find((item) => { return item.chapterNum == data.catalog && item.page == data.page }) @@ -1544,7 +1584,7 @@ const defaultProps = { children: 'children', label: 'label', - page: 'page' + start: 'start' } const filterNode = (value, data) => { @@ -1587,6 +1627,11 @@ teacherResourceList.value = [] // 鑾峰彇鏁扮粍涓墍鏈夊璞$殑age灞炴�х殑鏁伴噺 json.forEach((item) => { + if(item.iconPath){ + item.icon = bookConfig.value.resourceUrl + '/' + item.iconPath + }else{ + item.icon = '' + } if (resourceType.value == 'default') { if (item.isTeacherResource == '鍚�') { defaultResourceList.value.push(item) @@ -1606,6 +1651,13 @@ resourceDataList.value = [] defaultResourceList.value.forEach((resItem) => { if (resItem.resourceType == '鍥剧墖') { + if(resItem.resourcePath){ + resItem.resourcePath = bookConfig.value.resourceUrl + '/' + resItem.resourcePath + }else{ + resItem.resourcePath = bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 + } + + imgPreviewList.value.push(resItem.resourcePath) if (activeClassify.value == 'image') { resourceDataList.value.push(resItem) } @@ -1639,7 +1691,7 @@ count: imgCount, key: 'image' }) - imgPreviewList.value = resourceDataList.value + } if (audioCount > 0) { classifySelectList.value.push({ @@ -1677,6 +1729,26 @@ } }) } + console.log(resourceDataList.value,"鍥剧墖") + // if(activeClassify.value == "video"){ + // resourceDataList.value.forEach((item,index)=>{ + // console.log(item,"item") + // let video = document.createElement("video"); + // video.src = bookConfig.value.requestCtx + '/file/api/ApiDownload?md5=' + item.md5; + // const canvas = document.createElement('canvas') + // canvas.width = 130 + // canvas.height = 80 + // const ctx:any = canvas.getContext('2d'); + // video.crossOrigin = 'anonymous' // 瑙e喅璺ㄥ煙闂锛屼篃灏辨槸鎻愮ず姹℃煋璧勬簮鏃犳硶杞崲瑙嗛 + // video.currentTime = 1 // 绗竴甯� + + // video.oncanplay = () => { //瑙嗛鍑嗗鎾斁 + // ctx.drawImage(video, 0, 0, canvas.width, canvas.height) + // item.icon = canvas.toDataURL("image/png"); //鑾峰彇base64鏍煎紡鐨勫浘鐗� + // } + // }) + + // } } else { let imgCount = 0 let audioCount = 0 @@ -1686,6 +1758,12 @@ resourceDataList.value = [] teacherResourceList.value.forEach((resItem) => { if (resItem.resourceType == '鍥剧墖') { + if(resItem.resourcePath){ + resItem.resourcePath = bookConfig.value.resourceUrl + '/' + resItem.resourcePath + }else{ + resItem.resourcePath = bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 + } + imgPreviewList.value.push(resItem.resourcePath) if (activeClassify.value == 'image') { resourceDataList.value.push(resItem) } @@ -1719,7 +1797,6 @@ count: imgCount, key: 'image' }) - imgPreviewList.value = resourceDataList.value } if (audioCount > 0) { classifySelectList.value.push({ @@ -1789,6 +1866,7 @@ //璧勬簮璺宠浆鍒版寚瀹氫綅缃� const JumpPosition = (data) => { + console.log(data,"璺宠浆") if (window.qiankunState && window.qiankunState.gotoPage) { window.qiankunState.gotoPage(Number(data.chapterNum), Number(data.pagination)) } @@ -1834,6 +1912,7 @@ getNotesList() break case '璧勬簮': + getResourceData() break case '鐭ヨ瘑鍥捐氨': break @@ -1937,13 +2016,13 @@ getNotesList() } //绗旇绔犺妭鏀惰捣 -const noteOpen =(index)=>{ - console.log(scribeData.isShow,index) +const noteOpen = (index) => { + console.log(scribeData.isShow, index) scribeData.isShow = true scribeData.openIndex = index } //绗旇绔犺妭鎵撳紑 -const noteClose =(index)=>{ +const noteClose = (index) => { scribeData.isShow = false scribeData.openIndex = index } @@ -2184,17 +2263,26 @@ const reMarkList = ref([]) const reMarkData = ref([]) const reMarkId = ref([]) +const reMarkCon = ref('') const reMark = () => { let chapterData = catalogueData.value.find((item) => item.chapter == Number(currentChapter.value)) - console.log(chapterData) + if (catalogueData.value.length > 0) { + catalogueData.value.forEach((item1) => { + if (item1.chapter == Number(currentChapter.value) && item1.start == headerData.process) { + chapterData.label = item1.label + } + }) + } + if (chapterData) { reMarkData.value.push({ id: toolClass.uuid(8), createDate: new Date(), page: headerData.process, chapterNum: currentChapter.value, - chapterName: chapterData.label + chapterName: chapterData.label, + content: reMarkCon.value || chapterData.label }) MG.identity .setUserKey({ @@ -2207,7 +2295,7 @@ ] }) .then((res) => { - floatingToolData.activeToolData = '' + // floatingToolData.activeToolData = '' ElMessage({ message: '娣诲姞涔︾鎴愬姛!', type: 'success' @@ -2312,7 +2400,7 @@ if (isUpdateImg.value) { screenshotData.value = [] screenshotList.value.forEach((itemNote) => { - if ((itemNote.id = screenshotId.value)) { + if ((itemNote.id == screenshotId.value)) { itemNote.name = nameData.value } }) @@ -2523,7 +2611,10 @@ colorActive.value = '' switch (item.name) { case 'AI闃呰': + window.speechSynthesis.cancel() + const synth = window.speechSynthesis const utterance = new SpeechSynthesisUtterance(dialogToolData.txt) + console.log(utterance, 1) utterance.lang = 'zh-CN' // 璁剧疆璇█涓轰腑鏂� synth.speak(utterance) showToolBox.value = false @@ -2668,10 +2759,12 @@ // 鍌ㄥ�� dialogToolData.lineHeight[item.key] = data // 娓叉煋 - for (let j = 0; j < data.length; j++) { - const citem = data[j] - if (window.qiankunState && window.qiankunState.renderSign) - window.qiankunState.renderSign(citem.type, citem) + if (data.length > 0) { + for (let j = 0; j < data.length; j++) { + const citem = data[j] + if (window.qiankunState && window.qiankunState.renderSign) + window.qiankunState.renderSign(citem.type, citem) + } } } } @@ -2690,10 +2783,12 @@ dialogToolData.scribeList[item.key] = data // 娓叉煋 - for (let j = 0; j < data.length; j++) { - const citem = data[j] - if (window.qiankunState && window.qiankunState.renderSign) - window.qiankunState.renderSign(citem.type, citem) + if (data.length > 0) { + for (let j = 0; j < data.length; j++) { + const citem = data[j] + if (window.qiankunState && window.qiankunState.renderSign) + window.qiankunState.renderSign(citem.type, citem) + } } } } @@ -2711,10 +2806,12 @@ // 鍌ㄥ�� dialogToolData.notesList[item.key] = data // 娓叉煋 - for (let j = 0; j < data.length; j++) { - const citem = data[j] - if (window.qiankunState && window.qiankunState.renderSign) - window.qiankunState.renderSign(citem.type, citem) + if (data.length > 0) { + for (let j = 0; j < data.length; j++) { + const citem = data[j] + if (window.qiankunState && window.qiankunState.renderSign) + window.qiankunState.renderSign(citem.type, citem) + } } } } @@ -2742,17 +2839,16 @@ let data = catalogueData.value.find((item1) => item1.chapter == Number(item.key)) // console.log(data,'666') let dataList = [] - if(catalogueData.value.length > 0 ){ - catalogueData.value.forEach(item1 =>{ - if(item1.chapter == Number(item.key)){ + if (catalogueData.value.length > 0) { + catalogueData.value.forEach((item1) => { + if (item1.chapter == Number(item.key)) { dataList.push(item1) } }) } - let labels = "" - if(dataList.length > 1) - labels = dataList.map(item => item.label).join('/'); - + let labels = '' + if (dataList.length > 1) labels = dataList.map((item) => item.label).join('/') + let list = JSON.parse(item.value) let itemList = [] if (list.length > 0) { @@ -2805,6 +2901,7 @@ lineDelete.id = id lineDelete.showLineDelete = true if (type == 'Note') { + noteContent.show = false let list = dialogToolData.notesList[chapterNum] let data = list.find((item) => item.id == id) formData.id = id @@ -2834,17 +2931,17 @@ let data = list.find((item) => item.id == id) noteContent.note = data.note noteContent.color = data.color + noteContent.show = true document.addEventListener('mousemove', function (event) { var x = event.offsetX var y = event.offsetY // console.log('榧犳爣鍧愭爣浣嶇疆锛�', x, y) - noteContent.top = event.clientY + 10 + noteContent.top = event.clientY + 20 noteContent.left = event.clientX - noteContent.show = true }) } -window.noteOut = () => { - console.log(123) +window.noteOut = (type) => { + console.log(type, 123) noteContent.show = false } @@ -2981,17 +3078,26 @@ } ]) .then((res) => { - console.log(res[0][0],"cid") + console.log(res[0][0], 'cid') if (res.length > 0 && res[0].length > 0) { res[0].map((item) => { item.trans = JSON.parse(item.trans) }) dictionaryData.data = res[0][0] - console.log(dictionaryData.data,"14") + console.log(dictionaryData.data, '14') dictionaryData.showContent = true } }) } +} + +//鍗曡瘝闃呰 +const soundWord = (word, en) => { + window.speechSynthesis.cancel() + const synth = window.speechSynthesis + const utterances = new SpeechSynthesisUtterance(word) + // utterances.lang = en // 璁剧疆璇█涓轰腑鏂� + synth.speak(utterances) } //鍐呭鍖哄煙椤堕儴鏄剧ず @@ -3131,11 +3237,11 @@ display: inline-block; width: 32px; height: 32px; - .name { - text-align: center; - line-height: 1; - color: #2c3e50; - } + } + .name { + text-align: center; + line-height: 1; + color: #2c3e50; } } .reload { @@ -3493,8 +3599,8 @@ margin: 15px; display: flex; align-items: center; - span{ - margin-left:5px; + span { + margin-left: 5px; } } .reMarkItem { @@ -3503,12 +3609,21 @@ border-radius: 10px; padding: 10px; display: flex; + justify-content: space-between; .reMarkCon { - width: 240px; + // width: 240px; // white-space: nowrap; // overflow: hidden; // text-overflow: ellipsis; - margin-right: 8px; + // margin-right: 8px; + display: flex; + .con { + width: 200px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + margin-right: 8px; + } } .deleteReMarkImg { display: flex; @@ -3923,6 +4038,7 @@ } } .noteContentBox { + max-width: 240px; position: fixed; z-index: 2; padding: 10px; @@ -3935,10 +4051,14 @@ padding: 5px 20px; background: #fff; border-radius: 5px; + .word { + font-weight: bold; + } .phone_con { .per-phone { - width: 150px; + min-width: 150px; align-items: center; + // justify-content: space-between; background: #f4f5f7; border-radius: 15px; box-sizing: border-box; @@ -3950,7 +4070,12 @@ padding: 8px 10px; span { margin: 0 10px; + flex: 1; } + } + .soundBtn { + width: 16px; + height: 14px; } } .trans { @@ -4045,7 +4170,7 @@ video { width: 100%; } - audio{ + audio { width: 100%; } } -- Gitblit v1.9.1