Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
singleStore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Max
singleStore
Commits
2c92d046
Commit
2c92d046
authored
Oct 11, 2021
by
DESKTOP-RL2O6OD\没有姓名的打工人
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:安全溯源bug
parent
d1cd518f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
15 deletions
+38
-15
pages/order/order-detail.vue
pages/order/order-detail.vue
+24
-5
subPages/originSafe/components/preview_zz.vue
subPages/originSafe/components/preview_zz.vue
+5
-6
subPages/originSafe/index.vue
subPages/originSafe/index.vue
+9
-4
No files found.
pages/order/order-detail.vue
View file @
2c92d046
...
...
@@ -51,7 +51,7 @@
</view>
<view
class=
"mt-2 box"
v-if=
"order_detail.order.shipping_type === '1'"
>
<view
class=
"item font-32"
>
配送信息
</view>
<view
class=
"item font-32
mb-3
"
>
配送信息
</view>
<view
class=
"mt-3"
>
配送方式:商家配送
<text
class=
"primary ml-1"
@
click=
"makePhoneCall()"
>
联系商家
</text></view>
<view
class=
"item mt-3 w-100 flex j-start a-start"
>
<view
class=
"hd"
>
配送地址:
</view>
...
...
@@ -69,9 +69,9 @@
</view>
<view
class=
"mt-2 box"
v-else
>
<view
class=
"item font-32
"
>
配送
信息
</view>
<view
class=
"item font-32
mb-3"
>
自提
信息
</view>
<view>
配送方式: 买家自提
<text
class=
"primary ml-1"
@
click=
"makePhoneCall()"
>
联系商家
</text></view>
<view
class=
"item mt-
e
3 w-100 flex j-start a-start"
>
<view
class=
"item mt-3 w-100 flex j-start a-start"
>
<view
class=
"hd"
>
自提地址:
</view>
<view
class=
"flex-1"
>
<text
class=
"flex-1"
>
{{order_detail.order.pickup_address}}
</text>
...
...
@@ -96,8 +96,18 @@
<view
class=
"box mt-2"
>
<view
class=
"font-32 mb-3"
>
发票信息
</view>
<view>
发票:发票信息参数(文字/图片等)
<view
class=
"item mt-3 w-100 flex j-start a-start"
>
<view
class=
"hd"
>
发票:
</view>
<view
class=
"flex-1 flex flex-column"
>
<view
class=
"w-100 mb-2"
>
{{order_detail.order.invoice_link || '发票信息参数(文字/图片等)'}}
</view>
<image
class=
"w-100"
v-if=
"order_detail.order.invoice_img"
mode=
"widthFix"
@
click=
"perviewInvoice(order_detail.order.invoice_img)"
:src=
"order_detail.order.invoice_img"
/>
</view>
</view>
</view>
...
...
@@ -281,6 +291,15 @@ export default {
uni
.
navigateTo
({
url
:
`/subPages/address/changeAddress?params=
${
encodeURIComponent
(
JSON
.
stringify
(
params
))}
`
})
},
// 预览发票
perviewInvoice
(
link
)
{
if
(
!
link
)
return
uni
.
previewImage
({
current
:
link
,
// 当前显示图片的http链接
urls
:
[
link
]
// 需要预览的图片http链接列表
})
}
}
}
...
...
subPages/originSafe/components/preview_zz.vue
View file @
2c92d046
<
template
>
<view
class=
"box mb-2"
>
<view
class=
"h_title text-center"
>
供货商
资质证书
{{
name
}}
资质证书
</view>
<view
class=
"swiper-wrap"
>
<view
class=
"swiper-wrap"
v-if=
"list.length > 0"
>
<swiper
class=
"swiper-inner"
:current=
"img_current"
...
...
@@ -37,11 +37,11 @@
</
template
>
</view>
<view
class=
"w-100 flex j-between a-center mb-2"
v-if=
"originName"
>
<view
class=
"descColor"
>
供货商
单位
</view>
<view
class=
"descColor"
>
{{name}}
单位
</view>
<view>
{{originName}}
</view>
</view>
<view
class=
"w-100 flex j-between a-center"
v-if=
"originCode"
>
<view
class=
"descColor"
>
供货商
统一社会信用代码
</view>
<view
class=
"descColor"
>
{{name}}
统一社会信用代码
</view>
<view>
{{originCode}}
</view>
</view>
</view>
...
...
@@ -50,7 +50,6 @@
<
script
module=
"preUtil"
lang=
"wxs"
>
// 改变这个num的时候要注意下面pre方法的 2
function
dealArr
(
arr
,
num
)
{
console
.
log
(
arr
,
num
)
if
(
!
arr
||
arr
.
length
===
0
)
{
return
[]
}
else
{
...
...
@@ -94,7 +93,7 @@
data
()
{
return
{
img_current
:
0
,
list_len
:
Math
.
floor
(
this
.
list
.
length
/
2
)
list_len
:
Math
.
ceil
(
this
.
list
.
length
/
2
)
-
1
}
},
...
...
subPages/originSafe/index.vue
View file @
2c92d046
...
...
@@ -32,15 +32,15 @@
name=
"供货商"
:originName=
"detail.dynamic_data.sup_name"
:originCode=
"detail.dynamic_data.sup_unit_credit_code"
:list=
"detail.
dynamic_data.sup_zhizhao
"
:list=
"detail.
sup_imgs
"
/>
<preview-zz
v-if=
"detail.dynamic_data.jxs_zhizhao && detail.dynamic_data.jxs_zhizhao.length > 0"
name=
"经销商"
:originName=
"detail.dynamic_data.jxs_name"
:originCode=
"detail.dynamic_data.
sup
_unit_credit_code"
:list=
"detail.
dynamic_data.jxs_unit_credit_code
"
:originCode=
"detail.dynamic_data.
jxs
_unit_credit_code"
:list=
"detail.
jxs_imgs
"
/>
</view>
</
template
>
...
...
@@ -48,13 +48,14 @@
<
script
>
import
previewZz
from
'
./components/preview_zz.vue
'
import
{
safeOrigin
}
from
'
@/apis/order.js
'
import
dayjs
from
'
dayjs
'
export
default
{
data
()
{
return
{
detail
:
{}
}
},
components
:
{
previewZz
},
...
...
@@ -70,6 +71,10 @@
safeOrigin
(
this
.
og_id
)
.
then
(({
status
,
data
})
=>
{
if
(
status
)
{
data
.
base_data
.
production_data
=
data
.
base_data
.
production_data
?
dayjs
(
data
.
base_data
.
production_data
*
1000
).
format
(
'
YYYY-MM-DD
'
)
:
'
--
'
// 【营业执照,许可证,其他资质]
data
.
sup_imgs
=
[...
data
.
dynamic_data
.
sup_zhizhao
,
...
data
.
dynamic_data
.
sup_food_production_license
,
...
data
.
dynamic_data
.
sup_other_qualifications
]
data
.
jxs_imgs
=
[...
data
.
dynamic_data
.
jxs_zhizhao
,
...
data
.
dynamic_data
.
jxs_food_production_license
,
...
data
.
dynamic_data
.
jxs_other_qualifications
]
this
.
detail
=
data
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment