作者 anyv
1 个管道 的构建 通过 耗费 2 秒

5

... ... @@ -71,12 +71,18 @@
<td><input class="form-control" type="text" name="pricing" value=""
placeholder="请输入定价"></td>
</tr>
<tr>
<!-- <tr>
<th>商品说明</th>
<td>
<textarea class="form-control" name="instr" style="height: 50px;"
placeholder="请填写商品说明"></textarea>
</td>
</tr>-->
<tr>
<th>商品说明</th>
<td>
<script type="text/plain" id="content" name="instr"></script>
</td>
</tr>
<tr>
<th>书号</th>
... ...
... ... @@ -82,12 +82,18 @@
<td><input class="form-control" type="text" name="pricing" value="{$data.pricing}"
placeholder="请输入定价"></td>
</tr>
<tr>
<!-- <tr>
<th>商品说明</th>
<td>
<textarea class="form-control" name="instr" style="height: 50px;"
placeholder="请填写商品说明">{$data.instr}</textarea>
</td>
</tr>-->
<tr>
<th>商品说明</th>
<td>
<script type="text/plain" id="content" name="instr">{$data.instr}</script>
</td>
</tr>
<tr>
<th>书号</th>
... ...
... ... @@ -57,12 +57,18 @@
placeholder="请输入售价"></td>
</tr>
<tr>
<!-- <tr>
<th>商品说明</th>
<td>
<textarea class="form-control" name="instr" style="height: 50px;"
placeholder="请填写商品说明"></textarea>
</td>
</tr>-->
<tr>
<th>商品说明</th>
<td>
<script type="text/plain" id="content" name="instr"></script>
</td>
</tr>
<tr>
<th>书号</th>
... ...
... ... @@ -56,12 +56,18 @@
placeholder="请输入售价"></td>
</tr>
<tr>
<!--<tr>
<th>商品说明</th>
<td>
<textarea class="form-control" name="instr" style="height: 50px;"
placeholder="请填写商品说明">{$data.instr}</textarea>
</td>
</tr>-->
<tr>
<th>商品说明</th>
<td>
<script type="text/plain" id="content" name="instr">{$data.instr}</script>
</td>
</tr>
<tr>
<th>书号</th>
... ...
... ... @@ -59,12 +59,18 @@
<td><input class="form-control" type="text" name="money" value="{$data.money}"
placeholder="请输入佣金价格"></td>
</tr>
<tr>
<!--<tr>
<th>商品说明</th>
<td>
<textarea class="form-control" name="instr" style="height: 50px;"
placeholder="请填写商品说明">{$data.instr}</textarea>
</td>
</tr>-->
<tr>
<th>商品说明</th>
<td>
<script type="text/plain" id="content" name="instr">{$data.instr}</script>
</td>
</tr>
<tr>
<th>书号</th>
... ...
... ... @@ -165,6 +165,11 @@
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
var str = "赵钱孙李 周吴郑王 南城北里 没有啥";
console.log(str)
console.log(str.split(/\s+/))
</script>
<script>
wx.config({$jssdk});
wx.ready(function () {
wx.onMenuShareAppMessage({
... ...
... ... @@ -8,6 +8,7 @@
<title>学考无忧</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"/>
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css"/>
<link rel="stylesheet" href="__TMPL__/public/assets/css/log.css"/>
<style>
.pay_banner {
width: 100%;
... ... @@ -51,7 +52,7 @@
<div class="Dpayment">
<!--售后咨询弹框开始-->
<div class="tx_mask" onclick="$(this).hide()">
<div class="tx_mask" onclick="$(this).hide()" style="display: none">
<div class="tx_maskCon" onclick="zZFun(this)">
<div class="tx_maskCon2" style="border-radius: 0.1rem;">
<div class="delete_school">
... ... @@ -238,9 +239,8 @@
<script>
<!--售后咨询弹窗-->
$(".pay_bottom2_2").click(function() {
$(".tx_mask").css({
display: "none"
});
console.log(123)
$(".tx_mask").css("display","block")
})
function zZFun(e) {
window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
... ...
... ... @@ -26,8 +26,73 @@
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
}
.tx_mask_delete {
display: none;
z-index: 2;
width: 100%;
height: 100%;
position: fixed;
background-color: rgba(0, 0, 0, 0.5);
}
.delete_school {
font-size: 0.32rem;
color: #333;
text-align: center;
}
.delete_btn {
display: flex;
display: -webkit-flex;
justify-content: space-around;
align-items: center;
}
.tx_maskcancel {
width: 100%;
height: 0.8rem;
background: #f2f2f2;
border-radius: 0.08rem;
text-align: center;
line-height: 0.8rem;
color: #333;
font-size: 0.32rem;
margin-top: 0.4rem;
margin-right: 0.5rem;
}
.tx_maskYes {
width: 100%;
height: 0.8rem;
background: linear-gradient(338deg, rgba(255, 78, 0, 1) 0%, rgba(255, 157, 45, 1) 100%);
border-radius: 0.08rem;
text-align: center;
line-height: 0.8rem;
color: white;
font-size: 0.32rem;
margin-top: 0.4rem;
margin-left: 0.5rem;
}
</style>
<body>
<!-- 删除弹窗 -->
<div class="tx_mask_delete" onclick="$(this).hide()">
<div class="tx_maskCon" onclick="zZFun(this)">
<div class="tx_maskCon2" style="border-radius: 0.1rem;">
<div class="delete_school">
是否确定删除?
</div>
<div class="delete_btn">
<div class="tx_maskcancel">取消</div>
<div class="tx_maskYes">确定</div>
</div>
</div>
</div>
</div>
<!-- 弹窗 -->
<div class="tx_mask" onclick="$(this).hide()">
<div class="tx_maskCon_money" onclick="zZFun(this)">
... ... @@ -99,7 +164,7 @@
<div class="log_five_handle_img">
<img src="__TMPL__/public/assets/images/86.png" alt="" />
</div>
<div class="log_five_handle_word log_five_handle_del" onclick="goods_del({$vo.id})" style="cursor: pointer;">
<div class="log_five_handle_word log_five_handle_del" data-id="{$vo.id}" style="cursor: pointer;">
删除
</div>
</div>
... ... @@ -134,6 +199,52 @@
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script>
let index = '';
let id
//删除商品
$('.log_five_handle_del').each(function() {
$(this).click(function() {
id = $(this).data("id");
index = $(this).parents(".com").index();
console.log(index)
$(".tx_mask_delete").css({
display: "block"
});
})
})
$(".tx_maskYes").click(function() {
console.log(index)
var len = $(".com");
console.log(len)
for(var i = 0; i < len.length; i++) {
if(i == index) {
$(len[i]).remove()
};
$(".tx_mask_delete").css({
display: "none"
});
}
$.post("{:url('Salesmangoods/goods_del')}",{goods_id:id},function(data){
if(data){
$('.del'+id).remove();
}else{
alert('删除失败!');
}
});
})
$(".tx_maskcancel").click(function() {
$(".tx_mask_delete").css({
display: "none"
});
})
function zZFun(e) {
window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
}
</script>
<script>
function zZFun(e) {
window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
}
... ... @@ -157,13 +268,7 @@
*点击删除
*/
function goods_del(id){
$.post("{:url('Salesmangoods/goods_del')}",{goods_id:id},function(data){
if(data){
$('.del'+id).remove();
}else{
alert('删除失败!');
}
});
}
/**
... ...
... ... @@ -23,7 +23,7 @@
.tx_maskCon {
cursor: pointer;
width: 5.6rem;
height: 6rem;
/*height: 6rem;*/
position: absolute;
top: 50%;
left: 50%;
... ...