代码更新

This commit is contained in:
GaoHao
2025-03-03 09:44:11 +08:00
parent b4a0393d2d
commit fd0c452a76
55 changed files with 2263 additions and 2658 deletions

View File

@@ -44,24 +44,15 @@
</template>
<script setup>
import {
reactive,
nextTick,
ref,watch
} from 'vue';
import { reactive, nextTick, ref,watch } from 'vue';
import myModel from '@/components/my-components/my-model.vue'
import myButton from '@/components/my-components/my-button.vue'
import myTabs from '@/components/my-components/my-tabs.vue'
import infoBox from '@/commons/utils/infoBox.js'
const props = defineProps({
title: {
type: String,
default: ''
},
data: {
type: Array,
default: []
},
discount:{
type: [Number,String],
default:100
@@ -70,13 +61,10 @@
type: [Number,String],
default: 0
},
nowPrice:{
type: [Number,String],
default: 0
}
})
function currentPriceInput(newval){
form.discount=(newval*100/form.price)
form.discount = (newval*100/form.price).toFixed(2)
}
function discountInput(newval){
form.currentPrice=(form.price*newval/100).toFixed(2)

View File

@@ -48,7 +48,7 @@
<view class="">{{item.name}}</view>
</view>
<view class="u-flex-1 u-p-l-4 u-p-r-4 box-size-border">
{{item.typeEnum}}
{{item.type}}
</view>
<view class="u-flex-1">
{{ item.lowPrice }}

View File

@@ -22,7 +22,7 @@
<view class="">{{item.name}}</view>
</view>
<view class="u-flex-1 u-p-l-4 u-p-r-4 box-size-border">
{{item.typeEnum}}
{{item.type}}
</view>
<view class="u-flex-1">
{{ item.lowPrice }}