Commit 3e0aa2e6 by 张立顺

bug修复

1 parent 44ad096f
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
.pickViewColumn{ .pickViewColumn{
text-align: center; text-align: center;
line-height: 34px; line-height: 34px;
font-size: 32rpx;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -22,10 +22,19 @@ ...@@ -22,10 +22,19 @@
</block> </block>
<block wx:elif="{{item.key == 'couponName'}}"> <block wx:elif="{{item.key == 'couponName'}}">
<text>{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}</text> <text>{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}</text>
<text>({{item.enum? item.enum[detail[item.e_key]] : detail[item.e_key] || ''}})</text> <text>
({{item.enum? item.enum[detail[item.e_key]] : detail[item.e_key] || ''}})
</text>
</block> </block>
<view wx:elif="{{item.key == 'userPortrait'}}" class="portrait"> <view wx:elif="{{item.key == 'userPortrait'}}" class="portrait">
<view wx:for="{{detail[item.key]}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="portrait-item">{{subItem}}</view> <view
wx:for="{{detail[item.key]}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx"
class="portrait-item">
{{subItem}}
</view>
</view> </view>
<block wx:else> <block wx:else>
{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}} {{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}
...@@ -37,9 +46,7 @@ ...@@ -37,9 +46,7 @@
</view> </view>
</block> </block>
<block wx:if="{{item.portrait}}"> <block wx:if="{{item.portrait}}">
<view class="copy" catchtap="editProtrait"> <view class="copy" catchtap="editProtrait">编辑</view>
编辑
</view>
</block> </block>
</view> </view>
</block> </block>
...@@ -48,7 +55,7 @@ ...@@ -48,7 +55,7 @@
<view class="box "> <view class="box ">
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2}}"> <block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2}}">
<view <view
wx:if="{{detail.inviteStatus != 4}}" wx:if="{{detail.inviteStatus != 4&&detail.inviteStatus!=6}}"
class="icon date-icon" class="icon date-icon"
bindtap="showPopup" bindtap="showPopup"
data-name="showDate"> data-name="showDate">
...@@ -60,7 +67,7 @@ ...@@ -60,7 +67,7 @@
<view class="date-box"> <view class="date-box">
<view class="date text-center"> <view class="date text-center">
{{detail.inviteDate}} {{detail.inviteDate}}
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2}}"> <block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && detail.inviteStatus!=4}}">
<view class="cancel y-center" bindtap="cancelInvite">取消预约</view> <view class="cancel y-center" bindtap="cancelInvite">取消预约</view>
</block> </block>
</view> </view>
...@@ -121,7 +128,7 @@ ...@@ -121,7 +128,7 @@
</view> </view>
</view> </view>
</block> </block>
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && index == 0 && userInfo.userType == 2}}"> <block wx:if="{{!userInfo.isSuper && userInfo.merchantType && index == 0 && userInfo.userType == 2&&detail.inviteStatus!=6}}">
<view class="icon" bindtap="showPopup" data-name="showRemark"> <view class="icon" bindtap="showPopup" data-name="showRemark">
<image src="../../images/edit.png" /> <image src="../../images/edit.png" />
</view> </view>
......
...@@ -72,7 +72,7 @@ Page({ ...@@ -72,7 +72,7 @@ Page({
// let { list } = this.data // let { list } = this.data
// index, ind // index, ind
let { let {
item: { id } item: { id,customerCouponId }
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.showModal({ wx.showModal({
...@@ -84,7 +84,7 @@ Page({ ...@@ -84,7 +84,7 @@ Page({
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
_this.showLoading('取消中...') _this.showLoading('取消中...')
_this.repeal(id) _this.repeal(customerCouponId)
} }
} }
}) })
...@@ -124,7 +124,7 @@ Page({ ...@@ -124,7 +124,7 @@ Page({
// debugger // debugger
let { item: li } = e.currentTarget.dataset let { item: li } = e.currentTarget.dataset
// console.log(!li.repeal) // console.log(!li.repeal)
// if (!li.repeal) return if (!li.repeal) return
if (e.changedTouches.length == 1) { if (e.changedTouches.length == 1) {
//手指移动结束后触摸点位置的X坐标 //手指移动结束后触摸点位置的X坐标
var endX = e.changedTouches[0].clientX var endX = e.changedTouches[0].clientX
...@@ -182,7 +182,7 @@ Page({ ...@@ -182,7 +182,7 @@ Page({
// let { userInfo } = this.data // let { userInfo } = this.data
let { item: li } = e.currentTarget.dataset let { item: li } = e.currentTarget.dataset
// console.log(!li.repeal) // console.log(!li.repeal)
// if (!li.repeal) return if (!li.repeal) return
// let userType = !userInfo.isSuper && userInfo.merchantType // let userType = !userInfo.isSuper && userInfo.merchantType
// let orderType = userInfo.userType == 1 && li.status != 9 && li.status != 1 && li.selectPayType != 3 && li.selectPayType != 1 // let orderType = userInfo.userType == 1 && li.status != 9 && li.status != 1 && li.selectPayType != 3 && li.selectPayType != 1
// // 权限检验 // // 权限检验
...@@ -327,7 +327,7 @@ Page({ ...@@ -327,7 +327,7 @@ Page({
getInviteList() { getInviteList() {
this.showLoading && this.showLoading('加载中...') this.showLoading && this.showLoading('加载中...')
// console.log(this.showLoading) // console.log(this.showLoading)
let { searchObj, pageNum, keyword, tabIndex } = this.data let { searchObj, pageNum, keyword, tabIndex, userInfo } = this.data
let obj = { let obj = {
currentPage: pageNum, currentPage: pageNum,
...searchObj ...searchObj
...@@ -353,7 +353,11 @@ Page({ ...@@ -353,7 +353,11 @@ Page({
} }
}) })
console.log(data.list, 'list') console.log(data.list, 'list')
list = data.list const userType = !userInfo.isSuper && userInfo.merchantType
list = data.list.map(item => {
item.repeal = userType && [1, 2].includes(item.inviteStatus)
return item
})
total = data.total total = data.total
} else { } else {
this.showToast(message) this.showToast(message)
...@@ -405,7 +409,7 @@ Page({ ...@@ -405,7 +409,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { }, onReady: function () {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -417,22 +421,22 @@ Page({ ...@@ -417,22 +421,22 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { }, onPullDownRefresh: function () {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { }, onReachBottom: function () {},
scrollonReachBottom() { scrollonReachBottom() {
let { total, pageNum } = this.data let { total, pageNum } = this.data
wx.$util.onReachBottom( wx.$util.onReachBottom(
...@@ -448,5 +452,5 @@ Page({ ...@@ -448,5 +452,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { } onShareAppMessage: function () {}
}) })
...@@ -61,22 +61,22 @@ Component({ ...@@ -61,22 +61,22 @@ Component({
tags: [ tags: [
{ {
name: '服务态度好', name: '服务态度好',
value: '0', value: '1',
checked: false checked: false
}, },
{ {
name: '性价比高', name: '性价比高',
value: '1', value: '2',
checked: false checked: false
}, },
{ {
name: '价格便宜', name: '价格便宜',
value: '2', value: '3',
checked: false checked: false
}, },
{ {
name: '一般', name: '一般',
value: '3', value: '4',
checked: false checked: false
} }
], ],
......
...@@ -355,6 +355,8 @@ Page({ ...@@ -355,6 +355,8 @@ Page({
delete orderInfo[deleteList[i]] delete orderInfo[deleteList[i]]
} }
orderInfo.againOrder = true orderInfo.againOrder = true
// console.log(orderInfo);
// return
wx.$router.redirectTo('createOrder', orderInfo) wx.$router.redirectTo('createOrder', orderInfo)
// merchantDistributionList,expenseCategoryList,profitAllocatinList // merchantDistributionList,expenseCategoryList,profitAllocatinList
}, },
......
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
</view> </view>
<view class="title">车主评价</view> <view class="title">车主评价</view>
<!-- wx:show="{{qrFlag}}" --> <!-- wx:show="{{qrFlag}}" -->
<view class="qr-view" id="qr-view" style="height:{{qrFlag ?0:qrHeight}}px"> <view class="qr-view" id="qr-view" style="height:{{qrFlag ?0:qrHeight*2}}rpx">
<block wx:if="{{orderInfo.status != 6}}"> <block wx:if="{{orderInfo.status != 6}}">
<view class="qr-box" wx:show="{{qrFlag}}"> <view class="qr-box" wx:show="{{qrFlag}}">
<view wx:show="{{qr}}"> <view wx:show="{{qr}}">
......
...@@ -108,8 +108,8 @@ Page({ ...@@ -108,8 +108,8 @@ Page({
let { showName } = e.currentTarget.dataset let { showName } = e.currentTarget.dataset
if (showName == 'goodsBox') { if (showName == 'goodsBox') {
// if (selectPayType == 0) return // if (selectPayType == 0) return
if (goodsData.length < 1) { if (goodsData.length < 1 ) {
return this.showToast('门店无配置商品') return this.showToast(selectPayType == 0?'门店无战败商品,请联系管理员':'门店无配置商品')
} }
} }
this.setData({ this.setData({
...@@ -399,7 +399,7 @@ Page({ ...@@ -399,7 +399,7 @@ Page({
}, },
setOrderObj(options) { setOrderObj(options) {
let { scene, userInfo, isErrorOrder, showTips, isAlreadyExistOrder, subShopMerchantList } = this.data let { scene, userInfo, isErrorOrder, showTips, isAlreadyExistOrder, subShopMerchantList } = this.data
// console.log('setOrderObj', options) console.log('setOrderObj', options)
// debugger // debugger
wx.$util.showLoading('加载中...') wx.$util.showLoading('加载中...')
let orderObj = {} let orderObj = {}
...@@ -610,6 +610,7 @@ Page({ ...@@ -610,6 +610,7 @@ Page({
let { orderObj, goodsData } = this.data let { orderObj, goodsData } = this.data
let { subOrderList } = orderObj let { subOrderList } = orderObj
console.log(subOrderList, 'subOrderList') console.log(subOrderList, 'subOrderList')
debugger
// console.log(goodsData) // console.log(goodsData)
let chooseList = [] let chooseList = []
if (subOrderList) { if (subOrderList) {
...@@ -623,8 +624,8 @@ Page({ ...@@ -623,8 +624,8 @@ Page({
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
} }
e.count = e.number e.count = e.number
e.id = e.upgradeGoodsId // e.id = e.upgradeGoodsId
e.merchantGoodsId = e.id || e.merchantGoodsId e.merchantGoodsId = e.merchantGoodsId||e.id
// e.merchantGoodsId // e.merchantGoodsId
chooseList.push(e) chooseList.push(e)
}) })
...@@ -702,7 +703,7 @@ Page({ ...@@ -702,7 +703,7 @@ Page({
}, },
async onRoute(res) { async onRoute(res) {
// debugger // debugger
// console.log(res) console.log(res,'onroute')
// console.log() // console.log()
if (res.orderCode && res.page) { if (res.orderCode && res.page) {
let result = await api.getOrderDetail({ let result = await api.getOrderDetail({
......
...@@ -28,28 +28,28 @@ Page({ ...@@ -28,28 +28,28 @@ Page({
lineSize: 3, // 笔记倍数 lineSize: 3, // 笔记倍数
radius: 1.5, //画圆的半径 radius: 1.5, //画圆的半径
showPlaceHoder: true, showPlaceHoder: true,
signImage: 'http://qcimg01.glsx.com.cn/group1/M00/04/A5/wKgD3mRI38iAGZxIAAAh2GVxNVE621.png', signImage: '',
constructionImgList: [], constructionImgList: [],
rating: 5, rating: 5,
formData: {}, formData: {},
tags: [{ tags: [{
name: '服务态度好', name: '服务态度好',
value: 0, value: 1,
checked: true checked: true
}, },
{ {
name: '性价比高', name: '性价比高',
value: 1, value: 2,
checked: false checked: false
}, },
{ {
name: '价格便宜', name: '价格便宜',
value: 2, value: 3,
checked: false checked: false
}, },
{ {
name: '一般', name: '一般',
value: 3, value: 4,
checked: false checked: false
} }
] ]
...@@ -327,7 +327,7 @@ Page({ ...@@ -327,7 +327,7 @@ Page({
} }
if (constructionImgList.length == 0) { if (constructionImgList.length == 0) {
wx.showToast({ wx.showToast({
title: '请上传施工照片', title: '请上传客户合照或车辆照片',
icon: 'none', icon: 'none',
mask: true mask: true
}) })
...@@ -349,16 +349,21 @@ Page({ ...@@ -349,16 +349,21 @@ Page({
tags, tags,
rating, rating,
orderCode, orderCode,
orderInfo orderInfo,
signImage
} = this.data } = this.data
let that = this let that = this
// 校验表单 // 校验表单
let valid = this.validForm() let valid = this.validForm()
console.log(valid);
// return // return
if (!valid) return if (!valid) return
// 获取签名图片 // 获取签名图片 有全屏的就取全屏的 没有就当前页面的
if (!signImage) {
const imgPatch = await this.getSignatureImg() const imgPatch = await this.getSignatureImg()
const electronicSignature = await this.toUploadImage(imgPatch) signImage = await this.toUploadImage(imgPatch)
}
const evaluationList = tags.reduce((list, item, index) => { const evaluationList = tags.reduce((list, item, index) => {
if (item.checked) { if (item.checked) {
list.push(index + 1) list.push(index + 1)
...@@ -373,13 +378,15 @@ Page({ ...@@ -373,13 +378,15 @@ Page({
let params = { let params = {
orderCode, orderCode,
customerPhotos, customerPhotos,
electronicSignature, electronicSignature:signImage,
rating, rating,
merchantId: orderInfo.merchantId, merchantId: orderInfo.merchantId,
sceneType: 1, sceneType: 1,
// tags, // tags,
evaluationList evaluationList
} }
console.log(params);
// return
api api
.customerConfirmationSignature(params) .customerConfirmationSignature(params)
.then(result => { .then(result => {
...@@ -529,7 +536,7 @@ Page({ ...@@ -529,7 +536,7 @@ Page({
// console.log(options) // console.log(options)
// 调试用 // 调试用
// options.orderCode = '230420114142778' // options.orderCode = '230420114142778'
// options.orderCode = '230331185108355' options.orderCode = '230427135616113'
if (options.orderCode) { if (options.orderCode) {
this.setData({ this.setData({
orderCode: options.orderCode orderCode: options.orderCode
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<image class="tire-img" src="{{item}}" /> <image class="tire-img" src="{{item}}" />
</view> </view>
</view> </view>
<view class="tire-block" bindtap="handleUpload" wx:if="{{constructionImgList.length==0||constructionImgList.length<10}}"> <view class="tire-block" bindtap="handleUpload" wx:if="{{constructionImgList.length==0||constructionImgList.length<9}}">
<view> <view>
<image class="icon-plus" src="/tabWorkOrder/images/icon-plus.png" /> <image class="icon-plus" src="/tabWorkOrder/images/icon-plus.png" />
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!