Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
4680ed98
提交
4680ed98
authored
11月 06, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
a35e615f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
65 行增加
和
25 行删除
+65
-25
drag-and-drop-sort.vue
src/pages/productLine/components/drag-and-drop-sort.vue
+8
-12
setTitle.vue
src/pages/productLine/components/setTitle.vue
+4
-4
productLine.vue
src/pages/productLine/productLine.vue
+10
-7
addSite.vue
src/pages/profile/addSite.vue
+38
-1
collection.vue
src/pages/profile/collection.vue
+5
-1
没有找到文件。
src/pages/productLine/components/drag-and-drop-sort.vue
浏览文件 @
4680ed98
...
...
@@ -149,18 +149,17 @@ export default {
that
.
controlsArray
[
s
].
show
=
false
;
}
that
.
controlsArray
[
index
].
show
=
true
;
// that.sheetShow = true;
that
.
sheetIndex
=
index
;
uni
.
showActionSheet
({
itemList
:
[
'修改规格'
,
'复制'
,
'删除'
],
success
:
function
(
res
)
{
that
.
sheetChange
(
res
.
tapIndex
);
console
.
log
(
'选中了第'
+
(
res
.
tapIndex
+
1
)
+
'个按钮'
);
},
fail
:
function
(
res
)
{
console
.
log
(
res
.
errMsg
);
},
});
// that.sheetShow = true;
},
// 点击选择操作
sheetChange
(
index
)
{
...
...
@@ -194,11 +193,6 @@ export default {
// 记录位置
this
.
recordPosition
=
{
x
:
pageX
,
y
:
pageY
};
// 判断当前移动的位置是否需要进行排序
// console.log(
// this.curretnControlsIndex,
// this.recordPosition
// );
if
(
this
.
controlsPositionArray
[
this
.
curretnControlsIndex
].
top
>=
this
.
recordInitControlsPoisitonList
[
this
.
recordInitControlsPoisitonList
.
length
-
1
]
...
...
@@ -304,9 +298,11 @@ $sheet-heigth: var(--window-bottom);
}
}
.action-sheet
{
position
:
fixed
;
bottom
:
100px
;
z-index
:
999
;
}
// .action-sheet {
// position: fixed;
// bottom: 50px;
// z-index: 99;
// overflow-y: scroll;
// -webkit-overflow-scrolling: touch;
// }
</
style
>
src/pages/productLine/components/setTitle.vue
浏览文件 @
4680ed98
<
template
>
<u-popup
v-model=
"showTitle"
mode=
"center"
height=
"
22%
"
width=
"80%"
>
<view
style=
"padding: 30rpx
; height: 100%; margin-top:
0%;"
>
<u-popup
v-model=
"showTitle"
mode=
"center"
height=
"
380rpx
"
width=
"80%"
>
<view
style=
"padding: 30rpx
30rpx 0 30rpx; height: 10
0%;"
>
<view
style=
"font-size: 34rpx; width: 100%; text-align: center; margin-bottom: 20rpx;"
>
设置产品线名称
</view>
...
...
@@ -15,7 +15,7 @@
/>
</u-form-item>
</u-form>
<u-button
:maxlength=
"11"
type=
"error"
style=
"margin-top:
8%
;"
@
tap=
"saveTitle"
>
<u-button
:maxlength=
"11"
type=
"error"
style=
"margin-top:
40rpx
;"
@
tap=
"saveTitle"
>
保存
</u-button>
</view>
...
...
@@ -51,7 +51,7 @@ let saveTitle = () => {
defineExpose
({
showTitle
,
title
title
,
});
</
script
>
...
...
src/pages/productLine/productLine.vue
浏览文件 @
4680ed98
...
...
@@ -13,7 +13,7 @@
</u-navbar>
<view
class=
"u-wrap"
>
<view
class=
"u-menu-wrap"
>
<view
style=
"position: fixed; left: 8rpx; top:
5
%;"
>
<view
style=
"position: fixed; left: 8rpx; top:
6
%;"
>
<drag-and-drop-sort
ref=
"dragRef"
style=
"display: flex; justify-content: center;"
...
...
@@ -28,8 +28,8 @@
v-if=
"lineList[scope.index]?.status === 1"
:title=
"scope.row.name"
:right=
"false"
:show-line=
"scope.row.show"
:line-color=
"scope.row.show ? '#0000f0' : ''"
:show-line=
"scope.row
?
.show"
:line-color=
"scope.row
?
.show ? '#0000f0' : ''"
style=
"margin-left: 20rpx;"
></u-section>
<view
v-else
class=
"add"
>
...
...
@@ -441,7 +441,7 @@ $nav-heigth: var(--window-bottom);
margin-top
:
20rpx
;
}
.left-cates
{
width
:
36
0
rpx
;
width
:
36
8
rpx
;
}
.right-cates
{
flex
:
1
;
...
...
@@ -473,8 +473,11 @@ $nav-heigth: var(--window-bottom);
}
.goods-nav
{
width
:
100%
;
position
:
fixed
;
bottom
:
$nav-heigth
;
z-index
:
0
;
// position: fixed;
// bottom: $nav-heigth;
position
:
absolute
;
bottom
:
0
;
overflow-y
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
}
</
style
>
src/pages/profile/addSite.vue
浏览文件 @
4680ed98
...
...
@@ -3,11 +3,23 @@
<view
class=
"top"
>
<view
class=
"item"
>
<view
class=
"left"
>
收货人
</view>
<u-select
v-model=
"showSelect"
:list=
"selectList"
@
confirm=
"onConfirm"
></u-select>
<input
type=
"text"
v-model=
"addressData.name"
placeholder-class=
"line"
placeholder=
"请填写收货人姓名"
@
blur=
"onblur"
@
focus=
"onfocus"
/>
</view>
<view
class=
"item"
>
<view
class=
"left"
>
联系人
</view>
<input
type=
"text"
v-model=
"addressData.contactName"
placeholder-class=
"line"
placeholder=
"请填写收货人姓名"
/>
</view>
<view
class=
"item"
>
...
...
@@ -72,11 +84,13 @@
import
{
ref
,
computed
}
from
'vue'
;
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
{
deleteAddress
,
saveAddress
}
from
'@/api/index'
;
import
{
consigneeList
}
from
'@/api/profile'
;
let
show
=
ref
(
false
);
let
showModel
=
ref
(
false
);
let
showSelect
=
ref
(
false
);
let
content
=
ref
(
'确认删除地址?'
);
let
selectList
=
ref
([]
as
any
)
let
addressData
=
ref
({
addressDetail
:
''
,
areaCode
:
''
,
...
...
@@ -85,6 +99,8 @@ let addressData = ref({
county
:
''
,
isDefault
:
false
,
name
:
''
,
contactName
:
''
,
customerCode
:
''
,
postalCode
:
''
,
province
:
''
,
tel
:
''
,
...
...
@@ -102,6 +118,16 @@ onLoad((options?: any) => {
// 判断是否显示删除
editId
.
value
=
addressData
.
value
?.
id
}
consigneeList
().
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
res
.
data
.
data
.
map
((
item
:
any
)
=>
{
selectList
.
value
.
push
({
label
:
item
.
customerName
,
value
:
item
.
customerCode
})
})
}
})
});
// 打开地区选择
...
...
@@ -109,6 +135,17 @@ let showRegionPicker = () => {
show
.
value
=
true
;
};
let
onblur
=
()
=>
{
showSelect
.
value
=
false
}
let
onfocus
=
()
=>
{
showSelect
.
value
=
true
}
let
onConfirm
=
(
data
:
any
)
=>
{
addressData
.
value
.
name
=
data
[
0
].
label
addressData
.
value
.
customerCode
=
data
[
0
].
value
}
// 设置地区
let
confirm
=
(
data
:
any
)
=>
{
addressData
.
value
.
areaCode
=
data
.
area
.
code
;
...
...
src/pages/profile/collection.vue
浏览文件 @
4680ed98
...
...
@@ -7,7 +7,7 @@
:name=
"item.name"
:brief=
"item.brief"
:retailPrice=
"item.retailPrice"
@
tap=
"
hotGoods(item
)"
@
tap=
"
toGoods(item.valueId
)"
style=
"margin-top: 6rpx;"
/>
<view
style=
"padding: 20rpx;"
><u-loadmore
:status=
"status"
icon-type=
"flower"
/></view>
...
...
@@ -66,6 +66,10 @@ let change = (index: number) => {
init
();
};
let
toGoods
=
(
id
:
number
)
=>
{
uni
.
navigateTo
({
url
:
'/pages/goods/index?id='
+
id
});
};
let
init
=
()
=>
{
status
.
value
=
'loading'
;
getCollectList
(
collectQuery
.
value
).
then
((
res
:
any
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论