Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
cd17f274
Commit
cd17f274
authored
Apr 20, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
e52f0e8e
3fb9889a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
736 additions
and
60 deletions
+736
-60
pages.json
src/pages.json
+3
-3
index.vue
src/pages/exam/index.vue
+1
-1
index.vue
src/pages/index/index.vue
+187
-47
index.vue
src/pages/order/index.vue
+513
-0
pay-ensure.vue
src/pages/settle/pay-ensure.vue
+2
-2
prompt.vue
src/pages/settle/prompt.vue
+0
-1
sign-contract.vue
src/pages/settle/sign-contract.vue
+22
-4
u-subsection.vue
src/uview-ui/components/u-subsection/u-subsection.vue
+8
-2
No files found.
src/pages.json
View file @
cd17f274
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"uni-app"
,
"navigationBarTitleText"
:
"uni-app"
,
...
@@ -255,8 +255,8 @@
...
@@ -255,8 +255,8 @@
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
{
"name"
:
"
缴纳保证金
"
,
//模式名称
"name"
:
"
订单列表
"
,
//模式名称
"path"
:
"pages/
settle/pay-ensure
"
,
//启动页面,必选
"path"
:
"pages/
order/index
"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
{
...
...
src/pages/exam/index.vue
View file @
cd17f274
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<Settle
:index=
"
2
"
>
<Settle
:index=
"
3
"
>
<!--
<template
v-if=
"isStart==false"
>
<!--
<template
v-if=
"isStart==false"
>
<view
class=
"noticeView"
>
<view
class=
"noticeView"
>
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
...
...
src/pages/index/index.vue
View file @
cd17f274
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<scroll-view
scroll-y
style=
"height: 100%; width: 100%"
@
scrolltolower=
"reachBottom"
@
scroll=
"handleScroll"
<!--
<scroll-view
class=
"scroll-view"
scroll-y
style=
"height: 100%; width: 100%"
@
scrolltolower=
"reachBottom"
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
@
scroll=
"handleScroll"
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
scroll-anchoring
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
:show-scrollbar=
"false"
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
enable-back-to-top
>
-->
@
click=
"clickSwiper"
>
<view
style=
"width: 700rpx; height: 800rpx;"
>
</u-swiper>
<!--
<view
class=
"title-view"
>
充电桩自营平台
</view>
-->
<view
class=
"msg-view"
>
<u-navbar
:is-back=
"false"
background=
"
{background: transparent}" :border-bottom="false"
<text
class=
"msg-title"
>
最新消息
</text>
:is-fixed="false">
<u-cell-group>
<text
class=
"title-view"
>
充电桩自营平台
</text>
<u-cell-item
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
</u-navbar>
:title=
"item.message"
>
<u-swiper
:height=
"240"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
<image
class=
"msg-icon"
slot=
"icon"
></image>
@
click=
"clickSwiper"
>
</u-cell-item>
</u-swiper>
</u-cell-group>
<view
class=
"msg-view"
>
</view>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"order-view"
>
<view
class=
"msg-list-view"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-content-view"
>
<view
class=
"left-view"
>
<image
class=
"msg-icon"
></image>
<text>
{{
item
.
body
}}
</text>
</view>
<image
class=
"right-icon"
></image>
</view>
<view
class=
"line-view"
v-if=
"messageList.length > index + 1"
></view>
</view>
</view>
</view>
<!-- 订单推荐吸顶 -->
<!-- 订单推荐吸顶 -->
<u-sticky>
<u-sticky>
<view
class=
"sticky"
>
<view
class=
"sticky"
>
<text>
订单推荐
</text>
<text>
订单推荐
</text>
</view>
</view>
</u-sticky>
</u-sticky>
<!-- 入驻成功之后显示推荐订单列表 -->
<view
class=
"order-view"
>
<view
v-if=
"status == 7 && orderList.length > 0"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<!-- 入驻成功之后显示推荐订单列表 -->
<OrderCell
:orderData=
"item"
>
</OrderCell>
<view
class=
"order-list-view"
>
<view
v-if=
"status == 7 && orderList.length > 0"
class=
"order-item-view"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
>
</OrderCell>
</view>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
class=
"no-order-view"
>
暂无订单
</view>
<!-- 入驻前-->
<view
v-else-if=
"loaded"
class=
"tip-view"
>
<view
class=
"tip-title"
>
当前订单(笔)
</view>
<view
class=
"tip-count"
>
{{
count
}}
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
</u-button>
</view>
</view>
</view>
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"status == 7 && orderList.length
<
=
0
"
>
暂无订单
</view>
<!-- 入驻前-->
<view
v-else-if=
"loaded"
>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
</u-button>
</view>
</view>
</view>
</view>
<
/scroll-view
>
<
!--
</scroll-view>
--
>
</view>
</view>
</
template
>
</
template
>
...
@@ -110,7 +129,10 @@
...
@@ -110,7 +129,10 @@
computed
:
{
computed
:
{
buttonStyle
()
{
buttonStyle
()
{
return
{
return
{
width
:
"300rpx"
,
'width'
:
'400rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
};
};
},
},
msgStyle
()
{
msgStyle
()
{
...
@@ -190,9 +212,29 @@
...
@@ -190,9 +212,29 @@
console
.
log
(
"-----scroll-------"
);
console
.
log
(
"-----scroll-------"
);
},
},
immediatelyIn
()
{
immediatelyIn
()
{
if
(
util
.
getToken
())
{
if
(
util
.
getToken
())
{
// 0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
var
pageIndex
=
1
switch
(
this
.
status
)
{
case
1
,
2
,
3
,
4
:
pageIndex
=
2
break
case
8
:
pageIndex
=
3
break
case
5
,
6
:
pageIndex
=
4
break
case
7
:
pageIndex
=
5
break
default
:
pageIndex
=
1
break
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
this
.
status
>
0
?
"/pages/settle/prompt
"
:
"/pages/settle/index"
,
url
:
this
.
status
>
0
?
"/pages/settle/prompt
?pageIndex"
+
pageIndex
:
"/pages/settle/index"
,
});
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -206,20 +248,69 @@
...
@@ -206,20 +248,69 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content
{
.content
{
height
:
100%
;
height
:
100vh
;
padding
:
30rpx
;
background-color
:
#F4F5F7
;
padding
:
0rpx
30rpx
0
30rpx
;
.scroll-view
{
::-webkit-scrollbar
{
/*隐藏滚轮*/
display
:
none
;
}
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40rpx
;
}
.msg-view
{
.msg-view
{
.msg-title
{
.msg-title
{
color
:
#333333
;
color
:
#333333
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
padding
:
50rpx
0rpx
30rpx
0rpx
;
}
.msg-list-view
{
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
padding
:
6rpx
30rpx
;
}
}
.msg-content
{
.msg-content
{
color
:
#333333
;
color
:
#333333
;
font-size
:
26rpx
;
font-size
:
26rpx
;
.mas-icon
{}
.msg-content-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
20rpx
;
margin-bottom
:
20rpx
;
.left-view
{
display
:
flex
;
align-items
:
center
;
.msg-icon
{
width
:
80rpx
;
height
:
36rpx
;
}
}
.right-icon
{
width
:
14rpx
;
height
:
24px
;
}
}
.line-view
{
height
:
2rpx
;
background-color
:
#F4F5F7
;
}
}
}
}
}
...
@@ -241,15 +332,64 @@
...
@@ -241,15 +332,64 @@
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
// .sticky-view {
// position: sticky;
// position: -webkit-sticky;
// top: 0rpx;
// width: 100%;
// height: 200rpx;
// background-color: black;
// }
.sticky
{
.sticky
{
height
:
120
rpx
;
background-color
:
#F4F5F7
;
background-color
:
#2979ff
;
color
:
#fff
;
color
:
#fff
;
padding
:
24
rpx
;
padding
:
24
rpx
;
text-align
:
left
;
text-align
:
left
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
padding
:
46rpx
0
28rpx
0
;
}
}
.order-view
{
.order-view
{
text-align
:
center
;
text-align
:
center
;
.order-list-view
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
min-height
:
460rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.order-item-view
{}
.no-order-view
{}
.tip-view
{
.tip-title
{
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
margin-top
:
30rpx
;
}
.tip-count
{
color
:
#2272FF
;
font-size
:
70rpx
;
font-weight
:
bold
;
margin-top
:
50rpx
;
margin-bottom
:
20rpx
;
}
.tip-other
{
font-size
:
28rpx
;
color
:
#333333
;
margin-bottom
:
56rpx
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/order/index.vue
View file @
cd17f274
This diff is collapsed.
Click to expand it.
src/pages/settle/pay-ensure.vue
View file @
cd17f274
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
<view
class=
"content"
>
<view
class=
"content"
>
<Settle
:index=
"5"
>
<Settle
:index=
"5"
>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<view
class=
"title"
>
充电桩安装需缴纳
设备
押金
</view>
<view
class=
"title"
>
充电桩安装需缴纳
配件
押金
</view>
<view
class=
"price"
><text>
¥
</text>
{{
settledInfo
.
record
.
deposit
}}
</view>
<view
class=
"price"
><text>
¥
</text>
{{
settledInfo
.
record
.
deposit
}}
</view>
<view
class=
"list"
>
<view
class=
"list"
>
<view
class=
"item u-flex u-row-between"
>
<view
class=
"item u-flex u-row-between"
>
<view
class=
"txt"
>
您
已缴纳金额
</view>
<view
class=
"txt"
>
已缴纳金额
</view>
<view
class=
"txt-value"
>
¥ 0.00
</view>
<view
class=
"txt-value"
>
¥ 0.00
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"line-view"
></view>
...
...
src/pages/settle/prompt.vue
View file @
cd17f274
...
@@ -127,7 +127,6 @@
...
@@ -127,7 +127,6 @@
}
}
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
this
.
settledInfo
=
settledInfo
this
.
settledInfo
=
settledInfo
this
.
settledInfo
.
record
.
status
=
8
this
.
status
=
settledInfo
.
record
.
status
this
.
status
=
settledInfo
.
record
.
status
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
initInfo
(
settledInfo
.
record
)
this
.
initInfo
(
settledInfo
.
record
)
...
...
src/pages/settle/sign-contract.vue
View file @
cd17f274
...
@@ -56,9 +56,10 @@
...
@@ -56,9 +56,10 @@
</view>
</view>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<view
class=
"btn-wrap flex-xc"
>
<view
class=
"btn-wrap flex-xc"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<u-button
class=
"btn-submit"
@
click=
"$u.debounce(submitBaseInfo, 500)"
:custom-style=
"buttonStyle"
我已阅读协议,点击签约
{{
count
?
'('
+
count
+
')'
:
''
}}
type=
"primary"
shape=
"circle"
:hover-class=
"submitStatus ? '' : 'none'"
>
</button>
我已确认信息,去签约
{{
count
?
'('
+
count
+
')'
:
''
}}
</u-button>
</view>
</view>
</
template
>
</
template
>
</Settle>
</Settle>
...
@@ -81,7 +82,7 @@
...
@@ -81,7 +82,7 @@
return
{
return
{
token
:
app
.
globalData
.
token
,
token
:
app
.
globalData
.
token
,
baseInfo
:
{
baseInfo
:
{
name
:
"
郭小清
"
,
name
:
""
,
id_card_no
:
"43072219800123456"
,
id_card_no
:
"43072219800123456"
,
id
:
""
,
id
:
""
,
bank_no
:
''
,
// 银行卡号
bank_no
:
''
,
// 银行卡号
...
@@ -133,6 +134,23 @@
...
@@ -133,6 +134,23 @@
},
},
tips3Image
()
{
tips3Image
()
{
return
qn_base_url
+
'tips3.png'
return
qn_base_url
+
'tips3.png'
},
buttonStyle
()
{
return
this
.
submitStatus
?
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#2272FF;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
:
{
'color'
:
'#FFFFFF'
,
'background-color'
:
'#D1D4D4;'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
}
}
},
},
components
:
{
components
:
{
...
...
src/uview-ui/components/u-subsection/u-subsection.vue
View file @
cd17f274
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
* @property {Boolean} bold 激活选项的字体是否加粗(默认true)
* @property {Boolean} bold 激活选项的字体是否加粗(默认true)
* @property {String} bg-color 组件背景颜色,mode为button时有效(默认#eeeeef)
* @property {String} bg-color 组件背景颜色,mode为button时有效(默认#eeeeef)
* @property {String} button-color 按钮背景颜色,mode为button时有效(默认#ffffff)
* @property {String} button-color 按钮背景颜色,mode为button时有效(默认#ffffff)
* @property {String Number} border-radius 圆角值,单位rpx(默认5)
* @event {Function} change 分段器选项发生改变时触发
* @event {Function} change 分段器选项发生改变时触发
* @example <u-subsection active-color="#ff9900"></u-subsection>
* @example <u-subsection active-color="#ff9900"></u-subsection>
*/
*/
...
@@ -91,7 +92,12 @@
...
@@ -91,7 +92,12 @@
vibrateShort
:
{
vibrateShort
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
},
// 圆角值
borderRadius
:
{
type
:
[
Number
,
String
],
default
:
5
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -105,7 +111,7 @@
...
@@ -105,7 +111,7 @@
},
},
currentIndex
:
this
.
current
,
currentIndex
:
this
.
current
,
buttonPadding
:
3
,
// mode = button 时,组件的内边距
buttonPadding
:
3
,
// mode = button 时,组件的内边距
borderRadius
:
5
,
// 圆角值
//
borderRadius: 5, // 圆角值
firstTimeVibrateShort
:
true
// 组件初始化时,会触发current变化,此时不应震动
firstTimeVibrateShort
:
true
// 组件初始化时,会触发current变化,此时不应震动
};
};
},
},
...
...
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