This commit is contained in:
2024-09-10 10:49:08 +08:00
parent b5fd06b800
commit dd4f5938da
6391 changed files with 722800 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
<template>
<view class="edit-wrapper">
<view class="edit-input" style="padding: 40rpx">
<view class="edit-title">
<view>固定金额</view>
<JSwitch />
</view>
<view class="edit-tips">启用后可自定义码牌固定收款金额</view>
</view>
<view class="edit-input flex-center" style="margin-top: 30rpx">
<view class="input-title">自定义金额</view>
<uni-easyinput
:inputBorder="false"
v-model="params.info"
type="digit"
:clearable="false"
placeholderStyle=" font-size: 30rpx;color:#ADADAD"
placeholder="请输入自定义金额"
:styles="styles"
/>
<view class="input-title unit">()</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: '',
})
</script>
<style lang="scss" scoped>
.edit-input {
padding: 0 20rpx;
margin: 0 35rpx;
margin-top: 150rpx;
min-height: 120rpx;
border-radius: 32rpx;
background-color: #f7f7f7;
}
.input-title {
margin-left: 40rpx;
font-size: 30rpx;
color: #4d4d4d;
}
.unit {
margin: 0 40rpx 0 0;
}
.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;
}
.edit-title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
color: #4d4d4d;
}
.edit-tips {
margin-top: 12rpx;
font-size: 25rpx;
color: #808080;
}
</style>

View File

@@ -0,0 +1,74 @@
<template>
<view class="edit-wrapper">
<view class="edit-input flex-center">
<uni-easyinput :inputBorder="false" clearable v-model="params.info" type="text" :styles="styles" />
</view>
<view class="tips" v-if="params.tips">修改设备编号将有可能导致已报备渠道无法使用</view>
<view class="confirm-button flex-center" hover-class="touch-button" @tap="updateState">确认修改</view>
</view>
</template>
<script setup>
import { reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { reqLoad, API_URL_MCH_APP_LIST, API_URL_SYS_DEVICE_LIST } from '@/http/apiManager.js'
import infoBox from '@/commons/utils/infoBox.js'
import emit from '@/commons/utils/emit.js'
import go from '@/commons/utils/go.js'
onLoad((options) => {
console.log('options', options)
uni.setNavigationBarTitle({
title: '修改' + options.navTitle,
})
Object.assign(params, options)
})
const styles = reactive({
backgroundColor: 'transparent',
color: '#000',
fontSize: '32rpx',
})
const params = reactive({})
const apiObf = {
app: API_URL_MCH_APP_LIST,
horn: API_URL_SYS_DEVICE_LIST,
}
function updateState() {
const data = {}
data[params.field] = params.info
if (!data[params.field]) return infoBox.showToast('修改内容不能为空')
return reqLoad.updateById(apiObf[params.api], params.id, data).then(() => {
emit.pageEmit(emit.ENAME_REF_TABLE_MCH_APP) // 修改列表页面。
infoBox.showSuccessToast('修改成功')
go.back(1, emit.ENAME_REF_TABLE_MCH_APP_DETAILS)
})
}
</script>
<style lang="scss" scoped>
.edit-input {
padding: 0 20rpx;
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;
}
</style>

View File

@@ -0,0 +1,61 @@
<template>
<view class="gps-wrapper">
<view class="title">布放位置</view>
<view>江苏省苏州市姑苏区相门后庄1-13 </view>
<image src="/pageDevice/static/devIconImg/icon-gps.svg" mode="scaleToFill" />
</view>
<view class="gps-wrapper edit-wrapper">
<view class="title">省市区</view>
<view>江苏省/苏州市/姑苏区 </view>
<image src="/pageDevice/static/devIconImg/icon-arrow-sex.svg" mode="scaleToFill" />
</view>
<view class="gps-wrapper edit-wrapper">
<view class="title">经纬度</view>
<view>116.78946/38.307682 </view>
</view>
<view class="confirm-button flex-center" hover-class="touch-button">确认修改</view>
</template>
<script setup></script>
<style lang="scss" scoped>
.gps-wrapper {
display: flex;
margin: 30rpx;
padding: 40rpx 0;
padding-left: 40rpx;
background-color: #f7f7f7;
font-size: 30rpx;
border-radius: 32rpx;
.title {
width: 198rpx;
white-space: nowrap;
color: #4c4c4c;
}
image {
flex-shrink: 0;
width: 108rpx;
height: 40rpx;
}
}
.edit-wrapper {
align-items: center;
padding: 0 0 0 40rpx;
height: 120rpx;
image {
width: 120rpx;
height: 120rpx;
}
}
.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;
}
</style>

View File

@@ -0,0 +1,64 @@
<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>