Browse Source
2、购物车列表点击管理 点击收藏功能去掉 3、下单点击积分抵扣没反应 4、待收货 列表查看物流点击没反应,详情查看物流可以点 5、添加地址选择地区无效 6、个人中心我的余额点进去点击账单记录一直正在加载中,点击下全部就出来了,应该你没带默认参数 8、订单点击评价没反应 9、小程序订单核销没上 你那边先根据路径判断隐藏下 10、我的推广,里面样式有问题,点击海报里面空白 11、分类点击 会分类Tab页分类一级比一级低 12、拼团详情客服功能隐藏去掉,其他地方有客服功能的都去掉master
21 changed files with 1720 additions and 1641 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,153 +1,160 @@ |
|||||||
<template> |
<template> |
||||||
<view class="distribution-posters"> |
<view class="distribution-posters"> |
||||||
<view class="slider-banner banner"> |
<view class="slider-banner banner"> |
||||||
<swiper indicatorDots="true"> |
<swiper indicatorDots="true"> |
||||||
<block v-for="(item, infoIndex) in info" :key="infoIndex"> |
<block v-for="(item, infoIndex) in info" :key="infoIndex"> |
||||||
<swiper-item> |
<swiper-item> |
||||||
<image class="slide-image" :src="item.wap_poster" mode="widthFix" show-menu-by-longpress /> |
<image |
||||||
</swiper-item> |
class="slide-image" |
||||||
</block> |
:src="item.wap_poster" |
||||||
</swiper> |
mode="widthFix" |
||||||
</view> |
show-menu-by-longpress |
||||||
<view class="keep bg-color-red" @click="saveImg">保存海报</view> |
/> |
||||||
</view> |
</swiper-item> |
||||||
|
</block> |
||||||
|
</swiper> |
||||||
|
</view> |
||||||
|
<view class="keep bg-color-red" @click="saveImg">保存海报</view> |
||||||
|
</view> |
||||||
</template> |
</template> |
||||||
<script> |
<script> |
||||||
// import { swiper, swiperSlide } from "vue-awesome-swiper"; |
// import { swiper, swiperSlide } from "vue-awesome-swiper"; |
||||||
import { |
import { getSpreadImg } from "@/api/user"; |
||||||
getSpreadImg |
|
||||||
} from "@/api/user"; |
|
||||||
|
|
||||||
export default { |
export default { |
||||||
name: "Poster", |
name: "Poster", |
||||||
components: { |
components: { |
||||||
// swiper, |
// swiper, |
||||||
// swiperSlide |
// swiperSlide |
||||||
}, |
}, |
||||||
props: {}, |
props: {}, |
||||||
data: function() { |
data: function() { |
||||||
return { |
return { |
||||||
swiperPosters: { |
swiperPosters: { |
||||||
speed: 1000, |
speed: 1000, |
||||||
effect: "coverflow", |
effect: "coverflow", |
||||||
slidesPerView: "auto", |
slidesPerView: "auto", |
||||||
centeredSlides: true, |
centeredSlides: true, |
||||||
coverflowEffect: { |
coverflowEffect: { |
||||||
rotate: 0, // 旋转的角度 |
rotate: 0, // 旋转的角度 |
||||||
stretch: -20, // 拉伸 图片间左右的间距和密集度 |
stretch: -20, // 拉伸 图片间左右的间距和密集度 |
||||||
depth: 100, // 深度 切换图片间上下的间距和密集度 |
depth: 100, // 深度 切换图片间上下的间距和密集度 |
||||||
modifier: 3, // 修正值 该值越大前面的效果越明显 |
modifier: 3, // 修正值 该值越大前面的效果越明显 |
||||||
slideShadows: false // 页面阴影效果 |
slideShadows: false // 页面阴影效果 |
||||||
}, |
}, |
||||||
observer: true, |
observer: true, |
||||||
observeParents: true |
observeParents: true |
||||||
}, |
}, |
||||||
info: [], |
info: [], |
||||||
activeIndex: 0 |
activeIndex: 0 |
||||||
}; |
}; |
||||||
}, |
}, |
||||||
mounted: function() { |
mounted: function() { |
||||||
this.getIndex(); |
this.getIndex(); |
||||||
let that = this; |
let that = this; |
||||||
// this.swiper.on("slideChange", function() { |
// this.swiper.on("slideChange", function() { |
||||||
// that.activeIndex = that.swiper.activeIndex; |
// that.activeIndex = that.swiper.activeIndex; |
||||||
// }); |
// }); |
||||||
}, |
}, |
||||||
computed: { |
computed: { |
||||||
swiper() { |
swiper() { |
||||||
// return this.$refs.mySwiper.swiper; |
// return this.$refs.mySwiper.swiper; |
||||||
} |
} |
||||||
}, |
}, |
||||||
methods: { |
methods: { |
||||||
getIndex: function() { |
getIndex: function() { |
||||||
let that = this; |
let that = this; |
||||||
let form = {} |
let form = {}; |
||||||
if (this.$deviceType == 'app') { |
if (this.$deviceType == "app") { |
||||||
form.form = 'app' |
form.form = "app"; |
||||||
} |
} |
||||||
getSpreadImg(form).then( |
getSpreadImg(form).then( |
||||||
res => { |
res => { |
||||||
that.info = res.data; |
that.info = res.data; |
||||||
}, |
}, |
||||||
err => { |
err => { |
||||||
uni.showToast({ |
uni.showToast({ |
||||||
title: err.msg || err.response.data.msg, |
title: err.msg || err.response.data.msg, |
||||||
icon: 'none', |
icon: "none", |
||||||
duration: 2000 |
duration: 2000 |
||||||
}); |
}); |
||||||
} |
} |
||||||
); |
); |
||||||
}, |
}, |
||||||
downloadIamge: function(imgsrc, name) { |
downloadIamge: function(imgsrc, name) { |
||||||
var that = this; |
var that = this; |
||||||
this.isDown = true; |
this.isDown = true; |
||||||
var downloadUrl = imgsrc; |
var downloadUrl = imgsrc; |
||||||
|
|
||||||
if (!wx.saveImageToPhotosAlbum) { |
if (!wx.saveImageToPhotosAlbum) { |
||||||
uni.showModal({ |
uni.showModal({ |
||||||
title: "提示", |
title: "提示", |
||||||
content: "当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。" |
content: |
||||||
}); |
"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。" |
||||||
that.openDialogVisible = true; |
}); |
||||||
|
that.openDialogVisible = true; |
||||||
|
|
||||||
return; |
return; |
||||||
} |
} |
||||||
|
|
||||||
// 可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.writePhotosAlbum" 这个 scope |
// 可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.writePhotosAlbum" 这个 scope |
||||||
wx.getSetting({ |
wx.getSetting({ |
||||||
success(res) { |
success(res) { |
||||||
if (!res.authSetting["scope.writePhotosAlbum"]) { |
if (!res.authSetting["scope.writePhotosAlbum"]) { |
||||||
that.openDialogVisible = true; |
that.openDialogVisible = true; |
||||||
|
|
||||||
// 接口调用询问 |
// 接口调用询问 |
||||||
wx.authorize({ |
wx.authorize({ |
||||||
scope: "scope.writePhotosAlbum", |
scope: "scope.writePhotosAlbum", |
||||||
success() { |
success() { |
||||||
that.downloadImage(downloadUrl); |
that.downloadImage(downloadUrl); |
||||||
}, |
}, |
||||||
fail() { |
fail() { |
||||||
// 用户拒绝了授权 |
// 用户拒绝了授权 |
||||||
// 打开设置页面 |
// 打开设置页面 |
||||||
wx.openSetting({ |
wx.openSetting({ |
||||||
success: function(data) {}, |
success: function(data) {}, |
||||||
fail: function(data) {} |
fail: function(data) {} |
||||||
}); |
}); |
||||||
} |
} |
||||||
}); |
}); |
||||||
} else { |
} else { |
||||||
that.downloadImage(downloadUrl); |
that.downloadImage(downloadUrl); |
||||||
} |
} |
||||||
}, |
}, |
||||||
fail(res) { |
fail(res) { |
||||||
that.openDialogVisible = true; |
that.openDialogVisible = true; |
||||||
} |
} |
||||||
}); |
}); |
||||||
}, |
}, |
||||||
saveImg: function() { |
saveImg: function() { |
||||||
this.downloadIamge( |
this.downloadIamge( |
||||||
this.info[this.activeIndex].wap_poster, |
this.info[this.activeIndex].wap_poster, |
||||||
"poster" + this.activeIndex |
"poster" + this.activeIndex |
||||||
); |
); |
||||||
} |
} |
||||||
} |
} |
||||||
}; |
}; |
||||||
</script> |
</script> |
||||||
|
|
||||||
<style scoped lang="less"> |
<style lang="less"> |
||||||
.distribution-posters { |
page { |
||||||
height: 100%; |
height: 100%; |
||||||
} |
} |
||||||
|
.distribution-posters { |
||||||
|
height: 100%; |
||||||
|
} |
||||||
|
|
||||||
.banenr { |
.banenr { |
||||||
height: 100%; |
height: 100%; |
||||||
} |
} |
||||||
|
|
||||||
.banner swiper { |
.banner swiper { |
||||||
height: 100%; |
height: 100%; |
||||||
} |
} |
||||||
|
|
||||||
.banner .slide-image { |
.banner .slide-image { |
||||||
width: 100%; |
width: 100%; |
||||||
height: auto; |
height: auto; |
||||||
} |
} |
||||||
</style> |
</style> |
||||||
|
Loading…
Reference in new issue