杨豪
3 years ago
28 changed files with 472 additions and 152 deletions
@ -0,0 +1,22 @@
|
||||
const http = require('./http.js') |
||||
|
||||
/* |
||||
* 商品分类 |
||||
* */ |
||||
export function getCategory() { |
||||
return http.$http('get','category'); |
||||
} |
||||
|
||||
/* |
||||
* 商品列表 |
||||
* */ |
||||
export function getProducts(q) { |
||||
return http.$http('get','products',q) |
||||
} |
||||
/* |
||||
* 商品详情 |
||||
* */ |
||||
export function getProductDetail(id) { |
||||
return http.$http('get',"/product/detail/" + id) |
||||
} |
||||
|
@ -1,12 +1,25 @@
|
||||
const http = require('./http.js') |
||||
//绑定手机号
|
||||
export function bingPhone(){ |
||||
return new Promise((resolve,reject)=> { |
||||
http.$http().then((res)=>{ |
||||
if(res.success){ |
||||
resolve(res) |
||||
} else{ |
||||
resolve(res) |
||||
} |
||||
}) |
||||
}) |
||||
return http.$http() |
||||
} |
||||
//获取用户信息
|
||||
export function getUserInfo(){ |
||||
return http.$http('get','userinfo') |
||||
} |
||||
|
||||
//立即咨询
|
||||
export function saleLeads(data){ |
||||
return http.$http('post','user/saleLeads',data) |
||||
} |
||||
|
||||
// 获取我的团队
|
||||
export function getMyTeam(){ |
||||
return http.$http('get','getTeam') |
||||
} |
||||
|
||||
// 积分动态
|
||||
export function getIntegralList(data){ |
||||
return http.$http('get','integral/list',data) |
||||
} |
||||
|
||||
|
@ -1,16 +1,17 @@
|
||||
<!--pages/goodsList/index.wxml--> |
||||
<view class="goodsList-page"> |
||||
<view class="goods-list"> |
||||
<view class="goods-item acea-row" wx:for="{{3}}" :key="index" bindtap="toDetail" data-id="id"> |
||||
<image src="../../images/jixiang.png" mode="aspectFill"></image> |
||||
<view class="goods-item acea-row" wx:for="{{products}}" wx:key="index" bindtap="toDetail" data-id="{{item.id}}"> |
||||
<image src="{{item.image}}" mode="aspectFill"></image> |
||||
<view class="goods-info"> |
||||
<view class="name line2">瑞梦思·夏季新款独家定制款独家定制智能款独家定制智能智能床垫</view> |
||||
<view class="desc">高级智能床垫·安心休息</view> |
||||
<view class="name line2">{{item.storeName}}</view> |
||||
<view class="desc">{{item.storeInfo}}</view> |
||||
<view class="price"> |
||||
<text class="s-word">¥</text> |
||||
<text>129000</text> |
||||
<text>{{item.price}}</text> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="loading-status">{{loadingStatus}}</view> |
||||
</view> |
||||
|
@ -1,4 +1,5 @@
|
||||
{ |
||||
"usingComponents": {}, |
||||
"navigationBarTitleText": "我的" |
||||
"navigationBarTitleText": "我的", |
||||
"enablePullDownRefresh": true |
||||
} |
Loading…
Reference in new issue