修改发票显示问题和暂存工作台修改
This commit is contained in:
parent
103c10347c
commit
616c6a53fb
3
app.json
3
app.json
|
@ -31,7 +31,8 @@
|
|||
"pages/integral/index",
|
||||
"pages/discountCoupon/index",
|
||||
"pages/integralRecord/index",
|
||||
"pages/meterList/index"
|
||||
"pages/meterList/index",
|
||||
"pages/workBench/components/tenement/components/createTenement/index"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
|
|
24
components/Segmented/index.js
Normal file
24
components/Segmented/index.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
// components/Segmented/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
list: Array
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
components/Segmented/index.json
Normal file
4
components/Segmented/index.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
4
components/Segmented/index.wxml
Normal file
4
components/Segmented/index.wxml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!--components/Segmented/index.wxml-->
|
||||
<view>
|
||||
<view wx:for="{{list}}" wx:key="index"></view>
|
||||
</view>
|
1
components/Segmented/index.wxss
Normal file
1
components/Segmented/index.wxss
Normal file
|
@ -0,0 +1 @@
|
|||
/* components/Segmented/index.wxss */
|
|
@ -7,6 +7,7 @@ Component({
|
|||
properties: {
|
||||
title: String,
|
||||
canBack: Boolean,
|
||||
beforeBack: Function,
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -34,7 +35,11 @@ Component({
|
|||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
back() {
|
||||
async back() {
|
||||
const { beforeBack } = this;
|
||||
if (beforeBack) {
|
||||
await beforeBack();
|
||||
}
|
||||
wx.navigateBack();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { getLoginParkList } from "../../service/park"
|
||||
import { getLoginParkList, getParkBuildingList } from "../../service/park"
|
||||
import { getParkSimpleMeterList } from "../../service/meter"
|
||||
import { alertInfo } from "../../utils/index";
|
||||
import request from "../../utils/request"
|
||||
import { payWays } from "../../utils/data";
|
||||
import { payWays, feeType } from "../../utils/data";
|
||||
import { getTenementList } from "../../service/tenement";
|
||||
const { OK } = request;
|
||||
|
||||
|
@ -86,9 +86,13 @@ Component({
|
|||
return;
|
||||
case "meter":
|
||||
this.onSearchMeter();
|
||||
return
|
||||
case "tenement":
|
||||
this.onSearchTenement();
|
||||
return;
|
||||
case "building":
|
||||
this.onSearchBuilding();
|
||||
return;
|
||||
}
|
||||
},
|
||||
async onSearchPark() {
|
||||
|
@ -127,6 +131,18 @@ Component({
|
|||
list: data,
|
||||
})
|
||||
},
|
||||
async onSearchBuilding() {
|
||||
const { park } = this.data;
|
||||
const { code, message, data = [] } = await getParkBuildingList(park);
|
||||
if (code !== OK) {
|
||||
alertInfo(message)
|
||||
return
|
||||
}
|
||||
this.setData({
|
||||
columns: data?.length ? data?.map(item => item?.name) : [],
|
||||
list: data,
|
||||
})
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
show="{{ show }}"
|
||||
bind:click="onClickHide"
|
||||
position="bottom"
|
||||
z-index="100000"
|
||||
>
|
||||
<view wx:if="{{type !== 'pay'}}">
|
||||
<van-search
|
||||
|
@ -26,7 +27,7 @@
|
|||
bind:confirm="onConfirm"
|
||||
/>
|
||||
</view>
|
||||
<view wx:else>
|
||||
<view wx:elif="{{type === 'pay'}}">
|
||||
<van-picker
|
||||
custom-style="width: 100%;"
|
||||
columns="{{ payWays }}"
|
||||
|
@ -36,4 +37,24 @@
|
|||
bind:confirm="onPayConfirm"
|
||||
/>
|
||||
</view>
|
||||
<view wx:elif="{{type === 'feeType'}}">
|
||||
<van-picker
|
||||
custom-style="width: 100%;"
|
||||
columns="{{ feeType }}"
|
||||
title="{{title}}"
|
||||
show-toolbar="{{true}}"
|
||||
bind:cancel="onCancel"
|
||||
bind:confirm="onPayConfirm"
|
||||
/>
|
||||
</view>
|
||||
<view wx:else>
|
||||
<van-picker
|
||||
custom-style="width: 100%;"
|
||||
columns="{{ columns }}"
|
||||
title="{{title}}"
|
||||
show-toolbar="{{true}}"
|
||||
bind:cancel="onCancel"
|
||||
bind:confirm="onConfirm"
|
||||
/>
|
||||
</view>
|
||||
</van-popup>
|
|
@ -1,3 +1 @@
|
|||
/* components/searchSelect/index.wxss */
|
||||
.van-ellipsis van-picker-column__item {
|
||||
}
|
|
@ -23,7 +23,6 @@ Page({
|
|||
|
||||
},
|
||||
onChange(e) {
|
||||
console.log('e', e)
|
||||
this.setData({
|
||||
active: e.detail.index,
|
||||
}, () => {
|
||||
|
|
|
@ -56,7 +56,7 @@ Page({
|
|||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
|
||||
},
|
||||
async changeMeter() {
|
||||
const { meterList = [] } = this.data;
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
>
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value="{{ tenementName }}"
|
||||
value="{{ detail.name }}"
|
||||
label="发票抬头"
|
||||
readonly
|
||||
type="textarea"
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
import { alertInfo, alertSuccess } from "../../../../../../utils/index";
|
||||
import request from "../../../../../../utils/request"
|
||||
const { OK } = request
|
||||
// pages/workBench/components/account/components/editModal/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
type: String,
|
||||
title: String,
|
||||
visible: Boolean,
|
||||
onOk: Function,
|
||||
onCancel: Function,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
async onSubmit() {
|
||||
const { phone, name } = this.data;
|
||||
if (!phone) {
|
||||
alertInfo("请输入手机号")
|
||||
return
|
||||
}
|
||||
if (!name) {
|
||||
alertInfo("请输入昵称")
|
||||
return
|
||||
}
|
||||
// const { code, message } = await update()
|
||||
// if (code !== OK) {
|
||||
// alertInfo(message)
|
||||
// return;
|
||||
// }
|
||||
// alertSuccess("操作成功")
|
||||
// if (this.onOk) {
|
||||
// this.onOk()
|
||||
// }
|
||||
}
|
||||
}
|
||||
})
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-dialog": "@vant/weapp/dialog/index",
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-field": "@vant/weapp/field/index"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
<!--pages/workBench/components/account/components/editModal/index.wxml-->
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="{{title}}"
|
||||
show="{{ visible }}"
|
||||
show-cancel-button
|
||||
bind:confirm="onSubmit"
|
||||
>
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value=""
|
||||
label="昵称"
|
||||
readonly
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="120rpx"
|
||||
border="{{false}}"
|
||||
/>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择电表"
|
||||
label="手机号"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
title-width="120rpx"
|
||||
>
|
||||
</van-field>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/account/components/editModal/index.wxss */
|
77
pages/workBench/components/account/index.js
Normal file
77
pages/workBench/components/account/index.js
Normal file
|
@ -0,0 +1,77 @@
|
|||
// pages/workBench/components/account/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onParkFocus(e) {
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "园区",
|
||||
type: 'park'
|
||||
})
|
||||
},
|
||||
onTenementFocus(e) {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "商户",
|
||||
type: 'tenement'
|
||||
})
|
||||
},
|
||||
onConfirm(e) {
|
||||
const { type, data } = e.detail;
|
||||
switch(type) {
|
||||
case "park":
|
||||
this.setData({
|
||||
park: data.id,
|
||||
parkName: data.name,
|
||||
show: false,
|
||||
})
|
||||
break;
|
||||
case "tenement":
|
||||
this.setData({
|
||||
tenement: data.id,
|
||||
tenementName: data.name,
|
||||
show: false,
|
||||
})
|
||||
break;
|
||||
}
|
||||
},
|
||||
handleDelete(e) {
|
||||
const {} = e;
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '确认要移除该用户吗?',
|
||||
complete: (res) => {
|
||||
if (res.cancel) {
|
||||
|
||||
}
|
||||
|
||||
if (res.confirm) {
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
16
pages/workBench/components/account/index.json
Normal file
16
pages/workBench/components/account/index.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-empty": "@vant/weapp/empty/index",
|
||||
"table": "/components/table/table",
|
||||
"pagination": "/components/pagination/index",
|
||||
"empty": "/components/empty/index",
|
||||
"van-radio": "@vant/weapp/radio/index",
|
||||
"van-radio-group": "@vant/weapp/radio-group/index",
|
||||
"van-tag": "@vant/weapp/tag/index",
|
||||
"edit-modal": "./components/editModal/index"
|
||||
}
|
||||
}
|
98
pages/workBench/components/account/index.wxml
Normal file
98
pages/workBench/components/account/index.wxml
Normal file
|
@ -0,0 +1,98 @@
|
|||
<!--pages/workBench/components/account/index.wxml-->
|
||||
<view>
|
||||
<van-field
|
||||
required
|
||||
value="{{ parkName }}"
|
||||
label="园区"
|
||||
placeholder="请选择园区"
|
||||
border="{{ true }}"
|
||||
readonly
|
||||
use-button-slot
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onParkFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field
|
||||
required
|
||||
value="{{ tenementName }}"
|
||||
label="商户"
|
||||
placeholder="请选择商户"
|
||||
border="{{ true }}"
|
||||
readonly
|
||||
use-button-slot
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onTenementFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
</view>
|
||||
<van-empty wx:if="{{!tenement}}" description="选择园区和商户后查看" />
|
||||
<view wx:else>
|
||||
<van-field
|
||||
value="{{item.tenement.name}}"
|
||||
label="商户名称"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
|
||||
<van-field
|
||||
value="{{item.meterNo}}"
|
||||
label="商户简称"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.address}}"
|
||||
label="收费类型"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.address}}"
|
||||
label="预留电话"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<view wx:if="{{list.length}}">
|
||||
<view class="tableWrapper">
|
||||
<view class="table">
|
||||
<view class="thead">
|
||||
<view class="th" style="width: 70rpx"> 序号 </view>
|
||||
<view class="th" style="width: 200rpx"> 昵称 </view>
|
||||
<view class="th" style="width: 200rpx"> 手机号 </view>
|
||||
<view class="th" style="width: 200rpx"> 操作 </view>
|
||||
</view>
|
||||
<view class="tbody">
|
||||
<van-radio-group value="{{ record }}" bind:change="onChangeSelectRecharge">
|
||||
<block wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item">
|
||||
<view class="tr">
|
||||
<view class="th" style="width: 200rpx"> {{ index }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.tenement.shortName }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.money }} </view>
|
||||
<view class="th" style="width: 200rpx">
|
||||
<view class="primaryTextBtn" bind:tap="handleDelete" data-id="{{item.id}}">
|
||||
移除
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="operateBox">
|
||||
<van-button type="primary" size="small" style="margin-right: 20rpx;"> 添加子账号 </van-button>
|
||||
<van-button type="primary" size="small" style="margin-right: 20rpx;"> 修改主账号 </van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<search-select
|
||||
show="{{show}}"
|
||||
title="{{title}}"
|
||||
type="{{type}}"
|
||||
park="{{park}}"
|
||||
bindconfirm="onConfirm"
|
||||
bindcancel="onConcal"
|
||||
/>
|
||||
<kaihu park="{{park}}" visible="{{kaihuVisible}}" />
|
1
pages/workBench/components/account/index.wxss
Normal file
1
pages/workBench/components/account/index.wxss
Normal file
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/account/index.wxss */
|
|
@ -33,17 +33,39 @@ Component({
|
|||
type: 'park'
|
||||
})
|
||||
},
|
||||
onConfirm(e) {
|
||||
const { data } = e.detail;
|
||||
const that = this;
|
||||
onMeterFocus(e) {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
parkName: data.name,
|
||||
park: data.id,
|
||||
}, () => {
|
||||
loadingFunc(async () => {
|
||||
await that.init();
|
||||
})
|
||||
show: true,
|
||||
title: "电表",
|
||||
type: 'meter'
|
||||
})
|
||||
},
|
||||
onConfirm(e) {
|
||||
console.log('e', e)
|
||||
const { data, type } = e.detail;
|
||||
const that = this;
|
||||
switch(type) {
|
||||
case "park":
|
||||
this.setData({
|
||||
parkName: data.name,
|
||||
park: data.id,
|
||||
})
|
||||
break;
|
||||
case "meter":
|
||||
this.setData({
|
||||
meterName: data.address,
|
||||
meter: data.id,
|
||||
}, () => {
|
||||
that.init();
|
||||
})
|
||||
break;
|
||||
}
|
||||
|
||||
this.onConcal();
|
||||
},
|
||||
onChangeKeyword(e) {
|
||||
|
@ -60,11 +82,11 @@ Component({
|
|||
})
|
||||
},
|
||||
async init() {
|
||||
const { page, keyword, park } = this.data;
|
||||
const { page, park, meter } = this.data;
|
||||
if (!park) {
|
||||
return;
|
||||
}
|
||||
const { code, message, data, total } = await getParkMeterList({ park, keyword, page })
|
||||
const { code, message, data, total } = await getParkMeterList({ park, keyword: meter, page })
|
||||
if (code !== OK) {
|
||||
alertInfo(message);
|
||||
return;
|
||||
|
|
|
@ -16,65 +16,113 @@
|
|||
<van-empty wx:if="{{!park}}" description="选择园区后查看" />
|
||||
<view wx:else>
|
||||
<van-field
|
||||
value="{{ keyword }}"
|
||||
placeholder="请输入关键字"
|
||||
label="关键字"
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择电表"
|
||||
label="电表"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
use-button-slot
|
||||
bind:change="onChangeKeyword"
|
||||
title-width="100rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onSearch">
|
||||
搜索
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onMeterFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-empty wx:if="{{!meter}}" description="选择电表后查看" />
|
||||
<view>
|
||||
<view wx:if="{{list.length}}">
|
||||
<van-radio-group value="{{ radio }}" bind:change="onChangeSelectMeter">
|
||||
<view class="classWrapper">
|
||||
<view class="table">
|
||||
<view class="thead">
|
||||
<view class="th" style="width: 80rpx"> </view>
|
||||
<view class="th" style="width: 200rpx"> 商户名称 </view>
|
||||
<view class="th" style="width: 200rpx"> 电表地址 </view>
|
||||
<view class="th" style="width: 150rpx"> 电表余额 </view>
|
||||
<view class="th" style="width: 130rpx"> 拉合闸 </view>
|
||||
<view class="th" style="width: 130rpx"> 是否失联 </view>
|
||||
</view>
|
||||
<view class="tbody">
|
||||
<view wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item" class="tr">
|
||||
|
||||
<view class="th" style="width: 80rpx">
|
||||
<van-radio name="{{item.id}}"></van-radio>
|
||||
</view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.tenement.shortName }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.address }} </view>
|
||||
<view class="th" style="width: 150rpx"> {{ item.money }} </view>
|
||||
<view class="th" style="width: 130rpx" wx:if="{{item.onPosition}}">
|
||||
<van-tag type="warning">拉闸</van-tag>
|
||||
</view>
|
||||
<view class="th" style="width: 130rpx" wx:else>
|
||||
<van-tag type="primary">合闸</van-tag>
|
||||
</view>
|
||||
<view class="th" style="width: 130rpx" wx:if="{{item.canConnect}}">
|
||||
<van-tag type="primary">在线</van-tag>
|
||||
</view>
|
||||
<view class="th" style="width: 130rpx" wx:else>
|
||||
<van-tag type="danger">失联</van-tag>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="classWrapper" wx:for="{{list}}" wx:key="id">
|
||||
<van-field
|
||||
value="{{item.tenement.name}}"
|
||||
label="商户名称"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="商户电表"
|
||||
label="电表类型"
|
||||
readonly
|
||||
wx:if="{{item.type === 0}}"
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="公摊电表"
|
||||
label="电表类型"
|
||||
readonly
|
||||
wx:if="{{item.type === 2}}"
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="园区电表"
|
||||
label="电表类型"
|
||||
readonly
|
||||
wx:else
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.meterNo}}"
|
||||
label="表号"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.address}}"
|
||||
label="表计地址"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.meterSn}}"
|
||||
label="SN"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.amount}}"
|
||||
label="表字"
|
||||
readonly
|
||||
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.money}}"
|
||||
label="电表余额"
|
||||
readonly
|
||||
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="合闸"
|
||||
label="合闸状态"
|
||||
readonly
|
||||
wx:if="{{item.onPosition === 0}}"
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="拉闸"
|
||||
label="合闸状态"
|
||||
readonly
|
||||
wx:else
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="在线"
|
||||
label="在线状态"
|
||||
readonly
|
||||
wx:if="{{item.canConnect}}"
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="失联"
|
||||
label="在线状态"
|
||||
readonly
|
||||
wx:else
|
||||
title-width="140rpx"
|
||||
/>
|
||||
</view>
|
||||
|
||||
</van-radio-group>
|
||||
<pagination
|
||||
currentIndex="{{page}}"
|
||||
totalPage="{{totalPage}}"
|
||||
bind:pagingChange="onChangePage"
|
||||
/>
|
||||
|
||||
</view>
|
||||
<empty bind:refresh="init" wx:else />
|
||||
<view class="operate">
|
||||
|
@ -88,7 +136,7 @@
|
|||
> 合闸 </van-button>
|
||||
<van-button size="small" bind:click="handleClear" disabled="{{!meter}}" bind:click="handleMeterSwitchOff"> 拉闸 </van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
// pages/workBench/components/tenement/components/bindMeter/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onMeterFocus(e) {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "电表",
|
||||
type: 'meter'
|
||||
})
|
||||
},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-dialog": "@vant/weapp/dialog/index",
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-field": "@vant/weapp/field/index"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
<!--pages/workBench/components/tenement/components/bindMeter/index.wxml-->
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="绑定表计"
|
||||
show="{{ show }}"
|
||||
show-cancel-button
|
||||
bind:confirm="onSubmit"
|
||||
>
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value=""
|
||||
label="商户名称"
|
||||
readonly
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
border="{{false}}"
|
||||
/>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择电表"
|
||||
label="电表"
|
||||
readonly
|
||||
border="{{ false }}"
|
||||
use-button-slot
|
||||
title-width="100rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onMeterFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field
|
||||
value="{{ money }}"
|
||||
label="表字"
|
||||
readonly
|
||||
title-width="132rpx"
|
||||
border="{{false}}"
|
||||
/>
|
||||
</view>
|
||||
|
||||
</van-dialog>
|
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/tenement/components/bindMeter/index.wxss */
|
|
@ -0,0 +1,103 @@
|
|||
// pages/workBench/components/tenement/components/createTenement/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.setData(options)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onBuildingFocus() {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "建筑",
|
||||
type: 'building'
|
||||
})
|
||||
},
|
||||
onFeeTypeFocus() {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "建筑",
|
||||
type: 'building'
|
||||
})
|
||||
},
|
||||
beforeBack() {
|
||||
let pages = getCurrentPages(); // 获取当前页面栈
|
||||
let prevPage = pages[pages.length - 2]; // 获取上一页
|
||||
const { tenement = '', tenementName = '', park = '', parkName = '' } = this.data;
|
||||
// 修改上一页的数据
|
||||
prevPage.setData({
|
||||
needBackShow: true,
|
||||
tenement,
|
||||
tenementName,
|
||||
park,
|
||||
parkName
|
||||
});
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"navigator": "/components/navigator/index"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
<!--pages/workBench/components/tenement/components/createTenement/index.wxml-->
|
||||
<navigator title="开户" canBack="{{true}}" beforeBack="beforeBack" />
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value=""
|
||||
label="商户全称"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="商户简称"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系地址"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系人"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系电话"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择建筑"
|
||||
label="建筑"
|
||||
use-button-slot
|
||||
title-width="120rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onBuildingFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择收费类型"
|
||||
label="收费类型"
|
||||
use-button-slot
|
||||
title-width="120rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onFeeTypeFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
</view>
|
||||
|
||||
<search-select
|
||||
show="{{show}}"
|
||||
title="{{title}}"
|
||||
type="{{type}}"
|
||||
park="{{park}}"
|
||||
bindconfirm="onConfirm"
|
||||
bindcancel="onConcal"
|
||||
/>
|
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/tenement/components/createTenement/index.wxss */
|
|
@ -0,0 +1,57 @@
|
|||
// pages/workBench/components/tenement/components/kaihu/index.js
|
||||
import { alertInfo } from "../../../../../../utils/index"
|
||||
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
park: String,
|
||||
visible: Boolean,
|
||||
},
|
||||
// observers: {
|
||||
// 'visible': function(newVisible) {
|
||||
// this.setData({
|
||||
// show: newVisible
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onBuildingFocus() {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "建筑",
|
||||
type: 'building'
|
||||
})
|
||||
},
|
||||
onFeeTypeFocus() {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "建筑",
|
||||
type: 'building'
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
})
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"navigator": "/components/navigator/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
<!--pages/workBench/components/tenement/components/kaihu/index.wxml-->
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="开户"
|
||||
show="{{ visible }}"
|
||||
show-cancel-button
|
||||
bind:confirm="onSubmit"
|
||||
>
|
||||
<view class="modalContentWrapper">
|
||||
<van-field
|
||||
value=""
|
||||
label="商户全称"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="商户简称"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系地址"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系人"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value=""
|
||||
label="联系电话"
|
||||
type="textarea"
|
||||
autosize="{{true}}"
|
||||
title-width="132rpx"
|
||||
required
|
||||
/>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择建筑"
|
||||
label="建筑"
|
||||
use-button-slot
|
||||
title-width="120rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onBuildingFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field
|
||||
value="{{ meterName }}"
|
||||
placeholder="请选择收费类型"
|
||||
label="收费类型"
|
||||
use-button-slot
|
||||
title-width="120rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onFeeTypeFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
</view>
|
||||
</van-dialog>
|
||||
|
||||
<search-select
|
||||
show="{{show}}"
|
||||
title="{{title}}"
|
||||
type="{{type}}"
|
||||
park="{{park}}"
|
||||
bindconfirm="onConfirm"
|
||||
bindcancel="onConcal"
|
||||
/>
|
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/tenement/components/kaihu/index.wxss */
|
72
pages/workBench/components/tenement/index.js
Normal file
72
pages/workBench/components/tenement/index.js
Normal file
|
@ -0,0 +1,72 @@
|
|||
import { alertInfo } from "../../../../utils/index";
|
||||
|
||||
// pages/workBench/components/tenement/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
lifetimes: {
|
||||
ready() {
|
||||
console.log("this.data", this.data)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
onParkFocus(e) {
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "园区",
|
||||
type: 'park'
|
||||
})
|
||||
},
|
||||
onTenementFocus(e) {
|
||||
const { park } = this.data;
|
||||
if (!park) {
|
||||
alertInfo("请先选择园区")
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
show: true,
|
||||
title: "商户",
|
||||
type: 'tenement'
|
||||
})
|
||||
},
|
||||
async init() {
|
||||
|
||||
},
|
||||
onConfirm(e) {
|
||||
const { type, data } = e.detail;
|
||||
switch(type) {
|
||||
case "park":
|
||||
this.setData({
|
||||
park: data.id,
|
||||
parkName: data.name,
|
||||
show: false,
|
||||
})
|
||||
break;
|
||||
}
|
||||
},
|
||||
startKh() {
|
||||
this.setData({
|
||||
kaihuVisible: true
|
||||
})
|
||||
// const { park = '', parkName = '', tenement = '', tenementName = '' } = this.data;
|
||||
// wx.navigateTo({
|
||||
// url: `/pages/workBench/components/tenement/components/createTenement/index?park=${park}&tenement=${tenement}&parkName=${parkName}&${tenementName}=${tenementName}`,
|
||||
// })
|
||||
}
|
||||
}
|
||||
})
|
10
pages/workBench/components/tenement/index.json
Normal file
10
pages/workBench/components/tenement/index.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-field": "@vant/weapp/field/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"search-select": "/components/searchSelect/index",
|
||||
"van-empty": "@vant/weapp/empty/index",
|
||||
"kaihu": "./components/kaihu/index"
|
||||
}
|
||||
}
|
100
pages/workBench/components/tenement/index.wxml
Normal file
100
pages/workBench/components/tenement/index.wxml
Normal file
|
@ -0,0 +1,100 @@
|
|||
<!--pages/workBench/components/tenement/index.wxml-->
|
||||
<view>
|
||||
<van-field
|
||||
required
|
||||
value="{{ parkName }}"
|
||||
label="园区"
|
||||
placeholder="请选择园区"
|
||||
border="{{ true }}"
|
||||
readonly
|
||||
use-button-slot
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onParkFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
<van-field
|
||||
required
|
||||
value="{{ tenementName }}"
|
||||
label="商户"
|
||||
placeholder="请选择商户"
|
||||
border="{{ true }}"
|
||||
readonly
|
||||
use-button-slot
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onTenementFocus">
|
||||
选择
|
||||
</van-button>
|
||||
</van-field>
|
||||
</view>
|
||||
<view style="display: flex; align-items: center;margin: 20rpx">
|
||||
<view wx:if="{{tenement}}">
|
||||
<van-button style="margin-right: 20rpx;" type="info" size="small" bind:click="startBind"> 绑定电表 </van-button>
|
||||
<van-button style="margin-right: 20rpx;" type="info" size="small" bind:tap="startUpdateInfo"> 修改信息 </van-button>
|
||||
</view>
|
||||
<van-button type="info" size="small" bind:click="startKh" wx:if="{{!!park}}"> 开户 </van-button>
|
||||
</view>
|
||||
<van-empty wx:if="{{!tenement}}" description="选择园区和商户后查看" />
|
||||
<view wx:else>
|
||||
<van-field
|
||||
value="{{item.tenement.name}}"
|
||||
label="商户名称"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
|
||||
<van-field
|
||||
value="{{item.meterNo}}"
|
||||
label="商户简称"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.address}}"
|
||||
label="收费类型"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{item.address}}"
|
||||
label="预留电话"
|
||||
readonly
|
||||
title-width="140rpx"
|
||||
/>
|
||||
<view wx:if="{{list.length}}">
|
||||
<view class="tableWrapper">
|
||||
<view class="table">
|
||||
<view class="thead">
|
||||
<view class="th" style="width: 250rpx"> 电表地址 </view>
|
||||
<view class="th" style="width: 150rpx"> SN </view>
|
||||
<view class="th" style="width: 200rpx"> 操作 </view>
|
||||
</view>
|
||||
<view class="tbody">
|
||||
<van-radio-group value="{{ record }}" bind:change="onChangeSelectRecharge">
|
||||
<block wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item">
|
||||
<view class="tr">
|
||||
<view class="th" style="width: 200rpx"> {{ item.tenement.shortName }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.money }} </view>
|
||||
<view class="th" style="width: 200rpx">
|
||||
<view class="primaryTextBtn" bind:tap="jumpToDetail" data-id="{{item.id}}">
|
||||
解绑
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<search-select
|
||||
show="{{show}}"
|
||||
title="{{title}}"
|
||||
type="{{type}}"
|
||||
park="{{park}}"
|
||||
bindconfirm="onConfirm"
|
||||
bindcancel="onConcal"
|
||||
/>
|
||||
<kaihu park="{{park}}" visible="{{kaihuVisible}}" />
|
1
pages/workBench/components/tenement/index.wxss
Normal file
1
pages/workBench/components/tenement/index.wxss
Normal file
|
@ -0,0 +1 @@
|
|||
/* pages/workBench/components/tenement/index.wxss */
|
|
@ -5,7 +5,7 @@ Page({
|
|||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
active: 0
|
||||
active: 3
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -28,7 +28,7 @@ Page({
|
|||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
console.log("this,data", this.data)
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
"navigator": "/components/navigator/index",
|
||||
"approve": "./components/approve/index",
|
||||
"recharge": "./components/recharge/index",
|
||||
"record": "./components/record/index"
|
||||
"record": "./components/record/index",
|
||||
"tenement": "./components/tenement/index",
|
||||
"account": "./components/account/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
|
@ -1,13 +1,16 @@
|
|||
<!--pages/workBench/index.wxml-->
|
||||
<navigator title="工作台" canBack="true" />
|
||||
<van-tabs active="{{ active }}" bind:change="onTabChange">
|
||||
<van-tab title="充值">
|
||||
<recharge />
|
||||
</van-tab>
|
||||
<van-tab title="查询">
|
||||
<van-tab title="电表信息" >
|
||||
<record />
|
||||
</van-tab>
|
||||
<van-tab title="审核">
|
||||
<approve />
|
||||
<van-tab title="商户信息" >
|
||||
<tenement />
|
||||
</van-tab>
|
||||
<van-tab title="充值审核">
|
||||
<recharge />
|
||||
</van-tab>
|
||||
<van-tab title="C端账号" >
|
||||
<account />
|
||||
</van-tab>
|
||||
</van-tabs>
|
|
@ -10,4 +10,9 @@ export const getParkList = async function({ keyword = "" }) {
|
|||
// 获取未登录的园区列表
|
||||
export const getLoginParkList = async function({ keyword }) {
|
||||
return await GET(`/wx/getLoginParkList?keyword=${replaceSpecialIcon(keyword)}`);
|
||||
}
|
||||
|
||||
// 获取建筑列表
|
||||
export const getParkBuildingList = async function(pid) {
|
||||
return await GET(`/vx/park/${pid}/building`);
|
||||
}
|
|
@ -95,3 +95,4 @@ export const redeemCoupons = async function({ id, type }) {
|
|||
export const getCurrentCoupons = async function() {
|
||||
return await GET(`/wx/getCurrentCoupons`);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ export const getOwnTenementList = async function() {
|
|||
return await GET(`/wx/getOwnTenements`);
|
||||
}
|
||||
|
||||
// 获取商户详情
|
||||
// 获取商户详情(简易)
|
||||
export const getTenementDetail = async function(id) {
|
||||
return await GET(`/wx/getTenementDetail/${id}`);
|
||||
}
|
||||
|
@ -20,4 +20,21 @@ export const getTenementDetail = async function(id) {
|
|||
// 获取商户是否限电
|
||||
export const getTenementExceptionalCase = async function(pid, tid) {
|
||||
return await GET(`/wx/exceptionalCase/${pid}/${tid}`);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取商户详情(b端)
|
||||
export const getTenementInfoDetail = async function(id) {
|
||||
return await GET(`/wx/getTenementDetail/${id}`);
|
||||
}
|
||||
// 创建商户
|
||||
export const createTenement = async function(pid, data) {
|
||||
return await POST(`/vx/tenement/${pid}`, data)
|
||||
}
|
||||
// 修改商户
|
||||
export const updateTenement = async function(pid, data) {
|
||||
return await POST(`/vx/tenement/${pid}`, data)
|
||||
}
|
||||
// 解绑电表
|
||||
export const unbindMeter = async function(pid, tid, code) {
|
||||
return await POST(`/tenement/${pid}/${tid}/binding/${code}/unbind`)
|
||||
}
|
||||
|
|
|
@ -8,3 +8,5 @@ export const payWays = ["现金", "银行卡", "支付宝", "微信", "云闪
|
|||
export const getRechargeOperateWay = (num) => {
|
||||
return payWays[num];
|
||||
}
|
||||
|
||||
export const feeType = ['华昌宝能收费', "物业代收1", "物业代收2", "物业代收线损"]
|
|
@ -45,8 +45,8 @@ export function getConfigByEnv() {
|
|||
switch (envVersion) {
|
||||
// 开发版
|
||||
case 'develop':
|
||||
// api = "http://localhost:8000"
|
||||
api = "https://zgd.hbhcbn.com/api3"
|
||||
api = "http://localhost:8000"
|
||||
// api = "https://zgd.hbhcbn.com/api3"
|
||||
// api = "https://zgd.hbhcbn.com/api3"
|
||||
// api = "https://zgd.hbhcbn.com/wxApi"
|
||||
// api = "http://127.0.0.1:4523/m1/4143821-0-default"
|
||||
|
|
|
@ -9,6 +9,9 @@ export const getDot = async () => {
|
|||
return;
|
||||
}
|
||||
const { code, message, data } = await getUnReadApproveNumber();
|
||||
if (code !== OK) {
|
||||
return;
|
||||
}
|
||||
if (data > 0) {
|
||||
wx.showTabBarRedDot({
|
||||
index: 2,
|
||||
|
|
Loading…
Reference in New Issue
Block a user