uniapp:增加部分 confirm 下单确认页

pull/2/head
YunaiV 2022-12-27 20:38:24 +08:00
parent 4aeaa21854
commit aa74df4e5a
4 changed files with 78 additions and 1 deletions

View File

@ -23,7 +23,10 @@ export default {
</script>
<style lang="scss">
/* 引入uView基础样式 */
/** 引入全局基本样式 */
@import 'styles/base.scss';
/* 引入 uView 基础样式 */
@import '@/uni_modules/uview-ui/index.scss';
/*每个页面公共scss */

View File

@ -86,6 +86,12 @@
"navigationBarTitleText": "订单详情"
}
},
{
"path": "pages/order/confirm",
"style": {
"navigationBarTitleText": "确认订单"
}
},
{
"path": "pages/address/list",
"style": {

View File

@ -0,0 +1,63 @@
<template>
<view class="container">
<view class="confirm-con">
<!-- TODO 收货地址 -->
<navigator url="/pages/address/list?type=1">
<yd-address-select :address="address"></yd-address-select>
</navigator>
<!-- TODO 商品信息 -->
<view class="goods contain">
<yd-order-product :productList="productList"></yd-order-product>
<view class="item row-between">
<view>买家留言</view>
<u-input v-model="remark" :clearable="false"
placeholder="请添加备注150 字以内)"></u-input>
</view>
</view>
</view>
<!-- TODO 优惠劵 -->
<!-- TODO 价格信息 -->
<!-- TODO 底部提交订单 -->
</view>
</template>
<script>
export default {
data() {
return {
address: { //
name: 'test',
mobile: '15601691300',
area: '奥特曼奥特曼'
},
productList: [{ //
coverUrl: '',
productTitle: '奥特曼',
sellPrice: 1024,
productCount: 2048,
totalPrice: 1024
}],
remark: '', //
x
}
}
}
</script>
<style>
.confirm-con {
overflow: hidden;
padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
}
.contain {
border-radius: 14rpx;
margin: 20rpx 20rpx 0;
background-color: #fff;
overflow: hidden;
}
</style>

View File

@ -0,0 +1,5 @@
.row-between {
display: flex;
align-items: center;
justify-content: space-between;
}