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="outside">
<view class="content"> <view class="content">
<view class="head"> <view class="head">
<!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)"> <!-- <view class="content-head-location" @click="$u.throttle(getAddress, 500)">
...@@ -7,7 +8,8 @@ ...@@ -7,7 +8,8 @@
<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"
@click="$u.throttle(getAddress, 500)">
<view class="head-location-icon-view"> <view class="head-location-icon-view">
<image :src="dingweidizhiImage"></image> <image :src="dingweidizhiImage"></image>
</view> </view>
...@@ -39,17 +41,13 @@ ...@@ -39,17 +41,13 @@
@handleClick="billingCategoryChange"></billing-category> @handleClick="billingCategoryChange"></billing-category>
</view> </view>
<view class="billing-remark"> <view class="billing-remark">
<!-- <view class="billing-remark-upload" @click="beforeChooseImage"> --> <SingleImages :isNativeHead="false" :max-count="1" :uploading.sync="uploading" :width="72"
<!-- <image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image> :height="72" :list="fileList" @on-list-change="handlePicturesChange">
<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"> <view class="billing-remark-upload" slot="addBtn">
<image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image> <image :src="takePhotoSuccessIcon" mode="" v-if="form.attach"></image>
<image :src="takePhotoIcon" mode="" v-else></image> <image :src="takePhotoIcon" mode="" v-else></image>
</view> </view>
</SingleImages> </SingleImages>
<!-- </view> -->
<view class="billing-remark-input"> <view class="billing-remark-input">
<u-input type="text" v-model="form.remark" placeholder-style="color: #02A074;" <u-input type="text" v-model="form.remark" placeholder-style="color: #02A074;"
placeholder="点击填写备注" :clearable="false" class="form-input" maxlength="200" placeholder="点击填写备注" :clearable="false" class="form-input" maxlength="200"
...@@ -60,11 +58,13 @@ ...@@ -60,11 +58,13 @@
<!-- 计算器 --> <!-- 计算器 -->
<!-- <view class="billing-calculator" :style="{ 'padding-bottom': Height + 'px' }"> --> <!-- <view class="billing-calculator" :style="{ 'padding-bottom': Height + 'px' }"> -->
<view class="billing-calculator"> <view class="billing-calculator">
<ab-calculator ref="ab-calculator" @change="calculatorChange" @sure="calculatorSure"></ab-calculator> <ab-calculator ref="ab-calculator" @change="calculatorChange"
@sure="calculatorSure"></ab-calculator>
</view> </view>
<!-- 日历 --> <!-- 日历 -->
<calendar-popup :date="form.happenTime" ref="calendar-popup" @confirm="calendarChange"></calendar-popup> <calendar-popup :date="form.happenTime" ref="calendar-popup" @confirm="calendarChange"></calendar-popup>
</view> </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