Browse Source

详情页修改

beibo 5 months ago
parent
commit
ad38ee014d
3 changed files with 82 additions and 31 deletions
  1. 3 3
      components/activity/sku.ttss
  2. 18 8
      pages/product/activity/index.ttml
  3. 61 20
      pages/product/activity/index.ttss

+ 3 - 3
components/activity/sku.ttss

@@ -205,9 +205,9 @@
205 205
 }
206 206
 
207 207
 .notSelectCity {
208
-  background: #f5f5f5;
209
-  border-color: #f5f5f5 !important;
210
-  color: #4e4e4e;
208
+  background: #f5f5f4;
209
+  border-color: #f5f5f4 !important;
210
+  color: #a3a3a3;
211 211
 }
212 212
 
213 213
 .sku-column-body .sku-row__item--active .sessions-title {

+ 18 - 8
pages/product/activity/index.ttml

@@ -151,14 +151,24 @@
151 151
     <scroll-view scroll-x="true" class="sku borderRadiu" scroll-with-animation="true">
152 152
       <view class="sku-boxs">
153 153
         <!-- 城市状态开售中   活动状态开售中 -->
154
-        <view class="sku-box " tt:for="{{datas.cityVOList}}" tt:key="city" data-index="{{index}}"
155
-          bindtap="{{item.status==1&&datas.timeStatus==1?'goPay':''}}" data-item="{{item}}" data-alone="0">{{item.city}}
156
-          <view style="margin-top: 10rpx;">
157
-            <text tt:if="{{item.status==0}}" class="font12 ">未开售
158
-            </text> <text tt:elif="{{item.status==1}}" class="font12 orange">开售中
159
-            </text> <text tt:elif="{{item.status==2}}" class="font12 ">已停售
160
-            </text><text tt:else class="font12 ">已满额
161
-            </text>
154
+        <view style="display: flex;">
155
+          <view tt:for="{{datas.cityVOList}}" tt:key="city" data-index="{{index}}"
156
+            bindtap="{{item.status==1&&datas.timeStatus==1?'goPay':''}}" data-item="{{item}}" data-alone="0"
157
+            class="cityItem" tt:if="{{index<3}}">
158
+            <view class="sku-box {{item.status==1&&datas.timeStatus==1?'canBlack':''}}">
159
+              <view>{{item.city}}</view>
160
+            </view>
161
+            <view class="cityStatus">
162
+              <text tt:if="{{item.status==0}}" class="font10 gray71">未开售
163
+              </text> <text tt:elif="{{item.status==1}}" class="font10 orange">开售中
164
+              </text> <text tt:elif="{{item.status==2}}" class="font10 gray71">已停售
165
+              </text><text tt:else class="font10 gray71">已满额
166
+              </text>
167
+            </view>
168
+          </view>
169
+        </view>
170
+        <view class="font12 cityMore" bindtap="goPay">
171
+          共{{datas.cityVOList.length}}个城市可选 <view style="margin-right: 20rpx;color: #a3a3a3;" class="brillianticon">
162 172
           </view>
163 173
         </view>
164 174
       </view>

+ 61 - 20
pages/product/activity/index.ttss

@@ -33,6 +33,7 @@ page {
33 33
   font-size: 24rpx;
34 34
   color: #EE3A43;
35 35
 }
36
+
36 37
 .tag::-webkit-scrollbar {
37 38
   width: 0;
38 39
   height: 0;
@@ -224,8 +225,9 @@ page {
224 225
   font-size: 36rpx;
225 226
   margin-right: 20rpx;
226 227
 }
227
-.mapTo{
228
-  justify-content: space-between!important;
228
+
229
+.mapTo {
230
+  justify-content: space-between !important;
229 231
   align-items: center;
230 232
 }
231 233
 
@@ -527,7 +529,7 @@ page {
527 529
 }
528 530
 
529 531
 .comment {
530
-  padding:20rpx 20rpx;
532
+  padding: 20rpx 20rpx;
531 533
 }
532 534
 
533 535
 .scoreBox {
@@ -1065,11 +1067,12 @@ page {
1065 1067
 .sku {
1066 1068
   margin-bottom: 20rpx;
1067 1069
 }
1070
+
1068 1071
 scroll-view ::-webkit-scrollbar {
1069
-  display:none;
1070
-  width:0;
1071
-  height:0;
1072
-  color:transparent;
1072
+  display: none;
1073
+  width: 0;
1074
+  height: 0;
1075
+  color: transparent;
1073 1076
 }
1074 1077
 
1075 1078
 
@@ -1077,27 +1080,53 @@ scroll-view ::-webkit-scrollbar {
1077 1080
   width: 100%;
1078 1081
   display: flex;
1079 1082
   flex-direction: row;
1080
-  overflow-x: auto;
1083
+  /* overflow-x: auto; */
1084
+  align-items: end;
1085
+  justify-content: space-between;
1086
+}
1087
+
1088
+.sku-boxs .cityItem {
1089
+  position: relative;
1090
+  padding: 20rpx 20rpx 0rpx 0;
1091
+  display: flex;
1092
+}
1093
+
1094
+.cityItem .cityStatus {
1095
+  position: absolute;
1096
+  top: -15rpx;
1097
+  right: 15rpx;
1081 1098
 }
1082 1099
 
1083 1100
 .sku-box {
1084 1101
   border-radius: 16rpx;
1085
-  color: #717071;
1086
-  font-size: 32rpx;
1087
-  padding: 20rpx;
1102
+  color: #a3a3a3;
1103
+  font-size: 28rpx;
1104
+  padding: 20rpx 20rpx;
1088 1105
   text-align: center;
1089 1106
   display: inline-block;
1090
-  margin-left: 15rpx;
1107
+  /* margin-left: 15rpx; */
1091 1108
   background: #f5f5f4;
1092 1109
   display: flex;
1093
-  flex-direction: column;
1094
-  flex-shrink: 0;
1095
-  min-width: 220rpx;
1110
+  /* flex-direction: column;
1111
+  flex-shrink: 0; */
1112
+  align-items: center;
1113
+  justify-content: center;
1114
+  min-width: 110rpx;
1096 1115
   border: 1px solid #f0f0ec;
1097 1116
 }
1098 1117
 
1099
-.sku-box:first-child {
1100
-  margin-left: 0;
1118
+.cityMore {
1119
+  display: flex;
1120
+  align-items: center;
1121
+  color: #a3a3a3 !important;
1122
+}
1123
+
1124
+.canBlack {
1125
+  color: #000;
1126
+}
1127
+
1128
+.sku-boxs:first-child {
1129
+  margin-left: 0 !important;
1101 1130
 }
1102 1131
 
1103 1132
 .disabled {
@@ -1138,10 +1167,22 @@ scroll-view ::-webkit-scrollbar {
1138 1167
 }
1139 1168
 
1140 1169
 .orange {
1141
-  color: #ff7e8d;
1142
-  /* border: 1rpx solid #ff7e8d; */
1170
+  color: #fff;
1171
+  border: 1rpx solid #ff7e8d;
1172
+  background-color: #ff7e8d;
1143 1173
   padding: 0 10rpx;
1144 1174
   border-radius: 20rpx;
1175
+  border-bottom-left-radius: 0;
1176
+
1177
+}
1178
+
1179
+.gray71 {
1180
+  color: #fff;
1181
+  border: 1rpx solid #c7c3c3;
1182
+  background-color: #c7c3c3;
1183
+  padding: 0 5rpx;
1184
+  border-radius: 20rpx;
1185
+  border-bottom-left-radius: 0;
1145 1186
 }
1146 1187
 
1147 1188
 .green {
@@ -1280,7 +1321,7 @@ scroll-view ::-webkit-scrollbar {
1280 1321
 .buttom1 {
1281 1322
   width: 158rpx;
1282 1323
   height: 47rpx;
1283
-  background-color: #ee3a43 ;
1324
+  background-color: #ee3a43;
1284 1325
   display: flex;
1285 1326
   justify-content: center;
1286 1327
   align-items: center;