Sfoglia il codice sorgente

积分商城按钮问题

product
HolyKnightIX 1 mese fa
parent
commit
2ed358fe05
4 ha cambiato i file con 14 aggiunte e 13 eliminazioni
  1. +4
    -0
      config/config.js
  2. +5
    -9
      ext.json
  3. +4
    -3
      pages/integralmall/index.js
  4. +1
    -1
      project.private.config.json

+ 4
- 0
config/config.js Vedi File

@@ -118,6 +118,10 @@ var config = {
* 频道查询
*/
couponChannelList: "/wxCouponChannel/list",
/**
* 积分券查询
*/
creditProductList: "/wxCouponChannel/creditProductList",
/**
* 是否显示已售
*/


+ 5
- 9
ext.json Vedi File

@@ -17,7 +17,7 @@
},
"version": "release"
},
"mchId": "1695209702",
"mchId": "1539123951",
"imgProxy": [
{
"newUrl": "https://c.malls.iformall.com/img",
@@ -34,12 +34,11 @@
],
"configUrl": "https://c.malls.iformall.com/C/api",
"ifStoreApp": "0",
"businessSwitch": "1",
"ifHaveWebSocket": "0",
"ifHaveCarModular": "1"
},
"name": "欢乐城",
"weappId": "wx8e5cab05e850bc91",
"name": "欢乐城万象金街",
"weappId": "wxde54451891094c16",
"appVersion": "C.5.1.1"
},
"debug": false,
@@ -85,17 +84,14 @@
"navigationBarBackgroundColor": "#FFFFFF"
},
"plugins": {
"auto-points-plugin": {
"version": "1.3.0",
"provider": "wxfab2bf944bfc4da6"
},
"live-player-plugin": {
"version": "1.2.5",
"provider": "wx2b03c6e691cd7370"
}
},
"extAppid": "wx8e5cab05e850bc91",
"extAppid": "wxde54451891094c16",
"extEnable": true,
"permission": {},
"directCommit": false,
"networkTimeout": {
"request": 30000,


+ 4
- 3
pages/integralmall/index.js Vedi File

@@ -294,7 +294,8 @@ Page({
sortOrder: that.data.sortOrder,
userCredit: that.data.userCredit
};
var url = config.api.couponChannelList;
var url = config.api.creditProductList;
// var url = config.api.couponChannelList;
// 请求接口
Http.get({
url: url,
@@ -305,7 +306,7 @@ Page({
* 加载完成
*/
if (pageNum >= res.data.pages) {
if (res.data.pages == 0 || res.data.pages == 1) {
if (res.data.pages == 0) {
that.setData({
allow_load: true,
loading: false,
@@ -324,7 +325,7 @@ Page({
lists: [],
})
}
var tmpArr = that.data.lists;
var tmpArr = that.data.lists || [];
// tmpArr = [...tmpArr, ...res.data.list];
tmpArr.push.apply(tmpArr, res.data.list);
that.setData({


+ 1
- 1
project.private.config.json Vedi File

@@ -7,7 +7,7 @@
"preloadBackgroundData": false,
"useIsolateContext": true
},
"libVersion": "3.11.2",
"libVersion": "3.13.0",
"condition": {
"miniprogram": {
"list": [


Caricamento…
Annulla
Salva