|
|
@ -5,7 +5,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="invite-hd"> |
|
|
|
<view class="invite-hd"> |
|
|
|
<!-- <image :src="$picUrl+'/static/news/invite-bg.png'"></image> --> |
|
|
|
<!-- <image :src="$picUrl+'/static/news/invite-bg.png'"></image> --> |
|
|
|
<view class="btn" @click="createImge"> |
|
|
|
<view class="btn" @click="openPage(3)"> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rule" @click="openPage(4)"></view> |
|
|
|
<view class="rule" @click="openPage(4)"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -105,12 +105,13 @@ |
|
|
|
isPopup: false, |
|
|
|
isPopup: false, |
|
|
|
info: {}, |
|
|
|
info: {}, |
|
|
|
list: [], |
|
|
|
list: [], |
|
|
|
devicePixelRatio: uni.getSystemInfoSync().devicePixelRatio |
|
|
|
devicePixelRatio: 750/uni.getSystemInfoSync().windowHeight |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
onReady() { |
|
|
|
this.getList(); |
|
|
|
this.getList(); |
|
|
|
this.getCarousel() |
|
|
|
this.getCarousel() |
|
|
|
|
|
|
|
console.log(uni.getSystemInfoSync().devicePixelRatio) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
if (uni.getStorageSync("AccessToken")) { |
|
|
|
if (uni.getStorageSync("AccessToken")) { |
|
|
@ -154,17 +155,17 @@ |
|
|
|
success: function(res) { |
|
|
|
success: function(res) { |
|
|
|
// 在H5平台下,tempFilePath 为 base64 |
|
|
|
// 在H5平台下,tempFilePath 为 base64 |
|
|
|
console.log(res.tempFilePath) |
|
|
|
console.log(res.tempFilePath) |
|
|
|
// uni.saveImageToPhotosAlbum({ |
|
|
|
uni.saveImageToPhotosAlbum({ |
|
|
|
// filePath: res.tempFilePath, |
|
|
|
filePath: res.tempFilePath, |
|
|
|
// success(data) { |
|
|
|
success(data) { |
|
|
|
// that.$success('保存成功') |
|
|
|
that.$success('保存成功') |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// fail(err) { |
|
|
|
fail(err) { |
|
|
|
// if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') { |
|
|
|
if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') { |
|
|
|
// that.$toast('请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', 3000) |
|
|
|
that.$toast('请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', 3000) |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// }) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -229,7 +230,7 @@ |
|
|
|
if(type == 1){ |
|
|
|
if(type == 1){ |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
this.createImge(); |
|
|
|
} |
|
|
|
} |
|
|
|
return ; |
|
|
|
return ; |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|