Browse Source

Android修改,移除商家端,删除选择绿币提示

wr_2024_invoice
wurong 7 months ago
parent
commit
0890c4c1c6
  1. 2
      android/app/build.gradle
  2. BIN
      android/app/libs/uniMPSDK-release.aar
  3. 7
      android/app/src/main/AndroidManifest.xml
  4. 4
      android/app/src/main/kotlin/com/zsw/huixiang/HxApplication.kt
  5. 2
      android/gradle/wrapper/gradle-wrapper.properties
  6. 18
      lib/mine/mine_view/mine_item.dart
  7. 3
      lib/retrofit/min_api.dart
  8. 3
      lib/retrofit/retrofit_api.dart
  9. 23
      lib/settlement/settlement_view/pay_method.dart
  10. 14
      lib/utils/upload_async.dart
  11. 193
      pubspec.lock
  12. 2
      pubspec.yaml

2
android/app/build.gradle

@ -111,6 +111,8 @@ android {
versionName flutterVersionName
manifestPlaceholders = mfph
multiDexEnabled true
}
signingConfigs {

BIN
android/app/libs/uniMPSDK-release.aar

Binary file not shown.

7
android/app/src/main/AndroidManifest.xml

@ -43,6 +43,7 @@
android:name=".MainActivity"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:exported="true"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
@ -113,5 +114,11 @@
android:name="flutterEmbedding"
android:value="2" />
<receiver android:name="com.huawei.hms.support.api.push.PushMsgReceiver"
android:exported="true"/>
<receiver android:name="com.huawei.hms.support.api.push.PushReceiver"
android:exported="true"/>
</application>
</manifest>

4
android/app/src/main/kotlin/com/zsw/huixiang/HxApplication.kt

@ -1,9 +1,9 @@
package com.zsw.huixiang
import android.app.Application
import com.baidu.mapapi.base.BmfMapApplication
class HxApplication : BmfMapApplication() {
class HxApplication : Application() {
override fun onCreate() {

2
android/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

18
lib/mine/mine_view/mine_item.dart

@ -353,23 +353,7 @@ class _MineItem extends State<MineItem> {
///
Expanded(
child: ExamineInstance.instance.isExamine ? Container():InkWell(
onTap: () {
SharedPreferences.getInstance().then((value) {
if (value.getString("account") == "" ||
value.getString("password") == "") {
Navigator.of(context).pushNamed('/router/business_login_page');
} else {
login(value.getString("account"),
value.getString("password"));
}
});
},
child: mineItem(
"商家管理",
"assets/image/business.webp",
),
),
child: Container(),
),
Expanded(
child: Container(),

3
lib/retrofit/min_api.dart

@ -27,9 +27,8 @@ import 'data/shopping_home_config.dart';
part 'min_api.g.dart';
// const localBaseUrl = "http://192.168.10.54:8765/app/";///
const localBaseUrl = "http://192.168.10.54:8765/app/";///
// const localBaseUrl = "http://pos-test.api.lotus-wallet.com/app/";///
const localBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线
const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线

3
lib/retrofit/retrofit_api.dart

@ -66,9 +66,8 @@ import 'data/wx_pay.dart';
part 'retrofit_api.g.dart';
// const localBaseUrl = "http://192.168.10.54:8766/app/";///
const localBaseUrl = "http://192.168.10.54:8766/app/";///
// const localBaseUrl = "http://platform.test.api.lotus-wallet.com/app/";///
const localBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线
const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线
const ipBaseUrl = "http://whois.pconline.com.cn";

23
lib/settlement/settlement_view/pay_method.dart

@ -188,16 +188,21 @@ class _PayMethod extends State<PayMethod> {
onTap: () {
setState(() {
checkIndex = 3;
if(widget.promotions != "" || widget.coupons != "" || widget.useVipPriceSelect || widget.useBenefitSelect){
SmartDialog.show(
widget: SettlementTips(
() {
},
text: "绿币支付不参与任何活动优惠,请重新选择支付方式",
));
return;
}
// if(widget.promotions != "" || widget.coupons != "" || widget.useVipPriceSelect || widget.useBenefitSelect){
// print("discount-promotions: ${widget.promotions}");
// print("discount-coupons: ${widget.coupons}");
// print("discount-useVipPriceSelect: ${widget.useVipPriceSelect}");
// print("discount-useBenefitSelect: ${widget.useBenefitSelect}");
// SmartDialog.show(
// widget: SettlementTips(
// () {
// },
// text: "绿币支付不参与任何活动优惠,请重新选择支付方式",
// ));
// return;
// }
});
print("discount-payChannelCheck: 5");
widget.payChannelCheck(5);
},
child: Row(

14
lib/utils/upload_async.dart

@ -5,9 +5,9 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:image_gallery_saver/image_gallery_saver.dart';
import 'package:image_pickers/image_pickers.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:thumbnails/thumbnails.dart';
import '../community/release_dynamic.dart';
import '../retrofit/data/base_data.dart';
@ -143,11 +143,15 @@ class UploadAsync {
await File(element.thumbPath).exists()) {
thumbnail = element.thumbPath;
} else {
thumbnail = await Thumbnails.getThumbnail(
videoFile: file.path,
imageType: ThumbFormat.JPEG,
quality: 10,
var result = await ImageGallerySaver.saveFile(
file.path,
isReturnPathOfIOS: true,
);
if (result["isSuccess"] == true) {
thumbnail = element.thumbPath;
} else {
thumbnail = element.thumbPath;
}
}
if (thumbnail != null &&
thumbnail != "" &&

193
pubspec.lock

File diff suppressed because it is too large Load Diff

2
pubspec.yaml

@ -88,7 +88,7 @@ dependencies:
photo_view: ^0.13.0
video_player: ^2.2.3
thumbnails: ^1.0.1
# thumbnails: ^1.0.1
# media_info: ^0.9.0
# flutter_ffmpeg: ^0.4.2

Loading…
Cancel
Save