修改手动绑定不能返回的问题,修改发票类型字段,修改首页样式
This commit is contained in:
parent
31870c0222
commit
9ca94479fa
|
@ -14,14 +14,18 @@ Page({
|
|||
parkName: "",
|
||||
park: "",
|
||||
tenementName: "",
|
||||
tenement: ""
|
||||
tenement: "",
|
||||
canBack: true,
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
const { canBack } = options
|
||||
if (canBack === 'false') {
|
||||
this.setData({ canBack: false })
|
||||
}
|
||||
},
|
||||
onChangeName(e) {
|
||||
this.setData({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!--pages/handleLogin/index.wxml-->
|
||||
<!-- <topbar /> -->
|
||||
<navigator title="绑定商户" canBack="{{true}}" />
|
||||
<navigator title="绑定商户" canBack="{{canBack}}" />
|
||||
<van-tabs>
|
||||
<van-tab title="扫码绑定">
|
||||
<view class="codeContent">
|
||||
|
|
|
@ -294,7 +294,7 @@ Page({
|
|||
if (!data?.length) {
|
||||
alertInfo("尚无信息")
|
||||
wx.redirectTo({
|
||||
url: '/pages/handleLogin/index',
|
||||
url: '/pages/handleLogin/index?back=false',
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<view class="logined" wx:else>
|
||||
<avatar text="{{ user.nickName }}" />
|
||||
<view>
|
||||
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" custom-style="font-size: 32rpx;" bind:click="chooseTenement">{{tenement.name}} <van-icon name="arrow-down" style="margin-left: 16rpx;" /></van-button>
|
||||
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" custom-style="font-size: 32rpx; max-width:300rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" bind:click="chooseTenement">{{tenement.name}} <van-icon name="arrow-down" style="margin-left: 16rpx;" /></van-button>
|
||||
<view class="welcome"> 欢迎使用华昌宝能用电管理系统! </view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
|
||||
.park {
|
||||
margin-left: 20rpx;
|
||||
max-width: 200rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.parkContent {
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
title-width="160rpx"
|
||||
/>
|
||||
<van-field
|
||||
value="{{detail.invoice.type === 0 ? '普通电子发票' : '增值税专用电子发票'}}"
|
||||
value="{{detail.invoice.type === 0 ? '普通发票' : '增值税专用发票'}}"
|
||||
label="发票类型 :"
|
||||
readonly
|
||||
autosize="{{true}}"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
发票内容: {{item.invoice.content}}({{item.money}}元)
|
||||
</view>
|
||||
<view class="invoiceType">
|
||||
发票类型:{{ item.invoice.type === 0 ? '普通电子发票' : '增值税专用电子发票' }}
|
||||
发票类型:{{ item.invoice.type === 0 ? '普通发票' : '增值税专用发票' }}
|
||||
</view>
|
||||
<view class="time">
|
||||
{{item.finishTime}}
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
border="{{ false }}"
|
||||
>
|
||||
<view slot="input" style="margin-top: -10rpx;">
|
||||
<view wx:if="{{detail.type === 0}}"> 普通电子发票 </view>
|
||||
<view wx:elif="{{detail.type === 1}}"> 增值税专用电子发票 </view>
|
||||
<view wx:if="{{detail.type === 0}}"> 普通发票 </view>
|
||||
<view wx:elif="{{detail.type === 1}}"> 增值税专用发票 </view>
|
||||
<view wx:else>-</view>
|
||||
</view>
|
||||
</van-field>
|
||||
|
@ -141,8 +141,8 @@
|
|||
>
|
||||
<view slot="input" style="margin-top: 16rpx;">
|
||||
<van-radio-group direction="horizontal" value="{{formData.type}}" bind:change="onChangeType">
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 30rpx;margin-bottom: 20rpx;">普通电子</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 30rpx;">增值税专用电子</van-radio>
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 30rpx;margin-bottom: 20rpx;">普通发票</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 30rpx;">增值税专用发票</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
</van-field>
|
||||
|
|
|
@ -65,7 +65,6 @@ Component({
|
|||
selectMoney += list[i]?.money;
|
||||
}
|
||||
}
|
||||
console.log('newSelectList', newSelectList)
|
||||
this.setData({
|
||||
// chooseList: newList,
|
||||
selectList: newSelectList,
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<view>
|
||||
<card title="发票类型">
|
||||
<van-radio-group disabled="{{true}}" direction="horizontal" slot="content" value="{{detail.type}}">
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 32rpx;margin-bottom: 20rpx;">普通电子发票</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 32rpx;">增值税专用电子发票</van-radio>
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 32rpx;margin-bottom: 20rpx;">普通发票</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 32rpx;">增值税专用发票</van-radio>
|
||||
</van-radio-group>
|
||||
</card>
|
||||
</view>
|
||||
|
@ -120,7 +120,7 @@
|
|||
border="{{false}}"
|
||||
/>
|
||||
<van-field
|
||||
value="{{ detail.type === 0 ? '普通电子发票' : '增值税专用电子发票' }}"
|
||||
value="{{ detail.type === 0 ? '普通发票' : '增值税专用发票' }}"
|
||||
label="发票类型"
|
||||
readonly
|
||||
title-width="132rpx"
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
>
|
||||
<view slot="input" style="margin-top: 16rpx;" wx:if="{{editType === 'edit'}}">
|
||||
<van-radio-group direction="horizontal" value="{{formData.type}}" bind:change="onChangeType">
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 30rpx;margin-bottom: 20rpx;">普通电子</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 30rpx;">增值税专用电子</van-radio>
|
||||
<van-radio name="{{0}}" icon-size="30rpx" style="font-size: 30rpx;margin-bottom: 20rpx;">普通发票</van-radio>
|
||||
<van-radio name="{{1}}" icon-size="30rpx" style="font-size: 30rpx;">增值税专用发票</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
|
||||
<view wx:else slot="input" style="margin-top: -10rpx;">
|
||||
<view wx:if="{{detail.type === 0}}"> 普通电子发票 </view>
|
||||
<view wx:elif="{{detail.type === 1}}"> 增值税专用电子发票 </view>
|
||||
<view wx:if="{{detail.type === 0}}"> 普通发票 </view>
|
||||
<view wx:elif="{{detail.type === 1}}"> 增值税专用发票 </view>
|
||||
<view wx:else>-</view>
|
||||
</view>
|
||||
</van-field>
|
||||
|
|
Loading…
Reference in New Issue
Block a user