Commit a20dabf9 authored by 刘文虎's avatar 刘文虎

优化日常记账权限弹窗

parent 05bb48c5
Pipeline #7996 canceled with stages
<template>
<view v-if="showPopup" class="uni-popup" :style="{top:isNativeHead?'':StatusBar}">
<view v-if="showPopup" class="uni-popup" :style="{top:isNativeHead?'0':StatusBar}">
<view :class="[type, ani, animation ? 'ani' : '']" class="uni-custom uni-popup__wrapper" @click="close(true)">
<view class="uni-popup__wrapper-box">
<view class="title">{{authList[permissionID].title}}</view>
......
<template>
<u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100">
<view class="content">
<view class="head">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
<view class="outside">
<view class="content">
<view class="head">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
<u-icon name="map" class="content-head-location-icon"></u-icon>
<view class="content-head-location-address ellipsis content-head-location-noaddress">{{ form.address || '选择地址' }}</view>
</view> -->
<view class="head-address-value-view">
<view class="head-location-view" hover-class="u-hover-class" @click="$u.throttle(getAddress, 500)">
<view class="head-location-icon-view">
<image :src="dingweidizhiImage"></image>
<view class="head-address-value-view">
<view class="head-location-view" hover-class="u-hover-class"
@click="$u.throttle(getAddress, 500)">
<view class="head-location-icon-view">
<image :src="dingweidizhiImage"></image>
</view>
</view>
<view class="head-address-view" v-if="form.address||platform==='4'">
<u-input type="text" adjust-position :height="76" style="width: 100%" :clearable="false"
v-model="form.address" :placeholder="platform==='4'?'输入地址':'选择地址'" />
</view>
<view class="head-label-view" hover-class="u-hover-class" @click="$u.throttle(getAddress, 500)"
v-else>{{platform==='4'?'输入地址':'选择地址'}}</view>
</view>
<view class="head-address-view" v-if="form.address||platform==='4'">
<u-input type="text" adjust-position :height="76" style="width: 100%" :clearable="false"
v-model="form.address" :placeholder="platform==='4'?'输入地址':'选择地址'" />
</view>
<view class="head-label-view" hover-class="u-hover-class" @click="$u.throttle(getAddress, 500)"
v-else>{{platform==='4'?'输入地址':'选择地址'}}</view>
<view class="head-close" @click="close"><u-icon name="close"></u-icon></view>
</view>
<view class="head-close" @click="close"><u-icon name="close"></u-icon></view>
</view>
<view class="billing">
<view class="billing-type">
<checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions"
@handleClick="billingTypeChange"></checkbox-groups>
<view class="billing-type-date" @click="openCalendarPopup">
<view class="billing-type-date-text">{{ resetHappenTime(form.happenTime) }}</view>
<u-icon name="arrow-down-fill" class="billing-type-date-icon"></u-icon>
<view class="billing">
<view class="billing-type">
<checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions"
@handleClick="billingTypeChange"></checkbox-groups>
<view class="billing-type-date" @click="openCalendarPopup">
<view class="billing-type-date-text">{{ resetHappenTime(form.happenTime) }}</view>
<u-icon name="arrow-down-fill" class="billing-type-date-icon"></u-icon>
</view>
</view>
</view>
<view class="billing-money ellipsis">
<text>¥</text>
<text>{{ form.amount || '0.00' }}</text>
</view>
<view class="billing-category">
<billing-category :list="billingCategoryList" :checked="form.classificationId"
@handleClick="billingCategoryChange"></billing-category>
</view>
<view class="billing-remark">
<!-- <view class="billing-remark-upload" @click="beforeChooseImage"> -->
<!-- <image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image>
<image :src="takePhotoIcon" mode="" v-else></image> -->
<SingleImages :max-count="1" :uploading.sync="uploading" :width="72" :height="72" :list="fileList"
@on-list-change="handlePicturesChange">
<view class="billing-remark-upload" slot="addBtn">
<image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image>
<image :src="takePhotoIcon" mode="" v-else></image>
<view class="billing-money ellipsis">
<text>¥</text>
<text>{{ form.amount || '0.00' }}</text>
</view>
<view class="billing-category">
<billing-category :list="billingCategoryList" :checked="form.classificationId"
@handleClick="billingCategoryChange"></billing-category>
</view>
<view class="billing-remark">
<SingleImages :isNativeHead="false" :max-count="1" :uploading.sync="uploading" :width="72"
:height="72" :list="fileList" @on-list-change="handlePicturesChange">
<view class="billing-remark-upload" slot="addBtn">
<image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image>
<image :src="takePhotoIcon" mode="" v-else></image>
</view>
</SingleImages>
<view class="billing-remark-input">
<u-input type="text" v-model="form.remark" placeholder-style="color: #02A074;"
placeholder="点击填写备注" :clearable="false" class="form-input" maxlength="200"
@blur="leaveInput" @focus="getHeight" cursor-spacing='50' :adjust-position="true" />
</view>
</SingleImages>
<!-- </view> -->
<view class="billing-remark-input">
<u-input type="text" v-model="form.remark" placeholder-style="color: #02A074;"
placeholder="点击填写备注" :clearable="false" class="form-input" maxlength="200"
@blur="leaveInput" @focus="getHeight" cursor-spacing='50' :adjust-position="true" />
</view>
</view>
<!-- 计算器 -->
<!-- <view class="billing-calculator" :style="{ 'padding-bottom': Height + 'px' }"> -->
<view class="billing-calculator">
<ab-calculator ref="ab-calculator" @change="calculatorChange"
@sure="calculatorSure"></ab-calculator>
</view>
<!-- 日历 -->
<calendar-popup :date="form.happenTime" ref="calendar-popup" @confirm="calendarChange"></calendar-popup>
</view>
<!-- 计算器 -->
<!-- <view class="billing-calculator" :style="{ 'padding-bottom': Height + 'px' }"> -->
<view class="billing-calculator">
<ab-calculator ref="ab-calculator" @change="calculatorChange" @sure="calculatorSure"></ab-calculator>
</view>
<!-- 日历 -->
<calendar-popup :date="form.happenTime" ref="calendar-popup" @confirm="calendarChange"></calendar-popup>
</view>
</u-popup>
</template>
......@@ -440,7 +440,21 @@
</script>
<style lang="scss" scoped>
.outside {
background: rgba(0, 0, 0, 0.6);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.content {
background: #ffffff;
border-radius: 24rpx 24rpx 0 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
.head {
height: 108upx;
display: flex;
......
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