社区社群接龙小程序,困扰多天的问题求老铁帮解决,就是在小程序接龙下单的时候,付款成功后,数据库内的表order中的status和pstype字段更新失败,调试出错截图如下,同样的代码 在linux上跑就啥毛病没有,我就想在windows想跑这个小程序,看看有没有老铁能解决这个问题的,做好发66红包略表谢意。
myorder.js内容:
!function(t) {
t && t.__esModule;
}(require("…/…/util/request.js"));
var t = getApp();
Page({
data: {
orderlist: [],
count: 2,
allpage: 0,
loading: !1,
status: 0,
pstype: 0,
notext: “”
},
onLoad: function(t) {
this.getorder(t.status, t.pstype), wx.hideShareMenu({});
},
getorder: function(a, e) {
var o = this;
t.util.request({
url: “entry/wxapp/myorder”,
method: “get”,
data: {
m: “cy163_salesjl”,
status: a,
pstype: e,
openid: wx.getStorageSync(“openid”)
},
success: function(t) {
o.setData({
orderlist: t.data.data.orderlist,
allpage: t.data.data.allpage,
notext: t.data.data.notext,
pstype: e,
status: a,
count: 2
});
}
});
},
changeorder: function(t) {
var a = t.currentTarget.dataset.status, e = t.currentTarget.dataset.pstype;
this.getorder(a, e);
},
onReady: function() {},
onShow: function() {},
onHide: function() {},
onUnload: function() {},
onPullDownRefresh: function() {
wx.stopPullDownRefresh(), this.getorder(this.data.status, this.data.pstype);
},
onReachBottom: function() {
var a = this;
a.data.loading || (a.setData({
loading: !0
}), a.data.count < a.data.allpage && (wx.showLoading({
title: “加载中”,
icon: “loading”
}), setTimeout(function() {
t.util.request({
url: “entry/wxapp/myorder”,
method: “get”,
data: {
m: “cy163_salesjl”,
page: a.data.count,
openid: wx.getStorageSync(“openid”),
status: a.data.status,
pstype: a.data.pstype
},
success: function(t) {
a.setData({
count: a.data.count + 1,
orderlist: a.data.orderlist.concat(t.data.data.orderlist),
loading: !1
});
}
}), wx.hideLoading();
}, 1e3)));
},
onShareAppMessage: function() {}
});