Authored by 陈林

修改null 判断逻辑,防止空字符串的情况。review by 张文文。

@@ -125,7 +125,7 @@ class GroupPurchaseContainer extends Component { @@ -125,7 +125,7 @@ class GroupPurchaseContainer extends Component {
125 } 125 }
126 126
127 let miniProgramPath; 127 let miniProgramPath;
128 - if (activityId == null) { 128 + if (!activityId) {
129 miniProgramPath = '/pages/group/list?'; 129 miniProgramPath = '/pages/group/list?';
130 } else { 130 } else {
131 miniProgramPath = '/pages/group/list?activityId=' + activityId; 131 miniProgramPath = '/pages/group/list?activityId=' + activityId;
@@ -16,7 +16,7 @@ export default class groupPurchaseService { @@ -16,7 +16,7 @@ export default class groupPurchaseService {
16 async fetchGroupProductList(activityId, page=1, limit=20, fromPage, listParams) { 16 async fetchGroupProductList(activityId, page=1, limit=20, fromPage, listParams) {
17 17
18 let bodyParam; 18 let bodyParam;
19 - if (activityId == null) { 19 + if (!activityId) {
20 bodyParam = { 20 bodyParam = {
21 method: 'app.collage.productList.page', 21 method: 'app.collage.productList.page',
22 ...listParams, 22 ...listParams,