Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-group-course
Overview
Overview
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
黄志
ydl-group-course
Commits
e2ac3edf
Commit
e2ac3edf
authored
Feb 24, 2023
by
huangzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 已购和首页
parent
1842bd1a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
30 deletions
+57
-30
.eslintrc.js
.eslintrc.js
+3
-0
config.js
src/config.js
+5
-4
manifest.json
src/manifest.json
+1
-1
Empty.vue
src/pages/home/Empty.vue
+26
-0
home.vue
src/pages/home/home.vue
+0
-0
my.vue
src/pages/my/my.vue
+22
-25
No files found.
.eslintrc.js
View file @
e2ac3edf
...
...
@@ -7,6 +7,9 @@ module.exports = {
sourceType
:
'module'
,
allowImportExportEverywhere
:
true
,
},
globals
:
{
uni
:
'readonly'
,
},
// 此项指定环境的全局变量,下面的配置指定为浏览器环境
env
:
{
browser
:
true
,
...
...
src/config.js
View file @
e2ac3edf
...
...
@@ -6,10 +6,11 @@ let h2Prefix
let
ydlH5Prefix
if
(
isDevelopment
)
{
// hostPrefix = 'https://testnewm.ydl.com'
// apiPrefix = 'https://testapi.ydl.com'
hostPrefix
=
'https://newm-test.ydl.com'
// 下云
apiPrefix
=
'https://api-test.ydl.com'
// 下云
hostPrefix
=
'https://testnewm.ydl.com'
// hostPrefix = 'http://192.168.211.138'
apiPrefix
=
'https://testapi.ydl.com'
// hostPrefix = 'https://newm-test.ydl.com' // 下云
// apiPrefix = 'https://api-test.ydl.com' // 下云
h2Prefix
=
'https://h2.yidianling.com'
ydlH5Prefix
=
'https://testh5.ydl.com'
}
else
{
...
...
src/manifest.json
View file @
e2ac3edf
...
...
@@ -54,7 +54,7 @@
"quickapp"
:
{},
/*
快应用特有相关
*/
"mp-weixin"
:
{
"appid"
:
""
,
"appid"
:
"
wx1106c32a36d87d49
"
,
"setting"
:
{
"urlCheck"
:
false
,
"es6"
:
false
,
...
...
src/pages/home/Empty.vue
0 → 100644
View file @
e2ac3edf
<
template
>
<div
class=
"empty"
>
<img
src=
"//static.ydlcdn.com/m/images/m/course/rectangle.svg"
/>
<p>
{{
text
||
'暂无数据'
}}
</p>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Empty'
,
props
:
[
'text'
],
}
</
script
>
<
style
lang=
"less"
scoped
>
.empty
{
text-align
:
center
;
p
{
margin-top
:
12px
;
color
:
#999
;
font-size
:
13px
;
text-align
:
center
;
}
}
</
style
>
\ No newline at end of file
src/pages/home/home.vue
View file @
e2ac3edf
This diff is collapsed.
Click to expand it.
src/pages/my/my.vue
View file @
e2ac3edf
...
...
@@ -20,12 +20,14 @@
src=
"https://static.ydlcdn.com/mini/mini_consult/pic_default_avatar.png"
@
click=
"handleLoginClick"
/>
<text
v-if=
"isLogin"
class=
"user-name"
>
<view
v-if=
"isLogin"
>
<text
class=
"user-name-phone"
>
{{
userInfo
.
nickName
}}
</text>
<text
class=
"user-name-phone"
>
{{
userPhoneTxt
}}
</text>
</view>
<view
v-else
@
click=
"handleLoginClick"
...
...
@@ -70,7 +72,7 @@
</template>
<
script
>
import
{
hostPrefix
,
h2Prefix
}
from
'@/config'
import
{
hostPrefix
}
from
'@/config'
import
{
setTrackData
}
from
'@/utils/util'
export
default
{
...
...
@@ -79,26 +81,6 @@ export default {
return
{
menus
:
[
{
icon
:
'/static/icon_order.png'
,
label
:
'我的订单'
,
callback
:
()
=>
{
this
.
handleSendMenuTrackData
(
'我的订单'
)
this
.
navigateToOrder
()
},
},
{
icon
:
'/static/icon_help_center.png'
,
label
:
'帮助中心'
,
callback
:
()
=>
{
this
.
handleSendMenuTrackData
(
'帮助中心'
)
uni
.
navigateTo
({
url
:
`/pages/web/web?title=帮助中心&loadUrl=
${
encodeURIComponent
(
`
${
h2Prefix
}
/help/list/12`
,
)}
`
,
})
},
},
{
icon
:
'/static/icon_custom_service.png'
,
label
:
'联系客服'
,
callback
:
()
=>
{
...
...
@@ -142,6 +124,13 @@ export default {
isLogin
()
{
return
this
.
$store
.
getters
.
isLogin
},
// 混淆手机号码
userPhoneTxt
()
{
if
(
this
.
userInfo
.
phone
)
{
return
String
(
this
.
userInfo
.
phone
).
replace
(
/
(
.
{3})(
.
{4})(
.+$
)
/
,
'$1****$3'
)
}
return
''
},
},
mounted
()
{
// 页面访问埋点
...
...
@@ -243,6 +232,14 @@ export default {
font-size
:
18px
;
margin-bottom
:
4px
;
}
.user-name-phone
{
margin-left
:
16px
;
color
:
#000000
;
font-weight
:
400
;
font-size
:
15px
;
margin-bottom
:
4px
;
display
:
block
;
}
.login-tips
{
margin-left
:
16px
;
...
...
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