Browse Source

上传

master
前端-胡立永 2 months ago
parent
commit
f1fc2021df
6 changed files with 53 additions and 53 deletions
  1. +22
    -22
      api/model/index.js
  2. +18
    -18
      api/model/info.js
  3. +1
    -1
      manifest.json
  4. +10
    -10
      pages/index/index.vue
  5. +2
    -2
      pages/index/order.vue
  6. +0
    -0
      pages_order/static/home/4.png

+ 22
- 22
api/model/index.js View File

@ -5,78 +5,78 @@
const api = { const api = {
// 获取首页轮播图 // 获取首页轮播图
getRiceBanner: { getRiceBanner: {
url: '/rice_index/getRiceBanner',
method: 'GET',
},
// 获取首页常规产品
getRiceCommonProductList: {
url: '/rice_index/getRiceCommonProductList',
url: '/index_common/getRiceBanner',
method: 'GET', method: 'GET',
}, },
// 获取首页常规产品【废弃】
// getRiceCommonProductList: {
// url: '/index_common/getRiceCommonProductList',
// method: 'GET',
// },
// 获取首页跳转图标 // 获取首页跳转图标
getRiceIconList: { getRiceIconList: {
url: '/rice_index/getRiceIconList',
url: '/index_common/getRiceIconList',
method: 'GET', method: 'GET',
}, },
// 获取首页新闻详情 // 获取首页新闻详情
getRiceNewsDetail: { getRiceNewsDetail: {
url: '/rice_index/getCommonNewsDetail',
url: '/index_common/getCommonNewsDetail',
method: 'GET', method: 'GET',
}, },
// 获取首页新闻列表 // 获取首页新闻列表
getRiceNewsList: { getRiceNewsList: {
url: '/rice_index/getRiceNewsList',
url: '/index_common/getRiceNewsList',
method: 'GET', method: 'GET',
}, },
// 获取首页公告列表 // 获取首页公告列表
getRiceNoticeList: { getRiceNoticeList: {
url: '/rice_index/getRiceNoticeList',
url: '/index_common/getRiceNoticeList',
method: 'GET', method: 'GET',
}, },
// 获取首页商品详情 // 获取首页商品详情
getRiceProductDetail: { getRiceProductDetail: {
url: '/rice_index/getRiceProductDetail',
url: '/index_common/getRiceProductDetail',
method: 'GET', method: 'GET',
}, },
// 获取首页体验产品 // 获取首页体验产品
getRiceProductList: { getRiceProductList: {
url: '/rice_index/getRiceProductList',
url: '/index_common/getRiceProductList',
method: 'GET', method: 'GET',
}, },
// 查询分类接口 // 查询分类接口
getCategoryList: { getCategoryList: {
url: '/rice_index/getCategoryList',
url: '/index_common/getCategoryList',
method: 'GET', method: 'GET',
}, },
// 获取分类分页商品列表接口 // 获取分类分页商品列表接口
getClassShopPageList: { getClassShopPageList: {
url: '/rice_index/getClassShopPageList',
url: '/index_common/getClassShopPageList',
method: 'GET', method: 'GET',
}, },
// 加入购物车 // 加入购物车
addCart: { addCart: {
url: '/rice_index/addCart',
url: '/index_common/addCart',
method: 'GET', method: 'GET',
auth : true, auth : true,
showLoading : true, showLoading : true,
}, },
// 删除购物车信息 // 删除购物车信息
deleteCart: { deleteCart: {
url: '/rice_index/deleteCart',
url: '/index_common/deleteCart',
method: 'DELETE', method: 'DELETE',
auth : true, auth : true,
showLoading : true, showLoading : true,
}, },
// 修改购物车信息数量 // 修改购物车信息数量
updateCartNum: { updateCartNum: {
url: '/rice_index/updateCartNum',
url: '/index_common/updateCartNum',
method: 'POST', method: 'POST',
auth : true, auth : true,
debounce : 300, debounce : 300,
}, },
// 创建订单 // 创建订单
createOrder: { createOrder: {
url: '/rice_index/createOrder',
url: '/index_common/createOrder',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -84,7 +84,7 @@ const api = {
}, },
// 创建订单-再次支付 // 创建订单-再次支付
createOrderTwo: { createOrderTwo: {
url: '/rice_index/createOrderTwo',
url: '/index_common/createOrderTwo',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -92,7 +92,7 @@ const api = {
}, },
// 多商品创建订单 // 多商品创建订单
createSumOrder: { createSumOrder: {
url: '/rice_index/createSumOrder',
url: '/index_common/createSumOrder',
method: 'POST', method: 'POST',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -100,7 +100,7 @@ const api = {
}, },
// 多商品订单再次支付 // 多商品订单再次支付
createSumOrderAgain: { createSumOrderAgain: {
url: '/rice_index/createSumOrderAgain',
url: '/index_common/createSumOrderAgain',
method: 'POST', method: 'POST',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -108,7 +108,7 @@ const api = {
}, },
// 确认收货 // 确认收货
confirmOrder: { confirmOrder: {
url: '/rice_index/confirmOrder',
url: '/index_common/confirmOrder',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,


+ 18
- 18
api/model/info.js View File

@ -4,7 +4,7 @@
const api = { const api = {
// 充值 // 充值
recharge: { recharge: {
url: '/rice_info/recharge',
url: '/info_common/recharge',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -12,7 +12,7 @@ const api = {
}, },
// 提现 // 提现
withdraw: { withdraw: {
url: '/rice_info/withdraw',
url: '/info_common/withdraw',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,
@ -20,13 +20,13 @@ const api = {
}, },
// 获取地址列表带分页 // 获取地址列表带分页
getAddressPageList: { getAddressPageList: {
url: '/rice_info/getAddressPageList',
url: '/info_common/getAddressPageList',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 增加或修改地址信息 // 增加或修改地址信息
addOrUpdateAddress: { addOrUpdateAddress: {
url: '/rice_info/addOrUpdateAddress',
url: '/info_common/addOrUpdateAddress',
method: 'POST', method: 'POST',
limit : 500, limit : 500,
auth : true, auth : true,
@ -34,7 +34,7 @@ const api = {
}, },
// 删除地址 // 删除地址
deleteAddress: { deleteAddress: {
url: '/rice_info/deleteAddress',
url: '/info_common/deleteAddress',
method: 'GET', method: 'GET',
limit : 500, limit : 500,
auth : true, auth : true,
@ -42,71 +42,71 @@ const api = {
}, },
// 修改默认地址 // 修改默认地址
updateDefaultAddress: { updateDefaultAddress: {
url: '/rice_info/updateDefaultAddress',
url: '/info_common/updateDefaultAddress',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000, limit : 1000,
}, },
// 获取粉丝列表带分页 // 获取粉丝列表带分页
getFansPageList: { getFansPageList: {
url: '/rice_info/getFansPageList',
url: '/info_common/getFansPageList',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取相关介绍 // 获取相关介绍
getInfoIntroduce: { getInfoIntroduce: {
url: '/rice_info/getInfoIntroduce',
url: '/info_common/getInfoIntroduce',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取个人邀请码 // 获取个人邀请码
getInviteCode: { getInviteCode: {
url: '/rice_info/getInviteCode',
url: '/info_common/getInviteCode',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取订单列表带分页 // 获取订单列表带分页
getOrderPageList: { getOrderPageList: {
url: '/rice_info/getOrderPageList',
url: '/info_common/getOrderPageList',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取订单详情 // 获取订单详情
getOrderDetail: { getOrderDetail: {
url: '/rice_info/getOrderDetail',
url: '/info_common/getOrderDetail',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取流水记录带分页 // 获取流水记录带分页
getWaterPageList: { getWaterPageList: {
url: '/rice_info/getWaterPageList',
url: '/info_common/getWaterPageList',
method: 'GET', method: 'GET',
auth : true, auth : true,
}, },
// 获取相关介绍 // 获取相关介绍
getInfoIntroduce: { getInfoIntroduce: {
url: '/rice_info/getInfoIntroduce',
url: '/info_common/getInfoIntroduce',
method: 'GET', method: 'GET',
}, },
// 获取相关介绍详情 // 获取相关介绍详情
getInfoIntroduceDetail: { getInfoIntroduceDetail: {
url: '/rice_info/getRiceNewsDetail',
url: '/info_common/getRiceNewsDetail',
method: 'GET', method: 'GET',
}, },
// 查询个人信息相关 // 查询个人信息相关
getRiceInfo: { getRiceInfo: {
url: '/rice_info/getRiceInfo',
url: '/info_common/getRiceInfo',
method: 'GET', method: 'GET',
limit : 500, limit : 500,
}, },
// 获取购物车信息列表带分页 // 获取购物车信息列表带分页
getCartPageList: { getCartPageList: {
url: '/rice_info/getCartPageList',
url: '/info_common/getCartPageList',
method: 'GET', method: 'GET',
}, },
// 增加或者修改渠道申请信息 // 增加或者修改渠道申请信息
addOrUpdateCommonUser: { addOrUpdateCommonUser: {
url: '/rice_info/addOrUpdateCommonUser',
url: '/info_common/addOrUpdateCommonUser',
method: 'POST', method: 'POST',
limit : 500, limit : 500,
auth : true, auth : true,
@ -114,7 +114,7 @@ const api = {
}, },
// 查询渠道申请信息 // 查询渠道申请信息
getCommonUser: { getCommonUser: {
url: '/rice_info/getCommonUser',
url: '/info_common/getCommonUser',
method: 'GET', method: 'GET',
limit : 500, limit : 500,
auth : true, auth : true,


+ 1
- 1
manifest.json View File

@ -52,7 +52,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx28679cb649907e7e",
"appid" : "wx0839bc52e7849c13",
"setting" : { "setting" : {
"urlCheck" : false "urlCheck" : false
}, },


+ 10
- 10
pages/index/index.vue View File

@ -139,7 +139,7 @@
this.getBanner() this.getBanner()
this.getRiceNoticeList() this.getRiceNoticeList()
this.getRiceIconList() this.getRiceIconList()
this.getRiceCommonProductList()
// this.getRiceCommonProductList()
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.getBanner() this.getBanner()
@ -172,15 +172,15 @@
}) })
}, },
//
getRiceCommonProductList() {
this.$api('getRiceCommonProductList', res => {
uni.stopPullDownRefresh()
if (res.code == 200) {
this.commonProductList = res.result
}
})
},
//
// getRiceCommonProductList() {
// this.$api('getRiceCommonProductList', res => {
// uni.stopPullDownRefresh()
// if (res.code == 200) {
// this.commonProductList = res.result
// }
// })
// },
// //
getRiceProductList() { getRiceProductList() {


+ 2
- 2
pages/index/order.vue View File

@ -8,8 +8,8 @@
/> />
<uv-tabs :list="tabs" <uv-tabs :list="tabs"
:activeStyle="{color : '#A3D250', fontWeight : 600}"
lineColor="#A3D250"
:activeStyle="{color : '#E3441A', fontWeight : 600}"
lineColor="#E3441A"
lineHeight="8rpx" lineHeight="8rpx"
lineWidth="50rpx" lineWidth="50rpx"
:current="current" :current="current"


pages_order/static/home/1.png → pages_order/static/home/4.png View File


Loading…
Cancel
Save