Commit 5644f15f authored by wangqinghua's avatar wangqinghua

评论图片修正

parent 01c3435d
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter" version="4.3.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="io.ionic.smart19.starter" version="4.3.8" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>部机关党建云</name>
<description>组织部党建云平台App.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
......
#Fri Jul 12 18:47:03 CST 2019
#Fri Jul 12 20:41:36 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0
renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex
#Fri Jul 12 16:03:01 CST 2019
#Fri Jul 12 22:18:57 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0
renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0/classes.dex
#Internal package file, do not edit.
#Fri Jul 12 16:03:01 CST 2019
#Fri Jul 12 22:18:57 CST 2019
20.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_
143.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release
340.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release/www/assets/imgs/loading.gif
......
......@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ionic.smart19.starter"
android:hardwareAccelerated="true"
android:versionCode="40307"
android:versionName="4.3.7" >
android:versionCode="40308"
android:versionName="4.3.8" >
<uses-sdk
android:minSdkVersion="16"
......
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40307},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40308},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40307},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40308},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40307},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40308},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40307},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40308},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file
......@@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none';
<span class="mdl-layout-title">Lint Report: 1 error</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
Check performed at Fri Jul 12 16:03:16 CST 2019 </nav>
Check performed at Fri Jul 12 22:19:00 CST 2019 </nav>
</div>
</header>
<div class="mdl-layout__drawer">
......
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="40307" android:versionName="4.3.7" package="io.ionic.smart19.starter" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="40308" android:versionName="4.3.8" package="io.ionic.smart19.starter" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
......
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter" version="4.3.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="io.ionic.smart19.starter" version="4.3.8" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="Keyboard">
<param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" />
</feature>
......
<div class="main" >
<div class="content" (click)="close()" >
<div class="main">
<div class="content" (click)="close()">
<div class="comment" (click)="stop($event)">
<ion-row class="comment-item">
<ion-col col-2>
<img src="./assets/imgs/man.png" class="contact-img">
<ng-container *ngIf="comment?.picUrl && comment?.picUrl != ''">
<img src="{{picture+comment?.picUrl}}" class="contact-img">
</ng-container>
<ng-container *ngIf="!comment?.picUrl || comment?.picUrl == ''">
<img src="./assets/imgs/man.png" class="contact-img"
*ngIf="comment?.userGender =='1'||comment?.userGender==null">
<img src="./assets/imgs/woman.png" class="contact-img" *ngIf="comment?.userGender =='0'">
</ng-container>
</ion-col>
<ion-col col-10 style="padding-bottom: 5px;border-bottom: 1px solid #eeeeee">
<p class="comment-info">
......@@ -22,7 +29,15 @@
<ion-col offset-2 col-10>
<ion-row class="comment-item">
<ion-col col-2>
<img src="./assets/imgs/man.png" class="contact-img">
<ng-container *ngIf="reply?.picUrl && reply?.picUrl != ''">
<img src="{{picture+reply?.picUrl}}" style="width: 36px;height: 36px;" class="contact-img">
</ng-container>
<ng-container *ngIf="!reply?.picUrl || reply?.picUrl == ''">
<img src="./assets/imgs/man.png" style="width: 36px;height: 36px;" class="contact-img"
*ngIf="reply?.userGender =='1'||reply?.userGender==null">
<img src="./assets/imgs/woman.png" style="width: 36px;height: 36px;" class="contact-img"
*ngIf="reply?.userGender =='0'">
</ng-container>
</ion-col>
<ion-col col-10>
<p class="comment-info">
......
......@@ -20,8 +20,9 @@ reply {
}
.comment-item {
.contact-img{
border-radius: 100px;
width: 75%;
border-radius: 50%;
width: 50px;
height: 50px;
text-align: center;
margin-top: 8px;
}
......
import {Component} from '@angular/core';
import {NavController, NavParams, ViewController} from "ionic-angular";
import {AppService} from "../../service/http.service";
import {AppGlobal, AppService} from "../../service/http.service";
import {TabsService} from "../../pages/tabs/tabs.service";
@Component({
......@@ -12,6 +12,7 @@ export class ReplyComponent {
comment;
relpyList;
replyContent;
picture: string = AppGlobal.picture;
constructor(public navCtrl: NavController, public navParams: NavParams,
private tabSer: TabsService,
......
......@@ -138,6 +138,7 @@ page-discover {
max-height: 60px;
img {
height: 100%;
border-radius: .5rem;
}
}
......
......@@ -412,13 +412,18 @@ export class DiscoverPage {
this.newList = res.data.list;
this.newList.forEach(e => {
if (e.attachments && e.attachments.length > 0) {
if(e.attachments[0].resourceType != 2){
e.path = e.attachments[0].path;
e.resourceType = e.attachments[0].resourceType;
}else if(e.attachments.length > 1){
e.path = e.attachments[1].path;
e.resourceType = e.attachments[1].resourceType;
}
}
});
this.swiper.slideTo(this.indexParent, 500);
this.slideList[this.indexParent] = this.newList;
console.log(this.newList);
this.getMore(res);
}
)
......
......@@ -17,8 +17,8 @@ export class AppGlobal {
// static domain = "http://192.168.2.235:8080"; //测试环境
// static domain = "http://47.103.33.196:8080"; //阿里云正式地址
// static domain = "http://47.103.35.216:8080"; //阿里云测试地址
static domain = "http://218.78.19.169:8081"; //天翼云测试地址
// static domain = ""; //本地环境
// static domain = "http://218.78.19.169:8081"; //天翼云测试地址
static domain = ""; //本地环境
//图片地址
// static picture = AppGlobal.domain + "/wisdomgroup/manager/getIcon/"; //正式地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment