游戏这种的确最容易被扒,不像有些靠数据吃饭的
小程序被复制了要怎么做?[图片] 这是我的小程序 9月份已经做的,不知道怎么回事,11月8日有人发表了“算24游戏” 跟我做的一摸一样。 源码被盗了?? 还是真仿了???? 如果是仿的 就没说了,可是 头像图标都是我做的,这个也太过分了吧![图片] [图片] [图片] [图片]
2018-11-21你请求第二页的时候,重新设置一下list=[ ]不就行了吗
微信小程序做了分页,在第二页读取的数据不能覆盖上页数据情况下,上页数据会保留。[图片] [图片] 第二页JSON返回只有两条数据 WXML: <view class="container"> <view class="arrow"> <view class="arrow-left" bindtap='Lclickimg'> <image src='../images/arrow-left.png' style='width:30px;height:16px;margin-left:40%;' ></image> </view> <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}" > <view class="picker" > 第 {{array[index]}} 页 </view> </picker> <view class="arrow-right" bindtap='Rclickimg'> <image src='../images/arrow-right.png' style='width:30px;height:16px;margin-left:44%;' ></image> </view> </view> <navigator class='nav' url='/pages/upload/upload?tname={{item.tname}}&tcontent={{item.tcontent}}&tid={{item.tid}}&price={{item.price}}&place={{item.place}}' wx:for="{{items}}" wx:key> <view class='item'> <view class='item-title'>{{item.tname}}</view> <view class='item-content'>{{item.tcontent}}</view> <view class='item-bottom'> <view>{{item.tm}}</view> <view>{{item.place}} </view> <view>{{item.tid}}</view> </view> <view class='item-price'> <view class='price'> {{item.price/100}}元/票 </view> </view> </view> </navigator> </view> JS: onShow: function() { var that = this; var index=that.data.index; wx.request({ url: 'http://localhost:8080/VoteSystemServer/User/CountRow', data:{ flag:1 }, method: 'GET', dataType: 'json', responseType: 'text', success:function(res){ var arr=res.data; var array = new Array(); for (let i = 0; i < arr.pageCount;i++){ array[i]=i+1; } that.setData({ array:array }) } }); //待审核页,传入 that.data.index wx.request({ url: 'http://localhost:8080/VoteSystemServer/User/doFindAll', data: { Type: 'status', SearchName: '审核通过', sign: '=', Page: parseInt(index) + parseInt(1) }, method: 'GET', dataType: 'json', responseType: 'text', success: function(res) { var arr = res.data; for (let i = 0; i < arr.length ; i++) { var tid = arr[i].tid; var tname = arr[i].tname; var tcontent = arr[i].tcontent; var tnumber = arr[i].tnumber; var name = arr[i].name; var phone = arr[i].phone; var wxname = arr[i].wxname; var tm = arr[i].tm; var status = arr[i].status; var price = arr[i].price; var url = arr[i].url; var province = arr[i].province; var city = arr[i].city; var region = arr[i].region; var place = province + city + region; var tid_data = "items[" + i + "].tid" var tname_data = "items[" + i + "].tname" var tcontent_data = "items[" + i + "].tcontent" var tnumber_data = "items[" + i + "].tnumber" var name_data = "items[" + i + "].name" var phone_data = "items[" + i + "].phone" var wxname_data = "items[" + i + "].wxname" var tm_data = "items[" + i + "].tm" var status_data = "items[" + i + "].status" var price_data = "items[" + i + "].price" var url_data = "items[" + i + "].url" var province_data = "items[" + i + "].province" var city_data = "items[" + i + "].city" var region_data = "items[" + i + "].region" var place_data = "items[" + i + "].place" that.setData({ id: i, [tid_data]: tid, [tname_data]: tname, [tcontent_data]: tcontent, [tm_data]: tm, [price_data]: price, [tid_data]: tid, [place_data]: place, [city_data]: city, [province_data]: province, [region_data]: region }) } }, fail: function(res) {}, complete: function(res) {}, }) } bindPickerChange: function (e) { console.log('picker发送选择改变,携带值为', e.detail.value); this.setData({ index: e.detail.value }); wx.startPullDownRefresh(); }, Lclickimg: function (e) { var that = this; var index = that.data.index; if (index > 0) { that.setData({ index: parseInt(index) - parseInt(1) }) console.log("索引:" + that.data.index); wx.startPullDownRefresh(); } }, Rclickimg: function (e) { var that = this; var len = that.data.array.length var index = that.data.index; if (index < len - 1) { that.setData({ index: parseInt(index) + parseInt(1) }) console.log("索引:" + that.data.index); wx.startPullDownRefresh(); } }, onPullDownRefresh: function () { this.onLoad(); var that = this; var index = that.data.index; wx.request({ url: 'http://localhost:8080/VoteSystemServer/User/CountRow', data: { flag: 1 }, method: 'GET', dataType: 'json', responseType: 'text', success: function (res) { var arr = res.data; var array = new Array(); for (let i = 0; i < arr.pageCount; i++) { array[i] = i + 1; } that.setData({ array: array }) } }); //待审核页,传入 that.data.index wx.request({ url: 'http://localhost:8080/VoteSystemServer/User/doFindAll', data: { Type: 'status', SearchName: '审核通过', sign: '=', Page: parseInt(index) + parseInt(1) }, method: 'GET', dataType: 'json', responseType: 'text', success: function (res) { var arr = res.data; for (let i = 0; i < arr.length; i++) { var tid = arr[i].tid; var tname = arr[i].tname; var tcontent = arr[i].tcontent; var tnumber = arr[i].tnumber; var name = arr[i].name; var phone = arr[i].phone; var wxname = arr[i].wxname; var tm = arr[i].tm; var status = arr[i].status; var price = arr[i].price; var url = arr[i].url; var province = arr[i].province; var city = arr[i].city; var region = arr[i].region; var place = province + city + region; var tid_data = "items[" + i + "].tid" var tname_data = "items[" + i + "].tname" var tcontent_data = "items[" + i + "].tcontent" var tnumber_data = "items[" + i + "].tnumber" var name_data = "items[" + i + "].name" var phone_data = "items[" + i + "].phone" var wxname_data = "items[" + i + "].wxname" var tm_data = "items[" + i + "].tm" var status_data = "items[" + i + "].status" var price_data = "items[" + i + "].price" var url_data = "items[" + i + "].url" var province_data = "items[" + i + "].province" var city_data = "items[" + i + "].city" var region_data = "items[" + i + "].region" var place_data = "items[" + i + "].place" that.setData({ id: i, [tid_data]: tid, [tname_data]: tname, [tcontent_data]: tcontent, [tm_data]: tm, [price_data]: price, [tid_data]: tid, icon: '', [place_data]: place, [city_data]: city, [province_data]: province, [region_data]: region }) } }, fail: function (res) { }, complete: function (res) {wx.stopPullDownRefresh() }, }) }, JSON返回值:第一页 [ { "city": "长沙市", "id": 24, "price": 30, "province": "湖南省", "region": "芙蓉区", "status": "审核通过", "tcontent": "帮忙投5号,每用户可投3票", "tid": "SGB2018111900001", "tm": "2018-11-19 08:27:36", "tname": "测试1901", "tnumber": 2, "url": "http://931248395.ax.nofollow.51wtp.com/index.php/toupiao/h5/detail?id=1910056&vid=931248395&from=timeline", "wxname": "oRPyJ5TTK7RR8XmwxJkVMuyg5WFA" }, { "city": "武汉市", "id": 23, "price": 10, "province": "湖北省", "region": "黄陂区", "status": "审核通过", "tcontent": "测试", "tid": "SGB2018111700005", "tm": "2018-11-17 21:54:31", "tname": "测试1703", "tnumber": 1, "url": "https://mp.weixin.qq.com/s/N7hU912MFI7AoQsqnn0QHA", "wxname": "oRPyJ5dnkYwOs_4Wn1DwipZ108Fk" }, { "city": "武汉市", "id": 22, "price": 15, "province": "湖北省", "region": "新洲区", "status": "审核通过", "tcontent": "投37", "tid": "SGB2018111700004", "tm": "2018-11-17 21:49:58", "tname": "测试1702", "tnumber": 2, "url": "http://chm.dachuw.com/aixin/plugin.php?id=tom_weixin_vote&mod=phb&vid=4&nav=1&from=timeline&isappinstalled=0", "wxname": "oRPyJ5TTK7RR8XmwxJkVMuyg5WFA" }, { "city": "武汉市", "id": 21, "price": 30, "province": "湖北省", "region": "武昌区", "status": "审核通过", "tcontent": "帮忙投第四,你奋斗的样子,真美!", "tid": "SGB2018111700003", "tm": "2018-11-17 21:19:10", "tname": "17测试", "tnumber": 3, "url": "https://mp.weixin.qq.com/s/7BEFvIjN9licgQJ85sbUbA", "wxname": "oRPyJ5dnkYwOs_4Wn1DwipZ108Fk" }, { "city": "武汉市", "id": 20, "price": 30, "province": "湖北省", "region": "江夏区", "status": "审核通过", "tcontent": "4", "tid": "SGB2018111700002", "tm": "2018-11-17 09:00:06", "tname": "4", "tnumber": 1, "url": "http://wx5443.vshangtong.com/?ac=votemb&tid=8377&id=3512&mbid=511975&from=groupmessage", "wxname": "oRPyJ5U-XHjNC0etLJpjcpg2L96g" }, { "city": "武汉市", "id": 19, "price": 30, "province": "湖北省", "region": "江夏区", "status": "审核通过", "tcontent": "3", "tid": "SGB2018111700001", "tm": "2018-11-17 00:01:34", "tname": "3", "tnumber": 1, "url": "http://wx5443.vshangtong.com/?ac=votemb&tid=8377&id=3512&mbid=511975&from=groupmessage", "wxname": "oRPyJ5U-XHjNC0etLJpjcpg2L96g" }, { "city": "武汉市", "id": 18, "price": 30, "province": "湖北省", "region": "江夏区", "status": "审核通过", "tcontent": "2", "tid": "SGB2018111600004", "tm": "2018-11-16 23:46:34", "tname": "2", "tnumber": 3, "url": "http://wx5443.vshangtong.com/?ac=votemb&tid=8377&id=3512&mbid=511975&from=groupmessage", "wxname": "oRPyJ5U-XHjNC0etLJpjcpg2L96g" }, { "city": "武汉市", "id": 17, "price": 30, "province": "湖北省", "region": "江夏区", "status": "审核通过", "tcontent": "1", "tid": "SGB2018111600003", "tm": "2018-11-16 22:26:52", "tname": "1", "tnumber": 1, "url": "http://wx5443.vshangtong.com/?ac=votemb&tid=8377&id=3512&mbid=511975&from=groupmessage", "wxname": "oRPyJ5U-XHjNC0etLJpjcpg2L96g" }, { "city": "undefined", "id": 13, "price": 30, "province": "undefined", "region": "undefined", "status": "审核通过", "tcontent": "测试", "tid": "SGB2018111600002", "tm": "2018-11-16 20:25:24", "tname": "测试", "tnumber": 1, "url": "http://wx5443.vshangtong.com/", "wxname": "undefined" }, { "city": "undefined", "id": 12, "price": 30, "province": "undefined", "region": "undefined", "status": "审核通过", "tcontent": "123456", "tid": "SGB2018111600001", "tm": "2018-11-16 19:55:04", "tname": "特别的", "tnumber": 3, "url": "http://wx5443.vshangtong.com/index.php", "wxname": "undefined" } ] JSON返回值:第二页 [ { "city": "武汉市", "id": 9, "price": 30, "province": "湖北省", "region": "黄陂区", "status": "审核通过", "tcontent": "测试", "tid": "SGB2018110800001", "tm": "2018-11-08 14:46:17", "tname": "测试", "tnumber": 5, "url": "https://www.baidu.com", "wxname": "oRPyJ5dnkYwOs_4Wn1DwipZ108Fk" }, { "city": "武汉市", "id": 7, "price": 30, "province": "湖北省", "region": "江夏区", "status": "审核通过", "tcontent": "测试1内容", "tid": "SGB2018110600001", "tm": "2018-11-06 16:33:58", "tname": "测试1", "tnumber": 1, "url": "1", "wxname": "oRPyJ5U-XHjNC0etLJpjcpg2L96g" } ]
2018-11-19给官方干掉了
小程序能分享到朋友圈吗?- 用户分享自己在小程序中的个人主页 - 能够将小程序分享到朋友圈,而不是通过二维码
2018-11-12有勇气啊 兄弟
以 灌云情趣内衣 为名称的小程序无法被搜索到账号状态正常,却无法被搜索到,官方给个解释!搜索功能是小程序的命脉
2018-11-12小程序不用下载啊。站用户角度看看你选一个需要下载又不知道好不好用的app还是选不知道好不好用的小程序。
我弱弱的问下,你们都那么喜欢小程序吗?小程序的好处在哪里?一会公众号,一会订阅号、服务号,企业号,一会小程序的,根本搞不懂啊 而且很多看似很高大上的小程序,根本不好用,体验不好,经常卡死,经常错位,经常提交不了数据,经常没有用,这算不算微信的鸡肋呢? 小程序就只能对简单的功能可以,过于花哨的东西确实不好用,你们没体验到吗?
2018-11-08收藏,不是因为问题是因为这个左滑的组件,哈哈
列表中使用movable-view与下拉刷新冲突么?- 当前 Bug 的表现(可附上截图) 列表中使用movable-view实现了左滑删除功能,禁止了y轴的移动;但是在movable-view区域内下来刷新无效了,在之外的区域是可以的,是不是有冲突?还是禁止冒泡了? - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2018-11-07立马发布需要等待一段时间才能搜索的到,你明天再看看。
微信小程序上线了搜索不到小程序已经发布上线,设置是允许被搜索到的,而且没有暂停服务,直接扫二维码是可以进去的,但是从小程序搜索里面搜不到该小程序,望官方解决一下。 小程序appId: wxb8e9c51676798dde 小程序名称:BIM视频
2018-11-07你sourceType配置的是什么
想请问下类似这种小程序是如何调起的? 是用什么api方法??- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 这种是怎么调起来的?? 我找api方法找了半天没有找到呢, wx.chooseImage方法是直接调到图库里面去了
2018-11-07现在不是有云服务吗 还要买啥
小程序问题求解今天我买了腾讯云服务器10元一个月的那个,还买了域名。请问怎么全栈开发
2018-11-07貌似一次只能一张,上传多张需要循环条用api
上传多张照片+服务器接收上传多张照片及文本,结果报错,请求大神指教 [图片]
2018-11-02