Commit 253a040b by zhangxw

UI走查修改

1 parent 6f60603d
/* components/SelectPopup/SelectPopup.wxss */ /* components/SelectPopup/SelectPopup.wxss */
.sp-list { .sp-list {
padding: 0 32rpx; padding: 0 32rpx;
box-sizing: border-box;
height: 100%;
.sp-item { .sp-item {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
bind:confirm="onConfirm" bind:confirm="onConfirm"
bind:hidePopup="onCancel" bind:hidePopup="onCancel"
> >
<view class="sp-list"> <scroll-view scroll-y show-scrollbar="{{false}}" enhanced class="sp-list">
<block wx:for="{{ displayOptions }}" wx:key="value"> <block wx:for="{{ displayOptions }}" wx:key="value">
<view <view
class="sp-item {{ item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : '' }}" class="sp-item {{ item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : '' }}"
...@@ -19,5 +19,5 @@ ...@@ -19,5 +19,5 @@
<image class="check" src="{{ IMG_URL }}customer/checked.png" wx:if="{{ item.checked }}" /> <image class="check" src="{{ IMG_URL }}customer/checked.png" wx:if="{{ item.checked }}" />
</view> </view>
</block> </block>
</view> </scroll-view>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
/* components/SelectPopup/SelectPopup.wxss */ /* components/SelectPopup/SelectPopup.wxss */
.sp-list { .sp-list {
padding: 0 32rpx; padding: 0 32rpx;
box-sizing: border-box;
height: 100%;
.sp-item { .sp-item {
display: flex; display: flex;
align-items: center; align-items: center;
......
<!-- components/SelectPopup/SelectPopup.wxml --> <!-- components/SelectPopup/SelectPopup.wxml -->
<popup show="{{show}}" title="{{title}}" height="50%" bind:confirm="onConfirm" bind:hidePopup="onCancel" customPopupSlotStyle="overflow:auto;"> <popup show="{{show}}" title="{{title}}" height="50%" bind:confirm="onConfirm" bind:hidePopup="onCancel" customPopupSlotStyle="overflow:auto;">
<view class="sp-list"> <scroll-view scroll-y show-scrollbar="{{false}}" enhanced class="sp-list">
<block wx:for="{{displayOptions}}" wx:key="value"> <block wx:for="{{displayOptions}}" wx:key="value">
<view class="sp-item {{item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : ''}}" catchtap="toggle" data-index="{{index}}"> <view class="sp-item {{item.checked ? 'active' : ''}} {{item.disabled ? 'disabled' : ''}}" catchtap="toggle" data-index="{{index}}">
<text class="label">{{item[labelKey] || item.label || item.text}}</text> <text class="label">{{item[labelKey] || item.label || item.text}}</text>
<image class="check" src="{{IMG_URL}}customer/checked.png" wx:if="{{item.checked}}" /> <image class="check" src="{{IMG_URL}}customer/checked.png" wx:if="{{item.checked}}" />
</view> </view>
</block> </block>
</view> </scroll-view>
</popup> </popup>
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<view wx:for="{{tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name}}</view> <view wx:for="{{tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name}}</view>
</view> </view>
<view class="screen-box"> <view class="screen-box">
<scroll-view class="view-container" scroll-left="{{scrollLeft}}" show-scrollbar="{{false}}" scroll-x> <scroll-view class="view-container" scroll-left="{{scrollLeft}}" enhanced show-scrollbar="{{false}}" scroll-x>
<view class="view-box"> <view class="view-box">
<block wx:for="{{myTabIdx == 0 ? selectedScreenPotential : selectedScreenStore}}" wx:key="index"> <block wx:for="{{myTabIdx == 0 ? selectedScreenPotential : selectedScreenStore}}" wx:key="index">
<view bindtap="changeScreen" class="view-item" wx:if="{{userInfo.loginRole == 1 ? true : item.key != 'provinces' && item.key != 'salesStaffList'}}"> <view bindtap="changeScreen" class="view-item" wx:if="{{userInfo.loginRole == 1 ? true : item.key != 'provinces' && item.key != 'salesStaffList'}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!