|
@@ -33,9 +33,9 @@
|
|
|
<view class="mt-30">
|
|
|
<view class="">
|
|
|
<view class="cent-bottom-m">
|
|
|
- <view class="uploadImg" style="display: flex;justify-content: flex-start;flex-wrap: wrap;align-items: flex-start;">
|
|
|
+ <view class="uploadImg">
|
|
|
<view v-for="(el, index) in fileList" :key="index">
|
|
|
- <view class="uploadImg-image" >
|
|
|
+ <view class="uploadImg-image">
|
|
|
<image @click="checkImgbox(fileList, index)" :src="imgUrl+el"
|
|
|
mode="aspectFill" style="width: 100%;height: 100%;border-radius: 4px;">
|
|
|
</image>
|
|
@@ -97,7 +97,7 @@
|
|
|
imageList: [], // 申诉图片地址
|
|
|
uploadFlag: true, // 申诉图片大于3张隐藏上传按钮
|
|
|
orId: '',
|
|
|
- imgList:[]
|
|
|
+ imgList: []
|
|
|
};
|
|
|
},
|
|
|
onLoad(op) {
|
|
@@ -116,22 +116,24 @@
|
|
|
this.sys = uni.getSystemInfoSync();
|
|
|
},
|
|
|
methods: {
|
|
|
- getOrderDetail(){
|
|
|
+ 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;
|
|
|
+ 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{
|
|
|
+ console.log(res.data.data.goods_details, '33');
|
|
|
+ } else {
|
|
|
that.$refs.toast.show({
|
|
|
model: 'error',
|
|
|
label: res.data.msg
|
|
@@ -139,7 +141,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
openImagePage() {
|
|
|
let that = this;
|
|
|
if (that.fileList.length > 5) {
|
|
@@ -177,10 +179,10 @@
|
|
|
console.log(url, 'url');
|
|
|
// 选中图片
|
|
|
if (_this.fileList.indexOf(url) == -1) {
|
|
|
- let uu=url.substr(24);
|
|
|
+ let uu = url.substr(24);
|
|
|
_this.fileList.push(url);
|
|
|
_this.imgList.push(uu)
|
|
|
- console.log(_this.fileList,'haah');
|
|
|
+ console.log(_this.fileList, 'haah');
|
|
|
}
|
|
|
uni.hideLoading();
|
|
|
if (_this.fileList.length > 5) {
|
|
@@ -257,11 +259,11 @@
|
|
|
model: 'success',
|
|
|
label: res.data.msg
|
|
|
})
|
|
|
- setTimeout(()=>{
|
|
|
+ setTimeout(() => {
|
|
|
uni.navigateBack({
|
|
|
- delta:1
|
|
|
+ delta: 1
|
|
|
})
|
|
|
- },800)
|
|
|
+ }, 800)
|
|
|
} else {
|
|
|
that.$refs.toast.show({
|
|
|
model: 'error',
|
|
@@ -284,11 +286,19 @@
|
|
|
padding: 10px 10px;
|
|
|
}
|
|
|
|
|
|
- /deep/ .kuang {
|
|
|
+ /deep/ .kuang,
|
|
|
+ /deep/ .jia .tm-button-btn {
|
|
|
margin: 0 !important;
|
|
|
padding: 0px !important;
|
|
|
}
|
|
|
|
|
|
+ .uploadImg {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ align-items: flex-start;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ }
|
|
|
+
|
|
|
.uploadImg-image {
|
|
|
width: 70px;
|
|
|
height: 70px;
|
|
@@ -302,29 +312,22 @@
|
|
|
top: -5px;
|
|
|
}
|
|
|
|
|
|
- /deep/ .jia .tm-button-btn {
|
|
|
- padding: 0px !important;
|
|
|
- margin: 0px !important;
|
|
|
- }
|
|
|
-
|
|
|
/deep/ .jia .tm-button-btn .px-12 {
|
|
|
padding: 0 !important;
|
|
|
}
|
|
|
|
|
|
- /deep/ .uploadImg-image .white {
|
|
|
+ /deep/ .white {
|
|
|
background: none !important;
|
|
|
- color: #ffffff !important;
|
|
|
}
|
|
|
|
|
|
- /deep/ .jia .white {
|
|
|
- background: none !important;
|
|
|
+ /deep/ .jia .white,
|
|
|
+ /deep/ .jian .white {
|
|
|
color: #ffffff !important;
|
|
|
}
|
|
|
|
|
|
.sao {
|
|
|
width: 90%;
|
|
|
- margin: 0 auto;
|
|
|
- margin-top: 20px;
|
|
|
+ margin: 20px auto 0px;
|
|
|
}
|
|
|
|
|
|
/deep/ .shuliang .text-size-n {
|
|
@@ -332,9 +335,8 @@
|
|
|
}
|
|
|
|
|
|
/deep/ .shangpin .tm-cartCellListFood {
|
|
|
- padding: 0px 0px 15px 0px !important;
|
|
|
- margin-top: 5px !important;
|
|
|
- margin-bottom: 20px !important;
|
|
|
+ margin: 5px 0px 20px !important;
|
|
|
+ padding-bottom: 15px !important;
|
|
|
border-bottom: 1px solid #1B1B1B;
|
|
|
}
|
|
|
|
|
@@ -342,10 +344,7 @@
|
|
|
border-top: 1px solid #1b1b1b !important;
|
|
|
}
|
|
|
|
|
|
- /deep/ .shangpin .title {
|
|
|
- color: white !important;
|
|
|
- }
|
|
|
-
|
|
|
+ /deep/ .shangpin .title,
|
|
|
/deep/ .shangpin .text-red {
|
|
|
color: white !important;
|
|
|
}
|
|
@@ -401,8 +400,7 @@
|
|
|
.jia-btn {
|
|
|
width: 70px;
|
|
|
height: 70px;
|
|
|
- border: 1px solid #ffffff;
|
|
|
+ border: 1px solid #eeeeee;
|
|
|
border-radius: 4px;
|
|
|
-
|
|
|
}
|
|
|
</style>
|