diff --git a/README.en.md b/README.en.md index a40582748467c9b2a42812de8f203706777a5889..223c9a2ee070348fe227dc54219085e560be48e5 100644 --- a/README.en.md +++ b/README.en.md @@ -41,6 +41,6 @@ N/A. ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. -2. HarmonyOS: HarmonyOS 5.0.5 Release or later -3. DevEco Studio: DevEco Studio 5.0.5 Release or later -4. HarmonyOS SDK: HarmonyOS 5.0.5 Release SDK or later +2. HarmonyOS: HarmonyOS 5.0.5 Release or later. +3. DevEco Studio: DevEco Studio 6.0.0 Release or later. +4. HarmonyOS SDK: HarmonyOS 6.0.0 Release SDK or later. diff --git a/README.md b/README.md index f4a0ca04ebf45c85eeec752a1e3d7370cfce0c7d..e0746411a578a6fa6acbbae09ab71906f0e843cd 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,5 @@ 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 -3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 +3. DevEco Studio版本:DevEco Studio 6.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 6.0.0 Release SDK及以上。 diff --git a/build-profile.json5 b/build-profile.json5 index a5a2b710881d0eb00dc4ed6d2ab404451ac23eb0..f90431e8242209894d63e398103fff4a6e380a14 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -6,7 +6,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/common/src/main/ets/components/CommodityList.ets b/common/src/main/ets/components/CommodityList.ets index aa5c29511068f3396e4cb39396f70ef5522fcc93..712106db549b037db36ea1715e87932a3b9f506a 100644 --- a/common/src/main/ets/components/CommodityList.ets +++ b/common/src/main/ets/components/CommodityList.ets @@ -31,7 +31,7 @@ export struct CommodityList { private getStringTitle(id: Resource | undefined): string { let res = ''; try { - res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id); + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); return res; } catch (err) { Logger.error(JSON.stringify(err)); diff --git a/features/commoditydetail/src/main/ets/components/CommodityDetail.ets b/features/commoditydetail/src/main/ets/components/CommodityDetail.ets index 8ec3db14857461678e75b73134437e485a007800..27ff1e657e180e85281ded0bf688828c0e5f1927 100644 --- a/features/commoditydetail/src/main/ets/components/CommodityDetail.ets +++ b/features/commoditydetail/src/main/ets/components/CommodityDetail.ets @@ -13,8 +13,6 @@ * limitations under the License. */ -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; import { Order, ProductSpecification } from '@ohos/common'; import { FinishType } from '../viewmodel/TypeModel'; import { SpecificationDialog } from './SpecificationDialog'; @@ -66,11 +64,22 @@ export struct CommodityDetail { customStyle: true }) + private getStringTitle(id: Resource | undefined): string { + let res = ''; + try { + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); + return res; + } catch (err) { + Logger.error(JSON.stringify(err)); + } + return res; + } + onSelectKeysChange() { this.productOptions = ''; if (this.selectKeys !== undefined) { this.selectKeys.forEach((item) => { - this.productOptions += this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value) + ' '; + this.productOptions += this.getStringTitle(item.value) + ' '; }) } } diff --git a/features/commoditydetail/src/main/ets/components/SpecificationDialog.ets b/features/commoditydetail/src/main/ets/components/SpecificationDialog.ets index 5ec6f8e1ccfd45f0177dbcfe967c583f9bdd44f8..110bb69766e2023359196b9776fd3c0233a4b32d 100644 --- a/features/commoditydetail/src/main/ets/components/SpecificationDialog.ets +++ b/features/commoditydetail/src/main/ets/components/SpecificationDialog.ets @@ -32,7 +32,7 @@ export struct SpecificationDialog { @Link selectTags: ProductSpecification[]; @Link productOptions: string; controller?: CustomDialogController; - private onFinish?: (type: FinishType, count: number, selectKeys: ProductSpecification[]) => void; + onFinish?: (type: FinishType, count: number, selectKeys: ProductSpecification[]) => void; aboutToAppear(){ this.selectTags.forEach((item) => { switch (this.getStringTitle(item.name)) { @@ -57,7 +57,7 @@ export struct SpecificationDialog { private getStringTitle(id: Resource | undefined): string { let res = ''; try { - res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id); + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); return res; } catch (err) { Logger.error(JSON.stringify(err)); diff --git a/features/orderdetail/src/main/ets/components/AddressInfo.ets b/features/orderdetail/src/main/ets/components/AddressInfo.ets index 50a73ed09be171df0c0a59e9177991c7df67e32f..7c5fbd170469476510431b7f2ada2506ebfa600b 100644 --- a/features/orderdetail/src/main/ets/components/AddressInfo.ets +++ b/features/orderdetail/src/main/ets/components/AddressInfo.ets @@ -27,7 +27,7 @@ export struct AddressInfo { private getStringTitle(id: Resource | undefined): string { let res = ''; try { - res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id); + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); return res; } catch (err) { Logger.error(JSON.stringify(err)); diff --git a/features/orderdetail/src/main/ets/components/CommodityOrderItem.ets b/features/orderdetail/src/main/ets/components/CommodityOrderItem.ets index ce0c20d617b05c6e376773deba756fc6893f7269..9b16d4f12dfc7367720d908784a5e88bcfaf8909 100644 --- a/features/orderdetail/src/main/ets/components/CommodityOrderItem.ets +++ b/features/orderdetail/src/main/ets/components/CommodityOrderItem.ets @@ -29,7 +29,7 @@ export struct CommodityOrderItem { private getStringTitle(id: Resource | undefined): string { let res = ''; try { - res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id); + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); return res; } catch (err) { Logger.error(JSON.stringify(err)); diff --git a/features/orderdetail/src/main/ets/components/ConfirmOrder.ets b/features/orderdetail/src/main/ets/components/ConfirmOrder.ets index 3979d3d17cf188c68c1d20ec265d46c64869e77b..60f7b2cc9f0a171cc136ed4e3b27d7ff8ebb94fe 100644 --- a/features/orderdetail/src/main/ets/components/ConfirmOrder.ets +++ b/features/orderdetail/src/main/ets/components/ConfirmOrder.ets @@ -13,8 +13,6 @@ * limitations under the License. */ -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; import { AddressInfo } from './AddressInfo'; import { HeaderBar } from '../components/HeaderBar'; import { OrderDetailConstants } from '../constants/OrderDetailConstants'; diff --git a/features/orderdetail/src/main/ets/components/OrderDetailList.ets b/features/orderdetail/src/main/ets/components/OrderDetailList.ets index 3048f5c69d71358e9dc8c75ded143abb6bbb708b..800ee9cfc6734eb9fd230fc10dc0e95844b9b508 100644 --- a/features/orderdetail/src/main/ets/components/OrderDetailList.ets +++ b/features/orderdetail/src/main/ets/components/OrderDetailList.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { HeaderBar } from './HeaderBar'; import { OrderListContent } from './OrderListContent'; import { OrderDetailConstants } from '../constants/OrderDetailConstants' diff --git a/features/orderdetail/src/main/ets/components/OrderListContent.ets b/features/orderdetail/src/main/ets/components/OrderListContent.ets index c6aa9daca67b655ab0ff736a40752db612da2e8d..5d6d3c7f2bb24bf2802adb328408d7bedac4cfb8 100644 --- a/features/orderdetail/src/main/ets/components/OrderListContent.ets +++ b/features/orderdetail/src/main/ets/components/OrderListContent.ets @@ -13,8 +13,6 @@ * limitations under the License. */ -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; import { CommodityOrderItem } from './CommodityOrderItem'; import { payEnum, statusEnum } from '../viewmodel/OrderData'; import { OrderDetailConstants } from '../constants/OrderDetailConstants'; @@ -47,8 +45,8 @@ export struct OrderListContent { this.getUIContext() .getPromptAction() .showToast({ - message: `${this.getUIContext().getHostContext()!.resourceManager.getStringSync(msg)}${this.getUIContext() - .getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.SUCCESS)}` + message: `${this.getUIContext().getHostContext()!.resourceManager.getStringSync(msg.id)}${this.getUIContext() + .getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.SUCCESS.id)}` }); } catch (err) { Logger.error(JSON.stringify(err)); diff --git a/features/orderdetail/src/main/ets/components/PayOrder.ets b/features/orderdetail/src/main/ets/components/PayOrder.ets index c883a193d608dbea2d43919221fd98ed36c2abbc..32f0c62e2ea8fcd2abe2f6c1afd765ba50c8c669 100644 --- a/features/orderdetail/src/main/ets/components/PayOrder.ets +++ b/features/orderdetail/src/main/ets/components/PayOrder.ets @@ -13,8 +13,6 @@ * limitations under the License. */ -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; import { CommodityOrderList } from './CommodityOrderList'; import { AddressInfo } from './AddressInfo'; import { HeaderBar } from './HeaderBar'; @@ -25,7 +23,8 @@ import { Order, OrderOperationStatus, StyleConstants, - GridConstants + GridConstants, + Logger } from '@ohos/common'; import { updateOrderProps } from '@ohos/common/src/main/ets/viewmodel/OrderModel'; @@ -122,9 +121,13 @@ export struct PayOrder { this.localDataManager.updateOrder(UpdateOrderParameter); } }) - this.getUIContext().getPromptAction().showToast({ - message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.UN_PAY])) - }); + try { + this.getUIContext().getPromptAction().showToast({ + message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.UN_PAY].id)) + }); + } catch (err) { + Logger.error(JSON.stringify(err)); + } this.getUIContext().getRouter().back(); }) } else if (this.data[0].status === OrderOperationStatus.DELIVERED) { @@ -139,9 +142,13 @@ export struct PayOrder { status: OrderOperationStatus.RECEIPT } this.localDataManager.updateOrder(UpdateOrderParameter); - this.getUIContext().getPromptAction().showToast({ - message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.DELIVERED])) - }); + try { + this.getUIContext().getPromptAction().showToast({ + message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.DELIVERED].id)) + }); + } catch (err) { + Logger.error(JSON.stringify(err)); + } this.getUIContext().getRouter().back(); } }) diff --git a/features/personal/src/main/ets/components/Personal.ets b/features/personal/src/main/ets/components/Personal.ets index bbc587310d1b78264e2c1351e6da43b736b592d5..4cfe0cd97c1bfd3cd31875d30937463313450fef 100644 --- a/features/personal/src/main/ets/components/Personal.ets +++ b/features/personal/src/main/ets/components/Personal.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { Logger, OrderType, StyleConstants, BreakpointConstants } from '@ohos/common'; import { orderButton, memberButton, activityButton, liveData } from '../viewmodel/PersonalData'; import { IconButton } from '../components/IconButton'; diff --git a/features/shopcart/src/main/ets/components/ShopCart.ets b/features/shopcart/src/main/ets/components/ShopCart.ets index 759a964dfada414ecaff4262e4fe09976984a62f..aba460fe23253bff23b40b737720c61c1d54e81b 100644 --- a/features/shopcart/src/main/ets/components/ShopCart.ets +++ b/features/shopcart/src/main/ets/components/ShopCart.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { ShopCartConstants } from '../constants/ShopCartConstants'; import { LocalDataManager, @@ -69,6 +68,17 @@ export struct ShopCart { this.sumPrice = tempPrice; } + private getStringTitle(id: Resource | undefined): string { + let res = ''; + try { + res = this.getUIContext().getHostContext()!.resourceManager.getStringSync(id?.id); + return res; + } catch (err) { + Logger.error(JSON.stringify(err)); + } + return res; + } + settleAccounts() { const orderList = this.products .filter((item: Product, index: number) => @@ -187,11 +197,11 @@ export struct ShopCart { .maxLines(StyleConstants.TWO_TEXT_LINE) .width(StyleConstants.FULL_WIDTH) Text(item.specifications.length === 2 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value): + this.getStringTitle(item.specifications[0].value) + ',' + this.getStringTitle(item.specifications[1].value): item.specifications.length === 3 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[2].value) : + this.getStringTitle(item.specifications[0].value) + ',' + this.getStringTitle(item.specifications[1].value) + ',' + this.getStringTitle(item.specifications[2].value) : item.specifications.length === 4 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' +this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value) + ',' +this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[2].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[3].value) : '' + this.getStringTitle(item.specifications[0].value) + ',' + this.getStringTitle(item.specifications[1].value) + ',' + this.getStringTitle(item.specifications[2].value) + ',' + this.getStringTitle(item.specifications[3].value) : '' ) .fontSize($r('app.float.smaller_font_size')) .maxLines(1) diff --git a/products/phone/oh_modules/@ohos/commoditydetail/BuildProfile.ets b/products/phone/oh_modules/@ohos/commoditydetail/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/build-profile.json5 b/products/phone/oh_modules/@ohos/commoditydetail/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/commoditydetail/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 2708455e0ad4ec04ab420779530b5a5cbad6f58a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "commoditydetail", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/commoditydetail", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/hvigorfile.ts b/products/phone/oh_modules/@ohos/commoditydetail/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/index.ets b/products/phone/oh_modules/@ohos/commoditydetail/index.ets deleted file mode 100644 index 3d27535303c4f7792899198c8cc01128d1e48b64..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/index.ets +++ /dev/null @@ -1 +0,0 @@ -export { CommodityDetail } from './src/main/ets/components/CommodityDetail'; diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/commoditydetail/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh-package.json5 b/products/phone/oh_modules/@ohos/commoditydetail/oh-package.json5 deleted file mode 100644 index 7c773112aa4d3aa3c0a1d20f7b3ca5427c18110b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/commoditydetail", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "file:../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CapsuleGroupButton.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CapsuleGroupButton.ets deleted file mode 100644 index c2cf757bad096b95240c7c60f945df4625e5d48f..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CapsuleGroupButton.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ButtonType } from '../viewmodel/TypeModel'; -import { StyleConstants } from '@ohos/common'; - -@Component -export struct CapsuleGroupButton { - public configs: ButtonType[] = []; - - @Styles flex(){ - .flexBasis(StyleConstants.FLEX_BASIC) - .flexGrow(StyleConstants.FLEX_GROW) - .flexShrink(StyleConstants.FLEX_SHRINK) - } - - build() { - Flex() { - ForEach(this.configs, (config: ButtonType, index?: number) => { - Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Text(config.text) - .fontColor(Color.White) - .fontSize($r('app.float.middle_font_size')) - .height($r('app.float.capsule_height')) - .textAlign(TextAlign.Center) - } - .border({ - radius: { - topLeft: !!index ? 0 : $r('app.float.vp_twenty'), - bottomLeft: !!index ? 0 : $r('app.float.vp_twenty'), - topRight: !!index ? $r('app.float.vp_twenty') : 0, - bottomRight: !!index ? $r('app.float.vp_twenty') : 0 - } - }) - .onClick((event?: ClickEvent) => config.onClick(event)) - }, (config: ButtonType) => JSON.stringify(config)) - } - .backgroundImage($r('app.media.btn_background'), ImageRepeat.NoRepeat) - .backgroundImageSize({ width: StyleConstants.HUNDRED_FIFTEEN_WIDTH, height: StyleConstants.FULL_HEIGHT }) - .backgroundImagePosition(Alignment.Center) - .borderRadius($r('app.float.vp_twenty')) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.capsule_height')) - .flex() - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CommodityDetail.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CommodityDetail.ets deleted file mode 100644 index 89538a16a48422a64e843a804f850448804634ef..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/CommodityDetail.ets +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; -import { Order, ProductSpecification } from '@ohos/common'; -import { FinishType } from '../viewmodel/TypeModel'; -import { SpecificationDialog } from './SpecificationDialog'; -import { barData, userEvaluate, moreEvaluate, serviceList, Evaluate, BarData } from '../viewmodel/CommodityDetailData'; -import { CapsuleGroupButton } from '../components/CapsuleGroupButton'; -import { CommodityConstants } from '../constants/CommodityConstants'; -import { - LocalDataManager, - Logger, - Commodity, - StyleConstants, - GridConstants, - CommonDataSource, - getID, - Specification -} from '@ohos/common'; -import { ShopProps } from '@ohos/common/src/main/ets/viewmodel/ProductModel'; - -@Extend(Button) function titleButton() { - .backgroundColor($r('app.color.zero_alpha_black')) - .width($r('app.float.title_button_size')) - .height($r('app.float.title_button_size')) - .borderRadius($r('app.float.vp_four')) -} - - -@Component -export struct CommodityDetail { - @Prop commodityId: string = ''; - @State info?: Commodity = undefined; - @State @Watch('onSelectKeysChange') selectKeys?: ProductSpecification[] = []; - @State count: number = 1; - @State swiperIndex: number = 0; - @State productOptions: string = ''; - private localDataManager: LocalDataManager = LocalDataManager.instance(); - private data: CommonDataSource = new CommonDataSource(userEvaluate.evaluate !== undefined ? - userEvaluate.evaluate : []); - dialogController: CustomDialogController = new CustomDialogController({ - builder: SpecificationDialog({ - onFinish: (type: FinishType, count: number, selectKeys: ProductSpecification[]): void => - this.onSpecificationFinish(type, count, selectKeys), - data: $info, - count: $count, - selectTags: $selectKeys, - productOptions:$productOptions - }), - autoCancel: true, - alignment: DialogAlignment.Bottom, - customStyle: true - }) - - onSelectKeysChange() { - this.productOptions = ''; - if (this.selectKeys !== undefined) { - this.selectKeys.forEach((item) => { - this.productOptions += this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value) + ' '; - }) - } - } - - onSpecificationFinish(type: FinishType, count: number, selectKeys: ProductSpecification[]) { - this.count = count; - this.selectKeys = selectKeys; - const params: ShopProps = { - id: getID(), - commodityId: this.info !== undefined ? this.info.id : '', - count, - specifications: this.selectKeys - } - switch (type) { - case FinishType.JOIN_SHOPPING_CART: - this.localDataManager.insertShopCart(params); - this.getUIContext().getPromptAction().showToast({ - message: $r('app.string.insert_cart_success') - }); - break; - case FinishType.BUY_NOW: - if (this.info !== undefined) { - let orderList: Order = { - orderId: params.id, - image: this.info.images[0], - title: this.info.title, - description: this.info.description, - price: this.info.price, - count: params.count, - commodityId: Number.parseInt(params.commodityId), - specifications: this.selectKeys - } - this.getUIContext().getRouter().pushUrl({ - url: CommodityConstants.CONFIRM_ORDER_PAGE_URL, - params: { orderList: [orderList] } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - break; - } - } - } - - bottomBtnClick(type: FinishType) { - if (this.selectKeys !== undefined) { - this.onSpecificationFinish(type, this.count, this.selectKeys); - } - } - - aboutToAppear() { - this.info = this.localDataManager.queryCommodityListById(this.commodityId); - if (this.info.specifications !== undefined) { - this.info.specifications.forEach((item: Specification) => { - if (this.selectKeys !== undefined) { - let SpecificationData:ProductSpecification = new ProductSpecification() - SpecificationData.name = item.title; - SpecificationData.value = item.data[0].key; - this.selectKeys.push(SpecificationData) - } - }); - } - } - - @Styles backgroundStyle(){ - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve'), - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_sixteen') - }) - .margin({ - top: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve'), - left: $r('app.float.vp_twelve') - }) - } - - @Builder CustomSwiper(payload: string[]) { - Stack({ alignContent: Alignment.BottomEnd }) { - Swiper() { - ForEach(payload, (item: string) => { - Flex({ justifyContent: FlexAlign.Center }) { - Image($rawfile(item)) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - .objectFit(ImageFit.Cover) - } - .margin({ - left: $r('app.float.swiper_image_margin'), - right: $r('app.float.swiper_image_margin'), - top: $r('app.float.vp_twenty'), - bottom: $r('app.float.vp_twenty') - }) - }, (item: string) => JSON.stringify(item)) - } - .onChange((index: number) => this.swiperIndex = index) - .indicator(false) - .width(StyleConstants.FULL_WIDTH) - .height(StyleConstants.FULL_HEIGHT) - - Text(`${this.swiperIndex + 1}/${payload.length}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.White) - .textAlign(TextAlign.Center) - .width($r('app.float.swiper_indicator_text_width')) - .height($r('app.float.vp_eighteen')) - .backgroundColor($r('app.color.forty_alpha_black')) - .borderRadius($r('app.float.swiper_indicator_text_radius')) - .margin({ - right: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_sixteen') - }) - } - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .height($r('app.float.swiper_height')) - } - - @Builder TitleBar(payload: Commodity) { - Flex({ direction: FlexDirection.Column }) { - Text() { - Span($r('app.string.rmb')) - .fontSize($r('app.float.middle_font_size')) - .fontColor($r('app.color.focus_color')) - Span(`${payload.price}`) - .fontSize($r('app.float.bigger_font_size')) - .fontColor($r('app.color.focus_color')) - } - - Row() { - Text($r('app.string.commodity_desc', payload.title, payload.description)) - .fontColor(Color.Black) - .fontSize($r('app.float.middle_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - } - .width(StyleConstants.FULL_WIDTH) - .margin({ top: $r('app.float.vp_four') }) - - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - ForEach(barData, (item: BarData) => { - Row() { - Image(item.icon !== undefined ? item.icon : '') - .height($r('app.float.vp_fourteen')) - .width($r('app.float.vp_fourteen')) - .margin({ right: $r('app.float.vp_four') }) - Text(item.text) - .fontSize($r('app.float.micro_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - } - }, (item: BarData) => JSON.stringify(item)) - } - .height($r('app.float.vp_fourteen')) - .margin({ top: $r('app.float.vp_twelve') }) - } - .backgroundStyle() - } - - @Builder Specification() { - Row() { - Text($r('app.string.choice')) - .fontColor(Color.Black) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .margin({ right: $r('app.float.vp_sixteen') }) - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text(`${this.productOptions}x${this.count}`) - .fontSize($r('app.float.small_font_size')) - Image($r('app.media.ic_point')) - .height($r('app.float.vp_twelve')) - .width($r('app.float.vp_six')) - } - .layoutWeight(StyleConstants.LAYOUT_WEIGHT) - .onClick(():void => this.dialogController.open()) - } - .backgroundStyle() - } - - @Builder SpecialService() { - Column() { - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Start - }) { - Text($r('app.string.send')) - .fontColor(Color.Black) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .margin({ right: $r('app.float.vp_sixteen') }) - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Center - }) { - Row() { - Image($r('app.media.ic_send')) - .width($r('app.float.vp_sixteen')) - .height($r('app.float.vp_sixteen')) - Text($r('app.string.send_hint')) - .fontColor($r('app.color.sixty_alpha_black')) - .fontSize($r('app.float.small_font_size')) - .margin({ left: $r('app.float.vp_eight') }) - } - - Image($r('app.media.ic_point')) - .height($r('app.float.vp_twelve')) - .width($r('app.float.vp_six')) - } - .layoutWeight(StyleConstants.LAYOUT_WEIGHT) - .height($r('app.float.vp_twenty')) - .margin({ bottom: $r('app.float.vp_sixteen') }) - } - - Divider() - .margin({ - left: $r('app.float.vp_fifty_six'), - right: $r('app.float.vp_twelve'), - bottom: $r('app.float.vp_twelve') - }) - .height($r('app.float.service_divide_height')) - .backgroundColor($r('app.color.twenty_alpha_black')) - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Start - }) { - Text($r('app.string.service')) - .fontColor(Color.Black) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .margin({ right: $r('app.float.vp_sixteen') }) - Flex({ direction: FlexDirection.Column }) { - ForEach(serviceList, (item: string, index?: number) => { - Flex({ alignItems: ItemAlign.Center }) { - Image($r('app.media.ic_supplying')) - .width($r('app.float.vp_sixteen')) - .height($r('app.float.vp_sixteen')) - Text(item) - .fontColor(Color.Black) - .fontSize($r('app.float.vp_fourteen')) - .margin({ left: $r('app.float.vp_eight') }) - .textOverflow({ overflow: TextOverflow.Ellipsis}) - .maxLines(1) - } - .height($r('app.float.vp_twenty')) - .margin({ - bottom: index === serviceList.length - 1 ? 0 : $r('app.float.vp_sixteen') - }) - }, (item: string) => JSON.stringify(item)) - } - .layoutWeight(StyleConstants.LAYOUT_WEIGHT) - } - } - .backgroundStyle() - } - - @Builder UserEvaluate() { - Column({ space: StyleConstants.TWELVE_SPACE }) { - Row() { - Text(userEvaluate.title) - .fontSize($r('app.float.middle_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .fontColor(Color.Black) - Blank() - Text(userEvaluate.favorable) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.focus_color')) - Text($r('app.string.evaluate_favorable')) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - Image($r('app.media.ic_right_arrow')) - .objectFit(ImageFit.Contain) - .height($r('app.float.vp_twenty_four')) - .width($r('app.float.vp_twelve')) - } - .width(StyleConstants.FULL_WIDTH) - - LazyForEach(this.data, (item: Evaluate) => { - this.Evaluate(item); - }, (item: Evaluate, index?: number) => JSON.stringify(item) + index) - Text($r('app.string.evaluate_show_more')) - .fontSize($r('app.float.small_font_size')) - .width($r('app.float.evaluate_text_width')) - .height($r('app.float.evaluate_text_height')) - .textAlign(TextAlign.Center) - .border({ - width: $r('app.float.vp_one'), - color: $r('app.color.twenty_alpha_black'), - radius: $r('app.float.evaluate_text_radius') - }) - .onClick(() => { - if (this.data !== undefined) { - this.data.addData(this.data.totalCount(), moreEvaluate); - } - }) - } - .backgroundStyle() - } - - @Builder Evaluate(evaluate: Evaluate) { - Column({ space: StyleConstants.TWELVE_SPACE }) { - Row() { - Image(evaluate.userIcon !== undefined ? $rawfile(evaluate.userIcon) : '') - .objectFit(ImageFit.Contain) - .width($r('app.float.evaluate_icon_size')) - .height($r('app.float.evaluate_icon_size')) - Column({ space: StyleConstants.FOUR_SPACE }) { - Text(evaluate.userNumber) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .fontColor(Color.Black) - Rating({ rating: Number(evaluate.rating) }) - .hitTestBehavior(HitTestMode.None) - .size({ - width: $r('app.float.evaluate_rating_width'), - height: $r('app.float.vp_twelve') - }) - .stars(CommodityConstants.RATING_STARS) - } - .alignItems(HorizontalAlign.Start) - .width(StyleConstants.FULL_WIDTH) - .margin({ left: $r('app.float.vp_twelve') }) - } - .width(StyleConstants.FULL_WIDTH) - - Text(evaluate.desc) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.eighty_alpha_black')) - } - .alignItems(HorizontalAlign.Start) - } - - @Builder DetailList(images: string[]) { - Flex({ - direction: FlexDirection.Column, - alignItems: ItemAlign.Center - }) { - ForEach(images, (image: string) => { - Image($rawfile(image)) - .width(StyleConstants.FULL_WIDTH) - .constraintSize({ maxWidth: $r('app.float.detail_image_max_width') }) - .objectFit(ImageFit.Cover) - }, (image: string) => JSON.stringify(image)) - } - .width(StyleConstants.FULL_WIDTH) - .backgroundStyle() - } - - @Builder BottomMenu() { - Flex({ alignItems: ItemAlign.Center }) { - Row() { - Flex({ - direction: FlexDirection.Column, - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center }) { - Image($r('app.media.ic_home')) - .height($r('app.float.button_image_size')) - .width($r('app.float.button_image_size')) - Text($r('app.string.index')) - .fontSize($r('app.float.micro_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - .margin({ top: $r('app.float.vp_four') }) - } - .onClick(() => { - AppStorage.set('IndexPage', CommodityConstants.INDEX_HOME); - this.getUIContext().getRouter().back(); - }) - .height(StyleConstants.FULL_HEIGHT) - .width($r('app.float.button_flex_width')) - - Flex({ - direction: FlexDirection.Column, - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center - }) { - Image($r('app.media.ic_shopping_cart')) - .height($r('app.float.button_image_size')) - .width($r('app.float.button_image_size')) - Text($r('app.string.cart')) - .fontSize($r('app.float.micro_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - .margin({ top: $r('app.float.vp_four') }) - }.onClick(() => { - AppStorage.set('IndexPage', CommodityConstants.INDEX_SHOPPING_CART); - this.getUIContext().getRouter().back(); - }) - .height(StyleConstants.FULL_HEIGHT) - .width($r('app.float.button_flex_width')) - } - .height(StyleConstants.FULL_HEIGHT) - .margin({ right: $r('app.float.vp_eight') }) - - CapsuleGroupButton({ - configs: [{ - text: $r('app.string.insert_cart'), - onClick: ():void => this.bottomBtnClick(FinishType.JOIN_SHOPPING_CART) - }, { - text: $r('app.string.buy_now'), - onClick: ():void => this.bottomBtnClick(FinishType.BUY_NOW) - }] - }) - } - .height($r('app.float.vp_fifty_six')) - .width(StyleConstants.FULL_WIDTH) - .padding({ right: $r('app.float.vp_sixteen') }) - .backgroundColor($r('app.color.page_background')) - } - - build() { - Stack({ alignContent: Alignment.TopStart }) { - Flex({ direction: FlexDirection.Column }) { - Scroll() { - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - }, - gutter: GridConstants.GUTTER_TWELVE - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_TWELVE } - }) { - if (this.info !== undefined) { - this.CustomSwiper(this.info?.images) - } - } - - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_EIGHT - }, - offset: { lg: GridConstants.OFFSET_TWO } - }) { - Column() { - if (this.info) { - this.TitleBar(this.info) - this.Specification() - this.SpecialService() - this.UserEvaluate() - this.DetailList(this.info.images) - } - } - } - } - } - .flexGrow(StyleConstants.FLEX_GROW) - - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - }, - gutter: GridConstants.GUTTER_TWELVE - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_EIGHT - }, - offset: { lg: GridConstants.OFFSET_TWO } }) { - this.BottomMenu() - } - } - } - - Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.SpaceBetween }) { - Button() { - Image($r('app.media.ic_back')) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - } - .titleButton() - .onClick(() => this.getUIContext().getRouter().back()) - - Button() { - Image($r('app.media.ic_share')) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - } - .titleButton() - } - .margin({ - left: $r('app.float.vp_sixteen'), - top: $r('app.float.vp_sixteen'), - right: $r('app.float.vp_sixteen') - }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/SpecificationDialog.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/SpecificationDialog.ets deleted file mode 100644 index 5848fdec11192e6ed700b3a60c0420d5c9a852c0..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/components/SpecificationDialog.ets +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Specification, CounterProduct, Commodity, KV, GridConstants, StyleConstants } from '@ohos/common'; -import { CapsuleGroupButton } from './CapsuleGroupButton'; -import { ColorChange, FinishType } from '../viewmodel/TypeModel'; -import { CommodityConstants } from '../constants/CommodityConstants'; -import { ProductSpecification } from '@ohos/common/src/main/ets/viewmodel/ProductModel'; - -@CustomDialog -export struct SpecificationDialog { - @State colorChange: ColorChange = { - Color: '', - Version: '', - Network: '', - Type: '' - }; - @Link data: Commodity; - @Link count: number; - @Link selectTags: ProductSpecification[]; - @Link productOptions: string; - controller?: CustomDialogController; - private onFinish?: (type: FinishType, count: number, selectKeys: ProductSpecification[]) => void; - aboutToAppear(){ - this.selectTags.forEach((item) => { - switch (this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.name)) { - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_color')): - this.colorChange.Color = this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_version')): - this.colorChange.Version = this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_network_standard')): - this.colorChange.Network = this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_type')): - this.colorChange.Type = this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value); - break; - default: - break; - } - }) - } - - build() { - GridRow({ columns: { sm: GridConstants.COLUMN_FOUR, md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE }, gutter: GridConstants.GUTTER_TWELVE }) { - GridCol({ span: { sm: GridConstants.SPAN_FOUR, md: GridConstants.SPAN_EIGHT, lg: GridConstants.SPAN_EIGHT }, - offset: { lg: GridConstants.OFFSET_TWO } }) { - Column() { - Image($r('app.media.ic_normal')) - .width($r('app.float.dialog_normal_image_width')) - .height($r('app.float.vp_twenty_four')) - .objectFit(ImageFit.Contain) - .onClick(() => { - this.controller?.close(); - if (this.onFinish) { - this.onFinish(FinishType.CANCEL, this.count, this.selectTags); - } - }) - Row() { - Image(this.data.images && $rawfile(this.data.images[0])) - .width($r('app.float.dialog_commodity_image_size')) - .height($r('app.float.dialog_commodity_image_size')) - .objectFit(ImageFit.Cover) - .margin({ - left: $r('app.float.vp_sixteen'), - right: $r('app.float.vp_sixteen') - }) - Column() { - Text() { - Span($r('app.string.rmb')) - .fontSize($r('app.float.middle_font_size')) - .fontColor($r('app.color.focus_color')) - Span(`${this.data.price}`) - .fontSize($r('app.float.bigger_font_size')) - .fontColor($r('app.color.focus_color')) - } - .margin({ bottom: $r('app.float.vp_twelve') }) - - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(CommodityConstants.SPECIAL_CHOOSE)} :${this.productOptions} ${this.count ? `X${this.count}` : ''}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .maxLines(CommodityConstants.MAX_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - } - .layoutWeight(StyleConstants.LAYOUT_WEIGHT) - .alignItems(HorizontalAlign.Start) - } - .margin({ - top: $r('app.float.vp_twenty_four'), - bottom: $r('app.float.vp_twenty_four'), - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - - Scroll() { - Column() { - ForEach(this.data.specifications || [], (item: Specification) => { - this.Specification(item) - }, (item: Specification) => this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.id)) - Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { - Text($r('app.string.quantity')) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - CounterProduct({ - count: this.count, - onNumberChange: (num: number) => this.count = num - }) - } - .margin({ right: $r('app.float.vp_twenty_four') }) - } - } - .margin({ left: $r('app.float.vp_sixteen') }) - - this.ButtonGroup() - } - .border({ - radius: { - topRight: $r('app.float.dialog_radius'), - topLeft: $r('app.float.dialog_radius') - } - }) - .backgroundColor($r('app.color.page_background')) - .width(StyleConstants.FULL_WIDTH) - } - } - } - - @Builder ButtonGroup() { - Flex() { - CapsuleGroupButton({ - configs: [{ - text: $r('app.string.insert_cart'), - onClick: () => { - this.controller?.close(); - if (this.onFinish) { - this.onFinish(FinishType.JOIN_SHOPPING_CART, this.count, this.selectTags); - } - } - }, { - text: $r('app.string.buy_now'), - onClick: () => { - this.controller?.close(); - if (this.onFinish) { - this.onFinish(FinishType.BUY_NOW, this.count, this.selectTags); - } - } - }] - }) - } - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.vp_fifty_six')) - .padding($r('app.float.vp_twelve')) - } - colorChanges(key: string): string { - let temp: string = ''; - switch (key) { - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_color')): - temp = this.colorChange.Color; - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_version')): - temp = this.colorChange.Version; - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_network_standard')): - temp = this.colorChange.Network; - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_type')): - temp = this.colorChange.Type; - break; - default: - break; - } - return temp; - } - - @Builder Specification(payload: Specification) { - Column() { - Text(payload.title) - .fontSize($r('app.float.small_font_size')) - .margin({ bottom: $r('app.float.vp_twelve') }) - .fontColor($r('app.color.sixty_alpha_black')) - Flex({ wrap: FlexWrap.Wrap }) { - ForEach(payload.data, (item: KV) => { - Text(item.key) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(this.colorChanges(this.getUIContext().getHostContext()!.resourceManager.getStringSync(payload.id)) === this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value) ? $r('app.color.focus_color') : Color.Black) - .height($r('app.float.vp_twenty_four')) - .padding({ - top: $r('app.float.vp_six'), - bottom: $r('app.float.vp_six'), - left: $r('app.float.vp_ten'), - right: $r('app.float.vp_ten') - }) - .backgroundColor(this.colorChanges(this.getUIContext().getHostContext()!.resourceManager.getStringSync(payload.id)) === this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value) ? - $r('app.color.dialog_select_tag') : $r('app.color.five_alpha_black')) - .margin({ bottom: $r('app.float.vp_ten'), right: $r('app.float.vp_twelve') }) - .borderRadius($r('app.float.vp_twelve')) - .onClick(():void => this.onTagSelect(item, this.getUIContext().getHostContext()!.resourceManager.getStringSync(payload.id))) - }, (item: KV) => JSON.stringify(item.value)) - } - } - .alignItems(HorizontalAlign.Start) - .width(StyleConstants.FULL_WIDTH) - .margin({ bottom: $r('app.float.vp_fourteen') }) - } - - onTagSelect(tag: KV, parentId: string) { - this.selectTags.forEach((item, index) => { - if (parentId === this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.name)) { - switch (parentId) { - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_color')): - this.colorChange.Color = this.getUIContext().getHostContext()!.resourceManager.getStringSync(tag.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_version')): - this.colorChange.Version = this.getUIContext().getHostContext()!.resourceManager.getStringSync(tag.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_network_standard')): - this.colorChange.Network = this.getUIContext().getHostContext()!.resourceManager.getStringSync(tag.value); - break; - case this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.case_type')): - this.colorChange.Type = this.getUIContext().getHostContext()!.resourceManager.getStringSync(tag.value); - break; - default: - break; - } - let data: ProductSpecification = {name:item.name,value:tag.value} - this.selectTags.splice(index,1,data); - } - }) - this.onSelectKeysChange() - } - - onSelectKeysChange(){ - this.productOptions = ''; - this.selectTags.forEach((item)=>{ - this.productOptions += this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.value)+' '; - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/constants/CommodityConstants.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/constants/CommodityConstants.ets deleted file mode 100644 index bf2c21f20b82b5298c66f2020b90cb79217ba42f..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/constants/CommodityConstants.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommodityConstants{ - /** - * Index of home tab. - */ - static readonly INDEX_HOME: number = 0; - - /** - * Index of shopCart tab. - */ - static readonly INDEX_SHOPPING_CART: number = 2; - - /** - * The stars of rating. - */ - static readonly RATING_STARS: number = 5 - - /** - * Text max line value: 2 - */ - static readonly MAX_LINE: number = 2; - - /** - * String of choose. - */ - static readonly SPECIAL_CHOOSE: Resource = $r('app.string.choice'); - - /** - * ConfirmOrderPage url. - */ - static readonly CONFIRM_ORDER_PAGE_URL: string = 'pages/ConfirmOrderPage'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/CommodityDetailData.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/CommodityDetailData.ets deleted file mode 100644 index 48fe872deaac63036a6b805f28d732a815bc9416..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/CommodityDetailData.ets +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class BarData { - icon?: Resource; - text?: Resource; -} - -class Evaluate { - userId?: string; - userIcon?: string; - userNumber?: string; - rating?: number; - desc?: Resource; -} - -class UserEvaluate { - title?: Resource; - favorable?: string; - evaluate?: Evaluate[]; -} - -const barData: BarData[] = [ - { - icon: $r('app.media.ic_bar_share'), - text: $r('app.string.share') - }, - { - icon: $r('app.media.ic_collect'), - text: $r('app.string.collection') - }, - { - icon: $r('app.media.ic_price'), - text: $r('app.string.reduction') - } -] - -const userEvaluate: UserEvaluate = { - title: $r('app.string.user_evaluate_title'), - favorable: '98%', - evaluate: [ - { - userId: '1', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 5, - desc: $r('app.string.user_evaluate_content1') - }, - { - userId: '2', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 4, - desc: $r('app.string.user_evaluate_content2') - } - ] -} - -const moreEvaluate: Evaluate[] = [ - { - userId: '3', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 5, - desc: $r('app.string.user_evaluate_content3') - }, - { - userId: '4', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 5, - desc: $r('app.string.user_evaluate_content4') - }, - { - userId: '5', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 5, - desc: $r('app.string.user_evaluate_content5') - }, - { - userId: '5', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 4, - desc: $r('app.string.user_evaluate_content5') - }, - { - userId: '6', - userIcon: 'common/ic_person.png', - userNumber: '185****1937', - rating: 5, - desc: $r('app.string.user_evaluate_content6') - } -] - -const serviceList = [$r('app.string.service_content_1'), $r('app.string.service_content_2'), $r('app.string.service_content_3')] - -export { userEvaluate, moreEvaluate, Evaluate, barData, BarData, serviceList } \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/TypeModel.ets b/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/TypeModel.ets deleted file mode 100644 index 7431f55969a555669be0792b3ec9edc87728d71b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/ets/viewmodel/TypeModel.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class ButtonType { - text?: string | Resource; - color?: string | Resource; - onClick = (event?: ClickEvent) => {}; -} - -export enum FinishType { - JOIN_SHOPPING_CART, - BUY_NOW, - CONFIRM, - CANCEL -} -export class ColorChange { - Color: string = ''; - Version: string = ''; - Network: string = ''; - Type: string = ''; -} - -export class OrderCount { - payment: number = 0; - ship: number = 0; - receipt: number = 0; - evaluation: number = 0; - sale: number = 0; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/module.json5 b/products/phone/oh_modules/@ohos/commoditydetail/src/main/module.json5 deleted file mode 100644 index 01f06016e547a2a20ad42abb0bcdbea366795378..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "commoditydetail", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/color.json deleted file mode 100644 index f1a75f748d7c0164ecd5d18a2ee92720f70a5015..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/color.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "color": [ - { - "name": "dialog_select_tag", - "value": "#1ae92f4f" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/float.json deleted file mode 100644 index 5baa6abfe2e60a7cf161379dc084c7e654a18dc8..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/float.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "float": [ - { - "name": "swiper_image_margin", - "value": "40vp" - }, - { - "name": "swiper_indicator_text_width", - "value": "35vp" - }, - { - "name": "swiper_indicator_text_radius", - "value": "9vp" - }, - { - "name": "swiper_height", - "value": "334vp" - }, - { - "name": "evaluate_icon_size", - "value": "40vp" - }, - { - "name": "service_divide_height", - "value": "0.25vp" - }, - { - "name": "evaluate_text_width", - "value": "120vp" - }, - { - "name": "evaluate_text_height", - "value": "30vp" - }, - { - "name": "evaluate_text_radius", - "value": "15vp" - }, - { - "name": "evaluate_rating_width", - "value": "76vp" - }, - { - "name": "button_image_size", - "value": "22vp" - }, - { - "name": "button_flex_width", - "value": "74vp" - }, - { - "name": "detail_image_max_width", - "value": "400vp" - }, - { - "name": "title_button_size", - "value": "32vp" - }, - { - "name": "dialog_normal_image_width", - "value": "64vp" - }, - { - "name": "dialog_commodity_image_size", - "value": "100vp" - }, - { - "name": "dialog_radius", - "value": "32vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/string.json deleted file mode 100644 index c37419534db9104048dfb04fc539ec7f1d1496cf..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/element/string.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "string": [ - { - "name": "rmb", - "value": "¥" - }, - { - "name": "quantity", - "value": "quantity" - }, - { - "name": "share", - "value": "share" - }, - { - "name": "collection", - "value": "collection" - }, - { - "name": "reduction", - "value": "Reduction Notice" - }, - { - "name": "choice", - "value": "Selected" - }, - { - "name": "send", - "value": "Delivered" - }, - { - "name": "send_hint", - "value": "Please select your address" - }, - { - "name": "service", - "value": "Service" - }, - { - "name": "evaluate_favorable", - "value": "rave reviews" - }, - { - "name": "evaluate_show_more", - "value": "See more reviews" - }, - { - "name": "cart", - "value": "Shopping cart" - }, - { - "name": "index", - "value": "Home" - }, - { - "name": "insert_cart_success", - "value": "Add to cart" - }, - { - "name": "commodity_desc", - "value": "【%s】%s" - }, - { - "name": "insert_cart", - "value": "Add to cart" - }, - { - "name": "buy_now", - "value": "Buy Now" - }, - { - "name": "user_evaluate_title", - "value": "User comments (2000+)" - }, - { - "name": "user_evaluate_content1", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content2", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content3", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content4", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content5", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content6", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "service_content_1", - "value": "Free Shipping (Subject to order submission)" - }, - { - "name": "service_content_2", - "value": "Store Delivery&Post-Sales" - }, - { - "name": "service_content_3", - "value": "Seven-day no-fault returns" - }, - { - "name": "case_color", - "value": "Color" - }, - { - "name": "case_version", - "value": "Version" - }, - { - "name": "case_network_standard", - "value": "Network Standard" - }, - { - "name": "case_type", - "value": "Type" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/btn_background.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/btn_background.png deleted file mode 100644 index c7a109ae593e36a580e9b032df911aef60647b17..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/btn_background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_back.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_back.png deleted file mode 100644 index a29b367409d7b49b7251ec379bd466db9475d4e9..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_back.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_bar_share.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_bar_share.png deleted file mode 100644 index 45145c08faa90927943d02a61c68610e5d9015e5..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_bar_share.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_collect.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_collect.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_collect.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_home.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_home.png deleted file mode 100644 index 3d6ea867d64f3e90b278ec86f10ee39de825781f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_home.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_normal.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_normal.png deleted file mode 100644 index f61c6826df4f58c3d6dc22de41f59b14871fe715..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_normal.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_point.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_point.png deleted file mode 100644 index b0beec435c05f6eb229101f69ceea2244e917f18..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_point.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_price.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_price.png deleted file mode 100644 index 1258b82052ab167c6b3687d4836f753f9f7eba88..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_price.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_right_arrow.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_right_arrow.png deleted file mode 100644 index 24aca7d3123a01a22ef85b856869ec3805cb3054..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_right_arrow.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_send.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_send.png deleted file mode 100644 index 3d8a576354debe546814be799aac7fb979c13d82..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_send.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_share.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_share.png deleted file mode 100644 index 14b156a4042e043c1c40a3910b1464078134d255..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_share.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_shopping_cart.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_shopping_cart.png deleted file mode 100644 index b7cc936378606e7905915498a037f2c202acf8ff..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_shopping_cart.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_supplying.png b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_supplying.png deleted file mode 100644 index 2852874a9094f1fc5244654dd1cfc9e0a7de1390..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/base/media/ic_supplying.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/en_US/element/string.json deleted file mode 100644 index c37419534db9104048dfb04fc539ec7f1d1496cf..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "string": [ - { - "name": "rmb", - "value": "¥" - }, - { - "name": "quantity", - "value": "quantity" - }, - { - "name": "share", - "value": "share" - }, - { - "name": "collection", - "value": "collection" - }, - { - "name": "reduction", - "value": "Reduction Notice" - }, - { - "name": "choice", - "value": "Selected" - }, - { - "name": "send", - "value": "Delivered" - }, - { - "name": "send_hint", - "value": "Please select your address" - }, - { - "name": "service", - "value": "Service" - }, - { - "name": "evaluate_favorable", - "value": "rave reviews" - }, - { - "name": "evaluate_show_more", - "value": "See more reviews" - }, - { - "name": "cart", - "value": "Shopping cart" - }, - { - "name": "index", - "value": "Home" - }, - { - "name": "insert_cart_success", - "value": "Add to cart" - }, - { - "name": "commodity_desc", - "value": "【%s】%s" - }, - { - "name": "insert_cart", - "value": "Add to cart" - }, - { - "name": "buy_now", - "value": "Buy Now" - }, - { - "name": "user_evaluate_title", - "value": "User comments (2000+)" - }, - { - "name": "user_evaluate_content1", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content2", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content3", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content4", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content5", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "user_evaluate_content6", - "value": "Matched the description, loved it, well made, nice color, original genuine." - }, - { - "name": "service_content_1", - "value": "Free Shipping (Subject to order submission)" - }, - { - "name": "service_content_2", - "value": "Store Delivery&Post-Sales" - }, - { - "name": "service_content_3", - "value": "Seven-day no-fault returns" - }, - { - "name": "case_color", - "value": "Color" - }, - { - "name": "case_version", - "value": "Version" - }, - { - "name": "case_network_standard", - "value": "Network Standard" - }, - { - "name": "case_type", - "value": "Type" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 69d43fd760b71b6cb7a9da45a9f86d6db5df760e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/commoditydetail/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "string": [ - { - "name": "rmb", - "value": "¥" - }, - { - "name": "quantity", - "value": "数量" - }, - { - "name": "share", - "value": "分享" - }, - { - "name": "collection", - "value": "收藏" - }, - { - "name": "reduction", - "value": "降价通知" - }, - { - "name": "choice", - "value": "已选" - }, - { - "name": "send", - "value": "送至" - }, - { - "name": "send_hint", - "value": "请选择您的收货地址" - }, - { - "name": "service", - "value": "服务" - }, - { - "name": "evaluate_favorable", - "value": "好评" - }, - { - "name": "evaluate_show_more", - "value": "查看更多评价" - }, - { - "name": "cart", - "value": "购物车" - }, - { - "name": "index", - "value": "首页" - }, - { - "name": "insert_cart_success", - "value": "加入购物车成功" - }, - { - "name": "commodity_desc", - "value": "【%s】%s" - }, - { - "name": "insert_cart", - "value": "加入购物车" - }, - { - "name": "buy_now", - "value": "立即购买" - }, - { - "name": "user_evaluate_title", - "value": "用户评价(2000+)" - }, - { - "name": "user_evaluate_content1", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "user_evaluate_content2", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "user_evaluate_content3", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "user_evaluate_content4", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "user_evaluate_content5", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "user_evaluate_content6", - "value": "和描述相符合,很喜欢,做工精致,颜色好看,原装正品。" - }, - { - "name": "service_content_1", - "value": "免运费(请以提交订单时为准)" - }, - { - "name": "service_content_2", - "value": "店铺发货&售后" - }, - { - "name": "service_content_3", - "value": "七天无理由退货" - }, - { - "name": "case_color", - "value": "颜色" - }, - { - "name": "case_version", - "value": "版本" - }, - { - "name": "case_network_standard", - "value": "网络制式" - }, - { - "name": "case_type", - "value": "类型" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/BuildProfile.ets b/products/phone/oh_modules/@ohos/home/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/build-profile.json5 b/products/phone/oh_modules/@ohos/home/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/home/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/home/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 1e0998bdf4b5db49fb2708834a23f26cf04c486e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "home", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/home", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/home/hvigorfile.ts b/products/phone/oh_modules/@ohos/home/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/index.ets b/products/phone/oh_modules/@ohos/home/index.ets deleted file mode 100644 index 60baf88d4b7b1137868bcfc9c8a760eecb578a3d..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/index.ets +++ /dev/null @@ -1 +0,0 @@ -export { Home } from './src/main/ets/components/Home'; diff --git a/products/phone/oh_modules/@ohos/home/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/home/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh-package.json5 b/products/phone/oh_modules/@ohos/home/oh-package.json5 deleted file mode 100644 index ee468ed10adb072d2e20b4130d3481c921f2cb7a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/home", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/ets/components/Home.ets b/products/phone/oh_modules/@ohos/home/src/main/ets/components/Home.ets deleted file mode 100644 index 72fe3831a564ef921895671da31fb3487d853a68..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/ets/components/Home.ets +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { searchSwiper, classifyTitle, swiperImage, activityTitle, ActivityTitleModel } from '../viewmodel/HomeData'; -import { LocalDataManager, CommodityList, Commodity, StyleConstants, BreakpointConstants } from '@ohos/common'; - -@Component -export struct Home { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @State commodityList: Commodity[] = []; - @State titleIndex: number = 0; - @State activityTitleIndex: number = 0; - private localDataManger: LocalDataManager = LocalDataManager.instance(); - public onClickItem = (Commodity: Commodity) => {}; - - aboutToAppear() { - this.commodityList = this.localDataManger.queryCommodityList(); - } - - @Builder - SearchTitle() { - Column() { - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Image($r('app.media.ic_eshop')) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - Image($r('app.media.ic_scan')) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - } - .height($r('app.float.vp_twenty_four')) - .width(StyleConstants.FULL_WIDTH) - .margin({ bottom: $r('app.float.vp_eight') }) - - Row() { - Image($r('app.media.ic_search')) - .width($r('app.float.vp_twenty')) - .height($r('app.float.vp_twenty')) - .margin({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_eight') - }) - Swiper() { - ForEach(searchSwiper, (item: Resource) => { - Column() { - Text(item) - .fontSize($r('app.float.small_font_size')) - .fontColor(Color.Black) - } - .alignItems(HorizontalAlign.Start) - }, (item: Resource) => JSON.stringify(item)) - } - .autoPlay(true) - .loop(true) - .vertical(true) - .indicator(false) - } - .height($r('app.float.search_swiper_height')) - .width(StyleConstants.FULL_WIDTH) - .borderRadius($r('app.float.vp_twenty')) - .backgroundColor(Color.White) - } - .width(StyleConstants.FULL_WIDTH) - .padding({ top: $r('app.float.vp_twelve'), bottom: $r('app.float.vp_twelve') }) - } - - @Builder - ClassifyTitle() { - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - ForEach(classifyTitle, (item: Resource, index?: number) => { - Text(item) - .fontSize($r('app.float.middle_font_size')) - .opacity(this.titleIndex === index ? StyleConstants.FULL_OPACITY : StyleConstants.EIGHTY_OPACITY) - .fontWeight(this.titleIndex === index ? StyleConstants.FONT_WEIGHT_SEVEN : StyleConstants.FONT_WEIGHT_FOUR) - .fontColor(Color.White) - .onClick(() => { - if (index !== undefined) { - this.titleIndex = index; - } - }) - }, (item: Resource) => JSON.stringify(item)) - Row() { - Image($r('app.media.ic_split_line')) - .width($r('app.float.vp_one')) - .height($r('app.float.vp_fourteen')) - Image($r('app.media.ic_more')) - .width($r('app.float.vp_sixteen')) - .height($r('app.float.vp_sixteen')) - .margin({ - left: $r('app.float.vp_two'), - right: $r('app.float.vp_two') - }) - Text($r('app.string.title_bar_classification')) - .fontSize($r('app.float.middle_font_size')) - .fontColor(Color.White) - .opacity(this.titleIndex === undefined ? StyleConstants.FULL_OPACITY : StyleConstants.EIGHTY_OPACITY) - .fontWeight(this.titleIndex === undefined ? - StyleConstants.FONT_WEIGHT_SEVEN : StyleConstants.FONT_WEIGHT_FOUR) - } - .onClick(() => { - this.titleIndex = 0; - }) - } - .margin({ top: $r('app.float.vp_eight') }) - .width(StyleConstants.FULL_WIDTH) - } - - @Builder - CustomSwiper() { - Swiper() { - ForEach(swiperImage, (item: Resource) => { - Image(item) - .width(StyleConstants.FULL_WIDTH) - .aspectRatio(StyleConstants.IMAGE_ASPECT_RATIO) - .borderRadius($r('app.float.vp_sixteen')) - .backgroundColor(Color.White) - }, (item: Resource) => JSON.stringify(item)) - } - .autoPlay(true) - .itemSpace(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? 0 : StyleConstants.ITEM_SPACE) - .width(StyleConstants.FULL_WIDTH) - .indicator(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? - new DotIndicator().selectedColor($r('app.color.indicator_select')) : false) - .displayCount(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_LG ? StyleConstants.DISPLAY_THREE : - (this.currentBreakpoint === BreakpointConstants.BREAKPOINT_MD ? StyleConstants.DISPLAY_TWO : - StyleConstants.DISPLAY_ONE)) - .margin({ top: $r('app.float.vp_twelve'), bottom: $r('app.float.vp_twelve') }) - } - - @Builder - ActivityTitle() { - Flex({ justifyContent: FlexAlign.SpaceAround }) { - ForEach(activityTitle, (item: ActivityTitleModel, index?: number) => { - Flex({ - direction: FlexDirection.Column, - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center - }) { - Text(item.title) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .fontColor(Color.Black) - Text(item.desc) - .fontSize($r('app.float.smaller_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .fontColor(this.activityTitleIndex === index ? $r('app.color.focus_color') : Color.Black) - .opacity(this.activityTitleIndex === index ? StyleConstants.FULL_OPACITY : StyleConstants.SIXTY_OPACITY) - } - .onClick(() => { - if (index !== undefined) { - this.activityTitleIndex = index; - } - }) - .height(StyleConstants.FULL_HEIGHT) - }, (item: ActivityTitleModel) => JSON.stringify(item)) - } - .height($r('app.float.activity_title_height')) - .width(StyleConstants.FULL_WIDTH) - .padding($r('app.float.vp_twelve')) - .margin({ bottom: $r('app.float.vp_six'), top: $r('app.float.vp_six') }) - .backgroundColor($r('app.color.page_background')) - .borderRadius($r('app.float.vp_sixteen')) - } - - build() { - Stack({ alignContent: Alignment.Top }) { - Image($r('app.media.ic_app_background')) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.image_background_height')) - .objectFit(ImageFit.Auto) - Flex({ direction: FlexDirection.Column }) { - this.SearchTitle() - Scroll() { - Column() { - this.ClassifyTitle() - this.CustomSwiper() - this.ActivityTitle() - - CommodityList({ - commodityList: $commodityList, - column: this.currentBreakpoint === BreakpointConstants.BREAKPOINT_LG ? StyleConstants.DISPLAY_FOUR : - (this.currentBreakpoint === BreakpointConstants.BREAKPOINT_MD ? - StyleConstants.DISPLAY_THREE : StyleConstants.DISPLAY_TWO), - onClickItem: (data: Commodity): void => this.onClickItem(data) - }) - } - } - .scrollBar(BarState.Off) - } - .padding({ left: $r('app.float.vp_twelve'), right: $r('app.float.vp_twelve') }) - } - } -} diff --git a/products/phone/oh_modules/@ohos/home/src/main/ets/viewmodel/HomeData.ets b/products/phone/oh_modules/@ohos/home/src/main/ets/viewmodel/HomeData.ets deleted file mode 100644 index 0d54f881340031300afd46d689bf8f1a20cf3c7e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/ets/viewmodel/HomeData.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const searchSwiper: Resource[] = [ - $r('app.string.swiper_model_mate'), - $r('app.string.swiper_model_chang'), - $r('app.string.swiper_model_mate_book'), - $r('app.string.swiper_model_Nova') -] - -const classifyTitle: Resource[] = [ - $r('app.string.title_bar_homepage'), - $r('app.string.title_bar_phone'), - $r('app.string.title_bar_computer'), - $r('app.string.title_bar_foods'), - $r('app.string.title_bar_men_wear'), - $r('app.string.title_bar_fresh'), - $r('app.string.title_bar_furniture_kitchenware') -] - -const swiperImage: Resource[] = [ - $r('app.media.ic_banner01'), - $r('app.media.ic_banner02'), - $r('app.media.ic_banner03'), - $r('app.media.ic_banner04') -] - -class ActivityTitleModel { - title?: Resource - desc?: Resource -} - -const activityTitle: ActivityTitleModel[] = [ - { - title: $r('app.string.activity_title_all'), - desc: $r('app.string.activity_title_all_desc') - }, - { - title: $r('app.string.activity_title_selected'), - desc: $r('app.string.activity_title_selected_desc') - }, - { - title: $r('app.string.activity_title_new_products'), - desc: $r('app.string.activity_title_new_products_desc') - }, - { - title: $r('app.string.activity_title_affordable'), - desc: $r('app.string.activity_title_affordable_desc') - } -] - -export { searchSwiper, classifyTitle, swiperImage, activityTitle, ActivityTitleModel } \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/src/main/module.json5 b/products/phone/oh_modules/@ohos/home/src/main/module.json5 deleted file mode 100644 index 5eca0f7c7250d72b087e0ede6e76847b623c658e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "home", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/color.json deleted file mode 100644 index 090e772aaca9209a907607c66b578623c1e42d4d..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/color.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "color": [ - { - "name": "indicator_select", - "value": "#F74E42" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/float.json deleted file mode 100644 index 6fcc68837fef78294c909a863fb4af4f2f583db7..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/float.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "float": [ - { - "name": "search_swiper_height", - "value": "40vp" - }, - { - "name": "activity_title_height", - "value": "55vp" - }, - { - "name": "image_background_height", - "value": "222vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/string.json deleted file mode 100644 index 6f84dcdf2f203e93d1d1befae3aad870b542acfa..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/resources/base/element/string.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "string": [ - { - "name": "swiper_model_mate", - "value": "XXXXXX xs2" - }, - { - "name": "swiper_model_chang", - "value": "XX20 Plus" - }, - { - "name": "swiper_model_mate_book", - "value": "XXXXBook 13" - }, - { - "name": "swiper_model_Nova", - "value": "XXXX7 Pro" - }, - { - "name": "title_bar_homepage", - "value": "Home" - }, - { - "name": "title_bar_phone", - "value": "Phone" - }, - { - "name": "title_bar_computer", - "value": "PC" - }, - { - "name": "title_bar_foods", - "value": "Food" - }, - { - "name": "title_bar_men_wear", - "value": "Swear" - }, - { - "name": "title_bar_fresh", - "value": "Fresh" - }, - { - "name": "title_bar_furniture_kitchenware", - "value": "FURN" - }, - { - "name": "title_bar_classification", - "value": "Class" - }, - { - "name": "activity_title_all", - "value": "All" - }, - { - "name": "activity_title_selected", - "value": "Picks" - }, - { - "name": "activity_title_new_products", - "value": "New Products" - }, - { - "name": "activity_title_affordable", - "value": "Affordable" - }, - { - "name": "activity_title_all_desc", - "value": "Recommend" - }, - { - "name": "activity_title_selected_desc", - "value": "Find good " - }, - { - "name": "activity_title_new_products_desc", - "value": "New Launch" - }, - { - "name": "activity_title_affordable_desc", - "value": "Cheap Good" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_app_background.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_app_background.png deleted file mode 100644 index 86fec16ea0928b2201c9d5d092fac5e2a9cd3749..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_app_background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_eshop.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_eshop.png deleted file mode 100644 index 4bffdfad8d749ae033ac0364bf9be306a483c267..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_eshop.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_more.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_more.png deleted file mode 100644 index cc5f794d423eb156ec5d4480a09bdf3f201817c5..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_more.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_scan.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_scan.png deleted file mode 100644 index 9070ca152f934de909d9963e7d508ef52d46c335..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_scan.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_search.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_search.png deleted file mode 100644 index 8bc3b1eec293469c3dcadc6dd5a39649b6de1bea..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_search.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_split_line.png b/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_split_line.png deleted file mode 100644 index 4dfff2b3e0c65ea263fecde74e6261ec12ba095a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/home/src/main/resources/base/media/ic_split_line.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/home/src/main/resources/en_US/element/string.json deleted file mode 100644 index 6f84dcdf2f203e93d1d1befae3aad870b542acfa..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "string": [ - { - "name": "swiper_model_mate", - "value": "XXXXXX xs2" - }, - { - "name": "swiper_model_chang", - "value": "XX20 Plus" - }, - { - "name": "swiper_model_mate_book", - "value": "XXXXBook 13" - }, - { - "name": "swiper_model_Nova", - "value": "XXXX7 Pro" - }, - { - "name": "title_bar_homepage", - "value": "Home" - }, - { - "name": "title_bar_phone", - "value": "Phone" - }, - { - "name": "title_bar_computer", - "value": "PC" - }, - { - "name": "title_bar_foods", - "value": "Food" - }, - { - "name": "title_bar_men_wear", - "value": "Swear" - }, - { - "name": "title_bar_fresh", - "value": "Fresh" - }, - { - "name": "title_bar_furniture_kitchenware", - "value": "FURN" - }, - { - "name": "title_bar_classification", - "value": "Class" - }, - { - "name": "activity_title_all", - "value": "All" - }, - { - "name": "activity_title_selected", - "value": "Picks" - }, - { - "name": "activity_title_new_products", - "value": "New Products" - }, - { - "name": "activity_title_affordable", - "value": "Affordable" - }, - { - "name": "activity_title_all_desc", - "value": "Recommend" - }, - { - "name": "activity_title_selected_desc", - "value": "Find good " - }, - { - "name": "activity_title_new_products_desc", - "value": "New Launch" - }, - { - "name": "activity_title_affordable_desc", - "value": "Cheap Good" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/home/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/home/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 89d9dff7da2697bba94746e998e610a211c7d7e0..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/home/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "string": [ - { - "name": "swiper_model_mate", - "value": "XXXXXX xs2" - }, - { - "name": "swiper_model_chang", - "value": "XX20 Plus" - }, - { - "name": "swiper_model_mate_book", - "value": "XXXXBook 13" - }, - { - "name": "swiper_model_Nova", - "value": "XXXX7 Pro" - }, - { - "name": "title_bar_homepage", - "value": "首页" - }, - { - "name": "title_bar_phone", - "value": "手机" - }, - { - "name": "title_bar_computer", - "value": "电脑" - }, - { - "name": "title_bar_foods", - "value": "食品" - }, - { - "name": "title_bar_men_wear", - "value": "男装" - }, - { - "name": "title_bar_fresh", - "value": "生鲜" - }, - { - "name": "title_bar_furniture_kitchenware", - "value": "家具厨具" - }, - { - "name": "title_bar_classification", - "value": "分类" - }, - { - "name": "activity_title_all", - "value": "全部" - }, - { - "name": "activity_title_selected", - "value": "精选" - }, - { - "name": "activity_title_new_products", - "value": "新品" - }, - { - "name": "activity_title_affordable", - "value": "实惠" - }, - { - "name": "activity_title_all_desc", - "value": "为你推荐" - }, - { - "name": "activity_title_selected_desc", - "value": "发现好货" - }, - { - "name": "activity_title_new_products_desc", - "value": "新品首发" - }, - { - "name": "activity_title_affordable_desc", - "value": "便宜好货" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/BuildProfile.ets b/products/phone/oh_modules/@ohos/newproduct/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/build-profile.json5 b/products/phone/oh_modules/@ohos/newproduct/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/newproduct/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index bdbf93d558f2e476453339950ac6bb9e7680647b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "newproduct", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/newproduct", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/hvigorfile.ts b/products/phone/oh_modules/@ohos/newproduct/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/index.ets b/products/phone/oh_modules/@ohos/newproduct/index.ets deleted file mode 100644 index 64dec57505319934085fff0b0e272ab473b59bcf..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/index.ets +++ /dev/null @@ -1 +0,0 @@ -export { NewProduct } from './src/main/ets/components/NewProduct' diff --git a/products/phone/oh_modules/@ohos/newproduct/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/newproduct/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh-package.json5 b/products/phone/oh_modules/@ohos/newproduct/oh-package.json5 deleted file mode 100644 index 226997305eee89918013489577df62436ff1892c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/newproduct", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/ets/components/NewProduct.ets b/products/phone/oh_modules/@ohos/newproduct/src/main/ets/components/NewProduct.ets deleted file mode 100644 index a95a400f7144704cd1c0ba46588f929e99b982ed..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/ets/components/NewProduct.ets +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants, BreakpointConstants, BreakPointType, CommonDataSource } from '@ohos/common'; -import { swiperImage, classifyTitle, productData, ProductDataModel, aspectRatio } from '../viewmodel/NewProductData'; - -@Component -export struct NewProduct { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @State titleIndex: number = 0; - - @Builder - CustomSwiper() { - Swiper() { - ForEach(swiperImage, (item: Resource) => { - Image(item) - .width(StyleConstants.FULL_WIDTH) - .aspectRatio(StyleConstants.IMAGE_ASPECT_RATIO) - .borderRadius($r('app.float.vp_sixteen')) - .backgroundColor(Color.White) - }, (item: Resource) => JSON.stringify(item)) - } - .autoPlay(true) - .itemSpace(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? 0 : StyleConstants.ITEM_SPACE) - .width(StyleConstants.FULL_WIDTH) - .indicator(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? new DotIndicator() - .selectedColor($r('app.color.sixty_alpha_black')) - .color($r('app.color.twenty_alpha_black')) - .right($r('app.float.vp_twenty_four')) : false - ) - .displayCount(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_LG ? StyleConstants.DISPLAY_THREE : - (this.currentBreakpoint === BreakpointConstants.BREAKPOINT_MD ? - StyleConstants.DISPLAY_TWO : StyleConstants.DISPLAY_ONE)) - } - - @Builder - ClassifyTitle() { - Flex({ - justifyContent: FlexAlign.SpaceAround, - alignItems: ItemAlign.Center - }) { - ForEach(classifyTitle, (item: Resource, index?: number) => { - Text(item) - .fontSize($r('app.float.middle_font_size')) - .opacity(this.titleIndex === index ? StyleConstants.FULL_OPACITY : StyleConstants.EIGHTY_OPACITY) - .fontWeight(this.titleIndex === index ? StyleConstants.FONT_WEIGHT_SEVEN : StyleConstants.FONT_WEIGHT_FOUR) - .fontColor(Color.Black) - .textOverflow({ overflow: TextOverflow.Ellipsis}) - .maxLines(1) - .onClick(() => { - if (index !== undefined) { - this.titleIndex = index; - } - }) - }, (item: Resource) => JSON.stringify(item)) - Row() { - Image($r('app.media.ic_product_split')) - .width($r('app.float.vp_eighteen')) - .height($r('app.float.vp_sixteen')) - .margin({ - left: $r('app.float.vp_two'), - right: $r('app.float.vp_two') - }) - Text($r('app.string.title_bar_classification')) - .fontSize($r('app.float.middle_font_size')) - .fontColor(Color.Black) - .opacity(this.titleIndex === classifyTitle.length + 1 ? - StyleConstants.FULL_OPACITY : StyleConstants.EIGHTY_OPACITY) - .fontWeight(this.titleIndex === classifyTitle.length + 1 ? - StyleConstants.FONT_WEIGHT_SEVEN : StyleConstants.FONT_WEIGHT_FOUR) - .textOverflow({ overflow: TextOverflow.Ellipsis}) - .maxLines(1) - }.onClick(() => { - this.titleIndex = classifyTitle.length + 1; - }) - } - .height($r('app.float.classify_title_height')) - .width(StyleConstants.FULL_WIDTH) - .margin({ - bottom: $r('app.float.vp_sixteen'), - top: $r('app.float.vp_sixteen'), - }) - } - - @Builder - ProductList() { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(productData), (item: ProductDataModel) => { - ListItem() { - Column() { - Image($rawfile(item.img)) - .width(StyleConstants.FULL_WIDTH) - .aspectRatio(new BreakPointType({ - sm: aspectRatio.sm, - md: aspectRatio.md, - lg: aspectRatio.lg - }).getValue(this.currentBreakpoint)) - .objectFit(ImageFit.Fill) - Column() { - if (item.comment) { - Text(item.comment) - .fontSize($r('app.float.smaller_font_size')) - .border({ - width: $r('app.float.vp_one'), - color: $r('app.color.three_alpha_black'), - radius: $r('app.float.vp_fourteen') - }) - .height($r('app.float.comment_text_height')) - .padding({ - left: $r('app.float.vp_eight'), - right: $r('app.float.vp_eight') - }) - .margin({ - left: $r('app.float.vp_eight'), - top: $r('app.float.vp_eight') - }) - } - Text(item.des) - .fontSize($r('app.float.small_font_size')) - .margin({ - top: $r('app.float.vp_eight'), - bottom: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - Row() { - Image($r('app.media.ic_person')) - .width($r('app.float.vp_twenty')) - .height($r('app.float.vp_twenty')) - Text(item.user) - .fontSize($r('app.float.small_font_size')) - .margin({ left: $r('app.float.vp_eight') }) - } - .margin({ - left: $r('app.float.vp_ten'), - bottom: $r('app.float.vp_ten') - }) - } - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .alignItems(HorizontalAlign.Start) - .justifyContent(FlexAlign.Start) - .borderRadius({ bottomLeft: $r('app.float.vp_eight'), bottomRight: $r('app.float.vp_eight') }) - } - .borderRadius($r('app.float.vp_eight')) - } - .margin({ - left: $r('app.float.vp_six'), - right: $r('app.float.vp_six') - }) - }, (item: ProductDataModel) => JSON.stringify(item)) - } - .lanes(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? - StyleConstants.DISPLAY_TWO : StyleConstants.DISPLAY_THREE) - .padding({ left: $r('app.float.vp_twelve'), right: $r('app.float.vp_twelve') }) - } - - build() { - Scroll() { - Column() { - this.CustomSwiper() - this.ClassifyTitle() - this.ProductList() - } - } - .scrollBar(BarState.Off) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/ets/viewmodel/NewProductData.ets b/products/phone/oh_modules/@ohos/newproduct/src/main/ets/viewmodel/NewProductData.ets deleted file mode 100644 index d88a706e697974e1f7f98c4ede9e15d5575c9a25..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/ets/viewmodel/NewProductData.ets +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class AspectRatio { - sm?: number; - md?: number; - lg?: number; -} - -const aspectRatio: AspectRatio = { - sm: 0.84, - md: 0.81, - lg: 1.31 -} - -const swiperImage: Resource[] = [ - $r('app.media.ic_banner'), - $r('app.media.ic_banner01'), - $r('app.media.ic_banner02'), - $r('app.media.ic_banner03'), - $r('app.media.ic_banner04') -] - -const classifyTitle: Resource[] = [ - $r('app.string.swiper_product_boutique'), - $r('app.string.swiper_product_phone'), - $r('app.string.swiper_product_clothes'), - $r('app.string.swiper_product_match'), - $r('app.string.swiper_product_furnishing') -] - -class ProductDataModel { - img: string = ''; - comment?: Resource; - des?: Resource; - user?: Resource; -} - -const productData: ProductDataModel[] = [ - { - img: 'common/ic_product01.png', - comment: $r('app.string.product1_comment'), - des: $r('app.string.product1_des'), - user: $r('app.string.product1_user') - }, - { - img: 'common/ic_product02.png', - comment: $r('app.string.product2_comment'), - des: $r('app.string.product2_des'), - user: $r('app.string.product2_user') - }, - { - img: 'common/ic_product03.png', - comment: $r('app.string.product3_comment'), - des: $r('app.string.product3_des'), - user: $r('app.string.product3_user') - }, - { - img: 'common/ic_product04.png', - comment: $r('app.string.product4_comment'), - des: $r('app.string.product4_des'), - user: $r('app.string.product4_user') - }, - { - img: 'common/ic_product02.png', - comment: $r('app.string.product5_comment'), - des: $r('app.string.product5_des'), - user: $r('app.string.product5_user') - }, - { - img: 'common/ic_product04.png', - comment: $r('app.string.product6_comment'), - des: $r('app.string.product6_des'), - user: $r('app.string.product6_user') - } -] - -export { aspectRatio, swiperImage, classifyTitle, productData, ProductDataModel }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/module.json5 b/products/phone/oh_modules/@ohos/newproduct/src/main/module.json5 deleted file mode 100644 index ca2c97e7b9b2b0cf049f137cbbfece5de1976de4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "newproduct", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/color.json deleted file mode 100644 index cb1cbb4558a53c7c108325dbf68e17484b0f6b33..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/color.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "color": [ - { - "name": "indicator_color", - "value": "#33000000" - }, - { - "name": "indicator_select_color", - "value": "#99000000" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/float.json deleted file mode 100644 index d1e5b04552602010d1b4d6d4d8b373cd704d996f..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/float.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "float": [ - { - "name": "classify_title_height", - "value": "40vp" - }, - { - "name": "product_image_height", - "value": "234vp" - }, - { - "name": "comment_text_height", - "value": "28vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/string.json deleted file mode 100644 index 6e4aa17a577a8818323b7a569a7e540b625ca320..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/element/string.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "string": [ - { - "name": "title_bar_classification", - "value": "Class" - }, - { - "name": "swiper_product_boutique", - "value": "Boutique" - }, - { - "name": "swiper_product_phone", - "value": "Phone" - }, - { - "name": "swiper_product_clothes", - "value": "Dress" - }, - { - "name": "swiper_product_match", - "value": "Outfits" - }, - { - "name": "swiper_product_furnishing", - "value": "Homes" - }, - { - "name": "product1_comment", - "value": "#Experience of the new" - }, - { - "name": "product1_des", - "value": "MD water heater new product trail!" - }, - { - "name": "product1_user", - "value": "From SER111" - }, - { - "name": "product2_comment", - "value": "#Experience of the new" - }, - { - "name": "product2_des", - "value": "MD coffee new product trail!" - }, - { - "name": "product2_user", - "value": "From SER222" - }, - { - "name": "product3_comment", - "value": "#Experience of new air" - }, - { - "name": "product3_des", - "value": "MD water heater new product trail!" - }, - { - "name": "product3_user", - "value": "From SER333" - }, - { - "name": "product4_comment", - "value": "#Experience of new air" - }, - { - "name": "product4_des", - "value": "MD air purifier new product trail!" - }, - { - "name": "product4_user", - "value": "From SER444" - }, - { - "name": "product5_comment", - "value": "#Experience of the new" - }, - { - "name": "product5_des", - "value": "MD coffee new product trail!" - }, - { - "name": "product5_user", - "value": "From SER555" - }, - { - "name": "product6_comment", - "value": "#Experience of new air" - }, - { - "name": "product6_des", - "value": "MD air purifier new product trail!" - }, - { - "name": "product6_user", - "value": "From SER666" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_more.png b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_more.png deleted file mode 100644 index cc5f794d423eb156ec5d4480a09bdf3f201817c5..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_more.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_person.png b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_product_split.png b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_product_split.png deleted file mode 100644 index fbc57af5ca65511d38f5dfdf3bff976713601cbd..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_product_split.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_split_line.png b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_split_line.png deleted file mode 100644 index 4dfff2b3e0c65ea263fecde74e6261ec12ba095a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/base/media/ic_split_line.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/en_US/element/string.json deleted file mode 100644 index 6e4aa17a577a8818323b7a569a7e540b625ca320..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "string": [ - { - "name": "title_bar_classification", - "value": "Class" - }, - { - "name": "swiper_product_boutique", - "value": "Boutique" - }, - { - "name": "swiper_product_phone", - "value": "Phone" - }, - { - "name": "swiper_product_clothes", - "value": "Dress" - }, - { - "name": "swiper_product_match", - "value": "Outfits" - }, - { - "name": "swiper_product_furnishing", - "value": "Homes" - }, - { - "name": "product1_comment", - "value": "#Experience of the new" - }, - { - "name": "product1_des", - "value": "MD water heater new product trail!" - }, - { - "name": "product1_user", - "value": "From SER111" - }, - { - "name": "product2_comment", - "value": "#Experience of the new" - }, - { - "name": "product2_des", - "value": "MD coffee new product trail!" - }, - { - "name": "product2_user", - "value": "From SER222" - }, - { - "name": "product3_comment", - "value": "#Experience of new air" - }, - { - "name": "product3_des", - "value": "MD water heater new product trail!" - }, - { - "name": "product3_user", - "value": "From SER333" - }, - { - "name": "product4_comment", - "value": "#Experience of new air" - }, - { - "name": "product4_des", - "value": "MD air purifier new product trail!" - }, - { - "name": "product4_user", - "value": "From SER444" - }, - { - "name": "product5_comment", - "value": "#Experience of the new" - }, - { - "name": "product5_des", - "value": "MD coffee new product trail!" - }, - { - "name": "product5_user", - "value": "From SER555" - }, - { - "name": "product6_comment", - "value": "#Experience of new air" - }, - { - "name": "product6_des", - "value": "MD air purifier new product trail!" - }, - { - "name": "product6_user", - "value": "From SER666" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/newproduct/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index df79564f2c921cabd13183ba66b5ac82d91977a9..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/newproduct/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "string": [ - { - "name": "title_bar_classification", - "value": "分类" - }, - { - "name": "swiper_product_boutique", - "value": "精品" - }, - { - "name": "swiper_product_phone", - "value": "手机" - }, - { - "name": "swiper_product_clothes", - "value": "服饰" - }, - { - "name": "swiper_product_match", - "value": "穿搭" - }, - { - "name": "swiper_product_furnishing", - "value": "家居" - }, - { - "name": "product1_comment", - "value": "#带你快速体验新款" - }, - { - "name": "product1_des", - "value": "重磅推荐,MD热水器新品试用中!" - }, - { - "name": "product1_user", - "value": "来自SER111" - }, - { - "name": "product2_comment", - "value": "#带你快速体验新款" - }, - { - "name": "product2_des", - "value": "重磅推荐,MD咖啡新品试用中!" - }, - { - "name": "product2_user", - "value": "来自SER222" - }, - { - "name": "product3_comment", - "value": "#带你快速体验新空气" - }, - { - "name": "product3_des", - "value": "重磅推荐,MD热水器新品试用中!" - }, - { - "name": "product3_user", - "value": "来自SER333" - }, - { - "name": "product4_comment", - "value": "#带你快速体验新空气" - }, - { - "name": "product4_des", - "value": "重磅推荐,MD空气净化器新品试用中!" - }, - { - "name": "product4_user", - "value": "来自SER444" - }, - { - "name": "product5_comment", - "value": "#带你快速体验新款" - }, - { - "name": "product5_des", - "value": "重磅推荐,MD咖啡新品试用中!" - }, - { - "name": "product5_user", - "value": "来自SER555" - }, - { - "name": "product6_comment", - "value": "#带你快速体验新空气" - }, - { - "name": "product6_des", - "value": "重磅推荐,MD空气净化器新品试用中!" - }, - { - "name": "product6_user", - "value": "来自SER666" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/BuildProfile.ets b/products/phone/oh_modules/@ohos/orderdetail/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/build-profile.json5 b/products/phone/oh_modules/@ohos/orderdetail/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/orderdetail/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index db0b7f81399ba7a9dd51edd9a3eee54080c3922c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "orderdetail", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "orderdetail", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/hvigorfile.ts b/products/phone/oh_modules/@ohos/orderdetail/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/index.ets b/products/phone/oh_modules/@ohos/orderdetail/index.ets deleted file mode 100644 index 925e2a2866bbf1d5d0b87095b7e07c2f3aacea48..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/index.ets +++ /dev/null @@ -1,3 +0,0 @@ -export { ConfirmOrder } from './src/main/ets/components/ConfirmOrder'; -export { PayOrder } from './src/main/ets/components/PayOrder'; -export { OrderDetailList } from './src/main/ets/components/OrderDetailList'; diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/orderdetail/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh-package.json5 b/products/phone/oh_modules/@ohos/orderdetail/oh-package.json5 deleted file mode 100644 index 5b046700a85a24111a32f1e19e79adedf2d11844..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "orderdetail", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "file:../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/AddressInfo.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/AddressInfo.ets deleted file mode 100644 index a611b1428a41de9f0c2746a10de84825360fd805..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/AddressInfo.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '@ohos/common'; -import { addressInfo, AddressInfoParams } from '../viewmodel/OrderData'; - -@Component -export struct AddressInfo { - private info?: AddressInfoParams; - - aboutToAppear() { - this.info = addressInfo[0]; - } - - build() { - Flex({ - justifyContent: FlexAlign.Start, - alignItems: ItemAlign.Center - }) { - Image($r('app.media.ic_location')) - .width($r('app.float.vp_eighteen')) - .height($r('app.float.vp_eighteen')) - .margin({ right: $r('app.float.vp_twelve') }) - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Center - }) { - Column(){ - Row() { - Text(this.info?.name) - .fontSize($r('app.float.small_font_size')) - .margin({ right: $r('app.float.vp_twelve') }) - .fontColor(Color.Black) - Text(this.info?.phone) - .fontSize($r('app.float.small_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - } - .margin({ bottom: $r('app.float.vp_eight') }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.info?.province)}${this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.info?.city)}${this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.info?.region)} ${this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.info?.detailAddress)}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - } - .alignItems(HorizontalAlign.Start) - - Image($r('app.media.ic_point')) - .height($r('app.float.vp_twelve')) - .width($r('app.float.vp_six')) - } - } - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ bottom: $r('app.float.vp_twelve') }) - .padding($r('app.float.vp_sixteen')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderItem.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderItem.ets deleted file mode 100644 index 2eeb0448a2cb3313a239be34673a562f25245373..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderItem.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Order, StyleConstants } from '@ohos/common'; - -@Component -export struct CommodityOrderItem { - public orderData?: Order; - private onCommodityClick: () => void = () => {}; - - @Styles flexStyles(){ - .flexShrink(StyleConstants.FLEX_SHRINK) - .flexGrow(StyleConstants.FLEX_GROW) - .flexBasis(StyleConstants.FLEX_BASIC) - } - - build() { - if (this.orderData) { - Flex() { - Image($rawfile(this.orderData.image)) - .height(StyleConstants.FULL_HEIGHT) - .aspectRatio(1) - Flex({ direction: FlexDirection.Column }) { - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Center - }) { - Flex() { - Text($r('app.string.commodity_piece_description', this.orderData.title, this.orderData.description)) - .width(StyleConstants.FULL_WIDTH) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.smaller_font_size')) - .lineHeight($r('app.float.vp_twenty')) - .margin({ bottom: $r('app.float.vp_four') }) - } - .flexStyles() - - Flex({ - justifyContent: FlexAlign.Center, - direction: FlexDirection.Column, - alignItems: ItemAlign.End - }) { - Text($r('app.string.commodity_piece', this.orderData.price)) - .fontSize($r('app.float.small_font_size')) - } - .padding({ left: $r('app.float.vp_eight') }) - } - .flexStyles() - - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Flex({ direction: FlexDirection.Column }) { - Text(this.orderData.specifications.length === 2 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[1].value): - this.orderData.specifications.length === 3 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[1].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[2].value) : - this.orderData.specifications.length === 4 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[1].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[2].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(this.orderData.specifications[3].value) : '' - ) - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - } - .width(StyleConstants.SEVENTY_HEIGHT) - - Flex({ - direction: FlexDirection.Column, - alignItems: ItemAlign.End - }) { - Text(`x${this.orderData.count}`) - .fontSize($r('app.float.small_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - } - .padding({ left: $r('app.float.vp_eight') }) - } - .width(StyleConstants.FULL_WIDTH) - .flexStyles() - } - .margin({ left: $r('app.float.vp_eight') }) - .flexStyles() - } - .height($r('app.float.order_height')) - .margin({ bottom: $r('app.float.vp_eight') }) - .onClick(() => this.onCommodityClick()) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderList.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderList.ets deleted file mode 100644 index 9d12269a93108c9c5e367976ffca120839e1786d..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/CommodityOrderList.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { CommodityOrderItem } from './CommodityOrderItem'; -import { Order } from '@ohos/common'; - -@Component -export struct CommodityOrderList { - @Consume('orderList') orderList: Order[]; - - build() { - Column() { - ForEach(this.orderList, (item: Order) => { - CommodityOrderItem({ - orderData: item - }); - }, (item: Order, index?: number) => JSON.stringify(item) + index); - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text($r('app.string.order_list_reward')) - .fontSize($r('app.float.small_font_size')) - Text($r('app.string.order_list_standard_reward')) - .fontSize($r('app.float.small_font_size')) - } - .padding({ - top: $r('app.float.vp_twelve'), - bottom: $r('app.float.vp_twelve') - }) - .height($r('app.float.order_item_height')) - - Divider() - .height($r('app.float.vp_one')) - .backgroundColor($r("app.color.five_alpha_black")) - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text($r('app.string.order_list_invoices')) - .fontSize($r('app.float.small_font_size')) - Row() { - Text($r('app.string.order_list_personal_invoices')) - .fontSize($r('app.float.small_font_size')) - Image($r('app.media.ic_point')) - .height($r('app.float.vp_twelve')) - .width($r('app.float.vp_six')) - .margin({ left: $r('app.float.vp_twelve') }) - } - } - .padding({ - top: $r('app.float.vp_twelve'), - bottom: $r('app.float.vp_twelve') - }) - .height($r('app.float.order_item_height')) - } - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ bottom: $r('app.float.vp_twelve') }) - .padding($r('app.float.vp_sixteen')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/ConfirmOrder.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/ConfirmOrder.ets deleted file mode 100644 index 4b30b205e403313a11dda517cd9bcd69b8023977..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/ConfirmOrder.ets +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; -import { AddressInfo } from './AddressInfo'; -import { HeaderBar } from '../components/HeaderBar'; -import { OrderDetailConstants } from '../constants/OrderDetailConstants'; -import { CommodityOrderList } from './CommodityOrderList'; -import { LocalDataManager, Order, OrderOperationStatus, GridConstants, StyleConstants } from '@ohos/common'; -import { InsertOrderProps } from '@ohos/common/src/main/ets/viewmodel/OrderModel'; - -@Component -export struct ConfirmOrder { - @Consume('orderList') orderList: Order[]; - @Consume('amount') amount: number; - private orderIds: string[] = []; - private localDataManager: LocalDataManager = LocalDataManager.instance(); - - /** - * Confirm order to request server. - */ - confirmOrder(status: number) { - this.orderList.map((item: Order) => { - let orderStatus: InsertOrderProps = { - order: item, - status: status - }; - let orderId: string | undefined = this.localDataManager.insertOrder(orderStatus); - if (orderId !== undefined) { - this.localDataManager.deleteShopCart([orderId]); - this.orderIds.push(orderId); - } - }) - } - - handleConfirmOrder() { - try { - this.confirmOrder(OrderOperationStatus.UN_PAY); - this.getUIContext().getPromptAction().showToast({ message: $r('app.string.order_commit_success') }); - this.getUIContext().getRouter().replaceUrl({ - url: OrderDetailConstants.PAY_ORDER_PAGE_URL, - params: { orderIds: this.orderIds } - }); - } catch (err) { - this.getUIContext().getPromptAction().showToast({ message: $r('app.string.order_commit_fail', err) }); - } - } - - build() { - Flex({ direction: FlexDirection.Column }) { - HeaderBar({ - title: $r('app.string.header_bar_title'), - onBack: () => this.getUIContext().getRouter().back() - }) - Column() { - Scroll() { - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - } - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_EIGHT - }, - offset: { lg: GridConstants.OFFSET_TWO } - }) { - Column() { - AddressInfo() - CommodityOrderList() - } - } - } - } - .scrollBar(BarState.Off) - } - .flexGrow(StyleConstants.FLEX_GROW) - .padding({ left: $r('app.float.vp_twelve'), right: $r('app.float.vp_twelve') }) - - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - }, - gutter: GridConstants.GUTTER_TWELVE - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_TWO, - md: GridConstants.SPAN_TWO, - lg: GridConstants.SPAN_TWO - }, - offset: { lg: GridConstants.OFFSET_TWO } - }) { - Text($r('app.string.bottom_bar_amount', this.amount)) - .fontSize($r('app.float.huge_font_size')) - .margin({ right: $r('app.float.vp_twelve') }) - .fontColor($r('app.color.focus_color')) - .textAlign(TextAlign.Start) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.vp_fifty_six')) - } - - GridCol({ - span: { - sm: GridConstants.SPAN_TWO, - md: GridConstants.SPAN_THREE, - lg: GridConstants.SPAN_THREE - }, - offset: { - md: GridConstants.OFFSET_THREE, - lg: GridConstants.OFFSET_THREE - } - }) { - Button($r('app.string.bottom_bar_button')) - .backgroundColor($r('app.color.focus_color')) - .height($r('app.float.confirm_button_height')) - .width(StyleConstants.FULL_WIDTH) - .margin({ top: $r('app.float.vp_eight') }) - .onClick((): void => this.handleConfirmOrder()) - } - } - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - .border({ - color: $r("app.color.five_alpha_black"), - width: { top: $r('app.float.vp_one') } - }) - } - .backgroundColor($r('app.color.page_background')) - .height(StyleConstants.FULL_HEIGHT) - .width(StyleConstants.FULL_WIDTH) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/HeaderBar.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/HeaderBar.ets deleted file mode 100644 index e62f5d3060500ca8c3a8417f42f9cb2d76787a77..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/HeaderBar.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '@ohos/common'; - -@Component -export struct HeaderBar { - public title: string | Resource = ''; - public onBack: () => void = () => {}; - - build() { - Flex({ alignItems: ItemAlign.Center }) { - Button() { - Image($r('app.media.ic_back')) - .width($r('app.float.vp_twenty')) - .height($r('app.float.vp_twenty')) - .margin({ - left: $r('app.float.title_image_margin_left'), - right: $r('app.float.vp_eighteen'), - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_sixteen') - }) - } - .backgroundColor($r("app.color.zero_alpha_black")) - .onClick(() => this.onBack()) - - if (this.title) { - Text(this.title) - .fontSize($r('app.float.bigger_font_size')) - .margin({ left: $r('app.float.title_text_margin_left') }) - } - } - .backgroundColor($r('app.color.page_background')) - .height($r('app.float.vp_fifty_six')) - .width(StyleConstants.FULL_WIDTH) - } -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderDetailList.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderDetailList.ets deleted file mode 100644 index 3048f5c69d71358e9dc8c75ded143abb6bbb708b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderDetailList.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { router } from '@kit.ArkUI'; -import { HeaderBar } from './HeaderBar'; -import { OrderListContent } from './OrderListContent'; -import { OrderDetailConstants } from '../constants/OrderDetailConstants' -import { EmptyComponent, OrderOperationStatus, StyleConstants, BreakpointConstants } from '@ohos/common'; - -@Component -export struct OrderDetailList { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @Consume currentTabIndex: number; - - @Builder OrderTabs() { - Column() { - Tabs({ - barPosition: BarPosition.Start, - index: this.currentTabIndex - }) { - TabContent() { - OrderListContent({ - status: OrderOperationStatus.ALLStatus, - }) - } - .tabBar(this.tabBar($r('app.string.all_orders'), OrderDetailConstants.ALL_INDEX)) - - TabContent() { - OrderListContent({ - status: OrderOperationStatus.UN_PAY, - }) - } - .tabBar(this.tabBar($r('app.string.pending_payment'), OrderDetailConstants.PENDING_PAYMENT_INDEX)) - - TabContent() { - Column() { - EmptyComponent() - } - .width(StyleConstants.FULL_WIDTH) - .height(StyleConstants.FULL_HEIGHT) - } - .tabBar(this.tabBar($r('app.string.waiting_shipment'), OrderDetailConstants.WAITING_SHIPMENT_INDEX)) - - TabContent() { - OrderListContent({ - status: OrderOperationStatus.DELIVERED, - }) - } - .tabBar(this.tabBar($r('app.string.to_be_received'), OrderDetailConstants.WAITING_RECEIVED_INDEX)) - - TabContent() { - OrderListContent({ - status: OrderOperationStatus.RECEIPT, - }) - } - .tabBar(this.tabBar($r('app.string.to_be_evaluated'), OrderDetailConstants.WAITING_EVALUATE_INDEX)) - } - .barHeight($r('app.float.order_tab_bar_height')) - .barWidth(this.currentBreakpoint === BreakpointConstants.BREAKPOINT_LG ? - StyleConstants.SIXTY_WIDTH : StyleConstants.FULL_WIDTH) - .barMode(BarMode.Fixed) - .margin({ - top: $r('app.float.vp_eight'), bottom: $r('app.float.vp_eight') - }) - .onChange((index: number) => { - this.currentTabIndex = index; - }) - } - .height(StyleConstants.FULL_HEIGHT) - .width(StyleConstants.FULL_WIDTH) - } - - @Builder tabBar(text: string | Resource, index: number) { - Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Text(text) - .fontSize($r('app.float.middle_font_size')) - .textAlign(TextAlign.Center) - .fontColor(this.currentTabIndex === index ? $r('app.color.focus_color') : $r("app.color.sixty_alpha_black")) - .fontWeight(this.currentTabIndex === index ? StyleConstants.FONT_WEIGHT_FIVE : StyleConstants.FONT_WEIGHT_FOUR) - .border({ - color: $r('app.color.focus_color'), - width: { bottom: this.currentTabIndex === index ? $r('app.float.vp_two') : $r('app.float.border_width') } - }) - .height($r('app.float.order_tab_height')) - } - .width(StyleConstants.FULL_WIDTH) - } - - build() { - Flex({ direction: FlexDirection.Column }) { - HeaderBar({ title: $r('app.string.my_order'), onBack: () => { - this.getUIContext().getRouter().back(); - } }) - this.OrderTabs() - } - .backgroundColor($r('app.color.page_background')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderListContent.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderListContent.ets deleted file mode 100644 index 87aa82deebdea53fe70477885982890f1941aa8d..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/OrderListContent.ets +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; -import { CommodityOrderItem } from './CommodityOrderItem'; -import { payEnum, statusEnum } from '../viewmodel/OrderData'; -import { OrderDetailConstants } from '../constants/OrderDetailConstants'; -import { - LocalDataManager, - Logger, - OrderOperationStatus, - Order, - Commodity, - EmptyComponent, - CommodityList, - StyleConstants, - BreakpointConstants, - GridConstants -} from '@ohos/common'; -import { updateOrderProps } from '@ohos/common/src/main/ets/viewmodel/OrderModel'; - -@Component -export struct OrderListContent { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @Consume orderList: Order[]; - @Consume commodityList: Commodity[]; - public status: OrderOperationStatus = OrderOperationStatus.ALLStatus; - private localDataManager: LocalDataManager = LocalDataManager.instance(); - - paymentHandler(orderId: string, status: number, msg: Resource) { - let orderIdStatus: updateOrderProps = { orderId, status } - this.orderList = this.localDataManager.updateOrder(orderIdStatus); - this.getUIContext().getPromptAction().showToast({ message: `${this.getUIContext().getHostContext()!.resourceManager.getStringSync(msg)}${this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.SUCCESS)}` }); - } - - build() { - Column() { - Scroll() { - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - } - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_EIGHT - }, - offset: { lg: GridConstants.OFFSET_TWO } - }) { - Column() { - if (this.status === OrderOperationStatus.ALLStatus || - this.orderList.filter(item => item.status === this.status).length > 0) { - List() { - ForEach(this.status === OrderOperationStatus.ALLStatus ? - this.orderList : this.orderList.filter(item => item.status === this.status), (info: Order) => { - ListItem() { - Flex({ direction: FlexDirection.Column }) { - Flex({ justifyContent: FlexAlign.End }) { - Text(info.status !== undefined ? statusEnum[info.status] : '') - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r('app.color.focus_color')) - } - .height($r('app.float.vp_sixteen')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_twelve') - }) - .width(StyleConstants.FULL_WIDTH) - - Divider() - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.vp_one')) - .backgroundColor($r("app.color.five_alpha_black")) - .margin({ - bottom: $r('app.float.vp_twelve') - }) - - CommodityOrderItem({ orderData: info }) - Text($r('app.string.order_id', info.orderId)) - .fontSize($r('app.float.small_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - .width(StyleConstants.FULL_WIDTH) - .margin({ - top: $r('app.float.vp_twenty_four') - }) - Divider() - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.vp_one')) - .backgroundColor($r("app.color.five_alpha_black")) - .margin({ - top: $r('app.float.vp_twelve') - }) - Flex({ - direction: FlexDirection.Column, - alignItems: ItemAlign.End, - justifyContent: FlexAlign.End - }) { - Text($r('app.string.goods_count', info.count, - info.status !== undefined ? payEnum[info.status] : '', info.price * info.count)) - .fontSize($r('app.float.small_font_size')) - .margin({ - bottom: $r('app.float.vp_sixteen') - }) - Flex({ justifyContent: FlexAlign.End }) { - if (info.status === OrderOperationStatus.UN_PAY) { - Button($r('app.string.pay_now')) - .height($r('app.float.order_list_button_height')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_fourteen')) - .onClick(() => { - this.paymentHandler(info.orderId !== undefined ? info.orderId : '', - OrderOperationStatus.DELIVERED, OrderDetailConstants.ORDER_PAY); - }) - } else if (info.status === OrderOperationStatus.DELIVERED) { - Button($r('app.string.confirm_harvest')) - .height($r('app.float.order_list_button_height')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_fourteen')) - .onClick(() => { - this.paymentHandler(info.orderId !== undefined ? info.orderId : '', - OrderOperationStatus.RECEIPT, OrderDetailConstants.ORDER_CONFIRM); - }) - } - } - .width(StyleConstants.FULL_WIDTH) - } - .height($r('app.float.order_list_item_height')) - .padding({ - top: $r('app.float.vp_sixteen') - }) - } - .onClick(() => { - this.getUIContext().getRouter().pushUrl({ - url: OrderDetailConstants.PAY_ORDER_PAGE_URL, - params: { - order: info - } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - }) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ - bottom: $r('app.float.vp_twelve') - }) - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve'), - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_sixteen') - }) - } - }) - } - } else { - Column() { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - .width(StyleConstants.FULL_WIDTH) - } - Text($r('app.string.guess_like')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_eight'), - bottom: $r('app.float.vp_twelve'), - left: $r('app.float.vp_sixteen') - }) - .width(StyleConstants.FULL_WIDTH) - .textAlign(TextAlign.Start) - - CommodityList({ - commodityList: this.commodityList, - column: this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? - StyleConstants.DISPLAY_TWO : StyleConstants.DISPLAY_THREE, - onClickItem: (data: Commodity) => { - this.getUIContext().getRouter().pushUrl({ - url: OrderDetailConstants.COMMODITY_DETAIL_PAGE_URL, - params: { - id: data.id - } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - } - }) - } - } - } - } - .scrollBar(BarState.Off) - } - .margin({ - top: $r('app.float.vp_four'), - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/PayOrder.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/PayOrder.ets deleted file mode 100644 index c883a193d608dbea2d43919221fd98ed36c2abbc..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/components/PayOrder.ets +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI'; -import { router } from '@kit.ArkUI'; -import { CommodityOrderList } from './CommodityOrderList'; -import { AddressInfo } from './AddressInfo'; -import { HeaderBar } from './HeaderBar'; -import { OrderDetailConstants } from '../constants/OrderDetailConstants'; -import { - LocalDataManager, - formatDate, - Order, - OrderOperationStatus, - StyleConstants, - GridConstants -} from '@ohos/common'; -import { updateOrderProps } from '@ohos/common/src/main/ets/viewmodel/OrderModel'; - -@Component -export struct PayOrder { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @Consume('orderList') data: Order[]; - @Link totalPrice: number; - private localDataManager: LocalDataManager = LocalDataManager.instance(); - - @Builder OrderStatus() { - Row() { - Column() { - Text(OrderDetailConstants.STATUS_ENUM[this.data[0].status !== undefined?this.data[0].status:0]) - .fontSize($r('app.float.big_font_size')) - .margin({ bottom: $r('app.float.vp_two') }) - .fontColor(Color.White) - Text(OrderDetailConstants.STATUS_DESC_ENUM[this.data[0]?.status !== undefined?this.data[0]?.status:0]) - .fontSize($r('app.float.smaller_font_size')) - .opacity(StyleConstants.SIXTY_OPACITY) - .margin({ bottom: $r('app.float.vp_two') }) - .fontColor(Color.White) - Text(this.data[0].createTime !== undefined ? - formatDate(new Date(this.data[0].createTime).valueOf(), OrderDetailConstants.DATE_FORMAT) : '') - .fontSize($r('app.float.smaller_font_size')) - .opacity(StyleConstants.SIXTY_OPACITY) - .fontColor(Color.White) - } - .alignItems(HorizontalAlign.Start) - - Blank() - Image($r("app.media.ic_pay_bag")) - .width($r('app.float.pay_image_width')) - .height($r('app.float.pay_image_height')) - .margin({ right: $r('app.float.vp_twenty') }) - Image($r('app.media.ic_arrow_right')) - .width($r('app.float.vp_twelve')) - .height($r('app.float.vp_twenty_four')) - } - .padding($r('app.float.vp_twelve')) - .width(StyleConstants.FULL_WIDTH) - } - - @Builder CostInfo() { - Column() { - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text($r('app.string.product_price')) - .fontSize($r('app.float.small_font_size')) - Text($r('app.string.commodity_piece', this.totalPrice)) - .textAlign(TextAlign.End) - .fontSize($r('app.float.small_font_size')) - } - .margin({ bottom: $r('app.float.vp_eight') }) - - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text($r('app.string.fee_price')) - .fontSize($r('app.float.small_font_size')) - Text($r('app.string.money', OrderDetailConstants.FEE_PRICE)) - .textAlign(TextAlign.End) - .fontSize($r('app.float.small_font_size')) - } - .margin({ bottom: $r('app.float.vp_eight') }) - - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text($r('app.string.order_money')) - .fontSize($r('app.float.small_font_size')) - Text($r('app.string.commodity_piece', this.totalPrice)) - .textAlign(TextAlign.End) - .fontSize($r('app.float.small_font_size')) - } - } - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ bottom: $r('app.float.vp_twelve') }) - .padding($r('app.float.vp_sixteen')) - } - - @Builder BottomBar() { - Flex({ - alignItems: ItemAlign.Center - }) { - if (this.data[0].status === OrderOperationStatus.UN_PAY) { - Button($r('app.string.btn_pay')) - .backgroundColor($r('app.color.focus_color')) - .height($r('app.float.button_height')) - .width(StyleConstants.FULL_WIDTH) - .onClick(() => { - this.data.forEach((item: Order) => { - if (item.orderId !== undefined) { - let UpdateOrderParameter: updateOrderProps = { - orderId: item.orderId, - status: OrderOperationStatus.DELIVERED - } - this.localDataManager.updateOrder(UpdateOrderParameter); - } - }) - this.getUIContext().getPromptAction().showToast({ - message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.UN_PAY])) - }); - this.getUIContext().getRouter().back(); - }) - } else if (this.data[0].status === OrderOperationStatus.DELIVERED) { - Button($r('app.string.confirm_harvest')) - .height($r('app.float.button_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor($r('app.color.focus_color')) - .onClick(() => { - if (this.data[0].orderId !== undefined) { - let UpdateOrderParameter: updateOrderProps = { - orderId: this.data[0].orderId, - status: OrderOperationStatus.RECEIPT - } - this.localDataManager.updateOrder(UpdateOrderParameter); - this.getUIContext().getPromptAction().showToast({ - message: $r('app.string.info_success', this.getUIContext().getHostContext()!.resourceManager.getStringSync(OrderDetailConstants.PAYMENT_ENUM[OrderOperationStatus.DELIVERED])) - }); - this.getUIContext().getRouter().back(); - } - }) - } else { - Row() - } - } - .height($r('app.float.vp_fifty_six')) - } - - build() { - Flex({ direction: FlexDirection.Column }) { - HeaderBar({ - title: $r('app.string.my_order'), - onBack: () => this.getUIContext().getRouter().back() - }) - Stack({ alignContent: Alignment.TopStart }) { - Image($r("app.media.ic_order_bg")) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.background_image_height')) - .objectFit(ImageFit.Auto) - Column() { - Scroll() { - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - } - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_FOUR, - md: GridConstants.SPAN_EIGHT, - lg: GridConstants.SPAN_EIGHT - }, - offset: { lg: GridConstants.OFFSET_TWO } - }) { - Column() { - this.OrderStatus() - AddressInfo() - CommodityOrderList() - this.CostInfo() - } - } - } - } - .scrollBar(BarState.Off) - } - .padding({ left: $r('app.float.vp_twelve'), right: $r('app.float.vp_twelve') }) - } - .flexGrow(StyleConstants.FLEX_GROW) - - GridRow({ - columns: { - sm: GridConstants.COLUMN_FOUR, - md: GridConstants.COLUMN_EIGHT, - lg: GridConstants.COLUMN_TWELVE - } - }) { - GridCol({ - span: { - sm: GridConstants.SPAN_TWO, - md: GridConstants.SPAN_TWO, - lg: GridConstants.SPAN_TWO - }, - offset: { - sm: GridConstants.OFFSET_TWO, - md: GridConstants.OFFSET_SIX, - lg: GridConstants.OFFSET_EIGHT - } - }) { - this.BottomBar() - } - } - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - .border({ - color: $r("app.color.five_alpha_black"), - width: { top: $r('app.float.vp_one') } - }) - } - .height(StyleConstants.FULL_HEIGHT) - .backgroundColor($r('app.color.page_background')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/constants/OrderDetailConstants.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/constants/OrderDetailConstants.ets deleted file mode 100644 index dab3559c7713a5b20ead4c80dcaeb36f7deaed62..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/constants/OrderDetailConstants.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class OrderDetailConstants{ - /** - * Index of all tab. - */ - static readonly ALL_INDEX: number = 0; - - /** - * Index of pending payment tab. - */ - static readonly PENDING_PAYMENT_INDEX: number = 1; - - /** - * Index of waiting shipment tab. - */ - static readonly WAITING_SHIPMENT_INDEX: number = 2; - - /** - * Index of waiting received tab. - */ - static readonly WAITING_RECEIVED_INDEX: number = 3; - - /** - * Index of waiting evaluate tab. - */ - static readonly WAITING_EVALUATE_INDEX: number = 4; - - /** - * String value of success. - */ - static readonly SUCCESS: Resource = $r('app.string.success'); - - /** - * String value of pay. - */ - static readonly ORDER_PAY: Resource = $r('app.string.ordered_pay'); - - /** - * String value of confirm. - */ - static readonly ORDER_CONFIRM: Resource = $r('app.string.order_confirm'); - - /** - * String value of price. - */ - static readonly FEE_PRICE: string = '0.00'; - - /** - * String format of date. - */ - static readonly DATE_FORMAT: string = 'yyyy/mm/dd HH:MM:SS'; - - /** - * CommodityDetailPage url. - */ - static readonly COMMODITY_DETAIL_PAGE_URL: string = 'pages/CommodityDetailPage'; - - /** - * PayOrderPage url. - */ - static readonly PAY_ORDER_PAGE_URL: string = 'pages/PayOrderPage'; - - /** - * Order status. - */ - static readonly STATUS_ENUM = [$r('app.string.wait_pay'), $r('app.string.seller_shipped'), $r('app.string.order_completed')]; - - /** - * Describe of order status. - */ - static readonly STATUS_DESC_ENUM = [$r('app.string.order_submitted'), $r('app.string.order_shipped'), $r('app.string.order_completed')]; - - /** - * Payment string enum. - */ - static readonly PAYMENT_ENUM = [$r('app.string.confirm_pay'), $r('app.string.confirm_harvest')]; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/viewmodel/OrderData.ets b/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/viewmodel/OrderData.ets deleted file mode 100644 index 506a0cf93734626f16250390419d425530a5553c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/ets/viewmodel/OrderData.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class AddressInfoParams { - id?: string; - updateTime?: string; - isDefault?: number; - province?: Resource; - createTime?: string; - phone?: string; - city?: Resource; - postCode?: string; - name?: Resource; - detailAddress?: Resource; - region?: Resource; - addressId?: string; - post_code?: string; -} - -const addressInfo: AddressInfoParams[] = [ - { - id: '1', - updateTime: '2022-10-22T10:10:10.222Z', - isDefault: 1, - province: $r('app.string.address1_province'), - createTime: '2022-10-22T10:10:10.222Z', - phone: '131****2168', - city: $r('app.string.address1_city'), - postCode: '246100', - name: $r('app.string.address1_name'), - detailAddress: $r('app.string.address1_detail_address'), - region: $r('app.string.address1_region'), - addressId: '1' - }, - { - id: '1', - updateTime: '2022-10-22T10:10:10.222Z', - isDefault: 0, - province: $r('app.string.address2_province'), - createTime: '2022-10-22T10:10:10.222Z', - phone: '182****0193', - city: $r('app.string.address2_city'), - post_code: '241200', - name: $r('app.string.address2_name'), - detailAddress: $r('app.string.address2_detail_address'), - region: $r('app.string.address2_region'), - addressId: '3' - } -]; - -const payEnum = [$r('app.string.accounts_payable'),$r('app.string.order_money'),$r('app.string.order_money')]; - -const statusEnum = [$r('app.string.wait_pay'),$r('app.string.seller_shipped'),$r('app.string.completed')]; - -export { addressInfo, payEnum, statusEnum } \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/module.json5 b/products/phone/oh_modules/@ohos/orderdetail/src/main/module.json5 deleted file mode 100644 index 76ea73b31320324d9b1162793b89a8e6e13e69ca..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "orderdetail", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/float.json deleted file mode 100644 index cc04122ca99accd67ea5b0a7f25d27d6289700a9..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/float.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "float": [ - { - "name": "order_height", - "value": "100vp" - }, - { - "name": "order_item_height", - "value": "46vp" - }, - { - "name": "button_height", - "value": "30vp" - }, - { - "name": "confirm_button_height", - "value": "40vp" - }, - { - "name": "title_image_margin_left", - "value": "26vp" - }, - { - "name": "title_text_margin_left", - "value": "0vp" - }, - { - "name": "border_width", - "value": "0vp" - }, - { - "name": "order_tab_height", - "value": "30vp" - }, - { - "name": "order_tab_bar_height", - "value": "32vp" - }, - { - "name": "order_list_button_height", - "value": "28vp" - }, - { - "name": "order_list_item_height", - "value": "78vp" - }, - { - "name": "pay_image_height", - "value": "36vp" - }, - { - "name": "pay_image_width", - "value": "45vp" - }, - { - "name": "background_image_height", - "value": "132vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/string.json deleted file mode 100644 index 2e44bd70bf79d340ecd0165e06e92e984341a448..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "header_bar_title", - "value": "Confirm Order" - }, - { - "name": "bottom_bar_button", - "value": "Submit" - }, - { - "name": "order_list_reward", - "value": "Delivery" - }, - { - "name": "order_list_standard_reward", - "value": "Standard Delivery" - }, - { - "name": "order_list_invoices", - "value": "Invoices" - }, - { - "name": "order_list_personal_invoices", - "value": "Electronic Invoice - Personal" - }, - { - "name": "bottom_bar_amount", - "value": "¥ %d" - }, - { - "name": "order_commit_success", - "value": "Submitted Success" - }, - { - "name": "order_commit_fail", - "value": "Submission Failed %d" - }, - { - "name": "order_money", - "value": "Actual Payment" - }, - { - "name": "product_price", - "value": "Commodity Amount" - }, - { - "name": "fee_price", - "value": "Freight Charges" - }, - { - "name": "btn_pay", - "value": "To Pay" - }, - { - "name": "money", - "value": "¥%s" - }, - { - "name": "order_id", - "value": "Order No:%s" - }, - { - "name": "pay_now", - "value": "Pay Now" - }, - { - "name": "confirm_pay", - "value": "Pay" - }, - { - "name": "confirm_harvest", - "value": "Confirm Receipt" - }, - { - "name": "guess_like", - "value": "Guess you like" - }, - { - "name": "all_orders", - "value": "All" - }, - { - "name": "pending_payment", - "value": "Pending" - }, - { - "name": "waiting_shipment", - "value": "Shipped" - }, - { - "name": "to_be_received", - "value": "Received" - }, - { - "name": "to_be_evaluated", - "value": "Evaluated" - }, - { - "name": "my_order", - "value": "My Order" - }, - { - "name": "goods_count", - "value": "Total %d items,%s:¥%d" - }, - { - "name": "info_success", - "value": "%s Success" - }, - { - "name": "wait_pay", - "value": "To be paid" - }, - { - "name": "success", - "value": " Success" - }, - { - "name": "ordered_pay", - "value": "Pay" - }, - { - "name": "order_confirm", - "value": "Confirm" - }, - { - "name": "to_be_paid", - "value": "To be paid" - }, - { - "name": "seller_shipped", - "value": "Seller shipped" - }, - { - "name": "completed", - "value": "Completed" - }, - { - "name": "order_submitted", - "value": "You have submitted an order, please wait for system confirmation." - }, - { - "name": "order_shipped", - "value": "Your order has been shipped, please be patient." - }, - { - "name": "order_completed", - "value": "Your order has been completed, thank you for your support~" - }, - { - "name": "receipt_confirmation", - "value": "Receipt confirmation" - }, - { - "name": "address1_province", - "value": "Jiangsu Province" - }, - { - "name": "address1_city", - "value": "Nanjing City" - }, - { - "name": "address1_name", - "value": "Mr. Li" - }, - { - "name": "address1_detail_address", - "value": "XiaoChuNiang, B1 Floor, N13 Canteen, XX Cloud Building, No.118 XX Road, Software Valley, Nanjing, China" - }, - { - "name": "address1_region", - "value": "Xuanwu District" - }, - { - "name": "address2_province", - "value": "Jiangsu Province" - }, - { - "name": "address2_city", - "value": "Nanjing City" - }, - { - "name": "address2_name", - "value": "Mr. Wang" - }, - { - "name": "address2_detail_address", - "value": "Dongshan Street N15, XX Cloud Building, Software Valley, Nanjing, China" - }, - { - "name": "address2_region", - "value": "Jiangning District" - }, - { - "name": "accounts_payable", - "value": "Accounts payable" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_arrow_right.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_arrow_right.png deleted file mode 100644 index f83c2a64ce2bcf65bcc54388446945e5893e281f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_arrow_right.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_back.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_back.png deleted file mode 100644 index a29b367409d7b49b7251ec379bd466db9475d4e9..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_back.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_location.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_location.png deleted file mode 100644 index 1de54b9838e99b9f995f8d69ed1a7f3ce6c26b12..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_location.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_order_bg.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_order_bg.png deleted file mode 100644 index 130397fe132f2895589d3855c9d3e521f0f2541a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_order_bg.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_pay_bag.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_pay_bag.png deleted file mode 100644 index 9a146e7c4bcfb9810b843dbf39d150c3763187a8..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_pay_bag.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_point.png b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_point.png deleted file mode 100644 index b0beec435c05f6eb229101f69ceea2244e917f18..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/base/media/ic_point.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/en_US/element/string.json deleted file mode 100644 index 2e44bd70bf79d340ecd0165e06e92e984341a448..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "header_bar_title", - "value": "Confirm Order" - }, - { - "name": "bottom_bar_button", - "value": "Submit" - }, - { - "name": "order_list_reward", - "value": "Delivery" - }, - { - "name": "order_list_standard_reward", - "value": "Standard Delivery" - }, - { - "name": "order_list_invoices", - "value": "Invoices" - }, - { - "name": "order_list_personal_invoices", - "value": "Electronic Invoice - Personal" - }, - { - "name": "bottom_bar_amount", - "value": "¥ %d" - }, - { - "name": "order_commit_success", - "value": "Submitted Success" - }, - { - "name": "order_commit_fail", - "value": "Submission Failed %d" - }, - { - "name": "order_money", - "value": "Actual Payment" - }, - { - "name": "product_price", - "value": "Commodity Amount" - }, - { - "name": "fee_price", - "value": "Freight Charges" - }, - { - "name": "btn_pay", - "value": "To Pay" - }, - { - "name": "money", - "value": "¥%s" - }, - { - "name": "order_id", - "value": "Order No:%s" - }, - { - "name": "pay_now", - "value": "Pay Now" - }, - { - "name": "confirm_pay", - "value": "Pay" - }, - { - "name": "confirm_harvest", - "value": "Confirm Receipt" - }, - { - "name": "guess_like", - "value": "Guess you like" - }, - { - "name": "all_orders", - "value": "All" - }, - { - "name": "pending_payment", - "value": "Pending" - }, - { - "name": "waiting_shipment", - "value": "Shipped" - }, - { - "name": "to_be_received", - "value": "Received" - }, - { - "name": "to_be_evaluated", - "value": "Evaluated" - }, - { - "name": "my_order", - "value": "My Order" - }, - { - "name": "goods_count", - "value": "Total %d items,%s:¥%d" - }, - { - "name": "info_success", - "value": "%s Success" - }, - { - "name": "wait_pay", - "value": "To be paid" - }, - { - "name": "success", - "value": " Success" - }, - { - "name": "ordered_pay", - "value": "Pay" - }, - { - "name": "order_confirm", - "value": "Confirm" - }, - { - "name": "to_be_paid", - "value": "To be paid" - }, - { - "name": "seller_shipped", - "value": "Seller shipped" - }, - { - "name": "completed", - "value": "Completed" - }, - { - "name": "order_submitted", - "value": "You have submitted an order, please wait for system confirmation." - }, - { - "name": "order_shipped", - "value": "Your order has been shipped, please be patient." - }, - { - "name": "order_completed", - "value": "Your order has been completed, thank you for your support~" - }, - { - "name": "receipt_confirmation", - "value": "Receipt confirmation" - }, - { - "name": "address1_province", - "value": "Jiangsu Province" - }, - { - "name": "address1_city", - "value": "Nanjing City" - }, - { - "name": "address1_name", - "value": "Mr. Li" - }, - { - "name": "address1_detail_address", - "value": "XiaoChuNiang, B1 Floor, N13 Canteen, XX Cloud Building, No.118 XX Road, Software Valley, Nanjing, China" - }, - { - "name": "address1_region", - "value": "Xuanwu District" - }, - { - "name": "address2_province", - "value": "Jiangsu Province" - }, - { - "name": "address2_city", - "value": "Nanjing City" - }, - { - "name": "address2_name", - "value": "Mr. Wang" - }, - { - "name": "address2_detail_address", - "value": "Dongshan Street N15, XX Cloud Building, Software Valley, Nanjing, China" - }, - { - "name": "address2_region", - "value": "Jiangning District" - }, - { - "name": "accounts_payable", - "value": "Accounts payable" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 6a76c7df6537f9d4b1a5163484aa2127d9b3b4a6..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/orderdetail/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "header_bar_title", - "value": "确认订单" - }, - { - "name": "bottom_bar_button", - "value": "提交订单" - }, - { - "name": "order_list_reward", - "value": "配送" - }, - { - "name": "order_list_standard_reward", - "value": "标准配送" - }, - { - "name": "order_list_invoices", - "value": "发票" - }, - { - "name": "order_list_personal_invoices", - "value": "电子普通发票-个人" - }, - { - "name": "bottom_bar_amount", - "value": "¥ %d" - }, - { - "name": "order_commit_success", - "value": "提交成功" - }, - { - "name": "order_commit_fail", - "value": "提交失败 %d" - }, - { - "name": "order_money", - "value": "实付款" - }, - { - "name": "product_price", - "value": "商品金额" - }, - { - "name": "fee_price", - "value": "运费" - }, - { - "name": "btn_pay", - "value": "去支付" - }, - { - "name": "money", - "value": "¥%s" - }, - { - "name": "order_id", - "value": "订单编号:%s" - }, - { - "name": "pay_now", - "value": "立即支付" - }, - { - "name": "confirm_pay", - "value": "支付" - }, - { - "name": "confirm_harvest", - "value": "确认收货" - }, - { - "name": "guess_like", - "value": "猜你喜欢" - }, - { - "name": "all_orders", - "value": "全部" - }, - { - "name": "pending_payment", - "value": "待付款" - }, - { - "name": "waiting_shipment", - "value": "待发货" - }, - { - "name": "to_be_received", - "value": "待收货" - }, - { - "name": "to_be_evaluated", - "value": "待评价" - }, - { - "name": "my_order", - "value": "我的订单" - }, - { - "name": "goods_count", - "value": "共%d件商品,%s:¥%d" - }, - { - "name": "info_success", - "value": "%s成功" - }, - { - "name": "wait_pay", - "value": "待支付" - }, - { - "name": "success", - "value": "成功" - }, - { - "name": "ordered_pay", - "value": "支付" - }, - { - "name": "order_confirm", - "value": "确认" - }, - { - "name": "to_be_paid", - "value": "待支付" - }, - { - "name": "seller_shipped", - "value": "卖家已发货" - }, - { - "name": "completed", - "value": "已完成" - }, - { - "name": "order_submitted", - "value": "您提交了订单,请等待系统确认" - }, - { - "name": "order_shipped", - "value": "您的订单已发货,请耐心等待" - }, - { - "name": "order_completed", - "value": "您的订单已完成,感谢支持~" - }, - { - "name": "receipt_confirmation", - "value": "确认收货" - }, - { - "name": "address1_province", - "value": "江苏省" - }, - { - "name": "address1_city", - "value": "南京市" - }, - { - "name": "address1_name", - "value": "李先生" - }, - { - "name": "address1_detail_address", - "value": "中国南京软件谷 XX路18号XX云楼N13食堂B1楼小厨娘" - }, - { - "name": "address1_region", - "value": "玄武区" - }, - { - "name": "address2_province", - "value": "江苏省" - }, - { - "name": "address2_city", - "value": "南京市" - }, - { - "name": "address2_name", - "value": "王先生" - }, - { - "name": "address2_detail_address", - "value": "东山街道 中国南京软件谷 XX云楼N15" - }, - { - "name": "address2_region", - "value": "江宁区" - }, - { - "name": "accounts_payable", - "value": "应付款" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/BuildProfile.ets b/products/phone/oh_modules/@ohos/personal/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/build-profile.json5 b/products/phone/oh_modules/@ohos/personal/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/personal/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 26429a9fb1fcfd4930957cf87c9e295e6f276429..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "personal", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/personal", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/personal/hvigorfile.ts b/products/phone/oh_modules/@ohos/personal/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/index.ets b/products/phone/oh_modules/@ohos/personal/index.ets deleted file mode 100644 index ac1c0d6677a484ccd77f2e8f539c59be8219cebd..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/index.ets +++ /dev/null @@ -1 +0,0 @@ -export { Personal } from './src/main/ets/components/Personal' diff --git a/products/phone/oh_modules/@ohos/personal/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/personal/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh-package.json5 b/products/phone/oh_modules/@ohos/personal/oh-package.json5 deleted file mode 100644 index d3192816c67ea28ab54220c9fc3cb215cc587b81..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/personal", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/IconButton.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/components/IconButton.ets deleted file mode 100644 index d445ee1b59276a15080815f237c89f62e744091c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/IconButton.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { OrderType } from '@ohos/common'; -import { IconButtonModel } from '../viewmodel/IconButtonModel'; -import { PersonalConstants } from '../constants/PersonalConstants'; - -@Component -export struct IconButton { - @ObjectLink props: IconButtonModel; - click?: (key: OrderType) => void = () => {}; - - build() { - Column() { - if (this.props.count) { - Badge({ - value: `${this.props.count}`, - style: { color: Color.White, badgeSize: PersonalConstants.BADGE_SIZE, badgeColor: Color.Red } - }) { - Image(this.props.icon) - .width($r('app.float.icon_size')) - .height($r('app.float.icon_size')) - } - .width($r('app.float.icon_size')) - .height($r('app.float.icon_size')) - } else { - Image(this.props.icon) - .width($r('app.float.icon_size')) - .height($r('app.float.icon_size')) - } - Text(this.props.text) - .fontSize($r('app.float.vp_twelve')) - .fontColor(Color.Black) - .margin({ top: $r('app.float.vp_twelve') }) - } - .height($r('app.float.vp_fifty_six')) - .onClick(() => { - if (this.click !== undefined && this.props.key !== undefined) { - this.click(this.props.key); - } - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/LiveList.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/components/LiveList.ets deleted file mode 100644 index 41b37b188270a38391b7287a803968366810c7d3..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/LiveList.ets +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BreakPointType, EmptyComponent, StyleConstants, CommonDataSource } from '@ohos/common'; -import { PersonalConstants } from '../constants/PersonalConstants'; -import { LiveDataModel } from '../viewmodel/PersonalData'; - -/** - * Component of live list. - */ -@Component -export struct LiveList { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'md'; - @Prop count: number = 0; - public liveList: LiveDataModel[] = []; - - build() { - if (this.liveList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.liveList), (item: LiveDataModel) => { - ListItem() { - this.LiveItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - }, (item: LiveDataModel) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .lanes(this.count) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } - - @Builder LiveItem(liveItem: LiveDataModel) { - Column() { - Stack({ alignContent: Alignment.TopStart }) { - Image($rawfile(liveItem.previewIcon)) - .width(StyleConstants.FULL_WIDTH) - .objectFit(ImageFit.Fill) - .aspectRatio(new BreakPointType({ - sm: PersonalConstants.ASPECT_RATIO_SM, - md: PersonalConstants.ASPECT_RATIO_MD, - lg: PersonalConstants.ASPECT_RATIO_LG - }).getValue(this.currentBreakpoint)) - .borderRadius($r('app.float.vp_sixteen')) - Text(liveItem.watchDesc) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.forty_alpha_black')) - .borderRadius($r('app.float.vp_eight')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_twenty') - }) - .margin({ - top: $r('app.float.vp_eight'), - left: $r('app.float.live_desc_margin_left') - }) - Text(liveItem.living ? $r('app.string.living') : $r('app.string.not_living')) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor(liveItem.living ? Color.Red : $r("app.color.forty_alpha_black")) - .borderRadius($r('app.float.vp_eight')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - .margin({ - top: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - - Row() { - Image($rawfile(liveItem.liverIcon)) - .objectFit(ImageFit.Contain) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .margin({ left: $r('app.float.vp_four') }) - Column() { - Text(liveItem.liverName) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .fontColor(Color.Black) - .margin({ bottom: $r('app.float.vp_four') }) - - Text(liveItem.liverDesc) - .fontSize($r('app.float.smaller_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .fontColor(Color.Black) - } - .alignItems(HorizontalAlign.Start) - .width(StyleConstants.FULL_WIDTH) - .margin({ - top: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight'), - bottom: $r('app.float.vp_twelve') - }) - } - .backgroundColor(Color.White) - .width(StyleConstants.FULL_WIDTH) - .alignItems(VerticalAlign.Center) - .width(StyleConstants.FULL_WIDTH) - } - .borderRadius($r('app.float.vp_sixteen')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/Personal.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/components/Personal.ets deleted file mode 100644 index bbc587310d1b78264e2c1351e6da43b736b592d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/components/Personal.ets +++ /dev/null @@ -1,311 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { router } from '@kit.ArkUI'; -import { Logger, OrderType, StyleConstants, BreakpointConstants } from '@ohos/common'; -import { orderButton, memberButton, activityButton, liveData } from '../viewmodel/PersonalData'; -import { IconButton } from '../components/IconButton'; -import { LiveList } from '../components/LiveList'; -import { PersonalConstants } from '../constants/PersonalConstants'; -import { IconButtonModel, OrderCount } from '../viewmodel/IconButtonModel'; - -@Component -export struct Personal { - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'md'; - @Link @Watch('onOrderCountChange') orderCount: OrderCount; - @State orderIconButton: IconButtonModel[] = orderButton; - - aboutToAppear() { - this.onOrderCountChange(); - } - - onOrderCountChange() { - this.orderIconButton.forEach((item: IconButtonModel) => { - if (item.key !== undefined) { - switch (item.key) { - case OrderType.PAYMENT: - item.count = this.orderCount.payment; - break; - case OrderType.SHIP: - item.count = this.orderCount.ship; - break; - case OrderType.RECEIPT: - item.count = this.orderCount.receipt; - break; - case OrderType.EVALUATION: - item.count = this.orderCount.evaluation; - break; - case OrderType.SALE: - item.count = this.orderCount.sale; - break; - default: - break; - } - } - }) - } - - onOrderButtonClick(key: OrderType) { - let tabIndex: number = 0; - switch (key) { - case OrderType.PAYMENT: - tabIndex = PersonalConstants.PENDING_PAYMENT_INDEX; - break; - case OrderType.SHIP: - tabIndex = PersonalConstants.WAITING_SHIPMENT_INDEX; - break; - case OrderType.RECEIPT: - tabIndex = PersonalConstants.WAITING_RECEIVED_INDEX; - break; - case OrderType.EVALUATION: - tabIndex = PersonalConstants.WAITING_EVALUATE_INDEX; - break; - default: - break; - } - this.getUIContext().getRouter().pushUrl({ - url: PersonalConstants.ORDER_LIST_PAGE_URL, - params: { tabIndex: tabIndex } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - } - - @Styles - cardStyle(){ - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ bottom: $r('app.float.vp_twelve') }) - } - - @Builder - Avatar() { - Column() { - Row() { - Image($r('app.media.ic_person')) - .width($r('app.float.icon_person_size')) - .height($r('app.float.icon_person_size')) - .borderRadius($r('app.float.vp_twenty_four')) - Column() { - Text($r('app.string.account_name')) - .fontSize($r('app.float.vp_sixteen')) - .fontColor(Color.White) - .margin({ bottom: $r('app.float.vp_four') }) - Row() { - Text($r('app.string.member_type')) - .fontSize($r('app.float.micro_font_size')) - .fontColor($r('app.color.eighty_alpha_white')) - .padding({ - left: $r('app.float.vp_four'), - right: $r('app.float.vp_four'), - top: $r('app.float.vp_one'), - bottom: $r('app.float.vp_one') - }) - .backgroundColor($r("app.color.ten_alpha_black")) - .margin({ right: $r('app.float.vp_four') }) - .borderRadius($r('app.float.vp_eight')) - Text($r('app.string.ship_address')) - .fontSize($r('app.float.micro_font_size')) - .fontColor($r("app.color.eighty_alpha_white")) - .padding({ - left: $r('app.float.vp_four'), - right: $r('app.float.vp_four'), - top: $r('app.float.vp_one'), - bottom: $r('app.float.vp_one') - }) - .backgroundColor($r("app.color.ten_alpha_black")) - .borderRadius($r('app.float.vp_eight')) - } - } - .justifyContent(FlexAlign.Center) - .margin({ left: $r('app.float.vp_twelve') }) - } - .height($r('app.float.icon_person_size')) - .width(StyleConstants.FULL_WIDTH) - - Row() { - this.AccountPoints($r('app.string.account_point'), $r('app.string.account_bonus')) - Divider() - .vertical(true) - .color($r("app.color.sixty_alpha_white")) - .height($r('app.float.vp_sixteen')) - this.AccountPoints($r('app.string.account_point'), $r('app.string.account_coupons')) - Divider() - .vertical(true) - .color($r("app.color.sixty_alpha_white")) - .height($r('app.float.vp_sixteen')) - this.AccountPoints($r('app.string.account_point'), $r('app.string.account_vouchers')) - } - .justifyContent(FlexAlign.SpaceAround) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.account_points_height')) - .margin({ - top: $r('app.float.vp_eight'), - bottom: $r('app.float.vp_eight') - }) - } - .height($r('app.float.avatar_height')) - .width(StyleConstants.FULL_WIDTH) - } - - @Builder - AccountPoints(pointValue: Resource, pointName: Resource) { - Column() { - Text(pointValue) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.eighty_alpha_white')) - Row() { - Text(pointName) - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r('app.color.eighty_alpha_white')) - Image($r('app.media.ic_white_arrow')) - .objectFit(ImageFit.Contain) - .height($r('app.float.vp_eight')) - .width($r('app.float.vp_four')) - } - .justifyContent(FlexAlign.SpaceAround) - } - } - - @Builder - Order() { - Flex({ direction: FlexDirection.Column }) { - Flex({ - justifyContent: FlexAlign.SpaceBetween, - alignItems: ItemAlign.Center - }) { - Text($r('app.string.order_mine')) - .fontSize($r('app.float.middle_font_size')) - Row() { - Text($r('app.string.order_total')) - .fontSize($r('app.float.small_font_size')) - .fontColor($r('app.color.sixty_alpha_black')) - Image($r('app.media.ic_right_arrow')) - .objectFit(ImageFit.Contain) - .height($r('app.float.vp_twenty_four')) - .width($r('app.float.vp_twelve')) - } - .onClick(() => { - this.getUIContext().getRouter().pushUrl({ - url: PersonalConstants.ORDER_LIST_PAGE_URL, - params: { tabIndex: 0 } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - }) - } - .margin({ bottom: $r('app.float.vp_fourteen') }) - - Flex({ - justifyContent: FlexAlign.SpaceAround, - alignItems: ItemAlign.Center - }) { - ForEach(this.orderIconButton, (iconButton: IconButtonModel) => { - IconButton({ - props: iconButton, - click: this.onOrderButtonClick - }) - }, (iconButton: IconButtonModel) => JSON.stringify(iconButton)) - } - .width(StyleConstants.FULL_WIDTH) - } - .height($r('app.float.order_height')) - .padding($r('app.float.vp_twelve')) - .cardStyle() - } - - @Builder - IconDock(buttons: IconButtonModel[]) { - Flex({ - justifyContent: FlexAlign.SpaceAround, - alignItems: ItemAlign.Center - }) { - ForEach(buttons, (iconButton: IconButtonModel) => { - IconButton({ - props: iconButton - }) - }, (iconButton: IconButtonModel[]) => JSON.stringify(iconButton)) - } - .height($r('app.float.icon_dock_height')) - .padding($r('app.float.vp_twelve')) - .cardStyle() - } - - @Builder - LiveTitle() { - Row() { - Text($r('app.string.live_watch')) - .fontSize($r('app.float.middle_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FIVE) - .fontColor(Color.Black) - Blank() - Text($r('app.string.live_more')) - .fontSize($r('app.float.small_font_size')) - .fontColor($r("app.color.sixty_alpha_black")) - Image($r('app.media.ic_right_arrow')) - .objectFit(ImageFit.Contain) - .height($r('app.float.vp_twenty_four')) - .width($r('app.float.vp_twelve')) - } - .margin($r('app.float.vp_twelve')) - .width(StyleConstants.FULL_WIDTH) - } - - build() { - Stack({ alignContent: Alignment.Top }) { - Image($r('app.media.ic_app_background')) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.personal_background_image_height')) - .objectFit(ImageFit.Auto) - Flex({ direction: FlexDirection.Column }) { - Row() { - Image($r('app.media.ic_setting')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - - Image($r('app.media.ic_scan')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .margin({ left: $r('app.float.vp_twenty_four') }) - } - .justifyContent(FlexAlign.End) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.icon_row_height')) - - Scroll() { - Column() { - this.Avatar() - this.Order() - this.IconDock(memberButton) - this.IconDock(activityButton) - this.LiveTitle() - LiveList({ - count: this.currentBreakpoint === BreakpointConstants.BREAKPOINT_LG ? StyleConstants.DISPLAY_FOUR : - (this.currentBreakpoint === BreakpointConstants.BREAKPOINT_MD ? - StyleConstants.DISPLAY_THREE : StyleConstants.DISPLAY_TWO), - liveList: liveData - }) - } - } - .scrollBar(BarState.Off) - } - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/constants/PersonalConstants.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/constants/PersonalConstants.ets deleted file mode 100644 index 0f7fee904b4bf9dbf991f0e507a6a056845c5e9b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/constants/PersonalConstants.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class PersonalConstants{ - /** - * Index of pending payment tab. - */ - static readonly PENDING_PAYMENT_INDEX: number = 1; - - /** - * Index of waiting shipping tab. - */ - static readonly WAITING_SHIPMENT_INDEX: number = 2; - - /** - * Index of waiting received tab. - */ - static readonly WAITING_RECEIVED_INDEX: number = 3; - - /** - * Index of waiting evaluate tab. - */ - static readonly WAITING_EVALUATE_INDEX: number = 4; - - /** - * Size of badge. - */ - static readonly BADGE_SIZE: number = 16; - - /** - * Live list item image aspect ration of sm. - */ - static readonly ASPECT_RATIO_SM: number = 1.09; - - /** - * Live list item image aspect ration of md. - */ - static readonly ASPECT_RATIO_MD: number = 1.51; - - /** - * Live list item image aspect ration of lg. - */ - static readonly ASPECT_RATIO_LG: number = 1.63; - - /** - * OrderDetailListPage url. - */ - static readonly ORDER_LIST_PAGE_URL: string = 'pages/OrderDetailListPage'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/IconButtonModel.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/IconButtonModel.ets deleted file mode 100644 index f7c6ce44a780abc314cb94723c619e5ec04ed868..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/IconButtonModel.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { OrderType } from '@ohos/common'; - -@Observed -export class IconButtonModel { - icon: Resource; - text: Resource; - key?: OrderType; - count?: number; - - constructor(icon: Resource, text: Resource, key?: OrderType, count?: number) { - this.icon = icon; - this.text = text; - this.key = key; - this.count = count; - } -} - -export class OrderCount { - payment: number = 0; - ship: number = 0; - receipt: number = 0; - evaluation: number = 0; - sale: number = 0; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/PersonalData.ets b/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/PersonalData.ets deleted file mode 100644 index 4b0e17d44d94e37afec089912e1653fac6a334de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/ets/viewmodel/PersonalData.ets +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { OrderType } from '@ohos/common'; -import { IconButtonModel } from './IconButtonModel'; - -const orderButton: IconButtonModel[] = [ - new IconButtonModel( - $r('app.media.ic_credit_card'), - $r('app.string.pending_payment'), - OrderType.PAYMENT, - 0 - ), - new IconButtonModel( - $r('app.media.ic_ship'), - $r('app.string.pending_shipment'), - OrderType.SHIP, - 0 - ), - new IconButtonModel( - $r('app.media.ic_flat'), - $r('app.string.pending_receive'), - OrderType.RECEIPT, - 0 - ), - new IconButtonModel( - $r('app.media.ic_evaluation'), - $r('app.string.pending_evaluated'), - OrderType.EVALUATION, - 0 - ), - new IconButtonModel( - $r('app.media.ic_sale'), - $r('app.string.pending_after_sales'), - OrderType.SALE, - 0 - ) -] - -const memberButton: IconButtonModel[] = [ - new IconButtonModel($r('app.media.ic_member'), $r('app.string.member_type')), - new IconButtonModel($r('app.media.ic_score'), $r('app.string.bonus_store')), - new IconButtonModel($r('app.media.ic_interact'), $r('app.string.interactive')), - new IconButtonModel($r('app.media.ic_card'), $r('app.string.card_coupon')) -] - -const activityButton: IconButtonModel[] = [ - new IconButtonModel($r('app.media.ic_official'), $r('app.string.official_service')), - new IconButtonModel($r('app.media.ic_cash'), $r('app.string.cash')), - new IconButtonModel($r('app.media.ic_trade'), $r('app.string.trade_in')), - new IconButtonModel($r('app.media.ic_my_evaluation'), $r('app.string.my_evaluation')) -] - -class LiveDataModel { - liveId: string = ''; - living: boolean = false; - watchDesc?: Resource; - previewIcon: string = ''; - liverIcon: string = ''; - liverName?: Resource; - liverDesc?: Resource; -} - -const liveData: LiveDataModel[] = [ - { - liveId: '1', - living: true, - watchDesc: $r('app.string.live_data1_watch_desc'), - previewIcon: 'common/food.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data1_liver_name'), - liverDesc: $r('app.string.live_data1_liver_desc') - }, - { - liveId: '2', - living: true, - watchDesc: $r('app.string.live_data2_watch_desc'), - previewIcon: 'common/scenery.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data2_liver_name'), - liverDesc: $r('app.string.live_data2_liver_desc') - }, - { - liveId: '3', - living: false, - watchDesc: $r('app.string.live_data3_watch_desc'), - previewIcon: 'common/food.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data3_liver_name'), - liverDesc: $r('app.string.live_data3_liver_desc') - }, - { - liveId: '4', - living: true, - watchDesc: $r('app.string.live_data4_watch_desc'), - previewIcon: 'common/scenery.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data4_liver_name'), - liverDesc: $r('app.string.live_data4_liver_desc') - }, - { - liveId: '5', - living: true, - watchDesc: $r('app.string.live_data5_watch_desc'), - previewIcon: 'common/food.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data5_liver_name'), - liverDesc: $r('app.string.live_data5_liver_desc') - }, - { - liveId: '6', - living: true, - watchDesc: $r('app.string.live_data6_watch_desc'), - previewIcon: 'common/scenery.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data6_liver_name'), - liverDesc: $r('app.string.live_data6_liver_desc') - }, - { - liveId: '7', - living: true, - watchDesc: $r('app.string.live_data7_watch_desc'), - previewIcon: 'common/food.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data7_liver_name'), - liverDesc: $r('app.string.live_data7_liver_desc') - }, - { - liveId: '8', - living: true, - watchDesc: $r('app.string.live_data8_watch_desc'), - previewIcon: 'common/scenery.png', - liverIcon: 'common/ic_person.png', - liverName: $r('app.string.live_data8_liver_name'), - liverDesc: $r('app.string.live_data8_liver_desc') - } -] - -export { orderButton, memberButton, activityButton, liveData, LiveDataModel }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/module.json5 b/products/phone/oh_modules/@ohos/personal/src/main/module.json5 deleted file mode 100644 index f2fb2433e4044e537c8a20d267466ea1a2e0d783..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "personal", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/float.json deleted file mode 100644 index 0a6f17286a77d5047db2f1c3fc92ccc1ab3be948..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/float.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "float": [ - { - "name": "icon_size", - "value": "28vp" - }, - { - "name": "icon_row_height", - "value": "44vp" - }, - { - "name": "live_image_height", - "value": "150vp" - }, - { - "name": "live_item_height", - "value": "202vp" - }, - { - "name": "live_desc_margin_left", - "value": "38vp" - }, - { - "name": "icon_person_size", - "value": "48vp" - }, - { - "name": "account_points_height", - "value": "38vp" - }, - { - "name": "avatar_height", - "value": "110vp" - }, - { - "name": "order_height", - "value": "125vp" - }, - { - "name": "icon_dock_height", - "value": "94vp" - }, - { - "name": "personal_background_image_height", - "value": "222vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/string.json deleted file mode 100644 index a574c22b5c2d75a13c93be1099e1c30edcb0b3d4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "account_name", - "value": "166****6555" - }, - { - "name": "member_type", - "value": "V0 Member" - }, - { - "name": "ship_address", - "value": "Ship To Address" - }, - { - "name": "account_point", - "value": "0" - }, - { - "name": "account_bonus", - "value": "Integrals" - }, - { - "name": "account_coupons", - "value": "Coupons" - }, - { - "name": "account_vouchers", - "value": "Free Credit" - }, - { - "name": "order_mine", - "value": "My Order" - }, - { - "name": "order_total", - "value": "All Order" - }, - { - "name": "live_watch", - "value": "The live watched a lot" - }, - { - "name": "live_more", - "value": "See more" - }, - { - "name": "pending_payment", - "value": "Pending" - }, - { - "name": "pending_shipment", - "value": "Shipped" - }, - { - "name": "pending_receive", - "value": "Received" - }, - { - "name": "pending_evaluated", - "value": "Evaluated" - }, - { - "name": "pending_after_sales", - "value": "Refund/AfterSales" - }, - { - "name": "bonus_store", - "value": "Bonus Mall" - }, - { - "name": "interactive", - "value": "Interactive Courtesy" - }, - { - "name": "card_coupon", - "value": "Card Voucher" - }, - { - "name": "official_service", - "value": "Official Service" - }, - { - "name": "cash", - "value": "Cash Envelope" - }, - { - "name": "trade_in", - "value": "Trade For New" - }, - { - "name": "my_evaluation", - "value": "My Rating" - }, - { - "name": "living", - "value": "Live" - }, - { - "name": "not_living", - "value": "Not On" - }, - { - "name": "live_data1_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data1_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data1_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data2_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data2_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data2_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data3_watch_desc", - "value": "0 watched" - }, - { - "name": "live_data3_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data3_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data4_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data4_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data4_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data5_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data5_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data5_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data6_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data6_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data6_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data7_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data7_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data7_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data8_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data8_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data8_liver_desc", - "value": "Walk all over the world" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_app_background.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_app_background.png deleted file mode 100644 index 86fec16ea0928b2201c9d5d092fac5e2a9cd3749..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_app_background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_card.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_card.png deleted file mode 100644 index 2311f68df9967d85ca74238707ae643aafc5ebb8..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_card.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_cash.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_cash.png deleted file mode 100644 index 70231e768dd0e17242c9d0702d30c7f5975d492f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_cash.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_credit_card.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_credit_card.png deleted file mode 100644 index 2f8f2e42dabb7505165c5aa7e6e7cc6c576e11e9..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_credit_card.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_evaluation.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_evaluation.png deleted file mode 100644 index 155b628bada5829ee9d8fd1eb844afe9d65fa264..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_evaluation.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_flat.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_flat.png deleted file mode 100644 index 713f228b5074c025586c3148204f69d267cd41bd..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_flat.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_interact.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_interact.png deleted file mode 100644 index 3f922ba641740d06c53c2d90941ab806414275f0..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_interact.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_member.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_member.png deleted file mode 100644 index bc1c39a7a40596b9b93f8b9dacd4585062e5b76c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_member.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_my_evaluation.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_my_evaluation.png deleted file mode 100644 index ae32d279e6d754298090275cdaa7f38c40726c28..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_my_evaluation.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_official.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_official.png deleted file mode 100644 index d486de9e4e2a9f60b8ed53bc97c0949346b2ab20..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_official.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_order_bg.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_order_bg.png deleted file mode 100644 index 130397fe132f2895589d3855c9d3e521f0f2541a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_order_bg.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_person.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_right_arrow.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_right_arrow.png deleted file mode 100644 index 24aca7d3123a01a22ef85b856869ec3805cb3054..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_right_arrow.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_sale.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_sale.png deleted file mode 100644 index 97c4745a1e4a82c1215e0ab37ab8a1e8bc19c5ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_sale.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_scan.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_scan.png deleted file mode 100644 index 9070ca152f934de909d9963e7d508ef52d46c335..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_scan.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_score.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_score.png deleted file mode 100644 index 00b66037526355c6d825225a8a1411dde5b11824..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_score.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_setting.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_setting.png deleted file mode 100644 index aa06de7a39b0e15d0a57883270caf8a0e2234fb7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_setting.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_ship.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_ship.png deleted file mode 100644 index 3040a24a2050f1fd7965f932d5fb33d6d0dd9e69..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_ship.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_trade.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_trade.png deleted file mode 100644 index a03cb0f51a148458cdbda1a6834d8cf68fa76126..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_trade.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_white_arrow.png b/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_white_arrow.png deleted file mode 100644 index 346f51a4e0d7bc74e4402427d0aa31ab326a8a23..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/personal/src/main/resources/base/media/ic_white_arrow.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/personal/src/main/resources/en_US/element/string.json deleted file mode 100644 index a574c22b5c2d75a13c93be1099e1c30edcb0b3d4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "account_name", - "value": "166****6555" - }, - { - "name": "member_type", - "value": "V0 Member" - }, - { - "name": "ship_address", - "value": "Ship To Address" - }, - { - "name": "account_point", - "value": "0" - }, - { - "name": "account_bonus", - "value": "Integrals" - }, - { - "name": "account_coupons", - "value": "Coupons" - }, - { - "name": "account_vouchers", - "value": "Free Credit" - }, - { - "name": "order_mine", - "value": "My Order" - }, - { - "name": "order_total", - "value": "All Order" - }, - { - "name": "live_watch", - "value": "The live watched a lot" - }, - { - "name": "live_more", - "value": "See more" - }, - { - "name": "pending_payment", - "value": "Pending" - }, - { - "name": "pending_shipment", - "value": "Shipped" - }, - { - "name": "pending_receive", - "value": "Received" - }, - { - "name": "pending_evaluated", - "value": "Evaluated" - }, - { - "name": "pending_after_sales", - "value": "Refund/AfterSales" - }, - { - "name": "bonus_store", - "value": "Bonus Mall" - }, - { - "name": "interactive", - "value": "Interactive Courtesy" - }, - { - "name": "card_coupon", - "value": "Card Voucher" - }, - { - "name": "official_service", - "value": "Official Service" - }, - { - "name": "cash", - "value": "Cash Envelope" - }, - { - "name": "trade_in", - "value": "Trade For New" - }, - { - "name": "my_evaluation", - "value": "My Rating" - }, - { - "name": "living", - "value": "Live" - }, - { - "name": "not_living", - "value": "Not On" - }, - { - "name": "live_data1_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data1_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data1_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data2_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data2_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data2_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data3_watch_desc", - "value": "0 watched" - }, - { - "name": "live_data3_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data3_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data4_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data4_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data4_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data5_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data5_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data5_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data6_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data6_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data6_liver_desc", - "value": "Walk all over the world" - }, - { - "name": "live_data7_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data7_liver_name", - "value": "Chief Gourmet" - }, - { - "name": "live_data7_liver_desc", - "value": "Taste the world's cuisine" - }, - { - "name": "live_data8_watch_desc", - "value": "29,000 watched" - }, - { - "name": "live_data8_liver_name", - "value": "Great Traveler" - }, - { - "name": "live_data8_liver_desc", - "value": "Walk all over the world" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/personal/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/personal/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 838ff5c947cda3e742b105d28c8798a4916fa509..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/personal/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "string": [ - { - "name": "account_name", - "value": "166****6555" - }, - { - "name": "member_type", - "value": "V0会员" - }, - { - "name": "ship_address", - "value": "收货地址" - }, - { - "name": "account_point", - "value": "0" - }, - { - "name": "account_bonus", - "value": "积分" - }, - { - "name": "account_coupons", - "value": "优惠券" - }, - { - "name": "account_vouchers", - "value": "代金券" - }, - { - "name": "order_mine", - "value": "我的订单" - }, - { - "name": "order_total", - "value": "全部订单" - }, - { - "name": "live_watch", - "value": "我常看的直播" - }, - { - "name": "live_more", - "value": "查看更多" - }, - { - "name": "pending_payment", - "value": "待付款" - }, - { - "name": "pending_shipment", - "value": "待发货" - }, - { - "name": "pending_receive", - "value": "待收货" - }, - { - "name": "pending_evaluated", - "value": "待评价" - }, - { - "name": "pending_after_sales", - "value": "退款/售后" - }, - { - "name": "bonus_store", - "value": "积分商城" - }, - { - "name": "interactive", - "value": "互动有礼" - }, - { - "name": "card_coupon", - "value": "红包卡券" - }, - { - "name": "official_service", - "value": "官方客服" - }, - { - "name": "cash", - "value": "现金红包" - }, - { - "name": "trade_in", - "value": "以旧换新" - }, - { - "name": "my_evaluation", - "value": "我的评价" - }, - { - "name": "living", - "value": "直播中" - }, - { - "name": "not_living", - "value": "未开播" - }, - { - "name": "live_data1_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data1_liver_name", - "value": "首席美食家" - }, - { - "name": "live_data1_liver_desc", - "value": "带您品尝各地美食" - }, - { - "name": "live_data2_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data2_liver_name", - "value": "大旅游家" - }, - { - "name": "live_data2_liver_desc", - "value": "带您走遍天下奇景" - }, - { - "name": "live_data3_watch_desc", - "value": "0人观看" - }, - { - "name": "live_data3_liver_name", - "value": "首席美食家" - }, - { - "name": "live_data3_liver_desc", - "value": "带您品尝各地美食" - }, - { - "name": "live_data4_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data4_liver_name", - "value": "大旅游家" - }, - { - "name": "live_data4_liver_desc", - "value": "带您走遍天下奇景" - }, - { - "name": "live_data5_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data5_liver_name", - "value": "首席美食家" - }, - { - "name": "live_data5_liver_desc", - "value": "带您品尝各地美食" - }, - { - "name": "live_data6_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data6_liver_name", - "value": "大旅游家" - }, - { - "name": "live_data6_liver_desc", - "value": "带您走遍天下奇景" - }, - { - "name": "live_data7_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data7_liver_name", - "value": "首席美食家" - }, - { - "name": "live_data7_liver_desc", - "value": "带您品尝各地美食" - }, - { - "name": "live_data8_watch_desc", - "value": "2.9万人观看" - }, - { - "name": "live_data8_liver_name", - "value": "大旅游家" - }, - { - "name": "live_data8_liver_desc", - "value": "带您走遍天下奇景" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/BuildProfile.ets b/products/phone/oh_modules/@ohos/shopcart/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/build-profile.json5 b/products/phone/oh_modules/@ohos/shopcart/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/shopcart/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 429af99e3a35f3faf3115910b4661a9cc0cdd21c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "shopcart", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/shopcart", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/hvigorfile.ts b/products/phone/oh_modules/@ohos/shopcart/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/index.ets b/products/phone/oh_modules/@ohos/shopcart/index.ets deleted file mode 100644 index a961cc6ae5f396ebce27b65f25d85377f087f88c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/index.ets +++ /dev/null @@ -1 +0,0 @@ -export { ShopCart } from './src/main/ets/components/ShopCart' diff --git a/products/phone/oh_modules/@ohos/shopcart/oh-package-lock.json5 b/products/phone/oh_modules/@ohos/shopcart/oh-package-lock.json5 deleted file mode 100644 index 6941f2c3e183158240c49bd777976fab78a643e2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh-package-lock.json5 +++ /dev/null @@ -1,19 +0,0 @@ -{ - "meta": { - "stableOrder": true, - "enableUnifiedLockfile": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/common@../../common": "@ohos/common@../../common" - }, - "packages": { - "@ohos/common@../../common": { - "name": "@ohos/common", - "version": "1.0.0", - "resolved": "../../common", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh-package.json5 b/products/phone/oh_modules/@ohos/shopcart/oh-package.json5 deleted file mode 100644 index 52f4cbb1da89c9299fd20d9775df2a8152cc4de5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh-package.json5 +++ /dev/null @@ -1,12 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/shopcart", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": { - "@ohos/common": "../../common" - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/BuildProfile.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build-profile.json5 b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build-profile.json5 deleted file mode 100644 index beb58df23d08691b749b0033ac7a16274671e550..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build-profile.json5 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json deleted file mode 100644 index 5d803f8b5b0d55af724f6b6c318421b997727276..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/build/default/intermediates/merge_profile/default/module.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "app": { - "bundleName": "com.example.multishopping", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 50005017, - "targetAPIVersion": 50005017, - "apiReleaseType": "Release", - "compileSdkVersion": "5.1.1.202", - "compileSdkType": "HarmonyOS", - "appEnvironments": [], - "bundleType": "app", - "buildMode": "debug" - }, - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ], - "packageName": "@ohos/common", - "installationFree": false - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/hvigorfile.ts b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/hvigorfile.ts deleted file mode 100644 index 47e6e1f81d365872f101585f5dbf816bcad65864..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/hvigorfile.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/index.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/index.ets deleted file mode 100644 index 04d8de541e60c4ec59e2ee8d771ef81186e1ddbb..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/index.ets +++ /dev/null @@ -1,16 +0,0 @@ -export { BreakpointSystem, BreakPointType } from './src/main/ets/utils/BreakpointSystem'; -export { commodityData } from './src/main/ets/viewmodel/ShopData'; -export { CommodityList } from './src/main/ets/components/CommodityList'; -export { Commodity } from './src/main/ets/viewmodel/CommodityModel'; -export { Specification, KV } from './src/main/ets/viewmodel/CommodityModel'; -export { LocalDataManager } from './src/main/ets/utils/LocalDataManager'; -export { Logger } from './src/main/ets/utils/Logger'; -export { CounterProduct } from './src/main/ets/components/CounterProduct'; -export { Product, ProductSpecification } from './src/main/ets/viewmodel/ProductModel'; -export { EmptyComponent } from './src/main/ets/components/EmptyComponent'; -export { Order, OrderType, OrderOperationStatus } from './src/main/ets/viewmodel/OrderModel'; -export { formatDate, getID } from './src/main/ets/utils/Utils'; -export { BreakpointConstants } from './src/main/ets/constants/BreakpointConstants'; -export { GridConstants } from './src/main/ets/constants/GridConstants'; -export { StyleConstants } from './src/main/ets/constants/StyleConstants'; -export { CommonDataSource } from './src/main/ets/utils/CommonDataSource'; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/oh-package.json5 b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/oh-package.json5 deleted file mode 100644 index f6460b283d369de398db5aa8c6bb639e7753e89b..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/oh-package.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "license": "ISC", - "types": "", - "devDependencies": {}, - "name": "@ohos/common", - "description": "a npm package which contains arkUI2.0 page", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets deleted file mode 100644 index 448411ae6a911da8ac1ab888addc3df73c18083c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CommodityList.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from '../viewmodel/CommodityModel'; -import { EmptyComponent } from './EmptyComponent'; -import { StyleConstants } from '../constants/StyleConstants'; -import { CommonDataSource } from '../utils/CommonDataSource'; - -/** - * Commodity list component. - */ -@Component -export struct CommodityList { - @Link commodityList: Commodity[]; - @Prop column: number = 0; - public onClickItem? = (Commodity: Commodity) => {}; - - @Builder - CommodityItem(info: Commodity) { - Column() { - Image($rawfile(info.images[0])) - .width($r('app.float.commodity_item_image_size')) - .height($r('app.float.commodity_item_image_size')) - .objectFit(ImageFit.Contain) - .margin({ - top: $r('app.float.vp_sixteen'), - bottom: $r('app.float.vp_eight') - }) - Column() { - Text($r('app.string.commodity_piece_description', info.title, info.description)) - .fontColor(Color.Black) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .fontSize($r('app.float.small_font_size')) - .fontWeight(StyleConstants.FONT_WEIGHT_FOUR) - .lineHeight($r('app.float.commodity_desc_height')) - Text($r('app.string.commodity_piece', info.price)) - .fontColor($r('app.color.focus_color')) - .fontSize($r('app.float.middle_font_size')) - .margin({ - top: $r('app.float.vp_four'), - bottom: $r('app.float.vp_eight') - }) - Text(`${this.getUIContext().getHostContext()!.resourceManager.getStringSync(info.promotion)}`) - .fontSize($r('app.float.micro_font_size')) - .fontColor(Color.White) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_four')) - .height($r('app.float.vp_sixteen')) - .padding({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - } - .width(StyleConstants.FULL_WIDTH) - .alignItems(HorizontalAlign.Start) - } - .padding($r('app.float.vp_twelve')) - .height($r('app.float.commodity_item_height')) - .width(StyleConstants.FULL_WIDTH) - .backgroundColor(Color.White) - .borderRadius($r('app.float.vp_eight')) - } - - build() { - if (this.commodityList.length > 0) { - List({ space: StyleConstants.TWELVE_SPACE }) { - LazyForEach(new CommonDataSource(this.commodityList), (item: Commodity) => { - ListItem() { - this.CommodityItem(item) - } - .margin({ left: $r('app.float.vp_six'), right: $r('app.float.vp_six') }) - .onClick(() => { - if (this.onClickItem !== undefined) { - this.onClickItem(item); - } - }) - }, (item: Commodity) => JSON.stringify(item)) - } - .margin({ left: $r('app.float.commodity_list_margin'), right: $r('app.float.commodity_list_margin') }) - .listDirection(Axis.Vertical) - .lanes(this.column) - } else { - EmptyComponent({ outerHeight: StyleConstants.FIFTY_HEIGHT }) - } - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets deleted file mode 100644 index d6792f4d89305461da605cc579df640e237511a1..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/CounterProduct.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Component -export struct CounterProduct { - @State @Watch('onChange') quantityCount: number = 1; - @State disabled: boolean = true; - public count: number = 1; - private counterMin: number = 1; - public onNumberChange: (n: number) => void = () => {}; - - aboutToAppear() { - this.quantityCount = this.count; - if (this.quantityCount === this.counterMin) { - this.disabled = true; - } - } - - onChange() { - this.disabled = (this.quantityCount === this.counterMin); - } - - build() { - Row() { - Image(this.disabled ? $r('app.media.ic_decrease_disable') : $r('app.media.ic_decrease')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - if (this.disabled) { - return; - } - this.quantityCount = Math.max(this.quantityCount - 1, this.counterMin); - this.onNumberChange(this.quantityCount); - }) - Text(`${this.quantityCount}`) - .fontSize($r('app.float.smaller_font_size')) - .fontColor(Color.Black) - .textAlign(TextAlign.Center) - .width($r('app.float.count_text_width')) - .height($r('app.float.vp_twenty_four')) - Image($r('app.media.ic_increase')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .onClick(() => { - this.quantityCount = Math.min(this.quantityCount + 1, Number.MAX_VALUE); - this.onNumberChange(this.quantityCount); - }) - } - .width($r('app.float.count_width')) - .height($r('app.float.vp_twenty_four')) - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets deleted file mode 100644 index e8638837d004a44a5f3d9b70a2f67b824b511e43..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/components/EmptyComponent.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { StyleConstants } from '../constants/StyleConstants'; - -@Component -export struct EmptyComponent { - public outerHeight?: number | string = StyleConstants.FULL_HEIGHT; - - build() { - Flex({ - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.Center, - direction: FlexDirection.Column - }) { - Image($r('app.media.ic_empty')) - .width($r('app.float.empty_image_size')) - .height($r('app.float.empty_image_size')) - Text($r('app.string.empty_text')) - .fontSize($r('app.float.micro_font_size')) - .margin({ top: $r('app.float.vp_ten') }) - } - .width(StyleConstants.FULL_WIDTH) - .height(this.outerHeight !== undefined ? this.outerHeight : StyleConstants.FULL_HEIGHT) - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets deleted file mode 100644 index c05c1b1d57a502fcb4569f7ffc580bf8bdd9420c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/BreakpointConstants.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for breakpoint. - */ -export class BreakpointConstants { - /** - * Breakpoints that represent small device types. - */ - static readonly BREAKPOINT_SM: string = 'sm'; - - /** - * Breakpoints that represent middle device types. - */ - static readonly BREAKPOINT_MD: string = 'md'; - - /** - * Breakpoints that represent large device types. - */ - static readonly BREAKPOINT_LG: string = 'lg'; - - /** - * Current breakpoints that to query the device types. - */ - static readonly CURRENT_BREAKPOINT: string = 'currentBreakpoint'; - - /** - * Range of the small device width. - */ - static readonly RANGE_SM: string = '(320vp<=width<520vp)'; - - /** - * Range of the middle device width. - */ - static readonly RANGE_MD: string = '(520vp<=width<840vp)'; - - /** - * Range of the large device width. - */ - static readonly RANGE_LG: string = '(840vp<=width)'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets deleted file mode 100644 index dd257f2d8ae984beb71ab4564c0aca2cb3ada579..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/GridConstants.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for Grid components. - */ -export class GridConstants { - /** - * Current component width: 4 grids. - */ - static readonly COLUMN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly COLUMN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly COLUMN_TWELVE: number = 12; - - /** - * Current component width: 1 grids. - */ - static readonly SPAN_ONE: number = 1; - - /** - * Current component width: 2 grids. - */ - static readonly SPAN_TWO: number = 2; - - /** - * Current component width: 3 grids. - */ - static readonly SPAN_THREE: number = 3; - - /** - * Current component width: 4 grids. - */ - static readonly SPAN_FOUR: number = 4; - - /** - * Current component width: 8 grids. - */ - static readonly SPAN_EIGHT: number = 8; - - /** - * Current component width: 12 grids. - */ - static readonly SPAN_TWELVE: number = 12; - - /** - * Current component offset 2 grids. - */ - static readonly OFFSET_TWO: number = 2; - - /** - * Current component offset 3 grids. - */ - static readonly OFFSET_THREE: number = 3; - - /** - * Current component offset 6 grids. - */ - static readonly OFFSET_SIX: number = 6; - - /** - * Current component offset 8 grids. - */ - static readonly OFFSET_EIGHT: number = 8; - - /** - * Current component gutter 12. - */ - static readonly GUTTER_TWELVE: number = 12; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets deleted file mode 100644 index 824e72686db592f52d739ea529db4081c3d55922..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/constants/StyleConstants.ets +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Constants for common style. - */ -export class StyleConstants { - /** - * Component width percentage: 100%. - */ - static readonly FULL_WIDTH: string = '100%'; - - /** - * Component height percentage: 100%. - */ - static readonly FULL_HEIGHT: string = '100%'; - - /** - * Component height percentage: 70%. - */ - static readonly SEVENTY_HEIGHT: string = '70%'; - - /** - * Component height percentage: 60%. - */ - static readonly SIXTY_HEIGHT: string = '60%'; - - /** - * Component width percentage: 60%. - */ - static readonly SIXTY_WIDTH: string = '60%'; - - /** - * Component height percentage: 50%. - */ - static readonly FIFTY_HEIGHT: string = '50%'; - - /** - * Component height percentage: 50%. - */ - static readonly HUNDRED_FIFTEEN_WIDTH: string = '115%'; - - /** - * Component space vp : 4. - */ - static readonly FOUR_SPACE: string = '4vp'; - - /** - * Component space vp : 12. - */ - static readonly TWELVE_SPACE: string = '12vp'; - - /** - * Component space vp : 14. - */ - static readonly ITEM_SPACE: string = '14vp'; - - /** - * Component space vp : 15. - */ - static readonly FIFTEEN_SPACE: string = '15vp'; - - /** - * Font weight value: 700. - */ - static readonly FONT_WEIGHT_SEVEN: number = 700; - - /** - * Font weight value: 500. - */ - static readonly FONT_WEIGHT_FIVE: number = 500; - - /** - * Font weight value: 400. - */ - static readonly FONT_WEIGHT_FOUR: number = 400; - - /** - * Text line value: 2. - */ - static readonly TWO_TEXT_LINE: number = 2; - - /** - * Component opacity value: 1. - */ - static readonly FULL_OPACITY: number = 1; - - /** - * Component opacity value: 0.6. - */ - static readonly SIXTY_OPACITY: number = 0.6; - - /** - * Component opacity value: 0.8. - */ - static readonly EIGHTY_OPACITY: number = 0.8; - - /** - * Component layout value: 1. - */ - static readonly LAYOUT_WEIGHT: number = 1; - - /** - * Flex basic value: 1. - */ - static readonly FLEX_BASIC: number = 1; - - /** - * Flex shrink value: 1. - */ - static readonly FLEX_SHRINK: number = 1; - - /** - * Flex grow value: 1. - */ - static readonly FLEX_GROW: number = 1; - - /** - * Swiper or list display count value: 1. - */ - static readonly DISPLAY_ONE: number = 1; - - /** - * Swiper or list display count value: 2. - */ - static readonly DISPLAY_TWO: number = 2; - - /** - * Swiper or list display count value: 3. - */ - static readonly DISPLAY_THREE: number = 3; - - /** - * Swiper or list display count value: 4. - */ - static readonly DISPLAY_FOUR: number = 4; - - /** - * Image aspect ratio value: 2.23. - */ - static readonly IMAGE_ASPECT_RATIO: number = 2.25; - - /** - * Number of value: 0.5. - */ - static readonly HALF_ONE: number = 0.5; - - /** - * Number of value: -1. - */ - static readonly MINUS_ONE: number = -1; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets deleted file mode 100644 index bac603bba5cd7e7209429468855ef1789cb2945a..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/BreakpointSystem.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { mediaquery } from '@kit.ArkUI'; -import { BreakpointConstants } from '../constants/BreakpointConstants'; - -declare interface BreakPointTypeOption { - sm: T - md: T - lg: T -} - -export class BreakPointType { - options: BreakPointTypeOption - - constructor(option: BreakPointTypeOption) { - this.options = option; - } - - getValue(currentBreakPoint: string): T { - if (this.options.sm !== undefined && currentBreakPoint === 'sm') { - return this.options.sm as T; - } - if (this.options.md && currentBreakPoint === 'md') { - return this.options.md as T; - } else { - return this.options.lg as T; - } - } -} - -export class BreakpointSystem { - private context : UIContext - - constructor(context:UIContext) { - this.context = context - } - private currentBreakpoint: string = ''; - private smListener?: mediaquery.MediaQueryListener; - private mdListener?: mediaquery.MediaQueryListener; - private lgListener?: mediaquery.MediaQueryListener; - - private updateCurrentBreakpoint(breakpoint: string) { - if (this.currentBreakpoint !== breakpoint) { - this.currentBreakpoint = breakpoint; - AppStorage.set(BreakpointConstants.CURRENT_BREAKPOINT, this.currentBreakpoint); - } - } - - private isBreakpointSM = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_SM); - } - } - - private isBreakpointMD = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_MD); - } - } - - private isBreakpointLG = (mediaQueryResult: mediaquery.MediaQueryResult) => { - if (mediaQueryResult.matches) { - this.updateCurrentBreakpoint(BreakpointConstants.BREAKPOINT_LG); - } - } - - public register() { - this.smListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_SM); - this.smListener.on('change', this.isBreakpointSM); - this.mdListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_MD); - this.mdListener.on('change', this.isBreakpointMD); - this.lgListener = this.context.getMediaQuery().matchMediaSync(BreakpointConstants.RANGE_LG); - this.lgListener.on('change', this.isBreakpointLG); - } - - public unregister() { - this.smListener?.off('change', this.isBreakpointSM); - this.mdListener?.off('change', this.isBreakpointMD); - this.lgListener?.off('change', this.isBreakpointLG); - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets deleted file mode 100644 index a6d722724dab2671f0a9cf35dce677c69eca13de..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/CommonDataSource.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class CommonDataSource implements IDataSource { - private dataArray: T[] = []; - private listeners: DataChangeListener[] = []; - - constructor(element: T[]) { - this.dataArray = element; - } - - public getData(index: number) { - return this.dataArray[index] - } - - public totalCount(): number { - return this.dataArray.length; - } - - public addData(index: number, data: T[]): void { - this.dataArray = this.dataArray.concat(data); - this.notifyDataAdd(index); - } - - public pushData(data: T): void { - this.dataArray.push(data); - this.notifyDataAdd(this.dataArray.length - 1); - } - - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener); - if (pos >= 0) { - this.listeners.splice(pos, 1); - } - } - - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener); - } - } - - notifyDataReload(): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataReloaded(); - }) - } - - notifyDataAdd(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataAdd(index); - }) - } - - notifyDataChange(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataChange(index); - }) - } - - notifyDataDelete(index: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataDelete(index); - }) - } - - notifyDataMove(from: number, to: number): void { - this.listeners.forEach((listener: DataChangeListener) => { - listener.onDataMove(from, to); - }) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets deleted file mode 100644 index 395ca5aeba6e7783859aec4719111f9bdac51631..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/LocalDataManager.ets +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { commodityData, shopCartData, orderData } from '../viewmodel/ShopData'; -import { Product, ShopProps, UpdateShopProps } from '../viewmodel/ProductModel'; -import { InsertOrderProps, Order, updateOrderProps } from '../viewmodel/OrderModel'; -import { getID } from './Utils'; - -/** - * The tool of local data manager. - */ -export class LocalDataManager { - private static localDataManager: LocalDataManager; - private shopCartData: Product[] = []; - private orderData: Order[] = []; - - private constructor() { - this.initDefaultShopCartData(); - this.initDefaultOrderData(); - } - - static instance() { - if (!LocalDataManager.localDataManager) { - LocalDataManager.localDataManager = new LocalDataManager(); - } - return LocalDataManager.localDataManager; - } - - /** - * Query commodity list. - * - * @returns Commodity[] - */ - queryCommodityList() { - return commodityData; - } - - /** - * Query commodity list by id of commodity. - * - * @param id id of commodity - * @returns Commodity - */ - queryCommodityListById(id: string) { - const result = commodityData.filter(item => item.id === id)[0]; - return result; - } - - private initDefaultShopCartData() { - this.shopCartData = shopCartData.sort((a, b) => - new Date(a.create_time !== undefined ? a.create_time : 0).valueOf() - - new Date(b.create_time !== undefined ? b.create_time : 0).valueOf()); - return this.shopCartData; - } - - /** - * Query shop cart data. - * - * @returns Product[] - */ - queryShopCart() { - return this.shopCartData; - } - - /** - * Insert data to shopCartData. - * - * @param props value of Product. - * @returns - */ - insertShopCart(props: ShopProps): number { - const result = commodityData.filter((item) => item.id === props.commodityId)[0]; - const newShop: Product = { - id: getID(), - name: result.title, - img: result.images, - price: result.price, - count: props.count, - specifications: props.specifications, - selected: true, - description: result.description, - commodityId: result.id - }; - this.shopCartData.splice(0, 0, newShop); - return this.shopCartData.length; - } - - /** - * Delete data from shopCartData by ids. - * - * @param ids deleted id - * @returns Product[] - */ - deleteShopCart(ids: string[]) { - ids.forEach((id: string) => { - const result = this.shopCartData.filter((item: Product) => item.id === id); - if (result.length > 0) { - this.shopCartData.splice(this.shopCartData.indexOf(result[0]), 1); - } - }); - return this.shopCartData; - } - - /** - * Update shopCart data. - * - * @param props: update prop. - */ - updateShopCart(props: UpdateShopProps) { - const result: Product = this.shopCartData.filter((item: Product) => item.id === props.id)[0]; - const newShop: Product = { - id: props.id, - name: result.name, - img: result.img, - commodityId: result.commodityId, - description: result.description, - price: result.price, - count: props.count !== undefined ? props.count : result.count, - selected: props.selected !== undefined ? props.selected : result.selected, - specifications: props.specifications !== undefined ? props.specifications : result.specifications, - update_time: result.update_time, - create_time: result.create_time, - uid: result.uid - } - this.shopCartData.splice(this.shopCartData.indexOf(result), 1, newShop); - } - - private initDefaultOrderData() { - this.orderData = orderData.sort((a, b) => - new Date(b.createTime !== undefined ? b.createTime : 0).valueOf() - - new Date(a.createTime !== undefined ? a.createTime : 0).valueOf()); - return this.orderData; - } - - /** - * Query order list data. - * - * @returns Order[] - */ - queryOrderList() { - return this.orderData; - } - - /** - * Insert order to orderData. - * - * @param props: insert props - * @returns orderId - */ - insertOrder(props: InsertOrderProps): string | undefined { - if (props.order !== undefined) { - const orderId = props.order.orderId; - const newOrder: Order = props.order; - newOrder.orderId = (orderId !== undefined ? orderId : ''); - newOrder.uid = '1'; - newOrder.status = props.status; - newOrder.createTime = props.createTime ?? new Date().toString(); - - this.orderData.splice(0, 0, newOrder); - return orderId; - } - return undefined; - } - - /** - * Update order data. - * - * @param props: update props - * @returns Order[] - */ - updateOrder(props: updateOrderProps) { - const result: Order = this.orderData.filter(item => item.orderId === props.orderId)[0]; - const newOrder: Order = { - orderId: props.orderId, - commodityId: result.commodityId, - price: result.price, - count: result.count, - specifications: result.specifications, - image: result.image, - description: result.description, - title: result.title, - uid: result.uid, - status: props.status, - createTime: result.createTime - } - this.orderData.splice(this.orderData.indexOf(result), 1, newOrder); - return this.orderData; - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets deleted file mode 100644 index 71168df2cbb099e4f7f39b9bddc52436a4a4f48e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Logger.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { hilog } from '@kit.PerformanceAnalysisKit'; - -/** - * Common log for all features. - * - * @param {string} prefix Identifies the log tag. - */ - - -let domain: number = 0xFF00; -let prefix: string = 'MultiShopping'; -let format: string = `%{public}s, %{public}s`; - -export class Logger { - static debug(...args: string[]) { - hilog.debug(domain, prefix, format, args); - } - - static info(...args: string[]) { - hilog.info(domain, prefix, format, args); - } - - static warn(...args: string[]) { - hilog.warn(domain, prefix, format, args); - } - - static error(...args: string[]) { - hilog.error(domain, prefix, format, args); - } - - static fatal(...args: string[]) { - hilog.fatal(domain, prefix, format, args); - } - - static isLoggable(level: LogLevel) { - hilog.isLoggable(domain, prefix, level); - } -} - -/** - * Log level define - * - * @syscap SystemCapability.HiviewDFX.HiLog - */ -enum LogLevel { - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7 -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets deleted file mode 100644 index 3be44640be7e9fa0c00d05c9d666975ea3a7aeb4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/utils/Utils.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Logger } from './Logger'; -import { StyleConstants } from '../constants/StyleConstants'; -import { Opt } from '../viewmodel/CommodityModel'; - -/** - * Format date. - * - * @param timestamp time - * @param format = "yyyy-mm-dd" - * @returns res - */ -export function formatDate(timestamp: number, format = 'yyyy-mm-dd') { - let res = ""; - try { - const date = new Date(timestamp); - const opt: Opt = { - yy: date.getFullYear().toString(), - mm: (date.getMonth() + 1).toString(), - dd: date.getDate().toString(), - HH: date.getHours().toString(), - MM: date.getMinutes().toString(), - SS: date.getSeconds().toString(), - }; - - const regKeys: string[] = ['y+', 'm+', 'd+', 'H+', 'M+', 'S+']; - for (let i = 0; i < regKeys.length; i++) { - const regKey = regKeys[i]; - const reg = new RegExp(regKey); - let ret = reg.exec(format); - if (ret) { - switch (regKey) { - case 'y+': - format = format.replace(reg, ret.length === 1 ? opt.yy : opt.yy.padStart(ret.length, "0")); - case 'm+': - format = format.replace(reg, ret.length === 1 ? opt.mm : opt.mm.padStart(ret.length, "0")); - case 'd+': - format = format.replace(reg, ret.length === 1 ? opt.dd : opt.dd.padStart(ret.length, "0")); - case 'H+': - format = format.replace(reg, ret.length === 1 ? opt.HH : opt.HH.padStart(ret.length, "0")); - case 'M+': - format = format.replace(reg, ret.length === 1 ? opt.MM : opt.MM.padStart(ret.length, "0")); - case 'S+': - format = format.replace(reg, ret.length === 1 ? opt.SS : opt.SS.padStart(ret.length, "0")); - } - } - } - res = format; - } catch (error) { - Logger.error("ERROR formatDate" + error); - } - return res; -} - -/** - * Get id. - * - * @returns id - */ -export function getID() { - const date = Date.now() - const arr = `${date}`.split('') - arr.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE) - - return arr.join('') -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets deleted file mode 100644 index 6b0ab4b247679d13342f4273ecacd8852412580c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/CommodityModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class KV { - key?: Resource; - value?: Resource; - image: string = '' -} - -export class Specification { - id?: Resource; - title?: Resource; - data: KV[] = []; -} - -export class Commodity { - category_id?: string = ''; - id: string = ''; - title?: Resource; - promotion?: Resource; - description?: Resource; - images: string[] = []; - detail?: string[] = []; - price: number = 0; - specifications?: Specification[] = []; -} - -export class Opt { - yy: string = ''; - mm: string = ''; - dd: string = ''; - HH: string = ''; - MM: string = ''; - SS: string = ''; -} - -export class InsertOrderParams { - orderId: string = ''; - uid: string = ''; - status: number = 0; - createTime: string = ''; -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets deleted file mode 100644 index feb28d651a9f9c20948845165f77bfa8dd919db5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/OrderModel.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { ProductSpecification } from './ProductModel'; - -export enum OrderType { - PAYMENT = 'payment', - SHIP = 'ship', - RECEIPT = 'receipt', - EVALUATION = 'evaluation', - SALE = 'sale' -} - -export enum OrderOperationStatus { - UN_PAY = 0, - DELIVERED = 1, - RECEIPT = 2, - CONSIGNMENT = 3, - ALLStatus = 4 -} - -@Observed -export class Order { - uid?: string = ''; - orderId: string = ''; - image: string = ''; - title?: Resource; - description?: Resource; - payTime?: string = ''; - orderTime?: string = ''; - createTime?: string = ''; - updateTime?: string = ''; - price: number = 0; - count: number = 0; - amount?: number = 0; - status?: number = 0; - commodityId: number = 0; - specifications: ProductSpecification[] = []; -} - -export class DateFormatting { - y: string = ''; - m: string = ''; - d: string = ''; - H: string = ''; - M: string = ''; - S: string = ''; -} - - -export class InsertOrderProps { - order: Order | undefined = undefined; - status: number = 0; - createTime?: string = ''; -} - -export class updateOrderProps { - orderId: string = ''; - status: number = 0; - amount?: number; -} - -export class OrderStatus { - order?: Order; - status?: number; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets deleted file mode 100644 index 943f7f26ea58d4b3d4c5d285fa2d6f2f97168fce..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ProductModel.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Observed -export class Product { - id: string = ''; - name?: Resource; - img: string[] = []; - commodityId: string = ''; - description?: Resource; - price: number = 0; - count: number = 0; - selected: boolean = false; - specifications: ProductSpecification[] = []; - update_time?: string = ''; - create_time?: string = ''; - uid?: string = ''; -} - -export class ProductSpecification { - name?: Resource; - value?: Resource; -} - -export class ShopProps { - id: string = ''; - commodityId: string = ''; - count: number = 0; - specifications: ProductSpecification[] = []; -} - -export class UpdateShopProps { - id: string = ''; - count?: number = 0; - selected?: boolean = false; - specifications?: ProductSpecification[] = []; -} - -export class SelectProducts { - selected: boolean = false; - key: string = ''; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets deleted file mode 100644 index a60d3b6ef3d8d34f4290e491ab78ed5b78f52863..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/ets/viewmodel/ShopData.ets +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Commodity } from './CommodityModel'; -import { Order } from './OrderModel'; -import { Product } from './ProductModel'; - -/** - * Application simulation data can be obtained from the server by developers. - */ -const commodityData: Commodity[] = [ - { - detail: ["common/product001.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity1_color_key1'), value: $r('app.string.commodity1_color_value1'), image: '' }, - { key: $r('app.string.commodity1_color_key2'), value: $r('app.string.commodity1_color_value2'), image: '' }, - { key: $r('app.string.commodity1_color_key3'), value: $r('app.string.commodity1_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity1_version_key1'), value: $r('app.string.commodity1_version_value1'), image: '' }, - { key: $r('app.string.commodity1_version_key2'), value: $r('app.string.commodity1_version_value2'), image: '' }, - { key: $r('app.string.commodity1_version_key3'), value: $r('app.string.commodity1_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity1_network_key1'), value: $r('app.string.commodity1_network_value1'), image: '' }, - { key: $r('app.string.commodity1_network_key2'), value: $r('app.string.commodity1_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity1_type_key1'), value: $r('app.string.commodity1_type_value1'), image: '' }, - { key: $r('app.string.commodity1_type_key2'), value: $r('app.string.commodity1_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 6399, - title: $r('app.string.commodity1_title'), - images: ["common/product001.png"], - id: "1", - description: $r('app.string.commodity1_description'), - promotion: $r('app.string.commodity1_promotion') - }, - { - detail: ["common/product002.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity2_color_key1'), value: $r('app.string.commodity2_color_value1'), image: '' }, - { key: $r('app.string.commodity2_color_key2'), value: $r('app.string.commodity2_color_value2'), image: '' }, - { key: $r('app.string.commodity2_color_key3'), value: $r('app.string.commodity2_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity2_version_key1'), value: $r('app.string.commodity2_version_value1'), image: '' }, - { key: $r('app.string.commodity2_version_key2'), value: $r('app.string.commodity2_version_value2'), image: '' }, - { key: $r('app.string.commodity2_version_key3'), value: $r('app.string.commodity2_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity2_network_key1'), value: $r('app.string.commodity2_network_value1'), image: '' }, - { key: $r('app.string.commodity2_network_key2'), value: $r('app.string.commodity2_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity2_type_key1'), value: $r('app.string.commodity2_type_value1'), image: '' }, - { key: $r('app.string.commodity2_type_key2'), value: $r('app.string.commodity2_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 5199, - title: $r('app.string.commodity2_title'), - images: ["common/product002.png"], - id: "2", - description: $r('app.string.commodity2_description'), - promotion: $r('app.string.commodity2_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity3_color_key1'), value: $r('app.string.commodity3_color_value1'), image: '' }, - { key: $r('app.string.commodity3_color_key2'), value: $r('app.string.commodity3_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity3_version_key1'), value: $r('app.string.commodity3_version_value1'), image: '' }, - { key: $r('app.string.commodity3_version_key2'), value: $r('app.string.commodity3_version_value2'), image: '' }, - { key: $r('app.string.commodity3_version_key3'), value: $r('app.string.commodity3_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity3_network_key1'), value: $r('app.string.commodity3_network_value1'), image: '' }, - { key: $r('app.string.commodity3_network_key2'), value: $r('app.string.commodity3_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity3_type_key1'), value: $r('app.string.commodity3_type_value1'), image: '' }, - { key: $r('app.string.commodity3_type_key2'), value: $r('app.string.commodity3_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity3_title'), - images: ["common/product003.png"], - id: "3", - description: $r('app.string.commodity3_description'), - promotion: $r('app.string.commodity3_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity4_color_key1'), value: $r('app.string.commodity4_color_value1'), image: '' }, - { key: $r('app.string.commodity4_color_key2'), value: $r('app.string.commodity4_color_value2'), image: '' }, - { key: $r('app.string.commodity4_color_key3'), value: $r('app.string.commodity4_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity4_version_key1'), value: $r('app.string.commodity4_version_value1'), image: '' }, - { key: $r('app.string.commodity4_version_key2'), value: $r('app.string.commodity4_version_value2'), image: '' }, - { key: $r('app.string.commodity4_version_key3'), value: $r('app.string.commodity4_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity4_network_key1'), value: $r('app.string.commodity4_network_value1'), image: '' }, - { key: $r('app.string.commodity4_network_key2'), value: $r('app.string.commodity4_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity4_type_key1'), value: $r('app.string.commodity4_type_value1'), image: '' }, - { key: $r('app.string.commodity4_type_key2'), value: $r('app.string.commodity4_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity4_title'), - images: ["common/product004.png"], - id: "4", - description: $r('app.string.commodity4_description'), - promotion: $r('app.string.commodity4_promotion') - }, - { - detail: ["common/product005.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity5_color_key1'), value: $r('app.string.commodity5_color_value1'), image: '' }, - { key: $r('app.string.commodity5_color_key2'), value: $r('app.string.commodity5_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity5_version_key1'), value: $r('app.string.commodity5_version_value1'), image: '' }, - { key: $r('app.string.commodity5_version_key2'), value: $r('app.string.commodity5_version_value2'), image: '' }, - { key: $r('app.string.commodity5_version_key3'), value: $r('app.string.commodity5_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity5_network_key1'), value: $r('app.string.commodity5_network_value1'), image: '' }, - { key: $r('app.string.commodity5_network_key2'), value: $r('app.string.commodity5_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity5_type_key1'), value: $r('app.string.commodity5_type_value1'), image: '' }, - { key: $r('app.string.commodity5_type_key2'), value: $r('app.string.commodity5_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 1899, - title: $r('app.string.commodity5_title'), - images: ["common/product005.png"], - id: "5", - description: $r('app.string.commodity5_description'), - promotion: $r('app.string.commodity5_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity6_color_key1'), value: $r('app.string.commodity6_color_value1'), image: '' }, - { key: $r('app.string.commodity6_color_key2'), value: $r('app.string.commodity6_color_value2'), image: '' }, - { key: $r('app.string.commodity6_color_key3'), value: $r('app.string.commodity6_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity6_version_key1'), value: $r('app.string.commodity6_version_value1'), image: '' }, - { key: $r('app.string.commodity6_version_key2'), value: $r('app.string.commodity6_version_value2'), image: '' }, - { key: $r('app.string.commodity6_version_key3'), value: $r('app.string.commodity6_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity6_network_key1'), value: $r('app.string.commodity6_network_value1'), image: '' }, - { key: $r('app.string.commodity6_network_key2'), value: $r('app.string.commodity6_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity6_type_key1'), value: $r('app.string.commodity6_type_value1'), image: '' }, - { key: $r('app.string.commodity6_type_key2'), value: $r('app.string.commodity6_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 2199, - title: $r('app.string.commodity6_title'), - images: ["common/product006.png"], - id: "6", - description: $r('app.string.commodity6_description'), - promotion: $r('app.string.commodity6_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity7_color_key1'), value: $r('app.string.commodity7_color_value1'), image: '' }, - { key: $r('app.string.commodity7_color_key2'), value: $r('app.string.commodity7_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity7_version_key1'), value: $r('app.string.commodity7_version_value1'), image: '' }, - { key: $r('app.string.commodity7_version_key2'), value: $r('app.string.commodity7_version_value2'), image: '' }, - { key: $r('app.string.commodity7_version_key3'), value: $r('app.string.commodity7_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity7_network_key1'), value: $r('app.string.commodity7_network_value1'), image: '' }, - { key: $r('app.string.commodity7_network_key2'), value: $r('app.string.commodity7_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity7_type_key1'), value: $r('app.string.commodity7_type_value1'), image: '' }, - { key: $r('app.string.commodity7_type_key2'), value: $r('app.string.commodity7_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity7_title'), - images: ["common/product006.png"], - id: "7", - description: $r('app.string.commodity7_description'), - promotion: $r('app.string.commodity7_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity8_color_key1'), value: $r('app.string.commodity8_color_value1'), image: '' }, - { key: $r('app.string.commodity8_color_key2'), value: $r('app.string.commodity8_color_value2'), image: '' }, - { key: $r('app.string.commodity8_color_key3'), value: $r('app.string.commodity8_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity8_version_key1'), value: $r('app.string.commodity8_version_value1'), image: '' }, - { key: $r('app.string.commodity8_version_key2'), value: $r('app.string.commodity8_version_value2'), image: '' }, - { key: $r('app.string.commodity8_version_key3'), value: $r('app.string.commodity8_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity8_network_key1'), value: $r('app.string.commodity8_network_value1'), image: '' }, - { key: $r('app.string.commodity8_network_key2'), value: $r('app.string.commodity8_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity8_type_key1'), value: $r('app.string.commodity8_type_value1'), image: '' }, - { key: $r('app.string.commodity8_type_key2'), value: $r('app.string.commodity8_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 12999, - title: $r('app.string.commodity8_title'), - images: ["common/product006.png"], - id: "8", - description: $r('app.string.commodity8_description'), - promotion: $r('app.string.commodity8_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity9_color_key1'), value: $r('app.string.commodity9_color_value1'), image: '' }, - { key: $r('app.string.commodity9_color_key2'), value: $r('app.string.commodity9_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity9_version_key1'), value: $r('app.string.commodity9_version_value1'), image: '' }, - { key: $r('app.string.commodity9_version_key2'), value: $r('app.string.commodity9_version_value2'), image: '' }, - { key: $r('app.string.commodity9_version_key3'), value: $r('app.string.commodity9_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity9_network_key1'), value: $r('app.string.commodity9_network_value1'), image: '' }, - { key: $r('app.string.commodity9_network_key2'), value: $r('app.string.commodity9_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity9_type_key1'), value: $r('app.string.commodity9_type_value1'), image: '' }, - { key: $r('app.string.commodity9_type_key2'), value: $r('app.string.commodity9_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity9_title'), - images: ["common/product003.png"], - id: "9", - description: $r('app.string.commodity9_description'), - promotion: $r('app.string.commodity9_promotion') - }, - { - detail: ["common/product004.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity10_color_key1'), value: $r('app.string.commodity10_color_value1'), image: '' }, - { key: $r('app.string.commodity10_color_key2'), value: $r('app.string.commodity10_color_value2'), image: '' }, - { key: $r('app.string.commodity10_color_key3'), value: $r('app.string.commodity10_color_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity10_version_key1'), value: $r('app.string.commodity10_version_value1'), image: '' }, - { key: $r('app.string.commodity10_version_key2'), value: $r('app.string.commodity10_version_value2'), image: '' }, - { key: $r('app.string.commodity10_version_key3'), value: $r('app.string.commodity10_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity10_network_key1'), value: $r('app.string.commodity10_network_value1'), image: '' }, - { key: $r('app.string.commodity10_network_key2'), value: $r('app.string.commodity10_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity10_type_key1'), value: $r('app.string.commodity10_type_value1'), image: '' }, - { key: $r('app.string.commodity10_type_key2'), value: $r('app.string.commodity10_type_value2'), image: '' } - ] - } - ], - category_id: '', - price: 3999, - title: $r('app.string.commodity10_title'), - images: ["common/product004.png"], - id: "10", - description: $r('app.string.commodity10_description'), - promotion: $r('app.string.commodity10_promotion') - }, - { - detail: ["common/product003.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity11_color_key1'), value: $r('app.string.commodity11_color_value1'), image: '' }, - { key: $r('app.string.commodity11_color_key2'), value: $r('app.string.commodity11_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity11_version_key1'), value: $r('app.string.commodity11_version_value1'), image: '' }, - { key: $r('app.string.commodity11_version_key2'), value: $r('app.string.commodity11_version_value2'), image: '' }, - { key: $r('app.string.commodity11_version_key3'), value: $r('app.string.commodity11_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity11_network_key1'), value: $r('app.string.commodity11_network_value1'), image: '' }, - { key: $r('app.string.commodity11_network_key2'), value: $r('app.string.commodity11_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity11_type_key1'), value: $r('app.string.commodity11_type_value1'), image: '' }, - { key: $r('app.string.commodity11_type_key2'), value: $r('app.string.commodity11_type_value2'), image: '' } - ] - } - ], - category_id: "3", - price: 6588, - title: $r('app.string.commodity11_title'), - images: ["common/product003.png"], - id: "11", - description: $r('app.string.commodity11_description'), - promotion: $r('app.string.commodity11_promotion') - }, - { - detail: ["common/product006.png"], - specifications: [ - { - id: $r('app.string.commodity_color_id'), - title: $r('app.string.commodity_color_title'), - data: [ - { key: $r('app.string.commodity12_color_key1'), value: $r('app.string.commodity12_color_value1'), image: '' }, - { key: $r('app.string.commodity12_color_key2'), value: $r('app.string.commodity12_color_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_version_id'), - title: $r('app.string.commodity_version_title'), - data: [ - { key: $r('app.string.commodity12_version_key1'), value: $r('app.string.commodity12_version_value1'), image: '' }, - { key: $r('app.string.commodity12_version_key2'), value: $r('app.string.commodity12_version_value2'), image: '' }, - { key: $r('app.string.commodity12_version_key3'), value: $r('app.string.commodity12_version_value3'), image: '' } - ] - }, - { - id: $r('app.string.commodity_network_id'), - title: $r('app.string.commodity_network_title'), - data: [ - { key: $r('app.string.commodity12_network_key1'), value: $r('app.string.commodity12_network_value1'), image: '' }, - { key: $r('app.string.commodity12_network_key2'), value: $r('app.string.commodity12_network_value2'), image: '' } - ] - }, - { - id: $r('app.string.commodity_type_id'), - title: $r('app.string.commodity_type_title'), - data: [ - { key: $r('app.string.commodity12_type_key1'), value: $r('app.string.commodity12_type_value1'), image: '' }, - { key: $r('app.string.commodity12_type_key2'), value: $r('app.string.commodity12_type_value2'), image: '' } - ] - } - ], - category_id: "1", - price: 3299, - title: $r('app.string.commodity12_title'), - images: ["common/product006.png"], - id: "12", - description: $r('app.string.commodity12_description'), - promotion: $r('app.string.commodity12_promotion') - } -] - -const shopCartData: Product[] = [ - { - uid: "1", - update_time: "2022-12-21T03:34:01.962Z", - count: 1, - create_time: "2022-11-02T02:42:31.338Z", - price: 6399, - name: $r('app.string.shopCart1_name'), - id: "6063101776955", - commodityId: "1", - img: ["common/product001.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart1_color_key'), value: $r('app.string.shopCart1_color_value') }, - { name: $r('app.string.shopCart1_version_key'), value: $r('app.string.shopCart1_version_value') } - ], - description: $r('app.string.shopCart1_description') - }, - { - uid: "1", - update_time: "2022-12-21T03:34:02.042Z", - count: 1, - create_time: "2022-11-03T03:14:33.407Z", - price: 6588, - name: $r('app.string.shopCart2_name'), - id: "7726602128445", - commodityId: "3", - img: ["common/product003.png"], - selected: false, - specifications: [ - { name: $r('app.string.shopCart2_color_key'), value: $r('app.string.shopCart2_color_value') }, - { name: $r('app.string.shopCart2_version_key'), value: $r('app.string.shopCart2_version_value') } - ], - description: $r('app.string.shopCart2_description') - } -] - -const orderData: Order[] = [ - { - amount: 2099, - createTime: "2022-11-01T09:39:34.442Z", - orderTime: "2022-11-01T09:39:34.442Z", - payTime: "2022-11-01T09:40:07.453Z", - uid: "1", - updateTime: "2022-11-01T09:40:07.453Z", - price: 6588, - count: 2, - title: $r('app.string.order1_title'), - commodityId: 3, - image: "common/product003.png", - orderId: "2675124576927", - status: 2, - specifications: [ - { name: $r('app.string.order1_color_key'), value: $r('app.string.order1_color_value') }, - { name: $r('app.string.order1_version_key'), value: $r('app.string.order1_version_value') } - ], - description: $r('app.string.order1_description') - }, - { - amount: 6399, - createTime: "2022-11-02T11:33:03.414Z", - orderTime: "2022-11-02T11:33:03.414Z", - payTime: "2022-11-10T02:15:17.360Z", - uid: "1", - updateTime: "2022-11-10T02:15:17.360Z", - price: 6399, - count: 1, - title: $r('app.string.order2_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8189683677531", - status: 2, - specifications: [ - { name: $r('app.string.order2_color_key'), value: $r('app.string.order2_color_value') }, - { name: $r('app.string.order2_version_key'), value: $r('app.string.order2_version_value') } - ], - description: $r('app.string.order2_description') - }, - { - amount: 6399, - createTime: "2022-11-01T11:23:51.857Z", - orderTime: "2022-11-01T11:23:51.857Z", - payTime: "2022-11-01T11:40:48.365Z", - uid: "1", - updateTime: "2022-11-01T11:40:48.365Z", - price: 6399, - count: 1, - title: $r('app.string.order3_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "8479164261530", - status: 1, - specifications: [ - { name: $r('app.string.order3_color_key'), value: $r('app.string.order3_color_value') }, - { name: $r('app.string.order3_version_key'), value: $r('app.string.order3_version_value') } - ], - description: $r('app.string.order3_description') - }, - { - amount: 6399, - createTime: "2022-10-31T08:24:41.675Z", - orderTime: "2022-10-31T08:24:41.675Z", - payTime: "2022-11-02T12:08:50.869Z", - uid: "1", - updateTime: "2022-11-02T12:08:50.869Z", - price: 6399, - count: 1, - title: $r('app.string.order4_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "7068271460267", - status: 2, - specifications: [ - { name: $r('app.string.order4_color_key'), value: $r('app.string.order4_color_value') }, - { name: $r('app.string.order4_version_key'), value: $r('app.string.order4_version_value') } - ], - description: $r('app.string.order4_description') - }, - { - amount: 9999, - createTime: "2022-11-03T08:12:16.761Z", - orderTime: "2022-11-03T08:12:16.761Z", - payTime: "2022-11-03T08:12:50.130Z", - uid: "1", - updateTime: "2022-11-03T08:12:50.130Z", - price: 5199, - count: 1, - title: $r('app.string.order5_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "3716463840116", - status: 2, - specifications: [ - { name: $r('app.string.order5_color_key'), value: $r('app.string.order5_color_value') }, - { name: $r('app.string.order5_version_key'), value: $r('app.string.order5_version_value') } - ], - description: $r('app.string.order5_description') - }, - { - amount: 6399, - createTime: "2022-10-31T12:28:33.027Z", - orderTime: "2022-10-31T12:28:33.027Z", - payTime: "2022-11-01T09:54:31.241Z", - uid: "1", - updateTime: "2022-11-01T09:54:31.241Z", - price: 6399, - count: 1, - title: $r('app.string.order6_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "1691138712761", - status: 1, - specifications: [ - { name: $r('app.string.order6_color_key'), value: $r('app.string.order6_color_value') }, - { name: $r('app.string.order6_version_key'), value: $r('app.string.order6_version_value') } - ], - description: $r('app.string.order6_description') - }, - { - amount: 6399, - createTime: "2022-12-21T03:34:09.556Z", - orderTime: "2022-12-21T03:34:09.556Z", - payTime: "2022-12-21T03:35:03.096Z", - uid: "1", - updateTime: "2022-12-21T03:35:03.096Z", - price: 6399, - count: 1, - title: $r('app.string.order7_title'), - commodityId: 1, - image: "common/product001.png", - orderId: "3196746164785", - status: 1, - specifications: [ - { name: $r('app.string.order7_color_key'), value: $r('app.string.order7_color_value') }, - { name: $r('app.string.order7_version_key'), value: $r('app.string.order7_version_value') } - ], - description: $r('app.string.order7_description') - }, - { - amount: 5199, - createTime: "2022-10-08T03:35:37.331Z", - orderTime: "2022-10-08T03:35:37.331Z", - payTime: "2022-10-08T03:38:43.391Z", - uid: "1", - updateTime: "2022-10-08T03:38:43.391Z", - price: 5199, - count: 1, - title: $r('app.string.order8_title'), - commodityId: 2, - image: "common/product002.png", - orderId: "9863350027162", - status: 2, - specifications: [ - { name: $r('app.string.order8_color_key'), value: $r('app.string.order8_color_value') }, - { name: $r('app.string.order8_version_key'), value: $r('app.string.order8_version_value') } - ], - description: $r('app.string.order8_description') - } -] - -export { commodityData, shopCartData, orderData }; \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/module.json5 b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/module.json5 deleted file mode 100644 index b4fb686b4b6f1513afe92741c0ae91491f191591..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "common", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/color.json deleted file mode 100644 index c1bdece2aa4a724445d5c33e0ce5fd1d63d542ff..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/color.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "color": [ - { - "name": "page_background", - "value": "#f1f3f5" - }, - { - "name": "focus_color", - "value": "#e92f4f" - }, - { - "name": "three_alpha_black", - "value": "#08000000" - }, - { - "name": "five_alpha_black", - "value": "#0d000000" - }, - { - "name": "ten_alpha_black", - "value": "#1A000000" - }, - { - "name": "twenty_alpha_black", - "value": "#33000000" - }, - { - "name": "forty_alpha_black", - "value": "#66000000" - }, - { - "name": "sixty_alpha_black", - "value": "#99000000" - }, - { - "name": "eighty_alpha_black", - "value": "#cc000000" - }, - { - "name": "zero_alpha_black", - "value": "#00000000" - }, - { - "name": "sixty_alpha_white", - "value": "#99FFFFFF" - }, - { - "name": "eighty_alpha_white", - "value": "#CCFFFFFF" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/float.json deleted file mode 100644 index ec06ed412bcd6e3ec339782581138d1ceba191a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/float.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "float": [ - { - "name": "micro_font_size", - "value": "10fp" - }, - { - "name": "smaller_font_size", - "value": "12fp" - }, - { - "name": "small_font_size", - "value": "14fp" - }, - { - "name": "middle_font_size", - "value": "16fp" - }, - { - "name": "big_font_size", - "value": "18fp" - }, - { - "name": "bigger_font_size", - "value": "20fp" - }, - { - "name": "huge_font_size", - "value": "24fp" - }, - { - "name": "vp_one", - "value": "1vp" - }, - { - "name": "vp_two", - "value": "2vp" - }, - { - "name": "vp_four", - "value": "4vp" - }, - { - "name": "vp_six", - "value": "6vp" - }, - { - "name": "vp_eight", - "value": "8vp" - }, - { - "name": "vp_ten", - "value": "10vp" - }, - { - "name": "vp_twelve", - "value": "12vp" - }, - { - "name": "vp_fourteen", - "value": "14vp" - }, - { - "name": "vp_sixteen", - "value": "16vp" - }, - { - "name": "vp_eighteen", - "value": "18vp" - }, - { - "name": "vp_twenty", - "value": "20vp" - }, - { - "name": "vp_twenty_four", - "value": "24vp" - }, - { - "name": "vp_fifty_six", - "value": "56vp" - }, - { - "name": "commodity_item_height", - "value": "263vp" - }, - { - "name": "commodity_list_margin", - "value": "-6vp" - }, - { - "name": "commodity_desc_height", - "value": "20vp" - }, - { - "name": "commodity_item_image_size", - "value": "132vp" - }, - { - "name": "count_text_width", - "value": "32vp" - }, - { - "name": "count_width", - "value": "78vp" - }, - { - "name": "empty_image_size", - "value": "60vp" - }, - { - "name": "capsule_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/base/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json deleted file mode 100644 index d2c8ec76c852a0f3f3063bc1aae1b524bacf37d5..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "No data" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "Color" - }, - { - "name": "commodity_color_title", - "value": "Color" - }, - { - "name": "commodity_version_id", - "value": "Version" - }, - { - "name": "commodity_version_title", - "value": "Version" - }, - { - "name": "commodity_network_id", - "value": "Network Standard" - }, - { - "name": "commodity_network_title", - "value": "Network Standard" - }, - { - "name": "commodity_type_id", - "value": "Type" - }, - { - "name": "commodity_type_title", - "value": "Type" - }, - { - "name": "commodity1_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity1_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity1_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity1_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity1_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G mobile phone" - }, - { - "name": "commodity1_promotion", - "value": "New" - }, - { - "name": "commodity2_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity2_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity2_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity2_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity2_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX LapTop XXXXBook 13 Core 11" - }, - { - "name": "commodity2_promotion", - "value": "New" - }, - { - "name": "commodity3_color_key1", - "value": "Black" - }, - { - "name": "commodity3_color_value1", - "value": "Black" - }, - { - "name": "commodity3_color_key2", - "value": "White" - }, - { - "name": "commodity3_color_value2", - "value": "White" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity3_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity3_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity3_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity4_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity4_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity4_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity4_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity4_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro mobile phone XXXOS supported long battery life" - }, - { - "name": "commodity4_promotion", - "value": "New" - }, - { - "name": "commodity5_color_key1", - "value": "Black" - }, - { - "name": "commodity5_color_value1", - "value": "Black" - }, - { - "name": "commodity5_color_key2", - "value": "White" - }, - { - "name": "commodity5_color_value2", - "value": "White" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity5_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity5_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh battery 6.3-inch HD screen" - }, - { - "name": "commodity5_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity6_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity6_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity6_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity6_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity6_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W SuperCharge 90Hz high refresh rate" - }, - { - "name": "commodity6_promotion", - "value": "New" - }, - { - "name": "commodity7_color_key1", - "value": "Black" - }, - { - "name": "commodity7_color_value1", - "value": "Black" - }, - { - "name": "commodity7_color_key2", - "value": "White" - }, - { - "name": "commodity7_color_value2", - "value": "White" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity7_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity7_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity7_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity8_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity8_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity8_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity8_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity8_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX curved phone inverted hinge" - }, - { - "name": "commodity8_promotion", - "value": "Bonus Points" - }, - { - "name": "commodity9_color_key1", - "value": "Black" - }, - { - "name": "commodity9_color_value1", - "value": "Black" - }, - { - "name": "commodity9_color_key2", - "value": "White" - }, - { - "name": "commodity9_color_value2", - "value": "White" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity9_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity9_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity9_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity10_color_key1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_value1", - "value": "Deep Black" - }, - { - "name": "commodity10_color_key2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_value2", - "value": "Pearl White" - }, - { - "name": "commodity10_color_key3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_color_value3", - "value": "Sapphire Blue" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity10_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity10_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro long battery life XXXOS supported" - }, - { - "name": "commodity10_promotion", - "value": "New" - }, - { - "name": "commodity11_color_key1", - "value": "Black" - }, - { - "name": "commodity11_color_value1", - "value": "Black" - }, - { - "name": "commodity11_color_key2", - "value": "White" - }, - { - "name": "commodity11_color_value2", - "value": "White" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity11_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity11_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "commodity11_promotion", - "value": "Flash Sale" - }, - { - "name": "commodity12_color_key1", - "value": "Black" - }, - { - "name": "commodity12_color_value1", - "value": "Black" - }, - { - "name": "commodity12_color_key2", - "value": "White" - }, - { - "name": "commodity12_color_value2", - "value": "White" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_value1", - "value": "4G Full-Frequency" - }, - { - "name": "commodity12_network_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_network_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_key1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_value1", - "value": "Official Standard" - }, - { - "name": "commodity12_type_key2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_type_value2", - "value": "5G Full-Frequency" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX mobile phone 5000W HD rear camera shooting" - }, - { - "name": "commodity12_promotion", - "value": "Flash Sale" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "Color" - }, - { - "name": "shopCart1_color_value", - "value": "Pearl White" - }, - { - "name": "shopCart1_version_key", - "value": "Version" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "Color" - }, - { - "name": "shopCart2_color_value", - "value": "Deep Black" - }, - { - "name": "shopCart2_version_key", - "value": "Version" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G mobile phone XXXOS supported" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "Color" - }, - { - "name": "order1_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order1_version_key", - "value": "Version" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G mobile phone HarmonyOS supported" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "Color" - }, - { - "name": "order2_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order2_version_key", - "value": "Version" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "Color" - }, - { - "name": "order3_color_value", - "value": "Pearl White" - }, - { - "name": "order3_version_key", - "value": "Version" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "Color" - }, - { - "name": "order4_color_value", - "value": "Deep Black" - }, - { - "name": "order4_version_key", - "value": "Version" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "Color" - }, - { - "name": "order5_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order5_version_key", - "value": "Version" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx Laptop XXXXBook 13 Core 11" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "Color" - }, - { - "name": "order6_color_value", - "value": "Sapphire Blue" - }, - { - "name": "order6_version_key", - "value": "Version" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "Color" - }, - { - "name": "order7_color_value", - "value": "Deep Black" - }, - { - "name": "order7_version_key", - "value": "Version" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "Color" - }, - { - "name": "order8_color_value", - "value": "Khaki" - }, - { - "name": "order8_version_key", - "value": "Version" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX Laptop XXXXBook 13 Core 11" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png deleted file mode 100644 index 5b57378ae8b022cf2143f003bc12946198440510..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png deleted file mode 100644 index e315be7bbefb09310ff743b68eb137a680bcb601..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png deleted file mode 100644 index ad2c7832c7aa15eb5ae9871f4e9f39426c54e683..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/en_US/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png deleted file mode 100644 index 4204c86fee65987d487916321d73b6547020dc74..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/background.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png deleted file mode 100644 index 5a82a6fc9fcb3f19b2c04bd2be4a0fa1ac86fea7..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/food.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png deleted file mode 100644 index d03325c540882db483151d9f781f3e81f132b95a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/foreground.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png deleted file mode 100644 index 5fda9fac3e1a64ffde209d1c6362df8c1d465978..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_person.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png deleted file mode 100644 index aff39ee7f741757f544f6c2125e996c75081af7b..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png deleted file mode 100644 index 2ec3daaf819e8b2bdfc8dd2f25f2e42e21c32a15..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png deleted file mode 100644 index e6c214d113b00fed3b30f7677a893435c069327c..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png deleted file mode 100644 index f796c8e70f09f1e543f46224ce3eea11f35d8597..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/ic_product04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png deleted file mode 100644 index 786eae62d4ee93aef5f2110caed2afb386779b52..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product001.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png deleted file mode 100644 index fc998c51ae7fbf2e9d92850d7828082aa68b872f..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product002.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png deleted file mode 100644 index f5896010b24d0f8571e3a7795506a087e7401fba..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product003.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png deleted file mode 100644 index b2c84a35e62cc920dd359ad2ee6b404f4957f376..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product004.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png deleted file mode 100644 index 2ba5a4ccffecc9010eaacdbb664919d60b4e12ef..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product005.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/product006.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png deleted file mode 100644 index 867d61d0d79aa766371527b38f50e4cf1d15370e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/rawfile/common/scenery.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 483ba04cffbd62fee920957b101cd8117a54ec9c..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,1344 +0,0 @@ -{ - "string": [ - { - "name": "empty_text", - "value": "暂无数据" - }, - { - "name": "commodity_piece_description", - "value": "【%s】%s" - }, - { - "name": "commodity_piece", - "value": "¥%d" - }, - { - "name": "commodity_color_id", - "value": "颜色" - }, - { - "name": "commodity_color_title", - "value": "颜色" - }, - { - "name": "commodity_version_id", - "value": "版本" - }, - { - "name": "commodity_version_title", - "value": "版本" - }, - { - "name": "commodity_network_id", - "value": "网络制式" - }, - { - "name": "commodity_network_title", - "value": "网络制式" - }, - { - "name": "commodity_type_id", - "value": "类型" - }, - { - "name": "commodity_type_title", - "value": "类型" - }, - { - "name": "commodity1_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity1_color_key2", - "value": "珠光白" - }, - { - "name": "commodity1_color_value2", - "value": "珠光白" - }, - { - "name": "commodity1_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity1_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity1_version_key1", - "value": "8+128G" - }, - { - "name": "commodity1_version_value1", - "value": "8+128G" - }, - { - "name": "commodity1_version_key2", - "value": "8+256G" - }, - { - "name": "commodity1_version_value2", - "value": "8+256G" - }, - { - "name": "commodity1_version_key3", - "value": "12+512G" - }, - { - "name": "commodity1_version_value3", - "value": "12+512G" - }, - { - "name": "commodity1_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity1_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_key1", - "value": "官方标配" - }, - { - "name": "commodity1_type_value1", - "value": "官方标配" - }, - { - "name": "commodity1_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity1_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity1_title", - "value": "XXXX40 Pro" - }, - { - "name": "commodity1_description", - "value": "XXXX Pro 5G手机" - }, - { - "name": "commodity1_promotion", - "value": "新品" - }, - { - "name": "commodity2_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity2_color_key2", - "value": "珠光白" - }, - { - "name": "commodity2_color_value2", - "value": "珠光白" - }, - { - "name": "commodity2_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity2_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity2_version_key1", - "value": "8+128G" - }, - { - "name": "commodity2_version_value1", - "value": "8+128G" - }, - { - "name": "commodity2_version_key2", - "value": "8+256G" - }, - { - "name": "commodity2_version_value2", - "value": "8+256G" - }, - { - "name": "commodity2_version_key3", - "value": "12+512G" - }, - { - "name": "commodity2_version_value3", - "value": "12+512G" - }, - { - "name": "commodity2_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity2_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_key1", - "value": "官方标配" - }, - { - "name": "commodity2_type_value1", - "value": "官方标配" - }, - { - "name": "commodity2_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity2_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity2_title", - "value": "XXXXBook 13" - }, - { - "name": "commodity2_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "commodity2_promotion", - "value": "新品" - }, - { - "name": "commodity3_color_key1", - "value": "黑色" - }, - { - "name": "commodity3_color_value1", - "value": "黑色" - }, - { - "name": "commodity3_color_key2", - "value": "白色" - }, - { - "name": "commodity3_color_value2", - "value": "白色" - }, - { - "name": "commodity3_version_key1", - "value": "8+128G" - }, - { - "name": "commodity3_version_value1", - "value": "8+128G" - }, - { - "name": "commodity3_version_key2", - "value": "8+256G" - }, - { - "name": "commodity3_version_value2", - "value": "8+256G" - }, - { - "name": "commodity3_version_key3", - "value": "12+512G" - }, - { - "name": "commodity3_version_value3", - "value": "12+512G" - }, - { - "name": "commodity3_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity3_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_key1", - "value": "官方标配" - }, - { - "name": "commodity3_type_value1", - "value": "官方标配" - }, - { - "name": "commodity3_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity3_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity3_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity3_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity3_promotion", - "value": "限时" - }, - { - "name": "commodity4_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity4_color_key2", - "value": "珠光白" - }, - { - "name": "commodity4_color_value2", - "value": "珠光白" - }, - { - "name": "commodity4_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity4_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity4_version_key1", - "value": "8+128G" - }, - { - "name": "commodity4_version_value1", - "value": "8+128G" - }, - { - "name": "commodity4_version_key2", - "value": "8+256G" - }, - { - "name": "commodity4_version_value2", - "value": "8+256G" - }, - { - "name": "commodity4_version_key3", - "value": "12+512G" - }, - { - "name": "commodity4_version_value3", - "value": "12+512G" - }, - { - "name": "commodity4_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity4_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_key1", - "value": "官方标配" - }, - { - "name": "commodity4_type_value1", - "value": "官方标配" - }, - { - "name": "commodity4_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity4_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity4_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity4_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity4_promotion", - "value": "新品" - }, - { - "name": "commodity5_color_key1", - "value": "黑色" - }, - { - "name": "commodity5_color_value1", - "value": "黑色" - }, - { - "name": "commodity5_color_key2", - "value": "白色" - }, - { - "name": "commodity5_color_value2", - "value": "白色" - }, - { - "name": "commodity5_version_key1", - "value": "8+128G" - }, - { - "name": "commodity5_version_value1", - "value": "8+128G" - }, - { - "name": "commodity5_version_key2", - "value": "8+256G" - }, - { - "name": "commodity5_version_value2", - "value": "8+256G" - }, - { - "name": "commodity5_version_key3", - "value": "12+512G" - }, - { - "name": "commodity5_version_value3", - "value": "12+512G" - }, - { - "name": "commodity5_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity5_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_key1", - "value": "官方标配" - }, - { - "name": "commodity5_type_value1", - "value": "官方标配" - }, - { - "name": "commodity5_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity5_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity5_title", - "value": "XX20e" - }, - { - "name": "commodity5_description", - "value": "XX 5000mAh大电池 6.3英寸高清大屏" - }, - { - "name": "commodity5_promotion", - "value": "赠送积分" - }, - { - "name": "commodity6_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity6_color_key2", - "value": "珠光白" - }, - { - "name": "commodity6_color_value2", - "value": "珠光白" - }, - { - "name": "commodity6_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity6_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity6_version_key1", - "value": "8+128G" - }, - { - "name": "commodity6_version_value1", - "value": "8+128G" - }, - { - "name": "commodity6_version_key2", - "value": "8+256G" - }, - { - "name": "commodity6_version_value2", - "value": "8+256G" - }, - { - "name": "commodity6_version_key3", - "value": "12+512G" - }, - { - "name": "commodity6_version_value3", - "value": "12+512G" - }, - { - "name": "commodity6_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity6_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_key1", - "value": "官方标配" - }, - { - "name": "commodity6_type_value1", - "value": "官方标配" - }, - { - "name": "commodity6_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity6_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity6_title", - "value": "XX20 Plus" - }, - { - "name": "commodity6_description", - "value": "40W超级快充 90Hz高刷新率" - }, - { - "name": "commodity6_promotion", - "value": "新品" - }, - { - "name": "commodity7_color_key1", - "value": "黑色" - }, - { - "name": "commodity7_color_value1", - "value": "黑色" - }, - { - "name": "commodity7_color_key2", - "value": "白色" - }, - { - "name": "commodity7_color_value2", - "value": "白色" - }, - { - "name": "commodity7_version_key1", - "value": "8+128G" - }, - { - "name": "commodity7_version_value1", - "value": "8+128G" - }, - { - "name": "commodity7_version_key2", - "value": "8+256G" - }, - { - "name": "commodity7_version_value2", - "value": "8+256G" - }, - { - "name": "commodity7_version_key3", - "value": "12+512G" - }, - { - "name": "commodity7_version_value3", - "value": "12+512G" - }, - { - "name": "commodity7_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity7_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_key1", - "value": "官方标配" - }, - { - "name": "commodity7_type_value1", - "value": "官方标配" - }, - { - "name": "commodity7_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity7_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity7_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity7_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity7_promotion", - "value": "限时" - }, - { - "name": "commodity8_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity8_color_key2", - "value": "珠光白" - }, - { - "name": "commodity8_color_value2", - "value": "珠光白" - }, - { - "name": "commodity8_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity8_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity8_version_key1", - "value": "8+128G" - }, - { - "name": "commodity8_version_value1", - "value": "8+128G" - }, - { - "name": "commodity8_version_key2", - "value": "8+256G" - }, - { - "name": "commodity8_version_value2", - "value": "8+256G" - }, - { - "name": "commodity8_version_key3", - "value": "12+512G" - }, - { - "name": "commodity8_version_value3", - "value": "12+512G" - }, - { - "name": "commodity8_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity8_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_key1", - "value": "官方标配" - }, - { - "name": "commodity8_type_value1", - "value": "官方标配" - }, - { - "name": "commodity8_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity8_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity8_title", - "value": "XXXX xs2" - }, - { - "name": "commodity8_description", - "value": "XX曲面屏手机 内翻铰链设计" - }, - { - "name": "commodity8_promotion", - "value": "赠送积分" - }, - { - "name": "commodity9_color_key1", - "value": "黑色" - }, - { - "name": "commodity9_color_value1", - "value": "黑色" - }, - { - "name": "commodity9_color_key2", - "value": "白色" - }, - { - "name": "commodity9_color_value2", - "value": "白色" - }, - { - "name": "commodity9_version_key1", - "value": "8+128G" - }, - { - "name": "commodity9_version_value1", - "value": "8+128G" - }, - { - "name": "commodity9_version_key2", - "value": "8+256G" - }, - { - "name": "commodity9_version_value2", - "value": "8+256G" - }, - { - "name": "commodity9_version_key3", - "value": "12+512G" - }, - { - "name": "commodity9_version_value3", - "value": "12+512G" - }, - { - "name": "commodity9_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity9_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_key1", - "value": "官方标配" - }, - { - "name": "commodity9_type_value1", - "value": "官方标配" - }, - { - "name": "commodity9_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity9_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity9_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity9_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity9_promotion", - "value": "限时" - }, - { - "name": "commodity10_color_key1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_value1", - "value": "深邃黑" - }, - { - "name": "commodity10_color_key2", - "value": "珠光白" - }, - { - "name": "commodity10_color_value2", - "value": "珠光白" - }, - { - "name": "commodity10_color_key3", - "value": "宝石蓝" - }, - { - "name": "commodity10_color_value3", - "value": "宝石蓝" - }, - { - "name": "commodity10_version_key1", - "value": "8+128G" - }, - { - "name": "commodity10_version_value1", - "value": "8+128G" - }, - { - "name": "commodity10_version_key2", - "value": "8+256G" - }, - { - "name": "commodity10_version_value2", - "value": "8+256G" - }, - { - "name": "commodity10_version_key3", - "value": "12+512G" - }, - { - "name": "commodity10_version_value3", - "value": "12+512G" - }, - { - "name": "commodity10_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity10_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_key1", - "value": "官方标配" - }, - { - "name": "commodity10_type_value1", - "value": "官方标配" - }, - { - "name": "commodity10_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity10_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity10_title", - "value": "XXXX30 Pro" - }, - { - "name": "commodity10_description", - "value": "XXXX30 Pro 超长续航 支持XXXOS系统" - }, - { - "name": "commodity10_promotion", - "value": "新品" - }, - { - "name": "commodity11_color_key1", - "value": "黑色" - }, - { - "name": "commodity11_color_value1", - "value": "黑色" - }, - { - "name": "commodity11_color_key2", - "value": "白色" - }, - { - "name": "commodity11_color_value2", - "value": "白色" - }, - { - "name": "commodity11_version_key1", - "value": "8+128G" - }, - { - "name": "commodity11_version_value1", - "value": "8+128G" - }, - { - "name": "commodity11_version_key2", - "value": "8+256G" - }, - { - "name": "commodity11_version_value2", - "value": "8+256G" - }, - { - "name": "commodity11_version_key3", - "value": "12+512G" - }, - { - "name": "commodity11_version_value3", - "value": "12+512G" - }, - { - "name": "commodity11_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity11_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_key1", - "value": "官方标配" - }, - { - "name": "commodity11_type_value1", - "value": "官方标配" - }, - { - "name": "commodity11_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity11_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity11_title", - "value": "PXX40 Pro" - }, - { - "name": "commodity11_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "commodity11_promotion", - "value": "限时" - }, - { - "name": "commodity12_color_key1", - "value": "黑色" - }, - { - "name": "commodity12_color_value1", - "value": "黑色" - }, - { - "name": "commodity12_color_key2", - "value": "白色" - }, - { - "name": "commodity12_color_value2", - "value": "白色" - }, - { - "name": "commodity12_version_key1", - "value": "8+128G" - }, - { - "name": "commodity12_version_value1", - "value": "8+128G" - }, - { - "name": "commodity12_version_key2", - "value": "8+256G" - }, - { - "name": "commodity12_version_value2", - "value": "8+256G" - }, - { - "name": "commodity12_version_key3", - "value": "12+512G" - }, - { - "name": "commodity12_version_value3", - "value": "12+512G" - }, - { - "name": "commodity12_network_key1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_value1", - "value": "4G全网通" - }, - { - "name": "commodity12_network_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_network_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_key1", - "value": "官方标配" - }, - { - "name": "commodity12_type_value1", - "value": "官方标配" - }, - { - "name": "commodity12_type_key2", - "value": "5G全网通" - }, - { - "name": "commodity12_type_value2", - "value": "5G全网通" - }, - { - "name": "commodity12_title", - "value": "XXXX7 Pro" - }, - { - "name": "commodity12_description", - "value": "XX手机 5000W高清后置拍摄" - }, - { - "name": "commodity12_promotion", - "value": "限时" - }, - { - "name": "shopCart1_name", - "value": "XXXX40 pro" - }, - { - "name": "shopCart1_color_key", - "value": "颜色" - }, - { - "name": "shopCart1_color_value", - "value": "珠光白" - }, - { - "name": "shopCart1_version_key", - "value": "规格" - }, - { - "name": "shopCart1_version_value", - "value": "8+256G" - }, - { - "name": "shopCart1_description", - "value": "XXXX40 Pro 5G mobile phone" - }, - { - "name": "shopCart2_name", - "value": "PXX40 pro" - }, - { - "name": "shopCart2_color_key", - "value": "颜色" - }, - { - "name": "shopCart2_color_value", - "value": "深邃黑" - }, - { - "name": "shopCart2_version_key", - "value": "规格" - }, - { - "name": "shopCart2_version_value", - "value": "8+128G" - }, - { - "name": "shopCart2_description", - "value": "PXX40 Pro 5G手机 支持XXXOS" - }, - { - "name": "order1_title", - "value": "PXX40 Pro" - }, - { - "name": "order1_color_key", - "value": "颜色" - }, - { - "name": "order1_color_value", - "value": "宝石蓝" - }, - { - "name": "order1_version_key", - "value": "规格" - }, - { - "name": "order1_version_value", - "value": "12+512G" - }, - { - "name": "order1_description", - "value": "XXX40 Pro 5G手机 支持HarmonyOS" - }, - { - "name": "order2_title", - "value": "XXXX40 Pro" - }, - { - "name": "order2_color_key", - "value": "颜色" - }, - { - "name": "order2_color_value", - "value": "宝石蓝" - }, - { - "name": "order2_version_key", - "value": "规格" - }, - { - "name": "order2_version_value", - "value": "12+512G" - }, - { - "name": "order2_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order3_title", - "value": "XXXX40 Pro" - }, - { - "name": "order3_color_key", - "value": "颜色" - }, - { - "name": "order3_color_value", - "value": "珠光白" - }, - { - "name": "order3_version_key", - "value": "规格" - }, - { - "name": "order3_version_value", - "value": "8+256G" - }, - { - "name": "order3_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order4_title", - "value": "XXXX40 Pro" - }, - { - "name": "order4_color_key", - "value": "颜色" - }, - { - "name": "order4_color_value", - "value": "深邃黑" - }, - { - "name": "order4_version_key", - "value": "规格" - }, - { - "name": "order4_version_value", - "value": "8+256G" - }, - { - "name": "order4_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order5_title", - "value": "XXXBook 13" - }, - { - "name": "order5_color_key", - "value": "颜色" - }, - { - "name": "order5_color_value", - "value": "宝石蓝" - }, - { - "name": "order5_version_key", - "value": "规格" - }, - { - "name": "order5_version_value", - "value": "12+512G" - }, - { - "name": "order5_description", - "value": "xx笔记本电脑XXXXBook 13 11代酷睿" - }, - { - "name": "order6_title", - "value": "XXXX40 Pro" - }, - { - "name": "order6_color_key", - "value": "颜色" - }, - { - "name": "order6_color_value", - "value": "宝石蓝" - }, - { - "name": "order6_version_key", - "value": "规格" - }, - { - "name": "order6_version_value", - "value": "12+512G" - }, - { - "name": "order6_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order7_title", - "value": "XXXX40 Pro" - }, - { - "name": "order7_color_key", - "value": "颜色" - }, - { - "name": "order7_color_value", - "value": "深邃黑" - }, - { - "name": "order7_version_key", - "value": "规格" - }, - { - "name": "order7_version_value", - "value": "8+256G" - }, - { - "name": "order7_description", - "value": "XXXX40 Pro 5G手机" - }, - { - "name": "order8_title", - "value": "XXXXBook 13" - }, - { - "name": "order8_color_key", - "value": "颜色" - }, - { - "name": "order8_color_value", - "value": "卡其色" - }, - { - "name": "order8_version_key", - "value": "规格" - }, - { - "name": "order8_version_value", - "value": "12+512G" - }, - { - "name": "order8_description", - "value": "XX笔记本电脑XXXXBook 13 11代酷睿" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png deleted file mode 100644 index 2087c5bb041675fb3aaad752a39615640d6b842e..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png deleted file mode 100644 index 03ff211c5709806ba2532297692e63a72146085a..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner01.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png deleted file mode 100644 index 43820ff7df930ae511bea84a8c77c53c900b26c1..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner02.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png deleted file mode 100644 index f7857dbca14a032060669bedfbaf2fb27527c2cb..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner03.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png deleted file mode 100644 index c757b38ce9daa9f9f68b88f40b8440dc58773014..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_banner04.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png deleted file mode 100644 index 6392fc6ff849197db337f07ebb4ca5d009918293..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png deleted file mode 100644 index c6761a66c0b19b71be9a20f5f1772f0490094398..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_decrease_disable.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png deleted file mode 100644 index ebbdd3ccf4329c46b9030b4d09565609b3e2a3cf..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_empty.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png b/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png deleted file mode 100644 index 22ccb08bbe4a5ec853eed1dadf726cda4f4bb573..0000000000000000000000000000000000000000 Binary files a/products/phone/oh_modules/@ohos/shopcart/oh_modules/@ohos/common/src/main/resources/zh_CN/media/ic_increase.png and /dev/null differ diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/ets/components/ShopCart.ets b/products/phone/oh_modules/@ohos/shopcart/src/main/ets/components/ShopCart.ets deleted file mode 100644 index 759a964dfada414ecaff4262e4fe09976984a62f..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/ets/components/ShopCart.ets +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { router } from '@kit.ArkUI'; -import { ShopCartConstants } from '../constants/ShopCartConstants'; -import { - LocalDataManager, - Logger, - CounterProduct, - CommodityList, - EmptyComponent, - Commodity, - Product, - StyleConstants, - BreakpointConstants, - Order -} from '@ohos/common'; -import { SelectProducts, UpdateShopProps } from '@ohos/common/src/main/ets/viewmodel/ProductModel'; - -@Component -export struct ShopCart { - public onNeedUpdate?: () => void; - @StorageProp('currentBreakpoint') currentBreakpoint: string = 'sm'; - @Link @Watch('onListChange') products: Array; - @State sumPrice: number = 0; - @State isSelectAll: boolean = false; - @State commodityList: Commodity[] = []; - @State @Watch('selectProductChange') selectProducts: SelectProducts[] = []; - private localDataManager: LocalDataManager = LocalDataManager.instance(); - - aboutToAppear() { - const sortRes = this.localDataManager.queryCommodityList(); - sortRes.sort(() => (Math.random() - StyleConstants.HALF_ONE) > 0 ? 1 : StyleConstants.MINUS_ONE); - this.commodityList = sortRes; - this.onListChange(); - } - - needUpdateShopCart() { - if (this.onNeedUpdate !== undefined) { - this.onNeedUpdate(); - } - this.countSumPrice(); - } - - private countSumPrice() { - this.sumPrice = 0; - - this.isSelectAll = this.selectProducts.every((item: SelectProducts) => item.selected); - let tempPrice: number = 0; - this.selectProducts.forEach((item: SelectProducts) => { - if (item.selected) { - let data = this.products.find((value: Product) => value.id === item.key); - const ins = (data !== undefined ? data.price * data.count : 0); - tempPrice += ins; - } - }) - this.sumPrice = tempPrice; - } - - settleAccounts() { - const orderList = this.products - .filter((item: Product, index: number) => - item.id === this.selectProducts[index].key && this.selectProducts[index].selected === true) - .map((item: Product) => { - let returnParams: Order = { - orderId: item.id, - commodityId: Number.parseInt(item.commodityId), - price: item.price, - count: item.count, - specifications: item.specifications, - image: item.img[0], - description: item.description, - title: item.name - } - return returnParams; - }); - Logger.info('settleAccounts orderList length: ' + orderList.length); - this.getUIContext().getRouter().pushUrl({ - url: ShopCartConstants.CONFIRM_ORDER_PAGE_URL, - params: { orderList: orderList } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - } - - onListChange() { - this.selectProducts = []; - this.products.forEach((item: Product) => { - let payload: SelectProducts = { selected: false, key: '' }; - payload.selected = !!item.selected; - payload.key = item.id; - this.selectProducts.push(payload); - }) - this.countSumPrice(); - } - - selectProductChange(index: number): boolean { - if (this.selectProducts[index] !== undefined) { - return this.selectProducts[index].selected; - } - return false; - } - - onChangeCount = (count: number, info: Product): void => { - let updateShopCartParams: UpdateShopProps = { - id: info.id, - count: count - }; - this.localDataManager.updateShopCart(updateShopCartParams); - this.needUpdateShopCart(); - } - - @Builder - ItemDelete(item: Product) { - Flex({ - direction: FlexDirection.Column, - justifyContent: FlexAlign.Center, - alignItems: ItemAlign.End - }) { - Column() { - Image($r('app.media.ic_trash')) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .margin({ bottom: $r('app.float.vp_ten') }) - Text($r('app.string.delete')) - .fontSize($r('app.float.small_font_size')) - .fontColor(Color.White) - } - .padding({ right: $r('app.float.vp_fourteen') }) - } - .onClick(() => { - this.products = this.localDataManager.deleteShopCart([item.id]); - }) - .height($r('app.float.item_delete_height')) - .width($r('app.float.item_delete_width')) - .backgroundColor($r('app.color.focus_color')) - .borderRadius($r('app.float.vp_sixteen')) - .margin({ left: $r('app.float.item_delete_margin_left') }) - } - - @Builder - CartItem(item: Product, index: number) { - Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { - Checkbox({ - name: `${ShopCartConstants.CHECKBOX}${index}`, - group: ShopCartConstants.CHECKBOX_GROUP - }) - .width($r('app.float.vp_twenty_four')) - .height($r('app.float.vp_twenty_four')) - .selectedColor($r('app.color.select_color')) - .select(this.selectProductChange(index)) - .onClick(() => { - let tempData: SelectProducts = { - key: this.selectProducts[index].key, - selected: !this.selectProducts[index].selected - } - this.selectProducts.splice(index, 1, tempData) - let updateShopCartParams: UpdateShopProps = { - id: item.id, - selected: this.selectProducts[index].selected - }; - this.localDataManager.updateShopCart(updateShopCartParams); - this.needUpdateShopCart(); - }) - Image($rawfile(item.img[0])) - .height($r('app.float.card_image_size')) - .width($r('app.float.card_image_size')) - .objectFit(ImageFit.Cover) - .margin({ left: $r('app.float.vp_sixteen') }) - Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.SpaceAround }) { - Text($r('app.string.commodity_piece_description', item.name, item.description)) - .fontSize($r('app.float.small_font_size')) - .margin({ bottom: $r('app.float.vp_eight') }) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .maxLines(StyleConstants.TWO_TEXT_LINE) - .width(StyleConstants.FULL_WIDTH) - Text(item.specifications.length === 2 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value): - item.specifications.length === 3 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[2].value) : - item.specifications.length === 4 ? - this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[0].value) + ',' +this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[1].value) + ',' +this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[2].value) + ',' + this.getUIContext().getHostContext()!.resourceManager.getStringSync(item.specifications[3].value) : '' - ) - .fontSize($r('app.float.smaller_font_size')) - .maxLines(1) - .fontColor($r('app.color.sixty_alpha_black')) - .textOverflow({ overflow: TextOverflow.Ellipsis }) - .width(StyleConstants.FULL_WIDTH) - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text() { - Span($r('app.string.rmb')) - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r('app.color.focus_color')) - Span(`${item.price}`) - .fontSize($r('app.float.middle_font_size')) - .fontColor($r('app.color.focus_color')) - } - - CounterProduct({ - count: item.count, - onNumberChange: (num: number) => { - this.onChangeCount(num, item); - } - }) - } - } - .margin({ - left: $r('app.float.vp_sixteen'), - top: $r('app.float.vp_twelve'), - bottom: $r('app.float.vp_twelve') - }) - .width(StyleConstants.FULL_WIDTH) - } - .padding({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - .borderRadius($r('app.float.vp_sixteen')) - .backgroundColor(Color.White) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.item_delete_height')) - } - - @Builder - Settle() { - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Flex({ alignItems: ItemAlign.Center }) { - Checkbox({ name: ShopCartConstants.CHECKBOX, group: ShopCartConstants.CHECKBOX_GROUP }) - .selectedColor($r('app.color.select_color')) - .select(this.isSelectAll) - .onClick(() => { - this.isSelectAll = !this.isSelectAll; - this.products.map((item: Product): void => { - let returnParams = this.localDataManager.updateShopCart({ - id: item.id, - count: item.count, - selected: !!this.isSelectAll, - specifications: [] - }); - return returnParams; - }) - this.needUpdateShopCart(); - }) - Text($r('app.string.select_all')) - .fontSize($r('app.float.small_font_size')) - .fontColor(Color.Grey) - } - .height(StyleConstants.FULL_HEIGHT) - .width($r('app.float.settle_select_width')) - - Flex({ alignItems: ItemAlign.Center, justifyContent: FlexAlign.End }) { - Text($r('app.string.total')) - .fontSize($r('app.float.smaller_font_size')) - .fontWeight(FontWeight.Bold) - Text() { - Span($r('app.string.rmb')) - .fontSize($r('app.float.smaller_font_size')) - .fontColor($r('app.color.focus_color')) - Span(`${this.sumPrice}`) - .fontSize($r('app.float.middle_font_size')) - .fontColor($r('app.color.focus_color')) - } - .margin({ - right: $r('app.float.vp_eight'), - left: $r('app.float.vp_eight') - }) - - Button($r('app.string.checkout'), { type: ButtonType.Capsule, stateEffect: true }) - .backgroundColor($r('app.color.focus_color')) - .fontSize($r('app.float.smaller_font_size')) - .height($r('app.float.settle_button_height')) - .width($r('app.float.settle_select_width')) - .onClick(() => { - this.settleAccounts(); - }) - } - .height(StyleConstants.FULL_HEIGHT) - } - .padding({ - right: $r('app.float.vp_twelve'), - left: $r('app.float.vp_twelve') - }) - .backgroundColor(Color.White) - .width(StyleConstants.FULL_WIDTH) - .height($r('app.float.vp_fifty_six')) - } - - build() { - Flex({ direction: FlexDirection.Column }) { - Text($r('app.string.cart')) - .fontSize($r('app.float.huge_font_size')) - .height($r('app.float.vp_fifty_six')) - .padding({ left: $r('app.float.vp_twenty_four') }) - .width(StyleConstants.FULL_WIDTH) - .textAlign(TextAlign.Start) - Scroll() { - Column() { - if (this.products.length > 0) { - List({ space: StyleConstants.FIFTEEN_SPACE }) { - ForEach(this.products, (item: Product, index?: number): void => { - ListItem() { - if (index !== undefined) { - this.CartItem(item, index) - } - } - .swipeAction({ end: this.ItemDelete(item) }) - }, (item: Product) => item.id) - } - } else { - Column() { - EmptyComponent() - } - .width(StyleConstants.FULL_WIDTH) - .height(StyleConstants.FIFTY_HEIGHT) - } - Text($r('app.string.guess')) - .fontSize($r('app.float.middle_font_size')) - .width(StyleConstants.FULL_WIDTH) - .margin({ - top: $r('app.float.vp_twenty_four'), - bottom: $r('app.float.vp_sixteen'), - left: $r('app.float.vp_twelve') - }) - .textAlign(TextAlign.Start) - - CommodityList({ - commodityList: $commodityList, - column: this.currentBreakpoint === BreakpointConstants.BREAKPOINT_SM ? - StyleConstants.DISPLAY_TWO : StyleConstants.DISPLAY_THREE, - onClickItem: (data: Commodity) => { - this.getUIContext().getRouter().pushUrl({ - url: ShopCartConstants.COMMODITY_DETAIL_PAGE_URL, - params: { id: data.id } - }).catch((err: Error) => { - Logger.error(JSON.stringify(err)); - }); - } - }) - } - } - .scrollBar(BarState.Off) - .margin({ - left: $r('app.float.vp_twelve'), - right: $r('app.float.vp_twelve') - }) - .height(StyleConstants.FULL_HEIGHT) - - if ((this.selectProducts).some(((item: SelectProducts) => item.selected === true))) { - this.Settle() - } - } - .width(StyleConstants.FULL_WIDTH) - .backgroundColor($r('app.color.page_background')) - } -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/ets/constants/ShopCartConstants.ets b/products/phone/oh_modules/@ohos/shopcart/src/main/ets/constants/ShopCartConstants.ets deleted file mode 100644 index 5302e41b90a4363d54e5912467eedc92cdd7efa2..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/ets/constants/ShopCartConstants.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export class ShopCartConstants{ - /** - * Describe of checkbox. - */ - static readonly CHECKBOX: string = 'checkbox'; - - /** - * Describe of checkbox group. - */ - static readonly CHECKBOX_GROUP: string = 'checkboxGroup'; - - /** - * CommodityDetailPage url. - */ - static readonly COMMODITY_DETAIL_PAGE_URL: string = 'pages/CommodityDetailPage'; - - /** - * ConfirmOrderPage url. - */ - static readonly CONFIRM_ORDER_PAGE_URL: string = 'pages/ConfirmOrderPage'; -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/module.json5 b/products/phone/oh_modules/@ohos/shopcart/src/main/module.json5 deleted file mode 100644 index 9f100107480cc17de53de19454ea3a05ee9242a4..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/module.json5 +++ /dev/null @@ -1,10 +0,0 @@ -{ - "module": { - "name": "shopcart", - "type": "har", - "deviceTypes": [ - "phone", - "tablet" - ] - } -} diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/color.json b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/color.json deleted file mode 100644 index 602f97cc61525782296458633c2ab78a7a39b6e7..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/color.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "color": [ - { - "name": "select_color", - "value": "#ed6f21" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/float.json b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/float.json deleted file mode 100644 index 1fd1c149213fe73abf8d42b8e0d8c828c464cd6e..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/float.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "float": [ - { - "name": "item_delete_height", - "value": "112vp" - }, - { - "name": "item_delete_width", - "value": "80vp" - }, - { - "name": "item_delete_margin_left", - "value": "-24vp" - }, - { - "name": "card_image_size", - "value": "80vp" - }, - { - "name": "settle_select_width", - "value": "100vp" - }, - { - "name": "settle_button_height", - "value": "40vp" - } - ] -} \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/string.json b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/string.json deleted file mode 100644 index 1148acfe1fc72c84462b6c21e91f4c0ece8d48da..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/element/string.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "string": [ - { - "name": "cart", - "value": "Shopping cart" - }, - { - "name": "rmb", - "value": "¥" - }, - { - "name": "guess", - "value": "Guess you like" - }, - { - "name": "select_all", - "value": "Select All" - }, - { - "name": "total", - "value": "Total:" - }, - { - "name": "checkout", - "value": "Settle" - }, - { - "name": "delete", - "value": "Delete" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/media/ic_trash.svg b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/media/ic_trash.svg deleted file mode 100644 index 2398383bdba048c2fa6cdefad4598bbd6d63e779..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/base/media/ic_trash.svg +++ /dev/null @@ -1,9 +0,0 @@ - - ic_trash_lined - - - - - - - \ No newline at end of file diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/en_US/element/string.json b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/en_US/element/string.json deleted file mode 100644 index 1148acfe1fc72c84462b6c21e91f4c0ece8d48da..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/en_US/element/string.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "string": [ - { - "name": "cart", - "value": "Shopping cart" - }, - { - "name": "rmb", - "value": "¥" - }, - { - "name": "guess", - "value": "Guess you like" - }, - { - "name": "select_all", - "value": "Select All" - }, - { - "name": "total", - "value": "Total:" - }, - { - "name": "checkout", - "value": "Settle" - }, - { - "name": "delete", - "value": "Delete" - } - ] -} diff --git a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/zh_CN/element/string.json b/products/phone/oh_modules/@ohos/shopcart/src/main/resources/zh_CN/element/string.json deleted file mode 100644 index 47e48880cbfd7b85054dccb76f824b21ca67ba96..0000000000000000000000000000000000000000 --- a/products/phone/oh_modules/@ohos/shopcart/src/main/resources/zh_CN/element/string.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "string": [ - { - "name": "cart", - "value": "购物车" - }, - { - "name": "rmb", - "value": "¥" - }, - { - "name": "guess", - "value": "猜你喜欢" - }, - { - "name": "select_all", - "value": "全选" - }, - { - "name": "total", - "value": "合计:" - }, - { - "name": "checkout", - "value": "结算" - }, - { - "name": "delete", - "value": "删除" - } - ] -} diff --git a/products/phone/src/main/ets/pages/CommodityDetailPage.ets b/products/phone/src/main/ets/pages/CommodityDetailPage.ets index 20296de2dae290162db0b0a768e1ead54315be89..7fe5073722fef9c9f2efa54c5edf2b24e36952b7 100644 --- a/products/phone/src/main/ets/pages/CommodityDetailPage.ets +++ b/products/phone/src/main/ets/pages/CommodityDetailPage.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { LocalDataManager, Commodity } from '@ohos/common'; import { CommodityDetail } from '@ohos/commoditydetail'; diff --git a/products/phone/src/main/ets/pages/ConfirmOrderPage.ets b/products/phone/src/main/ets/pages/ConfirmOrderPage.ets index 2ad9f02074918ace1d00061a2e0df38e270dd25e..d528e7657ce4200946b51db2884c806df51f87c4 100644 --- a/products/phone/src/main/ets/pages/ConfirmOrderPage.ets +++ b/products/phone/src/main/ets/pages/ConfirmOrderPage.ets @@ -13,10 +13,8 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { ConfirmOrder } from '@ohos/orderdetail'; import { Order, Logger } from '@ohos/common'; -import { PageConstants } from '../constants/PageConstants'; @Entry @Component diff --git a/products/phone/src/main/ets/pages/MainPage.ets b/products/phone/src/main/ets/pages/MainPage.ets index a710a548fa81836a5c5dffbadca18375d39a7be4..dfc2384a3ed969f79b828244df699e6789e55f96 100644 --- a/products/phone/src/main/ets/pages/MainPage.ets +++ b/products/phone/src/main/ets/pages/MainPage.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { BreakpointSystem, LocalDataManager, diff --git a/products/phone/src/main/ets/pages/OrderDetailListPage.ets b/products/phone/src/main/ets/pages/OrderDetailListPage.ets index 92488bf58203e0c8d7a36e7f38223a13700889b8..f1cca21e248267c93eb498d415abcd32f29efcb0 100644 --- a/products/phone/src/main/ets/pages/OrderDetailListPage.ets +++ b/products/phone/src/main/ets/pages/OrderDetailListPage.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { OrderDetailList } from '@ohos/orderdetail'; import { LocalDataManager, Order, Commodity } from '@ohos/common'; diff --git a/products/phone/src/main/ets/pages/PayOrderPage.ets b/products/phone/src/main/ets/pages/PayOrderPage.ets index 99f077ca245d5b6534eadc8e2d6964d405aff015..c25e24a6a9c0024bc1ab823606962f68d7f925a6 100644 --- a/products/phone/src/main/ets/pages/PayOrderPage.ets +++ b/products/phone/src/main/ets/pages/PayOrderPage.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router } from '@kit.ArkUI'; import { PayOrder } from '@ohos/orderdetail'; import { LocalDataManager, Order } from '@ohos/common'; diff --git a/products/phone/src/main/ets/pages/SplashPage.ets b/products/phone/src/main/ets/pages/SplashPage.ets index 4218ae66f90fa90ee99b4ecbce30e5a407df7728..75b04a7d4ce86399820b8e958ffe6dfb71046485 100644 --- a/products/phone/src/main/ets/pages/SplashPage.ets +++ b/products/phone/src/main/ets/pages/SplashPage.ets @@ -13,7 +13,6 @@ * limitations under the License. */ -import { router, UIContext } from '@kit.ArkUI'; import { StyleConstants, Logger, BreakpointSystem, BreakPointType } from '@ohos/common'; import { PageConstants } from '../constants/PageConstants';