Commit c3bbe92f by zhangzhen

细节优化

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