Commit 3e7cde85 by 张立顺

2.0 需求样式修改

1 parent d27ebb11
......@@ -37,16 +37,16 @@ App({
// options.query.scene = 2 //调试用
// console.log(options, 'options')
// orderCode=2208241419054111&merchantId=44209480&customerName=123&page=createOrder
let mockOptions = {
query: {
// orderCode: 2208241419054111,
// merchantId: 44209480,
customerName: '%E7%83%82%EC%A7%84%ED%9D%99%E6%B3%A5',
page: 'createArchives'
}
}
// let mockOptions = {
// query: {
// // orderCode: 2208241419054111,
// // merchantId: 44209480,
// customerName: '%E7%83%82%EC%A7%84%ED%9D%99%E6%B3%A5',
// page: 'createArchives'
// }
// }
options = mockOptions
// options = mockOptions
if (options) {
let query = options.query
if (query) {
......@@ -60,7 +60,7 @@ App({
let res = checkScene(options)
// console.log(res, 'res')
// 如果需要重新登录
res && this.login(true, '订单与当前登录园区不一致,请重新登录。')
res && this.login(true, res)
}
},
login(relogin, context) {
......
// components/GlCell/GlCell.js
Component({
options: {
styleIsolation: 'apply-shared'
},
/**
* 组件的属性列表
*/
......
<view class='cell-box'>
<view class="cell {{cellHeight?'cellHeight': ''}} {{border?'border':''}}" bindtap="click">
<view class='cell-label' style="width:{{labelWidth}};{{labelStyle}}" bindtap="titleClick">
<view class='cell-label title-style' style="width:{{labelWidth}};{{labelStyle}}" bindtap="titleClick">
<text wx:if='{{required&&requiredBefore}}' class='required'>*</text>
{{label||'标题'}}
<text wx:if='{{required&&requiredAfter}}' class='required'>*</text>
......
......@@ -21,8 +21,8 @@ page {
.arrow {
position: absolute;
top: 50%;
width: 48rpx;
height: 48rpx;
width: 72rpx;
height: 72rpx;
}
.right {
......
......@@ -6,6 +6,9 @@ import carLifeApi from '~/packageEquity/carEquityApi'
const defaultLabelWidth = '140rpx'
// import api from '~/api/api'
Component({
options: {
styleIsolation: 'shared'
},
/**
* 组件的属性列表
*/
......
......@@ -16,6 +16,15 @@
overflow: hidden;
}
.pickerCell {
.cell-label {
font-weight: 500;
font-size: 32rpx;
color: #222222;
}
}
.employeeBox {
box-shadow: 0 6rpx 16rpx 0 #cdcdd159;
border-radius: 16rpx;
......@@ -30,6 +39,8 @@
display: flex;
}
.title {
display: flex;
justify-content: space-between;
......@@ -79,7 +90,7 @@
color: #B6B6B8;
}
.arrow {
.pickerArrow {
width: 28rpx;
height: 26rpx;
margin-top: 26rpx;
......
......@@ -5,6 +5,7 @@
border
valueAlign="right"
label="推荐人"
class="pickerCell"
labelWidth="{{defaultLabelWidth}}">
<picker
bindchange="handleSalesChange"
......@@ -12,7 +13,7 @@
range="{{employeeList}}"
range-key="staffName">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<image class="pickerArrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{orderInfo.referrerId }}">{{orderInfo.referrer }}</view>
<text class="placeholder" wx:else>请选择</text>
</view>
......
......@@ -14,6 +14,7 @@ page {
box-shadow: 0 6rpx 16rpx 0 #cdcdd159;
border-radius: 16rpx;
text-align: center;
overflow: hidden;
.title {
font-weight: 500;
......
......@@ -176,5 +176,6 @@
]
}
},
"setting": {}
"setting": {},
"libVersion": "2.29.2"
}
\ No newline at end of file
......@@ -153,22 +153,21 @@ export const setConfigInfo = globalData => {
}
export const checkScene = options => {
// console.log(options, 'options')
// console.log(wx)
// return true
let { query } = options
console.log(query, 'query')
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
// 判断对象是否满足任意一个key
// console.log(query, ' query')
if (query && (query.scene || query.merchantId || query.type || query.page)) {
if (query.merchantId) {
// &&options.patch == 'tabIndex/pages/index/index'
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
// 需要当前门店的 不是就重新登录
if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
wx.$SCENE = null
// return this.login(true)
return true // 重新登录
// return true // 重新登录
return '订单与当前登录园区不一致,请重新登录。'
}
if (query.page) {
//订单跟进
......@@ -178,7 +177,6 @@ export const checkScene = options => {
options.path = 'pages/index/index'
}
}
// path
// h5跳转小程序 路径处理
if (query.page) {
const pagePath = {
......@@ -190,6 +188,9 @@ export const checkScene = options => {
}
console.log(options, 'options')
wx.$SCENE = options
if (!userInfo) {
return '未登录,请登录。'
}
}
}
......
......@@ -43,13 +43,13 @@ Page({
text: '取消预约',
color: '#FF7D12'
},
4: {
text: '已施工',
color: '#999999'
},
5: {
text: '过期到店',
color: '#FF7D12'
},
4: {
text: '已施工',
color: '#999999'
}
},
searchObj: {},
......
......@@ -53,7 +53,7 @@
data-item="{{li}}">
<view class="status" style="color:{{status[li.inviteStatus].color}}">
<block>{{status[li.inviteStatus].text}}</block>
<block wx:if="{{li.inviteStatus !==4}}">
<block wx:if="{{li.inviteStatus !=4}}">
<view class="line" style="background-color:{{status[li.inviteStatus].color}};" />
</block>
</view>
......
......@@ -663,7 +663,7 @@ Page({
})
console.log(res)
let { code, message, data } = result
data.customer.customerName = res.customerName
// data.customer.customerName = res.customerName
code == 0 && (res = data)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!