Skip to content

Commit 0ba1812

Browse files
committed
update(uni-ui): 更新uni-ui
1 parent 4a28a3a commit 0ba1812

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

components/uni-goods-nav/uni-goods-nav.vue

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- 底部占位 -->
44
<view class="uni-tab__seat" />
55
<view class="uni-tab__cart-box flex">
6-
<view class="flex uni-tab__cart-sub-box">
6+
<view class="flex uni-tab__cart-sub-left">
77
<view v-for="(item,index) in options" :key="index" class="flex uni-tab__cart-button-left uni-tab__shop-cart" @click="onClick(index,item)">
88
<view class="uni-tab__icon">
99
<image class="image" :src="item.icon" mode="widthFix" />
@@ -14,7 +14,7 @@
1414
</view>
1515
</view>
1616
</view>
17-
<view :class="{'uni-tab__right':fill}" class="flex uni-tab__cart-sub-box ">
17+
<view :class="{'uni-tab__right':fill}" class="flex uni-tab__cart-sub-right ">
1818
<view v-for="(item,index) in buttonGroup" :key="index" :style="{backgroundColor:item.backgroundColor,color:item.color}" class="flex uni-tab__cart-button-right" @click="buttonClick(index,item)"><text class="uni-tab__cart-button-right-text">{{ item.text }}</text></view>
1919
<!-- <view class="flex uni-tab__cart-button-right uni-tab__color-y ">立即购买</view> -->
2020
</view>
@@ -54,12 +54,12 @@
5454
default () {
5555
return [{
5656
text: '加入购物车',
57-
backgroundColor: '#ff0000',
57+
backgroundColor: '#ffa200',
5858
color: '#fff'
5959
},
6060
{
6161
text: '立即购买',
62-
backgroundColor: '#ffa200',
62+
backgroundColor: '#ff0000',
6363
color: '#fff'
6464
}
6565
]
@@ -74,7 +74,8 @@
7474
onClick(index, item) {
7575
this.$emit('click', {
7676
index,
77-
content: item
77+
content: item,
78+
7879
})
7980
},
8081
buttonClick(index, item) {
@@ -108,12 +109,16 @@
108109
109110
.uni-tab__cart-box {
110111
flex: 1;
111-
height: 100rpx;
112+
height: 50px;
112113
background-color: #fff;
113114
z-index: 900;
114115
}
115116
116-
.uni-tab__cart-sub-box {
117+
.uni-tab__cart-sub-left {
118+
padding: 0 5px;
119+
}
120+
121+
.uni-tab__cart-sub-right {
117122
flex: 1;
118123
}
119124
@@ -128,27 +133,29 @@
128133
/* #ifndef APP-NVUE */
129134
display: flex;
130135
/* #endif */
131-
flex: 1;
136+
/* flex: 1;
137+
*/
132138
position: relative;
133139
justify-content: center;
134140
align-items: center;
135141
flex-direction: column;
142+
margin: 0 10px;
136143
}
137144
138145
.uni-tab__icon {
139-
width: 20px;
140-
height: 20px;
146+
width: 18px;
147+
height: 18px;
141148
}
142149
143150
.image {
144-
width: 20px;
145-
height: 20px;
151+
width: 18px;
152+
height: 18px;
146153
}
147154
148155
.uni-tab__text {
149156
margin-top: 3px;
150157
font-size: 24rpx;
151-
color: #666;
158+
color: #646566;
152159
}
153160
154161
.uni-tab__cart-button-right {
@@ -176,8 +183,8 @@
176183
flex-direction: column;
177184
/* #endif */
178185
position: absolute;
179-
right: 12px;
180-
top: 4px;
186+
right: -2px;
187+
top: 2px;
181188
justify-content: center;
182189
align-items: center;
183190
/* width: 0;

components/uni-list/uni-refresh.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var pullDown = {
99
function ready(newValue, oldValue, ownerInstance, instance) {
1010
var state = instance.getState()
1111
state.canPullDown = newValue;
12-
console.log(newValue);
12+
// console.log(newValue);
1313
}
1414

1515
function touchStart(e, instance) {
@@ -20,7 +20,7 @@ function touchStart(e, instance) {
2020
return
2121
}
2222

23-
console.log("touchStart");
23+
// console.log("touchStart");
2424

2525
state.height = 0;
2626
state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY;

components/uni-load-more/uni-load-more.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
// #ifndef APP-NVUE
9090
computed: {
9191
iconSnowWidth() {
92-
console.log((Math.floor(this.iconSize / 24) || 1) * 2);
9392
return (Math.floor(this.iconSize / 24) || 1) * 2
9493
}
9594
},

components/uni-rate/uni-rate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
});
110110
}
111111
}
112-
console.log("starList[4]: " + starList[4].activeWitch);
112+
// console.log("starList[4]: " + starList[4].activeWitch);
113113
return starList;
114114
}
115115
},

pages/extUI/goods-nav/goods-nav.nvue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
}],
4141
buttonGroup: [{
4242
text: '加入购物车',
43-
backgroundColor: '#ff0000',
43+
backgroundColor: '#ffa200 ',
4444
color: '#fff'
4545
},
4646
{
4747
text: '立即购买',
48-
backgroundColor: '#ffa200',
48+
backgroundColor: '#ff0000',
4949
color: '#fff'
5050
}
5151
]

0 commit comments

Comments
 (0)