Commit 3e0aa2e6 by 张立顺

bug修复

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