Commit 3e7cde85 by 张立顺

2.0 需求样式修改

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