小程序删除提示

news/2024/7/20 3:46:32 标签: 小程序
wx.showModal({
      title: '提示',
      content: '确定要删除吗?',
      success: function (e) {
        if (e.confirm) {
 console.log('用户点击确定')
            // 用户点击了确定 可以调用删除方法了
          } else if (e.cancel) {
            console.log('用户点击取消')
          }
        }
})


http://www.niftyadmin.cn/n/1367268.html

相关文章

小程序van-picker自定义二级联动

html <van-cell-group><van-cell title-class"hwms-cell-title" title-width"225rpx" value-class"hwms-cell-content" title"仓库-库位" value"{{warehouseContent}}" bind:click"warehouse" /><…

小程序rich-text中实现图片预览

<rich-text nodes"{{details.Content}}" space"ensp" catchtap"catchImage"></rich-text>catchImage(e) {// 富文本点击事件// 富文本const richContent this.data.details.Content;// 判断含有图片if (richContent.indexOf("…

使用小程序内置地图

//点击导航 toNavigator() {const latitudethis.data.Store.lat, longitudethis.data.Store.lng,address this.data.Store.Address,namethis.data.Store.Name;wx.getSetting({success: (res) > {if (res.authSetting[scope.userLocation] ! undefined && res.authSe…

小程序监听点击底部tabbar事件

Page({data:{},onTabItemTap (item) {console.log(item.index)console.log(item.pagePath)console.log(item.text)} })

微信小程序获取地理位置

首先微信公众平台开通权限 app.json "permission":{"scope.userLocation": {"desc": "您的位置信息将用于获取周围门店信息"}},"requiredPrivateInfos": ["getLocation"],"sitemapLocation": "si…

uniapp(小程序)背景水印和原生html实现

uniapp ​ <!-- 水印 --> <template> <view classwater_top><canvas canvas-idwatermarkCanvas stylewidth:100%;height:100%></canvas> </view> </template> <script>export default {data() {return {}},onLoad() {console…

vue实现无限下级修改名称(递归)

<el-form-item label"部门"><el-cascader style"width:100%" v-model"inneraccount.deptId" :options"department" change"handleChange"></el-cascader></el-form-item> // 部门getDepartmentTree…

uniapp中uni.navigateBack();传参

// B页面let pages getCurrentPages();let prevPage pages[pages.length - 2]; //上一个页面this.lablelist.forEach(el > {if (el.seclect) {object.push(el)}})prevPage.$vm.getParams(object); //重点$vmuni.navigateBack();// A页面 methods: { getParams(object) {co…