123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <template>
- <view>
- <van-radio-group >
- <van-cell-group
- v-for="(item, index) in list"
- :key="index"
- >
- <van-cell
- :border="false"
- :title="item.title"
- @click="onChange(index)"
- >
- <template slot="right-icon">
- <van-radio-group style="width: 20upx;" :value="radio" >
- <van-radio checked-color="#D9332E" :name="index" >
- </van-radio>
- </van-radio-group>
- </template>
- </van-cell>
- </van-cell-group>
- </van-radio-group>
-
- <view v-if="radio === 0"
- style="border-top: 15upx solid #F5F5F5;
- border-bottom: 15upx solid #F5F5F5;
- "
- >
- <van-field
- :value="username"
- label="酒店"
- placeholder="请输入酒店"
- />
-
- <van-field
- :value="username"
- label="房间号"
- placeholder="请输入房间号"
- />
- <van-field
- :value="username"
- label="收货人"
- placeholder="请输入收货人"
- />
- <van-field
- :value="username"
- label="手机号"
- placeholder="请输入手机号"
- />
-
- </view>
-
- <view v-if="radio === 2"
- style="border-top: 15upx solid #F5F5F5;
- border-bottom: 15upx solid #F5F5F5;
- "
- >
- <van-field
- :value="username"
- label="预定酒店"
- placeholder="请输入预定酒店"
- />
-
- <van-field
- :value="username"
- label="入住人"
- placeholder="请输入入住人"
- />
- <van-field
- :value="username"
- label="手机号"
- placeholder="请输入手机号"
- />
- <van-field
- :value="username"
- label="备注"
- placeholder="请输入备注"
- />
- </view>
- <van-cell v-if="radio === 1" @click="goAdress" class="LinkAdress" title="选择地址" is-link/>
-
- <view @tap="goDetail()" class="cart-list">
- <view class="topTip">
- <view>
- <image src="" style="width: 50upx;height: 50upx; vertical-align: middle;background-color: #007AFF;"></image>
- <span style="padding-left: 16upx;">华南酒店</span>
- </view>
- </view>
-
- <view class="shoplist" style="background-color: #fff;">
- <view>
- <van-card
- title-class="changewidth"
- price-class ="priceClass"
- price="10.00"
- desc="描述信息"
- title="商品标题"
- thumb="https://gd3.alicdn.com/imgextra/i3/0/O1CN01IiyFQI1UGShoFKt1O_!!0-item_pic.jpg_400x400.jpg"
- >
- </van-card>
- </view>
- </view>
- <view class="topTip">
- <view style="font-size: 28upx;">合计:50</view>
- </view>
- </view>
-
- <!-- 底部付款 -->
- <view class="adressbutton">
- <view class="buttonStatus">
- <view @click="estimate" class="deleteOrder">应付<span>¥0.25</span></view>
- <view class="payOrder" @click="goPay">付款</view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
-
- export default {
- data() {
- return {
- list:[
- {title:'请送到我的房间'},
- {title:'快递到我的地址'},
- {title:'处理我的客房预定'}
- ],
- username:'',
- radio: 0
- }
- },
- methods: {
- onChange(index) {
- this.radio = index;
- },
- goAdress() {
- console.log("dddd")
- uni.navigateTo({
- url: '../myOrder/adress',
- });
- }
- }
- }
-
- </script>
- <style lang="scss">
- .LinkAdress /deep/ .van-cell {
- border-top: 15upx solid #F5F5F5;
- border-bottom: 15upx solid #F5F5F5;
- }
- .topTip {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20upx 36upx;
- border-bottom: 1px solid #F5F5F5;
- }
- .changewidth {
- color: #303133;
- font-size: 32upx;
- font-weight: 100!important;
- }
- .priceClass {
- color:#303133!important;
- font-weight: 100!important;
- font-size: 36upx;
- }
- .van-card {
- background-color: #fff!important;
- }
- .shoplist {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .adressbutton {
- position: fixed;
- bottom: 0;
- width: 100%;
- .buttonStatus {
- display: flex;
- text-align: left;
- .deleteOrder {
- flex: 3;
- color: #303133;
- font-size: 32upx;
- background-color: #fff;
- padding: 10px 0;
- }
- .payOrder {
- flex: 1;
- font-size: 32upx;
- color: #fff;
- background-color: #D9332E;
- padding: 10px 0;
- text-align: center;
- }
- }
- }
- </style>
|