Commit c3bbe92f by zhangzhen

细节优化

parent c8997b96
......@@ -12,7 +12,6 @@
<script>
import config from "@/config/index.config"
import {getOrderByAvailable, openDoor} from "@/api/order.js"
export default {
name:"toolBox",
props:{
......
......@@ -2,7 +2,7 @@
<view class="home" @touchstart="onTouchStart" @touchend="onTouchEnd">
<f-navbar title="凑角" :isShowTransparentTitle="false" :isShowLeft="false" fontColor="#ffffff" :fontSize="46"
bgColor="#e40583" :scrollTop="scrollTop" navbarType='5'></f-navbar>
<scroll-view class="scroll-view" scroll-y="true" @scroll="onScroll">
<scroll-view :enable-flex="true" class="scroll-view" scroll-y="true" @scroll="onScroll">
<view class="content-box">
<view class="header-content"
:style="{paddingTop:statusBarHeight+'px' }">
......
......@@ -58,11 +58,11 @@
<view v-for="(item,index) in packageMode" :key="index" class="flex-col item"
:class="{active: modeIndex===index}"
@tap="onChangeMode(index)">
<text class="text-title text-sm">{{item.duration}}小时套餐</text>
<text class="text-title">{{item.duration}}小时套餐</text>
<view class="flex-row" style="margin-top: 8upx;">
<!-- <text>{{item.duration}}小时/</text>-->
<text ></text>
<text class="text-title text-bold text-xl">{{item.price}}</text>
<text style="margin-bottom: 2upx;" ></text>
<text class="text-bold text-xl">{{item.price}}</text>
</view>
</view>
</view>
......@@ -80,7 +80,7 @@
<view class="flex-1 distance-box">
<view v-for="(item,index) in distanceMode" :key="index" class="flex-col"
style="margin: 0 12upx;" @tap="onDurationChange(index)">
<view class="cu-tag radius" :class="index===distanceIndex? 'line-black':'line-gray'">
<view class="cu-tag radius" :class="index===distanceIndex? 'line-pink':'line-gray'">
<text>{{ index >= distanceMode.length-1 && !editDuration.length ? item.duration: item.duration+'小时'}}</text>
<text v-if="index >= distanceMode.length-1" class="cuIcon-edit text-lg"></text>
</view>
......@@ -1195,21 +1195,24 @@
this.$refs.confirmPop.open();
},
onOrder(){
wx.requestSubscribeMessage({
tmplIds: [
'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8',
'K8fbcKVq46w9o7Ekpesn74RThj_Yw6hFNwA-A5L3XA0',
'HB2_moQRQrXC2cKw6zE08NU3AQO9Ggj3aAOg0lIgecg'
],
success: (res) => {
// uni.setStorageSync("orderUseMessage", true);
// this.$refs.confirmPop.open();
this.onOrderCreate()
},
complete: (res) => {
this.onOrderCreate()
// wx.requestSubscribeMessage({
// tmplIds: [
// 'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8',
// 'K8fbcKVq46w9o7Ekpesn74RThj_Yw6hFNwA-A5L3XA0',
// 'HB2_moQRQrXC2cKw6zE08NU3AQO9Ggj3aAOg0lIgecg'
// ],
// success: (res) => {
// // uni.setStorageSync("orderUseMessage", true);
// // this.$refs.confirmPop.open();
// // this.onOrderCreate()
// },
// complete: (res) => {
}
})
// }
// })
},
onOrderCreate() {
this.onCancle();
......@@ -1728,6 +1731,11 @@
display: flex;
flex-direction: row;
align-items: center;
.cu-tag{
padding: 4upx 16upx;
border-radius: 20upx;
}
}
}
......@@ -2072,7 +2080,7 @@
flex: 1;
height: 100%;
.text-title{
// font-size: 25upx;
font-size: 28upx;
}
.flex-row{
// font-size: 23upx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment