Commit a07cd39f104d99e20b429a2036e91b1e42ee7dd5
Merge branch 'dev' into 'test'
测试优化内容 See merge request !594
Showing
5 changed files
with
28 additions
and
11 deletions
components/diy_shopname/diy_shopname.wxss
| @@ -166,7 +166,8 @@ left:-116rpx; | @@ -166,7 +166,8 @@ left:-116rpx; | ||
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | .fonts { | 168 | .fonts { |
| 169 | - width: 186rpx; | 169 | + min-width: 186rpx; |
| 170 | + max-width: 360rpx; | ||
| 170 | height: 70rpx; | 171 | height: 70rpx; |
| 171 | /* 倒角 */ | 172 | /* 倒角 */ |
| 172 | border-radius: 25rpx; | 173 | border-radius: 25rpx; |
| @@ -181,6 +182,9 @@ left:-116rpx; | @@ -181,6 +182,9 @@ left:-116rpx; | ||
| 181 | top: 20rpx; | 182 | top: 20rpx; |
| 182 | left: 0rpx; | 183 | left: 0rpx; |
| 183 | /* background-color: rgba(255, 255, 255, 0.7); */ | 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,7 +229,7 @@ left:-116rpx; | ||
| 225 | } | 229 | } |
| 226 | 230 | ||
| 227 | .shopname_title_size{ font-size: 34rpx} | 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 | .big .all_view .v_item{width:33%; } | 233 | .big .all_view .v_item{width:33%; } |
| 230 | 234 | ||
| 231 | .big_border_two .title_center{ display: flex; justify-content: center;} | 235 | .big_border_two .title_center{ display: flex; justify-content: center;} |
packageA/pages/chongzhi/chongzhi.wxml
| @@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
| 28 | <view class="fs28 ellipsis-2 txt-justify">{{item.ActName}}</view> | 28 | <view class="fs28 ellipsis-2 txt-justify">{{item.ActName}}</view> |
| 29 | <view> | 29 | <view> |
| 30 | <view class="price fs24">零售价:¥{{item.PosPrice}}</view> | 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 | </view> | 32 | </view> |
| 33 | </view> | 33 | </view> |
| 34 | </view> | 34 | </view> |
packageA/pages/chongzhi/g_filter.wxs
| 1 | var is_acting = function(endtime){ | 1 | var is_acting = function(endtime){ |
| 2 | //判断结束时间减去当前时间 ,如果当前时间大于0则为True | 2 | //判断结束时间减去当前时间 ,如果当前时间大于0则为True |
| 3 | + if(endtime=='') return true; | ||
| 3 | endtime = endtime.substring(0, 19); | 4 | endtime = endtime.substring(0, 19); |
| 4 | var reg = getRegExp("-", "g"); | 5 | var reg = getRegExp("-", "g"); |
| 5 | endtime = endtime.replace(reg, '/'); | 6 | endtime = endtime.replace(reg, '/'); |
pages/cart/cart2/cart2.js
| @@ -2260,6 +2260,10 @@ Page({ | @@ -2260,6 +2260,10 @@ Page({ | ||
| 2260 | var th=this; | 2260 | var th=this; |
| 2261 | var ty = t.currentTarget.dataset.t,def_exp_code= getApp().globalData.userInfo.def_exp_code; | 2261 | var ty = t.currentTarget.dataset.t,def_exp_code= getApp().globalData.userInfo.def_exp_code; |
| 2262 | th.setData({ bn_exp_type:ty}); | 2262 | th.setData({ bn_exp_type:ty}); |
| 2263 | + if(ty==0){ | ||
| 2264 | + th.setData({ is_all_zt: 0 }); | ||
| 2265 | + } | ||
| 2266 | + | ||
| 2263 | //当物流为空的时候。 | 2267 | //当物流为空的时候。 |
| 2264 | if (ty == 0 && th.data.wu_arr==null){ | 2268 | if (ty == 0 && th.data.wu_arr==null){ |
| 2265 | th.data.isget_by_quan={}; | 2269 | th.data.isget_by_quan={}; |
| @@ -2921,8 +2925,10 @@ Page({ | @@ -2921,8 +2925,10 @@ Page({ | ||
| 2921 | 2925 | ||
| 2922 | //如果是搭配购的立即购买的时候 | 2926 | //如果是搭配购的立即购买的时候 |
| 2923 | if(th.data.is_b_now){ | 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 | }else{ | 2932 | }else{ |
| 2927 | th.setData({cartlist:arr }) | 2933 | th.setData({cartlist:arr }) |
| 2928 | th.set_can_num(); | 2934 | th.set_can_num(); |
| @@ -2972,6 +2978,7 @@ Page({ | @@ -2972,6 +2978,7 @@ Page({ | ||
| 2972 | //检查区域是不是包邮 | 2978 | //检查区域是不是包邮 |
| 2973 | check_area:function(arr){ | 2979 | check_area:function(arr){ |
| 2974 | var user_addr=this.data.user_addr; | 2980 | var user_addr=this.data.user_addr; |
| 2981 | + if(!user_addr) return 0; | ||
| 2975 | for(var i in arr){ | 2982 | for(var i in arr){ |
| 2976 | var item=arr[i]; | 2983 | var item=arr[i]; |
| 2977 | if(user_addr.twon==item || user_addr.district==item | 2984 | if(user_addr.twon==item || user_addr.district==item |
pages/goods/goodsInfo/goodsInfo.js
| @@ -245,6 +245,7 @@ Page({ | @@ -245,6 +245,7 @@ Page({ | ||
| 245 | 245 | ||
| 246 | showPoster: false, | 246 | showPoster: false, |
| 247 | hui_condition:null, | 247 | hui_condition:null, |
| 248 | + sto_sele_name_1:'',//分享的门店名称 | ||
| 248 | }, | 249 | }, |
| 249 | 250 | ||
| 250 | //------初始化加载---------- | 251 | //------初始化加载---------- |
| @@ -331,12 +332,16 @@ Page({ | @@ -331,12 +332,16 @@ Page({ | ||
| 331 | if(c_guide_id){ | 332 | if(c_guide_id){ |
| 332 | th.data.c_guide_id=c_guide_id; | 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 | getApp().getConfig2(function(e) { | 341 | getApp().getConfig2(function(e) { |
| 337 | ee.setData({ | 342 | ee.setData({ |
| 338 | bconfig: e, | 343 | bconfig: e, |
| 339 | - sales_rules:e.sales_rules | 344 | + sales_rules:e.sales_rules, |
| 340 | }); | 345 | }); |
| 341 | 346 | ||
| 342 | if (e.categoryset.indexOf("," + 1 + ",") != -1) { | 347 | if (e.categoryset.indexOf("," + 1 + ",") != -1) { |
| @@ -3873,7 +3878,7 @@ Page({ | @@ -3873,7 +3878,7 @@ Page({ | ||
| 3873 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); | 3878 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); |
| 3874 | context.setFillStyle("black") | 3879 | context.setFillStyle("black") |
| 3875 | context.setFontSize(28 * unit) | 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 | }else{ | 3882 | }else{ |
| 3878 | // 原来start ---> | 3883 | // 原来start ---> |
| 3879 | // context.fillText("长按识别二维码", 40 * unit, 776 * unit); | 3884 | // context.fillText("长按识别二维码", 40 * unit, 776 * unit); |
| @@ -3882,7 +3887,7 @@ Page({ | @@ -3882,7 +3887,7 @@ Page({ | ||
| 3882 | context.fillText("立即开始兑换", 40 * unit, 846 * unit); | 3887 | context.fillText("立即开始兑换", 40 * unit, 846 * unit); |
| 3883 | context.setFillStyle("black") | 3888 | context.setFillStyle("black") |
| 3884 | context.setFontSize(28 * unit) | 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,7 +3920,7 @@ Page({ | ||
| 3915 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); | 3920 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); |
| 3916 | context.setFillStyle("black") | 3921 | context.setFillStyle("black") |
| 3917 | context.setFontSize(28 * unit) | 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 | if(th.data.poster){ | 3926 | if(th.data.poster){ |
| @@ -3962,7 +3967,7 @@ Page({ | @@ -3962,7 +3967,7 @@ Page({ | ||
| 3962 | context.fillText("长按识别二维码,立即参团", 40 * unit, 866 * unit); | 3967 | context.fillText("长按识别二维码,立即参团", 40 * unit, 866 * unit); |
| 3963 | context.setFillStyle("black") | 3968 | context.setFillStyle("black") |
| 3964 | context.setFontSize(26 * unit) | 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 | if(th.data.poster){ | 3973 | if(th.data.poster){ |
| @@ -4016,7 +4021,7 @@ Page({ | @@ -4016,7 +4021,7 @@ Page({ | ||
| 4016 | 4021 | ||
| 4017 | context.setFillStyle("black") | 4022 | context.setFillStyle("black") |
| 4018 | context.setFontSize(26 * unit) | 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 | if(th.data.poster){ | 4027 | if(th.data.poster){ |