| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 36 | 33 | ||
| entry/ | 12-May-2024 | - | 1,453 | 1,346 | ||
| screenshots/device/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 143 | 12 | 11 | |
| README.md | D | 12-May-2024 | 646 | 16 | 9 | |
| README_zh.md | D | 12-May-2024 | 999 | 35 | 19 | |
| build-profile.json5 | D | 12-May-2024 | 1 KiB | 43 | 41 | |
| hvigorfile.ts | D | 12-May-2024 | 158 | 2 | 1 | |
| package.json | D | 12-May-2024 | 366 | 18 | 18 |
README.md
1# RPC 2 3### Introduction 4 5This sample shows the data exchange between the frontend and backend of a device. After the offering and quantity are selected at the frontend, the backend calculates the result and displays it at the frontend. 6 7### Usage 8 91. Touch the blank box of an offering type. The offering selection list is displayed. Select an offering. The corresponding content is displayed in the blank box. 102. Touch **+** or **-** next to the offering selection box and select the quantity of the offering. 113. Touch **Confirm an order**. The total price is displayed. 12 13### Constraints 14 15This sample can only be run on standard-system devices. 16
README_zh.md
1# RPC连接 2 3### 介绍 4 5本示例使用@ohos.rpc相关接口,实现了一个前台选择商品和数目,后台计算总价的功能,使用rpc进行前台和后台的通信。 6 7使用说明: 8 91. 点击商品种类的空白方框,弹出商品选择列表,选择点击对应的商品,空白方框显示相应内容。 10 112. 点击商品选择框后的 **+** 或 **-** 按钮,选择商品所对应的数量。 12 133. 点击 **Confirm an order** 按钮,根据相应的菜品数量与单价,计算出总价并显示。 14 15### 效果预览 16 17|主页|选择列表| 18|-----------------|----------------------| 19||| 20 21### 相关权限 22 23不涉及。 24 25### 依赖 26 27不涉及。 28 29### 约束与限制 30 311.本示例仅支持在标准系统上运行。 32 332.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。 34 353.本示例仅支持API9版本SDK,版本号:3.2.10.6。