新增保存二维码成功提示,更改个人中心样式
parent
6b83051dfe
commit
35a6df9620
|
@ -4,7 +4,7 @@
|
||||||
<view @tap="chooseGe(item.url,index)" class="disjcac fc pad-s30" :style="{width:['50%','50%','50%','33.3%','25%','20%'][rowNum],paddingTop:itemTop}">
|
<view @tap="chooseGe(item.url,index)" class="disjcac fc pad-s30" :style="{width:['50%','50%','50%','33.3%','25%','20%'][rowNum],paddingTop:itemTop}">
|
||||||
<view class="disjcac icon-box posir" :style="{width:iconwh,height:iconwh}" :class="ifShadow ? 'haveShadow' : ''">
|
<view class="disjcac icon-box posir" :style="{width:iconwh,height:iconwh}" :class="ifShadow ? 'haveShadow' : ''">
|
||||||
<image :src="item.iconsrc" mode="aspectFill" :style="{width: item.iconWidth +'rpx',height: item.iconHeight +'rpx'}"></image>
|
<image :src="item.iconsrc" mode="aspectFill" :style="{width: item.iconWidth +'rpx',height: item.iconHeight +'rpx'}"></image>
|
||||||
<view class="posia fon24 textc bacf" v-if="item.num" style="right: -20rpx;top: -20rpx;border-radius: 100%;">{{item.num}}</view>
|
<view class="posia fon24 textc bacf" v-if="item.num" style="right: -54rpx;bottom: -39rpx;border-radius: 100%; color: #666;">({{item.num}})</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="clips1" :style="{color:titlec,fontSize:fonts,marginTop:titleTop}">{{item.title}}</view>
|
<view class="clips1" :style="{color:titlec,fontSize:fonts,marginTop:titleTop}">{{item.title}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
methods:{
|
methods:{
|
||||||
// 图片点击事件
|
// 图片点击事件
|
||||||
chooseImg(index,url){
|
chooseImg(index,url){
|
||||||
// console.log('当前banner图',index);
|
console.log('当前banner图',index,url);
|
||||||
this.bcurrent = index
|
this.bcurrent = index
|
||||||
if(this.browseP){
|
if(this.browseP){
|
||||||
let imgList = []
|
let imgList = []
|
||||||
|
@ -105,10 +105,13 @@
|
||||||
sources:imgList
|
sources:imgList
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 有链接,跳转链接
|
if(url){
|
||||||
uni.navigateTo({
|
// 有链接,跳转链接
|
||||||
url:`/${url}`
|
uni.navigateTo({
|
||||||
})
|
url:`/${url}`
|
||||||
|
})
|
||||||
|
console.log('跳转链接');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 切换后获取当前索引
|
// 切换后获取当前索引
|
||||||
|
|
|
@ -578,7 +578,9 @@ const tools = {
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.saveImageToPhotosAlbum({
|
uni.saveImageToPhotosAlbum({
|
||||||
filePath: res.tempFilePath,
|
filePath: res.tempFilePath,
|
||||||
success: ()=> {},
|
success: ()=> {
|
||||||
|
uni.showToast({title:'保存成功',icon:'error'})
|
||||||
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
uni.showToast({title:'保存失败',icon:'error'})
|
uni.showToast({title:'保存失败',icon:'error'})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue