开始做充值,,调整了首页

This commit is contained in:
2024-04-02 17:32:28 +08:00
parent 3284bea475
commit db6d253898
44 changed files with 676 additions and 141 deletions

View File

@@ -93,6 +93,20 @@ Page({
})
})
},
scan() {
wx.scanCode({
scanType: "qrCode",
success: ({ path }) => {
wx.navigateTo({
url: '/' + path,
})
},
fail: err => {
console.log('scan code err', err)
alertInfo("扫码失败,请稍后重试")
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@@ -4,7 +4,9 @@
"select": "/components/select/index",
"van-button": "@vant/weapp/button/index",
"van-field": "@vant/weapp/field/index",
"van-icon": "@vant/weapp/icon/index"
"van-icon": "@vant/weapp/icon/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
},
"navigationBarTitleText": "手动绑定"
"navigationBarTitleText": "绑定商户"
}

View File

@@ -1,33 +1,53 @@
<!--pages/handleLogin/index.wxml-->
<topbar />
<view>
<select label="园区" type="0" bind:choose="onChoosePark" park="{{park}}" parkName="{{parkName}}" required="{{true}}" />
<select label="公司名称" type="1" bind:choose="onChooseTenement" park="{{park}}" tenement="{{tenement}}" tenementName="{{tenementName}}" required="{{true}}" />
<van-field
required
value="{{ phone }}"
label="联系人手机号"
placeholder="请输入联系人手机号"
border="{{ true }}"
bind:change="onChangePhone"
/>
<van-field
required
value="{{ name }}"
label="你的昵称"
placeholder="请输入你的昵称"
border="{{ true }}"
bind:change="onChangeName"
/>
<view class="submit">
<van-button type="info" block bind:click="handleSubmit"> 提交 </van-button>
</view>
<view class="way">
<!-- <topbar /> -->
<van-tabs>
<van-tab title="扫码绑定">
<view class="codeContent">
<view class="text">
您可以联系贵司在系统中预留的手机号联系人
</view>
<view class="text">
登录本系统-我的-二维码
</view>
<view class="text">
使用微信扫一扫,直接绑定
</view>
<view class="scan">
<van-button type="info" block bind:click="scan"> 去扫码 </van-button>
</view>
</view>
</van-tab>
<van-tab title="手动绑定">
<view>
不知道预留的手机号?可联系后台管理员查询!
<select label="园区" type="0" bind:choose="onChoosePark" park="{{park}}" parkName="{{parkName}}" required="{{true}}" />
<select label="公司名称" type="1" bind:choose="onChooseTenement" park="{{park}}" tenement="{{tenement}}" tenementName="{{tenementName}}" required="{{true}}" />
<van-field
required
value="{{ phone }}"
label="联系人手机号"
placeholder="请输入联系人手机号"
border="{{ true }}"
bind:change="onChangePhone"
/>
<van-field
required
value="{{ name }}"
label="你的昵称"
placeholder="请输入你的昵称"
border="{{ true }}"
bind:change="onChangeName"
/>
<view class="submit">
<van-button type="info" block bind:click="handleSubmit"> 提交 </van-button>
</view>
<view class="way">
<view>
不知道预留的手机号?可联系后台管理员查询!
</view>
<view class="phone" bind:tap="callPhone" data-phone="13266911877">
<van-icon name="phone-o" class="phoneIcon" /> 13266911877
</view>
</view>
</view>
<view class="phone" bind:tap="callPhone" data-phone="13266911877">
<van-icon name="phone-o" class="phoneIcon" /> 13266911877
</view>
</view>
</view>
</van-tab>
</van-tabs>

View File

@@ -18,4 +18,18 @@
margin-top: 30rpx;
color: var(--middle-green);
display: inline-block;
}
.codeContent {
margin-top: 10vh;
margin-left: 36rpx;
margin-right: 36rpx;
}
.codeContent .text {
margin: 30rpx;
}
.scan {
margin-top: 8vh;
}