Browse Source

xin

newStyle
corala 2 years ago
parent
commit
c83c48f6b3
3 changed files with 71 additions and 81 deletions
  1. +64
    -71
      src/views/Receive/index.vue
  2. +5
    -7
      src/views/Template/wrongword.vue
  3. +2
    -3
      vue.config.js

+ 64
- 71
src/views/Receive/index.vue View File

@@ -318,10 +318,6 @@
<img class="markicon" :src="imgArr[1]"/> <img class="markicon" :src="imgArr[1]"/>
<p class="marktext">销讲词</p> <p class="marktext">销讲词</p>
</div> </div>
<div class="mark-item">
<img class="markicon" :src="imgArr[2]"/>
<p class="marktext">销讲词销讲词销讲词</p>
</div>
<div class="mark-item"> <div class="mark-item">
<img class="markicon" :src="imgArr[3]"/> <img class="markicon" :src="imgArr[3]"/>
<p class="marktext">销讲词销讲词</p> <p class="marktext">销讲词销讲词</p>
@@ -2446,7 +2442,6 @@ export default {
responseType: "blob", responseType: "blob",
}) })
.then((res) => { .then((res) => {
console.log(res, "adasdjslakd");
let blob = new Blob([res], { type: "audio/*" }); let blob = new Blob([res], { type: "audio/*" });
saveAs(blob, "audio.mp3"); saveAs(blob, "audio.mp3");


@@ -2484,14 +2479,14 @@ export default {
padding: 9px 10px !important; padding: 9px 10px !important;
} }
.rateboxcenttit { .rateboxcenttit {
width: 100%;
height: 44px;
background: #F8F8F8;
display: flex;
align-items: center;
color: #333333;
font-size: 16px;
&>div {
width: 100%;
height: 44px;
background: #F8F8F8;
display: flex;
align-items: center;
color: #333333;
font-size: 16px;
&>div {
flex:1; flex:1;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@@ -2500,75 +2495,74 @@ export default {
} }
} }
.ratebutton { .ratebutton {
width: 68px;
height: 26px;
background: #2671E2;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
color: #FFFFFF;
text-align: center;
line-height: 26px;
margin:0 auto;
width: 68px;
height: 26px;
background: #2671E2;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
color: #FFFFFF;
text-align: center;
line-height: 26px;
margin:0 auto;
} }


.ratebutton1 { .ratebutton1 {
width: 68px;
height: 26px;
background: #F2F2F2;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
color: #999999;
text-align: center;
line-height: 26px;
margin:0 auto;
width: 68px;
height: 26px;
background: #F2F2F2;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
color: #999999;
text-align: center;
line-height: 26px;
margin:0 auto;
} }


/*话术*/ /*话术*/
.huashu-title{ .huashu-title{
background: #fff;
font-size: 16px;
line-height: 20px;
padding: 10px 20px;
background: #fff;
font-size: 16px;
line-height: 20px;
padding: 10px 20px;
} }
.huashu{ .huashu{
width: 400px;
padding: 0 20px 30px;
display: flex;
align-items: center;
flex-wrap: wrap;
background: #fff;
.huashu-item{
margin-right: 20px;
height: 30px;
line-height: 30px;
display: flex;
align-items: center;
.text{
font-size: 14px;
color: #666;
margin-left: 5px;

}
}
width: 400px;
padding: 0 20px 30px;
display: flex;
align-items: center;
flex-wrap: wrap;
background: #fff;
.huashu-item{
margin-right: 20px;
height: 30px;
line-height: 30px;
display: flex;
align-items: center;
.text{
font-size: 14px;
color: #666;
margin-left: 5px;
}
}
} }
.rateboxcent { .rateboxcent {
width: 100%;
height: 50px;
border-bottom: 1px solid #F8F8F8;
display: flex;
align-items: center;
color: #666666;
font-size: 14px;
&>div{
flex:1;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
width: 100%;
height: 50px;
border-bottom: 1px solid #F8F8F8;
display: flex;
align-items: center;
color: #666666;
font-size: 14px;
&>div{
flex:1;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }


.mydesc{ .mydesc{
@@ -2609,7 +2603,6 @@ export default {
line-height: 18px; line-height: 18px;
word-break: break-all; word-break: break-all;
margin: 0; margin: 0;
max-width: 100px;
} }
} }
} }


+ 5
- 7
src/views/Template/wrongword.vue View File

@@ -286,8 +286,6 @@ export default {
if (valid) { if (valid) {
// 编辑 // 编辑
if (this.editFlag) { if (this.editFlag) {
console.log("编辑");

if (this.mistakenList.indexOf(this.ruleForm.correctWord) != -1) { if (this.mistakenList.indexOf(this.ruleForm.correctWord) != -1) {
this.$message.error("正确词不能与错误词相同"); this.$message.error("正确词不能与错误词相同");
return; return;
@@ -297,12 +295,13 @@ export default {
this.$message.error("错误词不能与正确词相同"); this.$message.error("错误词不能与正确词相同");
return; return;
} }
this.$api.api.correctUpdate(this.ruleForm).then((res) => {
console.log(res);
this.$api.api.correctUpdate({
...this.ruleForm,
houseId: this.searchForm.houseId
}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
setTimeout(() => { setTimeout(() => {
this.loadingFlag = false; this.loadingFlag = false;
console.log("防重");
}, 1); }, 1);
this.dialogVisible = false; this.dialogVisible = false;
this.$message.success("编辑成功"); this.$message.success("编辑成功");
@@ -321,11 +320,10 @@ export default {
...this.ruleForm, ...this.ruleForm,
}) })
.then((res) => { .then((res) => {
console.log(res);
// console.log(res);
if (res.code == 0) { if (res.code == 0) {
setTimeout(() => { setTimeout(() => {
this.loadingFlag = false; this.loadingFlag = false;
console.log("防重");
}, 1); }, 1);
this.dialogVisible = false; this.dialogVisible = false;
this.$message.success("新增常错词成功"); this.$message.success("新增常错词成功");


+ 2
- 3
vue.config.js View File

@@ -2,12 +2,11 @@
* 配置参考: * 配置参考:
* https://cli.vuejs.org/zh/config/ * https://cli.vuejs.org/zh/config/
*/ */
// const url = 'http://192.168.31.161:9999' //长龙
// const url = 'http://192.168.31.160:9999' //长龙
// const url = 'http://192.168.31.149:9999' // 胜浩 // const url = 'http://192.168.31.149:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地 // const url = 'http://127.0.0.1:9999' // 本地


const url = 'http://39.97.244.65:9999' // 新测试服务器
// const url = 'http://81.70.55.170:9999' // 旧测试服务器
const url = 'http://39.97.244.65:9999' // 测试服务器


// const url = 'http://62.234.122.43:9999' //正式服务器1 // const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'http://82.156.35.22:9999' // 正式服务器2 // const url = 'http://82.156.35.22:9999' // 正式服务器2


Loading…
Cancel
Save