Commit 22fe06b3 authored by xieyishang's avatar xieyishang

~

parent 9c2ee991
...@@ -33,9 +33,10 @@ ...@@ -33,9 +33,10 @@
<view class="datail_img"> <view class="datail_img">
<image <image
:src="staticUrl + item" :src="staticUrl + item"
mode="" mode="heightFix"
v-for="(item, index) in detail.refund_pics" v-for="(item, index) in detail.refund_pics"
style="width: 220upx;height: 196upx;flex-grow: 1;padding: 4upx;" @tap="preview(index,item)"
style="width: 100rpx;flex-grow: 1;padding: 4upx;"
></image> ></image>
</view> </view>
</view> </view>
...@@ -162,6 +163,26 @@ export default { ...@@ -162,6 +163,26 @@ export default {
this.initializedata(); this.initializedata();
}, },
methods: { methods: {
//预览图片
preview(index,item){
let currentImg = this.detail.refund_pics;
let imgList = [];
for(var i=0;i<currentImg.length;i++){
var itemimg = currentImg[i];
if(itemimg.indexOf("http")!=-1){
imgList.push(`${ itemimg}`)
}else if(itemimg.indexOf('//')!=-1 && itemimg.indexOf("http")==-1){
imgList.push(`https:${itemimg}`)
}else{
imgList.push(`${this.staticUrl+ itemimg}`)
}
}
uni.previewImage({
urls: imgList,
current: index, //显示的索引
});
},
xlsj() { xlsj() {
//联系客户 //联系客户
uni.makePhoneCall({ uni.makePhoneCall({
......
...@@ -5,8 +5,8 @@ module.exports = { ...@@ -5,8 +5,8 @@ module.exports = {
// isdebug:false,//正式 isdebug:false,//正式
isdebug:true,//测试 // isdebug:true,//测试
// xqdebug:false,//正式权限 // xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment