Commit 2dc54494 by iambtr

录车工具

parent f1f6c94e
......@@ -7,7 +7,7 @@
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "智管家",
"navigationBarTitleText": "智管家",
"navigationBarTextStyle": "black"
},
"networkTimeout": {
......
......@@ -53,19 +53,20 @@ 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]
if (point && point.companyName){
wx.showModal({
title: '提示',
content: `确认您的二级网点是${point.companyName}`,
......@@ -80,5 +81,8 @@ Page({
}
}
})
return
}
alertTip('二级网点异常,请联系管理员')
}
})
\ No newline at end of file
......@@ -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>
......
{
"description": "录车小程序",
"description": "智租管家",
"setting": {
"urlCheck": true,
"es6": true,
......@@ -9,8 +9,8 @@
},
"compileType": "miniprogram",
"libVersion": "1.6.4",
"appid": "wx719af42c3a22ad73",
"projectname": "%E5%BD%95%E8%BD%A6%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"appid": "wx6fb8bdbf51d38e78",
"projectname": "%E6%99%BA%E7%AE%A1%E5%AE%B6",
"condition": {
"search": {
"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