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
dc96c32c
提交
dc96c32c
authored
11月 06, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
测试
上级
af4f9901
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
87 行增加
和
76 行删除
+87
-76
productLine.vue
src/pages/productLine/productLine.vue
+87
-76
没有找到文件。
src/pages/productLine/productLine.vue
浏览文件 @
dc96c32c
<
template
>
<u-navbar
:is-back=
"false"
title=
"产品线"
:background=
"
{ background: '#f8f8f8' }"
title-bold
title-color="#000"
>
<template
#
right
>
<view
style=
"margin-right: 30rpx"
@
tap=
"reset"
>
重置
</view>
</
template
>
</u-navbar>
<view
class=
"u-wrap"
>
<view
class=
"u-menu-wrap"
>
<view
style=
"position: fixed; left: 8rpx; top: 5%;"
>
<drag-and-drop-sort
ref=
"dragRef"
style=
"display: flex; justify-content: center;"
:controlsList=
"lineList"
:controlsSize=
"{ width: 180, height: 40 }"
@
sheet-del=
"sheetDel"
@
sheet-copy=
"sheetCopy"
@
sheet-edit=
"sheetEdit"
>
<
template
#
default=
"scope"
>
<u-section
v-if=
"lineList[scope.index]?.status === 1"
:title=
"scope.row.name"
:right=
"false"
:show-line=
"scope.row.show"
:line-color=
"scope.row.show ? '#0000f0' : ''"
style=
"margin-left: 20rpx;"
></u-section>
<view
v-else
class=
"add"
>
<u-icon
name=
"plus"
color=
"#c6c6c6"
size=
"50"
@
tap=
"addTabs"
></u-icon>
</view>
</
template
>
</drag-and-drop-sort>
</view>
<view
class=
"left-cates"
/>
<view
class=
"right-cates"
>
<view
style=
"width: 80px;"
>
<block
v-for=
"(item, index) in lineList"
>
<u-image
v-if=
"index != lineList.length - 1"
width=
"160rpx"
mode=
"widthFix"
:src=
"item.url.split('http').length > 1 ? item.url : baseUrl + item.url"
></u-image>
</block>
<view
style=
"width: 100%; height: 100vh;"
>
<u-navbar
:is-back=
"false"
title=
"产品线"
:background=
"
{ background: '#f8f8f8' }"
title-bold
title-color="#000"
>
<template
#
right
>
<view
style=
"margin-right: 30rpx"
@
tap=
"reset"
>
重置
</view>
</
template
>
</u-navbar>
<view
class=
"u-wrap"
>
<view
class=
"u-menu-wrap"
>
<view
style=
"position: fixed; left: 8rpx; top: 5%;"
>
<drag-and-drop-sort
ref=
"dragRef"
style=
"display: flex; justify-content: center;"
:controlsList=
"lineList"
:controlsSize=
"{ width: 180, height: 40 }"
@
sheet-del=
"sheetDel"
@
sheet-copy=
"sheetCopy"
@
sheet-edit=
"sheetEdit"
>
<
template
#
default=
"scope"
>
<u-section
v-if=
"lineList[scope.index]?.status === 1"
:title=
"scope.row.name"
:right=
"false"
:show-line=
"scope.row.show"
:line-color=
"scope.row.show ? '#0000f0' : ''"
style=
"margin-left: 20rpx;"
></u-section>
<view
v-else
class=
"add"
>
<u-icon
name=
"plus"
color=
"#c6c6c6"
size=
"50"
@
tap=
"addTabs"
></u-icon>
</view>
</
template
>
</drag-and-drop-sort>
</view>
<view
class=
"left-cates"
/>
<view
class=
"right-cates"
>
<view
style=
"width: 80px;"
>
<block
v-for=
"(item, index) in lineList"
>
<u-image
v-if=
"index != lineList.length - 1"
width=
"160rpx"
mode=
"widthFix"
:src=
"
item.url.split('http').length > 1
? item.url
: baseUrl + item.url
"
></u-image>
</block>
</view>
</view>
</view>
<!-- 导航 -->
<uni-goods-nav
class=
"goods-nav"
:fill=
"true"
:options=
"options"
:buttonGroup=
"buttonGroup"
@
click=
"onClick"
@
buttonClick=
"buttonClick"
/>
</view>
<!-- 导航 -->
<uni-goods-nav
class=
"goods-nav"
:fill=
"true"
:options=
"options"
:buttonGroup=
"buttonGroup"
@
click=
"onClick"
@
buttonClick=
"buttonClick"
<!-- 选择弹出框 -->
<category-popup
ref=
"categoryRef"
:show=
"showPopup"
@
close=
"handleClose"
@
categoryData=
"initCategory"
/>
</view>
<!-- 选择弹出框 -->
<category-popup
ref=
"categoryRef"
:show=
"showPopup"
@
close=
"handleClose"
@
categoryData=
"initCategory"
/>
<!-- 产品线sku -->
<goods-sku
ref=
"goodsSkuRef"
@
add-product=
"addProduct"
@
close-sku=
"closeSku"
/>
<!-- 产品线sku -->
<goods-sku
ref=
"goodsSkuRef"
@
add-product=
"addProduct"
@
close-sku=
"closeSku"
/>
<!-- 设置标题 -->
<set-title
ref=
"setTitleRef"
/>
<!-- 设置标题 -->
<set-title
ref=
"setTitleRef"
/>
<!-- model提示框 -->
<u-modal
v-model=
"model.show"
:content=
"model.content"
show-cancel-button
@
confirm=
"onConfirm"
></u-modal>
<!-- model提示框 -->
<u-modal
v-model=
"model.show"
:content=
"model.content"
show-cancel-button
@
confirm=
"onConfirm"
></u-modal>
</view>
</template>
<
script
lang=
"ts"
setup
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论