预留手机号新加解释,优惠券新增备注,修改部分样式,优化table组件可以传属性

This commit is contained in:
2025-01-21 14:32:41 +08:00
parent 24f2ec9ead
commit 103c10347c
13 changed files with 99 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
import { userValidate } from "../../service/user";
import { alertInfo, alertSuccess, loadingFunc, wxLogin } from "../../utils/index";
import request from "../../utils/request"
import Dialog from '@vant/weapp/dialog/dialog';
const { OK } = request;
Page({
@@ -112,6 +113,14 @@ Page({
type: 'tenement'
})
},
showTooltip() {
Dialog.alert({
title: '提示',
message: '该手机号为开户时预留的手机号,一般为接收电费欠费短信的管理员手机号。',
}).then(() => {
// on close
});
},
scan() {
wx.scanCode({
scanType: "qrCode",

View File

@@ -8,7 +8,8 @@
"van-icon": "@vant/weapp/icon/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"navigator": "/components/navigator/index"
"navigator": "/components/navigator/index",
"van-dialog": "@vant/weapp/dialog/index"
},
"navigationStyle": "custom"
}

View File

@@ -46,11 +46,19 @@
<van-field
required
value="{{ phone }}"
label="预留手机号"
placeholder="请输入预留手机号"
border="{{ true }}"
bind:change="onChangePhone"
/>
>
<view slot="label">
手机号
<van-icon
name="question-o"
style="margin-left: 8rpx;font-size: 36rpx;"
bind:tap="showTooltip"
/>
</view>
</van-field>
<van-field
required
value="{{ name }}"
@@ -73,7 +81,7 @@
</view>
</van-tab>
</van-tabs>
<van-dialog id="van-dialog" />
<search-select
show="{{show}}"
title="{{title}}"

View File

@@ -1,4 +1,13 @@
<!--pages/meterList/index.wxml-->
<navigator title="电表列表" canBack="{{true}}" />
<view style="margin: 20rpx"> 当前时间:{{ time }} </view>
<table header="{{header}}" list="{{list}}" border="{{true}}" />
<view class="time">{{ time }} </view>
<view style="margin: 0 24rpx;">
<table
header="{{header}}"
list="{{list}}"
border="{{true}}"
topStyle="text-align: center"
bodyStyle="text-align: center"
topColor="rgb(242,248,246)"
/>
</view>

View File

@@ -1 +1,10 @@
/* pages/meterList/index.wxss */
/* pages/meterList/index.wxss */
.time {
margin: 20rpx 24rpx;
font-size: 28rpx;
color: rgb(97, 93, 93);
}
page {
background-color: var(--transparent-green);
}