123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <template>
- <!-- /pages/user/address/addressList 收货 -->
- <view class="main">
- <navbar :config="config" backColor="#666"></navbar>
- <view class="tab-box" :style="`top: calc(${statusBarHeight}px + 44px)`">
- <view v-for="(item, index) in tabList" :key="index" class="tab" :class="tabActiveIndex == index ? 'active' : ''" @click="tabClick(index)">{{ item.text }}</view>
- </view>
- <view class="addr">
- <text class="iconfont2 addr-icon"></text>
- <view class="right">
- <view class="title-box">
- <view class="title">暂无收货地址</view>
- <view class="tip">立即添加收货地址</view>
- </view>
- <text class="iconfont2 arrow-icon"></text>
- </view>
- </view>
- <view class="split-g"></view>
- <!-- 店铺(可能多个) -->
- <view class="content" v-for="(item,index) in 2" :key="index">
- <view class="shop-box">
- <view class="title-box">
- <text class="iconfont2"></text>
- <text>金字火腿旗舰店</text>
- </view>
- <!-- 商品(可能多个) -->
- <view class="card" v-for="(item,index) in 2" :key="index">
- <image class="cover"></image>
- <view class="right">
- <view class="title">金字 金华火腿肉300g家庭装 正宗浙江特产 煲汤火腿切片块腊味包邮</view>
- <view class="attr">火腿4斤 原味</view>
- <view class="count">x 2</view>
- <view class="price"><text class="int">¥00.</text>00</view>
- </view>
- </view>
- </view>
- <view class="mark-box">
- <view class="title">备注</view>
- <u-input type="textarea" border height="234" maxlength="500" placeholder="选填,给商家留言" style="background-color: #FAFAFA;" />
- </view>
- <view class="input-box">
- <view class="label">首单优惠</view>
- <view class="value">-18.00元</view>
- </view>
- <view class="input-box">
- <view class="label">店铺优惠</view>
- <view class="value">选择优惠券 ></view>
- </view>
- <view class="input-box">
- <view class="label">运费</view>
- <view class="value">+8元</view>
- </view>
- <view class="input-box">
- <view class="label">下单送爱心</view>
- <view class="value">100</view>
- </view>
- <view class="price-count">
- <text>共1件商品,小计</text>
- <text class="int">¥245.</text>
- <text class="float">06</text>
- </view>
- <view class="split"></view>
- </view>
- <!-- 订单优惠区(最多一个) -->
- <view class="input-box" style="padding: 23rpx 30rpx 20rpx 30rpx;height: 140rpx;border: 0;">
- <view class="label">平台优惠</view>
- <view class="value">选择优惠券 ></view>
- </view>
- <view class="split-g"></view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- //手机状态栏高度
- statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
- config: {
- back: true,
- title: '确认订单',
- color: '#1a1a1a',
- backgroundColor: [1, '#fff'],
- statusBarFontColor: 'black'
- },
- tabList: [
- {
- text: '物流发货'
- },
- {
- text: '门店自提'
- }
- ],
- tabActiveIndex: 0
- }
- },
- methods: {
- tabClick(index) {
- let that = this;
- this.tabActiveIndex = index;
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- .main{
- .addr{
- height: 180rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 30rpx;
- .addr-icon{
- font-size: 50rpx;
- color: #057D53;
- }
- .right{
- width: 610rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .title-box{
- .title{
- font-size: 30rpx;
- font-family: MicrosoftYaHei;
- text-align: left;
- color: #181818;
- margin-bottom: 10rpx;
- }
- .tip{
- font-size: 26rpx;
- font-family: MicrosoftYaHei;
- text-align: left;
- color: #808080;
- }
- }
- .arrow-icon{
-
- }
- }
- }
- .split-g{
- width: 750rpx;
- height: 10rpx;
- background: #f5f5f5;
- }
- .split{
- width: 750rpx;
- height: 10rpx;
- background: #f5f5f5;
- margin-left: -30rpx;
- }
- .input-box{
- height: 90rpx;
- line-height: 90rpx;
- border-bottom: 1px solid #e6e6e6;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .label{
- font-size: 28rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: left;
- color: #1a1a1a;
- }
- .value{
- font-size: 28rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: right;
- color: #666666;
- }
- }
- .content{
- padding: 0 30rpx;
- .shop-box{
- padding: 18rpx 0 30rpx 0;
- .title-box{
- border-bottom: 1px solid #e6e6e6;
- padding: 20rpx 0;
- .iconfont2{
- font-size: 35rpx;
- color: #057D53;
- margin-right: 15rpx;
- }
- text{
- font-size: 32rpx;
- font-weight: 400;
- color: #1a1a1a;
- }
- }
- .card{
- padding: 30rpx 0;
- border-bottom: 1px solid #e6e6e6;
- .cover{
- width: 200rpx;
- height: 200rpx;
- display: inline-block;
- vertical-align: top;
- margin-right: 17rpx;
- background-color: #f2f2f2;
- }
- .right{
- display: inline-block;
- width: 456rpx;
- .title{
- font-size: 24rpx;
- font-family: MicrosoftYaHei;
- text-align: left;
- color: #1a1a1a;
- line-height: 32rpx;
- margin-bottom: 10rpx;
- }
- .attr{
- font-size: 22rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: left;
- color: #999999;
- margin-bottom: 10rpx;
- }
- .count{
- font-size: 26rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: left;
- color: #999999;
- margin-bottom: 5rpx;
- }
- .price{
- font-size: 20rpx;
- font-family: PingFang SC, PingFang SC-Bold;
- font-weight: 700;
- text-align: left;
- color: #ff0000;
- .int{
- font-size: 38rpx;
- }
- }
- }
- }
- }
- .mark-box{
- font-size: 28rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: left;
- color: #1a1a1a;
- margin-bottom: 30rpx;
- .title{
- margin: 30rpx 0 8rpx 0;
- }
- }
- .price-count{
- height: 108rpx;
- padding: 23rpx 0 0 0;
- font-size: 24rpx;
- font-family: PingFang SC, PingFang SC-Regular;
- font-weight: 400;
- text-align: right;
- color: #1a1a1a;
- .int{
- font-size: 32rpx;
- font-weight: bold;
- color: #FF0000;
- }
- .float{
- font-size: 24rpx;
- color: #FF0000;
- }
- }
- }
- }
- </style>
|