65 lines
1.3 KiB
Vue
65 lines
1.3 KiB
Vue
<template>
|
|
<view class="edit-wrapper">
|
|
<view class="edit-input flex-center">
|
|
<view class="reduce flex-center">-</view>
|
|
<uni-easyinput :inputBorder="false" v-model="params.info" :clearable="false" type="number" :styles="styles" />
|
|
<view class="add flex-center">+</view>
|
|
</view>
|
|
|
|
<view class="confirm-button flex-center" hover-class="touch-button">确认修改</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { reactive } from 'vue'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
const styles = reactive({
|
|
backgroundColor: 'transparent',
|
|
color: '#000',
|
|
fontSize: '32rpx',
|
|
})
|
|
const params = reactive({
|
|
info: 1,
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.edit-input {
|
|
padding: 0 10rpx;
|
|
margin: 0 35rpx;
|
|
margin-top: 150rpx;
|
|
height: 120rpx;
|
|
border-radius: 32rpx;
|
|
background-color: #f7f7f7;
|
|
}
|
|
.tips {
|
|
margin-top: 30rpx;
|
|
text-align: center;
|
|
font-size: 27rpx;
|
|
color: #808080;
|
|
}
|
|
.confirm-button {
|
|
margin: 0 auto;
|
|
margin-top: 90rpx;
|
|
width: 400rpx;
|
|
height: 110rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 33rpx;
|
|
font-weight: 500;
|
|
color: #fff;
|
|
background: $jeepay-bg-primary;
|
|
}
|
|
.add,
|
|
.reduce {
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
font-size: 50rpx;
|
|
border-radius: 20rpx;
|
|
background-color: #fff;
|
|
}
|
|
.reduce {
|
|
opacity: 0.5;
|
|
}
|
|
</style>
|