Commit f346f51b by 张立顺

ui修改

1 parent bb59a003
......@@ -121,6 +121,7 @@ Component({
},
// 选中底部的按钮
selectBtn: function (e) {
let that = this
this.setData(
{
show: false
......
......@@ -9,7 +9,7 @@
<view class="popV-content-btm {{btnBorder?'border':''}}">
<!-- style="color:{{btnTextColor[index]?btnTextColor[index]:''}};" -->
<view class='popV-item' bindtap='shareBtn' data-type="wx">
<image class="img" src="../images/wxIcon.png" />
<image class="img wximg " src="../images/wxIcon.png" />
转发
</view>
<view class='popV-item' bindtap='shareBtn' data-type="download">
......
......@@ -90,6 +90,10 @@
margin-right: 8rpx;
}
.wximg {
width: 50rpx;
}
.popV-item:nth-last-child(1) {
margin-left: 20rpx;
}
......
......@@ -253,13 +253,13 @@ Page({
context.setFillStyle('#EFF5FE')
context.fillRect(0, 0, 355, 50)
this.setCanvasText(context, copyMerchantObj.merchantName, 355 / 2, 25, 14, '#3582EE', 'normal', true)
this.setCanvasText(context, copyMerchantObj.merchantName, 355 / 2, 25, 14, '#3582EE', 'bold', true)
this.setCanvasText(context, copyMerchantObj.customerTotal, 105, 90, 22, '#333', 'bold')
this.setCanvasText(context, '客户数', 105, 110, 12, '#333', 'normal')
this.setCanvasText(context, '客户数', 105, 112, 12, '#333', 'normal')
this.setCanvasText(context, copyMerchantObj.customerShareRate, 260, 90, 22, '#333', 'bold')
this.setCanvasText(context, '客占率', 260, 110, 12, '#333', 'normal')
this.setCanvasText(context, '客占率', 260, 112, 12, '#333', 'normal')
context.setFillStyle('#ECF4FF')
context.fillRect(5, 140, 345, 30)
......@@ -300,11 +300,27 @@ Page({
this.setCanvasText(context, `数据统计日期:${dateObj.toadyforList}`, 280, 350, 10, '#666666', 'normal')
const dpr = wx.getSystemInfoSync().pixelRatio
// context.width = 710 * dpr
// context.height = 700 * dpr
// context.scale(dpr, dpr)
// context.fillRect(0, 0, 100, 100)
context.draw()
//将生成好的图片保存到本地
setTimeout(function () {
wx.canvasToTempFilePath({
canvasId: 'mycanvas',
x: 0,
y: 0,
width: 710,
height: 700,
destWidth: 710 * dpr, // width*屏幕像素密度
destHeight: 700 * dpr, // height*屏幕像素密度
fileType: 'jpg',
quality: 1, //图片的质量,目前仅对 jpg 有效。取值范围为 (0, 1],不在范围内时当作 1.0 处理。
success: function (res) {
var tempFilePath = res.tempFilePath
that.setData({
......
......@@ -29,6 +29,16 @@ page {
background-color: #fff;
font-size: 24rpx;
.total4s {
font-size: 28rpx;
color: #333;
.num {
color: #3582EE;
font-weight: 500;
}
}
.item {
.solidArrow {
width: 14rpx;
......@@ -76,26 +86,27 @@ page {
.shopcon {
position: relative;
width: 355px;
width: 710rpx;
// height: 360px;
overflow: hidden;
border-radius: 8px;
background: #FFFFFF;
color: #333333;
font-size: 14px;
margin-bottom: 20px;
font-size: 28rpx;
margin-bottom: 20rpx;
.shopconHeader {
height: 40px;
height: 80rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
border-bottom: 1px solid #C3C3C3;
padding: 0 20rpx;
border-bottom: 1rpx solid rgba(195, 195, 195, .3);
.shareIcon {
width: 16px;
height: 16px;
width: 32rpx;
height: 32rpx;
}
// .title {
......@@ -105,7 +116,7 @@ page {
.shopInfo {
.shopheader {
height: 88px;
height: 176rpx;
display: flex;
justify-content: space-around;
align-items: center;
......@@ -113,36 +124,37 @@ page {
.shopheaderNum {
font-size: 22px;
font-size: 44rpx;
font-weight: 600;
}
.shopheaderlabel {
margin-top: 6px;
font-size: 12px;
margin-top: 12rpx;
font-size: 24rpx;
}
}
.shopStatistics,
.shopStatisticsTotal {
border-radius: 4px;
border-radius: 8rpx;
overflow: hidden;
.shopStatisticsLabel,
.shopStatisticsTotalLabel {
box-sizing: border-box;
width: 343px;
width: 686rpx;
margin: 0 auto;
height: 30px;
height: 60rpx;
display: flex;
align-items: center;
// flex-direction: row-reverse;
justify-content: flex-end;
padding: 0 12px;
padding: 0 24rpx;
color: #7F7F7F;
background: #ECF4FF;
// border-radius: 4px 4px 0px 0px;
font-size: 12px;
font-size: 24rpx;
border-radius: 8rpx;
.shopStatisticsLabelItem {
width: 20%;
......@@ -153,10 +165,11 @@ page {
width: 25%;
text-align: center;
}
}
.shopStatisticsTotal {
margin-top: 10px;
margin-top: 20rpx;
}
.shopStatisticsToday,
......@@ -165,10 +178,10 @@ page {
box-sizing: border-box;
display: flex;
align-items: center;
height: 40px;
padding: 0 12px;
height: 80rpx;
padding: 0 24rpx;
background: #F9FCFF;
width: 343px;
width: 686rpx;
margin: 0 auto;
.shopStatisticsTodayLabel,
......@@ -186,9 +199,12 @@ page {
}
.StatisticsTotalLabel {
width: 20%;
margin-right: auto;
text-align: center;
box-sizing: border-box;
width: 25%;
padding-left: 24rpx;
// margin-right: auto;
// text-align: center;
// text-align: left;
}
.StatisticsTotalItem {
......@@ -197,18 +213,22 @@ page {
font-weight: 600;
}
}
.shopStatisticsMoth {
margin-bottom: 20rpx;
}
}
}
.shopFooter {
box-sizing: border-box;
height: 40px;
height: 80rpx;
font-size: 10px;
text-align: right;
color: #666666;
line-height: 40px;
padding-right: 6px;
line-height: 80rpx;
padding-right: 12rpx;
}
}
......@@ -298,17 +318,8 @@ page {
}
.img {
width: 355px;
width: 710rpx;
border-radius: 24rpx;
// margin-bottom: calc(106rpx + constant(safe-area-inset-bottom));
// margin-bottom: calc(106rpx + env(safe-area-inset-bottom));
}
.test {
color: #3582EE;
}
.shengcheng {
width: 355px;
height: 370px;
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
<view class="header" style="margin-top:{{statusBarHeight}}px">
<view class="total4s" bindtap="createNewImg">
累计合作门店共计
<text>{{total}}</text>
<text class="num">{{total}}</text>
家
</view>
<view class="date">
......
......@@ -26,6 +26,16 @@ page {
font-size: 24rpx;
}
.header .total4s {
font-size: 28rpx;
color: #333;
}
.header .total4s .num {
color: #3582EE;
font-weight: 500;
}
.header .item .solidArrow {
width: 14rpx;
height: 10rpx;
......@@ -63,31 +73,31 @@ page {
.tableContainer .table-body .shopcon {
position: relative;
width: 355px;
width: 710rpx;
overflow: hidden;
border-radius: 8px;
background: #FFFFFF;
color: #333333;
font-size: 14px;
margin-bottom: 20px;
font-size: 28rpx;
margin-bottom: 20rpx;
}
.tableContainer .table-body .shopcon .shopconHeader {
height: 40px;
height: 80rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
border-bottom: 1px solid #C3C3C3;
padding: 0 20rpx;
border-bottom: 1rpx solid rgba(195, 195, 195, 0.3);
}
.tableContainer .table-body .shopcon .shopconHeader .shareIcon {
width: 16px;
height: 16px;
width: 32rpx;
height: 32rpx;
}
.tableContainer .table-body .shopcon .shopInfo .shopheader {
height: 88px;
height: 176rpx;
display: flex;
justify-content: space-around;
align-items: center;
......@@ -95,18 +105,18 @@ page {
}
.tableContainer .table-body .shopcon .shopInfo .shopheader .shopheaderNum {
font-size: 22px;
font-size: 44rpx;
font-weight: 600;
}
.tableContainer .table-body .shopcon .shopInfo .shopheader .shopheaderlabel {
margin-top: 6px;
font-size: 12px;
margin-top: 12rpx;
font-size: 24rpx;
}
.tableContainer .table-body .shopcon .shopInfo .shopStatistics,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal {
border-radius: 4px;
border-radius: 8rpx;
overflow: hidden;
}
......@@ -115,16 +125,17 @@ page {
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsLabel,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsTotalLabel {
box-sizing: border-box;
width: 343px;
width: 686rpx;
margin: 0 auto;
height: 30px;
height: 60rpx;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 12px;
padding: 0 24rpx;
color: #7F7F7F;
background: #ECF4FF;
font-size: 12px;
font-size: 24rpx;
border-radius: 8rpx;
}
.tableContainer .table-body .shopcon .shopInfo .shopStatistics .shopStatisticsLabel .shopStatisticsLabelItem,
......@@ -145,7 +156,7 @@ page {
.tableContainer .table-body .shopcon .shopInfo .shopStatistics .shopStatisticsTotal,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsTotal {
margin-top: 10px;
margin-top: 20rpx;
}
.tableContainer .table-body .shopcon .shopInfo .shopStatistics .shopStatisticsToday,
......@@ -157,10 +168,10 @@ page {
box-sizing: border-box;
display: flex;
align-items: center;
height: 40px;
padding: 0 12px;
height: 80rpx;
padding: 0 24rpx;
background: #F9FCFF;
width: 343px;
width: 686rpx;
margin: 0 auto;
}
......@@ -203,9 +214,9 @@ page {
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsToday .StatisticsTotalLabel,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsMoth .StatisticsTotalLabel,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .StatisticsTotal .StatisticsTotalLabel {
width: 20%;
margin-right: auto;
text-align: center;
box-sizing: border-box;
width: 25%;
padding-left: 24rpx;
}
.tableContainer .table-body .shopcon .shopInfo .shopStatistics .shopStatisticsToday .StatisticsTotalItem,
......@@ -219,14 +230,19 @@ page {
font-weight: 600;
}
.tableContainer .table-body .shopcon .shopInfo .shopStatistics .shopStatisticsMoth,
.tableContainer .table-body .shopcon .shopInfo .shopStatisticsTotal .shopStatisticsMoth {
margin-bottom: 20rpx;
}
.tableContainer .table-body .shopcon .shopFooter {
box-sizing: border-box;
height: 40px;
height: 80rpx;
font-size: 10px;
text-align: right;
color: #666666;
line-height: 40px;
padding-right: 6px;
line-height: 80rpx;
padding-right: 12rpx;
}
.tableContainer .table-body .tips {
......@@ -302,15 +318,6 @@ page {
}
.img {
width: 355px;
width: 710rpx;
border-radius: 24rpx;
}
.test {
color: #3582EE;
}
.shengcheng {
width: 355px;
height: 370px;
}
......@@ -18,6 +18,7 @@ Page({
canvas: '',
ctx: '',
iPath: '',
cameraBtnSrc: './image/cameraBtn.png',
picUploadSrc: './image/picPick.png',
bgSrc: './image/backGroundImage.png',
......@@ -168,13 +169,16 @@ Page({
})
} else {
console.log('识别失败')
setTimeout(()=>{
wx.$util.showToast({
title: '识别失败请重试',
icon: 'fail',
// duration: 2000,//提示的延迟时间,单位毫秒,默认:1500
},500)
})
setTimeout(() => {
wx.$util.showToast(
{
title: '识别失败请重试',
icon: 'fail'
// duration: 2000,//提示的延迟时间,单位毫秒,默认:1500
},
500
)
})
}
})
.catch(err => {
......
......@@ -77,10 +77,10 @@ module.exports = {
}
],
payType: {
3: 'pos机支付',
2: '门店收款',
1: '微信支付',
0: '战败',
1: '微信支付',
2: '门店收款',
3: 'pos机支付',
4: '支付宝支付'
},
orderType: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!