浏览代码

[producer] Correctif bug affichage iPhone

refactoring
Guillaume 4 年前
父节点
当前提交
a6a38326d2
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. +1
    -1
      producer/views/order/order.php
  2. +5
    -2
      producer/web/js/vuejs/order-order.js

+ 1
- 1
producer/views/order/order.php 查看文件

@@ -146,7 +146,7 @@ $producer = GlobalParam::getCurrentProducer() ;

<div class="panel panel-default">
<div class="panel-body">
<button class="btn btn-primary" @click="dayClickList" data-distribution-date="<?= $distribution->date.' 00:00' ?>">Sélectionner cette distribution</button>
<button class="btn btn-primary" @click="dayClickList" data-distribution-date="<?= $distribution->date.' 00:00:00' ?>">Sélectionner cette distribution</button>
<span class="date"><?= ucfirst(strftime('%A %d %B', strtotime($distribution->date))); ?></span>
<?php
if($pointSaleDistributions && count($pointSaleDistributions) > 0) {

+ 5
- 2
producer/web/js/vuejs/order-order.js 查看文件

@@ -214,8 +214,11 @@ var app = new Vue({
},
dayClickList: function(event) {
var dateStr = event.currentTarget.getAttribute('data-distribution-date') ;
var arr = dateStr.split(/[- :]/),
dateObject = new Date(arr[0], arr[1]-1, arr[2], arr[3], arr[4], arr[5]);
/*var arr = dateStr.split(/[- :]/),
dateObject = new Date(arr[0], arr[1]-1, arr[2], arr[3], arr[4], arr[5]);*/

var dateObject = Date.parse(String(dateStr));

console.log(dateObject) ;
//var dateObject = new Date(dateStr) ;
if(this.isAvailableDate(dateObject)) {

正在加载...
取消
保存