Commit 01585592 by 张立顺

fix 样式修复

1 parent 65094dab
...@@ -160,13 +160,13 @@ Component({ ...@@ -160,13 +160,13 @@ Component({
obj = obj =
loginType == 1 loginType == 1
? { ? {
mobile: formData.phone, mobile: formData.phone,
code: formData.code code: formData.code
} }
: { : {
userName: formData.account, userName: formData.account,
password: md5(formData.password) password: md5(formData.password)
} }
this.setBtnLoading() this.setBtnLoading()
USERAPI[target](obj) USERAPI[target](obj)
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
...@@ -198,7 +198,16 @@ Component({ ...@@ -198,7 +198,16 @@ Component({
this.setData({ this.setData({
smsError: true smsError: true
}) })
wx.$api.showToast(message || '系统异常') // wx.$api.showToast(message || '系统异常')
wx.showModal({
title: '提示',
content: message || '系统异常',
confirmText: '我知道了',
showCancel: false,
confirmColor: '#292d33',
success(res) {
}
})
} }
}) })
.catch(err => { .catch(err => {
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
.left { .left {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
} }
.right { .right {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.title { .title {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
margin: 24rpx 0; margin: 24rpx 0;
} }
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
.left { .left {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
} }
.right { .right {
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
.title { .title {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
margin-bottom: 24rpx; margin-bottom: 24rpx;
margin-top: 24rpx;
} }
.tableBox { .tableBox {
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
.left { .left {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
} }
.right { .right {
...@@ -99,6 +100,7 @@ ...@@ -99,6 +100,7 @@
} }
.merchantName { .merchantName {
font-weight: 600;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: 28rpx;
margin: 12rpx 0; margin: 12rpx 0;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
.left { .left {
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 600;
} }
} }
......
...@@ -40,117 +40,8 @@ Component({ ...@@ -40,117 +40,8 @@ Component({
data: { data: {
// tableWidth: 1088, // tableWidth: 1088,
// tableFlag: true, // tableFlag: true,
table: [ table: [],
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// },
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// }
],
formattedTable: [] formattedTable: []
// tableObj: [
// {
// name: '贴膜',
// unit: '/台',
// key: 'filmTimes',
// width: 'var(--fontSize110)'
// },
// {
// name: '核销',
// unit: '/张',
// key: 'usedTotal',
// width: 'var(--fontSize110)'
// },
// {
// name: '体验',
// unit: '/位',
// key: 'experienceTotal',
// width: 'var(--fontSize110)'
// },
// {
// name: '转化',
// unit: '/单',
// key: 'upgradeTotal',
// width: 'var(--fontSize110)'
// },
// ]
}, },
observers: { observers: {
'table, tableObj': function (table, tableObj) { 'table, tableObj': function (table, tableObj) {
...@@ -166,6 +57,14 @@ Component({ ...@@ -166,6 +57,14 @@ Component({
let { headerConfig } = this.data let { headerConfig } = this.data
// let { headerConfig } = this.data // let { headerConfig } = this.data
console.log(headerConfig, 'headerConfig') console.log(headerConfig, 'headerConfig')
if (headerConfig.key == 'merchantName') {
let { item } = e.currentTarget.dataset
wx.navigateTo({
url: `/packageCustomer/pages/merchantDetail/merchantDetail?query=${encodeURIComponent(
JSON.stringify(item)
)}`
})
}
if (headerConfig.key == 'regionName') { if (headerConfig.key == 'regionName') {
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
wx.navigateTo({ wx.navigateTo({
...@@ -178,7 +77,10 @@ Component({ ...@@ -178,7 +77,10 @@ Component({
formatTable(table, tableObj) { formatTable(table, tableObj) {
// 通用格式化:为空返回"0.00",数值保留两位小数,并加千分位逗号 // 通用格式化:为空返回"0.00",数值保留两位小数,并加千分位逗号
// 特例:当 headerConfig.key 为 'staffName' 时不处理数值格式化 // 特例:当 headerConfig.key 为 'staffName' 时不处理数值格式化
if (this.data.headerConfig && this.data.headerConfig.key === 'staffName') { if (
this.data.headerConfig &&
this.data.headerConfig.key === 'staffName'
) {
this.setData({ formattedTable: table }) this.setData({ formattedTable: table })
return return
} }
......
...@@ -8,7 +8,8 @@ Page({ ...@@ -8,7 +8,8 @@ Page({
*/ */
data: { data: {
navStyle: 'background-color: rgba(0,0,0,0);', navStyle: 'background-color: rgba(0,0,0,0);',
track_event_code: 'sales_index_view_page' track_event_code: 'sales_index_view_page',
navTitleStyle: "font-weight: 600; font- size: 32rpx; color: #000;",
}, },
// navbar高度设置 // navbar高度设置
// navbarReady(e) { // navbarReady(e) {
...@@ -42,7 +43,7 @@ Page({ ...@@ -42,7 +43,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
onReachBottom() { onReachBottom() {
console.log('滑到底部了') console.log('滑到底部了')
...@@ -70,11 +71,11 @@ Page({ ...@@ -70,11 +71,11 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
onShareTimeline: function () {} onShareTimeline: function () { }
}) })
...@@ -5,6 +5,12 @@ page { ...@@ -5,6 +5,12 @@ page {
overflow: scroll; overflow: scroll;
} }
.indexTitle {
.navigation-bar-titleText {
font-weight: 600;
}
}
@keyframes opacity-view { @keyframes opacity-view {
0% { 0% {
opacity: 0; opacity: 0;
......
<!--pages/tab/index/index.wxml--> <!--pages/tab/index/index.wxml-->
<!-- <text>pages/tab/index/index.wxml</text> --> <!-- <text>pages/tab/index/index.wxml</text> -->
<navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady">首页</navigation-bar> <navigation-bar navStyle="{{ navStyle }}" bindnavbarReady="navbarReady" navTitleStyle="{{navTitleStyle}}">首页</navigation-bar>
<view class="bg"></view> <view class="bg"></view>
<view style="height:100vh;overflow: hidden;"> <view style="height:100vh;overflow: hidden;">
<view class="layout" style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}"> <view class="layout" style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!