- 小程序备案后才可上线,备案时间需要多长?从9月20号至今一直显示平台审核中
小程序备案后才可上线,备案时间需要多长?从9月20号至今一直显示平台审核中。
2023-09-24 - 数组有参,但是保存到云数据库就没参了。怎么回事? DetailsImages: this.data.
for (let l in this.data.DetailsImage) { wx.cloud.uploadFile({ cloudPath: '商品/' + yonghu.xingming + new Date().getTime() + '.png', filePath: this.data.DetailsImage[l].tempFilePath, }).then(res => { console.log(res) this.data.DetailsImages.push(res.fileID) console.log(this.data.DetailsImages) }) } console.log(this.data.DetailsImages) //时有值的 wx.cloud.database().collection('commodity') .add({ data: { Name: this.data.Name, Money: this.data.Money, SuggestMoney: this.data.SuggestMoney, Supplier: this.data.supplier.Name, Comment: this.data.Text, HomeImage: this.data.HomeImage, DetailsImages: this.data.DetailsImages,//保存到数据库就没值了。 Time: Date.now() } }).then(res => { console.log(res) wx.hideLoading() //加载成功后隐藏 })
2023-02-04 - 小程序云数据库日期字段是字符串的,可是我想要查询一段时间的数据该怎么写了?
wxml用的picker选择器保存的日期,到了数据库是字符串形式的。 我再另一个页面想要通过日期查询某一段时间内的日期,该怎么写查询语句了。 [图片] [图片]
2023-01-08 - form表单提交数据缺少值,不知怎么回事?
<form bindsubmit="jiGong"> <view class="root"> <view class="jigong"> <view class="jigong_rq">日期:</view> <picker mode="date" name="riqi" value="{{time}}" bindchange="getTime"> <view class="jigong_riqi">{{time?time:'请选择'}}</view> </picker> </view> <view class="jigong"> <view class="jigong_rq">项目:</view> <input class="jigong_riqi" name="xiangmu" /> </view> <view> <view class="jigong"> <view class="jigong_rq">负责人:</view> <input class="jigong_riqi" placeholder="请输入负责人给的手机号" name="fuzeren" /> </view> </view> </view> <view class="jigong_xinxi"> <view class="jigong_xinxi_1"> <view class="jigong_xinxi_text">地址:</view> <image class="jigong_xinxi_dizhi" src="/image/dz.png" wx:if="{{!dizhi}}" ></image> <view class="jigong_xinxi_dizhi1" wx:else name="dizhi">{{dizhi}}</view> </view> <view class="jigong_xinxi_1"> <view class="jigong_xinxi_text">工资:</view> <input class="jigong_xinxi_num" placeholder="请输入工资" type="number" name="gongzi" /> </view> <view class="jigong_xinxi_2"> <view class="jigong_xinxi_text_1">备注:</view> <textarea class="jigong_xinxi_beizhu" placeholder="请输入备注..." name="beizhu" /> </view> <view class="jigong_xinxi_1"> <view class="jigong_xinxi_text">款项:</view> <picker mode="selector" value='{{type}}' range="{{kuanxiang}}" bindchange="getKuanXiang" name="kuanxiang"> <view class="jigong_xinxi_kuanxiang{{type.length>0?'kuanxiang':''}}" >{{type?type:'请选择'}}</view> </picker> </view> <view class="jigong_xinxi_2"> <view class="jigong_xinxi_text_1">照片:</view> <image class="jigong_xinxi_img" wx:if="{{!image}}" src="/image/tpj.png" mode="scaleToFill" bindtap="getImage" /> <image class="jigong_xinxi_img1" wx:else="" src="{{image}}" mode="scaleToFill" name="tupian" /> </view> <button class="jigong_queren" form-type="submit">确认保存</button> </view> </form> 调试器显示出来的值。 currentTarget: {id: "", offsetLeft: 0, offsetTop: 10, dataset: {…}}detail:target: {id: "", dataset: {…}, offsetTop: 550, offsetLeft: 14}value:beizhu: ""fuzeren: ""gongzi: ""kuanxiang: nullriqi: ""xiangmu: ""
2023-01-03 - 小程序进入CMS报错451?
以前可以正常进入的,今天突然就进不去。报错451
2022-10-30