forked from angelo/web-retail-h5
feat(updateAddress): 修改地址去除审核状态相关展示
This commit is contained in:
parent
0d95e7df59
commit
5f0d1cceff
|
@ -4,52 +4,62 @@
|
||||||
<!-- <view class="top_text">
|
<!-- <view class="top_text">
|
||||||
{{'注:修改地址后,若涉及运费问题,系统将自动扣除请在原订单基础上填写新的收货人信息'}}
|
{{'注:修改地址后,若涉及运费问题,系统将自动扣除请在原订单基础上填写新的收货人信息'}}
|
||||||
</view> -->
|
</view> -->
|
||||||
<u-form :model="addressForm"
|
<u-form :model="addressForm" labelWidth="auto" ref="uForm">
|
||||||
labelWidth="auto"
|
|
||||||
ref="uForm">
|
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'订单编号'"
|
<u-form-item
|
||||||
label-width="150rpx"
|
:label="'订单编号'"
|
||||||
prop="orderCode">
|
label-width="150rpx"
|
||||||
<u--input v-model="addressForm.orderCode"
|
prop="orderCode"
|
||||||
disabled
|
>
|
||||||
disabledColor="#ffffff"
|
<u--input
|
||||||
placeholder="请选择"
|
v-model="addressForm.orderCode"
|
||||||
border="none"></u--input>
|
disabled
|
||||||
|
disabledColor="#ffffff"
|
||||||
|
placeholder="请选择"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'收货人'"
|
<u-form-item :label="'收货人'" label-width="150rpx" prop="newRecName">
|
||||||
label-width="150rpx"
|
<u-input
|
||||||
prop="newRecName">
|
v-model="addressForm.newRecName"
|
||||||
<u-input v-model="addressForm.newRecName"
|
placeholder-class="place-class"
|
||||||
placeholder-class="place-class"
|
class="border-color"
|
||||||
class="border-color"
|
:placeholder="'请输入'"
|
||||||
:placeholder="'请输入'" />
|
/>
|
||||||
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'联系方式'"
|
<u-form-item
|
||||||
label-width="150rpx"
|
:label="'联系方式'"
|
||||||
prop="newRecPhone">
|
label-width="150rpx"
|
||||||
<u-input v-model="addressForm.newRecPhone"
|
prop="newRecPhone"
|
||||||
placeholder-class="place-class"
|
>
|
||||||
:maxlength="userInfo.pkSettleCountry == 1?11:20"
|
<u-input
|
||||||
class="border-color"
|
v-model="addressForm.newRecPhone"
|
||||||
:placeholder="'请输入'" />
|
placeholder-class="place-class"
|
||||||
|
:maxlength="userInfo.pkSettleCountry == 1 ? 11 : 20"
|
||||||
|
class="border-color"
|
||||||
|
:placeholder="'请输入'"
|
||||||
|
/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class"
|
<view class="view-class" @click="getDiqu">
|
||||||
@click="getDiqu">
|
<u-form-item :label="'收货地址'" label-width="150rpx" prop="address">
|
||||||
<u-form-item :label="'收货地址'"
|
<view
|
||||||
label-width="150rpx"
|
v-if="address"
|
||||||
prop="address">
|
style="font-size: 28rpx; color: #333; margin-left: 20rpx"
|
||||||
<view v-if="address"
|
>{{ address }}</view
|
||||||
style="font-size: 28rpx;color: #333;margin-left: 20rpx;">{{address}}</view>
|
>
|
||||||
<view style="margin-left: 20rpx;font-size: 28rpx;color: rgb(192, 196, 204);"
|
<view
|
||||||
v-else>请选择收货地址
|
style="
|
||||||
|
margin-left: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: rgb(192, 196, 204);
|
||||||
|
"
|
||||||
|
v-else
|
||||||
|
>请选择收货地址
|
||||||
</view>
|
</view>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view class="drop">
|
<view class="drop">
|
||||||
|
@ -57,106 +67,81 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'详细地址'"
|
<u-form-item
|
||||||
class="label-style"
|
:label="'详细地址'"
|
||||||
label-width="150rpx"
|
class="label-style"
|
||||||
prop="newRecAddress">
|
label-width="150rpx"
|
||||||
<u-textarea v-model="addressForm.newRecAddress"
|
prop="newRecAddress"
|
||||||
placeholder-class="place-class"
|
>
|
||||||
maxlength="200"
|
<u-textarea
|
||||||
class="border-color"
|
v-model="addressForm.newRecAddress"
|
||||||
:placeholder="'请输入详细地址'" />
|
placeholder-class="place-class"
|
||||||
|
maxlength="200"
|
||||||
|
class="border-color"
|
||||||
|
:placeholder="'请输入详细地址'"
|
||||||
|
/>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view class="lis_address"
|
<view class="lis_address" v-if="addressList.length > 0">
|
||||||
v-if="addressList.length>0">
|
<view class="lis_title">{{ '历史地址' }}</view>
|
||||||
<view class="lis_title">{{'历史地址'}}</view>
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<u-radio-group @change="groupChange"
|
<u-radio-group
|
||||||
placement="column"
|
@change="groupChange"
|
||||||
v-model="choiceValue"
|
placement="column"
|
||||||
iconPlacement="left">
|
v-model="choiceValue"
|
||||||
<div v-for="(item, index) in addressList"
|
iconPlacement="left"
|
||||||
:key="index"
|
>
|
||||||
class="custom-radio-label">
|
<div
|
||||||
<u-radio :name="item.pkId"
|
v-for="(item, index) in addressList"
|
||||||
activeColor="#005BAC"></u-radio>
|
:key="index"
|
||||||
|
class="custom-radio-label"
|
||||||
|
>
|
||||||
|
<u-radio :name="item.pkId" activeColor="#005BAC"></u-radio>
|
||||||
<div class="custom-label-content">
|
<div class="custom-label-content">
|
||||||
<view class="label_name">{{ item.recName }}</view>
|
<view class="label_name">{{ item.recName }}</view>
|
||||||
<view class="label_phone">{{ item.recPhone }}</view>
|
<view class="label_phone">{{ item.recPhone }}</view>
|
||||||
<view class="label_address">{{ item.recArea }}</view>
|
<view class="label_address">{{ item.recArea }}</view>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'邮费扣除'"
|
<u-form-item
|
||||||
label-width="150rpx"
|
:label="'邮费扣除'"
|
||||||
prop="newPostage">
|
label-width="150rpx"
|
||||||
<u--input v-model="addressForm.newPostage"
|
prop="newPostage"
|
||||||
disabled
|
>
|
||||||
disabledColor="#ffffff"
|
<u--input
|
||||||
placeholder=""
|
v-model="addressForm.newPostage"
|
||||||
border="none"></u--input>
|
disabled
|
||||||
|
disabledColor="#ffffff"
|
||||||
|
placeholder=""
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
<view class="view-class">
|
<view class="view-class">
|
||||||
<u-form-item :label="'备注'"
|
<u-form-item :label="'备注'" label-width="150rpx" prop="selfRemark">
|
||||||
label-width="150rpx"
|
<u-input
|
||||||
prop="selfRemark">
|
v-model="addressForm.selfRemark"
|
||||||
<u-input v-model="addressForm.selfRemark"
|
placeholder-class="place-class"
|
||||||
placeholder-class="place-class"
|
class="border-color"
|
||||||
class="border-color"
|
:placeholder="'请输入'"
|
||||||
:placeholder="'请输入'" />
|
/>
|
||||||
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</u-form>
|
</u-form>
|
||||||
</view>
|
</view>
|
||||||
<v-address ref="address"
|
<v-address
|
||||||
@getAddressData="AddressData"
|
ref="address"
|
||||||
:defaultCode="defaultCode"
|
@getAddressData="AddressData"
|
||||||
@addressData="addressData"></v-address>
|
:defaultCode="defaultCode"
|
||||||
<u-button type="success"
|
@addressData="addressData"
|
||||||
shape="circle"
|
></v-address>
|
||||||
class="btn"
|
<u-button type="success" shape="circle" class="btn" @click="submit">{{
|
||||||
@click="submit">{{'确定'}}</u-button>
|
'确定'
|
||||||
<u-popup class="thePopup"
|
}}</u-button>
|
||||||
:show="successShow"
|
|
||||||
mode="center"
|
|
||||||
@close="successShow = false">
|
|
||||||
<view class="successPopup">
|
|
||||||
|
|
||||||
<view class="poupTop">
|
|
||||||
<view class="theiconbox">
|
|
||||||
<u-icon name="checkbox-mark"
|
|
||||||
color="#ffffff"
|
|
||||||
size="26"></u-icon>
|
|
||||||
</view>
|
|
||||||
<view class="theicontitle">
|
|
||||||
{{'提交成功'}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="poupContent">
|
|
||||||
{{'我们将在24小时内完成业务受理!具体进度将会以通知形式发送给您,请注意查收!'}}
|
|
||||||
<!-- <view>
|
|
||||||
{{'售后电话'}}:400-111-2818
|
|
||||||
</view> -->
|
|
||||||
</view>
|
|
||||||
<!-- <view class="poupContent">
|
|
||||||
{{'我们将在24小时内完成业务受理!具体进度将会以通知形式发送给您,请注意查收!'}}</br>
|
|
||||||
{{'售后电话'}}:400-111-2818
|
|
||||||
</view> -->
|
|
||||||
<view class="poupBtn"
|
|
||||||
@click="sureBtn">
|
|
||||||
{{'确定'}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</u-popup>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -261,7 +246,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
groupChange(value) {
|
groupChange(value) {
|
||||||
this.addressList.forEach((ele) => {
|
this.addressList.forEach(ele => {
|
||||||
if (value == ele.pkId) {
|
if (value == ele.pkId) {
|
||||||
this.$set(this.addressForm, 'newRecName', ele.recName)
|
this.$set(this.addressForm, 'newRecName', ele.recName)
|
||||||
this.$set(this.addressForm, 'newRecPhone', ele.recPhone)
|
this.$set(this.addressForm, 'newRecPhone', ele.recPhone)
|
||||||
|
@ -290,13 +275,13 @@ export default {
|
||||||
tranType: this.addressForm.tranType,
|
tranType: this.addressForm.tranType,
|
||||||
orderItemsParams: this.addressForm.orderItemsParams,
|
orderItemsParams: this.addressForm.orderItemsParams,
|
||||||
}
|
}
|
||||||
sel.queryAdressPostage(postageData).then((res) => {
|
sel.queryAdressPostage(postageData).then(res => {
|
||||||
this.$set(this.addressForm, 'newPostage', res.data.postage)
|
this.$set(this.addressForm, 'newPostage', res.data.postage)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getAddressList() {
|
getAddressList() {
|
||||||
sel.addressList({}).then((res) => {
|
sel.addressList({}).then(res => {
|
||||||
this.addressList = res.data
|
this.addressList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -304,17 +289,20 @@ export default {
|
||||||
this.address = name
|
this.address = name
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$refs.uForm.validate().then((res) => {
|
this.$refs.uForm.validate().then(res => {
|
||||||
sel.saveSelfAddress(this.addressForm).then((res) => {
|
sel.saveSelfAddress(this.addressForm).then(res => {
|
||||||
if (res.code == '200') {
|
if (res.code == '200') {
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: res.msg,
|
title: '修改成功',
|
||||||
// icon: 'none',
|
icon: 'none',
|
||||||
// success() {
|
success() {
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 600)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
// }
|
// this.successShow = true
|
||||||
// })
|
|
||||||
this.successShow = true
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -438,7 +426,7 @@ export default {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #005BAC;
|
color: #005bac;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,7 +470,7 @@ page {
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background-color: #005BAC;
|
background-color: #005bac;
|
||||||
border: none;
|
border: none;
|
||||||
height: 92rpx;
|
height: 92rpx;
|
||||||
line-height: 92rpx;
|
line-height: 92rpx;
|
||||||
|
@ -528,7 +516,7 @@ page {
|
||||||
}
|
}
|
||||||
|
|
||||||
.poupBtn {
|
.poupBtn {
|
||||||
background: #005BAC;
|
background: #005bac;
|
||||||
border-radius: 39rpx;
|
border-radius: 39rpx;
|
||||||
padding: 26rpx 0;
|
padding: 26rpx 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -543,4 +531,4 @@ page {
|
||||||
::v-deep .thePopup .u-popup__content {
|
::v-deep .thePopup .u-popup__content {
|
||||||
background-color: rgba(0, 0, 0, 0);
|
background-color: rgba(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,360 +1,369 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="con_top">
|
<view class="con_top">
|
||||||
<view class="seach">
|
<view class="seach">
|
||||||
<view class="seach_i">
|
<view class="seach_i">
|
||||||
<u--input prefixIcon="search" v-model="queryParams.orderCode"
|
<u--input
|
||||||
prefixIconStyle="font-size: 22px;color: #909399;height:32px" border="none" placeholder="请输入订单编号"
|
prefixIcon="search"
|
||||||
suffixIconStyle="color: #909399"></u--input>
|
v-model="queryParams.orderCode"
|
||||||
</view>
|
prefixIconStyle="font-size: 22px;color: #909399;height:32px"
|
||||||
<view class="seatch_r" @click="getDataList">
|
border="none"
|
||||||
<u-icon name="search" size="22" color="#fff"></u-icon>
|
placeholder="请输入订单编号"
|
||||||
</view>
|
suffixIconStyle="color: #909399"
|
||||||
</view>
|
></u--input>
|
||||||
</view>
|
</view>
|
||||||
<template v-if="orderLists.length>0">
|
<view class="seatch_r" @click="getDataList">
|
||||||
<view class="theListbox">
|
<u-icon name="search" size="22" color="#fff"></u-icon>
|
||||||
<view v-for="(item, index) in orderLists" class="orderList_i">
|
</view>
|
||||||
<view class="list_flex">
|
</view>
|
||||||
<view class="top_flex">
|
</view>
|
||||||
<view class="zc_btn">{{item.orderTypeVal}}</view>
|
<template v-if="orderLists.length > 0">
|
||||||
<view class="code_text">{{'订单编号'}}:{{item.orderCode}}</view>
|
<view class="theListbox">
|
||||||
</view>
|
<view v-for="(item, index) in orderLists" class="orderList_i">
|
||||||
<view class="top_status">
|
<view class="list_flex">
|
||||||
{{item.orderStatusVal}}
|
<view class="top_flex">
|
||||||
</view>
|
<view class="zc_btn">{{ item.orderTypeVal }}</view>
|
||||||
</view>
|
<view class="code_text"
|
||||||
<view class="list_flex">
|
>{{ '订单编号' }}:{{ item.orderCode }}</view
|
||||||
<view class="center_price">¥{{item.orderAmount}}</view>
|
>
|
||||||
</view>
|
</view>
|
||||||
<view class="list_flex" style="margin-top: 10rpx;">
|
<view class="top_status">
|
||||||
<view class="top_flex">
|
{{ item.orderStatusVal }}
|
||||||
<view class="code_text">{{'审核状态'}}:{{item.approveStatusVal}}</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="item.approveStatus==3" class="top_status" @click="findWhy(item)">
|
<view class="list_flex">
|
||||||
{{'驳回原因'}}
|
<view class="center_price">¥{{ item.orderAmount }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<!-- <view class="list_flex" style="margin-top: 10rpx">
|
||||||
<view class="btm_time">
|
<view class="top_flex">
|
||||||
{{'创建时间'}}:{{item.creationTime}}
|
<view class="code_text"
|
||||||
</view>
|
>{{ '审核状态' }}:{{ item.approveStatusVal }}</view
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
v-if="item.approveStatus == 3"
|
||||||
|
class="top_status"
|
||||||
|
@click="findWhy(item)"
|
||||||
|
>
|
||||||
|
{{ '驳回原因' }}
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="btm_time">
|
||||||
|
{{ '创建时间' }}:{{ item.creationTime }}
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="list_btn">
|
<view class="list_btn">
|
||||||
<view class="sub_btn" @click="updateAdress(item)">
|
<view class="sub_btn" @click="updateAdress(item)">
|
||||||
{{'修改地址'}}
|
{{ '修改地址' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class='line_title'>变更后省/州:{{item.recProvinceVal}}</view>
|
<!-- <view class='line_title'>变更后省/州:{{item.recProvinceVal}}</view>
|
||||||
<view class='line_title'>变更后市:{{item.recCityVal}}</view>
|
<view class='line_title'>变更后市:{{item.recCityVal}}</view>
|
||||||
<view class='line_title'>变更后区/县:{{item.recCountyVal}}</view>
|
<view class='line_title'>变更后区/县:{{item.recCountyVal}}</view>
|
||||||
<view class='line_title'>变更后详细地址:{{item.recAddress}}</view>
|
<view class='line_title'>变更后详细地址:{{item.recAddress}}</view>
|
||||||
<view class='line_title'>申请时间:{{item.creationTime}}</view>
|
<view class='line_title'>申请时间:{{item.creationTime}}</view>
|
||||||
<view class='line_title'>备注:{{item.remark}}</view> -->
|
<view class='line_title'>备注:{{item.remark}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<view class="theListbox" style="background-color: #f2f2f2;">
|
<view class="theListbox" style="background-color: #f2f2f2">
|
||||||
<u-empty mode="list">
|
<u-empty mode="list"> </u-empty>
|
||||||
</u-empty>
|
</view>
|
||||||
</view>
|
</template>
|
||||||
</template>
|
<u-popup
|
||||||
<u-popup :show="rejectShow" closeable mode="center" round='10' @close="rejectShow=false">\
|
:show="rejectShow"
|
||||||
<view class="popview">
|
closeable
|
||||||
<view class="email_neir " @click="clickhtml(rejectContent)" v-html="rejectContent">
|
mode="center"
|
||||||
|
round="10"
|
||||||
</view>
|
@close="rejectShow = false"
|
||||||
</view>
|
>\
|
||||||
|
<view class="popview">
|
||||||
</u-popup>
|
<view
|
||||||
</view>
|
class="email_neir"
|
||||||
|
@click="clickhtml(rejectContent)"
|
||||||
|
v-html="rejectContent"
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as sel from '@/config/selfService.js'
|
import * as sel from '@/config/selfService.js'
|
||||||
import {
|
import { formatMsToDate } from '@/util/index'
|
||||||
formatMsToDate
|
export default {
|
||||||
} from '@/util/index'
|
data() {
|
||||||
export default {
|
return {
|
||||||
data() {
|
dataShow: false,
|
||||||
return {
|
value1: '',
|
||||||
dataShow: false,
|
|
||||||
value1: '',
|
|
||||||
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
orderCode: "",
|
orderCode: '',
|
||||||
},
|
},
|
||||||
orderLists: [],
|
orderLists: [],
|
||||||
timeIndex: 0,
|
timeIndex: 0,
|
||||||
rejectShow: false,
|
rejectShow: false,
|
||||||
rejectContent: ""
|
rejectContent: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {},
|
||||||
|
onLoad() {
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
onShow() {},
|
||||||
|
methods: {
|
||||||
|
findWhy(item) {
|
||||||
|
this.rejectContent = item.rejectMsg
|
||||||
|
this.rejectShow = true
|
||||||
|
},
|
||||||
|
clickhtml(content) {
|
||||||
|
this.rejectShow = false
|
||||||
|
// 在组件挂载后,调用handleImageClick方法预览第一张图片
|
||||||
|
const parser = new DOMParser()
|
||||||
|
const doc = parser.parseFromString(content, 'text/html')
|
||||||
|
const imgElements = doc.getElementsByTagName('img')
|
||||||
|
if (imgElements.length > 0) {
|
||||||
|
const firstImageUrl = imgElements[0].src
|
||||||
|
this.handleImageClick(firstImageUrl, content)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleImageClick(url, content) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: this.getUrls(content),
|
||||||
|
current: url,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getUrls(content) {
|
||||||
|
const parser = new DOMParser()
|
||||||
|
const doc = parser.parseFromString(content, 'text/html')
|
||||||
|
const imgElements = doc.getElementsByTagName('img')
|
||||||
|
const urls = []
|
||||||
|
for (let i = 0; i < imgElements.length; i++) {
|
||||||
|
urls.push(imgElements[i].src)
|
||||||
|
}
|
||||||
|
return urls
|
||||||
|
},
|
||||||
|
getDataList() {
|
||||||
|
sel.getOderSelfList(this.queryParams).then(res => {
|
||||||
|
this.orderLists = res.rows
|
||||||
|
})
|
||||||
|
},
|
||||||
|
updateAdress(item) {
|
||||||
|
let params = item
|
||||||
|
console.log(
|
||||||
|
'%c [ params ]-144',
|
||||||
|
'font-size:13px; background:#f37aa1; color:#ffbee5;',
|
||||||
|
params
|
||||||
|
)
|
||||||
|
// let queryString = Object.keys(params).map(key =>
|
||||||
|
// `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join('&')
|
||||||
|
// let paramsString = encodeURIComponent(JSON.stringify(params))
|
||||||
|
|
||||||
},
|
uni.navigateTo({
|
||||||
onLoad() {
|
url:
|
||||||
this.getDataList()
|
'/pages/selfService/updateAdress/addAdress?obj=' +
|
||||||
},
|
JSON.stringify(params),
|
||||||
onShow() {},
|
})
|
||||||
methods: {
|
},
|
||||||
findWhy(item) {
|
},
|
||||||
this.rejectContent = item.rejectMsg
|
}
|
||||||
this.rejectShow = true
|
|
||||||
},
|
|
||||||
clickhtml(content) {
|
|
||||||
this.rejectShow = false
|
|
||||||
// 在组件挂载后,调用handleImageClick方法预览第一张图片
|
|
||||||
const parser = new DOMParser();
|
|
||||||
const doc = parser.parseFromString(content, "text/html");
|
|
||||||
const imgElements = doc.getElementsByTagName("img");
|
|
||||||
if (imgElements.length > 0) {
|
|
||||||
const firstImageUrl = imgElements[0].src;
|
|
||||||
this.handleImageClick(firstImageUrl, content);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleImageClick(url, content) {
|
|
||||||
uni.previewImage({
|
|
||||||
urls: this.getUrls(content),
|
|
||||||
current: url
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getUrls(content) {
|
|
||||||
const parser = new DOMParser();
|
|
||||||
const doc = parser.parseFromString(content, "text/html");
|
|
||||||
const imgElements = doc.getElementsByTagName("img");
|
|
||||||
const urls = [];
|
|
||||||
for (let i = 0; i < imgElements.length; i++) {
|
|
||||||
urls.push(imgElements[i].src);
|
|
||||||
}
|
|
||||||
return urls;
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
sel
|
|
||||||
.getOderSelfList(this.queryParams)
|
|
||||||
.then((res) => {
|
|
||||||
this.orderLists = res.rows
|
|
||||||
})
|
|
||||||
},
|
|
||||||
updateAdress(item) {
|
|
||||||
let params = item
|
|
||||||
console.log('%c [ params ]-144', 'font-size:13px; background:#f37aa1; color:#ffbee5;', params)
|
|
||||||
// let queryString = Object.keys(params).map(key =>
|
|
||||||
// `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join('&')
|
|
||||||
// let paramsString = encodeURIComponent(JSON.stringify(params))
|
|
||||||
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/selfService/updateAdress/addAdress?obj=' + JSON.stringify(params),
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
::v-deep img {
|
||||||
::v-deep img {
|
max-width: 100%;
|
||||||
max-width: 100%;
|
height: auto;
|
||||||
height: auto;
|
}
|
||||||
}
|
.popview {
|
||||||
.popview {
|
padding: 24rpx;
|
||||||
padding: 24rpx;
|
width: 620rpx;
|
||||||
width: 620rpx;
|
.email_neir {
|
||||||
.email_neir {
|
font-size: 24rpx;
|
||||||
font-size: 24rpx;
|
font-family: Source Han Sans CN;
|
||||||
font-family: Source Han Sans CN;
|
font-weight: 400;
|
||||||
font-weight: 400;
|
color: #666666;
|
||||||
color: #666666;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
.con_top {
|
||||||
|
position: fixed;
|
||||||
|
background: #fff;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.seach {
|
||||||
|
background: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
border-bottom: 2rpx solid #eee;
|
||||||
|
|
||||||
.con_top {
|
.seach_i {
|
||||||
position: fixed;
|
padding: 0 20rpx;
|
||||||
background: #fff;
|
border-radius: 34rpx;
|
||||||
width: 100%;
|
background: #fff;
|
||||||
z-index: 10;
|
flex: 1;
|
||||||
}
|
background: #f5f6f8;
|
||||||
|
// margin-right: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.seach {
|
.seatch_r {
|
||||||
background: #fff;
|
background: #005bac;
|
||||||
overflow: hidden;
|
border-radius: 50%;
|
||||||
height: 100rpx;
|
padding: 8rpx;
|
||||||
padding: 0 20rpx;
|
margin-left: 24rpx;
|
||||||
display: flex;
|
}
|
||||||
justify-content: space-between;
|
}
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
border-bottom: 2rpx solid #eee;
|
|
||||||
|
|
||||||
.seach_i {
|
.theListbox {
|
||||||
padding: 0 20rpx;
|
padding-top: 90rpx;
|
||||||
border-radius: 34rpx;
|
|
||||||
background: #fff;
|
|
||||||
flex: 1;
|
|
||||||
background: #f5f6f8;
|
|
||||||
// margin-right: 40rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.seatch_r {
|
.orderList_i {
|
||||||
background: #005BAC;
|
background-color: #ffffff;
|
||||||
border-radius: 50%;
|
padding: 22rpx;
|
||||||
padding: 8rpx;
|
margin-top: 22rpx;
|
||||||
margin-left: 24rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.theListbox {
|
.list_flex {
|
||||||
padding-top: 90rpx;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.top_flex {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.orderList_i {
|
.zc_btn {
|
||||||
background-color: #FFFFFF;
|
display: flex;
|
||||||
padding: 22rpx;
|
align-items: center;
|
||||||
margin-top: 22rpx;
|
justify-content: center;
|
||||||
|
background: #3d3d3d;
|
||||||
|
color: #ffffff;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
padding: 7rpx 23rpx;
|
||||||
|
margin-right: 8rpx;
|
||||||
|
font-size: 20rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
.list_flex {
|
.code_text {
|
||||||
display: flex;
|
font-size: 24rpx;
|
||||||
align-items: center;
|
font-family: Source Han Sans CN;
|
||||||
justify-content: space-between;
|
font-weight: 400;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.top_flex {
|
.top_status {
|
||||||
display: flex;
|
font-size: 24rpx;
|
||||||
align-items: center;
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #69a35b;
|
||||||
|
}
|
||||||
|
|
||||||
.zc_btn {
|
.center_left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
background: #3D3D3D;
|
|
||||||
color: #FFFFFF;
|
|
||||||
border-radius: 30rpx;
|
|
||||||
padding: 7rpx 23rpx;
|
|
||||||
margin-right: 8rpx;
|
|
||||||
font-size: 20rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.code_text {
|
.center_img {
|
||||||
font-size: 24rpx;
|
width: 124rpx;
|
||||||
font-family: Source Han Sans CN;
|
height: 124rpx;
|
||||||
font-weight: 400;
|
border-radius: 15rpx;
|
||||||
color: #999999;
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.top_status {
|
.center_title {
|
||||||
font-size: 24rpx;
|
font-size: 28rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #69A35B;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.center_left {
|
.center_right {
|
||||||
display: flex;
|
.center_price {
|
||||||
align-items: center;
|
font-size: 32rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #f82c1a;
|
||||||
|
}
|
||||||
|
|
||||||
.center_img {
|
.center_num {
|
||||||
width: 124rpx;
|
text-align: right;
|
||||||
height: 124rpx;
|
font-size: 22rpx;
|
||||||
border-radius: 15rpx;
|
font-family: Source Han Sans CN;
|
||||||
margin-right: 20rpx;
|
font-weight: 400;
|
||||||
}
|
color: #666666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.center_title {
|
.center_price {
|
||||||
font-size: 28rpx;
|
font-size: 32rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
font-weight: 400;
|
font-weight: bold;
|
||||||
color: #333333;
|
color: #f82c1a;
|
||||||
}
|
margin-top: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center_right {
|
.btm_time {
|
||||||
.center_price {
|
padding: 20rpx 0;
|
||||||
font-size: 32rpx;
|
font-size: 24rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
font-weight: bold;
|
font-weight: 400;
|
||||||
color: #f82c1a;
|
color: #999999;
|
||||||
}
|
border-bottom: 1rpx solid #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
.center_num {
|
.list_btn {
|
||||||
text-align: right;
|
margin-top: 20rpx;
|
||||||
font-size: 22rpx;
|
display: flex;
|
||||||
font-family: Source Han Sans CN;
|
justify-content: flex-end;
|
||||||
font-weight: 400;
|
align-items: center;
|
||||||
color: #666666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
.sub_btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
background: #005bac;
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 15rpx 28rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list_top {
|
||||||
|
// background-color: pink;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
border-bottom: 2rpx solid #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line_title {
|
||||||
.center_price {
|
font-size: 24rpx;
|
||||||
font-size: 32rpx;
|
font-family: Source Han Sans CN;
|
||||||
font-family: Source Han Sans CN;
|
font-weight: 400;
|
||||||
font-weight: bold;
|
color: #999999;
|
||||||
color: #f82c1a;
|
margin: 18rpx 0;
|
||||||
margin-top: 20rpx;
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.btm_time {
|
</style>
|
||||||
padding: 20rpx 0;
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #999999;
|
|
||||||
border-bottom: 1rpx solid #EEEEEE;
|
|
||||||
}
|
|
||||||
|
|
||||||
.list_btn {
|
|
||||||
margin-top: 20rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
.sub_btn {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
border-radius: 30rpx;
|
|
||||||
background: #005BAC;
|
|
||||||
color: #ffffff;
|
|
||||||
padding: 15rpx 28rpx;
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.list_top {
|
|
||||||
// background-color: pink;
|
|
||||||
padding: 30rpx 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #333333;
|
|
||||||
border-bottom: 2rpx solid #eeeeee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.line_title {
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-family: Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #999999;
|
|
||||||
margin: 18rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue