代码更新

This commit is contained in:
GaoHao
2025-02-26 19:46:20 +08:00
parent 7519ffced3
commit b4a0393d2d
413 changed files with 7483 additions and 60762 deletions

View File

@@ -29,14 +29,14 @@
</view>
<view class="boxconstantbox"
style="margin-top:24rpx; padding:32rpx 24rpx; border-radius: 0 0 18px 18px;">
<view class="boxconstantbox_one">
<view class="boxconstantbox_one" style="margin-bottom: 15rpx;">
充值说明
</view>
<view>
<up-textarea v-model="form.rechargeDesc" placeholder="请输入内容"></up-textarea>
</view>
</view>
<view class="save" @click="editlist">
<view class="save" @click="editFreeDing">
保存
</view>
@@ -44,41 +44,37 @@
</template>
<script setup>
import {
onLoad,
onShow,
} from '@dcloudio/uni-app';
import {
computed,
reactive,
ref,
watch
} from 'vue';
import {
get,
edit
} from '@/http/yskApi/bwc.js'
import { onShow, } from '@dcloudio/uni-app';
import { reactive, ref, watch } from 'vue';
import { getFreeDing, updateFreeDing } from '@/api/freeDing.js'
const form = reactive({
id: '',
enable: '',
rechargeTimes: '',
rechargeThreshold: '',
enable: false,
withCoupon: '',
withPoints: '',
rechargeDesc: '',
useTypeList: [],
childShopIdList: '',
});
onShow(() => {
getlist()
})
/**
* 获取配置信息
*/
const getlist = async () => {
let res = await get()
console.log(res)
let res = await getFreeDing()
Object.assign(form, res)
}
const editlist = async () => {
let res = await edit(form)
/**
* 修改配置信息
*/
const editFreeDing = async () => {
let res = await updateFreeDing(form)
uni.showToast({
title: '保存成功'
})
@@ -87,9 +83,7 @@
uni.navigateBack()
}, 1500)
}
onShow(() => {
getlist()
})
</script>
<style lang="scss" scoped>