This commit is contained in:
lnn19986213 2022-10-25 15:50:56 +08:00
parent 0653b7f567
commit a6d3e6ec48
6 changed files with 17 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "艺象心", "name" : "艺象心",
"appid" : "__UNI__ED9DD86", "appid" : "__UNI__77CA6BC",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",

View File

@ -58,7 +58,7 @@
}; };
}, },
onLoad(option) { onLoad(option) {
this.data = JSON.parse(decodeURIComponent(option.data)) this.data = JSON.parse(option.data)
}, },
onShow() { onShow() {
this.total ='' this.total =''

View File

@ -188,7 +188,7 @@
res.data.records.forEach(function(item) { res.data.records.forEach(function(item) {
let data = JSON.parse(item.quickPhoto) let data = JSON.parse(item.quickPhoto)
item.quickPhoto = data item.quickPhoto = data
if (item.quickPhoto.domainInfo.file != undefined) { if (item.quickPhoto.domainInfo.file) {
let fileArr = item.quickPhoto.domainInfo.file.split(',') let fileArr = item.quickPhoto.domainInfo.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1) let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
@ -198,7 +198,7 @@
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png' 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] item.quickPhoto.shopInfo.images = img[0]
}) })
this.orderList = res.data.records this.orderList = res.data.records
@ -224,7 +224,7 @@
res.data.records.forEach(function(item) { res.data.records.forEach(function(item) {
let data = JSON.parse(item.quickPhoto) let data = JSON.parse(item.quickPhoto)
item.quickPhoto = data item.quickPhoto = data
if (item.quickPhoto.domainInfo.file != undefined) { if (item.quickPhoto.domainInfo.file) {
let fileArr = item.quickPhoto.domainInfo.file.split(',') let fileArr = item.quickPhoto.domainInfo.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1) let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
@ -234,7 +234,7 @@
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png' 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] item.quickPhoto.shopInfo.images = img[0]
_this.orderList.push(item) _this.orderList.push(item)
}) })

View File

@ -228,11 +228,11 @@
this.orderDet[0].goodsName = res.data.domainInfo.name this.orderDet[0].goodsName = res.data.domainInfo.name
this.orderDet[0].img = this.img[0] this.orderDet[0].img = this.img[0]
this.orderDet[0].userName = res.data.shopInfo.userName 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.orderDet[0].userImg = src[0]
this.serveList = res.data this.serveList = res.data
res.data.scores.forEach(function(item){ res.data.scores.forEach(function(item){
let img = JSON.parse(item.avatar) let img = item.avatar.split(',')
item.avatar = img[0] item.avatar = img[0]
}) })
this.allScor = res.data.scores this.allScor = res.data.scores
@ -278,7 +278,7 @@
// }) // })
}else if(this.orderDet[0].mType == 1){ }else if(this.orderDet[0].mType == 1){
uni.navigateTo({ 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() { goAllPingjia() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/PingJiaList/PingJiaList?score=" + encodeURIComponent(JSON.stringify(this.allScor)) url: "/pages/PingJiaList/PingJiaList?score=" + JSON.stringify(this.allScor)
}) })
}, },
// //

View File

@ -1,5 +1,6 @@
<template> <template>
<view class="content_main"> <view class="content_main">
<u-gap height="12" bgColor="#F4F5F7"></u-gap>
<view class="pijia "> <view class="pijia ">
<view class="pinjia_t "> <view class="pinjia_t ">
<text class="pinjia_count">宝贝评价{{total}}</text> <text class="pinjia_count">宝贝评价{{total}}</text>
@ -27,14 +28,13 @@
data() { data() {
return { return {
rate2: 2, rate2: 2,
total: 10, total: 0,
score:[] score:[]
}; };
}, },
onLoad(op) { onLoad(op) {
this.score = JSON.parse(decodeURIComponent(op.score)) this.score = JSON.parse(op.score)
this.total = this.score.length this.total = this.score.length
console.log(this.score)
} }
} }
@ -47,7 +47,7 @@
.content_main { .content_main {
width: calc(100% - 48rpx); width: calc(100% - 48rpx);
margin: 12px auto; margin: 0 auto;
.pijia { .pijia {
border: 1rpx solid #FFFFFF; border: 1rpx solid #FFFFFF;
@ -55,7 +55,7 @@
background-color: #FFFFFF; background-color: #FFFFFF;
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx 24rpx; padding: 32rpx 24rpx;
margin-top: 24rpx; // margin-top: 24rpx;
.pinjia_t { .pinjia_t {
display: flex; display: flex;

View File

@ -151,7 +151,7 @@
} else if (gs == 'pdf') { } else if (gs == 'pdf') {
item.goods.domainInfo.file = '../../static/fileImg/pdfS.png' 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] item.goods.shopInfo.images = img[0]
_this.showList.push(true) _this.showList.push(true)
}) })
@ -182,7 +182,7 @@
} else if (gs == 'pdf') { } else if (gs == 'pdf') {
item.goods.domainInfo.file = '../../static/fileImg/pdfS.png' 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] item.goods.shopInfo.images = img[0]
_this.list.push(item) _this.list.push(item)
_this.showList.push(true) _this.showList.push(true)