价格显示问题

This commit is contained in:
liuyuan
2025-04-18 17:56:33 +08:00
parent 648a993d14
commit 380ed58d17
179 changed files with 17322 additions and 2750 deletions

View File

@@ -13,7 +13,7 @@ export default {
// 索引字符列表,数组形式
indexList: {
type: Array,
default: []
default: uni.$u.props.indexList.indexList
},
// 是否开启锚点自动吸顶
sticky: {
@@ -24,11 +24,6 @@ export default {
customNavHeight: {
type: [String, Number],
default: uni.$u.props.indexList.customNavHeight
},
// 自定义导航栏的高度
uIndexStyle: {
type:Object,
default: {}
}
}
}

View File

@@ -54,10 +54,10 @@
@touchcancel.stop.prevent="touchEnd"
>
<view
class="u-index-list__letter__item"
class="u-index-list__letter__item"
v-for="(item, index) in uIndexList"
:key="index"
:style="{...uIndexStyle,
:style="{
backgroundColor: activeIndex === index ? activeColor : 'transparent'
}"
>
@@ -77,17 +77,16 @@
zIndex: 2
}"
>
<!-- <view
<view
class="u-index-list__indicator"
:class="['u-index-list__indicator--show']"
:style="{
height: $u.addUnit(indicatorHeight),
width: $u.addUnit(indicatorHeight),
width: $u.addUnit(indicatorHeight)
}"
>
<text class="u-index-list__indicator__text" >{{ uIndexList[activeIndex] }}</text>
</view> -->
<text class="u-index-list__indicator__text">{{ uIndexList[activeIndex] }}</text>
</view>
</u-transition>
</view>
</template>
@@ -95,10 +94,10 @@
<script>
const indexList = () => {
const indexList = [];
// const charCodeOfA = 'A'.charCodeAt(0);
// for (let i = 0; i < 26; i++) {
// indexList.push(String.fromCharCode(charCodeOfA + i));
// }
const charCodeOfA = 'A'.charCodeAt(0);
for (let i = 0; i < 26; i++) {
indexList.push(String.fromCharCode(charCodeOfA + i));
}
return indexList;
}
import props from './props.js';
@@ -115,7 +114,6 @@
* @property {Array} indexList 索引字符列表,数组形式
* @property {Boolean} sticky 是否开启锚点自动吸顶 ( 默认 true )
* @property {String | Number} customNavHeight 自定义导航栏的高度 ( 默认 0 )
* @property {object} uIndexStyle 自定义导航栏的高度 ( 默认 0 )
* */
export default {
name: 'u-index-list',