提交 3a03b273 authored 作者: 陆's avatar

解决主图问题

上级 3425a0a2
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#jdbc.password=diaoyun666 #jdbc.password=diaoyun666
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false #jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.url: jdbc:mysql://159.138.48.71:3306/test?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username: root jdbc.username: root
jdbc.password: AfriShop_date@2#!&*8 jdbc.password: AfriShop_date@2#!&*8
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
#jdbc.password=diaoyun666 #jdbc.password=diaoyun666
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false #jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.url: jdbc:mysql://159.138.48.71:3306/test?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username: root jdbc.username: root
jdbc.password: AfriShop_date@2#!&*8 jdbc.password: AfriShop_date@2#!&*8
......
...@@ -465,6 +465,15 @@ ...@@ -465,6 +465,15 @@
} }
.calculator{ .calculator{
color: #66ccff; color: #66ccff;
border: 1px solid red;
border-radius: 12px;
padding: 2%;
width: 40%;
margin-left: 80px;
}
.calculator .ibox-text{
text-align: center;
padding-bottom: 4%;
} }
.calculator .ibox-text>span{ .calculator .ibox-text>span{
color: #FF3E96; color: #FF3E96;
...@@ -472,9 +481,10 @@ ...@@ -472,9 +481,10 @@
.calculator>.ibox{ .calculator>.ibox{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
margin-top: 0.5%; margin-top: 0.5%;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="rrapp" v-cloak> <div id="rrapp" v-cloak>
...@@ -482,6 +492,8 @@ ...@@ -482,6 +492,8 @@
<Row :gutter="16"> <Row :gutter="16">
<div class="first"> <div class="first">
<div class="querydatas"> <div class="querydatas">
<div class="search-group"> <div class="search-group">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span> <span>
...@@ -729,7 +741,7 @@ ...@@ -729,7 +741,7 @@
</i-select> </i-select>
</Form-item> </Form-item>
<div class="ivu-form-item calculator" style="width: 360px;"> <div class="ivu-form-item calculator">
<div class="ibox-text">我就是个计算器 <span>o(一︿一+)o</span> </div> <div class="ibox-text">我就是个计算器 <span>o(一︿一+)o</span> </div>
<div class="ibox"> <div class="ibox">
<div>请输入成本价(人民币):</div> <div>请输入成本价(人民币):</div>
...@@ -1181,3 +1193,4 @@ ...@@ -1181,3 +1193,4 @@
</script> </script>
</body> </body>
</html> </html>
<img src="../../../statics/img/aaa.jpg"/>
\ No newline at end of file
...@@ -778,7 +778,10 @@ let vm = new Vue({ ...@@ -778,7 +778,10 @@ let vm = new Vue({
alert('请填写运费模板 o( ̄ヘ ̄o#)'); alert('请填写运费模板 o( ̄ヘ ̄o#)');
return return
} }
if (vm.tbCfStationItem.itemPrice<vm.tbCfStationItem.discountPrice && vm.tbCfStationItem.itemPrice != ''){
alert('原价不能小于现价 o( ̄ヘ ̄o#)');
return
}
if (pic == 0){ if (pic == 0){
alert('sku价格不能为空或小于等于0 o( ̄ヘ ̄o#)'); alert('sku价格不能为空或小于等于0 o( ̄ヘ ̄o#)');
return return
...@@ -833,8 +836,9 @@ let vm = new Vue({ ...@@ -833,8 +836,9 @@ let vm = new Vue({
$('#imgWrapper').children().each((item, element) => { $('#imgWrapper').children().each((item, element) => {
_temArr.push($(element).attr('data-img-path')) _temArr.push($(element).attr('data-img-path'))
}) })
vm.uploadList = _temArr; var newlist = _temArr
vm.tbCfStationItem.itemImg = vm.uploadList.map(res => res).join(';'); // vm.uploadList = _temArr;
vm.tbCfStationItem.itemImg = newlist.map(res => res).join(';');
vm.tbCfStationItem.itemDesc = encodeURI(UE.getEditor('itemDesc').getContent()); // 富文本取值 vm.tbCfStationItem.itemDesc = encodeURI(UE.getEditor('itemDesc').getContent()); // 富文本取值
vm.tbCfStationItem.itemDesc = vm.tbCfStationItem.itemDesc.replace(/&nbsp;/g, " "); vm.tbCfStationItem.itemDesc = vm.tbCfStationItem.itemDesc.replace(/&nbsp;/g, " ");
vm.tbCfStationItem.skuImgs = vm.AttributeImgArr.map(item => item.img_path).join(';'); vm.tbCfStationItem.skuImgs = vm.AttributeImgArr.map(item => item.img_path).join(';');
...@@ -855,6 +859,7 @@ let vm = new Vue({ ...@@ -855,6 +859,7 @@ let vm = new Vue({
successCallback: function (r) { successCallback: function (r) {
alert('操作成功', function (index) { alert('操作成功', function (index) {
vm.reload(); vm.reload();
vm.uploadList = []
}); });
} }
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论