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

优化日常记账权限弹窗

parent 05bb48c5
Pipeline #7996 canceled with stages
<template> <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="[type, ani, animation ? 'ani' : '']" class="uni-custom uni-popup__wrapper" @click="close(true)">
<view class="uni-popup__wrapper-box"> <view class="uni-popup__wrapper-box">
<view class="title">{{authList[permissionID].title}}</view> <view class="title">{{authList[permissionID].title}}</view>
......
<template> <template>
<u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100"> <u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom" :duration="100">
<view class="content"> <view class="outside">
<view class="head"> <view class="content">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)"> <view class="head">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
<u-icon name="map" class="content-head-location-icon"></u-icon> <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 class="content-head-location-address ellipsis content-head-location-noaddress">{{ form.address || '选择地址' }}</view>
</view> --> </view> -->
<view class="head-address-value-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-view" hover-class="u-hover-class"
<view class="head-location-icon-view"> @click="$u.throttle(getAddress, 500)">
<image :src="dingweidizhiImage"></image> <view class="head-location-icon-view">
<image :src="dingweidizhiImage"></image>
</view>
</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>
<view class="head-address-view" v-if="form.address||platform==='4'"> <view class="head-close" @click="close"><u-icon name="close"></u-icon></view>
<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>
<view class="head-close" @click="close"><u-icon name="close"></u-icon></view> <view class="billing">
</view> <view class="billing-type">
<view class="billing"> <checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions"
<view class="billing-type"> @handleClick="billingTypeChange"></checkbox-groups>
<checkbox-groups :checked="form.type" :custom-style="customStyle" :options="billingTypeOptions" <view class="billing-type-date" @click="openCalendarPopup">
@handleClick="billingTypeChange"></checkbox-groups> <view class="billing-type-date-text">{{ resetHappenTime(form.happenTime) }}</view>
<view class="billing-type-date" @click="openCalendarPopup"> <u-icon name="arrow-down-fill" class="billing-type-date-icon"></u-icon>
<view class="billing-type-date-text">{{ resetHappenTime(form.happenTime) }}</view> </view>
<u-icon name="arrow-down-fill" class="billing-type-date-icon"></u-icon>
</view> </view>
</view> <view class="billing-money ellipsis">
<view class="billing-money ellipsis"> <text>¥</text>
<text>¥</text> <text>{{ form.amount || '0.00' }}</text>
<text>{{ form.amount || '0.00' }}</text> </view>
</view> <view class="billing-category">
<view class="billing-category"> <billing-category :list="billingCategoryList" :checked="form.classificationId"
<billing-category :list="billingCategoryList" :checked="form.classificationId" @handleClick="billingCategoryChange"></billing-category>
@handleClick="billingCategoryChange"></billing-category> </view>
</view> <view class="billing-remark">
<view class="billing-remark"> <SingleImages :isNativeHead="false" :max-count="1" :uploading.sync="uploading" :width="72"
<!-- <view class="billing-remark-upload" @click="beforeChooseImage"> --> :height="72" :list="fileList" @on-list-change="handlePicturesChange">
<!-- <image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image> <view class="billing-remark-upload" slot="addBtn">
<image :src="takePhotoIcon" mode="" v-else></image> --> <image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image>
<SingleImages :max-count="1" :uploading.sync="uploading" :width="72" :height="72" :list="fileList" <image :src="takePhotoIcon" mode="" v-else></image>
@on-list-change="handlePicturesChange"> </view>
<view class="billing-remark-upload" slot="addBtn"> </SingleImages>
<image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image> <view class="billing-remark-input">
<image :src="takePhotoIcon" mode="" v-else></image> <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>
</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> </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>
<!-- 计算器 -->
<!-- <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>
</u-popup> </u-popup>
</template> </template>
...@@ -440,7 +440,21 @@ ...@@ -440,7 +440,21 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.outside {
background: rgba(0, 0, 0, 0.6);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.content { .content {
background: #ffffff;
border-radius: 24rpx 24rpx 0 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
.head { .head {
height: 108upx; height: 108upx;
display: flex; 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