Commit 01585592 by 张立顺

fix 样式修复

1 parent 65094dab
......@@ -160,13 +160,13 @@ Component({
obj =
loginType == 1
? {
mobile: formData.phone,
code: formData.code
}
mobile: formData.phone,
code: formData.code
}
: {
userName: formData.account,
password: md5(formData.password)
}
userName: formData.account,
password: md5(formData.password)
}
this.setBtnLoading()
USERAPI[target](obj)
.then(({ code, data, message }) => {
......@@ -198,7 +198,16 @@ Component({
this.setData({
smsError: true
})
wx.$api.showToast(message || '系统异常')
// wx.$api.showToast(message || '系统异常')
wx.showModal({
title: '提示',
content: message || '系统异常',
confirmText: '我知道了',
showCancel: false,
confirmColor: '#292d33',
success(res) {
}
})
}
})
.catch(err => {
......
......@@ -61,7 +61,7 @@
.left {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
}
.right {
......
......@@ -3,7 +3,7 @@
.title {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
margin: 24rpx 0;
}
......@@ -26,7 +26,7 @@
.left {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
}
.right {
......
......@@ -4,8 +4,9 @@
.title {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
margin-bottom: 24rpx;
margin-top: 24rpx;
}
.tableBox {
......@@ -31,7 +32,7 @@
.left {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
}
.right {
......@@ -99,6 +100,7 @@
}
.merchantName {
font-weight: 600;
color: #292d33;
font-size: 28rpx;
margin: 12rpx 0;
......
......@@ -16,7 +16,7 @@
.left {
color: #181a1f;
font-size: 32rpx;
font-weight: 500;
font-weight: 600;
}
}
......
......@@ -40,117 +40,8 @@ Component({
data: {
// tableWidth: 1088,
// tableFlag: true,
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
// }
],
table: [],
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: {
'table, tableObj': function (table, tableObj) {
......@@ -166,6 +57,14 @@ Component({
let { headerConfig } = this.data
// let { headerConfig } = this.data
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') {
let { item } = e.currentTarget.dataset
wx.navigateTo({
......@@ -178,7 +77,10 @@ Component({
formatTable(table, tableObj) {
// 通用格式化:为空返回"0.00",数值保留两位小数,并加千分位逗号
// 特例:当 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 })
return
}
......
......@@ -8,7 +8,8 @@ Page({
*/
data: {
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高度设置
// navbarReady(e) {
......@@ -42,7 +43,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
onReady: function () { },
onReachBottom() {
console.log('滑到底部了')
......@@ -70,11 +71,11 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {},
onShareTimeline: function () {}
onShareAppMessage: function () { },
onShareTimeline: function () { }
})
......@@ -5,6 +5,12 @@ page {
overflow: scroll;
}
.indexTitle {
.navigation-bar-titleText {
font-weight: 600;
}
}
@keyframes opacity-view {
0% {
opacity: 0;
......
<!--pages/tab/index/index.wxml-->
<!-- <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 style="height:100vh;overflow: hidden;">
<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!