Commit 2dc54494 by iambtr

录车工具

parent f1f6c94e
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"window": { "window": {
"backgroundTextStyle": "dark", "backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "智管家", "navigationBarTitleText": "智管家",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
}, },
"networkTimeout": { "networkTimeout": {
......
...@@ -53,19 +53,20 @@ Page({ ...@@ -53,19 +53,20 @@ Page({
let that = this let that = this
api.get('site/getByCompanyId', { companyId }) api.get('site/getByCompanyId', { companyId })
.then(({ items }) => { .then(({ items }) => {
if(items.length==0){
alertTip('该一级网点下不存在二级网点,请联系管理员')
}
that.setData({ that.setData({
pointArray: items pointArray: items
}) })
}) })
.catch(err => { .catch(err => {
alertTip(err) alertTip(err)
that.setData({
dataError: true
})
}) })
}, },
surePoint(){ surePoint(){
let point = this.data.pointArray[this.data.pointIndex] let point = this.data.pointArray[this.data.pointIndex]
if (point && point.companyName){
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: `确认您的二级网点是${point.companyName}`, content: `确认您的二级网点是${point.companyName}`,
...@@ -80,5 +81,8 @@ Page({ ...@@ -80,5 +81,8 @@ Page({
} }
} }
}) })
return
}
alertTip('二级网点异常,请联系管理员')
} }
}) })
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<picker class='input-text point' bindchange="companyChange" value="{{companyIndex}}" range-key="companyName" range="{{companyArray}}"> <picker class='input-text point' bindchange="companyChange" value="{{companyIndex}}" range-key="companyName" range="{{companyArray}}">
<view>{{companyArray[companyIndex].companyName}}</view> <view>{{companyArray[companyIndex].companyName}}</view>
</picker> </picker>
<text class='fresh-car' catchtap='getCompany'>刷新公司</text> <text class='fresh-car' catchtap='getCompany'>刷新租赁商</text>
</view> </view>
<view class='phone list'> <view class='phone list'>
<text>二级网点:</text> <text>二级网点:</text>
......
{ {
"description": "录车小程序", "description": "智租管家",
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "1.6.4", "libVersion": "1.6.4",
"appid": "wx719af42c3a22ad73", "appid": "wx6fb8bdbf51d38e78",
"projectname": "%E5%BD%95%E8%BD%A6%E5%B0%8F%E7%A8%8B%E5%BA%8F", "projectname": "%E6%99%BA%E7%AE%A1%E5%AE%B6",
"condition": { "condition": {
"search": { "search": {
"current": -1, "current": -1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment