Commit f346f51b by 张立顺

ui修改

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