Bläddra i källkod

feat: 显示头像

Moss 1 år sedan
förälder
incheckning
02ef798a31

+ 1 - 1
src/components/zj-dialog/zj-dialog-deliver.vue

@@ -111,7 +111,7 @@
           params.logisticsNum = this.orderNoe;
         }
 
-				this.$api.post('/orderPay/logisticsAdd', {
+				this.$api.postJson('/orderPay/logisticsAdd', {
           goodsId: this.goodsId,
           logisticsType: this.type === 1 ? 'SELF' : 'DELIVERY',
           ...params

+ 4 - 4
src/pages/goods/detail.vue

@@ -13,7 +13,7 @@
     	@refresherrefresh="refresherrefresh">
       <view class="top-container">
         <view class="user">
-          <image src="@/static/common/logo.png"></image>
+          <image :src="detail.userPic ? (imageUrl + detail.userPic) : require('@/static/common/logo.png')"></image>
           <view class="info">
             <view class="name">{{detail.userName}}</view>
             <view class="phone">联系电话:{{detail.phone}}</view>
@@ -73,7 +73,7 @@
         </view>
         <view class="item" v-for="(item, index) in remarkList" :key="index">
           <view class="top">
-            <image src="@/static/common/logo.png"></image>
+            <image :src="item.userPic ? (imageUrl + item.userPic) : require('@/static/common/logo.png')"></image>
             <view class="user">
               <view class="name">{{item.userName}}</view>
               <view class="time">{{item.createTime}}</view>
@@ -593,8 +593,8 @@
       margin-top: 20rpx;
       .it {
         margin-top: 16rpx;
-        font-size: 24rpx;
-        line-height: 30rpx;
+        font-size: 26rpx;
+        line-height: 32rpx;
         word-break: break-all;
         &:first-child {
           margin-top: 0;

+ 1 - 1
src/pages/goods/list.vue

@@ -40,7 +40,7 @@
           <image src="@/static/common/soldout.png" mode="widthFix"></image>
         </view>
         <view class="top">
-          <image src="@/static/common/logo.png"></image>
+          <image :src="item.userPic ? (imageUrl + item.userPic) : require('@/static/common/logo.png')"></image>
           <view class="user">
             <view class="name">{{item.userName}}</view>
             <view class="time">{{item.createTime}}</view>

+ 1 - 1
src/pages/index/index.vue

@@ -37,7 +37,7 @@
               <image src="@/static/common/soldout.png" mode="widthFix"></image>
             </view>
             <view class="top">
-              <image src="@/static/common/logo.png"></image>
+              <image :src="item.userPic ? (imageUrl + item.userPic) : require('@/static/common/logo.png')"></image>
               <view class="user">
                 <view class="name">{{item.userName}}</view>
                 <view class="time">{{item.createTime | timeFilter}}发布</view>

+ 1 - 1
src/pages/mine/myIssue/list.vue

@@ -29,7 +29,7 @@
       <view class="common-order-list">
         <view class="item" v-for="(item, index) in dataList" :key="index" @tap="toDetail(item.id)">
           <view class="top">
-            <image src="@/static/common/logo.png"></image>
+            <image :src="item.userPic ? (imageUrl + item.userPic) : require('@/static/common/logo.png')"></image>
             <view class="user">
               <view class="name">{{item.userName}}</view>
               <view class="time">{{item.createTime | timeFilter}}发布</view>