Fix(分享):微信小程序分享所用到的图片,服务器上的已替换,但是文件名未变更,小程序分享的时候获取到的图片还是旧的
This commit is contained in:
+12
-11
@@ -1,23 +1,24 @@
|
|||||||
export default{
|
export default{
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
//设置默认的分享参数
|
//设置默认的分享参数
|
||||||
|
sharePagePath: '/pages/home/index',
|
||||||
share:{
|
share:{
|
||||||
title:'云南香道滇官方商城',
|
title: '云南香道滇官方商城',
|
||||||
path:'/pages/Loading/index',
|
path: this.sharePagePath,
|
||||||
imageUrl:'http://admin-api.xdd618.com/file/pic/20210617211221217375.jpg',
|
imageUrl: this.$VUE_APP_RESOURCES_URL + '/20210617211221217375.jpg?' + new Date().getTime(),
|
||||||
desc:'',
|
desc: '',
|
||||||
content:''
|
content: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
return {
|
return {
|
||||||
title:this.share.title,
|
title: this.share.title,
|
||||||
path:this.share.path,
|
path: this.share.path,
|
||||||
imageUrl:this.share.imageUrl,
|
imageUrl: this.share.imageUrl,
|
||||||
desc:this.share.desc,
|
desc: this.share.desc,
|
||||||
content:this.share.content,
|
content: this.share.content,
|
||||||
success(res){
|
success(res){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'分享成功'
|
title:'分享成功'
|
||||||
|
|||||||
Reference in New Issue
Block a user