diff --git a/barter-app-main/barter-app/.hbuilderx/launch.json b/barter-app-main/barter-app/.hbuilderx/launch.json new file mode 100644 index 0000000..59d78d5 --- /dev/null +++ b/barter-app-main/barter-app/.hbuilderx/launch.json @@ -0,0 +1,20 @@ +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version": "0.0", + "configurations": [{ + "app-plus" : + { + "launchtype" : "remote" + }, + "default" : + { + "launchtype" : "local" + }, + "h5" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" + } + ] +} diff --git a/barter-app-main/barter-app/App.vue b/barter-app-main/barter-app/App.vue new file mode 100644 index 0000000..c2391c2 --- /dev/null +++ b/barter-app-main/barter-app/App.vue @@ -0,0 +1,22 @@ + + + diff --git a/barter-app-main/barter-app/README.md b/barter-app-main/barter-app/README.md new file mode 100644 index 0000000..35372b8 --- /dev/null +++ b/barter-app-main/barter-app/README.md @@ -0,0 +1,53 @@ +# 易货App + +_开发临时存储资源存放在/static/dev目录下_ + + +## 公共的组件 + +### 1.商品列表 + +_商品列表主要应用于首页,产品列表等_ + +> 参数说明 + +| 参数 | 参数 | 是否必填 | 数据类型 | 默认值 | 可选值 | +| :---: | :---: | :---: | :---: | :---: | :---: | +| 数据列表 | list | 是 | Array | [] | {{list}} | +| 货币类型 | priceType | 否 | String | EB | EB, CNY| +| 空提示 | toast | 否 | String | 暂无商品数据 | - | + +> list格式说明 + +``` +list: [ + { + id : "1" + cover: "https://yanxuan-item.nosdn.127.net/d3b072b5006f56935d15d239cbc5c953.jpg", + title: "片片大果仁,夏威夷坚果脆片 可可味 55克", + price: "16", + sales: "25" + },{ + ... + } +] +``` + +> 引入🙇🏻栗子 + +``` +import goodsList from '@/components/goods-list/goods-list' + +export default { + components:{ + goodsList + } +} + +