Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
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
leiqingsong
XiTianSenMall
Commits
c5942681
Commit
c5942681
authored
Mar 24, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除默认数据
parent
1bdd455d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
43 deletions
+26
-43
.gitignore
.gitignore
+0
-24
settings.json
.vscode/settings.json
+4
-0
.gitignore
H5/.gitignore
+1
-1
main.js
H5/src/main.js
+2
-2
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+1
-1
grade.vue
H5/src/views/grade.vue
+7
-7
leagueNums.vue
H5/src/views/leagueNums.vue
+8
-8
vue.config.js
H5/vue.config.js
+3
-0
No files found.
.gitignore
deleted
100644 → 0
View file @
1bdd455d
.DS_Store
node_modules
/dist
.idea
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.vscode/settings.json
0 → 100644
View file @
c5942681
{
"prettier.semi"
:
false
,
"vetur.format.defaultFormatter.js"
:
"none"
}
\ No newline at end of file
H5/.gitignore
View file @
c5942681
.DS_Store
.DS_Store
node_modules
node_modules
/dist
/dist
/front
# local env files
# local env files
.env.local
.env.local
...
...
H5/src/main.js
View file @
c5942681
...
@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
...
@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
import
"amfe-flexible"
;
import
"amfe-flexible"
;
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/echarts-plugins.js"
;
import
"@/plugins/echarts-plugins.js"
;
//
import Vconsole from "vconsole";
import
Vconsole
from
"vconsole"
;
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
/*生产环境请注释掉 */
/*生产环境请注释掉 */
//
Vue.prototype.$vConsole = new Vconsole();
Vue
.
prototype
.
$vConsole
=
new
Vconsole
();
Vue
.
use
(
MiniRefreshTools
);
Vue
.
use
(
MiniRefreshTools
);
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
...
...
H5/src/utils/bridgeToAppFun.js
View file @
c5942681
...
@@ -63,7 +63,6 @@ class bridgeToAppFun {
...
@@ -63,7 +63,6 @@ class bridgeToAppFun {
navigateBack
()
{
navigateBack
()
{
console
.
log
(
"返回"
);
console
.
log
(
"返回"
);
if
(
this
.
userAgent
===
"android"
)
{
if
(
this
.
userAgent
===
"android"
)
{
console
.
log
(
"an"
);
try
{
try
{
const
home_url
=
const
home_url
=
"https://shop92680967.youzan.com/v2/showcase/homepage?alias=6aFsQ4vCp7"
;
"https://shop92680967.youzan.com/v2/showcase/homepage?alias=6aFsQ4vCp7"
;
...
@@ -72,6 +71,7 @@ class bridgeToAppFun {
...
@@ -72,6 +71,7 @@ class bridgeToAppFun {
console
.
log
(
"返回调用失败,都不行"
);
console
.
log
(
"返回调用失败,都不行"
);
}
}
}
else
{
}
else
{
console
.
log
(
'去调用ios返回'
);
jsBridge
.
callhandler
(
"navigateBack"
);
jsBridge
.
callhandler
(
"navigateBack"
);
}
}
}
}
...
...
H5/src/views/grade.vue
View file @
c5942681
...
@@ -71,27 +71,27 @@ export default {
...
@@ -71,27 +71,27 @@ export default {
type
:
[
"amount"
,
"recommend"
,
"team"
],
type
:
[
"amount"
,
"recommend"
,
"team"
],
list
:
[
list
:
[
{
{
num
:
14
,
num
:
0
,
label
:
"团队
总人数
"
,
label
:
"团队
详情
"
,
hasArrow
:
true
,
hasArrow
:
true
,
urlName
:
"LeagueNums"
,
urlName
:
"LeagueNums"
,
field
:
"teamUserCount"
field
:
"teamUserCount"
},
},
{
{
num
:
12
,
num
:
0
,
label
:
"我的直推"
,
label
:
"我的直推"
,
hasArrow
:
true
,
hasArrow
:
true
,
urlName
:
"MyStatus"
,
urlName
:
"MyStatus"
,
field
:
"recommendUserCount"
field
:
"recommendUserCount"
},
},
{
{
num
:
61859
,
num
:
0
,
label
:
"团队累计总业绩"
,
label
:
"团队累计总业绩"
,
hasArrow
:
false
,
hasArrow
:
false
,
field
:
"teamCountDouble"
field
:
"teamCountDouble"
},
},
{
{
num
:
11256
,
num
:
0
,
label
:
"团队当月新增业绩"
,
label
:
"团队当月新增业绩"
,
hasArrow
:
false
,
hasArrow
:
false
,
field
:
"teamNowCount"
field
:
"teamNowCount"
...
@@ -107,7 +107,6 @@ export default {
...
@@ -107,7 +107,6 @@ export default {
try
{
try
{
this
.
$bridgeToAppFun
.
navigateBack
();
this
.
$bridgeToAppFun
.
navigateBack
();
}
catch
{
}
catch
{
console
.
log
(
"不能和App交互"
);
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
}
}
},
},
...
@@ -116,7 +115,6 @@ export default {
...
@@ -116,7 +115,6 @@ export default {
},
},
getstatus
()
{
getstatus
()
{
const
userId
=
JSON
.
parse
(
localStorage
.
getItem
(
"user"
)).
userId
;
const
userId
=
JSON
.
parse
(
localStorage
.
getItem
(
"user"
)).
userId
;
console
.
log
(
userId
);
const
_this
=
this
;
const
_this
=
this
;
getForestStatus
(
userId
).
then
(
res
=>
{
getForestStatus
(
userId
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
...
@@ -125,6 +123,8 @@ export default {
...
@@ -125,6 +123,8 @@ export default {
}
else
{
}
else
{
_this
.
$toast
.
fail
(
res
.
msg
);
_this
.
$toast
.
fail
(
res
.
msg
);
}
}
}).
catch
(
err
=>
{
console
.
log
(
err
);
});
});
},
},
handleData
(
data
)
{
handleData
(
data
)
{
...
...
H5/src/views/leagueNums.vue
View file @
c5942681
...
@@ -28,42 +28,42 @@ export default {
...
@@ -28,42 +28,42 @@ export default {
return
{
return
{
list
:
[
list
:
[
{
{
num
:
""
,
num
:
0
,
label
:
"普通用户"
,
label
:
"普通用户"
,
field
:
"normalUserNum"
field
:
"normalUserNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"幼苗"
,
label
:
"幼苗"
,
field
:
"seedlingNum"
field
:
"seedlingNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"青铜树"
,
label
:
"青铜树"
,
field
:
"bronzeTreeNum"
field
:
"bronzeTreeNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"白银树"
,
label
:
"白银树"
,
field
:
"silverTreeNum"
field
:
"silverTreeNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"黄金树"
,
label
:
"黄金树"
,
field
:
"goldTreeNum"
field
:
"goldTreeNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"农场主"
,
label
:
"农场主"
,
field
:
"farmerNum"
field
:
"farmerNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"森林之星"
,
label
:
"森林之星"
,
field
:
"forestStartNum"
field
:
"forestStartNum"
},
},
{
{
num
:
""
,
num
:
0
,
label
:
"西田森合伙人"
,
label
:
"西田森合伙人"
,
field
:
"partnerNum"
field
:
"partnerNum"
}
}
...
...
H5/vue.config.js
View file @
c5942681
// const path = require("path");
const
name
=
"西田森App"
;
const
name
=
"西田森App"
;
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
"/front"
,
publicPath
:
"/front"
,
outputDir
:
"front"
,
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
'/shop-mall'
:
{
'/shop-mall'
:
{
...
...
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