|
@@ -53,7 +53,6 @@
|
|
<view style="font-size: 12px;">上传图片</view>
|
|
<view style="font-size: 12px;">上传图片</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -76,15 +75,15 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
item: {
|
|
item: {
|
|
- img: '../../static/img/83.png',
|
|
|
|
- title: '丝缎质感纹理风衣',
|
|
|
|
- label: '黑色 - 6518/320',
|
|
|
|
- size: 'S',
|
|
|
|
- price: '1299',
|
|
|
|
- id: 3,
|
|
|
|
- buy: 0,
|
|
|
|
- itemId: 0,
|
|
|
|
- checked: false,
|
|
|
|
|
|
+ // img: '../../static/img/83.png',
|
|
|
|
+ // title: '丝缎质感纹理风衣',
|
|
|
|
+ // label: '黑色 - 6518/320',
|
|
|
|
+ // size: 'S',
|
|
|
|
+ // price: '1299',
|
|
|
|
+ // id: 3,
|
|
|
|
+ // buy: 0,
|
|
|
|
+ // itemId: 0,
|
|
|
|
+ // checked: false,
|
|
},
|
|
},
|
|
// typeclick:5,//1加入购物车,2购物车
|
|
// typeclick:5,//1加入购物车,2购物车
|
|
typeclick: 7, //1加入购物车,2购物车
|
|
typeclick: 7, //1加入购物车,2购物车
|
|
@@ -92,20 +91,20 @@
|
|
rate2: 0,
|
|
rate2: 0,
|
|
rate3: 0,
|
|
rate3: 0,
|
|
val_1: '',
|
|
val_1: '',
|
|
- // filelist:["https://picsum.photos/200?v=555","https://picsum.photos/200?v=555"],
|
|
|
|
- // filelist:[],
|
|
|
|
fileList: [],
|
|
fileList: [],
|
|
imgUrl: "",
|
|
imgUrl: "",
|
|
sizeType: ['compressed'],
|
|
sizeType: ['compressed'],
|
|
imageList: [], // 申诉图片地址
|
|
imageList: [], // 申诉图片地址
|
|
uploadFlag: true, // 申诉图片大于3张隐藏上传按钮
|
|
uploadFlag: true, // 申诉图片大于3张隐藏上传按钮
|
|
- orNo: '',
|
|
|
|
|
|
+ orId: '',
|
|
|
|
+ imgList:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(op) {
|
|
onLoad(op) {
|
|
console.log(op);
|
|
console.log(op);
|
|
if (op) {
|
|
if (op) {
|
|
- this.orNo = op.no;
|
|
|
|
|
|
+ this.orId = op.id;
|
|
|
|
+ this.getOrderDetail()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -117,6 +116,30 @@
|
|
this.sys = uni.getSystemInfoSync();
|
|
this.sys = uni.getSystemInfoSync();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getOrderDetail(){
|
|
|
|
+ let that = this;
|
|
|
|
+ myRequest({
|
|
|
|
+ url:'/api/Order/orderDetails',
|
|
|
|
+ method:'post',
|
|
|
|
+ data:{id:that.orId}
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.data.code==200){
|
|
|
|
+ this.item=res.data.data.goods_details;
|
|
|
|
+ this.item.title=res.data.data.goods_details.goods_name;
|
|
|
|
+ this.item.img=res.data.data.goods_details.goods_img;
|
|
|
|
+ this.item.price=res.data.data.goods_details.goods_price;
|
|
|
|
+ this.item.buy=res.data.data.goods_details.buy_num;
|
|
|
|
+ // this.item.title=res.data.data.goods_details.goods_name;
|
|
|
|
+ console.log(res.data.data.goods_details,'33');
|
|
|
|
+ }else{
|
|
|
|
+ that.$refs.toast.show({
|
|
|
|
+ model: 'error',
|
|
|
|
+ label: res.data.msg
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
openImagePage() {
|
|
openImagePage() {
|
|
let that = this;
|
|
let that = this;
|
|
if (that.fileList.length > 5) {
|
|
if (that.fileList.length > 5) {
|
|
@@ -154,8 +177,10 @@
|
|
console.log(url, 'url');
|
|
console.log(url, 'url');
|
|
// 选中图片
|
|
// 选中图片
|
|
if (_this.fileList.indexOf(url) == -1) {
|
|
if (_this.fileList.indexOf(url) == -1) {
|
|
|
|
+ let uu=url.substr(24);
|
|
_this.fileList.push(url);
|
|
_this.fileList.push(url);
|
|
- console.log(_this.fileList, 'haah');
|
|
|
|
|
|
+ _this.imgList.push(uu)
|
|
|
|
+ console.log(_this.fileList,'haah');
|
|
}
|
|
}
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
if (_this.fileList.length > 5) {
|
|
if (_this.fileList.length > 5) {
|
|
@@ -179,11 +204,12 @@
|
|
},
|
|
},
|
|
popImg(index) { //删除图片
|
|
popImg(index) { //删除图片
|
|
this.fileList.splice(index, 1);
|
|
this.fileList.splice(index, 1);
|
|
|
|
+ this.imgList.splice(index, 1);
|
|
if (this.fileList.length < 1) {
|
|
if (this.fileList.length < 1) {
|
|
this.uploadFlag = true
|
|
this.uploadFlag = true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 上传图片
|
|
|
|
|
|
+
|
|
aa(num) {
|
|
aa(num) {
|
|
if (num == 1) {
|
|
if (num == 1) {
|
|
this.checked1 = true;
|
|
this.checked1 = true;
|
|
@@ -217,11 +243,11 @@
|
|
url: '/api/Order/orderEvaluate',
|
|
url: '/api/Order/orderEvaluate',
|
|
method: 'post',
|
|
method: 'post',
|
|
data: {
|
|
data: {
|
|
- id: that.orNo,
|
|
|
|
|
|
+ id: that.orId,
|
|
experience_value: that.rate1,
|
|
experience_value: that.rate1,
|
|
delivery_value: that.rate2,
|
|
delivery_value: that.rate2,
|
|
service_value: that.rate3,
|
|
service_value: that.rate3,
|
|
- atlas: that.fileList.join(','),
|
|
|
|
|
|
+ atlas: that.imgList.join(','),
|
|
content: that.val_1
|
|
content: that.val_1
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -231,6 +257,11 @@
|
|
model: 'success',
|
|
model: 'success',
|
|
label: res.data.msg
|
|
label: res.data.msg
|
|
})
|
|
})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:1
|
|
|
|
+ })
|
|
|
|
+ },800)
|
|
} else {
|
|
} else {
|
|
that.$refs.toast.show({
|
|
that.$refs.toast.show({
|
|
model: 'error',
|
|
model: 'error',
|