Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
0ed7c9c6
Commit
0ed7c9c6
authored
Nov 19, 2021
by
潘永坪
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/zhoucong' into develop
parents
fc2460a1
90661e45
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
32 deletions
+21
-32
main.js
main.js
+0
-7
dragImg.vue
pages/vlog/components/dragImg/dragImg.vue
+6
-8
orderPay.vue
pages/vlog/orderPay/orderPay.vue
+1
-2
productDetails.vue
pages/vlog/productDetails/productDetails.vue
+3
-3
uploadPictures.vue
pages/vlog/uploadPictures/uploadPictures.vue
+11
-12
fengexian.png
static/img/vlog/icon/fengexian.png
+0
-0
No files found.
main.js
View file @
0ed7c9c6
...
@@ -10,13 +10,6 @@ Vue.prototype.$commonjs = commonjs
...
@@ -10,13 +10,6 @@ Vue.prototype.$commonjs = commonjs
Vue
.
prototype
.
$request
=
request
Vue
.
prototype
.
$request
=
request
Vue
.
use
(
uView
)
Vue
.
use
(
uView
)
if
(
process
.
env
.
NODE_ENV
===
'development'
){
//开发环境
Vue
.
prototype
.
imgUrl
=
"http://picture.tuyoyoo.com/"
}
else
{
Vue
.
prototype
.
imgUrl
=
"http://picture.pangdly.com/"
}
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
App
.
mpType
=
'app'
App
.
mpType
=
'app'
const
app
=
new
Vue
({
const
app
=
new
Vue
({
...
...
pages/vlog/components/dragImg/dragImg.vue
View file @
0ed7c9c6
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<!-- start:请在该区域编写自己的渲染逻辑 -->
<!-- start:请在该区域编写自己的渲染逻辑 -->
<view
class=
"info"
>
<view
class=
"info"
>
<view
class=
"info__item"
>
<view
class=
"info__item"
>
<image
class=
"image"
:src=
"
$imgUrl
+item.data.images"
mode=
"widthFix"
></image>
<image
class=
"image"
:src=
"
'http://picture.pangdly.com/'
+item.data.images"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"info__item_btn"
@
click
.
stop=
"replace(item)"
>
<view
class=
"info__item_btn"
@
click
.
stop=
"replace(item)"
>
更换
更换
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
overOnePage
:
false
,
// 整个区域是否超过一个屏幕
overOnePage
:
false
,
// 整个区域是否超过一个屏幕
itemTransition
:
false
,
// item 变换是否需要过渡动画, 首次渲染不需要
itemTransition
:
false
,
// item 变换是否需要过渡动画, 首次渲染不需要
platform
:
""
,
//使用平台
platform
:
""
,
//使用平台
$imgUrl
:
""
//图片前缀
}
}
},
},
watch
:
{
watch
:
{
...
@@ -74,7 +73,6 @@
...
@@ -74,7 +73,6 @@
},
},
},
},
onReady
()
{
onReady
()
{
this
.
$imgUrl
=
this
.
imgUrl
//因main.js挂载的全局变量页面中显示undifined,特此重新赋值
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
...
@@ -353,11 +351,11 @@
...
@@ -353,11 +351,11 @@
},
},
//点击每一项后触发事件
//点击每一项后触发事件
itemClick
(
index
,
src
)
{
itemClick
(
index
,
src
)
{
let
urls
=
[]
//
let urls = []
urls
.
push
(
src
)
//
urls.push(src)
uni
.
previewImage
({
//点击查看大图
//
uni.previewImage({//点击查看大图
urls
:
urls
,
// urls: 'http://picture.pangdly.com/'+
urls,
})
//
})
// let item = this.list[index]
// let item = this.list[index]
// this.$emit('click', {
// this.$emit('click', {
// oldKey: index,
// oldKey: index,
...
...
pages/vlog/orderPay/orderPay.vue
View file @
0ed7c9c6
...
@@ -14,8 +14,7 @@
...
@@ -14,8 +14,7 @@
</view>
</view>
<u-icon
name=
"arrow-right"
class=
"icon"
color=
"#666666"
></u-icon>
<u-icon
name=
"arrow-right"
class=
"icon"
color=
"#666666"
></u-icon>
</view>
</view>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
mode=
""
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
mode=
""
style=
"width: 100%;height: 5upx;"
></image>
style=
"width: 110%;height: 10upx;margin-left: -20upx;"
></image>
<view
class=
"body"
>
<view
class=
"body"
>
<image
:src=
"productVo.priceStockList[0].imgList[0].url"
></image>
<image
:src=
"productVo.priceStockList[0].imgList[0].url"
></image>
<view
class=
"title"
>
<view
class=
"title"
>
...
...
pages/vlog/productDetails/productDetails.vue
View file @
0ed7c9c6
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<u-section
title=
"模板选择"
:right=
"false"
color=
"#303133"
></u-section>
<u-section
title=
"模板选择"
:right=
"false"
color=
"#303133"
></u-section>
<text
style=
"font-size: 24rpx;color: #ccc;margin-left: 30rpx;"
>
Template Selection
</text>
<text
style=
"font-size: 24rpx;color: #ccc;margin-left: 30rpx;"
>
Template Selection
</text>
</view>
</view>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
style=
"width: 100%;height:
1
5rpx;"
></image>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
style=
"width: 100%;height: 5rpx;"
></image>
<view
style=
"display: flex;justify-content: space-around;margin-bottom: 20upx;width: 75%;margin: 20upx auto;"
>
<view
style=
"display: flex;justify-content: space-around;margin-bottom: 20upx;width: 75%;margin: 20upx auto;"
>
<button
type=
"default"
class=
"btnn"
:class=
"current===0?'active':'noactive'"
<button
type=
"default"
class=
"btnn"
:class=
"current===0?'active':'noactive'"
@
click=
"current=0"
>
封面
</button>
@
click=
"current=0"
>
封面
</button>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<u-section
title=
"详细参数"
:right=
"false"
color=
"#303133"
></u-section>
<u-section
title=
"详细参数"
:right=
"false"
color=
"#303133"
></u-section>
<text
style=
"font-size: 24rpx;color: #ccc;margin-left: 30rpx;"
>
Parameters
</text>
<text
style=
"font-size: 24rpx;color: #ccc;margin-left: 30rpx;"
>
Parameters
</text>
</view>
</view>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
mode=
""
style=
"width: 100%;height:
1
5rpx;"
></image>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
mode=
""
style=
"width: 100%;height: 5rpx;"
></image>
<image
:src=
"item.url"
mode=
"widthFix"
v-for=
"(item,index) in imgList1"
:key=
"index"
style=
"width: 100%;border-radius: 10rpx;"
></image>
<image
:src=
"item.url"
mode=
"widthFix"
v-for=
"(item,index) in imgList1"
:key=
"index"
style=
"width: 100%;border-radius: 10rpx;"
></image>
<view
class=
"bottom"
@
click=
"beginMaking"
>
上传照片制作
</view>
<view
class=
"bottom"
@
click=
"beginMaking"
>
上传照片制作
</view>
</view>
</view>
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
height
:
98rpx
;
height
:
98rpx
;
background-color
:
#FFE600
;
background-color
:
#FFE600
;
right
:
0
;
right
:
0
;
line-height
:
100
rpx
;
line-height
:
98
rpx
;
font-size
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
border-top-left-radius
:
10rpx
;
border-top-left-radius
:
10rpx
;
...
...
pages/vlog/uploadPictures/uploadPictures.vue
View file @
0ed7c9c6
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"top"
>
<view
class=
"top"
style=
"border-bottom: 1rpx dashed #ccc;"
>
<view
class=
"upload"
@
click=
"chooseAvatar"
>
<view
class=
"upload"
@
click=
"chooseAvatar"
>
<u-icon
class=
"icon"
name=
"plus-circle"
size=
"80"
color=
"#999999"
></u-icon>
<u-icon
class=
"icon"
name=
"plus-circle"
size=
"80"
color=
"#999999"
></u-icon>
</view>
</view>
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
已选
{{
checkList
.
length
}}
/
{{
maxImg
}}
已选
{{
checkList
.
length
}}
/
{{
maxImg
}}
</view>
</view>
</view>
</view>
<
view
style=
"border: 1rpx dashed #ccc;opacity: 0.3;margin-top: 230rpx;"
></view
>
<
!--
<view
style=
"border: 1rpx dashed #ccc;opacity: 0.3;margin-top: 230rpx;"
></view>
--
>
<view
class=
"img"
>
<view
class=
"img"
style=
"margin-top: 230rpx;"
>
<block
v-for=
"(item,index) in imgList"
:key=
"index"
>
<block
v-for=
"(item,index) in imgList"
:key=
"index"
>
<view
class=
"imgItem"
@
click=
"changeImg(item,index)"
>
<view
class=
"imgItem"
@
click=
"changeImg(item,index)"
>
<image
:src=
"
$imgUrl
+item.url"
></image>
<image
:src=
"
'http://picture.pangdly.com/'
+item.url"
></image>
<image
v-if=
"item.check===1"
src=
"../../../static/img/vlog/icon/check.png"
class=
"icon"
></image>
<image
v-if=
"item.check===1"
src=
"../../../static/img/vlog/icon/check.png"
class=
"icon"
></image>
</view>
</view>
</block>
</block>
...
@@ -35,12 +35,9 @@
...
@@ -35,12 +35,9 @@
maxImg
:
""
,
//相册规格张数
maxImg
:
""
,
//相册规格张数
imgList
:
[],
//上传的图片列表
imgList
:
[],
//上传的图片列表
checkList
:
[],
//选中的图片下标
checkList
:
[],
//选中的图片下标
$imgUrl
:
""
}
}
},
},
onLoad
(
opction
)
{
//代替 vue 里面的 created
onLoad
(
opction
)
{
//代替 vue 里面的 created
this
.
$imgUrl
=
this
.
imgUrl
//因main.js挂载的全局变量页面中显示undifined,特此重新赋值
this
.
maxImg
=
opction
.
yeshu
//获取相册规格
this
.
maxImg
=
opction
.
yeshu
//获取相册规格
this
.
imgList
=
uni
.
getStorageSync
(
"imgList"
)
this
.
imgList
=
uni
.
getStorageSync
(
"imgList"
)
...
@@ -182,8 +179,9 @@
...
@@ -182,8 +179,9 @@
background-color
:
#fff
;
background-color
:
#fff
;
width
:
100%
;
width
:
100%
;
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
right
:
0
;
.upload
{
.upload
{
margin-left
:
20upx
;
height
:
200rpx
;
height
:
200rpx
;
width
:
200rpx
;
width
:
200rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
...
@@ -238,8 +236,8 @@
...
@@ -238,8 +236,8 @@
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
80
rpx
;
height
:
98
rpx
;
line-height
:
80
rpx
;
line-height
:
98
rpx
;
right
:
0
;
right
:
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
...
@@ -247,10 +245,11 @@
...
@@ -247,10 +245,11 @@
align-items
:
center
;
align-items
:
center
;
view
{
view
{
font-size
:
32upx
;
width
:
35%
;
width
:
35%
;
border-radius
:
10rpx
;
border-radius
:
10rpx
;
height
:
6
0
rpx
;
height
:
6
4
rpx
;
line-height
:
6
0
rpx
;
line-height
:
6
4
rpx
;
}
}
.del
{
.del
{
...
...
static/img/vlog/icon/fengexian.png
View replaced file @
fc2460a1
View file @
0ed7c9c6
11.1 KB
|
W:
|
H:
510 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
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