热更新

This commit is contained in:
2024-06-13 10:04:13 +08:00
parent e595e034dc
commit 7eaaf64a22
1180 changed files with 70026 additions and 731709 deletions

View File

@@ -1295,7 +1295,7 @@
width: 80rpx !important;
height: 80rpx !important;
border-radius: 80rpx;
background-color: #d8f8e4;
background-color: $themeBgColor;
color: $themeColor;
font-size: 34rpx;
font-weight: bold;

View File

@@ -884,7 +884,7 @@ export default {
width: 80rpx !important;
height: 80rpx !important;
border-radius: 80rpx;
background-color: #d8f8e4;
background-color: $themeBgColor;
color: #3ab3ae;
font-size: 34rpx;
font-weight: bold;

View File

@@ -4,14 +4,18 @@
<view class="left">
<view v-for="(v,i) in iconList" class="icon_item" v-if="iconList.length>0">
<uni-icons :type="v.icon" size="22" :color="v.infoColor" style="margin:0 auto"></uni-icons>
<u-icon :name="v.icon" :color="v.infoColor" size="22" v-if="v.iconType" style="margin:0 auto" @click="clickIcon(v)"
></u-icon>
<uni-icons :type="v.icon" size="22" :color="v.infoColor" style="margin:0 auto" v-else> </uni-icons>
<view :style="`color:${v.infoColor};`">{{ v.text }}</view>
</view>
<slot name="leftSlot"></slot>
</view>
<view class="right">
<view class="button" v-for="(v,i) in customButton" :style="`backgroundColor:${v.backgroundColor};width:${v.width}`" @click="submit">
<view class="button" v-for="(v,i) in customButton" :style="`background:${v.backgroundColor} !important;color:${v.color};width:${v.width}`" @click="submit(v)">
{{ v.text }}
</view>
@@ -57,8 +61,11 @@ export default {
},
methods: {
submit(){
this.$emit('submit')
submit(v){
this.$emit('submit',v)
},
clickIcon(v){
this.$emit('clickIcon',v)
},
showPreview(e) {
console.log('e at line 56:', e)
@@ -227,9 +234,13 @@ display: flex;
float: right;
width: 240rpx;
border-radius: 100rpx;
line-height: 80rpx;
line-height: 70rpx;
text-align: center;
background: linear-gradient(90deg, rgb(254, 96, 53), rgb(239, 18, 36)); color: rgb(255, 255, 255);
margin-left: 20rpx;
background: linear-gradient(90deg, rgb(254, 96, 53), rgb(239, 18, 36));
color: rgb(255, 255, 255);
}
.icon_item{

View File

@@ -1,12 +1,18 @@
<template>
<view style="width: 100%; height: 100%">
<scroll-view @scrolltolower="lower" scroll-y="true" class="scroll-Y" v-if="dataList.length > 0" style="height: 100%">
<scroll-view
@scrolltolower="lower"
scroll-y="true"
class="scroll-Y"
v-if="dataList.length > 0"
style="height: 100%"
>
<view
@click="gotoDetail(item,index)"
@click="gotoDetail(item, index)"
class="scroll-view-item list_item"
v-for="(item, index) in dataList"
:key="item.id"
:index="index"
:key="indexKey ? item[indexKey] : item.id"
:index="indexKey ? item[indexKey] : index"
style="align-items: flex-start"
>
<view
@@ -16,7 +22,13 @@
<slot name="leftSlot" :row="item" :item="item" :index="index"> </slot>
<template v-if="isCondition">
<slot name="labelSlot" :row="item" :rowIndex="index"></slot>
<slot
name="labelSlot"
:row="item"
:rowIndex="index"
></slot>
</template>
<template v-else>
{{ item[label] }}
@@ -32,11 +44,12 @@
></image>
</view>
</scroll-view>
<u-empty v-else-if="noDataIcon&&isLoadingHide"
:mode="noDataIcon"
:icon="`http://cdn.uviewui.com/uview/empty/${noDataIcon}.png`"
>
</u-empty>
<u-empty
v-else-if="noDataIcon && isLoadingHide"
:mode="noDataIcon"
:icon="`http://cdn.uviewui.com/uview/empty/${noDataIcon}.png`"
>
</u-empty>
<u-divider v-else text="暂无数据哦~"></u-divider>
</view>
</template>
@@ -44,7 +57,16 @@
<script>
import { mapState } from "vuex";
export default {
props: ["dataList", "label", "isCondition", "isNoIcon","pagination",'noDataIcon','isLoadingHide'],
props: [
"indexKey",
"dataList",
"label",
"isCondition",
"isNoIcon",
"pagination",
"noDataIcon",
"isLoadingHide",
],
data() {
return {};
},
@@ -57,13 +79,13 @@ export default {
...mapState(["userInfo"]),
},
methods: {
lower(){
this.$emit('lower')
lower() {
this.$emit("lower");
},
gotoDetail(data,index) {
gotoDetail(data, index) {
console.log("index at line 53:", data);
this.$emit("hancleClick", data,index);
this.$emit("hancleClick", data, index);
},
},
onBackPress() {
@@ -132,7 +154,7 @@ export default {
/deep/.scroll-view-item:nth-child(2n-1) {
background-color: transparent !important;
}
.list_item:last-child{
.list_item:last-child {
border-bottom: none !important;
}
</style>