2021-05-13 11:03:32 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
<!-- 选择地址 -->
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div class="address-box" @click="clickToAddress()">
|
|
|
|
|
<div class="user-box flex">
|
|
|
|
|
<div class="flex-8">
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<div v-if="!address.id">请选择地址</div>
|
|
|
|
|
<div v-else>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div class="user-address">
|
|
|
|
|
<!-- 省市区 -->
|
|
|
|
|
<div class="flex flex-a-c">
|
|
|
|
|
<span class="default" v-if="address.isDefault">默认</span>
|
|
|
|
|
<div class="address-list" v-if="address.consigneeAddressPath.length != 0">
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span
|
|
|
|
|
class="address-item"
|
|
|
|
|
v-for="(item, index) in address.consigneeAddressPath"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
{{ item }}
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 详细地址 -->
|
|
|
|
|
<div class="user-address-detail wes-2">
|
2021-05-13 11:03:32 +08:00
|
|
|
|
{{ address.detail }}
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!-- 姓名 手机号 -->
|
|
|
|
|
<div>
|
|
|
|
|
<span>{{ address.name }}</span>
|
|
|
|
|
<span class="mobile">{{ address.mobile | secrecyMobile }}</span>
|
|
|
|
|
</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
<u-icon name="arrow-right" style="color: #bababa"></u-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 背景 -->
|
|
|
|
|
<div class="bar"></div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 开团信息 -->
|
|
|
|
|
<view class="group-box" v-if="isAssemble">
|
|
|
|
|
<view class="group-title">
|
|
|
|
|
<span v-if="pintuanFlage">你正在开团购买</span>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span v-else
|
|
|
|
|
>为你加入仅差<span>{{ routerVal.parentOrder.toBeGroupedNum }}</span
|
|
|
|
|
>人的团购买</span
|
|
|
|
|
>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="group">
|
|
|
|
|
<view>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-image
|
|
|
|
|
borderRadius="50%"
|
|
|
|
|
shape="square"
|
|
|
|
|
class="head-img"
|
|
|
|
|
width="81rpx"
|
|
|
|
|
height="81rpx"
|
|
|
|
|
:src="masterWay.face || '/static/missing-face.png'"
|
|
|
|
|
></u-image>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<view class="btn-one">团长</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="line"> </view>
|
|
|
|
|
<view>
|
|
|
|
|
<!-- 如果有最后一名,显示最后一名,没有最后一名,显示等待参团 -->
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-image
|
|
|
|
|
class="head-img"
|
|
|
|
|
v-if="endWay.face"
|
|
|
|
|
:src="endWay.face"
|
|
|
|
|
borderRadius="50%"
|
|
|
|
|
shape="square"
|
|
|
|
|
width="81rpx"
|
|
|
|
|
height="81rpx"
|
|
|
|
|
>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<view slot="loading"></view>
|
|
|
|
|
</u-image>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-image
|
|
|
|
|
class="head-img"
|
|
|
|
|
borderRadius="50%"
|
|
|
|
|
shape="square"
|
|
|
|
|
v-else
|
|
|
|
|
width="81rpx"
|
|
|
|
|
height="81rpx"
|
|
|
|
|
:src="endWay.face || '/static/missing-face.png'"
|
|
|
|
|
></u-image>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
|
|
<view class="wait">{{ endWay.nickname || "等待参团" }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 店铺商品信息 -->
|
|
|
|
|
<div class="box box2" v-for="(item, index) in orderMessage.cartList" :key="index">
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div @click="navigateToStore(item)">
|
|
|
|
|
<div class="store-name">
|
|
|
|
|
<span>{{ item.storeName }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<div class="promotionNotice">{{ item.promotionNotice || "" }}</div>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div class="flex goods-item" v-for="(val, i) in item.skuList" :key="i">
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<div
|
|
|
|
|
class="goods-image"
|
|
|
|
|
@click="
|
|
|
|
|
navigateTo(
|
|
|
|
|
'/pages/product/goods?id=' +
|
|
|
|
|
val.goodsSku.id +
|
|
|
|
|
'&goodsId=' +
|
|
|
|
|
val.goodsSku.goodsId
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
:span="3"
|
|
|
|
|
>
|
|
|
|
|
<u-image
|
|
|
|
|
borderRadius="10rpx"
|
|
|
|
|
width="200rpx"
|
|
|
|
|
height="200rpx"
|
|
|
|
|
:src="val.goodsSku.thumbnail"
|
|
|
|
|
alt
|
|
|
|
|
/>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</div>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<div
|
|
|
|
|
@click="
|
|
|
|
|
navigateTo(
|
|
|
|
|
'/pages/product/goods?id=' +
|
|
|
|
|
val.goodsSku.id +
|
|
|
|
|
'&goodsId=' +
|
|
|
|
|
val.goodsSku.goodsId
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
class="goods-detail"
|
|
|
|
|
>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div class="flex">
|
|
|
|
|
<p class="goods-name">{{ val.goodsSku.goodsName }}</p>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<span class="nums">x{{ val.num }}</span>
|
|
|
|
|
</div>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<p class="goods-prices">
|
|
|
|
|
<span>¥</span>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span class="goods-price">{{ formatPrice(val.goodsSku.price)[0] }}</span>
|
|
|
|
|
<span>.{{ formatPrice(val.goodsSku.price)[1] }}</span>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<u-row>
|
|
|
|
|
<u-col :offset="0" :span="4">发票信息</u-col>
|
|
|
|
|
<u-col :span="8" class="tipsColor" textAlign="right" @click.native="invoice()">
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span v-if="receiptList"
|
|
|
|
|
>{{ receiptList.receiptTitle }} - {{ receiptList.receiptContent }}</span
|
|
|
|
|
>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<span v-else>不开发票</span>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-col
|
|
|
|
|
v-if="orderMessage.cartTypeEnum != 'VIRTUAL'"
|
|
|
|
|
:offset="0"
|
|
|
|
|
:span="9"
|
|
|
|
|
@click="shippingFlag = true"
|
|
|
|
|
>配送
|
2021-08-26 18:08:16 +08:00
|
|
|
|
</u-col>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-col
|
|
|
|
|
v-if="orderMessage.cartTypeEnum != 'VIRTUAL'"
|
|
|
|
|
:span="3"
|
|
|
|
|
textAlign="right"
|
|
|
|
|
@click="shippingFlag = true"
|
|
|
|
|
>
|
|
|
|
|
{{
|
|
|
|
|
shippingMethod.find((e) => {
|
|
|
|
|
return e.value == shippingText;
|
|
|
|
|
}).label
|
|
|
|
|
}}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
<u-row>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<u-col :offset="0" :span="4" class="tl" style="text-align: left">备注信息</u-col>
|
|
|
|
|
<u-col :span="8" textAlign="right">
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-input
|
|
|
|
|
style="text-align: right"
|
|
|
|
|
class="uinput"
|
|
|
|
|
v-model="remarkVal[index].remark"
|
|
|
|
|
/>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<!-- 发票信息 -->
|
|
|
|
|
<invoices :res="receiptList" @callbackInvoice="callbackInvoice" v-if="invoiceFlag" />
|
|
|
|
|
<u-select v-model="shippingFlag" :list="shippingMethod"></u-select>
|
|
|
|
|
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<div class="box box5" v-if="orderMessage.priceDetailDTO">
|
|
|
|
|
<div>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-col :span="9">商品合计</u-col>
|
|
|
|
|
<u-col :span="3" textAlign="right">
|
|
|
|
|
<span>¥{{ orderMessage.priceDetailDTO.goodsPrice | unitPrice }}</span>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<u-row>
|
2021-07-02 17:58:49 +08:00
|
|
|
|
<u-col v-if="orderMessage.cartTypeEnum != 'VIRTUAL'" :span="7">运费</u-col>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-col
|
|
|
|
|
v-if="orderMessage.cartTypeEnum != 'VIRTUAL'"
|
|
|
|
|
:span="5"
|
|
|
|
|
class="tr tipsColor"
|
|
|
|
|
textAlign="right"
|
|
|
|
|
>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<span v-if="orderMessage.priceDetailDTO.freightPrice == 0">包邮</span>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span v-else
|
|
|
|
|
>¥{{ orderMessage.priceDetailDTO.freightPrice | unitPrice }}</span
|
|
|
|
|
>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</div>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<u-row>
|
|
|
|
|
<u-col :offset="0" :span="9" @click="GET_Discount()">优惠券</u-col>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-col
|
|
|
|
|
:span="3"
|
|
|
|
|
v-if="orderMessage.priceDetailDTO && orderMessage.priceDetailDTO.couponPrice"
|
|
|
|
|
textAlign="right"
|
|
|
|
|
@click="GET_Discount()"
|
|
|
|
|
>
|
|
|
|
|
<span class="main-color"
|
|
|
|
|
>-¥{{ orderMessage.priceDetailDTO.couponPrice | unitPrice }}</span
|
|
|
|
|
>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</u-col>
|
|
|
|
|
<!-- orderMessage.priceDetailDTO.couponPrice | unitPrice -->
|
|
|
|
|
<u-col :span="3" v-else textAlign="right" @click="GET_Discount()">
|
|
|
|
|
{{ orderMessage.canUseCoupons.length || "0" }} 张可用
|
|
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<div>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-col :span="9">优惠金额</u-col>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<u-col
|
|
|
|
|
:span="3"
|
|
|
|
|
textAlign="right"
|
|
|
|
|
v-if="orderMessage.priceDetailDTO.couponPrice"
|
|
|
|
|
>
|
|
|
|
|
<span class="main-color">
|
|
|
|
|
-¥{{ orderMessage.priceDetailDTO.couponPrice | unitPrice }}</span
|
|
|
|
|
></u-col
|
|
|
|
|
>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<u-col :span="3" textAlign="right" v-else>0.00</u-col>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</u-row>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<u-row>
|
|
|
|
|
<u-col :span="6">活动优惠</u-col>
|
|
|
|
|
<u-col :span="6" class="tr tipsColor" textAlign="right">
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span v-if="orderMessage.priceDetailDTO.discountPrice"
|
|
|
|
|
>-¥{{ orderMessage.priceDetailDTO.discountPrice | unitPrice }}</span
|
|
|
|
|
>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<span v-else>0.00</span>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-07-01 15:25:00 +08:00
|
|
|
|
<!-- 配送地区没有提示 -->
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<div class="notSupportFreight" v-if="notSupportFreight.length != 0">
|
|
|
|
|
<u-notice-bar
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:volume-icon="false"
|
|
|
|
|
mode="horizontal"
|
|
|
|
|
:list="notSupportFreightGoodsList"
|
|
|
|
|
>
|
2021-08-26 18:08:16 +08:00
|
|
|
|
</u-notice-bar>
|
2021-07-01 15:25:00 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<!-- 结账 -->
|
2021-09-01 17:30:54 +08:00
|
|
|
|
|
2021-07-01 15:25:00 +08:00
|
|
|
|
<div class="box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
|
|
|
|
|
<div class="tabbar-left">
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<div v-if="!orderMessage.priceDetailDTO.payPoint" class="number">
|
|
|
|
|
<span>¥</span>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span class="price">{{
|
|
|
|
|
formatPrice(orderMessage.priceDetailDTO.flowPrice)[0]
|
|
|
|
|
}}</span>
|
|
|
|
|
<span>.{{ formatPrice(orderMessage.priceDetailDTO.flowPrice)[1] }} </span>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
</div>
|
2022-01-21 19:02:06 +08:00
|
|
|
|
<span v-else class="number"
|
|
|
|
|
><span style="margin-right: 10rpx">{{
|
|
|
|
|
orderMessage.priceDetailDTO.payPoint | unitPrice
|
|
|
|
|
}}</span
|
|
|
|
|
>积分</span
|
|
|
|
|
>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="navRiv" @click="createTradeFun()">
|
|
|
|
|
<!-- #ifndef MP-WEIXIN -->
|
2021-07-01 15:25:00 +08:00
|
|
|
|
<div class="tabbar-right">提交订单</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<!-- #endif -->
|
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
2021-07-01 15:25:00 +08:00
|
|
|
|
<div class="tabbar-right">微信支付</div>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<!-- #endif -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import * as API_Trade from "@/api/trade";
|
|
|
|
|
import * as API_Address from "@/api/address";
|
|
|
|
|
import * as API_Order from "@/api/order";
|
|
|
|
|
import invoices from "@/pages/order/invoice/setInvoice";
|
|
|
|
|
|
|
|
|
|
import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
onLoad: function (val) {
|
|
|
|
|
this.routerVal = val;
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
invoices,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
watch: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
invoiceFlag: false, //开票开关
|
|
|
|
|
shippingText: "LOGISTICS",
|
|
|
|
|
shippingFlag: false,
|
|
|
|
|
shippingMethod: [
|
|
|
|
|
{
|
|
|
|
|
value: "LOGISTICS",
|
|
|
|
|
label: "物流",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
isAssemble: false, //是否拼团
|
|
|
|
|
couponNums: "", //结算页面优惠券数量
|
|
|
|
|
selectAddressId: "",
|
|
|
|
|
routerVal: "",
|
|
|
|
|
params: {},
|
|
|
|
|
// 优惠劵
|
|
|
|
|
couponList: "",
|
|
|
|
|
// 已选地址
|
|
|
|
|
address: "",
|
|
|
|
|
// 发票信息
|
|
|
|
|
receiptList: "",
|
|
|
|
|
// 店铺信息
|
|
|
|
|
orderMessage: "",
|
|
|
|
|
data: "",
|
|
|
|
|
// 存储备注
|
|
|
|
|
remarkVal: [],
|
|
|
|
|
detail: "", //返回的所有数据
|
|
|
|
|
endWay: "", //最后一个参团人
|
|
|
|
|
masterWay: "", //团长信息
|
|
|
|
|
pintuanFlage: true, //是开团还是拼团
|
2021-07-01 15:25:00 +08:00
|
|
|
|
notSupportFreight: [], //不支持运费
|
2021-07-01 15:46:42 +08:00
|
|
|
|
notSupportFreightGoodsList: ["以下商品超出配送范围:"],
|
2021-05-13 11:03:32 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
filters: {
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
|
|
|
|
* 发票收据类型
|
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
receiptType(type) {
|
|
|
|
|
switch (type) {
|
|
|
|
|
case "VATORDINARY":
|
|
|
|
|
return "增值税普通发票";
|
|
|
|
|
case "ELECTRO":
|
|
|
|
|
return "电子普通发票";
|
|
|
|
|
case "VATOSPECIAL":
|
|
|
|
|
return "增值税专用发票";
|
|
|
|
|
default:
|
|
|
|
|
return "不开发票";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 监听返回
|
|
|
|
|
*/
|
|
|
|
|
onBackPress(e) {
|
|
|
|
|
if (e.from == "backbutton") {
|
|
|
|
|
let routes = getCurrentPages();
|
|
|
|
|
let curRoute = routes[routes.length - 1].options;
|
|
|
|
|
routes.forEach((item) => {
|
|
|
|
|
if (
|
|
|
|
|
item.route == "pages/tabbar/cart/cartList" ||
|
|
|
|
|
item.route.indexOf("pages/product/goods") != -1
|
|
|
|
|
) {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: item.route,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (curRoute.addId) {
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: "/pages/tabbar/cart/cartList",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateBack();
|
|
|
|
|
}
|
|
|
|
|
return true; //阻止默认返回行为
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onShow() {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
this.getOrderList();
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
if (this.routerVal.way == "PINTUAN") {
|
|
|
|
|
this.isAssemble = true;
|
|
|
|
|
this.routerVal.parentOrder = JSON.parse(
|
|
|
|
|
decodeURIComponent(this.routerVal.parentOrder)
|
|
|
|
|
);
|
|
|
|
|
this.pintuanWay();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
|
|
|
|
|
methods: {
|
2021-09-01 17:30:54 +08:00
|
|
|
|
// 格式化金钱 1999 --> [1999,00]
|
|
|
|
|
formatPrice(val) {
|
|
|
|
|
if (typeof val == "undefined") {
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
return val.toFixed(2).split(".");
|
|
|
|
|
},
|
2021-05-13 11:03:32 +08:00
|
|
|
|
//发票回调 选择发票之后刷新购物车
|
|
|
|
|
async callbackInvoice(val) {
|
|
|
|
|
this.invoiceFlag = false;
|
|
|
|
|
this.receiptList = val;
|
|
|
|
|
if (val) {
|
|
|
|
|
let submit = {
|
|
|
|
|
way: this.routerVal.way,
|
|
|
|
|
...this.receiptList,
|
|
|
|
|
};
|
|
|
|
|
let receipt = await API_Order.getReceipt(submit);
|
|
|
|
|
if (receipt.data.success) {
|
|
|
|
|
this.shippingFlag = false;
|
|
|
|
|
this.getOrderList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 跳转到店铺
|
2021-05-17 18:19:26 +08:00
|
|
|
|
navigateToStore(val) {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/pages/product/shopPage?id=" + val.storeId,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 点击跳转地址
|
|
|
|
|
clickToAddress() {
|
|
|
|
|
this.navigateTo(
|
|
|
|
|
`/pages/mine/address/address?from=cart&way=${
|
|
|
|
|
this.routerVal.way
|
2022-01-21 19:02:06 +08:00
|
|
|
|
}&parentOrder=${encodeURIComponent(JSON.stringify(this.routerVal.parentOrder))}`
|
2021-05-13 11:03:32 +08:00
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 判断团长以及团员信息
|
|
|
|
|
pintuanWay() {
|
|
|
|
|
const { memberId } = this.routerVal.parentOrder;
|
|
|
|
|
|
|
|
|
|
const userInfo = this.$options.filters.isLogin();
|
|
|
|
|
if (memberId) {
|
|
|
|
|
this.endWay = userInfo;
|
|
|
|
|
this.masterWay = this.routerVal.parentOrder;
|
|
|
|
|
this.pintuanFlage = false;
|
|
|
|
|
} else {
|
|
|
|
|
this.pintuanFlage = true;
|
|
|
|
|
this.masterWay = userInfo;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 判断发票
|
|
|
|
|
invoice() {
|
|
|
|
|
this.invoiceFlag = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 领取优惠券
|
|
|
|
|
GET_Discount() {
|
|
|
|
|
// 循环店铺id,商品id获取优惠券
|
|
|
|
|
let store = [];
|
|
|
|
|
let skus = [];
|
2022-01-21 19:02:06 +08:00
|
|
|
|
let selectedCoupon = [];
|
|
|
|
|
if (this.orderMessage.platformCoupon)
|
|
|
|
|
selectedCoupon.push(this.orderMessage.platformCoupon.memberCoupon.id);
|
|
|
|
|
if (
|
|
|
|
|
this.orderMessage.storeCoupons &&
|
|
|
|
|
Object.keys(this.orderMessage.storeCoupons)[0]
|
|
|
|
|
) {
|
|
|
|
|
let storeMemberCouponsId = Object.keys(this.orderMessage.storeCoupons)[0];
|
|
|
|
|
let storeCouponId = this.orderMessage.storeCoupons[storeMemberCouponsId]
|
|
|
|
|
.memberCoupon.id;
|
|
|
|
|
selectedCoupon.push(storeCouponId);
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
this.orderMessage.cartList.forEach((item) => {
|
|
|
|
|
item.skuList.forEach((sku) => {
|
|
|
|
|
store.push(sku.storeId);
|
|
|
|
|
skus.push(sku.goodsSku.id);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
store = Array.from(new Set(store));
|
|
|
|
|
skus = Array.from(new Set(skus));
|
|
|
|
|
uni.setStorage({
|
|
|
|
|
key: "totalPrice",
|
|
|
|
|
data: this.orderMessage.priceDetailDTO.goodsPrice,
|
|
|
|
|
});
|
|
|
|
|
this.navigateTo(
|
2022-01-21 19:02:06 +08:00
|
|
|
|
`/pages/cart/coupon/index?way=${this.routerVal.way}&storeId=${store}&skuId=${skus}&selectedCoupon=${selectedCoupon}`
|
2021-05-13 11:03:32 +08:00
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
|
|
|
|
* 跳转
|
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
navigateTo(url) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
|
|
|
|
* 提交订单准备支付
|
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2021-06-04 18:11:34 +08:00
|
|
|
|
// 创建订单
|
|
|
|
|
createTradeFun() {
|
|
|
|
|
// 防抖
|
|
|
|
|
this.$u.throttle(() => {
|
|
|
|
|
if (!this.address.id) {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
uni.showToast({
|
2021-06-04 18:11:34 +08:00
|
|
|
|
title: "请选择地址",
|
2021-05-13 11:03:32 +08:00
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
2021-06-04 18:11:34 +08:00
|
|
|
|
return false;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
2021-06-04 18:11:34 +08:00
|
|
|
|
// 创建订单
|
|
|
|
|
let client;
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
client = "H5";
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
client = "WECHAT_MP";
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
|
client = "APP";
|
|
|
|
|
// #endif
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2021-06-04 18:11:34 +08:00
|
|
|
|
let submit = {
|
|
|
|
|
client,
|
|
|
|
|
way: this.routerVal.way,
|
|
|
|
|
remark: this.remarkVal,
|
|
|
|
|
parentOrderSn: "",
|
|
|
|
|
};
|
|
|
|
|
// 如果是拼团并且当前用户不是团长
|
|
|
|
|
this.routerVal.parentOrder && this.routerVal.parentOrder.orderSn
|
|
|
|
|
? (submit.parentOrderSn = this.routerVal.parentOrder.orderSn)
|
|
|
|
|
: delete submit.parentOrderSn;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 创建订单
|
|
|
|
|
*/
|
|
|
|
|
API_Trade.createTrade(submit).then((res) => {
|
|
|
|
|
if (res.data.success) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "创建订单成功!",
|
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
2021-06-08 18:46:25 +08:00
|
|
|
|
// 如果当前价格为0跳转到订单列表
|
|
|
|
|
if (this.orderMessage.priceDetailDTO.billPrice == 0) {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/order/myOrder?status=0",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
// 微信小程序中点击创建订单直接开始支付
|
|
|
|
|
this.pay(res.data.result.sn);
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
// #ifndef MP-WEIXIN
|
|
|
|
|
this.navigateTo(
|
|
|
|
|
`/pages/cart/payment/payOrder?trade_sn=${res.data.result.sn}`
|
|
|
|
|
);
|
|
|
|
|
// #endif
|
|
|
|
|
}
|
2021-06-04 18:11:34 +08:00
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
2021-07-01 15:25:00 +08:00
|
|
|
|
title: res.data.message,
|
2021-06-04 18:11:34 +08:00
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, 3000);
|
2021-05-13 11:03:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
2021-05-17 18:19:26 +08:00
|
|
|
|
/**
|
|
|
|
|
* 微信小程序中直接支付
|
|
|
|
|
*/
|
2021-05-13 11:03:32 +08:00
|
|
|
|
async pay(sn) {
|
|
|
|
|
new LiLiWXPay({
|
|
|
|
|
sn: sn,
|
|
|
|
|
price: this.orderMessage.priceDetailDTO.billPrice,
|
|
|
|
|
}).pay();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
2021-05-17 18:19:26 +08:00
|
|
|
|
* 获取用户地址
|
2021-05-13 11:03:32 +08:00
|
|
|
|
*/
|
|
|
|
|
getUserAddress() {
|
|
|
|
|
// 如果没有商品选择地址的话 则选择 默认地址
|
|
|
|
|
API_Address.getAddressDefault().then((res) => {
|
|
|
|
|
if (res.data.result) {
|
2022-01-21 19:02:06 +08:00
|
|
|
|
res.data.result.consigneeAddressPath = res.data.result.consigneeAddressPath.split(
|
|
|
|
|
","
|
|
|
|
|
);
|
2021-05-13 11:03:32 +08:00
|
|
|
|
this.address = res.data.result;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取结算参数
|
|
|
|
|
getOrderList() {
|
2022-01-21 19:02:06 +08:00
|
|
|
|
this.notSupportFreight = [];
|
2021-05-13 11:03:32 +08:00
|
|
|
|
// 获取结算参数
|
|
|
|
|
API_Trade.getCheckoutParams(this.routerVal.way).then((res) => {
|
2022-01-04 19:58:01 +08:00
|
|
|
|
if (res.data.result.skuList.length <= 0) {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/order/myOrder?status=0",
|
|
|
|
|
});
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
res.data.result.cartList.forEach((item, index) => {
|
|
|
|
|
this.remarkVal[index] = {
|
|
|
|
|
remark: item.remark,
|
|
|
|
|
storeId: item.storeId,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
this.orderMessage = res.data.result;
|
2021-08-26 18:08:16 +08:00
|
|
|
|
/**
|
|
|
|
|
* 为了避免路径传值在h5中超出限制问题
|
|
|
|
|
* 这块将可用的优惠券以及不可用的优惠券放入到vuex里面进行存储
|
|
|
|
|
*/
|
|
|
|
|
this.$store.state.canUseCoupons = res.data.result.canUseCoupons;
|
|
|
|
|
this.$store.state.cantUseCoupons = res.data.result.cantUseCoupons;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
|
|
if (!res.data.result.memberAddress.id) {
|
|
|
|
|
// 获取会员默认地址
|
|
|
|
|
this.getUserAddress();
|
|
|
|
|
} else {
|
|
|
|
|
this.address = res.data.result.memberAddress;
|
2022-01-21 19:02:06 +08:00
|
|
|
|
res.data.result.memberAddress.consigneeAddressPath = res.data.result.memberAddress.consigneeAddressPath.split(
|
|
|
|
|
","
|
|
|
|
|
);
|
2021-07-01 15:25:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-02 17:58:49 +08:00
|
|
|
|
if (
|
|
|
|
|
res.data.result.notSupportFreight &&
|
|
|
|
|
res.data.result.notSupportFreight.length != 0
|
|
|
|
|
) {
|
2021-07-01 15:25:00 +08:00
|
|
|
|
this.notSupportFreight = res.data.result.notSupportFreight;
|
2021-07-01 15:46:42 +08:00
|
|
|
|
|
|
|
|
|
res.data.result.notSupportFreight.forEach((item) => {
|
|
|
|
|
this.notSupportFreightGoodsList[0] += item.goodsSku.goodsName;
|
|
|
|
|
});
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
2021-09-01 17:30:54 +08:00
|
|
|
|
<style scoped>
|
|
|
|
|
page {
|
|
|
|
|
background: #ededed !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2021-05-13 11:03:32 +08:00
|
|
|
|
<style scoped lang="scss">
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.flex-8 {
|
|
|
|
|
flex: 8;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-13 11:03:32 +08:00
|
|
|
|
.main-color {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
.uinput {
|
|
|
|
|
/deep/ input {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.promotionNotice {
|
|
|
|
|
font-size: 24rpx;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
margin: 20rpx 0;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
color: $aider-light-color;
|
|
|
|
|
}
|
|
|
|
|
.nums {
|
2021-09-01 17:30:54 +08:00
|
|
|
|
flex: 2;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
color: $light-color;
|
2022-01-21 19:02:06 +08:00
|
|
|
|
|
2021-05-13 11:03:32 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.wait {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #cccccc;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line {
|
|
|
|
|
margin-left: 14rpx;
|
|
|
|
|
margin-right: 14rpx;
|
|
|
|
|
margin-bottom: 50rpx;
|
|
|
|
|
width: 143rpx;
|
|
|
|
|
border-bottom: 2px dotted #999;
|
|
|
|
|
}
|
2021-07-01 15:25:00 +08:00
|
|
|
|
.tabbar-left {
|
|
|
|
|
margin-left: 32rpx;
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
|
|
.btn-one,
|
|
|
|
|
.wait {
|
|
|
|
|
margin-top: 14rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-one {
|
|
|
|
|
width: 100rpx;
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
background: $light-color;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
text-align: left;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.head-img {
|
|
|
|
|
width: 81rpx;
|
|
|
|
|
height: 81rpx;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-title {
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: $light-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group-box {
|
|
|
|
|
height: 242rpx;
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.tr {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tl {
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .u-col-3 {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
|
height: 4rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
width: 100%;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
background: url("@/pages/order/imgs/line.png") no-repeat;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box2 {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
}
|
2021-07-01 15:25:00 +08:00
|
|
|
|
.notSupportFreight {
|
|
|
|
|
position: fixed;
|
2021-07-01 15:46:42 +08:00
|
|
|
|
|
2021-07-02 17:58:49 +08:00
|
|
|
|
bottom: calc(100rpx + env(safe-area-inset-bottom));
|
2021-07-01 15:46:42 +08:00
|
|
|
|
// #ifdef H5
|
2021-07-01 15:25:00 +08:00
|
|
|
|
bottom: 100rpx;
|
2021-07-01 15:46:42 +08:00
|
|
|
|
// #endif
|
2021-07-01 15:25:00 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
left: 0;
|
|
|
|
|
background: #fdf6ec;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
transition: 0.35s;
|
2021-07-01 15:46:42 +08:00
|
|
|
|
|
2021-07-01 15:25:00 +08:00
|
|
|
|
> .tips {
|
|
|
|
|
margin: 0 32rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-01 15:46:42 +08:00
|
|
|
|
/deep/ .u-notice-bar-wrap {
|
|
|
|
|
width: 100% !important;
|
2021-07-01 15:25:00 +08:00
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
|
|
|
|
.box6 {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
2021-07-01 15:25:00 +08:00
|
|
|
|
width: 100%;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
height: 100rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
margin-bottom: 0px !important;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #333;
|
2021-07-01 15:25:00 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-01 15:25:00 +08:00
|
|
|
|
.tabbar-right {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
line-height: 80rpx;
|
|
|
|
|
background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
|
|
|
|
|
padding: 0 44rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 400px;
|
2021-07-01 15:25:00 +08:00
|
|
|
|
margin-right: 32rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sp_tag {
|
|
|
|
|
display: inline;
|
|
|
|
|
background: #f2f2f2;
|
|
|
|
|
padding: 0 20rpx 0 10rpx;
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
line-height: 20rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #262626;
|
|
|
|
|
border-radius: 0.4em;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.goods-promotion {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
float: left;
|
|
|
|
|
width: 75%;
|
|
|
|
|
margin: 4rpx 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sp_tag_plain {
|
|
|
|
|
margin-left: 8rpx;
|
|
|
|
|
padding: 0 6rpx 0 6rpx;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1px solid $main-color;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: $main-color;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sp_tag_plain:nth-of-type(1) {
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.goods-name {
|
|
|
|
|
flex: 8;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sp_type {
|
|
|
|
|
color: $u-tips-color;
|
|
|
|
|
padding: 8rpx 0;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.number {
|
|
|
|
|
color: $main-color;
|
|
|
|
|
font-size: 26rpx;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
font-weight: bold;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
> span {
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.goods-prices {
|
|
|
|
|
margin: 10rpx 0;
|
|
|
|
|
color: $main-color;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
font-size: 28rpx;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
font-weight: bold;
|
|
|
|
|
> .goods-price {
|
|
|
|
|
font-size: 38rpx;
|
|
|
|
|
padding: 0 2rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box {
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: #fff;
|
|
|
|
|
margin-bottom: 20rpx;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
color: #666;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
padding: 0 32rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wrapper {
|
|
|
|
|
height: auto;
|
2021-09-02 16:08:35 +08:00
|
|
|
|
background: #f7f7f7;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
padding-bottom: 200rpx;
|
|
|
|
|
overflow: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.store-name {
|
|
|
|
|
margin-top: 32rpx;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .u-col {
|
|
|
|
|
padding: 36rpx 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .u-col-3,
|
|
|
|
|
.tipsColor {
|
2021-09-01 17:30:54 +08:00
|
|
|
|
color: #333;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.goods-image {
|
2021-05-13 11:03:32 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
overflow: hidden;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
}
|
|
|
|
|
.default {
|
|
|
|
|
background: $main-color;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
padding: 0rpx 12rpx;
|
2022-01-21 19:02:06 +08:00
|
|
|
|
color: #fff;
|
2021-10-06 16:46:47 +08:00
|
|
|
|
margin-right: 20rpx;
|
2021-09-01 17:30:54 +08:00
|
|
|
|
}
|
|
|
|
|
.address-box {
|
|
|
|
|
border-radius: 40rpx;
|
|
|
|
|
border-top-left-radius: 0 !important;
|
|
|
|
|
border-top-right-radius: 0 !important;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: #fff;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
2021-09-27 19:58:18 +08:00
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.address-item {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
letter-spacing: 1rpx;
|
|
|
|
|
}
|
|
|
|
|
.user-box {
|
|
|
|
|
padding: 32rpx;
|
|
|
|
|
}
|
|
|
|
|
.user-address-detail {
|
|
|
|
|
color: #333;
|
|
|
|
|
font-size: 38rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
letter-spacing: 1rpx;
|
|
|
|
|
}
|
|
|
|
|
.mobile {
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
.price {
|
|
|
|
|
font-size: 50rpx !important;
|
|
|
|
|
margin: 0 2rpx;
|
|
|
|
|
}
|
|
|
|
|
.goods-detail {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
|
2021-09-01 17:30:54 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
flex: 8;
|
|
|
|
|
margin-left: 20rpx !important;
|
|
|
|
|
> p {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
2021-05-13 11:03:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-01 17:30:54 +08:00
|
|
|
|
.goods-item {
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
}
|
2021-05-13 11:03:32 +08:00
|
|
|
|
</style>
|