Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
scan-app
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
iambtr
scan-app
Commits
2dc54494
Commit
2dc54494
authored
Jun 06, 2018
by
iambtr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录车工具
parent
f1f6c94e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
21 deletions
+26
-21
app.json
app.json
+1
-1
choose_point.js
pages/choose_point/choose_point.js
+21
-16
choose_point.wxml
pages/choose_point/choose_point.wxml
+1
-1
project.config.json
project.config.json
+3
-3
No files found.
app.json
View file @
2dc54494
...
...
@@ -7,7 +7,7 @@
"window"
:
{
"backgroundTextStyle"
:
"dark"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTitleText"
:
"智管家"
,
"navigationBarTitleText"
:
"智
租
管家"
,
"navigationBarTextStyle"
:
"black"
},
"networkTimeout"
:
{
...
...
pages/choose_point/choose_point.js
View file @
2dc54494
...
...
@@ -53,32 +53,36 @@ Page({
let
that
=
this
api
.
get
(
'site/getByCompanyId'
,
{
companyId
})
.
then
(({
items
})
=>
{
if
(
items
.
length
==
0
){
alertTip
(
'该一级网点下不存在二级网点,请联系管理员'
)
}
that
.
setData
({
pointArray
:
items
})
})
.
catch
(
err
=>
{
alertTip
(
err
)
that
.
setData
({
dataError
:
true
})
})
},
surePoint
(){
let
point
=
this
.
data
.
pointArray
[
this
.
data
.
pointIndex
]
wx
.
showModal
({
title
:
'提示'
,
content
:
`确认您的二级网点是
${
point
.
companyName
}
`
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
setStorageSync
(
'siteId'
,
point
.
id
)
wx
.
redirectTo
({
url
:
'/pages/user_index/user_index'
,
})
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
)
if
(
point
&&
point
.
companyName
){
wx
.
showModal
({
title
:
'提示'
,
content
:
`确认您的二级网点是
${
point
.
companyName
}
`
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
setStorageSync
(
'siteId'
,
point
.
id
)
wx
.
redirectTo
({
url
:
'/pages/user_index/user_index'
,
})
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
)
}
}
}
})
})
return
}
alertTip
(
'二级网点异常,请联系管理员'
)
}
})
\ No newline at end of file
pages/choose_point/choose_point.wxml
View file @
2dc54494
...
...
@@ -3,7 +3,7 @@
<picker class='input-text point' bindchange="companyChange" value="{{companyIndex}}" range-key="companyName" range="{{companyArray}}">
<view>{{companyArray[companyIndex].companyName}}</view>
</picker>
<text class='fresh-car' catchtap='getCompany'>刷新
公司
</text>
<text class='fresh-car' catchtap='getCompany'>刷新
租赁商
</text>
</view>
<view class='phone list'>
<text>二级网点:</text>
...
...
project.config.json
View file @
2dc54494
{
"description"
:
"
录车小程序
"
,
"description"
:
"
智租管家
"
,
"setting"
:
{
"urlCheck"
:
true
,
"es6"
:
true
,
...
...
@@ -9,8 +9,8 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"1.6.4"
,
"appid"
:
"wx
719af42c3a22ad73
"
,
"projectname"
:
"%E
5%BD%95%E8%BD%A6%E5%B0%8F%E7%A8%8B%E5%BA%8F
"
,
"appid"
:
"wx
6fb8bdbf51d38e78
"
,
"projectname"
:
"%E
6%99%BA%E7%AE%A1%E5%AE%B6
"
,
"condition"
:
{
"search"
:
{
"current"
:
-1
,
...
...
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