|
@@ -1,12 +1,12 @@
|
|
<template>
|
|
<template>
|
|
- <view style="margin-top: 40px;">
|
|
|
|
|
|
+ <s-layout style="margin-top: 40px;">
|
|
<view style="background-color: #fff;">
|
|
<view style="background-color: #fff;">
|
|
- <view class="cu-bar bg-white ">
|
|
|
|
|
|
+ <!-- <view class="cu-bar bg-white ">
|
|
<view class="action">
|
|
<view class="action">
|
|
<text class="cuIcon-titles text-orange"></text> 配送方式
|
|
<text class="cuIcon-titles text-orange"></text> 配送方式
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <scroll-view scroll-x class="bg-white nav">
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+ <!-- <scroll-view scroll-x class="bg-white nav">
|
|
<view class="flex text-center">
|
|
<view class="flex text-center">
|
|
<view class="cu-item flex-sub" :class="TabCur=='1'?'text-orange cur':''" @tap="tabSelect" :data-id="1">
|
|
<view class="cu-item flex-sub" :class="TabCur=='1'?'text-orange cur':''" @tap="tabSelect" :data-id="1">
|
|
配送
|
|
配送
|
|
@@ -15,11 +15,10 @@
|
|
到店
|
|
到店
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </scroll-view>
|
|
|
|
|
|
+ </scroll-view> -->
|
|
<uni-datetime-picker type="datetime" v-model="datetimesingle" placeholder="预计时间" />
|
|
<uni-datetime-picker type="datetime" v-model="datetimesingle" placeholder="预计时间" />
|
|
</view>
|
|
</view>
|
|
- <view style="background-color: #fff;">
|
|
|
|
- <!-- <view style="font-size: 25px;padding:10px; border-bottom: 1px solid black;width: 100%;">收货地址</view><br /> -->
|
|
|
|
|
|
+ <!-- <view style="background-color: #fff;">
|
|
<view class="cu-bar bg-white ">
|
|
<view class="cu-bar bg-white ">
|
|
<view class="action">
|
|
<view class="action">
|
|
<text class="cuIcon-titles text-orange"></text> 收货地址
|
|
<text class="cuIcon-titles text-orange"></text> 收货地址
|
|
@@ -32,14 +31,14 @@
|
|
<view style="width: 100%;padding:10px;">{{ addressList.address }}</view>
|
|
<view style="width: 100%;padding:10px;">{{ addressList.address }}</view>
|
|
<button style="margin: 20px;" type="primary"
|
|
<button style="margin: 20px;" type="primary"
|
|
@tap="sheep.$router.go('/pages/user/address/edit')">修改地址</button>
|
|
@tap="sheep.$router.go('/pages/user/address/edit')">修改地址</button>
|
|
- </view>
|
|
|
|
- <view style="height: 50vh;">
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+ <view style="height: 90vh;">
|
|
<view class="cu-bar bg-white ">
|
|
<view class="cu-bar bg-white ">
|
|
<view class="action">
|
|
<view class="action">
|
|
<text class="cuIcon-titles text-orange"></text> 购物车
|
|
<text class="cuIcon-titles text-orange"></text> 购物车
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view style="height: 50vh;overflow-y: auto;background-color: #fff;">
|
|
|
|
|
|
+ <view style="height: 80vh;overflow-y: auto;background-color: #fff;">
|
|
<view v-for="(i, j) in nowCartList" :key="j" class="minmi" style="width: 100vw;">
|
|
<view v-for="(i, j) in nowCartList" :key="j" class="minmi" style="width: 100vw;">
|
|
<image class="imgPic" :src="i.url" mode=""></image>
|
|
<image class="imgPic" :src="i.url" mode=""></image>
|
|
<view class="rightContainer">
|
|
<view class="rightContainer">
|
|
@@ -49,7 +48,7 @@
|
|
<view class="foodPrice">
|
|
<view class="foodPrice">
|
|
<view class="priceflex">
|
|
<view class="priceflex">
|
|
<text class="zero">¥</text>
|
|
<text class="zero">¥</text>
|
|
- {{ i.price }}
|
|
|
|
|
|
+ {{ i.priceVisable }}
|
|
</view>
|
|
</view>
|
|
<view class="shopCar iconfont-themeColor-write" v-show="i.num == 0" @tap="addcart(i)">
|
|
<view class="shopCar iconfont-themeColor-write" v-show="i.num == 0" @tap="addcart(i)">
|
|
<text class="lg text-white cuIcon-add"></text>
|
|
<text class="lg text-white cuIcon-add"></text>
|
|
@@ -66,7 +65,7 @@
|
|
</view>
|
|
</view>
|
|
<button class="bg-red submit" @click="handleOk()">立即支付</button>
|
|
<button class="bg-red submit" @click="handleOk()">立即支付</button>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </s-layout>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -85,6 +84,10 @@ const addressList = computed(() => {
|
|
return addressList
|
|
return addressList
|
|
})
|
|
})
|
|
const handleOk= async () =>{
|
|
const handleOk= async () =>{
|
|
|
|
+ if(datetimesingle.value ==''){
|
|
|
|
+ sheep.$helper.toast('请选择用餐时间')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
let pamser = {
|
|
let pamser = {
|
|
name: addressList.value.name,
|
|
name: addressList.value.name,
|
|
phone: addressList.value.phone,
|
|
phone: addressList.value.phone,
|