修改部分样式问题,新增解析转义,修改buyer端没有第三方登录问题

This commit is contained in:
lemon橪
2021-09-09 10:43:41 +08:00
parent aaadc90b09
commit 8c864c207a
9 changed files with 215 additions and 177 deletions

View File

@@ -15,6 +15,23 @@ export function unitPrice(val, unit, location) {
}
return (unit || "") + price;
}
// 转义
export function enCode(v1) {
var entry = {
"'": "'",
"&lt;": "<",
"&gt;": ">",
"&#40;": "(",
"&#41;": ")"
};
v1 = v1.replace(/(&#39;)|(&lt;)|(&gt;)|(&#40;)|(&#41;)|\s/gi, function($0) {
return entry[$0] || $0;
});
return v1;
}
/**
* 订单来源

View File

@@ -250,4 +250,11 @@ export default {
};
</script>
<style lang="scss" scoped>
/deep/ .ivu-table-wrapper {
overflow: auto;
}
.table {
min-height: 100vh;
height: auto;
}
</style>

View File

@@ -73,3 +73,8 @@ export default {
}
};
</script>
<style lang="scss" scoped>
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu), .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title-active:not(.ivu-menu-submenu){
color: $theme_color;
}
</style>

View File

@@ -194,10 +194,10 @@ export default {
},
},
watch: {
value: {
value: {
handler: function (val) {
// 赋值给富文本
this.setData(val);
this.setData(this.$options.filters.enCode(val));
},
},
},