Commit 1496b1d3 by zhangzhen

细节优化

parent 56dfddfc
...@@ -67,4 +67,9 @@ export const uploadFile=(data)=> { ...@@ -67,4 +67,9 @@ export const uploadFile=(data)=> {
} }
}); });
}) })
} }
\ No newline at end of file
export const getProtocol=(key)=>{
let url=`/protocol/${key}`
return http.get(url)
}
...@@ -86,12 +86,13 @@ ...@@ -86,12 +86,13 @@
<view class="flex-row room-type"> <view class="flex-row room-type">
<view class="flex-col"> <view class="flex-col">
<view v-for="(val,i) in item.packList" :key="i" v-if="i<2" class="item"> <view v-for="(val,i) in item.packList" :key="i" v-if="i<2" class="item">
<view class="part-1"> <!-- <view class="part-1">
<text></text> <text></text>
</view> </view> -->
<view class="part-2"> <view class="part-2">
<text>{{val.duration}}小时套餐:</text> <text class="text-sm">{{val.duration}}小时套餐:¥</text>
<text class="text-red text-bold text-lg">{{val.price}}/场</text> <text class="text-red text-bold text-xl">{{val.price}}</text>
<text class="text-sm"> /场</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
<view class="flex-between confirm-box"> <view class="flex-between confirm-box">
<view class="flex-priceBox"> <view class="flex-priceBox">
<text style="color: #e70486;margin-left: -6rpx;"></text><text class="text-pink">{{ item.price }}</text><text>/小时</text> <!-- <text style="color: #e70486;margin-left: -6rpx;"></text><text class="text-pink">{{ item.price }}</text><text class="text-sm">/小时</text> -->
</view> </view>
<view class="confirm"> <view class="confirm">
...@@ -991,7 +992,7 @@ ...@@ -991,7 +992,7 @@
// height: 44rpx; // height: 44rpx;
// background: #FFFFFF; // background: #FFFFFF;
// border: 2rpx solid #fc3f21; // border: 2rpx solid #fc3f21;
margin: 6upx 1%; margin: 0 1%;
overflow: hidden; overflow: hidden;
.part-1{ .part-1{
...@@ -1013,7 +1014,7 @@ ...@@ -1013,7 +1014,7 @@
// justify-content: center; // justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
padding: 8upx; padding: 4upx 8upx;
// border-right: 2upx solid #fc3f21; // border-right: 2upx solid #fc3f21;
} }
.part-3{ .part-3{
...@@ -1021,7 +1022,7 @@ ...@@ -1021,7 +1022,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
padding: 8upx; padding: 4upx 8upx;
} }
// text { // text {
// font-size: 25upx; // font-size: 25upx;
......
<template> <template>
<view class="flex-col use-coupon-illustrate"> <view class="flex-col use-coupon-illustrate">
<view class="title-box"> <view class="content" v-html="content">
<text class="text-pink text-bold text-xl">优惠券使用教程</text>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {getProtocol} from "@/api/index.js"
export default { export default {
data() { data() {
return { return {
content:''
}; };
},
onLoad() {
this.onLoading()
},
methods:{
onLoading(){
getProtocol('coupon_use_process').then(res=>{
console.log(res)
if(res.data.code){
uni.setNavigationBarTitle({
title:res.data.data.protocolTitle
})
this.content = res.data.data.content
}
})
}
} }
} }
</script> </script>
...@@ -20,7 +37,11 @@ ...@@ -20,7 +37,11 @@
.use-coupon-illustrate{ .use-coupon-illustrate{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100vw;
padding: 20upx 0;
.content{
width: 100%;
}
.title-box{ .title-box{
display: flex; display: flex;
padding: 30upx; padding: 30upx;
......
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