|
@@ -200,13 +200,11 @@
|
|
|
<text style="color: #3385FF">¥{{ modifyPrice }}</text>
|
|
<text style="color: #3385FF">¥{{ modifyPrice }}</text>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="true">
|
|
|
|
|
- <view class="tui-title ">配送日期</view>
|
|
|
|
|
- <picker mode="date" :value="form.reachDate" @change="selTimeFn" class="tui-input">
|
|
|
|
|
- <view v-if="form.reachDate">{{ form.reachDate }}</view>
|
|
|
|
|
- <view v-else style="color:#CCCCCC;">可选日期,默认当天</view>
|
|
|
|
|
- </picker>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="true">
|
|
|
|
|
+ <view class="tui-title ">配送日期</view>
|
|
|
|
|
+ <view class="uni-input" v-if="form.reachDate==''" style="color:width:400upx;font-size:34upx;" @click="bindDateChange">今天</view>
|
|
|
|
|
+ <view class="uni-input" @click="bindDateChange" v-else style="width:400upx;font-size:34upx;">{{form.reachDate}}</view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="openTimePopup">
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="openTimePopup">
|
|
|
<view class="tui-title">配送时间</view>
|
|
<view class="tui-title">配送时间</view>
|
|
@@ -224,11 +222,16 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="under-bar">
|
|
<view class="under-bar">
|
|
|
- <view class="price-view">¥{{ modifyPrice }}</view>
|
|
|
|
|
- <button class="admin-button-com blue big" style="border:none;margin-right:38upx;width:280upx;" @click="confirmForm">提交</button>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <view class="price-view">¥{{ modifyPrice }}</view>
|
|
|
|
|
+ <button class="admin-button-com blue big" style="border:none;margin-right:38upx;width:280upx;" @click="confirmForm">提交</button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 配送日期选择器蒙板 -->
|
|
|
|
|
+ <view v-if="showDatePicker" class="date-picker-mask" @click="showDatePicker = false"></view>
|
|
|
|
|
+
|
|
|
|
|
+ <mx-date-picker :show="showDatePicker" format="yyyy-mm-dd" type="date" :value="defaultPickerDate" :show-tips="true" @confirm="confirmDatePicker" @cancel="showDatePicker = false" />
|
|
|
|
|
+
|
|
|
|
|
+</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
@@ -236,16 +239,20 @@ import productMins from "@/mixins/cgProduct";
|
|
|
import { buyItem,newFreight } from "@/api/order"
|
|
import { buyItem,newFreight } from "@/api/order"
|
|
|
import { allDeliveryQuotes } from "@/api/express/delivery"
|
|
import { allDeliveryQuotes } from "@/api/express/delivery"
|
|
|
import { currentInfo } from "@/api/user"
|
|
import { currentInfo } from "@/api/user"
|
|
|
|
|
+import MxDatePicker from '@/components/mx-datepicker/mx-datepicker.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: "affirmGhs",
|
|
name: "affirmGhs",
|
|
|
components: {
|
|
components: {
|
|
|
- TuiListCell
|
|
|
|
|
|
|
+ TuiListCell,
|
|
|
|
|
+ MxDatePicker
|
|
|
},
|
|
},
|
|
|
mixins: [productMins],
|
|
mixins: [productMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
pageType: "cg",
|
|
pageType: "cg",
|
|
|
list:[],
|
|
list:[],
|
|
|
|
|
+ showDatePicker: false,
|
|
|
|
|
+ defaultPickerDate: '',
|
|
|
form: {
|
|
form: {
|
|
|
reachDate: "",
|
|
reachDate: "",
|
|
|
reachPeriod: "20:00",
|
|
reachPeriod: "20:00",
|
|
@@ -424,6 +431,14 @@ export default {
|
|
|
selTimeFn(e) {
|
|
selTimeFn(e) {
|
|
|
this.form.reachDate = e.detail.value;
|
|
this.form.reachDate = e.detail.value;
|
|
|
},
|
|
},
|
|
|
|
|
+ bindDateChange() {
|
|
|
|
|
+ this.showDatePicker = true;
|
|
|
|
|
+ this.defaultPickerDate = this.form.reachDate;
|
|
|
|
|
+ },
|
|
|
|
|
+ confirmDatePicker(e) {
|
|
|
|
|
+ this.form.reachDate = e.value;
|
|
|
|
|
+ this.showDatePicker = false;
|
|
|
|
|
+ },
|
|
|
init(){
|
|
init(){
|
|
|
if(this.option.account){
|
|
if(this.option.account){
|
|
|
this.account = this.option.account
|
|
this.account = this.option.account
|
|
@@ -612,7 +627,12 @@ export default {
|
|
|
const isFreeDelivery = this.checkFreeDelivery()
|
|
const isFreeDelivery = this.checkFreeDelivery()
|
|
|
console.log('selectDelivery -- isFreeDelivery: ',isFreeDelivery)
|
|
console.log('selectDelivery -- isFreeDelivery: ',isFreeDelivery)
|
|
|
},
|
|
},
|
|
|
- confirmForm() {
|
|
|
|
|
|
|
+ confirmForm(){
|
|
|
|
|
+ this.$util.confirmModal({content:'确认提交?'},() => {
|
|
|
|
|
+ this.submitMyForm()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ submitMyForm() {
|
|
|
const product = this.selectList.map(ele => {
|
|
const product = this.selectList.map(ele => {
|
|
|
let unitType = 0
|
|
let unitType = 0
|
|
|
let num = ele.bigCount
|
|
let num = ele.bigCount
|
|
@@ -1048,4 +1068,34 @@ export default {
|
|
|
color: #3385FF;
|
|
color: #3385FF;
|
|
|
margin-left: 10upx;
|
|
margin-left: 10upx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+/* 日期选择器蒙板 */
|
|
|
|
|
+.date-picker-mask {
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
+ z-index: 99;
|
|
|
|
|
+ animation: fadeIn 0.3s ease-in-out;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+@keyframes fadeIn {
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+@keyframes fadeOut {
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|