2 次代码提交 44b7ef7f68 ... 932d86d980

作者 SHA1 备注 提交日期
  Jing-Jiu 932d86d980 Merge branch 'master' of http://121.40.40.223:3000/zizhong.wang/konggang-city-miniprogram 4 年之前
  Jing-Jiu 4bf7adce88 update 4 年之前

+ 10 - 5
pages/enterprise/enterprise_detail.vue

@@ -4,7 +4,7 @@
       <view class="logo">
         <image
           :src="'https://kiq.xazhima.com' + info.pic_url"
-          alt=""
+          alt="" class="logo-img"
           mode="aspectFit"
         ></image>
       </view>
@@ -423,13 +423,18 @@ export default {
     margin-bottom: 50rpx;
     box-shadow: rgba(0, 0, 0, 0.35) 0rpx 5rpx 15rpx;
     height: 150rpx;
+    padding: 0 20rpx;
     .logo {
-      image {
-        width: 100rpx;
-        height: 100rpx;
-        margin: 0 30rpx;
+      width: 150rpx;
+      height: 100rpx;
+      .logo-img {
+        max-width: 100%;
+        max-height: 100%;
       }
     }
+    .name{
+      margin-left: 30rpx;
+    }
   }
   .baseInfo {
     margin-bottom: 50rpx;

+ 4 - 2
pages/enterprise/index.vue

@@ -227,14 +227,16 @@ export default {
         align-items: center;
         .logo {
           margin-right: 30rpx;
-          width: 100rpx;
-          height: 100rpx;
           display: flex;
           justify-content: center;
           align-items: center;
           overflow: hidden;
+          width: 150rpx;
+          height: 100rpx;
+          overflow: hidden;
           .logo-img {
             max-width: 100%;
+            max-height: 100%;
           }
         }
       }

+ 1 - 1
pages/enterprise/product_detail.vue

@@ -80,7 +80,7 @@ export default {
     box-shadow: rgba(0, 0, 0, 0.35) 0rpx 5rpx 15rpx;
     .logo {
       image {
-        width: 200rpx;
+        width: 150rpx;
         height: 100rpx;
         margin: 0 30rpx;
       }

+ 46 - 25
pages/supply/putSupply.vue

@@ -35,8 +35,10 @@
         <view>上传图片:</view>
         <view class="update_container card upload-parent-box">
           <view class="update_button display-flex">
-            <view class="display-flex upload-box" @click="getImage('album')">
-              <img src="/static/appeal/photo.png" />
+            <view class="upload-box" @click="getImage('album')">
+              <view class="img">
+                <image src="/static/appeal/photo.png" class="photo"></image>
+              </view>
               <view class="txt">上传</view>
             </view>
             <view
@@ -88,13 +90,13 @@ export default {
       array: [{ name: "供需" }, { name: "需求" }],
       index: 0,
       supplyInfo: {
-        title: uni.getStorageSync('supply_title') || '',
-        msg: uni.getStorageSync('supply_msg') || '',
+        title: "",
+        msg: "",
       },
       company: {
-        name: uni.getStorageSync('supply_name') || '',
-        code: uni.getStorageSync('supply_code') || '',
-        tel: uni.getStorageSync('supply_tel') || '',
+        name: uni.getStorageSync("supply_name") || "",
+        code: uni.getStorageSync("supply_code") || "",
+        tel: uni.getStorageSync("supply_tel") || "",
       },
       uploadList: [],
       imgIdList: [],
@@ -107,13 +109,11 @@ export default {
         this.company.code === "" ||
         this.company.tel === ""
       ) {
-        uni.showToast(
-          {
-            title: "企业信息不完善",
-            icon:'error'
-          }
-        );
-        return
+        uni.showToast({
+          title: "企业信息不完善",
+          icon: "error",
+        });
+        return;
       }
 
       let md5Sign = md5(
@@ -155,11 +155,9 @@ export default {
               icon: "none",
               duration: 2500,
             });
-            uni.setStorageSync('supply_name',this.company.name);
-            uni.setStorageSync('supply_code',this.company.code);
-            uni.setStorageSync('supply_tel',this.company.tel);
-            uni.setStorageSync('supply_title',this.supplyInfo.title);
-            uni.setStorageSync('supply_msg',this.supplyInfo.msg);
+            uni.setStorageSync("supply_name", this.company.name);
+            uni.setStorageSync("supply_code", this.company.code);
+            uni.setStorageSync("supply_tel", this.company.tel);
             setTimeout(() => {
               uni.navigateBack({});
             }, 2500);
@@ -267,14 +265,16 @@ export default {
   padding-left: 20rpx;
 }
 .upload-box {
+  display: flex;
+  flex-flow: column;
   width: 25%;
   background-color: #e0e0e0;
-  height: 110rpx;
+  height: 140rpx;
   border-radius: 10rpx;
   padding-top: 15rpx;
-  img {
-    width: 60rpx;
-    height: 60rpx;
+  image {
+    width: 60rpx !important;
+    height: 60rpx !important;
   }
 }
 .upload-box-photo {
@@ -363,12 +363,33 @@ export default {
         }
       }
     }
+    .upload-box {
+      width: 25%;
+      background-color: #e0e0e0;
+      height: 110rpx;
+      border-radius: 10rpx;
+      padding-top: 15rpx;
+    }
+    .upload-box-photo {
+      width: 25%;
+      height: 110rpx;
+      border-radius: 10rpx;
+      padding-top: 15rpx;
+      position: relative;
+    }
+    .del-icon {
+      position: absolute;
+      right: 0;
+      width: 30rpx;
+      height: 30rpx;
+    }
     image {
-      width: 100rpx;
-      height: 100rpx;
+      width: 60rpx;
+      height: 60rpx;
     }
     .update_button {
       text-align: center;
+      display: flex;
     }
   }
   .info {

+ 1 - 3
pages/supply/supply_detail.vue

@@ -63,7 +63,6 @@ export default {
   },
   onLoad(op) {
     this.id = op.id;
-    console.log(this.id);
     this.getSupplyDeatil();
   },
   methods: {
@@ -96,9 +95,8 @@ export default {
         },
         data: postData,
         success: (res) => {
+          console.log(res.data.data);
           if (res.data.code === 200) {
-            console.log(res);
-            // this.getRich();
             let data = res.data.data;
             this.details = data.content;
             this.title = data.title;