Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
0e3c2891
Commit
0e3c2891
authored
Feb 26, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签约页面ui优化
parent
ab1b8118
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
13 deletions
+65
-13
wxlogin.vue
take-order/pages/login/wxlogin.vue
+4
-1
sign-contract.vue
take-order/pages/settle/sign-contract.vue
+61
-12
No files found.
take-order/pages/login/wxlogin.vue
View file @
0e3c2891
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
title
:
'加载中'
,
title
:
'加载中'
,
})
})
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
uni
.
login
,
'uni.login('
)
uni
.
login
({
uni
.
login
({
// #ifdef MP-ALIPAY
// #ifdef MP-ALIPAY
scopes
:
'auth_user'
,
scopes
:
'auth_user'
,
...
@@ -83,7 +84,9 @@
...
@@ -83,7 +84,9 @@
fail
:
function
(
res
)
{
fail
:
function
(
res
)
{
reject
(
'用户授权失败wx.login'
);
reject
(
'用户授权失败wx.login'
);
},
},
complete
()
{
complete
(
res
)
{
reject
(
'code获取失败'
);
console
.
log
(
'code获取失败'
,
res
)
uni
.
hideLoading
()
uni
.
hideLoading
()
}
}
});
});
...
...
take-order/pages/settle/sign-contract.vue
View file @
0e3c2891
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"title"
>
签约页面
</view>
<view
class=
"content-txt"
>
<view
class=
"title"
>
入驻协议内容
</view>
<view
class=
"txt"
>
此处为协议正式内容
</view>
</view>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<view
class=
"item item-input flex-yc"
>
<view
class=
"item item-input flex-yc"
>
<label
class=
"label"
>
签约人
</label>
<label
class=
"label"
>
签约人
</label>
...
@@ -45,7 +49,7 @@
...
@@ -45,7 +49,7 @@
<view
class=
"seat"
></view>
<view
class=
"seat"
></view>
<view
class=
"btn-wrap flex-xc"
>
<view
class=
"btn-wrap flex-xc"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"submitBaseInfo"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"submitBaseInfo"
>
确定
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</button>
</view>
</view>
</view>
</view>
...
@@ -77,12 +81,15 @@
...
@@ -77,12 +81,15 @@
}],
}],
settledInfo
:{},
settledInfo
:{},
saving
:
false
,
saving
:
false
,
isStop
:
false
,
count
:
9
,
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
},
},
onShow
(){
onShow
(){
this
.
getBaseInfo
()
this
.
startCounting
()
// this.getBaseInfo()
// const url = 'https://m.test.ibanshou.cn/activity/settled_2021/mini'
// const url = 'https://m.test.ibanshou.cn/activity/settled_2021/mini'
// uni.navigateTo({
// uni.navigateTo({
// url:'/pages/settle/web?url='+url
// url:'/pages/settle/web?url='+url
...
@@ -93,7 +100,7 @@
...
@@ -93,7 +100,7 @@
submitStatus
()
{
submitStatus
()
{
const
baseInfo
=
this
.
baseInfo
const
baseInfo
=
this
.
baseInfo
const
flag
=
baseInfo
.
pay_type
&&
baseInfo
.
bank_no
&&
baseInfo
.
bank_name
const
flag
=
baseInfo
.
pay_type
&&
baseInfo
.
bank_no
&&
baseInfo
.
bank_name
return
flag
&&
!
this
.
saving
;
return
flag
&&
!
this
.
saving
&&
this
.
isStop
;
},
},
},
},
components
:
{
components
:
{
...
@@ -107,6 +114,22 @@
...
@@ -107,6 +114,22 @@
}
}
},
},
methods
:
{
methods
:
{
startCounting
:
function
()
{
if
(
this
.
isStop
){
return
}
this
.
count
=
this
.
count
-
1
if
(
this
.
count
>
0
){
setTimeout
(
this
.
startCounting
,
1000
);
}
else
{
this
.
isStop
=
true
}
},
refreshPage
(){
refreshPage
(){
this
.
getBaseInfo
()
this
.
getBaseInfo
()
},
},
...
@@ -341,17 +364,42 @@
...
@@ -341,17 +364,42 @@
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.content
{
width
:
100%
;
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
background-color
:
#F3F3F3
;
}
.content-txt
{
overflow
:
auto
;
flex
:
1
;
.title
{
padding
:
30rpx
30rpx
0
;
line-height
:
40rpx
;
text-align
:
center
;
font-weight
:
bold
;
color
:
#333
;
font-size
:
36rpx
;
}
.txt
{
padding
:
20rpx
30rpx
;
line-height
:
40rpx
;
color
:
#333
;
font-size
:
28rpx
;
}
}
.base-list
{
.base-list
{
.item
{
.item
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
58rpx
;
padding
:
28rpx
30rpx
;
padding
:
28rpx
30rpx
;
width
:
100%
;
width
:
100%
;
height
:
100rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#333
;
border-bottom
:
2rpx
solid
#FDFDFD
;
background-color
:
#fff
;
background-color
:
#fff
;
.label
{
.label
{
line-height
:
44rpx
;
color
:
#333
;
color
:
#333
;
font-size
:
32rpx
;
font-size
:
32rpx
;
}
}
...
@@ -501,14 +549,15 @@
...
@@ -501,14 +549,15 @@
// bottom: px2rem(36);
// bottom: px2rem(36);
height
:
104rpx
;
height
:
104rpx
;
line-height
:
104rpx
;
line-height
:
104rpx
;
background
:
#2272ff
;
border-radius
:
52rpx
;
background
:
#fff
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#fff
;
color
:
#fff
;
&
:disabled
{
&
[
disabled
]
{
border
:
2rpx
solid
#999
;
border
:
none
;
background-color
:
#f3f3f3
;
background-color
:
#999999
;
color
:
#
999
;
color
:
#
fff
;
}
}
}
}
}
}
...
...
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