Commit 001ea59c by zhangxw

次新车转化模块样式修改

1 parent 3181da2f
// subvehicleConversion/pages/relatedFinalPayment/relatedFinalPayment.js // subvehicleConversion/pages/relatedFinalPayment/relatedFinalPayment.js
import api from '~/subvehicleConversion/api' import api from '~/subvehicleConversion/api'
const navStyle = 'background:transparent;box-shadow:none;'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -37,7 +37,8 @@ Page({ ...@@ -37,7 +37,8 @@ Page({
value: 'subOrderCode' value: 'subOrderCode'
} }
], ],
confirmFlag: false confirmFlag: false,
navStyle
}, },
handleTransaction() { handleTransaction() {
this.setData({ this.setData({
...@@ -104,6 +105,12 @@ Page({ ...@@ -104,6 +105,12 @@ Page({
}) })
}, },
onPageScroll({scrollTop}){
this.setData({
navStyle:scrollTop > 20 ? '' : navStyle
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
<!--subvehicleConversion/pages/relatedFinalPayment/relatedFinalPayment.wxml--> <!--subvehicleConversion/pages/relatedFinalPayment/relatedFinalPayment.wxml-->
<navigation-bar showBack navStyle="{{navStyle}}" bindback="back">关联尾款单</navigation-bar>
<view class="big-img page-box isFullSucreen"> <view class="big-img page-box isFullSucreen">
<view class="titleBox"> <!-- <view class="titleBox">
<view class="imgBox" bind:tap="back"> <view class="imgBox" bind:tap="back">
<image src="/subvehicleConversion/images/arrow-left.png"></image> <image src="/subvehicleConversion/images/arrow-left.png"></image>
</view> </view>
<view class="navigation-title-text"> <view class="navigation-title-text">
关联尾款单 关联尾款单
</view> </view>
</view> </view> -->
<!-- 补录单显示付款金额(订单总价 众筹价) --> <!-- 补录单显示付款金额(订单总价 众筹价) -->
<view class="money">尾款金额 <view class="money">尾款金额
<view class="sum">{{orderInfo.tailPayment}}</view> <view class="sum">{{orderInfo.tailPayment}}</view>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg-l.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg-l.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.titleBox{ .titleBox{
display: flex; display: flex;
padding-top: var(--fontSize80); padding-top: var(--fontSize80);
...@@ -26,16 +27,21 @@ ...@@ -26,16 +27,21 @@
vertical-align: middle; vertical-align: middle;
} }
.money{ .money{
position: absolute;
color: #fff; color: #fff;
font-size: var(--fontSize28); font-size: var(--fontSize28);
display: flex; display: flex;
margin-top: var(--fontSize40); left: var(--fontSize36);
bottom: var(--fontSize74);
} }
.money .sum{ .money .sum{
font-size: var(--fontSize34) font-size: var(--fontSize34)
} }
.box{ .big-img .box{
position: absolute;
top: var(--fontSize230);
width: calc(100% - var(--fontSize72));
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -48,6 +54,15 @@ ...@@ -48,6 +54,15 @@
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
@media screen and (min-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
.big-img {
height: var(--fontSize180);
}
.big-img .box{
top: var(--fontSize100);
}
}
.box .label{ .box .label{
width: var(--fontSize140); width: var(--fontSize140);
} }
......
...@@ -3,6 +3,7 @@ import { getOrderDetail, createPayOrder, updateOrderRemark } from '~/subvehicleC ...@@ -3,6 +3,7 @@ import { getOrderDetail, createPayOrder, updateOrderRemark } from '~/subvehicleC
import { createQrcodeImage } from '~/api/api' import { createQrcodeImage } from '~/api/api'
import qrcode from '~/utils/lib/wxqrcode' import qrcode from '~/utils/lib/wxqrcode'
import pageApi from '~/api/api' import pageApi from '~/api/api'
const navStyle = 'background:transparent;box-shadow:none;'
let time = null let time = null
Page({ Page({
/** /**
...@@ -51,7 +52,8 @@ Page({ ...@@ -51,7 +52,8 @@ Page({
} }
], ],
showRemark: false, showRemark: false,
textAreaValue: '' // 备注回显 textAreaValue: '', // 备注回显
navStyle
}, },
// 生成小程序码 // 生成小程序码
createWxQrcode() { createWxQrcode() {
...@@ -223,6 +225,12 @@ Page({ ...@@ -223,6 +225,12 @@ Page({
*/ */
onLoad(options) {}, onLoad(options) {},
onPageScroll({scrollTop}){
this.setData({
navStyle:scrollTop > 20 ? '' : navStyle
})
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
<!--subvehicleConversion/pages/supplementaryOrderPay/supplementaryOrderPay.wxml--> <!--subvehicleConversion/pages/supplementaryOrderPay/supplementaryOrderPay.wxml-->
<wxs src="./index.wxs" module="filter" /> <wxs src="./index.wxs" module="filter" />
<navigation-bar showBack navStyle="{{navStyle}}" bindback="back">去支付</navigation-bar>
<view class="big-img page-box isFullSucreen"> <view class="big-img page-box isFullSucreen">
<view class="titleBox"> <!-- <view class="titleBox">
<view class="imgBox" bind:tap="back"> <view class="imgBox" bind:tap="back">
<image src="/subvehicleConversion/images/arrow-left.png" /> <image src="/subvehicleConversion/images/arrow-left.png" />
</view> </view>
<view class="navigation-title-text">去支付</view> <view class="navigation-title-text">去支付</view>
</view> </view> -->
<view class="money"> <view class="money">
尾款金额 尾款金额
<!-- 详情接口金额返回的是元 需*100转为分 --> <!-- 详情接口金额返回的是元 需*100转为分 -->
......
...@@ -21,10 +21,12 @@ page { ...@@ -21,10 +21,12 @@ page {
background-size: 100% 100%; background-size: 100% 100%;
} }
.big-img .money { .big-img .money {
position: absolute;
color: #fff; color: #fff;
font-size: var(--fontSize28); font-size: var(--fontSize28);
display: flex; display: flex;
margin-top: var(--fontSize40); left: var(--fontSize36);
bottom: var(--fontSize74);
} }
.big-img .money .sum { .big-img .money .sum {
...@@ -56,6 +58,11 @@ page { ...@@ -56,6 +58,11 @@ page {
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
margin: calc(-1 * var(--fontSize34)) auto var(--fontSize34); margin: calc(-1 * var(--fontSize34)) auto var(--fontSize34);
} }
@media screen and (min-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
.big-img {
height: var(--fontSize180);
}
}
.box .right image { .box .right image {
width: var(--fontSize14); width: var(--fontSize14);
height: var(--fontSize24); height: var(--fontSize24);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!