Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
dccf4eba
Commit
dccf4eba
authored
Oct 12, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gai
parent
398ac213
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
392 additions
and
19 deletions
+392
-19
output.js
project/src/canvas/game/output.js
+0
-5
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+0
-5
TaoBaoNet.ts
project/src/canvas/game/src/TaoBaoNet.ts
+2
-2
app.js
taobao_mini/client/app.js
+2
-1
output.js
taobao_mini/client/pages/pagecanvas/output.js
+0
-5
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+3
-0
debug.log
taobao_mini/debug.log
+384
-0
No files found.
project/src/canvas/game/output.js
View file @
dccf4eba
...
...
@@ -2431,7 +2431,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.destroyNetData = exports.getTbData = exports.sendTbNet = exports.TbNetName = void 0;
var ctrls_1 = __webpack_require__(/*! ../module/ctrls */ "./module/ctrls/index.ts");
var Ins_1 = __webpack_require__(/*! ./Ins */ "./src/Ins.ts");
var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
...
...
@@ -2469,8 +2468,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
fetchAsync(url)
.then(function (data) {
dataRecord[netName] = data;
if (!hideMsg && !data.success)
ctrls_1.showToast(data.message || "网络异常");
callback && callback(data.success, data);
resolve(data);
console.log("\n%c[ mock ]\n"
...
...
@@ -2487,8 +2484,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
Main_1.GDispatcher.removeEventListener(netName, fun);
var d = e.data;
dataRecord[netName] = d;
if (!hideMsg && !d.success)
Ins_1.Ins.showToast(d.message || "网络超时");
callback && callback(d.success, d);
resolve(d);
console.log("\n%c[ request ]\n"
project/src/canvas/game/output.js.map
View file @
dccf4eba
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
dccf4eba
...
...
@@ -2433,7 +2433,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.destroyNetData = exports.getTbData = exports.sendTbNet = exports.TbNetName = void 0;
var ctrls_1 = __webpack_require__(/*! ../module/ctrls */ "./module/ctrls/index.ts");
var Ins_1 = __webpack_require__(/*! ./Ins */ "./src/Ins.ts");
var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
...
...
@@ -2471,8 +2470,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
fetchAsync(url)
.then(function (data) {
dataRecord[netName] = data;
if (!hideMsg && !data.success)
ctrls_1.showToast(data.message || "网络异常");
callback && callback(data.success, data);
resolve(data);
console.log("\n%c[ mock ]\n"
...
...
@@ -2489,8 +2486,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
Main_1.GDispatcher.removeEventListener(netName, fun);
var d = e.data;
dataRecord[netName] = d;
if (!hideMsg && !d.success)
Ins_1.Ins.showToast(d.message || "网络超时");
callback && callback(d.success, d);
resolve(d);
console.log("\n%c[ request ]\n"
project/src/canvas/game/src/TaoBaoNet.ts
View file @
dccf4eba
...
...
@@ -158,7 +158,7 @@ export function sendTbNet(
//记录数据
dataRecord
[
netName
]
=
data
;
//统一错误信息提示
if
(
!
hideMsg
&&
!
data
.
success
)
showToast
(
data
.
message
||
"网络异常"
)
//
if (!hideMsg && !data.success) showToast(data.message || "网络异常")
//回调
callback
&&
callback
(
data
.
success
,
data
);
resolve
(
data
)
...
...
@@ -190,7 +190,7 @@ export function sendTbNet(
//记录数据
dataRecord
[
netName
]
=
d
;
//统一错误信息提示,d.data为了区分网络超时
if
(
!
hideMsg
&&
!
d
.
success
)
Ins
.
showToast
(
d
.
message
||
"网络超时"
)
//
if (!hideMsg && !d.success) Ins.showToast(d.message || "网络超时")
//执行回调
callback
&&
callback
(
d
.
success
,
d
);
resolve
(
d
)
...
...
taobao_mini/client/app.js
View file @
dccf4eba
...
...
@@ -27,7 +27,8 @@ App({
*/
handleQuery
(
query
)
{
const
{
activityId
}
=
query
;
this
.
activityId
=
activityId
||
'5f8022919da671f3b6d5fb14'
;
// this.activityId = activityId || '5f81841def5071b132fd5e21'; //赵然
this
.
activityId
=
activityId
||
'5f8022919da671f3b6d5fb14'
;
//小婷
}
});
taobao_mini/client/pages/pagecanvas/output.js
View file @
dccf4eba
...
...
@@ -2433,7 +2433,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.destroyNetData = exports.getTbData = exports.sendTbNet = exports.TbNetName = void 0;
var ctrls_1 = __webpack_require__(/*! ../module/ctrls */ "./module/ctrls/index.ts");
var Ins_1 = __webpack_require__(/*! ./Ins */ "./src/Ins.ts");
var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
...
...
@@ -2471,8 +2470,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
fetchAsync(url)
.then(function (data) {
dataRecord[netName] = data;
if (!hideMsg && !data.success)
ctrls_1.showToast(data.message || "网络异常");
callback && callback(data.success, data);
resolve(data);
console.log("\n%c[ mock ]\n"
...
...
@@ -2489,8 +2486,6 @@ function sendTbNet(netName, parameter, callback, hideMsg) {
Main_1.GDispatcher.removeEventListener(netName, fun);
var d = e.data;
dataRecord[netName] = d;
if (!hideMsg && !d.success)
Ins_1.Ins.showToast(d.message || "网络超时");
callback && callback(d.success, d);
resolve(d);
console.log("\n%c[ request ]\n"
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
dccf4eba
...
...
@@ -337,6 +337,7 @@ Page({
* 登录接口
*/
async
login
()
{
my
.
showLoading
();
const
{
nickName
,
avatar
...
...
@@ -348,10 +349,12 @@ Page({
userNick
:
nickName
,
avatar
}).
catch
(
res
=>
{
my
.
hideLoading
();
commonToast
(
res
&&
res
.
message
);
})
||
{};
if
(
success
)
{
my
.
hideLoading
();
app
.
openId
=
data
.
openId
;
this
.
getActivityBaseInfoById
();
}
...
...
taobao_mini/debug.log
View file @
dccf4eba
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment