Commit 13fadda7 authored by wangqinghua's avatar wangqinghua

抢购

parent 46613ff7
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter.test" version="4.5.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.smart19.starter.test" version="4.5.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>部机关党建云</name> <name>部机关党建云</name>
<description>组织部党建云平台App.</description> <description>组织部党建云平台App.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"proxies": [ "proxies": [
{ {
"path": "/wisdomgroup", "path": "/wisdomgroup",
"proxyUrl": "http://47.103.33.196:8080/wisdomgroup" "proxyUrl": "http://218.78.19.169:8081/wisdomgroup"
}, },
{ {
"path": "/logistics", "path": "/logistics",
......
#Thu Aug 15 02:35:07 CST 2019 #Mon Aug 19 09:00:05 CST 2019
/Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/drawable-xhdpi-v4/notification_bg_normal.9.png=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/drawable-xhdpi-v4_notification_bg_normal.9.png.flat /Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/drawable-xhdpi-v4/notification_bg_normal.9.png=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/drawable-xhdpi-v4_notification_bg_normal.9.png.flat
/Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/drawable-hdpi-v4/notification_bg_low_pressed.9.png=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/drawable-hdpi-v4_notification_bg_low_pressed.9.png.flat /Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/drawable-hdpi-v4/notification_bg_low_pressed.9.png=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/drawable-hdpi-v4_notification_bg_low_pressed.9.png.flat
/Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/layout/notification_action_tombstone.xml=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/layout_notification_action_tombstone.xml.flat /Users/ben/.gradle/caches/transforms-1/files-1.1/support-compat-27.1.0.aar/45a22bc138864dd211a4392ad5c08606/res/layout/notification_action_tombstone.xml=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/merged/release/layout_notification_action_tombstone.xml.flat
......
#Sun Aug 18 17:34:03 CST 2019 #Sun Aug 18 19:47:54 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0 base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0
renamed.0=classes.dex renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex
#Thu Aug 15 02:35:17 CST 2019 #Mon Aug 19 09:00:14 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0 base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0
renamed.0=classes.dex renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/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. #Internal package file, do not edit.
#Thu Aug 15 02:35:17 CST 2019 #Mon Aug 19 09:00:14 CST 2019
20.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_ 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 143.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release
439.set=ASSET 439.set=ASSET
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
290.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-mdpi-v4/notify_panel_notification_icon_bg.png 290.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-mdpi-v4/notify_panel_notification_icon_bg.png
356.set=ANDROID_RESOURCE 356.set=ANDROID_RESOURCE
120.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/resources.arsc 120.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/resources.arsc
153.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-land-hdpi-v4/screen.png 153.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-xhdpi-v4/notify_panel_notification_icon_bg.png
279.set=ASSET 279.set=ASSET
324.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release/www/assets/imgs/mine/barCode_prod.png 324.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release/www/assets/imgs/mine/barCode_prod.png
202.set=ASSET 202.set=ASSET
...@@ -625,7 +625,7 @@ ...@@ -625,7 +625,7 @@
410.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release 410.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release
95.set=ANDROID_RESOURCE 95.set=ANDROID_RESOURCE
346.set=ASSET 346.set=ASSET
152.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-xhdpi-v4/notify_panel_notification_icon_bg.png 152.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/res/release/resources-release.ap_/res/drawable-land-hdpi-v4/screen.png
269.set=ANDROID_RESOURCE 269.set=ANDROID_RESOURCE
323.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release/www/build/97.js 323.file=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release/www/build/97.js
36.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release 36.base=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/assets/release
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ionic.smart19.starter" package="io.ionic.smart19.starter.test"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"
android:versionCode="40500" android:versionCode="40507"
android:versionName="4.5.0" > android:versionName="4.5.7" >
<uses-sdk <uses-sdk
android:minSdkVersion="16" android:minSdkVersion="16"
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:supportsRtl="true" > android:supportsRtl="true" >
<activity <activity
android:name="io.ionic.smart19.starter.MainActivity" android:name="io.ionic.smart19.starter.test.MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:label="@string/activity_name" android:label="@string/activity_name"
android:launchMode="singleTop" android:launchMode="singleTop"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<provider <provider
android:name="io.github.pwlin.cordova.plugins.fileopener2.FileProvider" android:name="io.github.pwlin.cordova.plugins.fileopener2.FileProvider"
android:authorities="io.ionic.smart19.starter.opener.provider" android:authorities="io.ionic.smart19.starter.test.opener.provider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true" > android:grantUriPermissions="true" >
<meta-data <meta-data
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</provider> </provider>
<provider <provider
android:name="org.apache.cordova.camera.FileProvider" android:name="org.apache.cordova.camera.FileProvider"
android:authorities="io.ionic.smart19.starter.provider" android:authorities="io.ionic.smart19.starter.test.provider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true" > android:grantUriPermissions="true" >
<meta-data <meta-data
......
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40500},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40507},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter.test","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40500},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40507},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter.test","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40500},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40507},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter.test","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
io.ionic.smart19.starter io.ionic.smart19.starter.test
int attr coordinatorLayoutStyle 0x7f010000 int attr coordinatorLayoutStyle 0x7f010000
int attr font 0x7f010001 int attr font 0x7f010001
int attr fontProviderAuthority 0x7f010002 int attr fontProviderAuthority 0x7f010002
......
[{"name":"main","index":0,"scopes":["SUB_PROJECTS","EXTERNAL_LIBRARIES","PROJECT"],"types":["DEX"],"format":"DIRECTORY","present":true}] [{"name":"main","index":0,"scopes":["EXTERNAL_LIBRARIES","PROJECT","SUB_PROJECTS"],"types":["DEX"],"format":"DIRECTORY","present":true}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40500},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40507},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter.test","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
...@@ -42,7 +42,7 @@ INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/ ...@@ -42,7 +42,7 @@ INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/
INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:1-30:12 INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:1-30:12
INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:1-30:12 INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:1-30:12
package package
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:102-136 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:102-141
INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml
INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml
android:versionName android:versionName
...@@ -52,7 +52,7 @@ INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/ ...@@ -52,7 +52,7 @@ INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/
android:hardwareAccelerated android:hardwareAccelerated
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:11-45 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:11-45
xmlns:android xmlns:android
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:137-195 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:142-200
android:versionCode android:versionCode
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:46-73 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:2:46-73
INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml INJECTED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml
...@@ -81,7 +81,7 @@ ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src ...@@ -81,7 +81,7 @@ ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:4:18-52 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:4:18-52
android:icon android:icon
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:4:53-80 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:4:53-80
activity#io.ionic.smart19.starter.MainActivity activity#io.ionic.smart19.starter.test.MainActivity
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:5:9-10:20 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:5:9-10:20
android:label android:label
ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:5:97-134 ADDED from /Users/ben/gitLab-project/party-build-cloud/platforms/android/app/src/main/AndroidManifest.xml:5:97-134
......
...@@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none'; ...@@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none';
<span class="mdl-layout-title">Lint Report: 1 error</span> <span class="mdl-layout-title">Lint Report: 1 error</span>
<div class="mdl-layout-spacer"></div> <div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only"> <nav class="mdl-navigation mdl-layout--large-screen-only">
Check performed at Thu Aug 15 02:35:19 CST 2019 </nav> Check performed at Mon Aug 19 09:00:16 CST 2019 </nav>
</div> </div>
</header> </header>
<div class="mdl-layout__drawer"> <div class="mdl-layout__drawer">
......
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="40500" android:versionName="4.5.0" package="io.ionic.smart19.starter.test" xmlns:android="http://schemas.android.com/apk/res/android"> <manifest android:hardwareAccelerated="true" android:versionCode="40507" android:versionName="4.5.7" package="io.ionic.smart19.starter.test" 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" /> <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"> <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"> <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'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter.test" version="4.5.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.smart19.starter.test" version="4.5.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="Keyboard"> <feature name="Keyboard">
<param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" /> <param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" />
</feature> </feature>
......
...@@ -51,7 +51,7 @@ export class MyApp { ...@@ -51,7 +51,7 @@ export class MyApp {
this.statusBar.styleLightContent(); this.statusBar.styleLightContent();
timer(500).subscribe((res) => { timer(4500).subscribe((res) => {
this.showSplash = false; this.showSplash = false;
this.device(); this.device();
this.loadLogin(); this.loadLogin();
......
...@@ -184,7 +184,7 @@ export class FoodPage { ...@@ -184,7 +184,7 @@ export class FoodPage {
this.serveSer.getGoodsInfo().subscribe( this.serveSer.getGoodsInfo().subscribe(
(res) => { (res) => {
if (res.data && res.data.length > 0) { if (res.data && res.data.length > 0) {
const arr = res.data.filter(e=>e.isPurchasing == 0); const arr = res.data.filter(e=>e.isPurchasing == 1);
if(arr.length > 0) { if(arr.length > 0) {
this.navCtrl.push(RushBuyPage); this.navCtrl.push(RushBuyPage);
}else{ }else{
......
...@@ -15,7 +15,7 @@ export class RushBuyPage { ...@@ -15,7 +15,7 @@ export class RushBuyPage {
foodText: '请选择', foodText: '请选择',
type: null, type: null,
unitPrice: null, unitPrice: null,
version: null, purchaseVersion: null,
remark:null remark:null
}; };
foodList; foodList;
...@@ -35,10 +35,10 @@ export class RushBuyPage { ...@@ -35,10 +35,10 @@ export class RushBuyPage {
(res) => { (res) => {
this.foodList = res.data; this.foodList = res.data;
this.obj.foodText = this.foodList[0].goodsName; this.obj.foodText = this.foodList[0].goodsName;
this.obj.version = this.foodList[0].version; this.obj.purchaseVersion = this.foodList[0].version;
this.obj.unitPrice = this.foodList[0].unitPrice; this.obj.unitPrice = this.foodList[0].unitPrice;
this.obj.type = this.foodList[0].id this.obj.type = this.foodList[0].id;
this.obj.remark = this.foodList[0].remark this.obj.remark = this.foodList[0].remark;
} }
) )
} }
...@@ -50,7 +50,7 @@ export class RushBuyPage { ...@@ -50,7 +50,7 @@ export class RushBuyPage {
role: e.id, role: e.id,
handler: () => { handler: () => {
this.obj.foodText = e.goodsName; this.obj.foodText = e.goodsName;
this.obj.version = e.version; this.obj.purchaseVersion = e.version;
this.obj.unitPrice = e.unitPrice; this.obj.unitPrice = e.unitPrice;
this.obj.type = e.id this.obj.type = e.id
} }
...@@ -95,7 +95,7 @@ export class RushBuyPage { ...@@ -95,7 +95,7 @@ export class RushBuyPage {
type: this.obj.type, type: this.obj.type,
peopleCount: this.obj.peopleCount, peopleCount: this.obj.peopleCount,
unitPrice: this.obj.unitPrice, unitPrice: this.obj.unitPrice,
version: this.obj.version version: this.obj.purchaseVersion
}; };
this.serveSer.saveMeals(data).subscribe( this.serveSer.saveMeals(data).subscribe(
(res) => { (res) => {
......
...@@ -185,7 +185,6 @@ export class MeetRoomPage { ...@@ -185,7 +185,6 @@ export class MeetRoomPage {
chooseType(item, time) { chooseType(item, time) {
const nowDate = new Date().getTime(); const nowDate = new Date().getTime();
const chooseDate = new Date(this.date +' 23:59:59').getTime(); const chooseDate = new Date(this.date +' 23:59:59').getTime();
console.log(nowDate,chooseDate);
if(nowDate > chooseDate && !item.applicantName) { if(nowDate > chooseDate && !item.applicantName) {
this.commonSer.toast('该时间会议室不可预定'); this.commonSer.toast('该时间会议室不可预定');
return false; return false;
......
...@@ -99,9 +99,9 @@ export class RoomApplyPage { ...@@ -99,9 +99,9 @@ export class RoomApplyPage {
const data = this.navParams.get('data'); const data = this.navParams.get('data');
if (data) { if (data) {
console.log(data); console.log(data);
this.obj.startTimeChange = this.datePipe.transform(new Date(), 'yyyy-MM-ddTHH:mm:ss'); this.obj.startTimeChange = this.datePipe.transform(data.startTime, 'yyyy-MM-ddTHH:mm:ss');
this.obj.endTimeChange = this.datePipe.transform(new Date(), 'yyyy-MM-ddTHH:mm:ss'); this.obj.endTimeChange = this.datePipe.transform(data.startTime, 'yyyy-MM-ddTHH:mm:ss');
this.nowDate = this.datePipe.transform(new Date(), 'yyyy-MM-ddTHH:mm:ss'); this.nowDate = this.datePipe.transform(data.startTime, 'yyyy-MM-ddTHH:mm:ss');
this.obj.roomId = data.roomId; this.obj.roomId = data.roomId;
this.obj.roomText = data.roomName; this.obj.roomText = data.roomName;
this.roomMax = `该会议室可容纳${data.accommodation}人`; this.roomMax = `该会议室可容纳${data.accommodation}人`;
...@@ -157,9 +157,9 @@ export class RoomApplyPage { ...@@ -157,9 +157,9 @@ export class RoomApplyPage {
this.obj.roomText = res.roomName; this.obj.roomText = res.roomName;
this.getEquipmervice(this.obj.equipmervice); this.getEquipmervice(this.obj.equipmervice);
if(new Date(res.startTime).getTime() < new Date().getTime()){ if (new Date(res.startTime).getTime() < new Date().getTime()) {
this.overTime = true; this.overTime = true;
}else{ } else {
this.overTime = false; this.overTime = false;
} }
} }
...@@ -341,6 +341,7 @@ export class RoomApplyPage { ...@@ -341,6 +341,7 @@ export class RoomApplyPage {
const clock12 = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd 12:00')).getTime(); const clock12 = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd 12:00')).getTime();
const startTime = new Date(this.obj.startTime).getTime(); const startTime = new Date(this.obj.startTime).getTime();
const endTime = new Date(this.obj.endTime).getTime(); const endTime = new Date(this.obj.endTime).getTime();
const nowDate = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd HH:mm:ss')).getTime();
console.log("clock12:" + clock12); console.log("clock12:" + clock12);
console.log("startTime:" + startTime); console.log("startTime:" + startTime);
console.log("startTime:" + this.datePipe.transform(startTime, 'yyyy-MM-dd HH:mm')); console.log("startTime:" + this.datePipe.transform(startTime, 'yyyy-MM-dd HH:mm'));
...@@ -349,6 +350,10 @@ export class RoomApplyPage { ...@@ -349,6 +350,10 @@ export class RoomApplyPage {
this.commonSer.toast('时间选择错误'); this.commonSer.toast('时间选择错误');
return return
} }
if (startTime == endTime || nowDate > startTime) {
this.commonSer.toast('时间选择错误');
return
}
return true; return true;
} }
...@@ -370,7 +375,6 @@ export class RoomApplyPage { ...@@ -370,7 +375,6 @@ export class RoomApplyPage {
submit() { submit() {
if (!this.checkTime()) { if (!this.checkTime()) {
this.commonSer.toast("时间有误");
return; return;
} }
......
...@@ -552,9 +552,8 @@ export class DiscoverPage { ...@@ -552,9 +552,8 @@ export class DiscoverPage {
e.resourceType = e.attachments[0].resourceType; e.resourceType = e.attachments[0].resourceType;
} }
}); });
this.totalNum = res.data.total;
this.slideList[this.indexParent] = this.newList; this.slideList[this.indexParent] = this.newList;
console.log(this.slideList);
console.log(this.slideList[this.indexParent]);
} }
) )
} }
...@@ -616,6 +615,7 @@ export class DiscoverPage { ...@@ -616,6 +615,7 @@ export class DiscoverPage {
//上拉加载更多 //上拉加载更多
doInfinite(e) { doInfinite(e) {
console.log('total:'+this.totalNum)
if (this.totalNum == this.slideList[this.indexParent].length || this.totalNum < this.slideList[this.indexParent].length) { if (this.totalNum == this.slideList[this.indexParent].length || this.totalNum < this.slideList[this.indexParent].length) {
e.complete(); e.complete();
return false; return false;
......
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