Commit 6e6f92db by 李伟康

commit 修改样式&新增话术质检

1 parent 63d198dc
......@@ -104,7 +104,8 @@
"pages/collegeScene/collegeScene",
"pages/clueList/clueList",
"pages/clueDetail/clueDetail",
"pages/residentTarget/residentTarget"
"pages/residentTarget/residentTarget",
"pages/aiInspection/aiInspection"
]
},
{
......
// packageEquity/pages/aiInspection/aiInspection.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {
"circular":"./components/circular/circular"
},
"navigationBarTitleText": "话术质检"
}
\ No newline at end of file
/* packageEquity/pages/aiInspection/aiInspection.wxss */
page {
background-color: #F7F8FA;
}
.layout {
.user-box {
width: 100%;
height: var(--fontSize300);
position: relative;
display: flex;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.info {
padding: var(--fontSize64) 0 0 var(--fontSize32);
width: calc(420 / 750 * 100%);
text {
color: #347BFF;
}
.name {
font-weight: 500;
font-size: var(--fontSize32);
color: #292D33;
}
.merchant,
.no {
margin-top: var(--fontSize16);
font-size: var(--fontSize24);
color: #292D33;
}
}
.arc-box {
// width: calc(240 / 750 * 100%);
width: var(--fontSize240);
margin: var(--fontSize28) 0 0 var(--fontSize8);
position: relative;
.arc {
width: 100%;
aspect-ratio: 1/1;
}
.arc-tips {
position: absolute;
top: var(--fontSize202);
left: 50%;
transform: translateX(-50%);
font-weight: 600;
font-size: var(--fontSize24);
color: #5A5E66;
width: fit-content;
}
}
}
.date-box {
height: var(--fontSize88);
background-color: #fff;
}
.data-box {
height: var(--fontSize176);
background-color: #fff;
}
}
\ No newline at end of file
<view class="layout">
<view class="user-box">
<view class="bg">
<gl-image webp src="/equity/aiInspection-bg.png" />
</view>
<view class="info">
<view class="name">你好,<text>恒河猴</text></view>
<view class="merchant">服务门店:<text>安徽合肥凯越4S店</text></view>
<view class="no">工牌编号:806599260358</view>
</view>
<view class="arc-box">
<view class="arc">
<circular num="20"></circular>
</view>
<view class="arc-tips">今日综合质检评分</view>
</view>
</view>
<view class="date-box"></view>
<view class="data-box"></view>
<view class="content-box">
</view>
</view>
\ No newline at end of file
// packageEquity/pages/aiInspection/components/circular/circular.js
const Arc_Background = [
'#F8F8FA',
'#F5F7FA',
'#F0F2F5',
'#EBEDF2',
'#E4E8EE'
],
Arc_Data_Background = [
'#CCE6FF',
'#A6CCFF',
'#80ACFF',
'#4D8AFF',
'#196AFF'
]
Component({
/**
* 组件的属性列表
*/
properties: {
num: {
type: Number,
value: -1,
observer(n) {
this.init(n)
if (n) this.part = Math.ceil(n / 20)
}
}
},
lifetimes: {
ready() {
// this.init()
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
async init(data = 0) {
try {
this._pixelRatio_ = 2
const width = this.toRpx(120),
canvas = wx.createOffscreenCanvas({
type: '2d',
width,
height: width,
compInst: true
}),
ctx = canvas.getContext('2d'),
startAngle = 0.79 * Math.PI,
angle = Math.PI / 3.5
ctx.lineWidth = this.toRpx(2)
ctx.lineCap = 'round'
ctx.lineJoin = 'round'
ctx.strokeStyle = '#fff'
this.ctx = ctx
this.arcInfo = {
x: width / 2,
y: width / 2,
angle
}
this.canvas = canvas
await this.drawBackground()
if (data) this.fillArc(startAngle, 0, startAngle + angle)
else {
this.drawText({
text: '···',
x: width / 4,
y: width / 4,
fontSize: 30,
color: '#196AFF',
fontWeight: 600,
textAlign: 'center',
textBaseline: 'middle'
})
this.drawTips()
}
} catch (error) {
console.log(error)
}
},
async drawBackground() {
const {
ctx,
arcInfo: {
x,
y,
angle
}
} = this,
innerRadius = this.toRpx(58),
outerRadius = this.toRpx(34)
let startAngle = 0.79 * Math.PI
for (let i = 0; i < 5; i++) {
ctx.beginPath()
ctx.arc(x, y, innerRadius, startAngle, startAngle + angle)
ctx.arc(x, y, outerRadius, startAngle + angle, startAngle, true)
if (i == 0) ctx.closePath()
ctx.fillStyle = Arc_Background[i]
ctx.stroke()
ctx.fill()
startAngle += angle
}
ctx.save()
this.drawImg()
},
drawTips(data) {
const {
x,
y,
} = this.arcInfo
this.drawText({
text: data ? '分数' : '计算中…',
x: x / 2,
y: (y + 44) / 2,
fontSize: 10,
color: '#196AFF',
fontWeight: 400,
textAlign: 'center',
textBaseline: 'middle'
})
},
fillArc(startAngle, index, endAngle) {
const {
ctx,
part,
arcInfo: {
x,
y,
angle
}
} = this,
innerRadius = this.toRpx(58),
outerRadius = this.toRpx(34),
a = startAngle
let b = startAngle + Math.PI / 70
ctx.beginPath()
ctx.fillStyle = Arc_Data_Background[index]
ctx.arc(x, y, innerRadius, a, b)
ctx.arc(x, y, outerRadius, b, a, true)
ctx.fill()
ctx.save()
this.drawImg()
setTimeout(() => {
if (b <= endAngle) this.fillArc(b, index, endAngle)
else {
if (index < part - 1) {
this.fillArc(endAngle, index + 1, startAngle + angle)
} else {
const {
num
} = this.data
this.drawText({
text: num,
x: x / 2,
y: y / 2,
fontSize: 30,
color: '#196AFF',
fontWeight: 600,
textAlign: 'center',
textBaseline: 'middle'
})
this.drawTips(num)
}
}
}, 10)
},
drawText(params) {
const {
ctx
} = this
let {
x,
y,
text,
color,
fontSize,
textAlign,
fontWeight,
textBaseline
} = params,
[, font] = ctx.font.split('px')
x = this.toRpx(x)
y = this.toRpx(y)
ctx.beginPath()
ctx.font = `${fontWeight || 400} ${this.toRpx(fontSize || 12)}px ${font}`
ctx.textAlign = textAlign || 'left'
ctx.textBaseline = textBaseline || 'top'
ctx.fillStyle = color
console.log(ctx)
ctx.fillText(text, x, y)
ctx.save()
this.drawImg()
},
drawImg() {
let url = this.canvas.toDataURL('image/png')
this.setData({
url
})
},
toRpx(val) {
return this._pixelRatio_ * val
}
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* packageEquity/pages/aiInspection/components/circular/circular.wxss */
.arc{
width: 100%;
height: 100%;
}
\ No newline at end of file
<image src="{{url}}" class="arc" />
\ No newline at end of file
/* packageEquity/pages/carQuotation/CarQuotationDetail/CarQuotationDetail.wxss */
page {
padding: var(--fontSize20);
}
.payInfo {
width: var(--fontSize710);
background: #FFFFFF;
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
border-radius: var(--fontSize16);
margin: 0 auto;
.payCom {
box-sizing: border-box;
padding: var(--fontSize40) var(--fontSize120);
......@@ -58,4 +55,8 @@ page {
margin-bottom: var(--fontSize12);
}
}
}
.order-info{
width: var(--fontSize710);
margin: 0 auto;
}
\ No newline at end of file
......@@ -18,6 +18,8 @@
</view>
</view>
</view>
<order-info OderType="detail" orderInfo="{{orderDetail}}" />
<view class="order-info">
<order-info OderType="detail" orderInfo="{{orderDetail}}" />
</view>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
......@@ -7,11 +7,13 @@ import qrcode from '~/utils/lib/wxqrcode'
// }
// import { setWebSocket } from '~/store/index'
let time = null
const navStyle = 'background:transparent;box-shadow:none;'
Page({
/**
* 页面的初始数据
*/
data: {
navStyle,
payItems: [
{ id: 1, name: '微信支付', icon: 'wxPay' },
{ id: 3, name: 'POS机', icon: 'posPay' },
......@@ -285,5 +287,10 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() {},
onPageScroll({scrollTop}){
this.setData({
navStyle:scrollTop > 20 ? '' : navStyle
})
}
})
......@@ -14,10 +14,12 @@
background-size: 100% 100%;
}
.big-img .money {
position: absolute;
color: #fff;
font-size: var(--fontSize28);
display: flex;
margin-top: var(--fontSize40);
left: var(--fontSize36);
bottom: var(--fontSize74);
}
.big-img .money .sum {
......@@ -100,8 +102,9 @@
}
.OrderInfoPay {
// background-color: #f5f5f5;
padding:0 var(--fontSize20) var(--fontSize20);
padding-bottom: var(--fontSize20);
width: var(--fontSize710);
margin: 0 auto;
.payType {
display: flex;
margin: var(--fontSize44) 0;
......
<!-- packageEquity/pages/carQuotation/CarQuotationPay/CarQuotationPay.wxml -->
<navigation-bar showBack navStyle="{{navStyle}}" bindback="back">订单支付</navigation-bar>
<view class="big-img page-box isFullSucreen">
<view class="titleBox">
<!-- <view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../../images/arrow-left.png" />
</view>
<view class="navigation-title-text">订单支付</view>
</view>
</view> -->
<view class="money">总保费{{orderDetail.totalPrice}}元/年</view>
</view>
<view class="OrderInfoPay">
......
......@@ -2,20 +2,22 @@
page {
background-color: #f3f5f7;
padding: var(--fontSize20);
box-sizing: border-box;
}
.schemeConfirmationCom {
position: relative;
box-sizing: border-box;
padding: var(--fontSize32) var(--fontSize32) 0;
width: var(--fontSize710);
// width: var(--fontSize710);
width:calc(710 / 750 * 100%) ;
height: var(--fontSize776);
background: #FFFFFF;
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
border-radius: var(--fontSize16);
text-align: center;
overflow: hidden;
margin: 0 auto;
.title {
font-weight: 500;
font-size: var(--fontSize32);
......@@ -33,12 +35,12 @@ page {
position: absolute;
left: 0;
bottom: 0;
width: var(--fontSize710);
width: 100%;
height: var(--fontSize96);
display: flex;
background: #FFFFFF;
font-family: PingFangSC-Medium;
ffont-weight: 500;
font-weight: 500;
font-size: var(--fontSize32);
color: #347BFF;
text-align: center;
......
......@@ -52,7 +52,7 @@ page {
.canvas_wrap {
position: relative;
width: var(--fontSize646);
width: 100%;
height: var(--fontSize400);
background: #F4F5F7;
border: var(--fontSize2) solid #EFF0F2;
......@@ -140,7 +140,7 @@ page {
}
.modal-canvas {
width: var(--fontSize646);
width: 100%;
height: var(--fontSize400);
background: #F4F5F7;
margin: 0 auto;
......
......@@ -145,7 +145,9 @@ page {
display: flex;
justify-content: center;
}
.login-form{
font-size: var(--fontSize28);
}
.login-form .input {
width: var(--fontSize594);
box-sizing: border-box;
......@@ -157,7 +159,9 @@ page {
background: #F7F8FA;
border-radius: var(--fontSize12);
}
.login-form .input input{
height: var(--fontSize28);
}
.login-form .input .clear {
flex-shrink: 0;
width: var(--fontSize36);
......
......@@ -24,7 +24,7 @@ page {
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
width: var(--fontSize710);
width: calc(710 / 750 * 100%);
height: var(--fontSize88);
background-color: #F7F8FA;
display: flex;
......@@ -49,11 +49,11 @@ page {
}
.setItem {
width: var(--fontSize710);
width: calc(710 / 750 * 100%);
height: var(--fontSize264);
background: #FFFFFF;
border-radius: var(--fontSize16);
margin: var(--fontSize20) 0 0 var(--fontSize20);
margin: var(--fontSize20) auto 0;
position: relative;
&::before {
......@@ -80,13 +80,13 @@ page {
}
.input-item {
// width: var(--fontSize670);
// width: calc(670 / 750 * 100%);
// height: var(--fontSize124);
// background: #F7F8FA;
// border-radius: var(--fontSize16);
// padding: var(--fontSize32) 0 0 var(--fontSize12);
box-sizing: border-box;
width: var(--fontSize670);
width: calc(670 / 750 * 100%);
height: var(--fontSize124);
background: #F7F8FA;
border-radius: var(--fontSize16);
......
/* tabWorkOrder/pages/createArchives/createArchives.wxss */
page {
background-color: rgb(246, 247, 247);
transition: none !important;
/* position: relative; */
background-color: rgb(246, 247, 247);
transition: none !important;
/* position: relative; */
}
.main {
padding: 0 0 var(--fontSize136);
/* padding: 0 0 var(--fontSize136); */
padding: 0 0 var(--fontSize136);
/* padding: 0 0 var(--fontSize136); */
}
.isFullSucreen {
padding-bottom: var(--fontSize185) !important;
padding-bottom: var(--fontSize185) !important;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
padding-bottom: 34px !important;
}
.box {
// height: calc(100% - var(--fontSize180));
// /* background: #FFFFFF; */
// background-color: #F8F9F9;
// /* background-color: rgb(246, 247, 247); */
// /* box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); */
// /* border-radius: var(--fontSize16); */
// overflow: hidden;
margin: var(--fontSize20) 0 0 var(--fontSize20);
width: var(--fontSize710);
height: var(--fontSize782);
background: #FFFFFF;
border-radius: var(--fontSize16);
// height: calc(100% - var(--fontSize180));
// /* background: #FFFFFF; */
// background-color: #F8F9F9;
// /* background-color: rgb(246, 247, 247); */
// /* box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); */
// /* border-radius: var(--fontSize16); */
// overflow: hidden;
margin: var(--fontSize20) auto 0;
width: calc(710 / 750 * 100%);
min-height: var(--fontSize782);
background: #FFFFFF;
border-radius: var(--fontSize16);
}
.box .box-label {
width: var(--fontSize336);
height: var(--fontSize40);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
color: #292D33;
letter-spacing: 0;
padding: var(--fontSize32) 0 var(--fontSize30) var(--fontSize32);
width: var(--fontSize336);
height: var(--fontSize40);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize28);
color: #292D33;
letter-spacing: 0;
padding: var(--fontSize32) 0 var(--fontSize30) var(--fontSize32);
}
.box .box-img {
width: var(--fontSize670);
height: var(--fontSize648);
background: #F7F8FA;
border-radius: var(--fontSize16);
// padding: var(--fontSize30) 0 0 var(--fontSize20);
padding-left: var(--fontSize20);
padding: var(--fontSize20) 0;
width: calc(670 / 750 * 100%);
min-height: var(--fontSize648);
background: #F7F8FA;
border-radius: var(--fontSize16);
// padding: var(--fontSize30) 0 0 var(--fontSize20);
// padding-left: var(--fontSize20);
margin: 0 auto;
}
.select_img {
width: var(--fontSize592);
height: var(--fontSize608);
padding: var(--fontSize20) 0 0 var(--fontSize40);
display: block;
width: calc(592 / 750 * 100%);
height: var(--fontSize608);
margin: 0 auto;
}
.createData {
margin: var(--fontSize20);
background: #FFFFFF;
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
/* width: calc(100% + var(--fontSize40)); */
width: calc(100% - var(--fontSize40));
/* transform: translateX(calc(-1 * var(--fontSize20))); */
height: var(--fontSize120);
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding-left: var(--fontSize32);
margin: var(--fontSize20);
background: #FFFFFF;
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
/* width: calc(100% + var(--fontSize40)); */
width: calc(100% - var(--fontSize40));
/* transform: translateX(calc(-1 * var(--fontSize20))); */
height: var(--fontSize120);
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding-left: var(--fontSize32);
}
.createData .label {
width: var(--fontSize480);
height: var(--fontSize44);
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: var(--fontSize32);
color: #292D33;
line-height: var(--fontSize44);
width: var(--fontSize480);
height: var(--fontSize44);
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: var(--fontSize32);
color: #292D33;
line-height: var(--fontSize44);
}
.createData switch {
zoom: .8;
zoom: .8;
}
.btns {
position: fixed;
/* position: absolute; */
width: 100%;
left: 0;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
z-index: 99;
transition: none !important;
/* padding-bottom: 34px !important; */
padding-bottom: var(--fontSize10);
position: fixed;
/* position: absolute; */
width: 100%;
left: 0;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
z-index: 99;
transition: none !important;
/* padding-bottom: 34px !important; */
padding-bottom: var(--fontSize10);
}
.btn-box .tips {
display: flex;
justify-content: center;
align-items: center;
display: flex;
justify-content: center;
align-items: center;
/* height: var(--fontSize75); */
/* height: var(--fontSize75); */
font-weight: 600;
background-color: #EFF5FE;
font-weight: 600;
background-color: #EFF5FE;
}
.tips {
box-sizing: border-box;
padding: var(--fontSize16);
background-color: #F8F9F9;
color: #999999;
text-align: center;
width: 100%;
font-size: var(--fontSize24);
box-sizing: border-box;
padding: var(--fontSize16);
background-color: #F8F9F9;
color: #999999;
text-align: center;
width: 100%;
font-size: var(--fontSize24);
}
.tips .contentText {
margin-left: var(--fontSize20);
margin-right: auto;
display: flex;
font-weight: 500;
flex-direction: column;
justify-content: space-between;
margin-left: var(--fontSize20);
margin-right: auto;
display: flex;
font-weight: 500;
flex-direction: column;
justify-content: space-between;
}
.disabled {
opacity: .5;
opacity: .5;
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
<view class="box">
<view class="box-label">客户电子签名及施工页面:</view>
<view class="box-img">
<image class='select_img' src='{{IMG_URL}}/example01.png'></image>
<image class='select_img' mode="widthFix" src='{{IMG_URL}}/example01.png'></image>
</view>
</view>
</view>
......
......@@ -4,7 +4,7 @@ page {
}
.scrollCon {
width: var(--fontSize710);
width: calc(710 / 750 * 100%);
// height: var(--fontSize108);
background: #FFFFFF;
border-radius: var(--fontSize16);
......@@ -44,7 +44,7 @@ page {
.item-box {
.item {
box-sizing: border-box;
width: var(--fontSize670);
width: calc(670 / 750 * 100%);
height: var(--fontSize124);
background: #F7F8FA;
border-radius: var(--fontSize16);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!