订单详情隐藏,审核状态显示替换,会员自动登录密码无法登录问题
| | |
| | | { |
| | | "path": "order-detail", |
| | | "style": { |
| | | "navigationBarTitleText": "订单详情" |
| | | "navigationBarTitleText": "订单详情", |
| | | "componentPlaceholder": { |
| | | "u-icon": "view", |
| | | "u-button": "view", |
| | | "u-form": "view", |
| | | "u-form-item": "view", |
| | | "u-input": "view", |
| | | "u-popup": "view", |
| | | "u-search": "view", |
| | | "u-upload": "view" |
| | | } |
| | | // "navigationStyle": "custom" |
| | | |
| | | } |
| | | } |
| | | ] |
| | |
| | | <view class="uni-note">{{ item.commentNum || 0 }}条评论 |
| | | </view> |
| | | <view class="uni-note ellipsis"> |
| | | <text :class="item.marketEnable == 'DOWN' ? 'market-down' : 'market-up'">{{ |
| | | item.marketEnable == 'DOWN' ? "已下架" : "已上架" }}</text> |
| | | |
| | | <!-- <text :class="item.marketEnable == 'DOWN' ? 'market-down' : 'market-up'">{{ |
| | | item.marketEnable == 'DOWN' ? "已下架" : "已上架" }}</text> --> |
| | | <text :class="item.authFlag == 'TOBEAUDITED' ? 'market-down' : item.authFlag == 'PASS' ? 'market-up' : 'market-down'"> |
| | | {{ item.authFlag == 'TOBEAUDITED' ? "待审核" : (item.authFlag == 'PASS' ? '通过' : '未通过') }} |
| | | </text> |
| | | <!--<text class="uni-link" style="color:red;">删除</text> --> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="section-title">物流信息</view> |
| | | <view class="userInfo"> |
| | | <view class="name"> |
| | | <text>姓名:</text> {{order.consigneeName}}</view> |
| | | <view class="phone"><text>联系电话:</text> {{order.consigneeMobile}}</view> |
| | | <text>姓名:</text> {{showPrivateInfo ? order.consigneeName : hideInfo(order.consigneeName)}}</view> |
| | | <view class="phone"><text>联系电话:</text> {{showPrivateInfo ? order.consigneeMobile : hidePhone(order.consigneeMobile)}}</view> |
| | | <view class="address-line"> |
| | | <view class="addresss"><text>地址:</text> {{order.consigneeAddressPath}}</view> |
| | | <u-icon |
| | | :name="showPrivateInfo ? 'eye-fill' : 'eye-off'" |
| | | size="34" |
| | | @click="togglePrivacy" |
| | | ></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="form-item"> |
| | | <picker @change="selectLogistics" :value="logisticsIndex" :range="logisticsList" range-key="name" |
| | |
| | | getChecked, |
| | | partDelivery |
| | | } from '@/api/supplier.js' |
| | | import '@/components/uview-components/uview-ui'; |
| | | export default { |
| | | data() { |
| | | return { |
| | | showPrivateInfo:false, |
| | | logisticsIndex: -1, |
| | | logisticsList: [], |
| | | trackingNumber: '', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | togglePrivacy(){ |
| | | this.showPrivateInfo = !this.showPrivateInfo; |
| | | }, |
| | | hideInfo(info) { |
| | | if (!info) return ''; |
| | | // 姓名:显示第一个字,其他用*代替 |
| | | return info.length > 1 |
| | | ? info.substring(0, 1) + '*'.repeat(info.length - 1) |
| | | : '*'; |
| | | }, |
| | | hidePhone(phone) { |
| | | if (!phone) return ''; |
| | | // 手机号:显示前3位和后4位,中间用****代替 |
| | | return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); |
| | | }, |
| | | // 选择物流公司 |
| | | selectLogistics(e) { |
| | | this.logisticsIndex = e.detail.value |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /* 地址和图标在同一行 */ |
| | | .address-line { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | /* 样式保持不变 */ |
| | | .container { |
| | | padding: 20rpx; |
| | |
| | | id: this.form.id, |
| | | mobile: this.form.mobile, |
| | | realName: this.form.realName, |
| | | password: this.form.password, |
| | | password: this.md5(this.form.password), |
| | | role: this.form.role, |
| | | isSuper:this.form.isSuper, |
| | | departmentId:this.form.departmentId, |
| | | } |
| | | |
| | | if (form.id) { |
| | | update(form).then(res => { |
| | | this.loading = false; |
| | |
| | | setTimeout(() => uni.navigateBack(), 1500); |
| | | } |
| | | }) |
| | | } else { |
| | | } else {0 |
| | | add(form).then(res => { |
| | | this.loading = false; |
| | | if (res.statusCode === 200) { |