Commit 613caa0c by 张晓玮

Merge branch 'dev_v4.31.0_1031' into 'develop'

Dev v4.31.0 1031

See merge request !184
2 parents 6dc84173 244046cf
Showing 221 changed files with 778 additions and 329 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: wx.$util.deepClone(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
}, },
...@@ -73,24 +74,19 @@ Component({ ...@@ -73,24 +74,19 @@ Component({
}, },
changeItem(e) { changeItem(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
let { artificerList, copyArtificerList } = this.data let { artificerList } = this.data
artificerList.map(i => { let { copyArtificerList } = wx.$util.deepClone(this.data)
i.active = false artificerList.forEach(i => {
if (i.id == target?.id) { if (i.id != target?.id) i.active = false
i.active = true if (i.id == target?.id) i.active = !i.active
}
return i
}) })
copyArtificerList.map(i => { copyArtificerList.forEach(i => {
i.active = false if (i.id != target?.id) i.active = false
if (i.id == target?.id) { if (i.id == target?.id) i.active = !i.active
i.active = true
}
return i
}) })
this.setData({ this.setData({
artificerList: artificerList, artificerList,
copyArtificerList: copyArtificerList, copyArtificerList,
selectedTechnicianId: target.id selectedTechnicianId: target.id
}) })
}, },
...@@ -100,16 +96,32 @@ Component({ ...@@ -100,16 +96,32 @@ Component({
artificerSelectPopup: false artificerSelectPopup: false
}) })
}, },
// 打开生意助手小程序
goMiniprogram() {
wx.navigateToMiniProgram({
appId: 'wx2c28337db96364d2'
})
},
async confirm() { async confirm() {
let { copyArtificerList, orderInfo } = this.data let { copyArtificerList, orderInfo, artificerSelectObj, selectedTechnicianId } = 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('请选择技师')
// 未选技师 将selectedTechnicianId清除
this.setData({
selectedTechnicianId: ''
})
}
let obj = {
...artificerSelectObj,
technicianUuid: arr[0]?.uuid || '',
technicianId: arr[0]?.id || '',
technicianName: arr[0]?.staffName || ''
} }
orderInfo.technicianUuid = arr[0]?.uuid || '' // orderInfo.technicianUuid = arr[0]?.uuid || ''
orderInfo.technicianId = arr[0]?.id || '' // orderInfo.technicianId = arr[0]?.id || ''
orderInfo.technicianName = arr[0]?.staffName || '' // orderInfo.technicianName = arr[0]?.staffName || ''
this.triggerEvent('confirm', orderInfo) 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,13 +41,13 @@ Component({ ...@@ -40,13 +41,13 @@ Component({
} }
} }
}, },
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) this.getCustomerCouponList(n)
console.log(this.data.merchantId, 'this.data.merchantId');
this.getCouponList(this.data.merchantId) this.getCouponList(this.data.merchantId)
} }
} }
...@@ -54,7 +55,8 @@ Component({ ...@@ -54,7 +55,8 @@ Component({
returnFun: Boolean, returnFun: Boolean,
pageName: { pageName: {
type: String type: String
} },
filmOrder: String // 下单类型
}, },
lifetimes: { lifetimes: {
attached() {} attached() {}
...@@ -71,6 +73,54 @@ Component({ ...@@ -71,6 +73,54 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
customerPhoneBlur() {
const phoneRex = /^[1]([3-9])[0-9]{9}$/
let { merchantId, customerPhone } = this.data
if (phoneRex.test(customerPhone)) {
let thisPage = wx.$router.getPageInstance()
let {
orderObj
} = thisPage.data
let params = {
phone: customerPhone,
merchantId: merchantId
}
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 || orderObj?.customer.customerSex,
plateNumber: data.plateNumber,
experienceFlag: orderObj?.customer.experienceFlag || 'Y' // 默认是体验
},
couponName: data.couponName,
customerCouponCode: data.customerCouponCode,
customerCouponId: data.customerCouponId
}
thisPage.setData({
orderObj: obj,
returnFun: true
})
}
} else {
wx.$util.showToast(message)
}
this.getCustomerCouponList(customerPhone)
this.getCouponList(this.data.merchantId, !(data && Object.keys(data)?.length))
})
}
},
getCustomerCouponList(customerPhone) { getCustomerCouponList(customerPhone) {
// statusList 客户券状态 0待使用 1使用中 2已回收 3已使用 // statusList 客户券状态 0待使用 1使用中 2已回收 3已使用
let params = { let params = {
...@@ -106,9 +156,10 @@ Component({ ...@@ -106,9 +156,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 +178,16 @@ Component({ ...@@ -127,7 +178,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 +196,43 @@ Component({ ...@@ -136,18 +196,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)
} }
}) })
}, },
...@@ -270,7 +355,7 @@ Component({ ...@@ -270,7 +355,7 @@ Component({
if (e.id == orderObj.customerCouponId) { if (e.id == orderObj.customerCouponId) {
e.active = true e.active = true
couponName = e.couponName couponName = e.couponName
id = e.couponInfo.id id = e.id
key = 'customerCouponId' key = 'customerCouponId'
} }
}) })
......
...@@ -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,9 +76,44 @@ Component({ ...@@ -70,9 +76,44 @@ 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 = []
// 太阳膜下单 需保留已选的商品
if (isSolarFilm) {
goodsList.map(e => {
let arr = this.arrayUnique(e.upgradeGoodsList.concat(chooseGoodsList), 'id')
arr?.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)
}
})
})
} else {
goodsList.map(e => { goodsList.map(e => {
e.upgradeGoodsList.map(c => { e.upgradeGoodsList.map(c => {
if (c.active) { if (c.active) {
...@@ -80,7 +121,6 @@ Component({ ...@@ -80,7 +121,6 @@ Component({
if (chooseGoodsList.length > 0) { if (chooseGoodsList.length > 0) {
chooseGoodsList.map(x => { chooseGoodsList.map(x => {
if (x.id == c.id) { if (x.id == c.id) {
console.log(x)
c.price = x.price || 0 c.price = x.price || 0
} }
}) })
...@@ -92,7 +132,8 @@ Component({ ...@@ -92,7 +132,8 @@ Component({
} }
}) })
}) })
return chooseList }
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;
......
...@@ -67,10 +67,10 @@ Component({ ...@@ -67,10 +67,10 @@ Component({
}, },
async getMerchantList() { async getMerchantList() {
let { let {
userInfo,
type, type,
singleSeller singleSeller
} = this.data } = this.data
let userInfo = wx.$util.getUserInfo()
// console.log('type', type) // console.log('type', type)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.data) // console.log(thisPage.data)
......
...@@ -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;
} }
......
...@@ -199,9 +199,20 @@ Component({ ...@@ -199,9 +199,20 @@ Component({
}) })
}, },
confirm(e) { confirm(e) {
let { orderType, outTradeNo, payVoucherList, textareaValue, orderTypeList } = this.data let { orderType, outTradeNo, payVoucherList, textareaValue, orderTypeList, confirmStatus } = this.data
// debugger // debugger
console.log(wx.$router) // console.log(wx.$router)
// 做防抖
if (confirmStatus) return
this.setData({
confirmStatus: true
})
setTimeout(()=>{
this.setData({
confirmStatus: false
})
},1000)
console.log(thisPage,'thisPage');
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
if (orderType == 2) { if (orderType == 2) {
if (payVoucherList.length && outTradeNo) { if (payVoucherList.length && outTradeNo) {
......
...@@ -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
<!--packageCrowdFunding/pages/activityList/activityList.wxml--> <!--packageCrowdFunding/pages/activityList/activityList.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back">
<view class="navigation-title" bindtap="showActivityPicker"> <view class="navigation-title" bindtap="showActivityPicker">
<view class="navigation-title-text text-hide">{{activityName}}</view> <view class="navigation-title-text text-hide">{{activityName}}</view>
......
...@@ -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,6 +28,7 @@ Component({ ...@@ -28,6 +28,7 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMG_URL,
showRemark: false, showRemark: false,
userInfo: {}, userInfo: {},
inputValue: '', inputValue: '',
...@@ -92,18 +93,18 @@ Component({ ...@@ -92,18 +93,18 @@ Component({
type: 'price' type: 'price'
}, },
{ {
label: '订金支付时间', label: '订金支付',
key: 'payedDateStr' key: 'payedDateStr'
}, },
{ {
label: '订单编号', label: '订单编号',
key: 'subOrderCode' key: 'subOrderCode'
}, },
{ // {
label: '尾款金额', // label: '尾款金额',
key: 'tailPayment', // key: 'tailPayment',
type: 'price' // type: 'price'
} // }
], ],
list: [], list: [],
isToBottom: false, isToBottom: false,
......
...@@ -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,7 +130,13 @@ ...@@ -130,7 +130,13 @@
<!-- 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 class="price_label">尾款金额</view>
<view class="order_price_text"><text style="font-size: 28rpx;">¥</text>{{filter.priceFilter(item.tailPayment)}}</view>
</view>
<block wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<view>
<!-- 待支付 --> <!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}"> <view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单 关联尾款单
...@@ -140,14 +146,17 @@ ...@@ -140,14 +146,17 @@
{{btnTxt[item.tailOrderStatus]}} {{btnTxt[item.tailOrderStatus]}}
</view> </view>
</view> </view>
</block>
</view>
</view> </view>
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view> <view class="list-nothing">到底了~</view>
</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;
} }
...@@ -384,7 +397,7 @@ ...@@ -384,7 +397,7 @@
.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;
...@@ -393,6 +406,23 @@ ...@@ -393,6 +406,23 @@
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 {
color: #EB9B2F; color: #EB9B2F;
} }
...@@ -409,23 +439,23 @@ ...@@ -409,23 +439,23 @@
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 {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #292D33;
margin-bottom: 20rpx; margin-bottom: 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -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: #999EA8;
} }
.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;
......
...@@ -45,16 +45,7 @@ ...@@ -45,16 +45,7 @@
<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}}">
<text>{{item.startTime || ''}}</text>
<text> 至 </text>
<text>{{item.endTime}}</text>
</view>
</view>
</view>
<view class="status status-green" wx:if="{{item.activityStatus == 2}}">
进行中 进行中
</view> </view>
<view class="status status-red" wx:if="{{item.activityStatus == 3}}"> <view class="status status-red" wx:if="{{item.activityStatus == 3}}">
...@@ -64,13 +55,22 @@ ...@@ -64,13 +55,22 @@
待开始 待开始
</view> </view>
</view> </view>
<view class="time">
<text style="width: 112rpx;flex-shrink: 0;color: #999EA8;">活动时间</text>
<view wx:if="{{item.startTime && item.endTime}}">
<view>{{item.startTime || ''}} 至 </view>
<text>{{item.endTime}}</text>
</view>
</view>
</view>
</view> </view>
<view class="activity-list"> <view class="activity-list">
<view class="activity-pay"> <view class="activity-pay">
<view class="havePaid">已支付· <view class="havePaid">已支付 ·
<view class="havePaidSum">{{item.payedCount}}</view> <view class="havePaidSum">{{item.payedCount}}</view>
</view> </view>
<view class="unpaid">待支付· <view class="unpaid">待支付 ·
<view class="unpaidNum">{{item.notPayedCount}}</view> <view class="unpaidNum">{{item.notPayedCount}}</view>
</view> </view>
</view> </view>
...@@ -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 {
...@@ -269,6 +285,7 @@ ...@@ -269,6 +285,7 @@
.activity-box .activity-list .activity-pay .havePaid .havePaidSum { .activity-box .activity-list .activity-pay .havePaid .havePaidSum {
color: #FF9D0A; color: #FF9D0A;
padding-left: 8rpx;
} }
.activity-box .activity-list .activity-pay .unpaid { .activity-box .activity-list .activity-pay .unpaid {
...@@ -278,6 +295,7 @@ ...@@ -278,6 +295,7 @@
.activity-box .activity-list .activity-pay .unpaid .unpaidNum { .activity-box .activity-list .activity-pay .unpaid .unpaidNum {
color: #EB4E4E; color: #EB4E4E;
padding-left: 8rpx;
} }
.no-data { .no-data {
......
...@@ -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;
} }
......
...@@ -36,7 +36,7 @@ Page({ ...@@ -36,7 +36,7 @@ Page({
type: 2, type: 2,
typeText: '补录订单' typeText: '补录订单'
}, },
tabIndex: 0, tabIndex: 1,
pageShow: [true, false, false, false], pageShow: [true, false, false, false],
navBarHeight: 0, navBarHeight: 0,
showPicker: false, showPicker: false,
...@@ -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 = {}
...@@ -323,7 +323,7 @@ Page({ ...@@ -323,7 +323,7 @@ Page({
}, },
onRoute(options) { onRoute(options) {
// console.log(options,'options'); console.log(options,'options');
if (options&&options.tabIndex) { if (options&&options.tabIndex) {
this.changeTabBar({detail:options.tabIndex}) this.changeTabBar({detail:options.tabIndex})
} }
...@@ -331,7 +331,9 @@ Page({ ...@@ -331,7 +331,9 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) {}, onLoad(options) {
console.log(options,'onLoad');
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
......
...@@ -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
......
// packageEquity/pages/carEquity/components/EquityList/EquityList.js // packageEquity/pages/carEquity/components/EquityList/EquityList.js
import carLifeApi from '../../../../carEquityApi' import carLifeApi from '../../../../carEquityApi'
import constantData from '../constant/data' import constantData from '../constant/data'
const TABLIST = ['全部', '待补单', '提单失败', '已完成']
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -15,11 +16,15 @@ Component({ ...@@ -15,11 +16,15 @@ Component({
observer(val) { observer(val) {
console.log(val) console.log(val)
if (val == 1) { if (val == 1) {
let { list } = this.data let {
list
} = this.data
setTimeout(() => { setTimeout(() => {
// 解决商品内容提早请求,导致不计算问题 // 解决商品内容提早请求,导致不计算问题
this.setData({ this.setData({
list: { ...list } list: {
...list
}
}) })
}, 10) }, 10)
} }
...@@ -32,8 +37,7 @@ Component({ ...@@ -32,8 +37,7 @@ Component({
*/ */
data: { data: {
storeInfo: {}, storeInfo: {},
orderObj: [ orderObj: [{
{
label: '车架号', label: '车架号',
key: 'vin' key: 'vin'
}, },
...@@ -117,7 +121,9 @@ Component({ ...@@ -117,7 +121,9 @@ Component({
}) })
}, },
getTotal() { getTotal() {
let { storeInfo } = this.data let {
storeInfo
} = this.data
carLifeApi carLifeApi
.equityStatistics({ .equityStatistics({
merchantId: storeInfo?.merchantId merchantId: storeInfo?.merchantId
...@@ -125,8 +131,17 @@ Component({ ...@@ -125,8 +131,17 @@ Component({
.then(res => { .then(res => {
console.log(res, '统计---') console.log(res, '统计---')
if (res.code == '0') { if (res.code == '0') {
let {
data
} = res
this.setData({ this.setData({
statisticsObj: res.data || {} statisticsObj: data || {}
})
this.setData({
['tabList[0]']: TABLIST[0] + '(' + (data.totalOder || 0) + ')',
['tabList[1]']: TABLIST[1] + '(' + (data.ladingOder || 0) + ')',
['tabList[2]']: TABLIST[2] + '(' + (data.failed || 0) + ')',
['tabList[3]']: TABLIST[3] + '(' + (data.success || 0) + ')'
}) })
} else { } else {
wx.$util.showToast(res.message || '接口异常') wx.$util.showToast(res.message || '接口异常')
...@@ -134,7 +149,14 @@ Component({ ...@@ -134,7 +149,14 @@ Component({
}) })
}, },
getList(isReset = false) { getList(isReset = false) {
let { pageSize, pageNum, tabList, tabIndex, customerName, storeInfo } = this.data let {
pageSize,
pageNum,
tabList,
tabIndex,
customerName,
storeInfo
} = this.data
if (this.data.nothing) { if (this.data.nothing) {
return return
} }
...@@ -142,12 +164,16 @@ Component({ ...@@ -142,12 +164,16 @@ Component({
pageSize, pageSize,
pageNum, pageNum,
customerName, customerName,
orderStatus: constantData.equityStatusList.find(item => item.confName == tabList[tabIndex])?.confId || '', // item.confName ==
orderStatus: constantData.equityStatusList.find(item => tabList[tabIndex].includes(item.confName))?.confId || '',
merchantId: storeInfo?.merchantId merchantId: storeInfo?.merchantId
} }
carLifeApi.equityPage(params).then(res => { carLifeApi.equityPage(params).then(res => {
if (res.code == '0') { if (res.code == '0') {
let { data, count } = res.data let {
data,
count
} = res.data
let tempList = isReset ? data || [] : this.data.list.concat(data || []) let tempList = isReset ? data || [] : this.data.list.concat(data || [])
this.setData({ this.setData({
list: tempList, list: tempList,
...@@ -187,14 +213,18 @@ Component({ ...@@ -187,14 +213,18 @@ Component({
this.search() this.search()
}, },
input(e) { input(e) {
let { value } = e.detail let {
value
} = e.detail
this.setData({ this.setData({
customerName: value customerName: value
}) })
}, },
// 首次进入会触发该方法,因此不需要在attached调getList // 首次进入会触发该方法,因此不需要在attached调getList
tabClick(e) { tabClick(e) {
let { searchObj } = this.data let {
searchObj
} = this.data
delete searchObj.statusList delete searchObj.statusList
this.setData({ this.setData({
tabIndex: e.detail, tabIndex: e.detail,
...@@ -204,7 +234,9 @@ Component({ ...@@ -204,7 +234,9 @@ Component({
}, },
// 录单/重新录单 // 录单/重新录单
handleRecordOrder(e) { handleRecordOrder(e) {
let { target } = e.currentTarget.dataset let {
target
} = e.currentTarget.dataset
console.log(target) console.log(target)
wx.$router.go('serviceInfo', { wx.$router.go('serviceInfo', {
contractNo: target.contractNo, contractNo: target.contractNo,
...@@ -213,14 +245,22 @@ Component({ ...@@ -213,14 +245,22 @@ Component({
}, },
// 查看/下载合同 // 查看/下载合同
async handlePreviewContract(e) { async handlePreviewContract(e) {
let { target, type } = e.currentTarget.dataset let {
target,
type
} = e.currentTarget.dataset
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
let params = { let params = {
contractNo: target.contractNo contractNo: target.contractNo
// contractNo: 'car679883190869172224' //开发测试用 // contractNo: 'car679883190869172224' //开发测试用
} }
let result = await carLifeApi.equityOrderList({ orderId: target.orderId }) let result = await carLifeApi.equityOrderList({
let { code, data } = result orderId: target.orderId
})
let {
code,
data
} = result
if (code == 0) { if (code == 0) {
if (data.length == 1) { if (data.length == 1) {
carLifeApi.printContract(params).then(res => { carLifeApi.printContract(params).then(res => {
...@@ -239,7 +279,9 @@ Component({ ...@@ -239,7 +279,9 @@ Component({
} }
}) })
} else { } else {
wx.$router.go('previewList', { list: data }) wx.$router.go('previewList', {
list: data
})
} }
} }
console.log(result, 'result') console.log(result, 'result')
...@@ -256,7 +298,7 @@ Component({ ...@@ -256,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({
...@@ -268,7 +310,9 @@ Component({ ...@@ -268,7 +310,9 @@ Component({
}, },
handleDownload() { handleDownload() {
let { url } = this.data let {
url
} = this.data
let _this = this let _this = this
if (!url) { if (!url) {
wx.$util.showToast('没有合同') wx.$util.showToast('没有合同')
......
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="headerBar"> <!-- <view class="headerBar">
<view class="totalCount"> <view class="totalCount">
<view class="item"> <view class="item">
<image src="/packageEquity/images/order-dbd.png" class="total-icon" /> <image src="/packageEquity/images/order-dbd.png" class="total-icon" />
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="num">{{statisticsObj.success || 0}}</view> <view class="num">{{statisticsObj.success || 0}}</view>
</view> </view>
</view> </view>
</view> </view> -->
<!-- style="margin-top:{{navBarHeight}}px" --> <!-- style="margin-top:{{navBarHeight}}px" -->
<view class="main"> <view class="main">
<view class="to-box"> <view class="to-box">
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
</view> </view>
<tab-bar tabList="{{tabList}}" bindclick="tabClick" /> <tab-bar tabList="{{tabList}}" bindclick="tabClick" />
</view> </view>
<view class="total-box"> <!-- <view class="total-box">
总订单 · 总订单 ·
<text>{{statisticsObj.totalOder}}</text> <text>{{statisticsObj.totalOder}}</text>
待补单 · 待补单 ·
<text style="color: #E7AA47;">{{statisticsObj.ladingOder}}</text> <text style="color: #E7AA47;">{{statisticsObj.ladingOder}}</text>
提单失败 · 提单失败 ·
<text style="color: #D26F6B;">{{statisticsObj.failed}}</text> <text style="color: #D26F6B;">{{statisticsObj.failed}}</text>
</view> </view> -->
<view wx:if="{{tabIndex != 3 && list.length && isShowTips}}" class="tips-box"> <view wx:if="{{tabIndex != 3 && list.length && isShowTips}}" class="tips-box">
<tips-bottom <tips-bottom
custom-class="tips-custom" custom-class="tips-custom"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
tipsProps="{{tipsProps}}" tipsProps="{{tipsProps}}"
bind:closeTips="closeTips" /> bind:closeTips="closeTips" />
</view> </view>
<view wx:if="{{flag}}" class="order-box" style="height: calc(100% - 104rpx - 104rpx - 80rpx - {{isShowTips ? 48 : 0}}rpx);"> <view wx:if="{{flag}}" class="order-box" style="height: calc(100% - 104rpx - 104rpx - {{isShowTips ? 48 : 0}}rpx);">
<scroll-view <scroll-view
scroll-y scroll-y
enable-back-to-top enable-back-to-top
......
...@@ -90,11 +90,12 @@ ...@@ -90,11 +90,12 @@
} }
.main { .main {
margin-top: -20rpx; /* margin-top: -20rpx; */
background: #FFFFFF; background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0; border-radius: 48rpx 48rpx 0 0;
overflow: hidden; overflow: hidden;
height: calc(100% - 192rpx); /* height: calc(100% - 192rpx); */
height: 100% ;
} }
.to-box { .to-box {
...@@ -107,7 +108,7 @@ ...@@ -107,7 +108,7 @@
.search-box { .search-box {
width: 100%; width: 100%;
padding: 32rpx 32rpx 0; padding: 12rpx 32rpx 0;
display: flex; display: flex;
background-color: #fff; background-color: #fff;
position: sticky; position: sticky;
...@@ -194,7 +195,7 @@ ...@@ -194,7 +195,7 @@
.tips-box { .tips-box {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding: 0 32rpx; padding: 20rpx 32rpx 0;
} }
.tips-custom { .tips-custom {
...@@ -210,7 +211,7 @@ ...@@ -210,7 +211,7 @@
.list { .list {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding: 20rpx; padding: 20rpx 20rpx 0;
} }
.list .item { .list .item {
...@@ -316,13 +317,13 @@ ...@@ -316,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;
} }
...@@ -356,7 +357,7 @@ ...@@ -356,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;
} }
...@@ -403,16 +404,16 @@ ...@@ -403,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;
} }
......
...@@ -7,6 +7,7 @@ import { ...@@ -7,6 +7,7 @@ import {
} from '../../../api' } from '../../../api'
import data from '../constant/data' import data from '../constant/data'
import constantData from '../constant/data' import constantData from '../constant/data'
import { ImgUrl } from '~/config'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -25,6 +26,7 @@ Component({ ...@@ -25,6 +26,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
ImgUrl,
orderObj: [{ orderObj: [{
label: '车架号', label: '车架号',
key: 'carVin' key: 'carVin'
......
...@@ -76,9 +76,9 @@ ...@@ -76,9 +76,9 @@
<!-- == '3' --> <!-- == '3' -->
<view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='5'}}"> <view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='5'}}">
<span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span> <span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span>
<span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> <!-- <span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> -->
</view> </view>
<view wx:else class="{{item.orderStatus == '-1' ? 'red-txt' : '' }}"> <view wx:else class="{{item.orderStatus == '-1' ? 'red-txt' : 'default-txt' }}">
{{orderStatusObj[item.orderStatus] || '--'}} {{orderStatusObj[item.orderStatus] || '--'}}
</view> </view>
</view> </view>
...@@ -99,7 +99,8 @@ ...@@ -99,7 +99,8 @@
<block>{{item[i.key] || ''}}</block> <block>{{item[i.key] || ''}}</block>
</view> </view>
</view> </view>
<view class="order" wx:if="{{i.key == 'createdTime' &&( item.orderStatus == '3'||item.orderStatus =='5')}}"> <!-- &&( item.orderStatus == '3'||item.orderStatus =='5') -->
<view class="order" wx:if="{{i.key == 'createdTime' }}">
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
<view class="order-value"> <view class="order-value">
<block>{{item[i.key] || ''}}</block> <block>{{item[i.key] || ''}}</block>
...@@ -132,17 +133,19 @@ ...@@ -132,17 +133,19 @@
</view> </view>
<!-- footer --> <!-- footer -->
<view class="item-footer"> <view class="item-footer">
<view> <view class="pricePay" wx:if="{{item.orderStatus != '-1' && item.quotedPriceUpdate}}">
<view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt"> <view class="order-label">支付金额</view>
<view class="header-price"><text class="unit">¥</text> {{item.quotedPriceUpdate || ''}}</view>
<!-- 已录单未签名 -->
<!-- <view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image> <image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同 订单已支付,未录入权益合同
</view> </view>
<!-- 已录单未签名 -->
<view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt"> <view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image> <image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,尚未签名确认 订单已支付,尚未签名确认
</view> </view> -->
<view wx:else>创建时间:{{item.createdTime}}</view> <!-- <view wx:else>创建时间:{{item.createdTime}}</view> -->
</view> </view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}"> <block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
...@@ -172,6 +175,17 @@ ...@@ -172,6 +175,17 @@
</view> </view>
</block> </block>
</view> </view>
<!-- <view class="tipsCon"> -->
<view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt tipsCon">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同
</view>
<!-- 已录单未签名 -->
<view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt tipsCon">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,尚未签名确认
</view>
<!-- </view> -->
</view> </view>
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view> <view class="list-nothing">到底了~</view>
...@@ -184,6 +198,9 @@ ...@@ -184,6 +198,9 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<image data-target="addOrder" wx:if="{{!userInfo.isSuper && userInfo.userType == 2&&mode!=-1}}" bind:tap="handleClickOrderBtn" class="addOrder" src="/packageEquity/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" /> <view class="addOrderBtn" wx:if="{{!userInfo.isSuper && userInfo.userType == 2&&mode!=-1}}">
<image data-target="addOrder" bind:tap="handleClickOrderBtn" class="addOrder" src="{{ImgUrl}}/miniProgram/crateOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<view class="label">新增提单</view>
</view>
</view> </view>
<remark-popup wx:if="{{showRemark}}" title="战败原因" show="{{showRemark}}" required="{{true}}" bindcancel="remarkCancel" bindconfirm="remarkConfirm" placeholder="请填写战败原因" maxlength="15" value="{{sufferReason}}" /> <remark-popup wx:if="{{showRemark}}" title="战败原因" show="{{showRemark}}" required="{{true}}" bindcancel="remarkCancel" bindconfirm="remarkConfirm" placeholder="请填写战败原因" maxlength="15" value="{{sufferReason}}" />
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
border-radius: 48rpx 48rpx 0 0; border-radius: 48rpx 48rpx 0 0;
overflow: hidden; overflow: hidden;
/* height: calc(100% - 260rpx); */ /* height: calc(100% - 260rpx); */
height: calc(100% ); height: calc(100%);
} }
.to-box { .to-box {
...@@ -209,6 +209,7 @@ ...@@ -209,6 +209,7 @@
box-shadow: 0 6rpx 16rpx 0 rgba(205, 205, 209, 0.5); box-shadow: 0 6rpx 16rpx 0 rgba(205, 205, 209, 0.5);
border-radius: 16rpx; border-radius: 16rpx;
margin: 0 6rpx 20rpx; margin: 0 6rpx 20rpx;
padding-bottom: 20rpx;
} }
.list .item:first-child { .list .item:first-child {
...@@ -240,7 +241,6 @@ ...@@ -240,7 +241,6 @@
.list .header-status { .list .header-status {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #FF9D0A;
} }
.header-price { .header-price {
...@@ -250,10 +250,23 @@ ...@@ -250,10 +250,23 @@
.green-txt { .green-txt {
color: #4AC18E; color: #4AC18E;
background: #EAF9F1;
padding: 4rpx 8rpx;
border-radius: 4rpx;
} }
.red-txt { .red-txt {
color: #EB4E4E; color: #EB4E4E;
background: #FDECE9;
padding: 4rpx 8rpx;
border-radius: 4rpx;
}
.default-txt {
color: #FF9D0A;
background: #FFF5E6;
padding: 4rpx 8rpx;
border-radius: 4rpx;
} }
.list .content { .list .content {
...@@ -320,13 +333,13 @@ ...@@ -320,13 +333,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 +373,7 @@ ...@@ -360,7 +373,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;
} }
...@@ -408,7 +421,26 @@ ...@@ -408,7 +421,26 @@
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 0;
}
.pricePay {
display: flex;
align-items: center;
}
.pricePay .unit {
font-size: 28rpx;
}
.pricePay .order-label {
width: 136rpx;
color: #9B9B9E;
}
.pricePay .header-price {
font-family: 'numberBold';
font-weight: 700;
font-size: 36rpx;
color: #347BFF;
} }
.orange-txt { .orange-txt {
...@@ -425,6 +457,7 @@ ...@@ -425,6 +457,7 @@
.btn_class { .btn_class {
display: flex; display: flex;
gap: 20rpx; gap: 20rpx;
margin-left: auto;
} }
.order-btn { .order-btn {
...@@ -432,16 +465,16 @@ ...@@ -432,16 +465,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 {
...@@ -528,12 +561,15 @@ ...@@ -528,12 +561,15 @@
height: 64rpx; height: 64rpx;
} }
.addOrder { .tipsCon {
width: 112rpx; box-sizing: border-box;
height: 112rpx; width: 646rpx;
position: fixed; height: 56rpx;
right: 32rpx; margin: 20rpx auto 0;
bottom: 250rpx; line-height: 56rpx;
padding: 0rpx 12rpx;
background: #FFF5E6;
border-radius: 8rpx;
} }
.no-data { .no-data {
...@@ -550,3 +586,35 @@ ...@@ -550,3 +586,35 @@
.list-not { .list-not {
text-align: center; text-align: center;
} }
.addOrderBtn {
position: fixed;
right: 32rpx;
bottom: 250rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 104rpx;
height: 172rpx;
background: #ffffffe6;
border: 2rpx solid #EFF0F2;
box-shadow: 0 4rpx 20rpx 0 #0000001a;
border-radius: 52rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 20rpx;
color: #757980;
}
.addOrder {
width: 96rpx;
height: 96rpx;
margin-top: -16rpx;
}
.addOrderBtn .label {
margin-top: -10rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -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;
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!