- 小程序审核不通过
我再次声明一点,我的小程序是文创产品,不包括食品,还有宗教衍生品,麻烦重新审核一次
2018-07-10 - 小程序审核不通过
我的小程序并未涉及到宗教呀,麻烦重新审核一下
2018-07-10 - 小程序审核不通过
我的小程序并没有涉及到食品,为什么提交两次都显示是食品涉及交易配送
2018-07-06 - 小程序有的手机商品详情页打不开
[图片] 客户上打不开手机上可以打开ipone6,微信上版本是6.6.6 而我的手机上就可以打开 小米5s 微信6.6.6可以打开 [图片]
2018-05-10 - 小程序有的手机可以打开,有的却打不开
小程序发布之后,有的手机可以打开,有的手机却又打不开
2018-05-10 - ios下拉效果和swiper属性冲突
在用swiper实现下拉的动态效果,并不涉及刷新,出现问题就是android的实现效果ok,但是ios中有系统自带的下拉效果与添加的效果冲突 <swiper autoplay="{{autoplay}}" interval="{{interval}}" vertical="true" duration="{{duration}}" style="width:100%;height:{{winHeight}}rpx"> <swiper-item > <view class="g-row categoryWrap"> <view class="cate-right"> <scroll-view scroll-y="true" style="padding-bottom:80rpx;"> <view class="seller-item" wx:for="{{stores}}" wx:key="{{key}}"> <view class="seller-info"> <image mode="aspectFill" src="{{item.store_logo}}" data-id="{{item.store_id}}" bindtap="goods" style="width:100%;height:290rpx;background-size:100% 100%;margin-top:-12rpx;"></image> </view> </view> </scroll-view> </view> </view> </swiper-item> </swiper> 这段代码中实现的效果,在android中下拉的时候没有卡顿,但是在iphone中会出现卡顿
2018-04-27 - onShareAppMessage手机分享给他人商品详情页面不显示
var server = require('../../../utils/server'); var app = getApp(); var WxParse = require('../../../wxParse/wxParse.js'); Page({ data: { goods: {}, sc: [], status: 0, current: 0, tabStates: [true, false, false], tabClasss: ["text-select", "text-normal", "text-normal"], galleryHeight: getApp().screenWidth, tab: 0, goods_num: 1, textStates: ["view-btns-text-normal", "view-btns-text-select"], article: '<div>我是HTML代码</div>', }, // onLoad: function (options) { // var that = this; // var goodsId = options.objectId; // this.getGoodsById(goodsId); // }, onLoad: function (options) { var that = this; var goodsId = options.objectId; console.log(options.objectId) that.getGoodsById(goodsId); console.log(goodsId) // wx.request({ // url: 'https://csc.sxxee.com/index.php/WXAPI/pages/goods/detail/detail?id=1', // //'https://api.it120.cc/'+ app.globalData.subDomain +'/shop/goods/detail', // data: { // id: options.id // }, // // https://csc.sxxee.com/ActivityController.class.php/WXAPI // success: function (res) { // that.setData({ // id: res.data.result.goods.goods_id, // }); // WxParse.wxParse('article', 'html', that.data.goods.goods.goods_content, that, 5); // }, // fail: function () { // wx.showToast({ // title: '加载失败', // }) // } // }) }, getInviteCode: function (options) { if (options.uid != undefined) { wx.showToast({ title: '来自用户:' + options.uid + '的分享', icon: 'success', duration: 2000 }) } }, propClick: function (e) { var pos = e.currentTarget.dataset.pos; var index = e.currentTarget.dataset.index; var goods = this.data.goods for (var i = 0; i < goods.goods.goods_spec_list[index].length; i++) { if (i == pos) goods.goods.goods_spec_list[index][pos].isClick = 1; else goods.goods.goods_spec_list[index][i].isClick = 0; } // https://csc.sxxee.com/index.php/WXAPI/Goods/goodss/?id=undefined&p=8 this.setData({ goods: goods }); this.checkPrice(); }, addCollect: function (e) { var that = this; console.log(that) console.log(e.currentTarget.dataset.id) var goods_id = e.currentTarget.dataset.id; // console.log(e.currentTarget.dataset.id) var ctype = 0; var user_id = getApp().globalData.userInfo.user_id server.getJSON('/Goods/collectGoods/user_id/' + user_id +"/goods_id/" + goods_id + "/type/" + ctype,function(res){ if (res.data.status == 1) { wx.showToast({ title: res.data.msg, icon: 'success', duration: 0 }); that.setData({ status: 1 }) } wx.showToast({ title: res.data.msg, icon: 'error', duration: 2000 }); }); }, bindMinus: function (e) { var num = this.data.goods_num; if (num > 1) { num--; } this.setData({ goods_num: num }); }, bindManual: function (e) { var index = parseInt(e.currentTarget.dataset.index); var num = e.detail.value; this.setData({ goods_num: num }); }, bindPlus: function (e) { var num = this.data.goods_num; num++; this.setData({ goods_num: num }); }, tabClick: function (e) { var index = e.currentTarget.dataset.index var classs = ["text-normal", "text-normal", "text-normal"] classs[index] = "text-select" this.setData({ tabClasss: classs, tab: index }) }, getGoodsById: function (goodsId) { var user_id = getApp().globalData.userInfo.user_id var that = this server.getJSON('/Goods/goodsInfo/id/' + goodsId + '/user_id/' + 'user_id', function (res) { var goodsInfo = res.data.result; console.log(goodsInfo) var sc = res.data.result.sc; console.log(sc) that.setData({ goods: goodsInfo, sc: sc, name: res.data.result.goods.goods_name, id: res.data.result.goods.goods_id,//增加分享添加 }); // console.log(goods) that.checkPrice(); WxParse.wxParse('article', 'html', that.data.goods.goods.goods_content, that, 5); }); }, checkPrice: function (e) { var goods = this.data.goods; var index = e.currentTarget.dataset.index; var spec = "" this.setData({ price: goods.goods.shop_price }); for (var i = 0; i < goods.goods.goods_spec_list[index].length; i++) { for (var j = 0; j < goods.goods.goods_spec_list[i].length; j++) { if (goods.goods.goods_spec_list[i][j].isClick == 1) { if (spec == "") spec = goods.goods.goods_spec_list[i][j].item_id else spec = spec + "_" + goods.goods.goods_spec_list[i][j].item_id } } } var specs = spec.split("_"); for (var i = 0; i < specs.length; i++) { specs[i] = parseInt(specs[i]) } specs.sort(function (a, b) { return a - b }); spec = "" for (var i = 0; i < specs.length; i++) { if (spec == "") spec = specs[i] else spec = spec + "_" + specs[i] } var price = goods['spec_goods_price'][spec].price; this.setData({ price: price }); }, bug: function () { var goods = this.data.goods; var spec = "" if (goods.goods.goods_spec_list != null) for (var i = 0; i < goods.goods.goods_spec_list.length; i++) { for (var j = 0; j < goods.goods.goods_spec_list[i].length; j++) { if (goods.goods.goods_spec_list[i][j].isClick == 1) { if (spec == "") spec = goods.goods.goods_spec_list[i][j].item_id else spec = spec + "_" + goods.goods.goods_spec_list[i][j].item_id } } } var app = getApp() var that = this; var goods_id = that.data.goods.goods.goods_id; var goods_spec = spec; var session_id = app.globalData.openid//that.data.goods.goods.spec_goods_price var goods_num = that.data.goods_num; var user_id = "0" if (app.globalData.login) user_id = app.globalData.userInfo.user_id server.getJSON('/Cart/addCart', { goods_id: goods_id, goods_spec: goods_spec, session_id: session_id, goods_num: goods_num, user_id: user_id }, function (res) { if (res.data.status == 1) { wx.showToast({ title: '已加入购物车', icon: 'success', image: "../../../images/favorite.png", duration: 2000 }); wx.switchTab({ url: '../../cart/cart' }); } else wx.showToast({ title: res.data.msg, icon: 'error', duration: 2000 }); }); return; }, addCart: function () { var goods = this.data.goods; var spec = "" if (goods.goods.goods_spec_list != null) for (var i = 0; i < goods.goods.goods_spec_list.length; i++) { for (var j = 0; j < goods.goods.goods_spec_list[i].length; j++) { if (goods.goods.goods_spec_list[i][j].isClick == 1) { if (spec == "") spec = goods.goods.goods_spec_list[i][j].item_id else spec = spec + "_" + goods.goods.goods_spec_list[i][j].item_id } } } var app = getApp() var that = this; var goods_id = that.data.goods.goods.goods_id; var goods_spec = spec; var session_id = that.data.goods.goods.spec_goods_price//that.data.goods.goods.spec_goods_price var goods_num = that.data.goods_num; var user_id = "0" if (app.globalData.login) user_id = app.globalData.userInfo.user_id server.getJSON('/Cart/addCart', { goods_id: goods_id, goods_spec: goods_spec, session_id: session_id, goods_num: goods_num, user_id: user_id }, function (res) { if (res.data.status == 1) wx.showToast({ title: '已加入购物车', icon: 'success', duration: 1000 }); else wx.showToast({ title: res.data.msg, icon: 'error', duration: 1000 }); }); }, showCartToast: function () { wx.showToast({ title: '已加入购物车', icon: 'success', duration: 1000 }); wx.navigateTo({ url: '../../../../../../cart/cart' }); }, previewImage: function (e) { wx.previewImage({ //从<image>的data-current取到current,得到String类型的url路径 current: this.data.goods.get('images')[parseInt(e.currentTarget.dataset.current)], urls: this.data.goods.get('images') // 需要预览的图片http链接列表 }) }, //增加分享添加 onShareAppMessage: function () { var that = this; console.log(this.data.id) return { title: that.data.name, desc: '', path: '/pages/goods/detail/detail?id=' + this.data.id } }, //增加分享添加 }); [图片] 可以获取到数据,但是在手机上没办法显示详情页面信息
2018-04-03 - 微信小程序现在可以引入外部网页链接吗
微信小程序现在可以引入外部网页链接吗
2017-12-28