- 云开发中调用次数到底怎么计算,仅仅浏览页面调用次数20000多?
写了一个商业地产信息展示小程序,需要从小程序上录入店铺信息。现在发现,仅仅是把页面渲染出来,不调用api,不上传数据到云端,也不从云端下载数据,云开发中显示的调用次数高达2万多。为了测试问题,建立了一个新页面,JS内容基本为空,只把wxml粘贴过来,调用次数是同样的高。[图片] <!--mark:美食城信息录入S--> <view wx:if="{{msc}}"> <view> <view class="fenleimiaoshu">店铺概况</view> <view class="waikuang" > <view style="display: flex;"> <view class="xiangximiaoshu">总档口数:</view> <input style="padding-top:12rpx;" placeholder-class="placehouder" placeholder="请输入" value="{{zongdangkoushu}}" bindinput="inputzongdangkoushu" type="number"/> </view> <view style="display: flex;"> <view class="xiangximiaoshu"> 总座位数: </view> <input style="padding-top:12rpx;" placeholder-class="placeholder" placeholder="请输入" value="{{zuoweishu}}" bindinput="inputzuoweishu" type="number"/> </view> <view style="margin-top: 30rpx;" class="xuanxiang"> <view class="xiangximiaoshu"> 楼层类型: </view> <view wx:for="{{loucengleixing}}"> <view class="xuanxiangtiao" data-optionvalue="{{item}}" data-optionindex="{{index}}" bindtap="loucengleixing" style="background-color: {{choosedloucengleixing==item?'#fbbf3b':'#ededed'}};"> {{item}} </view> </view> </view> <view wx:if="{{choosedloucengleixing==loucengleixing[0]}}" style=" display: flex;"> <view class="xiangximiaoshu"> 所在楼层: </view> <view style="padding-top:12rpx;"> 第 {{duocengloucenglocal}} 层</view> </view> <view wx:if="{{choosedloucengleixing==loucengleixing[0]}}" style="margin-left: 200rpx;" class="xuanxiang"> <view wx:for="{{louceng}}"> <view data-optionvalue="{{item}}" data-optionindex="{{index}}" bindtap="louceng" style="margin-bottom: 10rpx; text-align: center; align-items: center; justify-content: center; background-color: {{choosedlouceng==item?'#fbbf3b':'#ededed'}}; padding-top: 15rpx; margin-right: 10rpx; font-size: small; width:130.5rpx; height: 50rpx;">{{item}}层</view> </view> </view> <picker wx:if="{{choosedloucengleixing==loucengleixing[1]}}" style="margin-bottom: 50rpx; margin-top: 20rpx;" bindchange="duoceng" range="{{loucengleixingshuzu}}" mode="multiSelector"> 请选择楼层: <view style=" padding-bottom: 5rpx; margin-bottom: 5rpx; margin-top: 10rpx;color: {{duocengloucenglocal==qingxuanze?'#808080':'black'}}; font-size: large; display: flex;" > <view style=" width: 200rpx;">{{duocengloucenglocal}}</view> <view style="text-align: end; width: 60rpx; margin-left: 400rpx;">〉</view> </view> <view style="width: 630rpx; border-bottom: solid #dddada ;"> </view> </picker> <view wx:if="{{guanliyuan}}" class="xuanxiang"> <view class="xiangximiaoshu"> 是否直租: </view> <view data-zhizu="{{true}}" bindtap="zhizu" class="xuanxiangtiao" style="background-color: {{zhizu?'#fbbf3b':'#ededed'}};"> 是</view> <view data-zhizu="{{false}}" bindtap="zhizu" class="xuanxiangtiao" style="background-color: {{!zhizu?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 有无燃气: </view> <view data-ranqi="{{true}}" bindtap="ranqi" class="xuanxiangtiao" style="background-color: {{ranqi?'#fbbf3b':'#ededed'}};"> 有</view> <view data-ranqi="{{false}}" bindtap="ranqi" class="xuanxiangtiao" style="background-color: {{!ranqi?'#fbbf3b':'#ededed'}};"> 无</view> </view> <!--mark:是否独立表s--> <view wx:if="{{ranqi}}" class="xuanxiang"> <view class="xiangximiaoshu"> 独立燃气表: </view> <view data-dulibiao="{{true}}" bindtap="dulibiao" class="xuanxiangtiao" style="background-color: {{dulibiao?'#fbbf3b':'#ededed'}};"> 有</view> <view data-dulibiao="{{false}}" bindtap="dulibiao" class="xuanxiangtiao" style="background-color: {{!dulibiao?'#fbbf3b':'#ededed'}};"> 无</view> </view> <view wx:if="{{ranqi==true&dulibiao==false}}" style="margin-bottom: 20rpx; display: flex; align-items: center;"> 燃气费:<input style="margin-left: 20rpx;" placeholder-class="placeholder" placeholder="请输入" value="{{ranqifei}}" bindinput="inputranqifei" type="text"/> </view> <!--mark:动力电s--> <view class="xuanxiang"> <view class="xiangximiaoshu"> 380伏动力电: </view> <view data-donglidian="{{true}}" bindtap="donglidian" class="xuanxiangtiao" style="background-color: {{donglidian?'#fbbf3b':'#ededed'}};"> 有</view> <view data-donglidian="{{false}}" bindtap="donglidian" class="xuanxiangtiao" style="background-color: {{!donglidian?'#fbbf3b':'#ededed'}};"> 无</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 有无货梯: </view> <view data-huoti="{{true}}" bindtap="huoti" class="xuanxiangtiao" style="background-color: {{huoti?'#fbbf3b':'#ededed'}};"> 有</view> <view data-huoti="{{false}}" bindtap="huoti" class="xuanxiangtiao" style="background-color: {{!huoti?'#fbbf3b':'#ededed'}};"> 无</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 有无客梯: </view> <view data-keti="{{true}}" bindtap="keti" class="xuanxiangtiao" style="background-color: {{keti?'#fbbf3b':'#ededed'}};"> 有</view> <view data-keti="{{false}}" bindtap="keti" class="xuanxiangtiao" style="background-color: {{!keti?'#fbbf3b':'#ededed'}};"> 无</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 有无库房: </view> <view data-kufang="{{true}}" bindtap="kufang" class="xuanxiangtiao" style="background-color: {{kufang?'#fbbf3b':'#ededed'}};"> 有</view> <view data-kufang="{{false}}" bindtap="kufang" class="xuanxiangtiao" style="background-color: {{!kufang?'#fbbf3b':'#ededed'}};"> 无</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 24小时营业: </view> <view data-allday="{{true}}" bindtap="allday" class="xuanxiangtiao" style="background-color: {{allday?'#fbbf3b':'#ededed'}};"> 是</view> <view data-allday="{{false}}" bindtap="allday" class="xuanxiangtiao" style="background-color: {{!allday?'#fbbf3b':'#ededed'}};"> 否</view> </view> <!--mark:营业时间--> <view wx:if="{{allday==false}}"> <view class="xiangximiaoshu">营业时间</view> <picker style="margin-top: 20rpx;" bindchange="opentime" range="{{opentimeshuzu}}" mode="multiSelector"> 上午开业时间: <view style=" padding-bottom: 5rpx; margin-bottom: 5rpx; margin-top: 10rpx;color: {{opentime==qingxuanze?'#808080':'black'}}; font-size: large; display: flex;" > <view style=" width: 200rpx;">{{opentime}}</view> <view style="text-align: end; width: 60rpx; margin-left: 400rpx;">〉</view> </view> <view style="width: 630rpx; border-bottom: solid #dddada ;"> </view> </picker> <picker style="margin-top: 20rpx;" bindchange="closetime" range="{{closetimeshuzu}}" mode="multiSelector"> 下午闭店时间: <view style=" padding-bottom: 5rpx; margin-bottom: 5rpx; margin-top: 10rpx;color: {{closetime==qingxuanze?'#808080':'black'}}; font-size: large; display: flex;" > <view style=" width: 200rpx;">{{closetime}}</view> <view style="text-align: end; width: 60rpx; margin-left: 400rpx;">〉</view> </view> <view style="width: 630rpx; border-bottom: solid #dddada;"> </view> </picker> </view> </view> <!--mark:许可范围s--> <view class="fenleimiaoshu" style="margin-bottom: 0rpx;">许可范围</view> <view class="waikuang"> <view class="xuanxiang"> <view class="xiangximiaoshu"> 热食许可: </view> <view data-reshi="{{true}}" bindtap="reshi" class="xuanxiangtiao" style="background-color: {{reshi?'#fbbf3b':'#ededed'}};"> 是</view> <view data-reshi="{{false}}" bindtap="reshi" class="xuanxiangtiao" style="background-color: {{!reshi?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 冷食许可: </view> <view data-lengshi="{{true}}" bindtap="lengshi" class="xuanxiangtiao" style="background-color: {{lengshi?'#fbbf3b':'#ededed'}};"> 是</view> <view data-lengshi="{{false}}" bindtap="lengshi" class="xuanxiangtiao" style="background-color: {{!lengshi?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 自制饮品许可: </view> <view data-zizhiyinpin="{{true}}" bindtap="zizhiyinpin" class="xuanxiangtiao" style="background-color: {{zizhiyinpin?'#fbbf3b':'#ededed'}};"> 是</view> <view data-zizhiyinpin="{{false}}" bindtap="zizhiyinpin" class="xuanxiangtiao" style="background-color: {{!zizhiyinpin?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 蛋糕裱花许可: </view> <view data-dangaobiaohua="{{true}}" bindtap="dangaobiaohua" class="xuanxiangtiao" style="background-color: {{dangaobiaohua?'#fbbf3b':'#ededed'}};"> 是</view> <view data-dangaobiaohua="{{false}}" bindtap="dangaobiaohua" class="xuanxiangtiao" style="background-color: {{!dangaobiaohua?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 生食许可: </view> <view data-shengshi="{{true}}" bindtap="shengshi" class="xuanxiangtiao" style="background-color: {{shengshi?'#fbbf3b':'#ededed'}};"> 是</view> <view data-shengshi="{{false}}" bindtap="shengshi" class="xuanxiangtiao" style="background-color: {{!shengshi?'#fbbf3b':'#ededed'}};"> 否</view> </view> <view class="xuanxiang"> <view class="xiangximiaoshu"> 熟食许可: </view> <view data-shushi="{{true}}" bindtap="shushi" class="xuanxiangtiao" style="background-color: {{shushi?'#fbbf3b':'#ededed'}};"> 是</view> <view data-shushi="{{false}}" bindtap="shushi" class="xuanxiangtiao" style="background-color: {{!shushi?'#fbbf3b':'#ededed'}};"> 否</view> </view> </view> <!--mark:品类限制s--> <view class="fenleimiaoshu" style="margin-bottom: 0rpx;">品类限制</view> <view class="waikuang"> <view> <view style="align-items: center; width: fit-content; margin-bottom: 20rpx; display: flex;" class="xiangximiaoshu"> <view>已入驻项目:</view> <switch style=" font-size: small; margin-left: 230rpx;" bindchange="shifoukuaisuluru">快速选择</switch> </view> <view wx:if="{{shifoukuaisuluru==true}}" style=" flex-wrap: wrap; height: fit-content; display: flex; width: fit-content;"> <view style="margin-bottom: 15rpx; margin-right: 15rpx; width: fit-content; " wx:for="{{kuaisuluru}}"> <view style="border-bottom: solid 0.5rpx; padding-right: 8rpx; padding-left: 5rpx; background-color:#ededed; color:black" data-item="{{item}}" data-index="{{index}}" bindtap="kuaisuluru">{{item}}</view> </view> </view> <view style="border-radius: 20rpx; min-height: 100rpx; border: solid 1rpx gray;width: 65prpx; flex-wrap: wrap; display: flex;margin-bottom: 20rpx;margin-top: 20rpx;"> <view style="width: max-content;height: 50rpx; margin-top: 20rpx;" wx:for="{{mscruzhuxiangmu}}" > <view style="background-color: #ffffffbe; display: flex; margin-left: 20rpx;width: fit-content;"> <view>{{item}}</view> <image data-type="1" data-item="{{item}}" data-index="{{index}}" bindtap="shanchuxiangmu" style=" height: 40rpx; width: 40rpx;z-index: 2;" src="/pages/imge/shanchu.png"></image> </view> </view> </view> <input confirm-hold="{{true}}" style="text-align: center; border-radius: 50rpx;background-color:#ededed ;height: 100rpx;width:300rpx;margin-left: 200rpx;" placeholder="输入入驻项目" confirm-type="next" value="{{dangqianshuru}}" bindconfirm="inputmscruzhuxiangmu" type="text" /> </view> <view> <view style="margin-top: 100rpx; align-items: center; margin-bottom: 20rpx; display: flex; height: fit-content; font-size: medium;"> <text >品类限制:</text> <switch style="font-size: small; margin-left: 30rpx;" bindchange="xiangmubukechongfu" checked="{{false}}">不可重复</switch> <switch style="font-size: small; margin-left: 23rpx;" bindchange="shifoukuaisuluru1">快速选择</switch> </view> <view wx:if="{{shifoukuaisuluru1==true}}" style=" flex-wrap: wrap; height: fit-content; display: flex; width: fit-content;"> <view style="margin-bottom: 15rpx; margin-right: 15rpx; width: fit-content; " wx:for="{{kuaisuluru}}"> <view style="border-bottom: solid 0.5rpx; padding-right: 8rpx; padding-left: 5rpx; background-color: #ededed; color:black;" data-item="{{item}}" data-index="{{index}}" bindtap="kuaisuluru1">{{item}}</view> </view> </view> <view style="border-radius: 20rpx; min-height: 100rpx; border: solid 1rpx gray;width: 65prpx; flex-wrap: wrap; display: flex;margin-bottom: 20rpx;margin-top: 20rpx;"> <view style="width: max-content;height: 50rpx; margin-top: 20rpx;" wx:for="{{mscpinleixianzhi}}" > <view style="background-color: #ffffffbe; display: flex; margin-left: 20rpx;width: fit-content;"> <view>{{item}}</view> <image data-type="2" data-item="{{item}}" data-index="{{index}}" bindtap="shanchuxiangmu" style=" height: 40rpx; width: 40rpx;z-index: 2;" src="/pages/imge/shanchu.png"></image> </view> </view> </view> <input confirm-hold="{{true}}" style="text-align: center; border-radius: 50rpx;background-color:#ededed ;height: 100rpx;width:300rpx;margin-left: 200rpx;" placeholder="输入限制项目" confirm-type="next" value="{{dangqianshuru}}" bindconfirm="inputmscpinleixianzhi" type="text" /> </view> </view> <!--mark:费用说明s--> <view class="fenleimiaoshu" style="margin-bottom: 0rpx;">费用说明</view> <view class="waikuang"> 水费(每吨): <input class="qingshuru" placeholder="请输入" value="{{shuifei}}" bindinput="inputshuifei" type="digit"/> 电费(每度): <input class="qingshuru" placeholder="请输入" value="{{dianfei}}" bindinput="inputdianfei" type="digit"/> 库房费用: <input class="qingshuru" placeholder="请输入" value="{{kufangfei}}" bindinput="inputkufangfei" type="text"/> 公摊费: <input class="qingshuru" placeholder="请输入" value="{{mscgongtanfei}}" bindinput="inputmscgongtanfei" type="text"/> 水电燃气接驳费用: <input class="qingshuru" placeholder="请输入" value="{{jieboshuoming}}" bindinput="inputjieboshuoming" type="text"/> 免租期: <input class="qingshuru" placeholder="请输入" value="{{mianzuqi}}" bindinput="inputmianzuqi" type="text"/> <view style="margin-top: 30rpx; display: flex;flex-direction: column;"> <view>收费模式</view> <switch style="margin-top: 10rpx;" type="checkbox" bindchange="yuezujin" checked="{{yuezujin}}">以固定金额计算押金和房租</switch> <switch style="margin-top: 10rpx;" type="checkbox" bindchange="feiyuezujin" checked="{{feiyuezujin}}">其他模式</switch> </view> <picker wx:if="{{yuezujin}}" bindchange="yafufangshi" range="{{yafufangshi}}" mode="multiSelector"> 押付方式: <view style=" padding-bottom: 5rpx; margin-bottom: 5rpx; margin-top: 10rpx;color: {{yafumoshi==qingxuanze?'#808080':'black'}}; font-size: large; display: flex;" > <view style=" width: 200rpx;">{{yafumoshi}}</view> <view style="text-align: end; width: 60rpx; margin-left: 400rpx;">〉</view> </view> <view style="width: 630rpx; border-bottom: solid #dddada ;"/> </picker> <view style="margin-top: 20rpx;" wx:if="{{feiyuezujin}}"> <view> <view>押金</view> <input class="qingshuru" bindinput="inputfeibiaoyajin" value="{{yajinfangshi}}" placeholder="请输入押金收费方式" placeholder-style="" type="text"/> </view> <view> <view>租金</view> <input class="qingshuru" bindinput="inputfeibiaozujin" value="{{zujinfangshi}}" placeholder="请输入租金收费方式" placeholder-style="" type="text"/> </view> </view> </view> <view class="fenleimiaoshu" style="margin-bottom: 0rpx;">周边客流</view> <view class="waikuang"> <view> <textarea class="shurukuang" placeholder="请输入" value="{{shangquanjianjie}}" bindinput="inputshangquanjianjie" type="text"> </textarea> </view> </view> <!--mark:其他说明s--> <view class="fenleimiaoshu" style="margin-bottom: 0rpx;">其他说明</view> <view class="waikuang"> <view> <textarea class="shurukuang" placeholder="请输入" value="{{qitashuoming}}" bindinput="inputqitashuoming" type="text"> </textarea> </view> </view> <!--mark:在租档口s--> <view style="margin-top: 25rpx;" wx:for-index="index1" wx:for-item="item1" wx:for="{{zaizudangkou}}"> <view style="text-align: center; font-size: small; justify-content: center;">新增档口{{index1+1}}号</view> <view class="waikuang"> 档口名称:<input class="qingshuru" placeholder="请输入,例如:1号档口" data-optionindex="{{index1}}" bindinput="inputdangkoumingcheng" value="{{item1.dangkoumingcheng}}" type="text"/> 档口面积:<input class="qingshuru" placeholder="请输入" data-optionindex="{{index1}}" bindinput="inputdangkoumianji" value="{{item1.dangkoumianji}}" type="number"/> 档口租金:<input class="qingshuru" placeholder="请输入" data-optionindex="{{index1}}" bindinput="inputdangkouzujin" value="{{item1.dangkouzujin}}" type="number"/> 电量(千瓦):<input class="qingshuru" placeholder="请输入" data-optionindex="{{index1}}" bindinput="inputdangkoudianliang" value="{{item1.dangkoudianliang}}" type="number"/> <view class="xuanxiang"> <view style="margin-top: 25rpx;" class="xiangximiaoshu"> 是否为转让: </view> <view style="margin-top: 25rpx;" wx:for-index="index2" wx:for-item="item2" wx:for="{{dangkouleixing}}"> <view class="xuanxiangtiao" data-bigoptionindex="{{index1}}" data-optionvalue="{{item2}}" data-optionindex="{{index2}}" bindtap="dangkouleixing" style=" background-color: {{item1.chooseddangkouleixing==item2?'#fbbf3b':'#ededed'}};"> {{item2}} </view> </view> </view> <view class="xuanxiang"> <view style="margin-top: 25rpx;" class="xiangximiaoshu"> 有无燃气: </view> <view style="margin-top: 25rpx;" wx:for-index="index2" wx:for-item="item2" wx:for="{{youwu}}"> <view class="xuanxiangtiao" data-bigoptionindex="{{index1}}" data-optionvalue="{{item2}}" data-optionindex="{{index2}}" bindtap="dangkouranqi" style=" background-color: {{item1.chooseddangkouranqi==item2?'#fbbf3b':'#ededed'}};"> <view>{{youwu[index2]}}</view> </view> </view> </view> <view hidden="{{!item1.dangkouranqi}}"> 燃气流量(立方):<input style="margin-bottom: 25rpx;" class="qingshuru" placeholder="请输入" data-optionindex="{{index1}}" bindinput="inputdangkouranqiliang" value="{{item1.dangkouranqiliang}}" type="number"/> </view> <image hidden="{{item1.tupiandizhi==kong}}" mode="aspectFill" style="border: solid; height: 100rpx; width: 100rpx;" src="{{item1.tupiandizhi}}"></image> <view style="display: flex;"> <view style=" font-size: large; text-align: center; height: 50rpx; margin-right: 25rpx; background-color:#fbbf3b ; width: 317rpx;" data-optionindex="{{index1}}" bindtap="dangkoushangchuantupian" >上传图片</view> <view style="font-size: large ;color: white; text-align: center; background-color:#ec2525 ; width: 317rpx;" bindtap="ontapdeletedangkou" data-optionindex="{{index1}}" >删除档口</view> </view> </view> </view> </view> </view> <!--美食城信息录入E-->
2022-11-14 - 使用小程云开发 查询数据 如何能筛选出某个数组字段中不包含给定值的数据?
求大神解答,使用小程云开发,需要根据输入的内容从数据库中筛选出数据,筛选的条件是,输入的字符不在记录的某个字符串字段中,根据这个条件把数据筛选出来。
2022-10-29