You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
huazhiyu/pages/ConfirmOrder/ConfirmOrder.vue

149 lines
3.3 KiB

1 year ago
<template>
<view class="page">
<!-- 地址 -->
<view class="address-data">
<view class="address-list" @click="onSkip('address')">
<view class="list">
1 year ago
<view class="moren">
默认
</view>
1 year ago
<text>张三</text>
1 year ago
<text style="font-weight: normal;">178****8888</text>
1 year ago
</view>
<view class="list">
1 year ago
<text style="font-weight: normal;">黑龙江哈尔滨市道里区城区</text>
1 year ago
</view>
<view class="list">
1 year ago
<text class="address">爱建路1333号</text>
1 year ago
</view>
1 year ago
1 year ago
1 year ago
</view>
1 year ago
1 year ago
1 year ago
<!-- 商品 -->
1 year ago
<view class="goods-data">
<view class="goods-list">
<view class="list">
<view class="thumb">
<image :src="'/static/img/goods_thumb_01'+'.png'" mode=""></image>
1 year ago
</view>
1 year ago
<view class="item">
<view class="title">
<text class="name one-omit">美连诚雪纺连衣裙 2020新款女夏裙子波点气质沙滩裙仙气时尚女装休闲衣服大码女装 白底红点 M</text>
<text class="attr">颜色灰色,XL</text>
1 year ago
</view>
1 year ago
<view class="price-number">
<view class="price">
<text class="min"></text>
<text class="max">299</text>
<text class="min">.00</text>
</view>
<view class="number">
<text>x 1</text>
</view>
1 year ago
</view>
1 year ago
<!-- <view class="tag">
<text>支持七天无理由退货</text>
</view> -->
1 year ago
</view>
</view>
</view>
1 year ago
1 year ago
</view>
1 year ago
1 year ago
</view>
1 year ago
1 year ago
<!-- 订单金额 -->
<view class="order-price">
<view class="price-list">
<view class="list">
<view class="title">
1 year ago
<text>备注</text>
1 year ago
</view>
<view class="price">
<text>299.00</text>
1 year ago
<text class="iconfont icon-more"></text>
1 year ago
</view>
</view>
<view class="list">
<view class="title">
1 year ago
<text>商品总额</text>
1 year ago
</view>
<view class="price">
<text>-19.00</text>
</view>
</view>
1 year ago
1 year ago
</view>
</view>
<!-- 地址提示 -->
<view class="address-tips" :style="scrollTop >= 100 ? '':'display:none'">
<text>黑龙江哈尔滨市道里区爱建路1333号</text>
</view>
<!-- 底部合计提交 -->
<view class="footer-submit">
<view class="price">
1 year ago
<text class="min">合计299</text>
1 year ago
</view>
<view class="submit" @click="onSubmit">
<text>提交订单</text>
</view>
</view>
<!-- 发票 -->
<invoice-info ref="InvoiceInfo"></invoice-info>
<!-- 优惠券 -->
<use-coupon ref="UseCoupon"></use-coupon>
</view>
</template>
<script>
import InvoiceInfo from '../../components/InvoiceInfo/InvoiceInfo.vue';
import UseCoupon from '../../components/UseCoupon/UseCoupon.vue'
export default {
components:{
// 发票
InvoiceInfo,
// 优惠券
UseCoupon,
},
data() {
return {
scrollTop: 0,
};
},
onPageScroll(e){
this.scrollTop = e.scrollTop;
},
methods:{
/**
* 提交订单
*/
onSubmit(){
uni.redirectTo({
url: '/pages/CashierDesk/CashierDesk',
})
},
1 year ago
onSkip(type){
switch (type){
case 'address':
uni.navigateTo({
url: '/pages/AddressList/AddressList',
})
break;
}
}
},
onLoad(){
console.log(uni.getStorageSync('qgPro'),"lldd")
},
1 year ago
}
</script>
<style scoped lang="scss">
@import 'ConfirmOrder.scss';
</style>