fix bug: title too long

FFIB 5 lat temu
rodzic
commit
bb1d06651d
3 zmienionych plików z 7 dodań i 1 usunięć
  1. 3 0
      src/pages/index/index.less
  2. 3 0
      src/pages/index/index.wxss
  3. 1 1
      src/pages/order/order.js

+ 3 - 0
src/pages/index/index.less

@@ -190,9 +190,11 @@ page {
190 190
       display: flex;
191 191
       flex-direction: column;
192 192
       align-items: flex-end;
193
+      width: 100rpx;
193 194
       height: 100%;
194 195
 
195 196
       .bought {
197
+        margin-top: @spacing-short-text;
196 198
         font-size: @font-quaternary;
197 199
         color: #e64340;
198 200
         text-align: right;
@@ -208,6 +210,7 @@ page {
208 210
           display: flex;
209 211
           flex-direction: column;
210 212
           align-items: flex-end;
213
+          width: 200rpx;
211 214
           height: 40rpx;
212 215
           margin-top: @spacing-inline;
213 216
 

+ 3 - 0
src/pages/index/index.wxss

@@ -155,9 +155,11 @@ page {
155 155
   display: flex;
156 156
   flex-direction: column;
157 157
   align-items: flex-end;
158
+  width: 100rpx;
158 159
   height: 100%;
159 160
 }
160 161
 .commodity-container .commodity-list .commodity-right .bought {
162
+  margin-top: 4rpx;
161 163
   font-size: 10pt;
162 164
   color: #e64340;
163 165
   text-align: right;
@@ -172,6 +174,7 @@ page {
172 174
   display: flex;
173 175
   flex-direction: column;
174 176
   align-items: flex-end;
177
+  width: 200rpx;
175 178
   height: 40rpx;
176 179
   margin-top: 12rpx;
177 180
 }

+ 1 - 1
src/pages/order/order.js

@@ -81,7 +81,7 @@ Page({
81 81
           package: wxpay_params.package,
82 82
           signType: wxpay_params.signType,
83 83
           paySign: wxpay_params.paySign,
84
-          success: res2 => {
84
+          success: _ => {
85 85
             wx.reLaunch({
86 86
               url: '/pages/index/index',
87 87
               success() {