Browse Source

update printer code

dev
赵明涛 7 months ago
parent
commit
4b13966eec
  1. 12
      app/build.gradle
  2. 2
      app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js
  3. 5
      uniapp_project_code/src/pages/pay/index.vue
  4. 4
      uniapp_project_code/src/utils/api.js

12
app/build.gradle

@ -8,8 +8,8 @@ android {
minSdkVersion 21
targetSdkVersion 28 //21 io.dcloud.PandoraEntry apk入口时 targetSDKVersion>=21
versionCode 114
versionName "1.1.4"
versionCode 116
versionName "1.1.6"
multiDexEnabled true
ndk {
// abiFilters 'x86','armeabi-v7a'
@ -36,9 +36,9 @@ android {
buildTypes {
release {
signingConfig signingConfigs.config
zipAlignEnabled true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// zipAlignEnabled false
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.config
@ -97,7 +97,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
//leakcanary-debug模式下分析内存泄露
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
// uni-app插件
implementation project(':uniplugin_component')
implementation project(':uniplugin_module')

2
app/src/main/assets/apps/__UNI__3B4D40B/www/app-service.js
File diff suppressed because it is too large
View File

5
uniapp_project_code/src/pages/pay/index.vue

@ -367,7 +367,6 @@
printOrder(checkInfo){
console.warn("printOrder checkInfo: ",checkInfo)
util.showNone("小票打印中...")
let {store_id,brand_id,token} = getApp().globalData.accountInfo
let stadiumInfo = uni.getStorageSync('stadiumInfo')
let {venue_name} = stadiumInfo
@ -375,6 +374,10 @@
let {finishedDate:time,transNo:order_no} = checkInfo.payRes.res
time = this.getTimeFromFinishedDate(time)
if(!checkInfo||!order_no)return;
util.showNone("小票打印中...")
let print_info = {
...this.dataQuery,venue_name,time,order_no

4
uniapp_project_code/src/utils/api.js

@ -1,5 +1,5 @@
export const ORIGIN = `http://ouxuanmaganer.ouxuanzhineng.cn`; // 正式
// export const ORIGIN = `https://testmanager.ouxuanzhineng.cn`; // 测试
// export const ORIGIN = `http://ouxuanmaganer.ouxuanzhineng.cn`; // 正式
export const ORIGIN = `https://testmanager.ouxuanzhineng.cn`; // 测试
export const API = {

Loading…
Cancel
Save