jufubao-food 1.0.15-beta2 → 1.0.15-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-food",
3
- "version": "1.0.15-beta2",
3
+ "version": "1.0.15-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件餐饮插件包",
6
6
  "main": "index.js",
@@ -21,7 +21,9 @@
21
21
  <view class="shop_wrap" @click="toSwitchShop">
22
22
  <view class="shop_info">
23
23
  <view class="_name"><xd-font-icon icon="iconshouye" :color="mainColor" size="36" style="margin-right: 8rpx;"></xd-font-icon>{{ shopInfo.shop_name }}</view>
24
- <view class="_dist">{{ shopInfo.distance_conversion}}
24
+ <view class="_dist">
25
+ <!-- {{ shopInfo.distance_conversion}} -->
26
+ 更多门店
25
27
  <xd-font-icon icon="iconxiangyou_xian" color="#666666" :size="20" style="margin-left: 8rpx;"></xd-font-icon>
26
28
  </view>
27
29
  </view>
@@ -118,8 +118,15 @@
118
118
  <xd-unit :price="cartPrice" :isOld="false"></xd-unit>
119
119
  </view>
120
120
  <view>
121
- <xd-button v-if="cartProductList.length" width="170rpx" size="small" type="primary" @click="handleSubmitCart">选好了</xd-button>
122
- <xd-button v-else width="170rpx" size="small" type="primary" :disabled="true">选好了</xd-button>
121
+ <xd-button v-if="cartProductList.length"
122
+ :cusStyle="{fontSize: '28rpx'}"
123
+ width="170rpx" size="small" type="primary"
124
+ @click="handleSubmitCart"
125
+ >选好了</xd-button>
126
+ <xd-button v-else
127
+ :cusStyle="{fontSize: '28rpx'}"
128
+ width="170rpx" size="small" type="primary" :disabled="true"
129
+ >选好了</xd-button>
123
130
  </view>
124
131
  </view>
125
132
  <view class="cart_product_modal" v-if="cartProductShow">
@@ -170,14 +177,17 @@
170
177
  @click="setCurShop(i)"
171
178
  >
172
179
  <view class="shop_name_bar">
173
- <view class="shop_name">{{item.resource_shop_name}} <view class="curr_active">正在预览</view></view>
180
+ <view class="shop_name">
181
+ <text style="margin-right: 16rpx;">{{item.resource_shop_name}}</text>
182
+ <view class="curr_active">正在预览</view>
183
+ </view>
174
184
  <view class="more_r">详情 <xd-font-icon icon="iconxiangyou_xian" :size="24"></xd-font-icon></view>
175
185
  </view>
176
186
  <view class="shop_addr_bar">
177
187
  <view>{{item.address}}</view>
178
188
  <view>{{item.distance}}</view>
179
189
  </view>
180
- <view class="shop_time">营业时间:09-21:00</view>
190
+ <view class="shop_time" v-if="item.business_time_name">营业时间:{{ item.business_time_name }}</view>
181
191
  </view>
182
192
  </view>
183
193
  <view class="chose_other" @click="handleSwitchShop">选择其他门店 <xd-font-icon icon="iconxiangyou_xian" :size="24"></xd-font-icon></view>
@@ -380,8 +390,8 @@
380
390
  * @param container {object} 业务组件对象自己
381
391
  */
382
392
  init(container) {
383
- this.foodDetailPath = getContainerPropsValue(container, 'content.foodDetailPath', {value: "/Smallline/food/pinfo"}).value;
384
- this.confirmPath = getContainerPropsValue(container, 'content.confirmPath', {value: "/Smallline/food/confirmv2"}).value;
393
+ this.foodDetailPath = getContainerPropsValue(container, 'content.foodDetailPath', {value: ""}).value;
394
+ this.confirmPath = getContainerPropsValue(container, 'content.confirmPath', {value: ""}).value;
385
395
  this.switchStorePath = getContainerPropsValue(container, 'content.switchStorePath', { value: ''}).value;
386
396
  this.showDiscount = gCPVal(container, 'showDiscount', "Y");
387
397
  this.differ = gCPVal(container, 'differ', 1);
@@ -474,7 +484,7 @@
474
484
  },
475
485
  handleSwitchShop(){
476
486
  this.$xdUniHelper.navigateTo({
477
- url: this.switchStorePath + "?brand_id=" + this.shopInfo.brand_id + "&resource_shop_id=" + this.resource_shop_id,
487
+ url: this.switchStorePath + "?brand_id=" + this.brand_id + "&resource_shop_id=" + this.resource_shop_id,
478
488
  })
479
489
  },
480
490
  setCurShop(index){
@@ -1304,7 +1314,7 @@
1304
1314
  }
1305
1315
  }
1306
1316
  .take_shop_wrap{
1307
- background-color: #eee;
1317
+ background-color: #f8f8f8;
1308
1318
  .take_title{
1309
1319
  background-color: #FFFFFF;
1310
1320
  padding: 24rpx 32rpx;
@@ -1333,19 +1343,20 @@
1333
1343
  background-color: rgba(229, 1, 14, 0.03);
1334
1344
  .shop_name_bar{
1335
1345
  .curr_active{
1336
- display: flex;
1346
+ display: inline-flex;
1337
1347
  }
1338
1348
  }
1339
1349
  }
1340
1350
  .shop_name_bar{
1341
1351
  display: flex;
1342
- align-items: center;
1352
+ align-items: flex-start;
1343
1353
  justify-content: space-between;
1344
1354
  font-size: 32rpx;
1345
1355
  color: #333333;
1346
1356
  .shop_name{
1347
- display: flex;
1348
1357
  align-items: center;
1358
+ flex: 1;
1359
+ padding-right: 40rpx;
1349
1360
  }
1350
1361
  .curr_active{
1351
1362
  border: 1px solid rgba(229, 1, 14, 0.2);
@@ -1356,7 +1367,7 @@
1356
1367
  align-items: center;
1357
1368
  justify-content: center;
1358
1369
  font-size: 24rpx;
1359
- margin-left: 16rpx;
1370
+ // margin-left: 16rpx;
1360
1371
  display: none;
1361
1372
  }
1362
1373
  .more_r{
@@ -1364,6 +1375,7 @@
1364
1375
  align-items: center;
1365
1376
  color: #999999;
1366
1377
  font-size: 24rpx;
1378
+ padding-top: 8rpx;
1367
1379
  }
1368
1380
  }
1369
1381
  .shop_addr_bar{
@@ -192,7 +192,7 @@ export default function (data={},gValue={},gColor={},oldData) {
192
192
  ele: 'xd-radio',
193
193
  groupKey: 'style',
194
194
  valueKey: 'radiusStatus',
195
- value: statusDataVal({data, key:'radiusStatus', cValue:'N',}),
195
+ value: statusDataVal({data, key:'radiusStatus', cValue:'D',}),
196
196
  labelInline:true,
197
197
  list: [
198
198
  {label: '默认', value: 'D'},
@@ -234,7 +234,7 @@ export default function (data={},gValue={},gColor={},oldData) {
234
234
  ele: 'xd-radio',
235
235
  groupKey: 'style',
236
236
  valueKey: 'imageRadiusStatus',
237
- value: statusDataVal({data, key:'imageRadiusStatus', cValue:'N'}),
237
+ value: statusDataVal({data, key:'imageRadiusStatus', cValue:'D'}),
238
238
  labelInline:true,
239
239
  list: [
240
240
  {label: '默认', value: 'D'},