Commit 1dbd3309 by 张立顺

Merge branch 'dev_v4.31.0_1031' of http://192.168.3.233:8090/saas_plus/dj-car-bo…

…utique-work-wechat into dev_v4.31.0_1031
2 parents 0187a8e0 c057b604
Showing 214 changed files with 771 additions and 456 deletions
...@@ -109,7 +109,7 @@ App({ ...@@ -109,7 +109,7 @@ App({
content: context || '登录过期,请重新登录。', content: context || '登录过期,请重新登录。',
showCancel: false, showCancel: false,
confirmText: '去登录', confirmText: '去登录',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
that.globalData.yqdInfo = {} that.globalData.yqdInfo = {}
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
}, },
"tabBar": { "tabBar": {
"color": "#757980", "color": "#757980",
"selectedColor": "#3582EE", "selectedColor": "#347BFF",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"position": "bottom", "position": "bottom",
"list": [ "list": [
...@@ -79,7 +79,9 @@ ...@@ -79,7 +79,9 @@
"pages/createArchives/createArchives", "pages/createArchives/createArchives",
"pages/orderSignature/orderSignature", "pages/orderSignature/orderSignature",
"pages/fullSignture/fullSignture", "pages/fullSignture/fullSignture",
"pages/ocr/ocr" "pages/ocr/ocr",
"pages/premiumUpgrade/premiumUpgrade",
"pages/defeatOrder/defeatOrder"
] ]
}, },
{ {
...@@ -161,7 +163,8 @@ ...@@ -161,7 +163,8 @@
"van-popup": "@vant/weapp/popup/index", "van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index", "van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index", "van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsx-applet-component/GlsxPrivacy/index" "glsx-privacy": "glsx-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData"
}, },
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
......
...@@ -9,17 +9,17 @@ Component({ ...@@ -9,17 +9,17 @@ Component({
type: Boolean, type: Boolean,
observer: function(n) { observer: function(n) {
if (n) { if (n) {
let { copyArtificerList, orderInfo } = this.data let { copyArtificerList, artificerSelectObj } = this.data
copyArtificerList.map(i => { copyArtificerList.map(i => {
i.active = false i.active = false
if (i.id == orderInfo?.technicianId) { if (i.id == artificerSelectObj?.technicianId) {
i.active = true i.active = true
} }
return i return i
}) })
this.setData({ this.setData({
artificerList: copyArtificerList, artificerList: copyArtificerList,
selectedTechnicianId: orderInfo?.technicianId, selectedTechnicianId: artificerSelectObj?.technicianId,
searchValue: '' searchValue: ''
}) })
} }
...@@ -27,6 +27,7 @@ Component({ ...@@ -27,6 +27,7 @@ Component({
}, },
title: String, title: String,
orderInfo: Object, orderInfo: Object,
artificerSelectObj: Object,
copyArtificerList: Array copyArtificerList: Array
}, },
...@@ -100,16 +101,28 @@ Component({ ...@@ -100,16 +101,28 @@ Component({
artificerSelectPopup: false artificerSelectPopup: false
}) })
}, },
// 打开生意助手小程序
goMiniprogram() {
wx.navigateToMiniProgram({
appId: 'wx2c28337db96364d2'
})
},
async confirm() { async confirm() {
let { copyArtificerList, orderInfo } = this.data let { copyArtificerList, orderInfo, artificerSelectObj } = this.data
let arr = copyArtificerList?.filter(v => v.active) || [] let arr = copyArtificerList?.filter(v => v.active) || []
if (!arr.length) { if (!arr.length) {
return wx.$util.showToast('请选择技师') return wx.$util.showToast('请选择技师')
} }
orderInfo.technicianUuid = arr[0]?.uuid || '' let obj = {
orderInfo.technicianId = arr[0]?.id || '' ...artificerSelectObj,
orderInfo.technicianName = arr[0]?.staffName || '' technicianUuid: arr[0]?.uuid || '',
this.triggerEvent('confirm', orderInfo) technicianId: arr[0]?.id || '',
technicianName: arr[0]?.staffName || ''
}
// orderInfo.technicianUuid = arr[0]?.uuid || ''
// orderInfo.technicianId = arr[0]?.id || ''
// orderInfo.technicianName = arr[0]?.staffName || ''
this.triggerEvent('confirm', obj)
} }
} }
}) })
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
<view class="sub-title text-center">{{title}}</view> <view class="sub-title text-center">{{title}}</view>
<view class="artificer-box"> <view class="artificer-box">
<search-input bindsearch="search" value="{{searchValue}}" /> <search-input bindsearch="search" value="{{searchValue}}" />
<view class="box-title">技师</view> <view class="box-title">
<view>技师</view>
<view class="tips">使用<text bind:tap="goMiniprogram">生意助手小程序</text>登录创建技师</view>
</view>
<scroll-view scroll-y style="height: calc(100% - 194rpx);" enhanced="{{true}}" show-scrollbar="{{false}}"> <scroll-view scroll-y style="height: calc(100% - 194rpx);" enhanced="{{true}}" show-scrollbar="{{false}}">
<block wx:for="{{artificerList}}" wx:key="index"> <block wx:for="{{artificerList}}" wx:key="index">
<view class="artificerList {{item.active?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}"> <view class="artificerList {{item.active?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}">
......
...@@ -39,6 +39,16 @@ ...@@ -39,6 +39,16 @@
font-size: 32rpx; font-size: 32rpx;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.box-title .tips{
color: #333333;
font-size: 24rpx;
}
.box-title .tips text{
color: #347BFF;
} }
.artificerList { .artificerList {
width: calc(100% - 50rpx); width: calc(100% - 50rpx);
...@@ -64,7 +74,7 @@ ...@@ -64,7 +74,7 @@
line-height: 98rpx; line-height: 98rpx;
} }
.artificerList.active { .artificerList.active {
color: #3582EE; color: #347BFF;
font-weight: 700; font-weight: 700;
position: relative; position: relative;
} }
...@@ -265,21 +265,21 @@ flex-wrap: wrap; */ ...@@ -265,21 +265,21 @@ flex-wrap: wrap; */
} }
.monItem.select { .monItem.select {
color: #3582EE; color: #347BFF;
/* background: #3582EE; /* background: #347BFF;
opacity: 0.1; */ opacity: 0.1; */
background-color: rgba(53, 130, 238, .1); background-color: rgba(53, 130, 238, .1);
} }
.monItem.active { .monItem.active {
color: #fff; color: #fff;
background: #3582EE; background: #347BFF;
border-radius: 8px 0px 0px 8px; border-radius: 8px 0px 0px 8px;
} }
.monItem.end { .monItem.end {
color: #fff; color: #fff;
background: #3582EE; background: #347BFF;
border-radius: 0px 8px 8px 0px; border-radius: 0px 8px 8px 0px;
} }
......
...@@ -265,22 +265,22 @@ flex-wrap: wrap; */ ...@@ -265,22 +265,22 @@ flex-wrap: wrap; */
} }
.monItem.select { .monItem.select {
color: #3582EE; color: #347BFF;
/* background: #3582EE; /* background: #347BFF;
opacity: 0.1; */ opacity: 0.1; */
background-color: rgba(53, 130, 238, .1); background-color: rgba(53, 130, 238, .1);
} }
.monItem.active { .monItem.active {
color: #fff; color: #fff;
background: #3582EE; background: #347BFF;
/* border-radius: 8px 0px 0px 8px; */ /* border-radius: 8px 0px 0px 8px; */
border-radius: 8px ; border-radius: 8px ;
} }
.monItem.end { .monItem.end {
color: #fff; color: #fff;
background: #3582EE; background: #347BFF;
border-radius: 0px 8px 8px 0px; border-radius: 0px 8px 8px 0px;
} }
......
...@@ -362,6 +362,7 @@ Component({ ...@@ -362,6 +362,7 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
this.triggerEvent('confirm', chooseItem)
}, },
start(e) { start(e) {
let { letter } = e.target.dataset let { letter } = e.target.dataset
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
} }
.child.active { .child.active {
color: #3582ee; color: #347BFF;
} }
.child.title { .child.title {
color: #282829; color: #282829;
padding-left: 64rpx; padding-left: 64rpx;
/* color: #3582ee; */ /* color: #347BFF; */
} }
.child .icon { .child .icon {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.timeList.data}}" wx:key="index"> <block wx:for="{{form.timeList.data}}" wx:key="index">
<block wx:if="{{item.type}}"> <block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' calenderColor='#3582EE' <calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' calenderColor='#347BFF'
vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents> vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
<view class="item text-center {{item.active?'active':''}}">{{item.name}}</view> <view class="item text-center {{item.active?'active':''}}">{{item.name}}</view>
</calendar> </calendar>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<block wx:if="{{item.type}}"> <block wx:if="{{item.type}}">
<view class="calendar"> <view class="calendar">
<calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' <calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range'
calenderColor='#3582EE' vertical minDate="{{minDate}}" maxDate="{{maxDate}}" isComponents> calenderColor='#347BFF' vertical minDate="{{minDate}}" maxDate="{{maxDate}}" isComponents>
<view class="item text-center {{item.active?'active':''}}">{{item.name}}</view> <view class="item text-center {{item.active?'active':''}}">{{item.name}}</view>
</calendar> </calendar>
</view> </view>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
font-size: 20rpx; font-size: 20rpx;
font-weight: normal; font-weight: normal;
text-align: right; text-align: right;
color: #3582EE; color: #347BFF;
} }
.box .picker-box .arrow { .box .picker-box .arrow {
...@@ -118,8 +118,8 @@ ...@@ -118,8 +118,8 @@
.box .list-box .item.active { .box .list-box .item.active {
background: rgba(53, 130, 238, 0.08); background: rgba(53, 130, 238, 0.08);
border-color: #3582EE; border-color: #347BFF;
color: #3582EE; color: #347BFF;
} }
.box .list-box .item.disabled { .box .list-box .item.disabled {
...@@ -151,11 +151,11 @@ ...@@ -151,11 +151,11 @@
.btn-box .btn.clear { .btn-box .btn.clear {
width: 186rpx; width: 186rpx;
color: #3582EE; color: #347BFF;
} }
.btn-box .btn.done { .btn-box .btn.done {
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
width: 480rpx; width: 480rpx;
} }
......
import api from '../../api/api' import api from '../../api/api'
import orderAPI from '~/tabWorkOrder/api'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -40,21 +41,69 @@ Component({ ...@@ -40,21 +41,69 @@ Component({
} }
} }
}, },
phoneShow: Boolean, // 是否显示手机号输入项
isAdditionRecordOrder: Boolean, // 是否是补录
customerPhone: { customerPhone: {
type: Number, type: Number,
observer: function (n, o) { observer: function (n, o) {
const phoneRex = /^[1]([3-9])[0-9]{9}$/ const phoneRex = /^[1]([3-9])[0-9]{9}$/
if (phoneRex.test(n)) { if (phoneRex.test(n)) {
this.getCustomerCouponList(n) let { merchantId, phoneShow, isAdditionRecordOrder } = this.data
console.log(this.data.merchantId, 'this.data.merchantId'); let thisPage = wx.$router.getPageInstance()
this.getCouponList(this.data.merchantId) let {
orderObj
} = thisPage.data
let params = {
phone: n,
merchantId: merchantId
}
if (!orderObj.orderCode && phoneShow && !isAdditionRecordOrder) { // 新下单 且可以手动输入手机号
orderAPI.getQueryCouponInfoByPhone(params).then(res => {
let { code, data, message } = res
if (code == 0) {
if (data && Object.keys(data)?.length) {
let obj = {
isPhoneQuery: true,
...orderObj,
customer: {
customerId: data.id,
standNo: data.standNo,
carBrand: data.carBrand,
carChildsBrandName: data.carChildsBrandName,
carSeriesName: data.carSeriesName,
customerName: data.customerName,
customerPhone: data.customerPhone,
customerSex: data.customerSex,
plateNumber: data.plateNumber,
experienceFlag: orderObj?.experienceFlag || 'Y' // 默认是体验
},
couponName: data.couponName,
customerCouponCode: data.customerCouponCode,
customerCouponId: data.customerCouponId
}
thisPage.setData({
orderObj: obj,
returnFun: true
})
}
} else {
wx.$util.showToast(message)
}
this.getCustomerCouponList(n)
this.getCouponList(this.data.merchantId, !(data && Object.keys(data)?.length))
})
} else {
this.getCustomerCouponList(n)
this.getCouponList(this.data.merchantId)
}
} }
} }
}, },
returnFun: Boolean, returnFun: Boolean,
pageName: { pageName: {
type: String type: String
} },
filmOrder: String // 下单类型
}, },
lifetimes: { lifetimes: {
attached() {} attached() {}
...@@ -106,9 +155,10 @@ Component({ ...@@ -106,9 +155,10 @@ Component({
} }
}) })
}, },
getCouponList(merchantId, refresh) { getCouponList(merchantId, setCoupon) {
let { let {
yqMerchantId yqMerchantId,
filmOrder
} = this.data } = this.data
// console.log(merchantId, yqMerchantId, 'yqMerchantId'); // console.log(merchantId, yqMerchantId, 'yqMerchantId');
// 解决 yqMerchantId 为0 请求空数据的问题 // 解决 yqMerchantId 为0 请求空数据的问题
...@@ -127,7 +177,16 @@ Component({ ...@@ -127,7 +177,16 @@ Component({
if (code == 0) { if (code == 0) {
let couponTypeList = Array.from(new Set([...data.map(e => e.couponInfo.couponType)])) let couponTypeList = Array.from(new Set([...data.map(e => e.couponInfo.couponType)]))
// console.log(couponTypeList) // console.log(couponTypeList)
let couponList = couponTypeList.map(e => { // 精品升级 过滤掉太阳膜礼券
if (filmOrder == '1') {
let index = couponTypeList.findIndex(v => v == 1)
index > -1 && couponTypeList.splice(index, 1)
}
let thisPage = wx.$router.getPageInstance()
let {
orderObj
} = thisPage.data
let couponList = couponTypeList.map((e, index) => {
let list = [] let list = []
let title = '' let title = ''
data.map(i => { data.map(i => {
...@@ -136,18 +195,43 @@ Component({ ...@@ -136,18 +195,43 @@ Component({
list.push(i) list.push(i)
title = i.couponInfo.couponTypeName title = i.couponInfo.couponTypeName
} }
if (setCoupon) {
if (e == 1 && list.length) { // 太阳膜礼券 无客户默认选择第一张太阳膜礼券
list[0].active = true
orderObj = {
...orderObj,
couponName: list[0]?.couponName,
customerCouponCode: list[0]?.merchantCouponCode,
merchantCouponId: list[0]?.id,
merchantId: list[0]?.merchantId
}
} else if (filmOrder == '1' && index == 0 && list.length) { // 精品升级礼券 默认选择第一张
let objProp = list[0]
objProp.active = true
orderObj = {
...orderObj,
couponName: objProp?.couponName,
customerCouponCode: objProp?.merchantCouponCode,
merchantCouponId: objProp?.id,
merchantId: objProp?.merchantId
}
}
}
}) })
return { return {
title, title,
list list
} }
}) })
thisPage.setData({
orderObj
})
this.setData({ this.setData({
couponList couponList
}) })
this.checkCoupon() this.checkCoupon()
} else { } else {
if (refresh) wx.$util.showToast(message) wx.$util.showToast(message)
} }
}) })
}, },
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
transform: translateY(-50%); transform: translateY(-50%);
} }
.item.active{ .item.active{
color: #3582EE; color: #347BFF;
} }
.item.active .icon{ .item.active .icon{
display: block; display: block;
......
...@@ -18,6 +18,15 @@ Component({ ...@@ -18,6 +18,15 @@ Component({
}) })
} }
} }
},
merchantId: {
type: Number,
observer: function (n) {
if (n) {
// 销售顾问切换门店 获取新的顾客数据
this.init()
}
}
} }
}, },
...@@ -41,9 +50,10 @@ Component({ ...@@ -41,9 +50,10 @@ Component({
init(keyword) { init(keyword) {
// console.log('getBrandList') // console.log('getBrandList')
// console.log(storageData) // console.log(storageData)
let { merchantId } = this.data
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
let params = { let params = {
merchantId: userInfo?.shopMerchantId, merchantId: merchantId || userInfo?.shopMerchantId,
pageSize: 999999, pageSize: 999999,
pageNum: 1, pageNum: 1,
// upgradeFinishFlag: 'R', // upgradeFinishFlag: 'R',
......
...@@ -85,13 +85,13 @@ ...@@ -85,13 +85,13 @@
} }
.child.active { .child.active {
color: #3582ee; color: #347BFF;
} }
.child.title { .child.title {
color: #282829; color: #282829;
padding-left: 64rpx; padding-left: 64rpx;
/* color: #3582ee; */ /* color: #347BFF; */
} }
.child .icon { .child .icon {
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
} }
.fixed-content .fixed-footer .fixed-confirm { .fixed-content .fixed-footer .fixed-confirm {
color: #3582EE; color: #347BFF;
} }
.fixed-content .fixed-footer::after { .fixed-content .fixed-footer::after {
......
// components/emptyData/emptyData.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
IMG_URL
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--components/emptyData/emptyData.wxml-->
<view class="empty-box">
<image class="no-data-img" src="{{IMG_URL}}empty_data.png" />
<view class="list-not-text">暂无数据</view>
</view>
\ No newline at end of file \ No newline at end of file
/* components/emptyData/emptyData.wxss */
.empty-box{
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.empty-box .no-data-img{
width: 160rpx;
height: 160rpx;
}
.empty-box .list-not-text{
margin-top: 10rpx;
font-size: 28rpx;
color: #BEC1C7;
}
...@@ -43,7 +43,8 @@ Component({ ...@@ -43,7 +43,8 @@ Component({
} }
} }
}, },
disabled: Boolean disabled: Boolean,
titleBtn: String
}, },
/** /**
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
class="titleIcon" class="titleIcon"
wx:if="{{iconSrc}}" wx:if="{{iconSrc}}"
src="{{iconSrc}}" /> src="{{iconSrc}}" />
<text class="titleBtn" wx:if="{{titleBtn}}">{{titleBtn}}</text>
</view> </view>
<view class='cell-value ' style="width:calc(100% - {{labelWidth}});"> <view class='cell-value ' style="width:calc(100% - {{labelWidth}});">
<view class='value {{valueAlign}} {{haveArrow}}'> <view class='value {{valueAlign}} {{haveArrow}}'>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
} }
.cell.border { .cell.border {
border-bottom: 2rpx solid rgba(195, 195, 195, .3); border-bottom: 1rpx solid #EFF0F2;
} }
.cell-label { .cell-label {
...@@ -28,9 +28,22 @@ ...@@ -28,9 +28,22 @@
} }
.titleIcon { .titleIcon {
width: 34rpx; width: 32rpx;
height: 34rpx; height: 32rpx;
margin-left: 10rpx; margin-left: 8rpx;
}
.titleBtn{
display: inline-block;
background: #FFFFFF;
border: 1rpx solid #347BFF;
border-radius: 26px;
color: #347BFF;
height: 48rpx;
line-height: 48rpx;
padding: 0 24rpx;
font-size: 24rpx;
margin-left: 8rpx;
} }
.cell-value { .cell-value {
......
...@@ -3,7 +3,12 @@ Component({ ...@@ -3,7 +3,12 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
show: Boolean, show: {
type: Boolean,
observer: function(n) {
if (n) this.setGoodsActive()
}
},
goodsData: { goodsData: {
type: Array, type: Array,
observer: function (n) { observer: function (n) {
...@@ -21,7 +26,8 @@ Component({ ...@@ -21,7 +26,8 @@ Component({
minPrice: { minPrice: {
type: Number type: Number
// value:0 // value:0
} },
isSolarFilm: Boolean
}, },
/** /**
...@@ -70,29 +76,64 @@ Component({ ...@@ -70,29 +76,64 @@ Component({
goodsList: data goodsList: data
}) })
}, },
// 去重保留第二项
arrayUnique(arr, name) {
var hash = {}
return arr.reduce(function(acc, cru, index) {
if (!hash[cru[name]]) {
hash[cru[name]] = { index: index }
acc.push(cru)
} else {
acc.splice(hash[cru[name]]['index'], 1, cru)
}
return acc
}, [])
},
getChooseList() { getChooseList() {
let { goodsList, chooseGoodsList } = this.data let { goodsList, chooseGoodsList, isSolarFilm } = this.data
let chooseList = [] let chooseList = []
goodsList.map(e => { // 太阳膜下单 需保留已选的商品
e.upgradeGoodsList.map(c => { if (isSolarFilm) {
if (c.active) { goodsList.map(e => {
if (!c.count) c.count = 1 let arr = this.arrayUnique(e.upgradeGoodsList.concat(chooseGoodsList), 'id')
if (chooseGoodsList.length > 0) { arr?.map(c => {
chooseGoodsList.map(x => { if (c.active) {
if (x.id == c.id) { if (!c.count) c.count = 1
console.log(x) if (chooseGoodsList.length > 0) {
c.price = x.price || 0 chooseGoodsList.map(x => {
} if (x.id == c.id) {
}) c.price = x.price || 0
} else { }
c.price = c.upgradePrice || 0 })
} else {
c.price = c.upgradePrice || 0
}
if (!c.price) c.price = c.upgradePrice
chooseList.push(c)
} }
if (!c.price) c.price = c.upgradePrice })
chooseList.push(c)
}
}) })
}) } else {
return chooseList goodsList.map(e => {
e.upgradeGoodsList.map(c => {
if (c.active) {
if (!c.count) c.count = 1
if (chooseGoodsList.length > 0) {
chooseGoodsList.map(x => {
if (x.id == c.id) {
c.price = x.price || 0
}
})
} else {
c.price = c.upgradePrice || 0
}
if (!c.price) c.price = c.upgradePrice
chooseList.push(c)
}
})
})
}
return this.arrayUnique(chooseList, 'id')
}, },
choose(e) { choose(e) {
let { item, index, ind } = e.currentTarget.dataset let { item, index, ind } = e.currentTarget.dataset
...@@ -164,6 +205,11 @@ Component({ ...@@ -164,6 +205,11 @@ Component({
goodsList: arr goodsList: arr
}) })
}, },
cancel() {
this.setData({
show: false
})
},
confirm() { confirm() {
let chooseList = this.getChooseList() let chooseList = this.getChooseList()
...@@ -177,7 +223,7 @@ Component({ ...@@ -177,7 +223,7 @@ Component({
thisPage.setData({ thisPage.setData({
goodsList: chooseList goodsList: chooseList
}) })
this.triggerEvent('confirm', chooseList)
this.setData({ this.setData({
show: false show: false
}) })
......
<wxs src="index.wxs" module="filter" /> <wxs src="index.wxs" module="filter" />
<popup show="{{show}}" title="选择商品" bindconfirm="confirm"> <popup show="{{show}}" title="选择商品" bindconfirm="confirm" bindcancel="cancel">
<view class="coupon-box"> <view class="coupon-box">
<search-input bindsearch="searchGoods" /> <search-input bindsearch="searchGoods" />
<scroll-view class="coupon" scroll-y> <scroll-view class="coupon" scroll-y>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
} }
.item .value .price { .item .value .price {
color: #3582EE; color: #347BFF;
} }
.item .control { .item .control {
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
.item .control .add { .item .control .add {
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;
color: #3582EE; color: #347BFF;
background: #F7F7F7; background: #F7F7F7;
border-radius: 6rpx; border-radius: 6rpx;
display: flex; display: flex;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
} }
.merchantList.active { .merchantList.active {
color: #3582EE; color: #347BFF;
font-weight: 700; font-weight: 700;
position: relative; position: relative;
} }
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
content: ''; content: '';
position: absolute; position: absolute;
bottom: 0; bottom: 0;
background: #3582EE; background: #347BFF;
border-radius: 3rpx; border-radius: 3rpx;
width: 60rpx; width: 60rpx;
height: 6rpx; height: 6rpx;
...@@ -94,6 +94,6 @@ ...@@ -94,6 +94,6 @@
} }
.seles.active{ .seles.active{
background: rgba(53,130,238,0.08); background: rgba(53,130,238,0.08);
color: #3582EE; color: #347BFF;
border-color: #3582EE; border-color: #347BFF;
} }
\ No newline at end of file \ No newline at end of file
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
} }
.order_no_item.active{ .order_no_item.active{
background: #3582ee1a; background: #347BFF1a;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
/* .order-popup-content .shortcut-list .shortcut.active { /* .order-popup-content .shortcut-list .shortcut.active {
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
} */ } */
.order-popup-content .input-item { .order-popup-content .input-item {
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
} }
.order-popup-content .qr-box .tips { .order-popup-content .qr-box .tips {
color: #3582EE; color: #347BFF;
} }
.order-popup-content .order-type-box { .order-popup-content .order-type-box {
...@@ -267,8 +267,8 @@ ...@@ -267,8 +267,8 @@
.order-popup-content .order-type.active { .order-popup-content .order-type.active {
background: rgba(53, 130, 238, 0.08); background: rgba(53, 130, 238, 0.08);
border-color: #3582EE; border-color: #347BFF;
color: #3582EE; color: #347BFF;
} }
.order-popup-content .order-type-box .order-type-tips { .order-popup-content .order-type-box .order-type-tips {
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
justify-content: center; justify-content: center;
font-size: 14px; font-size: 14px;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin-bottom: 28rpx; margin-bottom: 28rpx;
} }
......
...@@ -18,7 +18,8 @@ Component({ ...@@ -18,7 +18,8 @@ Component({
height: { height: {
type: String, type: String,
value: '85%' value: '85%'
} },
slotStyle: String
}, },
/** /**
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<block wx:if="{{ title }}"> <block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view> <view class="popup-title text-center">{{title}}</view>
</block> </block>
<view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}"> <view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}" style="{{slotStyle}}">
<slot></slot> <slot></slot>
</view> </view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 10rpx 0; padding: 20rpx 0;
} }
.popup-footer.isFullSucreen { .popup-footer.isFullSucreen {
...@@ -69,16 +69,18 @@ ...@@ -69,16 +69,18 @@
height: 80rpx; height: 80rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 32rpx;
} }
.popup-footer .cancel { .popup-footer .cancel {
color: #323233; /* color: #323233;
border: 2rpx solid #DCDEE0; border: 2rpx solid #DCDEE0; */
color: #292D33;
background: #F7F8FA;
} }
.popup-footer .confirm { .popup-footer .confirm {
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
} }
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
} }
.fixed-content .fixed-footer .fixed-confirm { .fixed-content .fixed-footer .fixed-confirm {
color: #3582EE; color: #347BFF;
} }
.fixed-content .fixed-footer::after { .fixed-content .fixed-footer::after {
......
...@@ -64,12 +64,12 @@ Component({ ...@@ -64,12 +64,12 @@ Component({
let readyLeft = oldLeft > left ? left : oldLeft let readyLeft = oldLeft > left ? left : oldLeft
let readyWidth = oldLeft > left ? oldLeft - left : left - oldLeft let readyWidth = oldLeft > left ? oldLeft - left : left - oldLeft
this.setData({ this.setData({
activeStyle: `width:${readyWidth - oldWidth / 2 + width / 2}px;background-color:#3582EE;border-radius:3rpx;left:${readyLeft + oldWidth / 2}px;transition: all .1s;` activeStyle: `width:${readyWidth - oldWidth / 2 + width / 2}px;background-color:#347BFF;border-radius:3rpx;left:${readyLeft + oldWidth / 2}px;transition: all .1s;`
}) })
} }
setTimeout(() => { setTimeout(() => {
this.setData({ this.setData({
activeStyle: `width:${width}px;left:${left}px;background-color:#3582EE;`, activeStyle: `width:${width}px;left:${left}px;background-color:#347BFF;`,
tabIndex: index, tabIndex: index,
width width
}) })
......
<view class="tab" style="grid-template-columns: repeat({{tabList.length}}, 1fr)"> <view class="tab" style="grid-template-columns: repeat({{tabList.length}}, 1fr)">
<block wx:for="{{tabList}}" wx:key="index"> <block wx:for="{{tabList}}" wx:key="index">
<!-- style="color:{{tabIndex==index?'#3582EE':''}};" --> <!-- style="color:{{tabIndex==index?'#347BFF':''}};" -->
<view class="tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{index}}"> <view class="tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{index}}">
<text class="tab-item-text" id="tab-{{index}}">{{item}}</text> <text id="tab-{{index}}"><text class="tab-item-text">{{item.text || item }}</text><text wx:if="{{item.count}}" style="font-size: 24rpx;">({{item.count}})</text></text>
</view> </view>
</block> </block>
<view class="active-doc" style="{{activeStyle}}" /> <view class="active-doc" style="{{activeStyle}}" />
......
...@@ -7,17 +7,18 @@ ...@@ -7,17 +7,18 @@
align-items: center; align-items: center;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;
border-bottom: 1rpx solid #F2F3F5;
} }
.active { .active {
font-size: 32rpx; /* font-size: 32rpx; */
font-weight: 600; font-weight: 600;
color: #3582EE; color: #347BFF;
} }
.active-doc { .active-doc {
position: absolute; position: absolute;
bottom: 8rpx; bottom: 1rpx;
height: 6rpx; height: 6rpx;
transition: all .25s; transition: all .25s;
} }
......
...@@ -75,7 +75,7 @@ Component({ ...@@ -75,7 +75,7 @@ Component({
wx.showModal({ wx.showModal({
title: '温馨提示', title: '温馨提示',
content: '是否退出当前账号?', content: '是否退出当前账号?',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
_this.setData({ _this.setData({
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<switch <switch
class="{{userInfo.userType == 2 ?'disabled':''}}" class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}" disabled="{{userInfo.userType == 2}}"
color="#3582EE" color="#347BFF"
isYqdSuper="{{isYqdSuper}}" isYqdSuper="{{isYqdSuper}}"
checked="{{saturdayFlag}}" checked="{{saturdayFlag}}"
bindchange="changeSwitch" bindchange="changeSwitch"
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<switch <switch
class="{{userInfo.userType == 2 ?'disabled':''}}" class="{{userInfo.userType == 2 ?'disabled':''}}"
disabled="{{userInfo.userType == 2}}" disabled="{{userInfo.userType == 2}}"
color="#3582EE" color="#347BFF"
checked="{{sundayFlag}}" checked="{{sundayFlag}}"
bindchange="changeSwitch" bindchange="changeSwitch"
data-target="sundayFlag" /> data-target="sundayFlag" />
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
width: 134rpx; width: 134rpx;
height: 48rpx; height: 48rpx;
background: rgba(53, 180, 238, .1); background: rgba(53, 180, 238, .1);
color: #3582EE; color: #347BFF;
font-size: 24rpx; font-size: 24rpx;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
} }
.popV-item:nth-last-child(1) { .popV-item:nth-last-child(1) {
color: #3582EE; color: #347BFF;
} }
/* .popV-item~.popV-item { /* .popV-item~.popV-item {
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
font-weight: 400; font-weight: 400;
border-radius: 12rpx; border-radius: 12rpx;
width: 100% !important; width: 100% !important;
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
} }
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
} }
.orderInfo .orderPrice { .orderInfo .orderPrice {
color: #3582EE; color: #347BFF;
text-align: right; text-align: right;
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
transition: all .5s; transition: all .5s;
} }
.merchantList.active { .merchantList.active {
color: #3582EE; color: #347BFF;
font-weight: 700; font-weight: 700;
position: relative; position: relative;
} }
...@@ -53,14 +53,14 @@ ...@@ -53,14 +53,14 @@
content: ''; content: '';
position: absolute; position: absolute;
bottom: 0; bottom: 0;
background: #3582EE; background: #347BFF;
border-radius: 3rpx; border-radius: 3rpx;
width: 60rpx; width: 60rpx;
height: 6rpx; height: 6rpx;
left: 25rpx; left: 25rpx;
} }
.merchantList.active { .merchantList.active {
color: #3582EE; color: #347BFF;
font-weight: 700; font-weight: 700;
position: relative; position: relative;
} }
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
content: ''; content: '';
position: absolute; position: absolute;
bottom: 0; bottom: 0;
background: #3582EE; background: #347BFF;
border-radius: 3rpx; border-radius: 3rpx;
width: 60rpx; width: 60rpx;
height: 6rpx; height: 6rpx;
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
width: 236rpx; width: 236rpx;
height: 60rpx; height: 60rpx;
display: flex; display: flex;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-left: auto; margin-left: auto;
position: relative; position: relative;
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
width: 50%; width: 50%;
border-radius: 12rpx; border-radius: 12rpx;
height: 100%; height: 100%;
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
transition: all .25s; transition: all .25s;
} }
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
border: 2rpx solid #DCDEE0; border: 2rpx solid #DCDEE0;
} }
.popup-footer .confirm{ .popup-footer .confirm{
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
} }
@keyframes show-popup { @keyframes show-popup {
......
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js // tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
externalClasses: ["custom-class"], externalClasses: ["custom-class"],
/** /**
...@@ -14,7 +15,9 @@ Component({ ...@@ -14,7 +15,9 @@ Component({
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: {}, data: {
IMG_URL
},
/** /**
* 组件的方法列表 * 组件的方法列表
......
<view class="tips custom-class" wx:if="{{tipsProps.showTips}}"> <view class="tips custom-class" wx:if="{{tipsProps.showTips}}">
<image wx:if="{{!tipsProps.noIcon}}" class="tipsIcon" src="../images/tips.png" /> <image wx:if="{{!tipsProps.noIcon}}" class="tipsIcon" src="{{IMG_URL}}miniProgram/tips_icon.png" />
<view class="contentText"> <view class="contentText">
{{tipsProps.tipsText}} {{tipsProps.tipsText}}
</view> </view>
<image class="closeIcon" wx:if="{{tipsProps.type == 1}}" bindtap="tapCallback" data-type="{{tipsProps.type}}" src="{{tipsProps.iconUrl || '../images/closeIcon.png'}}" /> <image class="closeIcon" wx:if="{{tipsProps.type == 1}}" bindtap="tapCallback" data-type="{{tipsProps.type}}" src="{{tipsProps.iconUrl || '/components/CalendarMonth/images/close.png'}}" />
<view class="btn" wx:if="{{tipsProps.type == 2}}" bindtap="tapCallback" data-type="{{tipsProps.type}}">{{tipsProps.typeText}}</view> <view class="btn" wx:if="{{tipsProps.type == 2}}" bindtap="tapCallback" data-type="{{tipsProps.type}}">{{tipsProps.typeText}}</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
background: #EFF5FE; background: #EFF5FE;
height: 72rpx; height: 72rpx;
width: 100%; width: 100%;
color: #3582EE; color: #347BFF;
font-size: 24rpx; font-size: 24rpx;
} }
.tipsIcon { .tipsIcon {
width: 32rpx; width: 28rpx;
height: 32rpx; height: 28rpx;
margin-right: 20rpx; margin-right: 8rpx;
} }
.closeIcon { .closeIcon {
width: 32rpx; width: 26rpx;
height: 32rpx; height: 26rpx;
} }
.tips .contentText { .tips .contentText {
margin-right: auto; margin-right: auto;
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
border: 2rpx solid #DCDEE0; border: 2rpx solid #DCDEE0;
} }
.popup-footer .confirm{ .popup-footer .confirm{
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
} }
@keyframes show-popup { @keyframes show-popup {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
} }
.picker_item.active{ .picker_item.active{
color: #3582EE; color: #347BFF;
} }
.checked{ .checked{
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
} }
.picker_item.active{ .picker_item.active{
color: #3582EE; color: #347BFF;
} }
.checked{ .checked{
......
...@@ -13,5 +13,5 @@ ...@@ -13,5 +13,5 @@
<tab-mine id="page-2" class="pagedetail {{ tabIndex == 2?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine> <tab-mine id="page-2" class="pagedetail {{ tabIndex == 2?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block> </block>
</view> </view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#3582EE" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" /> <custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}"/> <side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}"/>
\ No newline at end of file \ No newline at end of file
...@@ -362,7 +362,7 @@ Page({ ...@@ -362,7 +362,7 @@ Page({
content: message, content: message,
showCancel: false, showCancel: false,
confirmText: '刷新', confirmText: '刷新',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
_this.getDetail(orderCode) _this.getDetail(orderCode)
......
...@@ -195,7 +195,7 @@ page { ...@@ -195,7 +195,7 @@ page {
color: #FFFFFF; color: #FFFFFF;
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
} }
} }
...@@ -211,7 +211,7 @@ page { ...@@ -211,7 +211,7 @@ page {
.cofirm { .cofirm {
width: 80%; width: 80%;
height: 80rpx; height: 80rpx;
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
display: flex; display: flex;
justify-content: center; justify-content: center;
......
...@@ -114,7 +114,7 @@ Page({ ...@@ -114,7 +114,7 @@ Page({
title: '补录订单确认', title: '补录订单确认',
content: '确定补录此订单', content: '确定补录此订单',
confirmText: '确定', confirmText: '确定',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
let params = { let params = {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
height: 88rpx; height: 88rpx;
color: #fff; color: #fff;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #3582EE; background-color: #347BFF;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
.cofirm{ .cofirm{
width: 80%; width: 80%;
height: 80rpx; height: 80rpx;
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
display: flex; display: flex;
justify-content: center; justify-content: center;
......
import Api from '~/packageCrowdFunding/api' import Api from '~/packageCrowdFunding/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
options: { options: {
styleIsolation: 'apply-shared', styleIsolation: 'apply-shared',
...@@ -28,91 +28,92 @@ Component({ ...@@ -28,91 +28,92 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showRemark: false, IMG_URL,
userInfo: {}, showRemark: false,
inputValue: '', userInfo: {},
navBarHeight: 100, inputValue: '',
tabIndex: 0, navBarHeight: 100,
pageSize: 4, tabIndex: 0,
pageNum: 1, pageSize: 4,
tabList: ['全部', '待支付', '已支付', '已退款'], pageNum: 1,
btnTxt: { tabList: ['全部', '待支付', '已支付', '已退款'],
0: '去支付', btnTxt: {
1: '去退款', 0: '去支付',
4: '去退款' 1: '去退款',
}, 4: '去退款'
orderStatusObj: { },
0: '待支付', orderStatusObj: {
1: '已支付', 0: '待支付',
2: '已退款', 1: '已支付',
3: '预支付', 2: '已退款',
4: '退定金', // 正常流程 自定义值 3: '预支付',
5: '退定金' // 预支付状态下退定金 自定义值 4: '退定金', // 正常流程 自定义值
}, 5: '退定金' // 预支付状态下退定金 自定义值
orderStatusList: [ },
{ orderStatusList: [
confName: '全部', {
confId: '' confName: '全部',
}, { confId: ''
confName: '待支付', }, {
confId: '0' confName: '待支付',
}, { confId: '0'
confName: '已支付', }, {
confId: '1' confName: '已支付',
}, confId: '1'
{ },
confName: '已退款', {
confId: '2' confName: '已退款',
} confId: '2'
], }
subOrderCodeCopy: '', ],
searchObj: {}, subOrderCodeCopy: '',
flag: true, searchObj: {},
statisticsObj: {}, flag: true,
orderObj: [ statisticsObj: {},
{ orderObj: [
label: '活动名称', {
key: 'activityName' label: '活动名称',
}, key: 'activityName'
{ },
label: '推荐人', {
key: 'referrer' label: '推荐人',
}, key: 'referrer'
{ },
label: '转化人员', {
key: 'transfer' label: '转化人员',
}, key: 'transfer'
{ },
label: '商品名称', {
key: 'goodsName' label: '商品名称',
}, key: 'goodsName'
{ },
label: '订金金额', {
key: 'activityPrice', label: '订金金额',
type: 'price' key: 'activityPrice',
}, type: 'price'
{ },
label: '订金支付时间', {
key: 'payedDateStr' label: '订金支付',
}, key: 'payedDateStr'
{ },
label: '订单编号', {
key: 'subOrderCode' label: '订单编号',
}, key: 'subOrderCode'
{ },
label: '尾款金额', // {
key: 'tailPayment', // label: '尾款金额',
type: 'price' // key: 'tailPayment',
} // type: 'price'
], // }
list: [], ],
isToBottom: false, list: [],
selectData: ['客户姓名','订单编号','手机号'], // 下拉列表的数据 isToBottom: false,
selectIndex: 0, // 选择的下拉列表下标 selectData: ['客户姓名','订单编号','手机号'], // 下拉列表的数据
showSelect: false, // 下拉框 selectIndex: 0, // 选择的下拉列表下标
confirmFlag: false, showSelect: false, // 下拉框
remarkType: '', // 备注类型 1备注 2 退款原因 confirmFlag: false,
selectItem: {} // 修改备注的订单对象 remarkType: '', // 备注类型 1备注 2 退款原因
selectItem: {} // 修改备注的订单对象
}, },
methods: { methods: {
init() { init() {
......
...@@ -69,15 +69,15 @@ ...@@ -69,15 +69,15 @@
<view class="header-cust"> <view class="header-cust">
<view class="cust-name">{{item.customerName}}</view> <view class="cust-name">{{item.customerName}}</view>
<view class="cust-phone">{{item.customerPhone}}</view> <view class="cust-phone">{{item.customerPhone}}</view>
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="/packageCrowdFunding/images/copy-text.png" mode=""/> <image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="1" src="{{IMG_URL}}copy_icon_gapy.png" mode=""/>
</view> </view>
<view class="header-status"> <view class="header-status">
<view wx:if="{{ item.tailOrderStatus =='1'}}"> <!-- <view wx:if="{{ item.tailOrderStatus =='1'}}">
<span class="green-txt">{{orderStatusObj[item.tailOrderStatus]}}</span> <span class="green-txt">{{orderStatusObj[item.tailOrderStatus]}}</span>
<span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span> <span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span>
</view> </view> -->
<view wx:else class="{{item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '4' || item.tailOrderStatus == '5' ? 'blue-txt' : '') }}"> <view class="{{item.tailOrderStatus == '0' ? 'orange-text' : item.tailOrderStatus == '1' ? 'green-txt' : item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '4' || item.tailOrderStatus == '5' ? 'blue-txt' : '') }}">
{{orderStatusObj[item.tailOrderStatus] || '--'}} {{orderStatusObj[item.tailOrderStatus] || '--'}}
</view> </view>
</view> </view>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<block wx:else> <block wx:else>
<view wx:if="{{i.key == 'subOrderCode'}}" class="ordercode-class"> <view wx:if="{{i.key == 'subOrderCode'}}" class="ordercode-class">
{{item[i.key] || ''}} {{item[i.key] || ''}}
<image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="/packageCrowdFunding/images/copy-text.png" mode=""/> <image class="copy-icon" bindtap="copyData" data-target="{{item}}" data-flag="2" src="{{IMG_URL}}copy_icon_gapy.png" mode=""/>
</view> </view>
<view wx:else> <view wx:else>
{{item[i.key] || ''}} {{item[i.key] || ''}}
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</block> </block>
</block> </block>
<view class="order" wx:if="{{item.tailOrderStatus == 1}}"> <view class="order" wx:if="{{item.tailOrderStatus == 1}}">
<view class="order-label">尾款支付时间 </view> <view class="order-label">尾款支付</view>
<view class="order-value"> <view class="order-value">
<block>{{item['tailPayedDateStr']}}</block> <block>{{item['tailPayedDateStr']}}</block>
</view> </view>
...@@ -130,15 +130,23 @@ ...@@ -130,15 +130,23 @@
<!-- footer --> <!-- footer -->
<!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 --> <!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 -->
<view class="item-footer" wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}"> <view class="item-footer">
<!-- 待支付 --> <view class="order_price">
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}"> <view class="price_label">尾款金额</view>
关联尾款单 <view class="order_price_text"><text style="font-size: 28rpx;">¥</text>{{filter.priceFilter(item.tailPayment)}}</view>
</view> </view>
<!-- 待支付/已支付/退定金 --> <block wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}"> <view>
{{btnTxt[item.tailOrderStatus]}} <!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单
</view>
<!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}}
</view>
</view> </view>
</block>
</view> </view>
</view> </view>
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
...@@ -146,8 +154,9 @@ ...@@ -146,8 +154,9 @@
</block> </block>
</block> </block>
<view class="no-data" wx:else> <view class="no-data" wx:else>
<image class="no-data-img" src="/packageCrowdFunding/images/noData.png" /> <!-- <image class="no-data-img" src="/packageCrowdFunding/images/noData.png" />
<view class="list-not">暂无数据</view> <view class="list-not">暂无数据</view> -->
<empty-data />
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
......
...@@ -217,8 +217,13 @@ ...@@ -217,8 +217,13 @@
.list .header-status { .list .header-status {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 24rpx;
color: #FF9D0A; }
.list .header-status view{
height: 36rpx;
padding: 4rpx 8rpx;
border-radius: 4rpx;
} }
.header-price { .header-price {
...@@ -226,16 +231,24 @@ ...@@ -226,16 +231,24 @@
margin-left: 12rpx; margin-left: 12rpx;
} }
.orange-text{
color: #FF9D0A;
background: #FFF5E6;
}
.green-txt { .green-txt {
color: #4AC18E; color: #35C376;
background: #EAF9F1;
} }
.red-txt { .red-txt {
color: #EB4E4E; color: #F24724;
background: #FDECE9;
} }
.blue-txt { .blue-txt {
color: #3582EE; color: #347BFF;
background: #EAF1FF;
} }
.list .content { .list .content {
...@@ -302,13 +315,13 @@ ...@@ -302,13 +315,13 @@
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
content: ''; content: '';
background: #3582EE; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
.list .item .goods-list .goods .goods-name { .list .item .goods-list .goods .goods-name {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
max-width: 430rpx; max-width: 430rpx;
} }
...@@ -342,7 +355,7 @@ ...@@ -342,7 +355,7 @@
.list .item .goods-more text { .list .item .goods-more text {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-right: 20rpx; margin-right: 20rpx;
} }
...@@ -383,14 +396,31 @@ ...@@ -383,14 +396,31 @@
} }
.item-footer { .item-footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
/* margin-left: 200rpx; */ /* margin-left: 200rpx; */
align-items: center; align-items: center;
font-size: 24rpx; font-size: 24rpx;
color: #9B9B9E; color: #9B9B9E;
border-top: 1rpx solid #EDEDED; border-top: 1rpx solid #EDEDED;
padding: 20rpx 32rpx; padding: 20rpx 32rpx;
}
.item-footer view{
display: flex;
align-items: center;
}
.item-footer .order_price .price_label{
width: 136rpx;
flex-shrink: 0;
color: #999EA8;
}
.item-footer .order_price .order_price_text{
font-size: 36rpx;
color: #347BFF;
font-family: 'numberBold';
} }
.orange-txt { .orange-txt {
...@@ -409,18 +439,18 @@ ...@@ -409,18 +439,18 @@
height: 56rpx; height: 56rpx;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
padding: 8rpx 40rpx; padding: 8rpx 24rpx;
} }
.mar-btn{ .mar-btn{
margin-right: 15rpx; margin-right: 15rpx;
} }
.order-btn.default-btn { .order-btn.default-btn {
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
color: #3582EE; color: #347BFF;
} }
.list .item .order { .list .item .order {
...@@ -440,12 +470,12 @@ ...@@ -440,12 +470,12 @@
} }
.list .item .order .order-label { .list .item .order .order-label {
width: 165rpx; width: 138rpx;
color: #9B9B9E; color: #9B9B9E;
} }
.list .item .order .order-value { .list .item .order .order-value {
width: calc(100% - 165rpx); width: calc(100% - 138rpx);
display: flex; display: flex;
align-items: center; align-items: center;
} }
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
color: #FFFFFF; color: #FFFFFF;
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
margin: 24rpx auto; margin: 24rpx auto;
color: #fff; color: #fff;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #3582EE; background-color: #347BFF;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
.btn-lucency{ .btn-lucency{
width: 622rpx; width: 622rpx;
height: 88rpx; height: 88rpx;
color: #3582EE; color: #347BFF;
margin: 0 auto; margin: 0 auto;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #fff; background-color: #fff;
......
...@@ -44,25 +44,25 @@ ...@@ -44,25 +44,25 @@
</view> </view>
<view class="activity-status"> <view class="activity-status">
<view class="left"> <view class="left">
<view class="name">{{item.activityName}}</view> <view class="name">{{item.activityName}}</view>
<view class="time"> <view class="status status-blue" wx:if="{{item.activityStatus == 2}}">
<text style="width: 100rpx;flex-shrink: 0;">活动时间:</text> 进行中
<view wx:if="{{item.startTime && item.endTime}}"> </view>
<text>{{item.startTime || ''}}</text> <view class="status status-red" wx:if="{{item.activityStatus == 3}}">
<text> 至 </text> 已结束
<text>{{item.endTime}}</text> </view>
</view> <view class="status status-yellow" wx:if="{{item.activityStatus == 1}}">
</view> 待开始
</view>
</view> </view>
<view class="status status-green" wx:if="{{item.activityStatus == 2}}"> <view class="time">
进行中 <text style="width: 112rpx;flex-shrink: 0;color: #999EA8;">活动时间</text>
</view> <view wx:if="{{item.startTime && item.endTime}}">
<view class="status status-red" wx:if="{{item.activityStatus == 3}}"> <view>{{item.startTime || ''}} 至 </view>
已结束 <text>{{item.endTime}}</text>
</view> </view>
<view class="status status-yellow" wx:if="{{item.activityStatus == 1}}">
待开始
</view> </view>
</view> </view>
</view> </view>
<view class="activity-list"> <view class="activity-list">
...@@ -84,8 +84,9 @@ ...@@ -84,8 +84,9 @@
</block> </block>
</block> </block>
<view class="no-data" wx:else> <view class="no-data" wx:else>
<image class="no-data-img" src="/packageCrowdFunding/images/noData.png" /> <!-- <image class="no-data-img" src="/packageCrowdFunding/images/noData.png" />
<view class="list-not">暂无数据</view> <view class="list-not">暂无数据</view> -->
<empty-data />
</view> </view>
</scroll-view> </scroll-view>
</block> </block>
......
...@@ -188,59 +188,73 @@ ...@@ -188,59 +188,73 @@
.activity-box .activity-name { .activity-box .activity-name {
display: flex; display: flex;
padding-left: 35rpx; padding: 32rpx;
padding-bottom: 20rpx; padding-bottom: 24rpx;
/*justify-content: space-around;*/
} }
.activity-box .activity-name .activity-avatar { .activity-box .activity-name .activity-avatar {
width: 150rpx; flex-shrink: 0;
height: 150rpx; width: 128rpx;
height: 128rpx;
border-radius: 16rpx;
overflow: hidden;
} }
.activity-box .activity-name .activity-status { .activity-box .activity-name .activity-status {
width: 70%; box-sizing: border-box;
display: flex; width: calc(100% - 148rpx);
justify-content: space-between; margin-left: 20rpx;
padding-top: 15rpx;
margin: 0rpx 20rpx;
} }
.activity-box .activity-name .activity-status .left{ .activity-box .activity-name .activity-status .left{
width: calc(100% - 100rpx); display: flex;
justify-content: space-between;
} }
.activity-box .activity-name .activity-status .name { .activity-box .activity-name .activity-status .name {
font-size: 30rpx; font-size: 30rpx;
width: 300rpx; color: #292D33;
font-weight: 500;
max-width: 392rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
} }
.activity-box .activity-name .activity-status .time { .activity-box .activity-name .activity-status .time {
font-size: 20rpx; font-size: 24rpx;
color: #9B9B9E; color: #292D33;
margin-top: 25rpx; margin-top: 25rpx;
display: flex; display: flex;
} }
.activity-box .activity-name .activity-status .status { .activity-box .activity-name .activity-status .status {
font-size: 30rpx; font-size: 24rpx;
height: 36rpx;
padding: 4rpx 8rpx;
border-radius: 4rpx;
/* padding-left: 60rpx; */ /* padding-left: 60rpx; */
} }
.status-green { .status-blue {
color: #4AC18E; color: #347BFF;
background: #EAF1FF;
} }
.status-red { .status-red {
color: #EB4E4E; color: #F24724;
background: #FDECE9;
} }
.status-yellow { .status-yellow {
color: #FF9D0A; color: #FF9D0A;
background: #FFF5E6;
} }
.activity-box .activity-list { .activity-box .activity-list {
border-top: 1rpx solid #C3C3C3; border-top: 1rpx solid #E4E8EE;
margin-top: 15rpx; margin-top: 15rpx;
padding: 20rpx 40rpx 0 35rpx; padding: 20rpx 40rpx 0 35rpx;
display: flex; display: flex;
...@@ -249,7 +263,7 @@ ...@@ -249,7 +263,7 @@
.activity-box .activity-list .orderListBtn { .activity-box .activity-list .orderListBtn {
color: #fff; color: #fff;
background: #3582EE; background: #347BFF;
width: 200rpx; width: 200rpx;
height: 60rpx; height: 60rpx;
font-size: 30rpx; font-size: 30rpx;
...@@ -261,6 +275,8 @@ ...@@ -261,6 +275,8 @@
.activity-box .activity-list .activity-pay { .activity-box .activity-list .activity-pay {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 28rpx;
color: #181A1F;
} }
.activity-box .activity-list .activity-pay .havePaid { .activity-box .activity-list .activity-pay .havePaid {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
width: 622rpx; width: 622rpx;
height: 88rpx; height: 88rpx;
margin: 20rpx auto 0; margin: 20rpx auto 0;
// background: #3582EE; // background: #347BFF;
// margin-top: 20rpx; // margin-top: 20rpx;
border-radius: 12rpx; border-radius: 12rpx;
text-align: center; text-align: center;
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
font-size: 32rpx; font-size: 32rpx;
background: #FFFFFF; background: #FFFFFF;
// color: #222222; // color: #222222;
color: #3582EE; color: #347BFF;
} }
.confirmBtn { .confirmBtn {
// confirm // confirm
background: #3582EE; background: #347BFF;
margin-top: 40rpx; margin-top: 40rpx;
color: #FFFFFF; color: #FFFFFF;
} }
......
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
} }
.order_no_item.active{ .order_no_item.active{
background: #3582ee1a; background: #347BFF1a;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
......
...@@ -99,7 +99,7 @@ Page({ ...@@ -99,7 +99,7 @@ Page({
// content: '商品已下架或计算规则未配置,请联系客服处理。', // content: '商品已下架或计算规则未配置,请联系客服处理。',
// showCancel: false, // showCancel: false,
// confirmText: '确定', // confirmText: '确定',
// confirmColor: '#3582EE', // confirmColor: '#347BFF',
// }) // })
this.setData({ this.setData({
mode: -1 mode: -1
...@@ -109,7 +109,7 @@ Page({ ...@@ -109,7 +109,7 @@ Page({
content: '未配置权益规则,请联系客服处理。', content: '未配置权益规则,请联系客服处理。',
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
confirmColor: '#3582EE' confirmColor: '#347BFF'
// success(res) { // success(res) {
// if (res.confirm) { // if (res.confirm) {
// that.globalData.yqdInfo = {} // that.globalData.yqdInfo = {}
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0}}"> <view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0}}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" />
</view> </view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#3582EE" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" /> <custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> --> <!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> -->
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}" bindconfirm="changePicker" /> <side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}" bindconfirm="changePicker" />
<!-- <order-switchPopup <!-- <order-switchPopup
......
...@@ -298,7 +298,7 @@ Component({ ...@@ -298,7 +298,7 @@ Component({
title: '温馨提示', title: '温馨提示',
content: '如需下载PDF报告单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效', content: '如需下载PDF报告单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效',
confirmText: '复制地址', confirmText: '复制地址',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
wx.setClipboardData({ wx.setClipboardData({
......
...@@ -317,13 +317,13 @@ ...@@ -317,13 +317,13 @@
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
content: ''; content: '';
background: #3582EE; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
.list .item .goods-list .goods .goods-name { .list .item .goods-list .goods .goods-name {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
max-width: 430rpx; max-width: 430rpx;
} }
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
.list .item .goods-more text { .list .item .goods-more text {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-right: 20rpx; margin-right: 20rpx;
} }
...@@ -404,16 +404,16 @@ ...@@ -404,16 +404,16 @@
height: 56rpx; height: 56rpx;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
padding: 8rpx 40rpx; padding: 8rpx 40rpx;
} }
.order-btn.default-btn { .order-btn.default-btn {
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
color: #3582EE; color: #347BFF;
} }
.list .item .order { .list .item .order {
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
background-color: #ebf2fd; background-color: #ebf2fd;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 24rpx; font-size: 24rpx;
color: #3582EE; color: #347BFF;
margin-top: 28rpx; margin-top: 28rpx;
padding: 4rpx 24rpx; padding: 4rpx 24rpx;
border-radius: 8rpx; border-radius: 8rpx;
...@@ -133,14 +133,14 @@ ...@@ -133,14 +133,14 @@
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin: 0 64rpx 20rpx; margin: 0 64rpx 20rpx;
} }
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #3582EE; color: #347BFF;
} }
.h-40 { .h-40 {
......
...@@ -6,7 +6,7 @@ Component({ ...@@ -6,7 +6,7 @@ Component({
properties: { properties: {
color: { color: {
type: String, type: String,
value: '#3582EE' value: '#347BFF'
}, },
isFullScreen: Boolean isFullScreen: Boolean
}, },
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
.ocrBtn .text { .ocrBtn .text {
font-size: 26rpx; font-size: 26rpx;
color: #3582EE; color: #347BFF;
} }
.picker { .picker {
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
background-color: #ebf2fd; background-color: #ebf2fd;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 24rpx; font-size: 24rpx;
color: #3582EE; color: #347BFF;
margin-top: 28rpx; margin-top: 28rpx;
padding: 4rpx 24rpx; padding: 4rpx 24rpx;
border-radius: 8rpx; border-radius: 8rpx;
...@@ -165,14 +165,14 @@ ...@@ -165,14 +165,14 @@
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin: 0 64rpx 20rpx; margin: 0 64rpx 20rpx;
} }
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #3582EE; color: #347BFF;
} }
.h-40 { .h-40 {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
text-align: center; text-align: center;
font-weight: 600; font-weight: 600;
font-size: 56rpx; font-size: 56rpx;
color: #3582EE; color: #347BFF;
} }
.tipTxt { .tipTxt {
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
text-align: center; text-align: center;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
font-weight: 600; font-weight: 600;
font-size: 36rpx; font-size: 36rpx;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
width: 622rpx; width: 622rpx;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin: 0 auto; margin: 0 auto;
font-size: 32rpx; font-size: 32rpx;
......
...@@ -42,7 +42,7 @@ Page({ ...@@ -42,7 +42,7 @@ Page({
title: '温馨提示', title: '温馨提示',
content: '如需下载PDF报告单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效', content: '如需下载PDF报告单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效',
confirmText: '复制地址', confirmText: '复制地址',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
wx.setClipboardData({ wx.setClipboardData({
......
...@@ -46,7 +46,7 @@ page { ...@@ -46,7 +46,7 @@ page {
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: 24rpx;
color: #3582EE; color: #347BFF;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
......
...@@ -158,7 +158,7 @@ Page({ ...@@ -158,7 +158,7 @@ Page({
content: message, content: message,
showCancel: false, showCancel: false,
confirmText: '刷新', confirmText: '刷新',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
_this.getDetail(orderCode) _this.getDetail(orderCode)
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
height: 48rpx; height: 48rpx;
align-items: center; align-items: center;
// opacity: 0.12; // opacity: 0.12;
// background: #3582EE; // background: #347BFF;
background-color: #e5f2fd; background-color: #e5f2fd;
border-radius: 32rpx; border-radius: 32rpx;
padding: 6rpx 20rpx; padding: 6rpx 20rpx;
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
.text { .text {
font-size: 26rpx; font-size: 26rpx;
color: #3582EE; color: #347BFF;
} }
} }
} }
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
background-color: #ebf2fd; background-color: #ebf2fd;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 24rpx; font-size: 24rpx;
color: #3582EE; color: #347BFF;
margin-top: 28rpx; margin-top: 28rpx;
padding: 4rpx 24rpx; padding: 4rpx 24rpx;
border-radius: 8rpx; border-radius: 8rpx;
...@@ -158,12 +158,12 @@ ...@@ -158,12 +158,12 @@
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin: 0 64rpx 20rpx; margin: 0 64rpx 20rpx;
} }
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #3582EE; color: #347BFF;
} }
\ No newline at end of file \ No newline at end of file
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
/* transform: translateY(-50%); */ /* transform: translateY(-50%); */
} }
.item.active{ .item.active{
color: #3582EE; color: #347BFF;
} }
.item.active .icon{ .item.active .icon{
display: block; display: block;
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
} }
.item .value .price { .item .value .price {
/* color: #3582EE; */ /* color: #347BFF; */
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #EB4E4E; color: #EB4E4E;
...@@ -130,7 +130,7 @@ color: #EB4E4E; ...@@ -130,7 +130,7 @@ color: #EB4E4E;
.item .control .add { .item .control .add {
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;
color: #3582EE; color: #347BFF;
background: #F7F7F7; background: #F7F7F7;
border-radius: 6rpx; border-radius: 6rpx;
display: flex; display: flex;
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
/* .order-popup-content .shortcut-list .shortcut.active { /* .order-popup-content .shortcut-list .shortcut.active {
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
} */ } */
.order-popup-content .input-item { .order-popup-content .input-item {
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
} }
.order-popup-content .qr-box .tips { .order-popup-content .qr-box .tips {
color: #3582EE; color: #347BFF;
} }
.order-popup-content .order-type-box { .order-popup-content .order-type-box {
...@@ -268,8 +268,8 @@ ...@@ -268,8 +268,8 @@
.order-popup-content .order-type.active { .order-popup-content .order-type.active {
background: rgba(53, 130, 238, 0.08); background: rgba(53, 130, 238, 0.08);
border-color: #3582EE; border-color: #347BFF;
color: #3582EE; color: #347BFF;
} }
.order-popup-content .order-type-box .order-type-tips { .order-popup-content .order-type-box .order-type-tips {
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
justify-content: center; justify-content: center;
font-size: 14px; font-size: 14px;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
margin-bottom: 28rpx; margin-bottom: 28rpx;
} }
......
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
} }
.child.active { .child.active {
color: #3582ee; color: #347BFF;
} }
.child.title { .child.title {
color: #282829; color: #282829;
padding-left: 64rpx; padding-left: 64rpx;
/* color: #3582ee; */ /* color: #347BFF; */
} }
.child .icon { .child .icon {
......
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
} }
.child.active { .child.active {
color: #3582ee; color: #347BFF;
} }
.child.title { .child.title {
color: #282829; color: #282829;
padding-left: 64rpx; padding-left: 64rpx;
/* color: #3582ee; */ /* color: #347BFF; */
} }
.child .icon { .child .icon {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #3582EE; color: #347BFF;
} }
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
align-items: center; align-items: center;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
.addIcon { .addIcon {
width: 24.5rpx; width: 24.5rpx;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.draft-btn { .draft-btn {
background: #FFFFFF; background: #FFFFFF;
color: #3582EE; color: #347BFF;
} }
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
align-items: center; align-items: center;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
.addIcon { .addIcon {
width: 24.5rpx; width: 24.5rpx;
...@@ -332,10 +332,10 @@ ...@@ -332,10 +332,10 @@
width: 300rpx; width: 300rpx;
height: 60rpx; height: 60rpx;
display: flex; display: flex;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 12rpx; border-radius: 12rpx;
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-left: auto; margin-left: auto;
margin-right: -30rpx; margin-right: -30rpx;
position: relative; position: relative;
...@@ -346,12 +346,12 @@ ...@@ -346,12 +346,12 @@
/* top: 0; */ /* top: 0; */
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
left: 0; left: 0;
width: 50%; width: 50%;
border-radius: 12rpx; border-radius: 12rpx;
height: 100%; height: 100%;
background: #3582EE; background: #347BFF;
color: #fff; color: #fff;
transition: all .25s; transition: all .25s;
} }
......
...@@ -378,7 +378,7 @@ Page({ ...@@ -378,7 +378,7 @@ Page({
content: '商品已下架或计算规则未配置,请联系客服处理。', content: '商品已下架或计算规则未配置,请联系客服处理。',
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
confirmColor: '#3582EE' confirmColor: '#347BFF'
}) })
data = data.map(item => { data = data.map(item => {
return { return {
......
...@@ -449,7 +449,7 @@ Page({ ...@@ -449,7 +449,7 @@ Page({
content: '商品已下架或计算规则未配置,请联系客服处理。', content: '商品已下架或计算规则未配置,请联系客服处理。',
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
confirmColor: '#3582EE' confirmColor: '#347BFF'
}) })
// let { id: appreciation, goodsInfo, upgradeGoodsName: goodsName, upgradeGoodsServiceItemsList } = data[0] // let { id: appreciation, goodsInfo, upgradeGoodsName: goodsName, upgradeGoodsServiceItemsList } = data[0]
data = data.map(item => { data = data.map(item => {
......
...@@ -83,7 +83,7 @@ page{ ...@@ -83,7 +83,7 @@ page{
background: #EFF5FE; background: #EFF5FE;
height: 110rpx; height: 110rpx;
width: 100%; width: 100%;
color: #3582EE; color: #347BFF;
font-size: 24rpx; font-size: 24rpx;
} }
......
...@@ -28,7 +28,7 @@ page { ...@@ -28,7 +28,7 @@ page {
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
transform: rotate(90deg); transform: rotate(90deg);
color: #3582EE; color: #347BFF;
background: white; background: white;
} }
......
...@@ -320,13 +320,13 @@ ...@@ -320,13 +320,13 @@
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
content: ''; content: '';
background: #3582EE; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
.list .item .goods-list .goods .goods-name { .list .item .goods-list .goods .goods-name {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
max-width: 430rpx; max-width: 430rpx;
} }
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
.list .item .goods-more text { .list .item .goods-more text {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-right: 20rpx; margin-right: 20rpx;
} }
...@@ -432,16 +432,16 @@ ...@@ -432,16 +432,16 @@
height: 56rpx; height: 56rpx;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
background: #3582EE; background: #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
padding: 8rpx 40rpx; padding: 8rpx 40rpx;
} }
.order-btn.default-btn { .order-btn.default-btn {
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 32rpx; border-radius: 32rpx;
color: #3582EE; color: #347BFF;
} }
.padding_20 { .padding_20 {
......
...@@ -40,7 +40,7 @@ Page({ ...@@ -40,7 +40,7 @@ Page({
title: '温馨提示', title: '温馨提示',
content: '如需下载报价单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效', content: '如需下载报价单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效',
confirmText: '复制地址', confirmText: '复制地址',
confirmColor: '#3582EE', confirmColor: '#347BFF',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
wx.setClipboardData({ wx.setClipboardData({
......
...@@ -40,7 +40,7 @@ page { ...@@ -40,7 +40,7 @@ page {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
ffont-weight: 500; ffont-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #3582EE; color: #347BFF;
text-align: center; text-align: center;
.btn { .btn {
......
...@@ -167,7 +167,7 @@ Page({ ...@@ -167,7 +167,7 @@ Page({
content: result.message, content: result.message,
showCancel: false, showCancel: false,
confirmText: '知道了', confirmText: '知道了',
confirmColor: '#3582EE' confirmColor: '#347BFF'
}) })
} }
} }
...@@ -247,7 +247,7 @@ Page({ ...@@ -247,7 +247,7 @@ Page({
content: `请在${envName == 0 ? '企业微信' : '微信'}中打开`, content: `请在${envName == 0 ? '企业微信' : '微信'}中打开`,
showCancel: false, showCancel: false,
confirmText: '知道了', confirmText: '知道了',
confirmColor: '#3582EE' confirmColor: '#347BFF'
}) })
resolve(false) resolve(false)
} }
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
box-sizing: border-box; box-sizing: border-box;
} }
.items.active{ .items.active{
border: 6rpx solid #3582EE; border: 6rpx solid #347BFF;
} }
.items .left{ .items .left{
width: 65%; width: 65%;
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
} }
/* 区域督导 */ /* 区域督导 */
.items .right .midle_3{ .items .right .midle_3{
color: #3582EE; color: #347BFF;
/* border: 2rpx solid #3582EE; */ /* border: 2rpx solid #347BFF; */
background-color: #347bff1a; background-color: #347bff1a;
} }
/* 驻店负责人 */ /* 驻店负责人 */
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
background-color: #3582EE; background-color: #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
.list-not{ .list-not{
......
...@@ -107,7 +107,7 @@ page { ...@@ -107,7 +107,7 @@ page {
height: 48rpx; height: 48rpx;
background: rgba(53, 130, 238, .1); background: rgba(53, 130, 238, .1);
border-radius: 0 24rpx 0 24rpx; border-radius: 0 24rpx 0 24rpx;
color: #3582EE; color: #347BFF;
font-size: 24rpx; font-size: 24rpx;
font-weight: 600; font-weight: 600;
display: flex; display: flex;
...@@ -152,6 +152,6 @@ page { ...@@ -152,6 +152,6 @@ page {
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
background-color: #3582EE; background-color: #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
...@@ -427,7 +427,7 @@ color: #999999; ...@@ -427,7 +427,7 @@ color: #999999;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
background-color: #3582EE; background-color: #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
.list_nothing_img{ .list_nothing_img{
......
...@@ -111,7 +111,7 @@ page { ...@@ -111,7 +111,7 @@ page {
height: 48rpx; height: 48rpx;
background: rgba(53, 130, 238, .1); background: rgba(53, 130, 238, .1);
border-radius: 0 24rpx 0 24rpx; border-radius: 0 24rpx 0 24rpx;
color: #3582EE; color: #347BFF;
font-size: 24rpx; font-size: 24rpx;
font-weight: 600; font-weight: 600;
display: flex; display: flex;
...@@ -156,6 +156,6 @@ page { ...@@ -156,6 +156,6 @@ page {
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
text-align: center; text-align: center;
background-color: #3582EE; background-color: #347BFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
import api from '../api' import api from '../api'
const app = getApp() const app = getApp()
const TABLIST = ['全部', '已预约', '待预约'] const TABLIST = ['全部', '已预约', '待预约']
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMG_URL,
tabIndex: 0, tabIndex: 0,
activeIndex: 0, activeIndex: 0,
phoneShow: false, phoneShow: false,
...@@ -15,7 +17,16 @@ Page({ ...@@ -15,7 +17,16 @@ Page({
overdue: 0, overdue: 0,
weekInvited: 0 weekInvited: 0
}, },
tabList: ['全部', '已预约', '待预约'], tabList: [{
text: '全部',
count: 0
}, {
text: '已预约',
count: 0
}, {
text: '待预约',
count: 0
}],
orderObj: [{ orderObj: [{
label: '销售顾问', label: '销售顾问',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'employeeName']
...@@ -40,31 +51,38 @@ Page({ ...@@ -40,31 +51,38 @@ Page({
status: { status: {
1: { 1: {
text: '待预约', text: '待预约',
color: '#FF7D12' color: '#FF9D0A',
background: '#FFF5E6'
}, },
2: { 2: {
text: '已预约', text: '已预约',
color: '#3582EE' color: '#35C376',
background: '#EAF9F1'
}, },
3: { 3: {
text: '取消预约', text: '取消预约',
color: '#FF7D12' color: '#FF9D0A',
background: '#FFF5E6'
}, },
5: { 5: {
text: '超时未到店', text: '过期到店',
color: '#FF7D12' color: '#FF9D0A',
background: '#FFF5E6'
}, },
6: { 6: {
text: '已撤销', text: '已撤销',
color: '#FF7D12' color: '#8F959E',
background: '#F3F4F5'
}, },
4: { 4: {
text: '已施工', text: '已施工',
color: '#3582EE' color: '#347BFF',
background: '#EAF1FF'
}, },
7: { 7: {
text: '已支付', text: '已支付',
color: '#14CC68' color: '#35C376',
background: '#EAF9F1'
} }
}, },
searchObj: {}, searchObj: {},
...@@ -87,7 +105,7 @@ Page({ ...@@ -87,7 +105,7 @@ Page({
title: '', title: '',
content: '是否取撤销该工单?', content: '是否取撤销该工单?',
confirmText: '是', confirmText: '是',
confirmColor: '#3582EE', confirmColor: '#347BFF',
cancelText: '否', cancelText: '否',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
...@@ -334,9 +352,9 @@ Page({ ...@@ -334,9 +352,9 @@ Page({
data data
} = res } = res
this.setData({ this.setData({
['tabList[0]']: TABLIST[0] + '(' + (data.inviteCount || 0) + ')', ['tabList[0]']: {text: TABLIST[0], count: data.inviteCount || 0},
['tabList[1]']: TABLIST[1] + '(' + (data.hadInvitedCount || 0) + ')', ['tabList[1]']: {text: TABLIST[1], count: data.hadInvitedCount || 0},
['tabList[2]']: TABLIST[2] + '(' + (data.notInvitedCount || 0) + ')' ['tabList[2]']: {text: TABLIST[2], count: data.notInvitedCount || 0}
}) })
}) })
}, },
......
/* tabWorkOrder/pages/index/index.wxss */ /* tabWorkOrder/pages/index/index.wxss */
page { page {
background-color: rgb(247, 248, 248); background-color: #FFFFFF;
} }
.to-box { .to-box {
position: sticky; position: sticky;
left: 0; left: 0;
z-index: 2; z-index: 2;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); /* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); */
} }
...@@ -88,7 +88,7 @@ page { ...@@ -88,7 +88,7 @@ page {
background: #FFFFFF; background: #FFFFFF;
/* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); /* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx; */ border-radius: 16rpx; */
padding: 40rpx 40rpx 30rpx; padding: 32rpx;
position: relative; position: relative;
/* width: 100%; */ /* width: 100%; */
/* margin: 20rpx; */ /* margin: 20rpx; */
...@@ -110,9 +110,11 @@ page { ...@@ -110,9 +110,11 @@ page {
.list .item .name { .list .item .name {
font-size: 32rpx;
color: #292D33;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 40rpx; margin-bottom: 28rpx;
} }
.list .item.gray .name { .list .item.gray .name {
...@@ -123,8 +125,9 @@ page { ...@@ -123,8 +125,9 @@ page {
} */ } */
.list .item .name image { .list .item .name image {
width: 46rpx; width: 24rpx;
height: 46rpx; height: 24rpx;
margin-left: 12rpx;
} }
.list .item.gray .name image { .list .item.gray .name image {
...@@ -132,8 +135,7 @@ page { ...@@ -132,8 +135,7 @@ page {
} }
.list .item .name .name-text { .list .item .name .name-text {
margin-left: 26rpx; max-width: 404rpx;
width: 404rpx;
} }
...@@ -141,11 +143,11 @@ page { ...@@ -141,11 +143,11 @@ page {
position: absolute; position: absolute;
font-size: 28rpx; font-size: 28rpx;
top: 32rpx; top: 32rpx;
right: 40rpx; right: 32rpx;
min-width: 100rpx; height: 44rpx;
height: 56rpx;
background: #F0F0F0; background: #F0F0F0;
border-radius: 8rpx; border-radius: 4rpx;
padding: 4rpx 8rpx;
} }
.list .item .status .arc { .list .item .status .arc {
...@@ -217,13 +219,13 @@ page { ...@@ -217,13 +219,13 @@ page {
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
content: ''; content: '';
background: #3582EE; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
.list .item .goods-list .goods .goods-name { .list .item .goods-list .goods .goods-name {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
max-width: 430rpx; max-width: 430rpx;
} }
...@@ -257,7 +259,7 @@ page { ...@@ -257,7 +259,7 @@ page {
.list .item .goods-more text { .list .item .goods-more text {
font-size: 28rpx; font-size: 28rpx;
color: #3582EE; color: #347BFF;
margin-right: 20rpx; margin-right: 20rpx;
} }
...@@ -265,11 +267,6 @@ page { ...@@ -265,11 +267,6 @@ page {
color: #666; color: #666;
} }
.list .item .order-list {
padding: 20rpx 0;
}
.list .item .order { .list .item .order {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
...@@ -278,17 +275,14 @@ page { ...@@ -278,17 +275,14 @@ page {
align-items: center; align-items: center;
} }
.list .item .order:last-of-type {
margin-bottom: 0;
}
.list .item .order .order-label { .list .item .order .order-label {
width: 136rpx; width: 136rpx;
color: #999EA8;
} }
.list .item .order .order-value { .list .item .order .order-value {
width: calc(100% - 136rpx); width: calc(100% - 136rpx);
color: #888888; color: #292D33;
display: flex; display: flex;
align-items: center; align-items: center;
} }
...@@ -367,7 +361,7 @@ page { ...@@ -367,7 +361,7 @@ page {
height: 80rpx; height: 80rpx;
display: flex; display: flex;
background: rgba(53, 130, 238, 0.85); background: rgba(53, 130, 238, 0.85);
border: 2rpx solid #3582EE; border: 2rpx solid #347BFF;
border-radius: 40rpx; border-radius: 40rpx;
box-sizing: border-box; box-sizing: border-box;
transform: translateX(-50%); transform: translateX(-50%);
...@@ -407,11 +401,15 @@ page { ...@@ -407,11 +401,15 @@ page {
/* width: calc(100% - 40rpx); */ /* width: calc(100% - 40rpx); */
overflow: hidden; overflow: hidden;
margin: 20rpx; margin: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); box-shadow: 0 4rpx 20rpx 0 #0000001a;
border-radius: 16rpx; border-radius: 16rpx;
/* border-bottom: .5px solid #d8d4d4; */ /* border-bottom: .5px solid #d8d4d4; */
} }
.touch-item:first-child{
margin-top: 4rpx;
}
.del { .del {
width: 72px; width: 72px;
display: flex; display: flex;
...@@ -472,13 +470,13 @@ page { ...@@ -472,13 +470,13 @@ page {
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
display: flex; display: flex;
color: #666666ff; color: #181A1F;
font-size: 28rpx; font-size: 28rpx;
margin: 16rpx 30rpx; margin: 16rpx 30rpx;
} }
.list-bar .txt-blue { .list-bar .txt-blue {
color: #3582EE; color: #347BFF;
margin-right: 24rpx; margin-right: 24rpx;
} }
...@@ -486,8 +484,8 @@ page { ...@@ -486,8 +484,8 @@ page {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 60rpx; width: 48rpx;
height: 60rpx; height: 48rpx;
} }
...@@ -508,7 +506,7 @@ page { ...@@ -508,7 +506,7 @@ page {
} }
.list .item .order-list { .list .item .order-list {
border-bottom: 1rpx solid rgba(195, 195, 195, .3); border-bottom: 1rpx solid #E4E8EE;
} }
...@@ -516,30 +514,28 @@ page { ...@@ -516,30 +514,28 @@ page {
font-size: 28rpx; font-size: 28rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 700; margin-top: 31rpx;
margin-top: 28rpx;
} }
.order-type .label { .order-type .label {
color: #333333; color: #999EA8;
width: 136rpx;
width: 60rpx; font-size: 24rpx;
line-height: 36rpx;
margin-right: 40rpx;
} }
.order-type .time { .order-type .time {
color: #F24724; color: #347BFF;
font-weight: 600;
} }
.order-type .time.gray { .order-type .time.gray {
color: gray; color: #BEC1C7;
} }
.order-control { .order-control {
position: absolute; position: absolute;
right: 40rpx; right: 32rpx;
bottom: 30rpx; bottom: 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 24rpx; font-size: 24rpx;
...@@ -549,22 +545,22 @@ page { ...@@ -549,22 +545,22 @@ page {
.control-item { .control-item {
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
margin-left: 60rpx; justify-content: center;
} width: 94rpx;
height: 56rpx;
.control-item image { margin-left: 16rpx;
margin-bottom: 8rpx; border: 1rpx solid #DEE0E3;
border-radius: 32rpx;
} }
.date-icon { .date-icon {
width: 32rpx; width: 48rpx;
height: 32rpx; height: 48rpx;
} }
.phone-icon { .phone-icon {
width: 36rpx; width: 48rpx;
height: 34rpx; height: 48rpx;
} }
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<view>今日预约 · <span class="txt-blue">{{inviteObj.dayInvited || 0}}</span></view> <view>今日预约 · <span class="txt-blue">{{inviteObj.dayInvited || 0}}</span></view>
<view>本周预约 · <span class="txt-blue">{{inviteObj.weekInvited || 0}}</span></view> <view>本周预约 · <span class="txt-blue">{{inviteObj.weekInvited || 0}}</span></view>
<view>超时未到店 · <span class="txt-blue">{{inviteObj.overdue || 0}}</span></view> <view>超时未到店 · <span class="txt-blue">{{inviteObj.overdue || 0}}</span></view>
<image class="icon-cal" src="/images/icon-cal.png" bindtap="jump" data-item="{}" data-recorderId='22' data-name="tabDate.apprManage"/> <image class="icon-cal" src="{{IMG_URL}}miniProgram/date_icon.png" bindtap="jump" data-item="{}" data-recorderId='22' data-name="tabDate.apprManage"/>
</view> </view>
<block wx:if="{{flag}}"> <block wx:if="{{flag}}">
<scroll-view <scroll-view
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
bindrefresherrefresh="search" bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom" bindscrolltolower="scrollonReachBottom"
class="list" class="list"
style="height:calc(100vh - {{navBarHeight + 104}}px);" style="height:calc(100vh - {{navBarHeight}}px - 300rpx);"
refresher-threshold="104" refresher-threshold="104"
refresher-triggered="{{triggered}}" refresher-triggered="{{triggered}}"
class="list"> class="list">
...@@ -69,15 +69,16 @@ ...@@ -69,15 +69,16 @@
data-name="tabDate.detail" data-name="tabDate.detail"
data-recorderId='23' data-recorderId='23'
data-item="{{li}}"> data-item="{{li}}">
<view class="status" style="color:{{status[li.inviteStatus].color}}"> <view class="status" style="color:{{status[li.inviteStatus].color}};background: {{status[li.inviteStatus].background}};">
<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>
<view class="name"> <view class="name">
<image src="/images/avatar.png" /> <!-- <image src="/images/avatar.png" /> -->
<view class="name-text text-hide">{{li.customer.customerName || ''}}</view> <view class="name-text text-hide">{{li.customer.customerName || ''}}</view>
<image class="name-sex-icon" src="{{IMG_URL}}{{li.customer.customerSex == 1 ? 'miniProgram/icon-man.png' : 'miniProgram/icon-woman.png'}}" mode=""/>
</view> </view>
<view class="order-list"> <view class="order-list">
<block wx:for="{{orderObj}}" wx:key="index" wx:for-item="i"> <block wx:for="{{orderObj}}" wx:key="index" wx:for-item="i">
...@@ -115,14 +116,12 @@ ...@@ -115,14 +116,12 @@
<view class="order-control"> <view class="order-control">
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && li.customerCoupon.usedFlag !='Y'&&li.inviteStatus !=4&&li.inviteStatus !=6}}"> <block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && li.customerCoupon.usedFlag !='Y'&&li.inviteStatus !=4&&li.inviteStatus !=6}}">
<view class="control-item" catchtap="showDateBox" data-item="{{li}}"> <view class="control-item" catchtap="showDateBox" data-item="{{li}}">
<image src="../images/date.png" class="date-icon" /> <image src="{{IMG_URL}}miniProgram/reservation_icon.png" class="date-icon" />
预约
</view> </view>
</block> </block>
<block wx:if="{{li.customer.customerPhone&&!phoneShow}}"> <block wx:if="{{li.customer.customerPhone&&!phoneShow}}">
<view class="control-item" data-phone="{{li.customer.customerPhone}}" catchtap="phoneCall"> <view class="control-item" data-phone="{{li.customer.customerPhone}}" catchtap="phoneCall">
<image src="../images/phone.png" class="phone-icon" /> <image src="{{IMG_URL}}miniProgram/phone_icon.png" class="phone-icon" />
拨号
</view> </view>
</block> </block>
</view> </view>
...@@ -153,7 +152,7 @@ ...@@ -153,7 +152,7 @@
</block> </block>
</block> </block>
<block wx:else> <block wx:else>
<view class="list-not">暂无数据</view> <empty-data />
</block> </block>
</scroll-view> </scroll-view>
</block> </block>
......
<!-- components/orderSwitchPopup/orderSwitchPopup.wxml --> <!-- components/orderSwitchPopup/orderSwitchPopup.wxml -->
<view wx:if="{{flag}}" class='container' style=''> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view wx:if="{{flag}}" class='container'>
<!-- bindtap='_close' 取消遮光层关闭事件 --> <!-- bindtap='_close' 取消遮光层关闭事件 -->
<view class='wrap {{wrapAnimate}}' style='background:rgba(0,0,0,{{bgOpacity}});' /> <view class='wrap {{wrapAnimate}}' style='background:rgba(0,0,0,{{bgOpacity}});' />
<view class='popup-container {{popupAnimate}}'> <view class='popup-container {{popupAnimate}}'>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!