Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
msjf-customized
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
msjf-customized
Commits
90ad1082
提交
90ad1082
authored
9月 08, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传代码
上级
67445e8c
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
91 行增加
和
39 行删除
+91
-39
my.vue
src/pages/customized/my.vue
+11
-8
preview.vue
src/pages/customized/preview.vue
+1
-1
queryRecord.vue
src/pages/customized/queryRecord.vue
+76
-30
api.ts
src/services/api.ts
+3
-0
没有找到文件。
src/pages/customized/my.vue
浏览文件 @
90ad1082
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<view
class=
"detail"
>
<view
class=
"detail"
>
<view>
中国茅台镇
</view>
<view>
中国茅台镇
</view>
<view>
高端定制酱酒首选品牌
</view>
<view>
高端定制酱酒首选品牌
</view>
<view
>
Maotai Town,
China The preferred brand
</view>
<view
class=
"smallsize-font"
>
Maotai Town,
China The preferred brand
</view>
<view
class=
"
english
"
>
of high-end customized sauce wine
</view>
<view
class=
"
smallsize-font
"
>
of high-end customized sauce wine
</view>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"top"
>
<view
class=
"top"
>
...
@@ -152,17 +152,20 @@ initHavePage();
...
@@ -152,17 +152,20 @@ initHavePage();
font-weight
:
600
;
font-weight
:
600
;
&
:nth-child
(
3
)
{
&
:nth-child
(
3
)
{
font-size
:
15rpx
;
width
:
460rpx
;
margin-top
:
20rpx
;
margin-top
:
20rpx
;
font-weight
:
normal
;
text-align
:
right
;
margin-left
:
28%
;
}
&
:nth-child
(
4
)
{
margin-left
:
24%
;
}
}
}
}
.english
{
.smallsize-font
{
font-size
:
15rpx
;
font-size
:
12px
;
width
:
426rpx
;
font-weight
:
normal
;
font-weight
:
normal
;
-webkit-transform-origin-x
:
0
;
-webkit-transform
:
scale
(
0
.55
);
}
}
}
}
...
...
src/pages/customized/preview.vue
浏览文件 @
90ad1082
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<view
class=
"pre-container"
>
<view
class=
"pre-container"
>
<view
class=
"pre-image"
v-for=
"(item, i) in pageData"
:key=
"i"
>
<view
class=
"pre-image"
v-for=
"(item, i) in pageData"
:key=
"i"
>
<image
v-if=
"item.type == 'image/jpeg'"
:src=
"baseURL + item.pageComponent"
mode=
"widthFix"
style=
"width: 100%;"
></image>
<image
v-if=
"item.type == 'image/jpeg'"
:src=
"baseURL + item.pageComponent"
mode=
"widthFix"
style=
"width: 100%;"
></image>
<video
v-else
:src=
"baseURL + item.pageComponent"
class=
"pre-video"
/>
</view>
</view>
<view
class=
"pre-video"
v-for=
"(item, i) in pageData"
:key=
"i"
><video
v-if=
"item.type != 'image/jpeg'"
:src=
"baseURL + item.pageComponent"
/></view>
</view>
</view>
</
template
>
</
template
>
...
...
src/pages/customized/queryRecord.vue
浏览文件 @
90ad1082
...
@@ -4,22 +4,25 @@
...
@@ -4,22 +4,25 @@
<headerVue
:color1=
"color"
></headerVue>
<headerVue
:color1=
"color"
></headerVue>
<view
class=
"query-content"
>
<view
class=
"query-content"
>
<view
class=
"query-record"
>
<view
class=
"query-record"
>
<view
class=
"content"
><uni-search-bar
cancelButton=
"always"
v-model=
"searchValue"
placeholder=
"SN"
/></view>
<view
class=
"content"
><uni-search-bar
cancelButton=
"always"
v-model=
"searchValue"
placeholder=
"SN"
@
confirm=
"confirm"
/></view>
</view>
</view>
<view
class=
"query-list"
>
<view
v-for=
"(item, i) in queryRecord"
:key=
"i"
>
<image
src=
"/static/msjf-picture/msjf-17.jpg"
mode=
"heightFix"
/>
<view
class=
"query-list"
>
<view
class=
"record"
>
<image
:src=
"baseURL + item.goodsPicUrl"
mode=
"scaleToFill"
/>
<text
class=
"record-text"
>
轻奢纯棉刺绣水洗四件套
</text>
<view
class=
"record"
>
<view
class=
"record-center"
>
<text
class=
"record-text"
>
{{
item
.
goodsName
}}
</text>
<uni-tag
text=
"已开瓶"
type=
"primary"
:circle=
"true"
size=
"mini"
></uni-tag>
<view
class=
"record-center"
>
<!--
<uni-tag
text=
"未开瓶"
:circle=
"true"
size=
"mini"
></uni-tag>
-->
<text
v-show=
"'phoneAndTime' in queryRecord[i]"
>
扫码手机:
{{
'phoneAndTime'
in
queryRecord
[
i
]
?
item
.
phoneAndTime
[
0
].
phone
:
''
}}
</text>
<text
style=
"margin-left: 20rpx;"
>
17300762589
</text>
</view>
</view>
<view
class=
"record-footer"
>
<view
class=
"record-footer"
>
<text
class=
"price"
>
¥
{{
item
.
goodsPrice
}}
</text>
<text
class=
"price"
>
¥178.0
</text>
<text
style=
"color: #ccc; margin-top: 3%;"
>
{{
item
.
sameDay
}}
</text>
<text
style=
"color: #ccc;"
>
订单编号
</text>
<text
v-if=
"item.used"
style=
"color: #ccc; margin-top: 3%;"
>
{{
item
.
strength
}}
人
</text>
</view>
</view>
</view>
<view
:class=
"item.used ? 'tag' : 'info-tag'"
>
{{
item
.
used
?
'已开瓶'
:
'未开瓶'
}}
</view>
</view>
</view>
<text
style=
"font-size: 26rpx; color: #313131; margin: 20rpx 60rpx"
>
订单编号:
{{
item
.
orderSn
}}
</text>
</view>
</view>
</view>
</view>
<!--
<view
class=
"footer"
>
<!--
<view
class=
"footer"
>
...
@@ -38,8 +41,16 @@
...
@@ -38,8 +41,16 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
headerVue
from
'@/pages/header/index.vue'
;
import
headerVue
from
'@/pages/header/index.vue'
;
import
{
searchSnInfo
}
from
'@/services/api'
;
import
{
baseURL
}
from
'@/services/request'
;
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
let
color
=
ref
(
'#a27443'
);
let
color
=
ref
(
'#a27443'
);
let
used
=
ref
(
false
);
let
queryRecord
=
ref
();
let
queryPwd
=
()
=>
{
let
queryPwd
=
()
=>
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'./queryPwd'
url
:
'./queryPwd'
...
@@ -51,6 +62,17 @@ let importExcel = () => {
...
@@ -51,6 +62,17 @@ let importExcel = () => {
url
:
'./importExcel'
url
:
'./importExcel'
});
});
};
};
let
confirm
=
async
(
data
:
any
)
=>
{
// MSJF-0000001
if
(
data
.
value
)
{
let
res
:
any
=
await
searchSnInfo
({
code
:
data
.
value
});
if
(
res
.
data
.
errno
==
0
)
{
queryRecord
.
value
=
res
.
data
.
data
;
console
.
log
(
queryRecord
.
value
);
}
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -76,49 +98,73 @@ page {
...
@@ -76,49 +98,73 @@ page {
}
}
.query-list
{
.query-list
{
margin
:
10rpx
0
;
margin
-top
:
20rpx
;
padding
:
10rpx
50rpx
10rpx
30rpx
;
padding
:
10rpx
30rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
10rpx
;
border-radius
:
10rpx
;
width
:
100%
;
width
:
100%
;
height
:
200rpx
;
height
:
200rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
display
:
flex
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
space-between
;
align-items
:
center
;
image
{
image
{
height
:
100%
;
width
:
160rpx
;
margin-right
:
50rpx
;
height
:
160rpx
;
border-radius
:
10px
;
}
}
.record
{
.record
{
box-sizing
:
border-box
;
height
:
100%
;
padding
:
9px
0
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
flex-start
;
align-content
:
space-between
;
font-size
:
12px
;
font-size
:
12px
;
.record-text
{
.record-text
{
font-size
:
1
6
px
;
font-size
:
1
5
px
;
font-weight
:
5
00
;
font-weight
:
6
00
;
// margin-bottom: 20rpx;
// margin-bottom: 20rpx;
}
}
.record-center
{
.record-center
{
display
:
flex
;
height
:
20%
;
justify-content
:
space-between
;
margin
:
5%
0
6%
0
;
.uni-tag--circle
{
width
:
100rpx
;
text-align
:
center
;
}
}
}
.record-footer
{
.record-footer
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.price
{
.price
{
color
:
red
;
color
:
red
;
font-size
:
1
8
px
;
font-size
:
1
6
px
;
}
}
}
}
}
}
.tag
{
align-self
:
flex-end
;
font-size
:
14px
;
color
:
#fff
;
width
:
120rpx
;
height
:
50rpx
;
background-color
:
#172372
;
text-align
:
center
;
line-height
:
50rpx
;
border-radius
:
20rpx
;
margin-bottom
:
16rpx
;
}
.info-tag
{
align-self
:
flex-end
;
font-size
:
14px
;
color
:
#fff
;
width
:
120rpx
;
height
:
50rpx
;
text-align
:
center
;
line-height
:
50rpx
;
border-radius
:
20rpx
;
margin-bottom
:
16rpx
;
background-color
:
#7e7e7e
;
}
}
}
}
}
...
...
src/services/api.ts
浏览文件 @
90ad1082
...
@@ -20,3 +20,6 @@ export let getPageComponent = (pageId: number) => request('/wx/customPage/getPag
...
@@ -20,3 +20,6 @@ export let getPageComponent = (pageId: number) => request('/wx/customPage/getPag
// 删除模板
// 删除模板
export
let
deletePageComponent
=
(
id
:
number
)
=>
request
(
'/wx/customPage/delete'
,
'POST'
,
id
);
export
let
deletePageComponent
=
(
id
:
number
)
=>
request
(
'/wx/customPage/delete'
,
'POST'
,
id
);
// 查询记录
export
let
searchSnInfo
=
(
sn
:
string
)
=>
request
(
'/wx/orderSequence/searchRecordInfo'
,
'GET'
,
sn
);
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论