Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
dc09eed8
Commit
dc09eed8
authored
Jul 26, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0
parents
8165adfd
3ec47cf5
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
44 deletions
+85
-44
index.vue
src/components/daily-pop/index.vue
+16
-2
index.vue
src/components/experience-pop/index.vue
+1
-1
index.vue
src/components/subject-statistics/index.vue
+1
-1
index.vue
src/pages/index/index.vue
+37
-6
boundQuestions.vue
src/pages/learn/boundQuestions.vue
+9
-9
boundTest.vue
src/pages/learn/boundTest.vue
+1
-3
detail.vue
src/pages/learn/detail.vue
+13
-17
manualBinding.vue
src/pages/learn/manualBinding.vue
+5
-5
index.js
src/store/index.js
+2
-0
No files found.
src/components/daily-pop/index.vue
View file @
dc09eed8
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
shape=
"circle"
shape=
"circle"
@
click=
"handleClickCancel"
@
click=
"handleClickCancel"
>
>
查看记录
{{
cancelText
}}
</u-button>
</u-button>
<u-button
<u-button
:custom-style=
"customStyleSave"
:custom-style=
"customStyleSave"
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
type=
"primary"
type=
"primary"
@
click=
"handleClickSure"
@
click=
"handleClickSure"
>
>
继续练习
{{
buttonText
}}
</u-button>
</u-button>
</view>
</view>
</view>
</view>
...
@@ -68,11 +68,25 @@ export default {
...
@@ -68,11 +68,25 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
0
,
default
:
0
,
},
},
// normal 普通联系;experience 体验
type
:
{
type
:
String
,
default
:
'normal'
,
},
},
},
data
()
{
data
()
{
return
{}
return
{}
},
},
computed
:
{
computed
:
{
isNormal
()
{
return
this
.
type
==
'normal'
},
cancelText
()
{
return
this
.
isNormal
?
'查看记录'
:
'回首页'
},
sureText
()
{
return
this
.
isNormal
?
'继续练习'
:
'去绑卡'
},
backgroundImage
()
{
backgroundImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'lianxibeijing.png'
return
process
.
uniEnv
.
qn_base_url
+
'lianxibeijing.png'
},
},
...
...
src/components/experience-pop/index.vue
View file @
dc09eed8
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
type=
"primary"
type=
"primary"
@
click=
"handleClick"
@
click=
"handleClick"
>
>
立即
练习
立即
体验
</u-button>
</u-button>
</view>
</view>
<view
class=
"colse-view"
>
<view
class=
"colse-view"
>
...
...
src/components/subject-statistics/index.vue
View file @
dc09eed8
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
return
process
.
uniEnv
.
qn_base_url
+
'lianxianniu.png'
return
process
.
uniEnv
.
qn_base_url
+
'lianxianniu.png'
},
},
buttonText
()
{
buttonText
()
{
return
this
.
info
.
experience
?
'
免费
体验答题'
:
'每日一练'
return
this
.
info
.
experience
?
'
立即
体验答题'
:
'每日一练'
},
},
},
},
created
()
{},
created
()
{},
...
...
src/pages/index/index.vue
View file @
dc09eed8
...
@@ -26,6 +26,16 @@
...
@@ -26,6 +26,16 @@
<view
v-if=
"noExam"
class=
"tip-view"
>
<view
v-if=
"noExam"
class=
"tip-view"
>
<text>
您还未选择题库,请先选择题库
</text>
<text>
您还未选择题库,请先选择题库
</text>
</view>
</view>
<view
v-else-if=
"!info.cardId"
class=
"card-tip-view"
@
click=
"$u.throttle(handleSelectTip, 500)"
>
题库未激活,请通过
<text
class=
"blue-text"
>
“绑卡”
</text>
或
<text
class=
"blue-text"
>
“购买”
</text
>
激活
</view>
<view
v-else
class=
"detail-view"
>
<view
v-else
class=
"detail-view"
>
<view
<view
v-for=
"(item, index) in detailItems"
v-for=
"(item, index) in detailItems"
...
@@ -111,7 +121,7 @@ export default {
...
@@ -111,7 +121,7 @@ export default {
detail
:
{
questionWarehouse
:
{}
},
detail
:
{
questionWarehouse
:
{}
},
selected
:
{},
selected
:
{},
data
:
{},
data
:
{},
relationId
:
0
,
// 绑卡用
//
relationId: 0, // 绑卡用
loading
:
false
,
loading
:
false
,
canExperience
:
false
,
// 体验资格
canExperience
:
false
,
// 体验资格
finishCount
:
0
,
finishCount
:
0
,
...
@@ -296,7 +306,10 @@ export default {
...
@@ -296,7 +306,10 @@ export default {
.
queryMyQuestionWarehouseDetail
(
id
)
.
queryMyQuestionWarehouseDetail
(
id
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
detail
=
res
||
{
questionWarehouse
:
{}
}
this
.
detail
=
res
||
{
questionWarehouse
:
{}
}
this
.
relationId
=
res
.
questionWarehouse
.
id
// this.relationId = res.questionWarehouse.id
if
(
res
.
questionWarehouse
.
id
)
{
this
.
$u
.
vuex
(
'relationId'
,
res
.
questionWarehouse
.
id
)
}
if
(
res
.
questionWarehouse
.
questionWarehouseId
)
{
if
(
res
.
questionWarehouse
.
questionWarehouseId
)
{
this
.
$u
.
vuex
(
this
.
$u
.
vuex
(
'questionWarehouseId'
,
'questionWarehouseId'
,
...
@@ -358,7 +371,7 @@ export default {
...
@@ -358,7 +371,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
url
:
'pages/learn/detail'
,
params
:
{
params
:
{
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
id
:
this
.
info
.
id
,
id
:
this
.
info
.
id
,
},
},
})
})
...
@@ -380,7 +393,7 @@ export default {
...
@@ -380,7 +393,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/'
+
str
,
url
:
'pages/learn/'
+
str
,
params
:
{
params
:
{
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
id
:
this
.
info
.
id
,
id
:
this
.
info
.
id
,
},
},
})
})
...
@@ -440,7 +453,7 @@ export default {
...
@@ -440,7 +453,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
url
:
'pages/learn/detail'
,
params
:
{
params
:
{
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
id
:
this
.
info
.
id
,
id
:
this
.
info
.
id
,
},
},
})
})
...
@@ -468,7 +481,7 @@ export default {
...
@@ -468,7 +481,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
url
:
'pages/learn/detail'
,
params
:
{
params
:
{
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
id
:
this
.
info
.
id
,
id
:
this
.
info
.
id
,
},
},
})
})
...
@@ -506,6 +519,15 @@ export default {
...
@@ -506,6 +519,15 @@ export default {
)
)
:
0
:
0
},
},
handleSelectTip
()
{
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
// relationId: this.relationId,
id
:
this
.
info
.
id
,
},
})
},
},
},
}
}
</
script
>
</
script
>
...
@@ -574,6 +596,15 @@ export default {
...
@@ -574,6 +596,15 @@ export default {
margin-top
:
22rpx
;
margin-top
:
22rpx
;
margin-bottom
:
40rpx
;
margin-bottom
:
40rpx
;
}
}
.card-tip-view
{
font-size
:
28rpx
;
color
:
#9ea5bb
;
margin-top
:
22rpx
;
margin-bottom
:
40rpx
;
.blue-text
{
color
:
#2953ff
;
}
}
.detail-view
{
.detail-view
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
...
...
src/pages/learn/boundQuestions.vue
View file @
dc09eed8
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
relationId
:
0
,
// 绑卡用
//
relationId: 0, // 绑卡用
realPrice
:
null
,
realPrice
:
null
,
}
}
},
},
...
@@ -78,10 +78,10 @@ export default {
...
@@ -78,10 +78,10 @@ export default {
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
&&
e
.
relationId
)
{
//
if (e && e.relationId) {
this
.
relationId
=
e
.
relationId
//
this.relationId = e.relationId
}
//
}
if
(
e
&&
e
.
re
lationId
)
{
if
(
e
&&
e
.
re
alPrice
)
{
this
.
realPrice
=
e
.
realPrice
this
.
realPrice
=
e
.
realPrice
}
}
},
},
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
url
:
'pages/learn/boundTest'
,
url
:
'pages/learn/boundTest'
,
params
:
{
params
:
{
code
:
res
.
result
,
code
:
res
.
result
,
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
},
},
})
})
}
}
...
@@ -128,9 +128,9 @@ export default {
...
@@ -128,9 +128,9 @@ export default {
handleChange
()
{
handleChange
()
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/manualBinding'
,
url
:
'pages/learn/manualBinding'
,
params
:
{
//
params: {
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
},
//
},
})
})
},
},
pay
(
data
)
{
pay
(
data
)
{
...
...
src/pages/learn/boundTest.vue
View file @
dc09eed8
...
@@ -68,9 +68,7 @@ export default {
...
@@ -68,9 +68,7 @@ export default {
this
.
param
.
cardNumber
=
code
.
slice
(
0
,
15
)
this
.
param
.
cardNumber
=
code
.
slice
(
0
,
15
)
this
.
param
.
cardSecret
=
code
.
slice
(
15
)
this
.
param
.
cardSecret
=
code
.
slice
(
15
)
}
}
if
(
e
&&
e
.
relationId
)
{
this
.
param
.
questionWarehouseId
=
this
.
relationId
this
.
param
.
questionWarehouseId
=
e
.
relationId
}
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
...
...
src/pages/learn/detail.vue
View file @
dc09eed8
...
@@ -34,11 +34,7 @@
...
@@ -34,11 +34,7 @@
><view
class=
"line-view"
></view>
><view
class=
"line-view"
></view>
</view>
</view>
</view>
</view>
<u-button
<u-button
:customStyle=
"buyButtonStyle"
@
click=
"handleClickBuy"
>
:customStyle=
"buyButtonStyle"
@
click=
"handleClickBuy"
type=
"primary"
>
立即购买
立即购买
</u-button>
</u-button>
</view>
</view>
...
@@ -83,7 +79,7 @@
...
@@ -83,7 +79,7 @@
type=
"primary"
type=
"primary"
shape=
"circle"
shape=
"circle"
>
>
持卡用户绑定
绑定学习卡
</u-button>
</u-button>
</view>
</view>
</view>
</view>
...
@@ -93,7 +89,7 @@
...
@@ -93,7 +89,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
relationId
:
0
,
// 绑卡用
//
relationId: 0, // 绑卡用
info
:
{
info
:
{
questionWarehouse
:
{},
questionWarehouse
:
{},
},
},
...
@@ -142,12 +138,12 @@ export default {
...
@@ -142,12 +138,12 @@ export default {
},
},
buyButtonStyle
()
{
buyButtonStyle
()
{
return
{
return
{
width
:
'160rpx'
,
marginRight
:
'12rpx'
,
height
:
'64rpx'
,
width
:
'144rpx'
,
backgroundColor
:
'#2953FF'
,
height
:
'56rpx'
,
color
:
'#FFFFFF'
,
background
:
'#FFFFFF'
,
color
:
'#2953FF'
,
fontSize
:
'26rpx'
,
fontSize
:
'26rpx'
,
borderRadius
:
'12rpx'
,
}
}
},
},
subItems
()
{
subItems
()
{
...
@@ -171,12 +167,12 @@ export default {
...
@@ -171,12 +167,12 @@ export default {
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
&&
e
.
relationId
)
{
//
if (e && e.relationId) {
this
.
relationId
=
e
.
relationId
//
this.relationId = e.relationId
}
//
}
if
((
e
&&
e
.
id
)
||
this
.
questionWarehouseId
)
{
if
((
e
&&
e
.
id
)
||
this
.
questionWarehouseId
)
{
this
.
queryQuestionWarehouseById
(
e
.
id
||
this
.
questionWarehouseId
)
this
.
queryQuestionWarehouseById
(
(
e
&&
e
.
id
)
||
this
.
questionWarehouseId
)
}
}
},
},
methods
:
{
methods
:
{
...
@@ -195,7 +191,7 @@ export default {
...
@@ -195,7 +191,7 @@ export default {
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/learn/boundQuestions'
,
url
:
'pages/learn/boundQuestions'
,
params
:
{
params
:
{
relationId
:
this
.
relationId
,
//
relationId: this.relationId,
realPrice
:
this
.
info
.
questionWarehouse
.
realPrice
,
realPrice
:
this
.
info
.
questionWarehouse
.
realPrice
,
},
},
})
})
...
...
src/pages/learn/manualBinding.vue
View file @
dc09eed8
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
type=
"primary"
type=
"primary"
shape=
"circle"
shape=
"circle"
>
>
绑
定
确
定
</u-button>
</u-button>
<view
class=
"change-button"
<view
class=
"change-button"
><u-icon
class=
"icon-view"
name=
"error-circle"
></u-icon
><u-icon
class=
"icon-view"
name=
"error-circle"
></u-icon
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
password
:
''
,
password
:
''
,
focus
:
true
,
focus
:
true
,
loading
:
false
,
loading
:
false
,
relationId
:
0
,
//
relationId: 0,
}
}
},
},
...
@@ -100,9 +100,9 @@ export default {
...
@@ -100,9 +100,9 @@ export default {
},
},
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
&&
e
.
relationId
)
{
//
if (e && e.relationId) {
this
.
relationId
=
e
.
relationId
//
this.relationId = e.relationId
}
//
}
},
},
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
...
...
src/store/index.js
View file @
dc09eed8
...
@@ -19,6 +19,7 @@ let saveStateKeys = [
...
@@ -19,6 +19,7 @@ let saveStateKeys = [
'lastIndex'
,
'lastIndex'
,
'tipStatus'
,
'tipStatus'
,
'questionWarehouseId'
,
'questionWarehouseId'
,
'relationId'
,
// 绑卡用
]
]
// 保存变量到本地存储中
// 保存变量到本地存储中
...
@@ -42,6 +43,7 @@ const store = new Vuex.Store({
...
@@ -42,6 +43,7 @@ const store = new Vuex.Store({
userInfo
:
lifeData
.
userInfo
?
lifeData
.
userInfo
:
{},
userInfo
:
lifeData
.
userInfo
?
lifeData
.
userInfo
:
{},
vuex_token
:
lifeData
.
vuex_token
?
lifeData
.
vuex_token
:
''
,
vuex_token
:
lifeData
.
vuex_token
?
lifeData
.
vuex_token
:
''
,
openId
:
lifeData
.
openId
?
lifeData
.
openId
:
''
,
openId
:
lifeData
.
openId
?
lifeData
.
openId
:
''
,
relationId
:
lifeData
.
relationId
?
lifeData
.
relationId
:
''
,
// 绑卡用
searchHistory
:
lifeData
.
searchHistory
?
lifeData
.
searchHistory
:
[],
// 搜索历史记录
searchHistory
:
lifeData
.
searchHistory
?
lifeData
.
searchHistory
:
[],
// 搜索历史记录
questionList
:
lifeData
.
questionList
?
lifeData
.
questionList
:
{},
// 练习列表
questionList
:
lifeData
.
questionList
?
lifeData
.
questionList
:
{},
// 练习列表
lastIndex
:
lifeData
.
lastIndex
?
lifeData
.
lastIndex
:
{},
// 上次做到第几题
lastIndex
:
lifeData
.
lastIndex
?
lifeData
.
lastIndex
:
{},
// 上次做到第几题
...
...
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