소스 검색

分享后token问题

release
[caserKing] 4 년 전
부모
커밋
e8e56c82a7
3개의 변경된 파일51개의 추가작업 그리고 64개의 파일을 삭제
  1. +41
    -63
      ext.json
  2. +9
    -0
      index/index.js
  3. +1
    -1
      project.config.json

+ 41
- 63
ext.json 파일 보기

@@ -1,74 +1,52 @@
{ {
"ext": { "ext": {
"attr": { "attr": {
"car": {
"tjd": {
"payPath": "",
"tjdAppId": "wx6945d1bda68d7993"
},
"etcp": {
"payPath": "pages/pay/order-pay-open/main",
"etcpAppId": "wxc07f9d67923d676d",
"etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback"
},
"bolink": {
"payPath": "pages/park/park",
"bolinkAppId": "wxbd08b4baa10fcc1d"
},
"version": "release"
},
"imgProxy": [
{
"newUrl": "https://c.malls.iformall.com/img",
"orgUrl": "https://iformall-net.formall.oss-accelerate.aliyuncs.com"
},
{
"newUrl": "https://c.malls.iformall.com/img1",
"orgUrl": "https://formall.oss-accelerate.aliyuncs.com"
},
{
"newUrl": "https://c.malls.iformall.com/img2",
"orgUrl": "https://wx.qlogo.cn"
}
],
"configUrl": "https://c.malls.iformall.com/C/api",
"ifStoreApp": "0",
"imgProxy": [{
"newUrl": "https://ctest.malls.iformall.com/img",
"orgUrl": "https://iformall-net.formall.oss-accelerate.aliyuncs.com"
}, {
"newUrl": "https://ctest.malls.iformall.com/img1",
"orgUrl": "https://formall.oss-accelerate.aliyuncs.com"
}, {
"newUrl": "https://ctest.malls.iformall.com/img2",
"orgUrl": "https://wx.qlogo.cn"
}],
"configUrl": "https://ctest.malls.iformall.com/C/api",
"etcpAppId": "wx192b7d2e8dcbefd0",
"etcpVersion": "release",
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback",
"ifHaveWebSocket": "0", "ifHaveWebSocket": "0",
"ifHaveCarModular": "1" "ifHaveCarModular": "1"
}, },
"name": "富茂链客生产版",
"weappId": "wx6a2524a8286d687f",
"appVersion": "C.5.1.1"
"name": "金泸商务",
"weappId": "wx649b3be73c1afe47",
"appVersion": "C.test.5.2.0"
}, },
"debug": false, "debug": false,
"tabBar": { "tabBar": {
"list": [
{
"text": "首页",
"iconPath": "assets/images/home.png",
"pagePath": "index/index",
"selectedIconPath": "assets/images/home-a.png"
},
{
"text": "门店",
"iconPath": "assets/images/mendian.png",
"pagePath": "index/searchbar",
"selectedIconPath": "assets/images/mendian-a.png"
},
{
"text": "停车",
"iconPath": "assets/images/park.png",
"pagePath": "index/passCar",
"selectedIconPath": "assets/images/park-a.png"
},
{
"text": "我的",
"iconPath": "assets/images/user.png",
"pagePath": "index/user",
"selectedIconPath": "assets/images/user-a.png"
}
],
"custom": true
"list": [{
"text": "首页",
"iconPath": "assets/images/home.png",
"pagePath": "index/index",
"selectedIconPath": "assets/images/home-a.png"
}, {
"text": "门店",
"iconPath": "assets/images/mendian.png",
"pagePath": "index/searchbar",
"selectedIconPath": "assets/images/mendian-a.png"
}, {
"text": "停车",
"iconPath": "assets/images/park.png",
"pagePath": "index/passCar",
"selectedIconPath": "assets/images/park-a.png"
}, {
"text": "我的",
"iconPath": "assets/images/user.png",
"pagePath": "index/user",
"selectedIconPath": "assets/images/user-a.png"
}],
"color": "#abb1be",
"selectedColor": "#b2743d"
}, },
"window": { "window": {
"backgroundTextStyle": "dark", "backgroundTextStyle": "dark",
@@ -82,7 +60,7 @@
"provider": "wx2b03c6e691cd7370" "provider": "wx2b03c6e691cd7370"
} }
}, },
"extAppid": "wx6a2524a8286d687f",
"extAppid": "wx649b3be73c1afe47",
"extEnable": true, "extEnable": true,
"permission": { "permission": {
"scope.userLocation": { "scope.userLocation": {


+ 9
- 0
index/index.js 파일 보기

@@ -408,7 +408,12 @@ Page({
}, },
getWeapNote: function(couponChannelId, couponId, orderId) { getWeapNote: function(couponChannelId, couponId, orderId) {
var that = this; var that = this;

app.tokenCallback = token => {

// 登录 // 登录
console.log(app.globalData.token)
that.getmemberId(app.globalData.token); that.getmemberId(app.globalData.token);
that.getBannerlist(); that.getBannerlist();
that.topicShow(); that.topicShow();
@@ -431,7 +436,10 @@ Page({
} }
}) })
.then(res => { .then(res => {
console.log(33333333333)
console.log(app.globalData.token)
console.log(res) console.log(res)
console.log(33333333333)
// that.getGameOne(app.globalData.token) // that.getGameOne(app.globalData.token)
that.getStaticGame(app.globalData.token) that.getStaticGame(app.globalData.token)
that.getGg(app.globalData.token) that.getGg(app.globalData.token)
@@ -451,6 +459,7 @@ Page({
showCancel: false showCancel: false
}); });
}); });
}
}, },


getStaticGame(token) { getStaticGame(token) {


+ 1
- 1
project.config.json 파일 보기

@@ -32,7 +32,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.5.0", "libVersion": "2.5.0",
"appid": "wx453ae0d37f3550d0",
"appid": "wxfa336cad86ed598d",
"projectname": "oldC", "projectname": "oldC",
"isGameTourist": false, "isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",


불러오는 중...
취소
저장