我想点击取消预约弹出提示框是否删除,点击确定就删除改模块或者隐藏改模块,不需要传递数据,只要删除效果,麻烦大佬帮我看看,在线等急!
<view class="bj">
<text>订单号:20201090</text>
<text class="flo">待支付</text>
<image src="http://i1.fuimg.com/710528/26811f0f38f7c73e.png" class="xiant"></image>
<image src="http://img95.699pic.com/photo/50123/3906.jpg_wh300.jpg!/both/274x170" class="dzfsj"></image>
<view class="bli">
<text class="tex">小程序服务 </text>
<text class="tex"> (示例数据)</text>
<view class="hs">专业提供小程序管理,设计服务</view>
<view class="je">¥1289</view>
</view>
<image src="http://i1.fuimg.com/710528/26811f0f38f7c73e.png" class="xiant"></image>
<text class="zfb" bindtap="qxyy" hidden="{{hiddenName}}">取消预约</text>
<text class="zfb1" bindtap="showw">去支付</text>
</view>
.bj{
background-color: #ffffff;
height: 215px;
margin-top: 10px;
font-weight: 300;
padding: 15px 10px 15px 10px;
}
.flo{
float: right;
color: red;
}
.xiant{
width: 110%;
height: 20px;
margin-left: -5%;
margin-top: 8px;
}
.dzfsj{
width: 80px;
height: 80px;
}
.bli{
display: inline-block;
padding-left: 3%;
line-height: 31px;
}
.hs{
font-size: 13px;
color: #ccc;
}
.tex{
color: #000000;
font-weight: 400;
}
.je{
color: red;
}
.zfb{
border: 1px solid #ccc;
padding: 8px 8px 8px 8px;
font-size: 13px;
float: right;
color: #ccc
}
.zfb1{
border: 1px solid red;
padding: 8px 8px 8px 8px;
font-size: 13px;
float: right;
color: red;
position: relative;
left: -10px;
}
.bj1{
background-color: #ffffff;
height: 100%;
margin-top: 10px;
font-weight: 300;
padding: 15px 10px 15px 10px;
}
qxyy:function(sm){
wx.showModal({
title: '提示',
content: '确定删除该项吗',
success: function (sm) {
if (sm.confirm) {
console.log(sm)
wx.showToast({
title: '操作成功', // 标题
icon: 'success', // 图标类型,默认success
duration: 1500 // 提示窗停留时间,默认1500ms
})
} else if (sm.cancel) {
wx.showToast({
title: '操作失败',
icon: 'none',
duration: 1500
})
}
}
})
},