diff --git a/.cursor/rules/md.mdc b/.cursor/rules/md.mdc
index 4eab25e..2372112 100644
--- a/.cursor/rules/md.mdc
+++ b/.cursor/rules/md.mdc
@@ -3,4 +3,7 @@ description:
globs:
alwaysApply: false
---
-请你写代码之前先查看一下README.md文件,按照这个文件中说的写
\ No newline at end of file
+请你写代码之前先查看一下README.md文件,按照这个文件中说的写
+
+
+## 对接接口的时候,请你先仔细看一下根目录apijson.json文件,这个是接口文档的数据
\ No newline at end of file
diff --git a/App.vue b/App.vue
index cc1058b..ff5e1c7 100644
--- a/App.vue
+++ b/App.vue
@@ -3,7 +3,10 @@
onLaunch: function() {
},
onShow: function() {
- // this.$store.commit('initConfig')
+ this.$store.commit('initConfig')
+ if(uni.getStorageSync('token')){
+ this.$store.commit('getQrCode')
+ }
},
onHide: function() {
}
diff --git a/api/api.js b/api/api.js
index 1293351..061bea8 100644
--- a/api/api.js
+++ b/api/api.js
@@ -14,7 +14,7 @@ const config = {
// limit : 1000
// },
- getConfig : {url : '/config_common/getConfig', method : 'GET', limit : 500},
+ getConfig : {url : '/conf/getConfig', method : 'GET', limit : 500},
}
diff --git a/api/model/index.js b/api/model/index.js
index 9ec5e2e..3863380 100644
--- a/api/model/index.js
+++ b/api/model/index.js
@@ -1,6 +1,4 @@
-
-
-// 登录相关接口
+// 接口
const api = {
// 获取banner
@@ -23,6 +21,98 @@ const api = {
url: '/index/getProductList',
method: 'GET',
},
+ // 创建订单
+ createOrder: {
+ url: '/index/createOrder',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 支付订单
+ payOrder: {
+ url: '/index/payOrder',
+ method: 'POST',
+ },
+ // 快捷下单
+ addOrder: {
+ url: '/index/addOrder',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 获取快捷下单信息
+ getOrderInfo: {
+ url: '/index/getOrderInfo',
+ method: 'GET',
+ },
+ // 获取订单列表
+ getOrderPageBean: {
+ url: '/order/getOrderPageBean',
+ method: 'GET',
+ },
+ // 获取订单详情
+ getOrderInfoById: {
+ url: '/order/getOrderInfo',
+ method: 'GET',
+ },
+ // 确认收货
+ confirmOrder: {
+ url: '/order/confirmOrder',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 再次支付
+ payOrderAgain: {
+ url: '/order/payOrder',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 更新用户信息
+ updateUserInfo: {
+ url: '/info/updateUserInfo',
+ method: 'POST',
+ },
+ // 获取地址列表
+ getAddressList: {
+ url: '/info/getAddressList',
+ method: 'GET',
+ },
+ // 获取地址详情
+ getAddressInfo: {
+ url: '/info/getAddressInfo',
+ method: 'GET',
+ },
+ // 保存或更新地址
+ saveOrUpdateAddress: {
+ url: '/info/saveOrUpdateAddress',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 删除地址
+ deleteAddress: {
+ url: '/info/deleteAddress',
+ method: 'POST',
+ },
+ // 获取流水日志
+ getLogList: {
+ url: '/info/getLogList',
+ method: 'GET',
+ },
+ // 获取团队列表
+ getTeamList: {
+ url: '/info/getTeamList',
+ method: 'GET',
+ },
+ // 提现
+ openMoney: {
+ url: '/info/openMoney',
+ method: 'POST',
+ limit : 1000,
+ },
+ // 添加帮助
+ addHelp: {
+ url: '/info/addHelp',
+ method: 'POST',
+ limit : 1000,
+ },
}
export default api
\ No newline at end of file
diff --git a/api/model/login.js b/api/model/login.js
index 3ff9999..9ce1d53 100644
--- a/api/model/login.js
+++ b/api/model/login.js
@@ -11,13 +11,13 @@ const api = {
},
// 获取绑定手机号码
bindPhone: {
- url: '/login_common/bindPhone',
+ url: '/all_login/bindPhone',
method: 'GET',
auth: true,
},
// 修改个人信息接口
updateInfo: {
- url: '/info_common/updateInfo',
+ url: '/info/updateUserInfo',
method: 'POST',
auth: true,
limit : 500,
@@ -25,7 +25,7 @@ const api = {
},
// 获取个人信息
getInfo: {
- url: '/info_common/getInfo',
+ url: '/info/getUserInfo',
method: 'GET',
auth: true,
},
diff --git a/apijson.json b/apijson.json
new file mode 100644
index 0000000..5b59bde
--- /dev/null
+++ b/apijson.json
@@ -0,0 +1,1931 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "description": "后台API接口",
+ "version": "1.0",
+ "title": "后台服务API接口文档",
+ "contact": {
+ "name": "*********有限公司",
+ "url": "*********有限公司",
+ "email": "*********@qq.com"
+ }
+ },
+ "host": "h5.xzaiyp.top",
+ "tags": [
+ {
+ "name": "个人中心",
+ "x-order": "2147483647"
+ },
+ {
+ "name": "公共配置接口",
+ "x-order": "2147483647"
+ },
+ {
+ "name": "授权登录",
+ "x-order": "2147483647"
+ },
+ {
+ "name": "订单接口",
+ "x-order": "2147483647"
+ },
+ {
+ "name": "首页接口",
+ "x-order": "2147483647"
+ }
+ ],
+ "paths": {
+ "/building-admin/all_login/appletLogin": {
+ "get": {
+ "tags": [
+ "授权登录"
+ ],
+ "summary": "微信小程序授权登录",
+ "description": "微信小程序授权登录",
+ "operationId": "appletLoginUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "code",
+ "in": "query",
+ "description": "参数信息",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "encryptedData",
+ "in": "query",
+ "description": "解密",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "headimgurl",
+ "in": "query",
+ "description": "用户头像",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "id",
+ "in": "query",
+ "description": "标识",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "iv",
+ "in": "query",
+ "description": "解密标签",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "nickName",
+ "in": "query",
+ "description": "用户姓名",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "openid",
+ "in": "query",
+ "description": "用户唯一标识",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "session_key",
+ "in": "query",
+ "description": "会话密钥",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "shareId",
+ "in": "query",
+ "description": "邀请者销售标识",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "state",
+ "in": "query",
+ "description": "类型",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "vid",
+ "in": "query",
+ "description": "参数信息",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/all_login/bindPhone": {
+ "get": {
+ "tags": [
+ "授权登录"
+ ],
+ "summary": "绑定手机号码",
+ "description": "绑定手机号码",
+ "operationId": "bindPhoneUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "code",
+ "in": "query",
+ "description": "code",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/conf/getConfig": {
+ "get": {
+ "tags": [
+ "公共配置接口"
+ ],
+ "summary": "获取平台基础配置",
+ "description": "获取平台基础配置",
+ "operationId": "getConfigUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/addOrder": {
+ "post": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "快捷下单-拍照下单/语音下单",
+ "description": "快捷下单-拍照下单/语音下单",
+ "operationId": "addOrderUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "createBy",
+ "in": "query",
+ "description": "创建人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "createTime",
+ "in": "query",
+ "description": "创建日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "id",
+ "in": "query",
+ "description": "主键",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "imageUrl",
+ "in": "query",
+ "description": "内容图片",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "isPay",
+ "in": "query",
+ "description": "是否支付",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "shopId",
+ "in": "query",
+ "description": "推荐商品",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "status",
+ "in": "query",
+ "description": "审核状态",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "类型",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateBy",
+ "in": "query",
+ "description": "更新人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateTime",
+ "in": "query",
+ "description": "更新日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "userId",
+ "in": "query",
+ "description": "提交用户",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "voiceUrl",
+ "in": "query",
+ "description": "语音图片",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/createOrder": {
+ "post": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "创建订单",
+ "description": "创建订单",
+ "operationId": "createOrderUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "addressId",
+ "in": "query",
+ "description": "addressId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "payType",
+ "in": "query",
+ "description": "payType",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "productId",
+ "in": "query",
+ "description": "productId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/getBanner": {
+ "get": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "获取banner",
+ "description": "获取banner",
+ "operationId": "getBannerUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/getIcon": {
+ "get": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "获取金刚区icon",
+ "description": "获取金刚区icon",
+ "operationId": "getIconUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/getOrderInfo": {
+ "get": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "根据用户登录信息获取当前是否有快捷下单订单",
+ "description": "根据用户登录信息获取当前是否有快捷下单订单",
+ "operationId": "getOrderInfoUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/getProductDetail": {
+ "get": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "获取商品信息详情",
+ "description": "获取商品信息详情",
+ "operationId": "getProductDetailUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "productId",
+ "in": "query",
+ "description": "productId",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/getProductList": {
+ "get": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "获取建材商品信息列表",
+ "description": "获取建材商品信息列表",
+ "operationId": "getProductListUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "pageNo",
+ "in": "query",
+ "description": "当前页",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "pageSize",
+ "in": "query",
+ "description": "显示条数",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "shopClassId",
+ "in": "query",
+ "description": "shopClassId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "shopIconId",
+ "in": "query",
+ "description": "shopIconId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "搜索标题",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/index/payOrder": {
+ "post": {
+ "tags": [
+ "首页接口"
+ ],
+ "summary": "立即支付",
+ "description": "立即支付",
+ "operationId": "payOrderUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "orderId",
+ "in": "query",
+ "description": "orderId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "type",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/addHelp": {
+ "post": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "添加帮助",
+ "description": "添加帮助",
+ "operationId": "addHelpUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "createBy",
+ "in": "query",
+ "description": "创建人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "createTime",
+ "in": "query",
+ "description": "创建日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "id",
+ "in": "query",
+ "description": "主键",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "image",
+ "in": "query",
+ "description": "问题截图",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "description": "姓名",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "phone",
+ "in": "query",
+ "description": "联系方式",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "描述内容",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateBy",
+ "in": "query",
+ "description": "更新人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateTime",
+ "in": "query",
+ "description": "更新日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "userId",
+ "in": "query",
+ "description": "提交用户",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/createQrCode": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "创建二维码",
+ "description": "创建二维码",
+ "operationId": "createQrCodeUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/deleteAddress": {
+ "post": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "删除地址",
+ "description": "删除地址",
+ "operationId": "deleteAddressUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "query",
+ "description": "id",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/getAddressInfo": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "获取地址详情",
+ "description": "获取地址详情",
+ "operationId": "getAddressInfoUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "id",
+ "in": "query",
+ "description": "id",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/getAddressList": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "获取地址列表",
+ "description": "获取地址列表",
+ "operationId": "getAddressListUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "pageNo",
+ "in": "query",
+ "description": "当前页",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "pageSize",
+ "in": "query",
+ "description": "显示条数",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "搜索标题",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/getLogList": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "获取流水日志列表",
+ "description": "获取流水日志列表",
+ "operationId": "getLogListUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "pageNo",
+ "in": "query",
+ "description": "当前页",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "pageSize",
+ "in": "query",
+ "description": "显示条数",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "timeDate",
+ "in": "query",
+ "description": "timeDate",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "搜索标题",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/getTeamList": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "获取团队列表",
+ "description": "获取团队列表",
+ "operationId": "getTeamListUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "pageNo",
+ "in": "query",
+ "description": "当前页",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "pageSize",
+ "in": "query",
+ "description": "显示条数",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "state",
+ "in": "query",
+ "description": "state",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "搜索标题",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/getUserInfo": {
+ "get": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "获取用户信息",
+ "description": "获取用户信息",
+ "operationId": "getUserInfoUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/openMoney": {
+ "post": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "提现",
+ "description": "提现",
+ "operationId": "openMoneyUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "money",
+ "in": "query",
+ "description": "money",
+ "required": false,
+ "type": "number"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/saveOrUpdateAddress": {
+ "post": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "保存或修改地址",
+ "description": "保存或修改地址",
+ "operationId": "saveOrUpdateAddressUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "address",
+ "in": "query",
+ "description": "地址",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "addressDetails",
+ "in": "query",
+ "description": "详细",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "createBy",
+ "in": "query",
+ "description": "创建人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "createTime",
+ "in": "query",
+ "description": "创建日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "defaultFlag",
+ "in": "query",
+ "description": "默认",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "id",
+ "in": "query",
+ "description": "主键",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "latitude",
+ "in": "query",
+ "description": "经度",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "longitude",
+ "in": "query",
+ "description": "纬度",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "description": "姓名",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "phone",
+ "in": "query",
+ "description": "电话",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateBy",
+ "in": "query",
+ "description": "更新人",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "updateTime",
+ "in": "query",
+ "description": "更新日期",
+ "required": false,
+ "type": "string",
+ "format": "date-time"
+ },
+ {
+ "name": "userId",
+ "in": "query",
+ "description": "用户",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/info/updateUserInfo": {
+ "post": {
+ "tags": [
+ "个人中心"
+ ],
+ "summary": "修改用户信息",
+ "description": "修改用户信息",
+ "operationId": "updateUserInfoUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "headImage",
+ "in": "query",
+ "description": "headImage",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "nickName",
+ "in": "query",
+ "description": "nickName",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "phone",
+ "in": "query",
+ "description": "phone",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/order/confirmOrder": {
+ "post": {
+ "tags": [
+ "订单接口"
+ ],
+ "summary": "确认收货",
+ "description": "确认收货",
+ "operationId": "confirmOrderUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "orderId",
+ "in": "query",
+ "description": "orderId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/order/getOrderInfo": {
+ "get": {
+ "tags": [
+ "订单接口"
+ ],
+ "summary": "获取订单详情",
+ "description": "获取订单详情",
+ "operationId": "getOrderInfoUsingGET_1",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "orderId",
+ "in": "query",
+ "description": "orderId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/order/getOrderPageBean": {
+ "get": {
+ "tags": [
+ "订单接口"
+ ],
+ "summary": "获取订单列表带分页",
+ "description": "获取订单列表带分页",
+ "operationId": "getOrderPageBeanUsingGET",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "pageNo",
+ "in": "query",
+ "description": "当前页",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "pageSize",
+ "in": "query",
+ "description": "显示条数",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "status",
+ "in": "query",
+ "description": "status",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "title",
+ "in": "query",
+ "description": "搜索标题",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ },
+ "/building-admin/order/payOrder": {
+ "post": {
+ "tags": [
+ "订单接口"
+ ],
+ "summary": "再次支付",
+ "description": "再次支付",
+ "operationId": "payOrderUsingPOST_1",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "orderId",
+ "in": "query",
+ "description": "orderId",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "type",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "X-Access-Token",
+ "in": "header",
+ "description": "X-Access-Token",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/接口返回对象«object»",
+ "originalRef": "接口返回对象«object»"
+ }
+ },
+ "201": {
+ "description": "Created"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ },
+ "security": [
+ {
+ "X-Access-Token": [
+ "global"
+ ]
+ }
+ ],
+ "x-order": "2147483647"
+ }
+ }
+ },
+ "securityDefinitions": {
+ "X-Access-Token": {
+ "type": "apiKey",
+ "name": "X-Access-Token",
+ "in": "header"
+ }
+ },
+ "definitions": {
+ "接口返回对象«object»": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "format": "int32",
+ "description": "返回代码"
+ },
+ "message": {
+ "type": "string",
+ "description": "返回处理消息"
+ },
+ "result": {
+ "type": "object",
+ "description": "返回数据对象"
+ },
+ "success": {
+ "type": "boolean",
+ "description": "成功标志"
+ },
+ "timestamp": {
+ "type": "integer",
+ "format": "int64",
+ "description": "时间戳"
+ }
+ },
+ "title": "接口返回对象«object»",
+ "description": "接口返回对象"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue
index 6135e05..f743fa4 100644
--- a/components/base/tabbar.vue
+++ b/components/base/tabbar.vue
@@ -17,14 +17,10 @@
@@ -196,7 +218,6 @@
}
.head {
- z-index: -1;
display: flex;
background-color: #DC2828;
padding: 0rpx 20rpx;
@@ -231,6 +252,11 @@
.name {
font-size: 36rpx;
color: #fff;
+ margin-right: 20rpx;
+ width: 240rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.tips {
@@ -238,59 +264,31 @@
color: #fff;
margin-top: 10rpx;
}
+
+ .login-btn {
+ margin-top: 20rpx;
+ background-color: #fff;
+ color: #DC2828;
+ padding: 10rpx 30rpx;
+ border-radius: 30rpx;
+ font-size: 28rpx;
+ display: inline-block;
+ width: 160rpx;
+ text-align: center;
+ }
}
.headBtn {
- position: absolute;
- left: 310rpx;
- top: 175rpx;
color: #FFF;
font-size: 26rpx;
- }
-
- .amend {
- position: absolute;
- left: 275rpx;
- top: 180rpx;
- }
- }
-
- .userShop {
- .userList {
- .title {
- font-size: 32rpx;
- font-weight: 900;
- padding: 20rpx;
- }
-
- .list {
- display: flex;
- flex-wrap: wrap;
-
- .item {
- width: 270rpx;
- margin: 20rpx;
- display: flex;
- flex-direction: column;
- padding: 40rpx 30rpx;
- background-color: #fff;
- border-radius: 30rpx;
- line-height: 60rpx;
-
- .name {}
-
- .num {
- color: $uni-color;
- font-weight: 600;
- font-size: 28rpx;
- }
- }
- }
+ display: flex;
+ align-items: center;
}
}
.user {
- z-index: 99;
+ position: relative;
+ z-index: 9;
margin: 0 30rpx;
margin-top: -60rpx;
.line {
@@ -319,7 +317,6 @@
}
.image-home{
z-index: 1;
- height: 300rpx;
width: 100%;
}
}
@@ -346,6 +343,34 @@
width: 120rpx;
font-size: 24rpx;
}
+
+ .share {
+ background: none;
+ padding: 0;
+ margin: 0;
+ line-height: normal;
+ border: none;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+
+ &::after {
+ border: none;
+ }
+
+ .image {
+ width: 50rpx;
+ height: 50rpx;
+ margin: 20rpx 0;
+ }
+
+ .grid-text {
+ text-align: center;
+ width: 120rpx;
+ font-size: 24rpx;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4e137cd..8bb86e3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -26,65 +26,43 @@
-
+
-
-
- XX建材
-
-
-
-
- XX建材
-
-
-
-
- XX建材
-
-
-
-
- XX建材
+
+
+ {{item.title}}
+
热卖建材
-
-
- 你有一条新的快捷下单信息
-
-
-
- 1
-
-
-
-
-
+
-
+
- 泰山工装石膏板
+ {{item.name}}
-
+
- ¥38.00元/米
+ ¥{{item.price}}元/{{item.unit}}
@@ -96,6 +74,18 @@
+
+
+
+ 你有一条新的快捷下单信息
+
+
+
+ 1
+
+
+
+
@@ -115,15 +105,27 @@ export default {
return {
keyword: '',
bannerList : [],
- mixinsListApi: 'getClassShopPageList',
+ menuList: [],
+ mixinsListApi: 'getProductList',
}
},
computed: {
},
- onLoad() {
+ onShow() {
this.getBanner()
+ this.getMenu()
+ if(uni.getStorageSync('token')){
+ this.getOrderInfo()
+ }
},
methods: {
+ // 快捷下单信息
+ getOrderInfo(){
+ this.$api('getOrderInfo')
+ .then(res => {
+
+ })
+ },
// 获取轮播图
getBanner() {
this.$api('getBanner', res => {
@@ -132,20 +134,32 @@ export default {
}
})
},
+ // 获取菜单
+ getMenu() {
+ this.$api('getIcon', res => {
+ if (res.code == 200) {
+ this.menuList = res.result
+ }
+ })
+ },
toUrl() {
uni.navigateTo({
url: '/pages_order/order/fastCreateOrder'
})
- // this.$utils.navigateTo('/pages_order/mine/address')
},
toGoodInfo(item, index) {
- // uni.navigateTo({
- // url: `/pages_order/order/product/productDetail?id=`+item.id
- // })
uni.navigateTo({
- url: '/pages_order/product/productDetail'
+ url: `/pages_order/product/productDetail?id=${item.id}`
})
},
+ menuClick(item){
+ if(!item.url){
+ return
+ }
+ uni.navigateTo({
+ url: item.url,
+ })
+ },
}
}
@@ -246,7 +260,6 @@ export default {
.image-home {
z-index: 1;
- height: 350rpx;
margin: 0 20rpx;
margin-top: -90rpx;
border-radius: 20rpx;
@@ -269,8 +282,8 @@ export default {
margin-left: 20rpx;
margin-right: 20rpx;
margin-bottom: 10rpx;
- width: 100rpx;
- height: 100rpx;
+ width: 90rpx;
+ height: 90rpx;
display: inline-block;
transition: transform 0.3s;
@@ -279,7 +292,8 @@ export default {
}
}
- :deep(.grid-text) {
+ .grid-text {
+ margin-top: 4rpx;
font-size: 26rpx;
font-weight: 500;
color: #333;
@@ -326,7 +340,7 @@ export default {
.quick-order-container {
position: fixed;
right: 30rpx;
- top: 40vh;
+ bottom: 30vh;
z-index: 99;
transition: transform 0.3s;
@@ -411,7 +425,7 @@ export default {
.top-shop {
height: 100rpx;
width: 100%;
- font-size: 30rpx;
+ font-size: 32rpx;
margin-top: 20rpx;
text-align: center;
font-weight: 600;
@@ -427,29 +441,31 @@ export default {
.bottom-price {
display: inline-block;
- color: #DC2828;
- height: 80rpx;
- width: 250rpx;
- line-height: 100rpx;
- }
- }
-
- .buy-shop {
- height: 100%;
- width: 250rpx;
- display: flex;
- justify-content: center;
- align-items: center;
-
- :deep(.uv-button) {
- transition: transform 0.2s;
- &:active {
- transform: scale(0.95);
+ font-size: 28rpx;
+ color: #666;
+ text {
+ color: #DC2828;
+ font-weight: 700;
}
}
}
}
+
+ .buy-shop {
+ height: 100%;
+ width: 250rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ :deep(.uv-button) {
+ transition: transform 0.2s;
+ &:active {
+ transform: scale(0.95);
+ }
+ }
+ }
@keyframes pulse {
0% {
diff --git a/pages/index/order.vue b/pages/index/order.vue
index 43f28a6..0c9caa7 100644
--- a/pages/index/order.vue
+++ b/pages/index/order.vue
@@ -8,6 +8,7 @@
lineColor="#FD5100"
lineHeight="8rpx"
lineWidth="50rpx"
+ :scrollable="false"
@click="clickTabs">
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index a9c905e..1fe65de 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -1,10 +1,10 @@
-
+
- 欢迎使用酒店桌布租赁平台
+ 欢迎使用{{ configList.logo_name }}
@@ -35,10 +35,10 @@
activeColor="#FD5100"
:name="1"
>
- 阅读并同意我们的“服务协议与隐私条款”
+ 阅读并同意我们的“用户协议”
- 以及个人信息保护指引
+ 以及隐私政策
diff --git a/pages_order/center/help.vue b/pages_order/center/help.vue
deleted file mode 100644
index b31e037..0000000
--- a/pages_order/center/help.vue
+++ /dev/null
@@ -1,331 +0,0 @@
-
-
-
-
-
-
-
- 问题和意见
- *
-
-
-
-
-
-
- 问题截图
- *
-
-
-
-
-
-
-
-
-
-
-
- 确认
-
-
-
-
-
-
-
-
-
-
-
-
- 问题和意见 *
-
-
-
-
-
-
-
- 问题截图*
-
-
-
-
-
-
-
-
- 联系方式*
-
-
- 联系姓名
-
-
-
-
-
- 联系电话
-
-
-
-
-
-
-
-
-
-
- 提交反馈
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages_order/components/address/addressList.vue b/pages_order/components/address/addressList.vue
index a296dad..99375b2 100644
--- a/pages_order/components/address/addressList.vue
+++ b/pages_order/components/address/addressList.vue
@@ -22,7 +22,7 @@
- {{ item.address + " " + item.addressDetail }}
+ {{ item.address + " " + item.addressDetails }}
@@ -90,7 +90,7 @@
//获取地址列表
getAddressList() {
return new Promise((success, fail) => {
- this.$api('addressPage', this.queryParams, res => {
+ this.$api('getAddressList', this.queryParams, res => {
if (res.code == 200) {
this.addressList = res.result.records || [];
this.total = res.result.total || 0;
diff --git a/pages_order/components/address/redactAddress.vue b/pages_order/components/address/redactAddress.vue
index e11d971..9e82505 100644
--- a/pages_order/components/address/redactAddress.vue
+++ b/pages_order/components/address/redactAddress.vue
@@ -25,7 +25,7 @@
-
+
@@ -76,7 +76,7 @@
name,
phone,
address,
- addressDetail
+ addressDetails
} = addressDetaila
if (name.trim() == '') {
return {
@@ -93,7 +93,7 @@
title: '请填写所在地区',
auth: false
}
- } else if (addressDetail.trim() == '') {
+ } else if (addressDetails.trim() == '') {
return {
title: '请填写详细地址',
auth: false
diff --git a/pages_order/components/product/submit.vue b/pages_order/components/product/submit.vue
index 493036c..cacc2fd 100644
--- a/pages_order/components/product/submit.vue
+++ b/pages_order/components/product/submit.vue
@@ -30,7 +30,7 @@
name:"submit",
props : {
submiitTitle : {
- default : '立即租赁',
+ default : '立即购买',
type : String,
}
},
diff --git a/pages_order/components/product/submitUnitSelect.vue b/pages_order/components/product/submitUnitSelect.vue
index 8d228a5..94df482 100644
--- a/pages_order/components/product/submitUnitSelect.vue
+++ b/pages_order/components/product/submitUnitSelect.vue
@@ -12,7 +12,7 @@
{{ address.name }}
- {{ address.addressDetail }}
+ {{ address.addressDetails }}
{
+ this.$api('saveOrUpdateAddress', data, res => {
if (res.code == 200) {
this.$refs.addressPopup.close()
this.getAddressList()
@@ -128,7 +128,7 @@
content: '确认删除此地址?删除后数据不可恢复',
success(e) {
if(e.confirm){
- self.$api('addressDelete', {
+ self.$api('deleteAddress', {
id
}, res => {
if (res.code == 200) {
@@ -151,7 +151,7 @@
name: '',
phone: '',
address: '',
- addressDetail: '',
+ addressDetails: '',
defaultId: '',
latitude: '',
longitude: ''
diff --git a/pages_order/mine/help.vue b/pages_order/mine/help.vue
index 6c7dee6..746bcd5 100644
--- a/pages_order/mine/help.vue
+++ b/pages_order/mine/help.vue
@@ -8,7 +8,7 @@
问题和意见
*
-
@@ -16,7 +16,7 @@
问题截图
- *
+
@@ -28,26 +28,27 @@
-
+
+
+ 联系姓名
+
+
+
+
+
+ 联系电话
+
+
+
+
- 确认
+
+ 确认
@@ -57,7 +58,12 @@
export default {
data() {
return {
- value: "",
+ form : {
+ title : '',
+ phone : '',
+ name : '',
+ image : '',
+ },
fileList: []
}
},
@@ -78,6 +84,32 @@
})
})
},
+ submit(){
+
+ let data = JSON.parse(JSON.stringify(this.form))
+
+ if(this.$utils.verificationAll(this.form, {
+ title : '请输入你的问题和意见',//问题和意见
+ // image : '请上传截图',//
+ name : '请输入姓名',//
+ phone : '请输入手机号码',//手机号码
+ })){
+ return
+ }
+
+ data.image = this.fileList.map((item) => item.url).join(",")
+
+ this.$api('addHelp', data, res => {
+ if(res.code == 200){
+ uni.showToast({
+ title: "反馈成功",
+ icon:'none'
+ })
+
+ setTimeout(uni.navigateBack, 800, -1)
+ }
+ })
+ },
}
}
@@ -101,6 +133,17 @@
background-color: #fff;
padding: 20rpx;
}
+
+ .form-sheet-cell{
+ display: flex;
+ background-color: #fff;
+ padding: 20rpx 30rpx;
+ font-size: 24rpx;
+ align-items: center;
+ view{
+ width: 150rpx;
+ }
+ }
.help-button {
display: flex;
diff --git a/pages_order/mine/individualTeam.vue b/pages_order/mine/individualTeam.vue
index 86bb674..b6988fb 100644
--- a/pages_order/mine/individualTeam.vue
+++ b/pages_order/mine/individualTeam.vue
@@ -1,13 +1,12 @@
-
-
+
@@ -65,17 +64,20 @@
+
+
\ No newline at end of file
diff --git a/pages_order/order/createOrder.vue b/pages_order/order/createOrder.vue
new file mode 100644
index 0000000..6c253fc
--- /dev/null
+++ b/pages_order/order/createOrder.vue
@@ -0,0 +1,805 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 单人礼包
+ 送给1位好友,可同时送多件礼品
+
+
+ 多人礼包
+ 送给多位好友,每人1件礼品
+
+
+ 抽奖礼包
+ 好友抽奖,中奖者获得礼品
+
+
+
+
+
+
+
+
+
+ 礼包份数
+
+
+
+ multiMinNum && multiNum--">-
+ {{multiNum}}
+ +
+
+
+
+
+
+
+ 抽奖规则
+
+ • 好友参与抽奖
+ • 系统随机抽取中奖者
+ • 中奖者填写地址领取礼品
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ 材质:{{ item.material }}
+
+
+
+
+
+
+
+ 已售出 {{ item.payNum }}单
+
+
+
+
+
+
+
+
+ {{ address.name }}
+ {{ address.address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 账户余额
+ (余额: {{ riceInfo.balance }})
+
+
+
+
+
+
+
+
+
+
+
+ 微信支付
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ payOrderProduct[0].orderDetails }}
+
+
+
+
+
+ 本人已同意《用户使用协议》
+
+
+
+
+
+
+ 合计
+ ¥{{ totalPrice }}元
+
+
+
+ 立即支付
+
+
+
+
+
+
+
+
+ 新增地址
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/order/pictureOrder.vue b/pages_order/order/pictureOrder.vue
index 57f454a..da5f635 100644
--- a/pages_order/order/pictureOrder.vue
+++ b/pages_order/order/pictureOrder.vue
@@ -109,9 +109,9 @@
}
// 显示加载提示
- uni.showLoading({
- title: '图片识别中...'
- });
+ // uni.showLoading({
+ // title: '上传中...'
+ // });
this.isUploading = true;
this.uploadProgress = 0;
@@ -144,8 +144,8 @@
this.imageOssUrl = url;
console.log('图片上传成功', url);
- // 调用图片识别
- this.recognizeImage(url);
+ // 调用拍照下单接口
+ this.createPictureOrder(url);
}).catch(err => {
// 上传失败
clearInterval(progressInterval);
@@ -154,69 +154,39 @@
});
},
- // 图片识别
- recognizeImage(imageUrl) {
- // 使用统一的API调用方式
- this.$api('order.recognizeImage', {
+ // 创建拍照订单
+ createPictureOrder(imageUrl) {
+ this.$api('addOrder', {
imageUrl: imageUrl,
- userId: uni.getStorageSync('userId') || ''
+ type: '0', //0表示拍照下单
}, res => {
- // 回调方式处理结果
- if (res.code === 0) {
- this.recognitionResult = res.data.result;
- console.log('图片识别成功', this.recognitionResult);
-
- // 处理订单
- this.processOrder();
- } else {
- this.handleUploadFailed(res.msg || '图片识别失败');
- }
- }, err => {
- // 错误处理
- console.error('图片识别请求失败', err);
- this.handleUploadFailed('网络请求失败,请检查网络连接');
- });
- },
-
- // 处理订单
- processOrder() {
- // 使用统一的API调用方式
- this.$api('order.createFromImage', {
- userId: uni.getStorageSync('userId') || '',
- imageUrl: this.imageOssUrl,
- recognitionResult: this.recognitionResult
- }).then(res => {
- // Promise方式处理结果
uni.hideLoading();
this.isUploading = false;
if (res.code === 0) {
// 下单成功
- const orderId = res.data.orderId;
-
- // 显示成功提示并跳转
uni.showToast({
- title: '图片下单成功',
+ title: '下单成功',
icon: 'success',
duration: 1500,
success: () => {
- setTimeout(() => {
- this.$utils.redirectTo('/pages_order/order/firmOrder?orderId=' + orderId);
- }, 1500);
+ uni.reLaunch({
+ url: '/pages/index/index'
+ })
}
});
} else {
uni.showModal({
title: '提示',
- content: res.msg || '创建订单失败',
+ content: res.message || '下单失败',
showCancel: false
});
}
- }).catch(err => {
+ }, err => {
// 错误处理
uni.hideLoading();
this.isUploading = false;
- console.error('创建订单请求失败', err);
+ console.error('下单请求失败', err);
this.handleUploadFailed('网络请求失败,请检查网络连接');
});
},
diff --git a/pages_order/order/refundsOrExchange.vue b/pages_order/order/refundsOrExchange.vue
deleted file mode 100644
index 99f897e..0000000
--- a/pages_order/order/refundsOrExchange.vue
+++ /dev/null
@@ -1,362 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ commodity.title }}
- {{ commodity.smallTitle }}
-
- ×{{ commodity.total }}
-
-
-
-
-
-
-
-
- 申请类型
- 退货退款
-
-
-
- 申请原因
-
-
-
-
-
-
-
-
-
- {{ titleIndex == 0 ? '退货数量' : '换货数量' }}
-
-
-
-
-
-
- 申请原因
-
-
-
-
-
-
-
-
- 申请说明(选填)
-
-
-
-
-
-
-
-
-
-
-
-
- 联系电话
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages_order/order/voiceOrder.vue b/pages_order/order/voiceOrder.vue
index 89f0ec7..0a059a0 100644
--- a/pages_order/order/voiceOrder.vue
+++ b/pages_order/order/voiceOrder.vue
@@ -363,9 +363,9 @@
}
// 显示加载提示
- uni.showLoading({
- title: '语音识别中...'
- });
+ // uni.showLoading({
+ // title: '语音识别中...'
+ // });
this.isUploading = true;
this.uploadProgress = 0;
@@ -398,8 +398,8 @@
this.audioUrl = url;
console.log('音频上传成功', url);
- // 调用语音识别
- this.recognizeVoice(url);
+ // 调用语音下单接口
+ this.createVoiceOrder(url);
}).catch(err => {
// 上传失败
clearInterval(progressInterval);
@@ -408,69 +408,39 @@
});
},
- // 语音识别
- recognizeVoice(fileUrl) {
- // 使用统一的API调用方式
- this.$api('order.recognizeVoice', {
- fileUrl: fileUrl,
- userId: uni.getStorageSync('userId') || ''
+ // 创建语音订单
+ createVoiceOrder(audioUrl) {
+ this.$api('addOrder', {
+ voiceUrl: audioUrl,
+ type: '1', //1表示语音下单
}, res => {
- // 回调方式处理结果
- if (res.code === 0) {
- this.recognitionResult = res.data.result;
- console.log('语音识别成功', this.recognitionResult);
-
- // 处理订单
- this.processOrder();
- } else {
- this.handleUploadFailed(res.msg || '语音识别失败');
- }
- }, err => {
- // 错误处理
- console.error('语音识别请求失败', err);
- this.handleUploadFailed('网络请求失败,请检查网络连接');
- });
- },
-
- // 处理订单
- processOrder() {
- // 使用统一的API调用方式
- this.$api('order.createFromVoice', {
- userId: uni.getStorageSync('userId') || '',
- audioUrl: this.audioUrl,
- recognitionResult: this.recognitionResult
- }).then(res => {
- // Promise方式处理结果
uni.hideLoading();
this.isUploading = false;
if (res.code === 0) {
// 下单成功
- const orderId = res.data.orderId;
-
- // 显示成功提示并跳转
uni.showToast({
- title: '语音下单成功',
+ title: '下单成功',
icon: 'success',
duration: 1500,
success: () => {
- setTimeout(() => {
- this.$utils.redirectTo('/pages_order/order/firmOrder?orderId=' + orderId);
- }, 1500);
+ uni.reLaunch({
+ url: '/pages/index/index'
+ })
}
});
} else {
uni.showModal({
title: '提示',
- content: res.msg || '创建订单失败',
+ content: res.message || '下单失败',
showCancel: false
});
}
- }).catch(err => {
+ }, err => {
// 错误处理
uni.hideLoading();
this.isUploading = false;
- console.error('创建订单请求失败', err);
+ console.error('下单请求失败', err);
this.handleUploadFailed('网络请求失败,请检查网络连接');
});
},
diff --git a/pages_order/product/productDetail.vue b/pages_order/product/productDetail.vue
index a4b0a78..e8e0466 100644
--- a/pages_order/product/productDetail.vue
+++ b/pages_order/product/productDetail.vue
@@ -8,11 +8,11 @@
- 桌布租赁
+ {{ productDetail.name }}
- ¥45.9起
+ ¥{{ productDetail.price }}起
-
+
-
+
@@ -91,8 +91,21 @@
},
onLoad(args) {
console.log(args);
+ if(args.id) {
+ this.getProductDetail(args.id)
+ }
},
methods: {
+ // 获取商品详情
+ getProductDetail(id) {
+ this.$api('getProductDetail', {
+ productId: id
+ }, res => {
+ if(res.code == 200) {
+ this.productDetail = res.result
+ }
+ })
+ },
// 联系客服
share() {
var that = this
@@ -100,11 +113,23 @@
},
// 选择完成规格立即租赁下单
submit() {
- var that = this
- that.$refs.submitUnitSelect.open();
+ // that.$refs.submitUnitSelect.open();
- // $utils.navigateTo('/pages_order/order/firmOrder?id=')
- }
+ // 检查库存
+ if(this.productDetail.num <= 0) {
+ uni.showToast({
+ title: '库存不足,无法下单',
+ icon: 'none'
+ });
+ return;
+ }
+
+ this.$store.commit('setPayOrderProduct', [
+ this.productDetail
+ ])
+
+ this.$utils.navigateTo('/pages_order/order/createOrder')
+ },
}
}
diff --git a/pages_order/static/createOrder/account.png b/pages_order/static/createOrder/account.png
new file mode 100644
index 0000000..b5c5585
Binary files /dev/null and b/pages_order/static/createOrder/account.png differ
diff --git a/pages_order/static/createOrder/address.png b/pages_order/static/createOrder/address.png
new file mode 100644
index 0000000..a6f36d0
Binary files /dev/null and b/pages_order/static/createOrder/address.png differ
diff --git a/pages_order/static/createOrder/coupon.png b/pages_order/static/createOrder/coupon.png
new file mode 100644
index 0000000..2cae06c
Binary files /dev/null and b/pages_order/static/createOrder/coupon.png differ
diff --git a/pages_order/static/createOrder/wx.png b/pages_order/static/createOrder/wx.png
new file mode 100644
index 0000000..6267617
Binary files /dev/null and b/pages_order/static/createOrder/wx.png differ
diff --git a/store/store.js b/store/store.js
index 0151305..7e06f63 100644
--- a/store/store.js
+++ b/store/store.js
@@ -164,7 +164,7 @@ const store = new Vuex.Store({
return
}
uni.getImageInfo({
- src: `${Vue.prototype.$config.baseUrl}/info_common/getInviteCode?token=${uni.getStorageSync('token')}`,
+ src: `${Vue.prototype.$config.baseUrl}/info/createQrCode?token=${uni.getStorageSync('token')}`,
success : res => {
that.commit('setPromotionUrl', res.path)
},