Commit daed585098759fa5660a6184810686054607ed72
1 parent
a43c2212
测试优化内容
Showing
5 changed files
with
28 additions
and
11 deletions
components/diy_shopname/diy_shopname.wxss
... | ... | @@ -166,7 +166,8 @@ left:-116rpx; |
166 | 166 | } |
167 | 167 | |
168 | 168 | .fonts { |
169 | - width: 186rpx; | |
169 | + min-width: 186rpx; | |
170 | + max-width: 360rpx; | |
170 | 171 | height: 70rpx; |
171 | 172 | /* 倒角 */ |
172 | 173 | border-radius: 25rpx; |
... | ... | @@ -181,6 +182,9 @@ left:-116rpx; |
181 | 182 | top: 20rpx; |
182 | 183 | left: 0rpx; |
183 | 184 | /* background-color: rgba(255, 255, 255, 0.7); */ |
185 | + overflow: hidden; | |
186 | + white-space: nowrap; | |
187 | + text-overflow: ellipsis; | |
184 | 188 | } |
185 | 189 | |
186 | 190 | /* 底层文字 */ |
... | ... | @@ -225,7 +229,7 @@ left:-116rpx; |
225 | 229 | } |
226 | 230 | |
227 | 231 | .shopname_title_size{ font-size: 34rpx} |
228 | -.big .all_view{display: flex; width: 500rpx; position:absolute; bottom:rpx;right: 0 } | |
232 | +.big .all_view{display: flex; width: 500rpx; position:absolute; bottom:15rpx;right: 0 } | |
229 | 233 | .big .all_view .v_item{width:33%; } |
230 | 234 | |
231 | 235 | .big_border_two .title_center{ display: flex; justify-content: center;} | ... | ... |
packageA/pages/chongzhi/chongzhi.wxml
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | <view class="fs28 ellipsis-2 txt-justify">{{item.ActName}}</view> |
29 | 29 | <view> |
30 | 30 | <view class="price fs24">零售价:¥{{item.PosPrice}}</view> |
31 | - <view class="date fs24">{{(currentIndex == 0 ? '兑换截止日期': '核销时间') + ':' + item.BeginDate + '至' + item.EndDate}}</view> | |
31 | + <view class="date fs24">{{(currentIndex == 0 ? '兑换截止日期': '核销时间') + ':' + item.BeginDate + '至' + (item.EndDate==''?'不限':item.EndDate)}}</view> | |
32 | 32 | </view> |
33 | 33 | </view> |
34 | 34 | </view> | ... | ... |
packageA/pages/chongzhi/g_filter.wxs
pages/cart/cart2/cart2.js
... | ... | @@ -2260,6 +2260,10 @@ Page({ |
2260 | 2260 | var th=this; |
2261 | 2261 | var ty = t.currentTarget.dataset.t,def_exp_code= getApp().globalData.userInfo.def_exp_code; |
2262 | 2262 | th.setData({ bn_exp_type:ty}); |
2263 | + if(ty==0){ | |
2264 | + th.setData({ is_all_zt: 0 }); | |
2265 | + } | |
2266 | + | |
2263 | 2267 | //当物流为空的时候。 |
2264 | 2268 | if (ty == 0 && th.data.wu_arr==null){ |
2265 | 2269 | th.data.isget_by_quan={}; |
... | ... | @@ -2921,8 +2925,10 @@ Page({ |
2921 | 2925 | |
2922 | 2926 | //如果是搭配购的立即购买的时候 |
2923 | 2927 | if(th.data.is_b_now){ |
2924 | - var quanlist=arr[0].quan_list; | |
2925 | - th.setData({selected_quan_list:quanlist,cartlist:arr}) | |
2928 | + if(arr && arr.length>0){ | |
2929 | + var quanlist=arr[0].quan_list; | |
2930 | + th.setData({selected_quan_list:quanlist,cartlist:arr}) | |
2931 | + } | |
2926 | 2932 | }else{ |
2927 | 2933 | th.setData({cartlist:arr }) |
2928 | 2934 | th.set_can_num(); |
... | ... | @@ -2972,6 +2978,7 @@ Page({ |
2972 | 2978 | //检查区域是不是包邮 |
2973 | 2979 | check_area:function(arr){ |
2974 | 2980 | var user_addr=this.data.user_addr; |
2981 | + if(!user_addr) return 0; | |
2975 | 2982 | for(var i in arr){ |
2976 | 2983 | var item=arr[i]; |
2977 | 2984 | if(user_addr.twon==item || user_addr.district==item | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -245,6 +245,7 @@ Page({ |
245 | 245 | |
246 | 246 | showPoster: false, |
247 | 247 | hui_condition:null, |
248 | + sto_sele_name_1:'',//分享的门店名称 | |
248 | 249 | }, |
249 | 250 | |
250 | 251 | //------初始化加载---------- |
... | ... | @@ -331,12 +332,16 @@ Page({ |
331 | 332 | if(c_guide_id){ |
332 | 333 | th.data.c_guide_id=c_guide_id; |
333 | 334 | } |
335 | + | |
336 | + getApp().getConfig(function(e) { | |
337 | + ee.setData({sto_sele_name_1:e.store_name}) | |
338 | + }) | |
334 | 339 | |
335 | 340 | //----获取系统参数----- |
336 | 341 | getApp().getConfig2(function(e) { |
337 | 342 | ee.setData({ |
338 | 343 | bconfig: e, |
339 | - sales_rules:e.sales_rules | |
344 | + sales_rules:e.sales_rules, | |
340 | 345 | }); |
341 | 346 | |
342 | 347 | if (e.categoryset.indexOf("," + 1 + ",") != -1) { |
... | ... | @@ -3873,7 +3878,7 @@ Page({ |
3873 | 3878 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); |
3874 | 3879 | context.setFillStyle("black") |
3875 | 3880 | context.setFontSize(28 * unit) |
3876 | - context.fillText(th.data.sto_sele_name, 40 * unit, 766 * unit); | |
3881 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | |
3877 | 3882 | }else{ |
3878 | 3883 | // 原来start ---> |
3879 | 3884 | // context.fillText("长按识别二维码", 40 * unit, 776 * unit); |
... | ... | @@ -3882,7 +3887,7 @@ Page({ |
3882 | 3887 | context.fillText("立即开始兑换", 40 * unit, 846 * unit); |
3883 | 3888 | context.setFillStyle("black") |
3884 | 3889 | context.setFontSize(28 * unit) |
3885 | - context.fillText(th.data.sto_sele_name, 40 * unit, 766 * unit); | |
3890 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | |
3886 | 3891 | } |
3887 | 3892 | |
3888 | 3893 | //---二维吗图--- |
... | ... | @@ -3915,7 +3920,7 @@ Page({ |
3915 | 3920 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); |
3916 | 3921 | context.setFillStyle("black") |
3917 | 3922 | context.setFontSize(28 * unit) |
3918 | - context.fillText(th.data.sto_sele_name, 40 * unit, 786 * unit); | |
3923 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 786 * unit); | |
3919 | 3924 | //---二维吗图--- |
3920 | 3925 | //-- 自定义海报 -- |
3921 | 3926 | if(th.data.poster){ |
... | ... | @@ -3962,7 +3967,7 @@ Page({ |
3962 | 3967 | context.fillText("长按识别二维码,立即参团", 40 * unit, 866 * unit); |
3963 | 3968 | context.setFillStyle("black") |
3964 | 3969 | context.setFontSize(26 * unit) |
3965 | - context.fillText(th.data.sto_sele_name, 40 * unit, 806 * unit); | |
3970 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 806 * unit); | |
3966 | 3971 | //---二维吗图--- |
3967 | 3972 | //-- 自定义海报 -- |
3968 | 3973 | if(th.data.poster){ |
... | ... | @@ -4016,7 +4021,7 @@ Page({ |
4016 | 4021 | |
4017 | 4022 | context.setFillStyle("black") |
4018 | 4023 | context.setFontSize(26 * unit) |
4019 | - context.fillText(th.data.sto_sele_name, 40 * unit, 876 * unit); | |
4024 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 876 * unit); | |
4020 | 4025 | |
4021 | 4026 | //-- 自定义海报 -- |
4022 | 4027 | if(th.data.poster){ | ... | ... |