This commit is contained in:
parent
0653b7f567
commit
a6d3e6ec48
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "艺象心",
|
||||
"appid" : "__UNI__ED9DD86",
|
||||
"appid" : "__UNI__77CA6BC",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.data = JSON.parse(decodeURIComponent(option.data))
|
||||
this.data = JSON.parse(option.data)
|
||||
},
|
||||
onShow() {
|
||||
this.total =''
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
res.data.records.forEach(function(item) {
|
||||
let data = JSON.parse(item.quickPhoto)
|
||||
item.quickPhoto = data
|
||||
if (item.quickPhoto.domainInfo.file != undefined) {
|
||||
if (item.quickPhoto.domainInfo.file) {
|
||||
let fileArr = item.quickPhoto.domainInfo.file.split(',')
|
||||
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
|
||||
|
@ -198,7 +198,7 @@
|
|||
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
}
|
||||
let img = JSON.parse(item.quickPhoto.shopInfo.images)
|
||||
let img = item.quickPhoto.shopInfo.images.split(',')
|
||||
item.quickPhoto.shopInfo.images = img[0]
|
||||
})
|
||||
this.orderList = res.data.records
|
||||
|
@ -224,7 +224,7 @@
|
|||
res.data.records.forEach(function(item) {
|
||||
let data = JSON.parse(item.quickPhoto)
|
||||
item.quickPhoto = data
|
||||
if (item.quickPhoto.domainInfo.file != undefined) {
|
||||
if (item.quickPhoto.domainInfo.file) {
|
||||
let fileArr = item.quickPhoto.domainInfo.file.split(',')
|
||||
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
|
||||
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
|
||||
|
@ -234,7 +234,7 @@
|
|||
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
}
|
||||
let img = JSON.parse(item.quickPhoto.shopInfo.images)
|
||||
let img = item.quickPhoto.shopInfo.images.split(',')
|
||||
item.quickPhoto.shopInfo.images = img[0]
|
||||
_this.orderList.push(item)
|
||||
})
|
||||
|
|
|
@ -228,11 +228,11 @@
|
|||
this.orderDet[0].goodsName = res.data.domainInfo.name
|
||||
this.orderDet[0].img = this.img[0]
|
||||
this.orderDet[0].userName = res.data.shopInfo.userName
|
||||
let src = JSON.parse(res.data.shopInfo.images)
|
||||
let src = res.data.shopInfo.images.split(',')
|
||||
this.orderDet[0].userImg = src[0]
|
||||
this.serveList = res.data
|
||||
res.data.scores.forEach(function(item){
|
||||
let img = JSON.parse(item.avatar)
|
||||
let img = item.avatar.split(',')
|
||||
item.avatar = img[0]
|
||||
})
|
||||
this.allScor = res.data.scores
|
||||
|
@ -278,7 +278,7 @@
|
|||
// })
|
||||
}else if(this.orderDet[0].mType == 1){
|
||||
uni.navigateTo({
|
||||
url:'/pages/ConfirmOrder/fictitiousOrder?data=' + encodeURIComponent(JSON.stringify(this.orderDet))
|
||||
url:'/pages/ConfirmOrder/fictitiousOrder?data=' + JSON.stringify(this.orderDet)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
@ -313,7 +313,7 @@
|
|||
// 跳转到全部评价
|
||||
goAllPingjia() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/PingJiaList/PingJiaList?score=" + encodeURIComponent(JSON.stringify(this.allScor))
|
||||
url: "/pages/PingJiaList/PingJiaList?score=" + JSON.stringify(this.allScor)
|
||||
})
|
||||
},
|
||||
//加入购物车
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<view class="content_main">
|
||||
<u-gap height="12" bgColor="#F4F5F7"></u-gap>
|
||||
<view class="pijia ">
|
||||
<view class="pinjia_t ">
|
||||
<text class="pinjia_count">宝贝评价({{total}})</text>
|
||||
|
@ -27,14 +28,13 @@
|
|||
data() {
|
||||
return {
|
||||
rate2: 2,
|
||||
total: 10,
|
||||
total: 0,
|
||||
score:[]
|
||||
};
|
||||
},
|
||||
onLoad(op) {
|
||||
this.score = JSON.parse(decodeURIComponent(op.score))
|
||||
this.score = JSON.parse(op.score)
|
||||
this.total = this.score.length
|
||||
console.log(this.score)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
.content_main {
|
||||
width: calc(100% - 48rpx);
|
||||
margin: 12px auto;
|
||||
margin: 0 auto;
|
||||
|
||||
.pijia {
|
||||
border: 1rpx solid #FFFFFF;
|
||||
|
@ -55,7 +55,7 @@
|
|||
background-color: #FFFFFF;
|
||||
box-sizing: border-box;
|
||||
padding: 32rpx 24rpx;
|
||||
margin-top: 24rpx;
|
||||
// margin-top: 24rpx;
|
||||
|
||||
.pinjia_t {
|
||||
display: flex;
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
} else if (gs == 'pdf') {
|
||||
item.goods.domainInfo.file = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
let img = JSON.parse(item.goods.shopInfo.images)
|
||||
let img = item.goods.shopInfo.images.split(',')
|
||||
item.goods.shopInfo.images = img[0]
|
||||
_this.showList.push(true)
|
||||
})
|
||||
|
@ -182,7 +182,7 @@
|
|||
} else if (gs == 'pdf') {
|
||||
item.goods.domainInfo.file = '../../static/fileImg/pdfS.png'
|
||||
}
|
||||
let img = JSON.parse(item.goods.shopInfo.images)
|
||||
let img = item.goods.shopInfo.images.split(',')
|
||||
item.goods.shopInfo.images = img[0]
|
||||
_this.list.push(item)
|
||||
_this.showList.push(true)
|
||||
|
|
Loading…
Reference in New Issue