变更商品数量,调整字段错误,推荐关系页面调整

This commit is contained in:
唐明明
2021-11-12 16:23:35 +08:00
parent 1def6bcbfc
commit 24b23ac13c
9 changed files with 431 additions and 421 deletions

View File

@@ -1,37 +1,38 @@
/**
/** * Web唐明明
* Web唐明明 * 匆匆数载恍如梦,岁月迢迢华发增。
* 匆匆数载恍如梦,岁月迢迢华发增 * 碌碌无为枉半生,一朝惊醒万事空
* 碌碌无为枉半生,一朝惊醒万事空。 * moduleName: 商品
* moduleName: 商品 */
*/
import {
import { request } from '../index' request
} from '../index'
// 商品管理-商品列表 // 商品管理-商品列表
const managesGoodsIndex = data => { const managesGoodsIndex = data => {
return request({ return request({
url: 'manages/goods/index', url: 'manages/goods/index',
data:data data: data
}) })
} }
// 商品管理-商品增发 // 商品管理-商品增发
const managesGoodsMint = data => { const managesGoodsMint = data => {
return request({ return request({
url: 'manages/goods/'+data.id+'/mint', url: 'manages/goods/' + data.id + '/mint',
data:data, data: data,
method:'POST' method: 'POST'
}) })
} }
// 商品管理-商品燃烧 // 商品管理-商品燃烧
const managesGoodsBurn = data => { const managesGoodsBurn = data => {
return request({ return request({
url: 'manages/goods/'+data.id+'/burn', url: 'manages/goods/' + data.id + '/burn',
data:data, data: data,
method:'POST' method: 'POST'
}) })
} }
@@ -46,127 +47,127 @@ const managesGoodsCreateBefore = () => {
const managesGoodsCreate = (data) => { const managesGoodsCreate = (data) => {
return request({ return request({
url: 'manages/goods', url: 'manages/goods',
method:'POST', method: 'POST',
data:data data: data
})
}
// 发布产品类目
const managesCategory = () => {
return request({
url: 'manages/goods/category'
})
}
// 发布产品类目类型配置
const managesCreate = (data) => {
return request({
url: 'manages/goods/create',
data
})
}
// 商品认证
const managesGoodsAuth = (id, data) => {
return request({
url: 'manages/goods/' + id + '/extends',
method: 'POST',
data
})
}
// 商品删除
const managesGoodsDelete = id => {
return request({
url: 'manages/goods/' + id,
method: 'DELETE'
})
}
// 产品信息
const managesGoodsEdit = id => {
return request({
url: 'manages/goods/' + id
})
}
// 产品编辑
const managesGoodsPut = (id, data) => {
return request({
url: 'manages/goods/' + id,
method: 'PUT',
data
})
}
// 产品附加信息
const managesGoodsExtends = id => {
return request({
url: 'manages/goods/' + id + '/extends',
}) })
}
// 发布产品类目
const managesCategory = () => {
return request({
url: 'manages/goods/category'
})
}
// 发布产品类目类型配置
const managesCreate = (data) => {
return request({
url: 'manages/goods/create',
data
})
}
// 商品认证
const managesGoodsAuth = (id, data) => {
return request({
url: 'manages/goods/' + id + '/extends',
method:'POST',
data
})
}
// 商品删除
const managesGoodsDelete = id => {
return request({
url: 'manages/goods/' + id,
method:'DELETE'
})
}
// 产品信息
const managesGoodsEdit = id => {
return request({
url: 'manages/goods/' + id
})
}
// 产品编辑
const managesGoodsPut = (id, data) => {
return request({
url: 'manages/goods/' + id,
method: 'PUT',
data
})
}
// 产品附加信息
const managesGoodsExtends = id => {
return request({
url: 'manages/goods/' + id + '/extends',
})
} }
// 领取优惠券 // 领取优惠券
const managesCoupons = (id) => { const managesCoupons = (id) => {
return request({ return request({
url: 'coupons/'+ id +'/grant', url: 'coupons/' + id + '/grant',
method: 'POST' method: 'POST'
}) })
} }
// 商城首页 // 商城首页
const mall = data => { const mall = data => {
return request({ return request({
url: "mall" url: "mall"
}) })
} }
// 商品列表 // 商品列表
const list = data => { const list = data => {
return request({ return request({
url: "mall/goods", url: "mall/goods",
data data
}) })
} }
// 通证权益 搜索页面 // 通证权益 搜索页面
const searchUrl = (apiUrl,data) => { const searchUrl = (apiUrl, data) => {
return request({ return request({
url : apiUrl, url: apiUrl,
data: data data: data
}) })
} }
// 企业行业分类 // 企业行业分类
const companyCategory = () => { const companyCategory = () => {
return request({ return request({
url : 'companies/industry' url: 'companies/industry'
}) })
} }
// 商品分类搜索-默认关键字 // 商品分类搜索-默认关键字
const randgoodsUrl = (apiUrl, data) => { const randgoodsUrl = (apiUrl, data) => {
return request({ return request({
url: apiUrl, url: apiUrl,
data: data data: data
}) })
} }
// 商品详情 // 商品详情
const goods = id => { const goods = id => {
return request({ return request({
url: 'mall/goods/' + id url: 'mall/goods/' + id
}) })
} }
// 商品分类 // 商品分类
const goodsCategory = () => { const goodsCategory = () => {
return request({ return request({
url : 'mall/categories' url: 'mall/categories'
}) })
} }
// 商品确认商品信息页面get 下单页 post // 商品确认商品信息页面get 下单页 post
const mallBuyGoods = (data, method) => { const mallBuyGoods = (data, method) => {
return request({ return request({
url: 'mall/buy/goods', url: 'mall/buy/goods',
method: method, method: method,
data: data data: data
}) })
} }
// 区块链证书 // 区块链证书
const managesChain = (id) => { const managesChain = (id) => {
@@ -202,19 +203,19 @@ const shopself = () => {
}) })
} }
export { export {
managesGoodsIndex, managesGoodsIndex,
managesGoodsMint, managesGoodsMint,
managesGoodsBurn, managesGoodsBurn,
managesGoodsCreateBefore, managesGoodsCreateBefore,
managesGoodsCreate, managesGoodsCreate,
managesCategory, managesCategory,
managesGoodsAuth, managesGoodsAuth,
managesGoodsDelete, managesGoodsDelete,
managesGoodsEdit, managesGoodsEdit,
managesCreate, managesCreate,
managesGoodsPut, managesGoodsPut,
managesGoodsExtends, managesGoodsExtends,
managesCoupons, managesCoupons,
mall, mall,
@@ -229,5 +230,5 @@ export {
managesAttestation, managesAttestation,
managesTracedTo, managesTracedTo,
checkmessage, checkmessage,
shopself shopself
} }

View File

@@ -2,8 +2,8 @@
"name" : "链商星球", "name" : "链商星球",
"appid" : "__UNI__1F65101", "appid" : "__UNI__1F65101",
"description" : "安徽星煌,链商星球商家工具", "description" : "安徽星煌,链商星球商家工具",
"versionName" : "1.1.8", "versionName" : "1.1.9",
"versionCode" : 118, "versionCode" : 119,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -160,7 +160,6 @@
"path": "pages/user/order/servicesOrder", "path": "pages/user/order/servicesOrder",
"name": "ServicesOrder", "name": "ServicesOrder",
"style": { "style": {
"enablePullDownRefresh": true,
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "已使用服务类订单", "navigationBarTitleText": "已使用服务类订单",
"app-plus":{ "app-plus":{

View File

@@ -17,7 +17,7 @@
<view class="sku"> <view class="sku">
<span>数量</span> <span>数量</span>
<span> <span>
<u-number-box v-model="params.qty" :min='1' :max='1000' @change='numberBoxChange' /> <u-number-box v-model="params.qty" :min='1' :max='info.stock' @change='numberBoxChange' />
</span> </span>
</view> </view>
</view> </view>
@@ -91,14 +91,8 @@
<script> <script>
import couponTemplate from "@/components/coupon-template/coupon-template-2" import couponTemplate from "@/components/coupon-template/coupon-template-2"
import { import { mallBuyGoods } from '@/apis/interfaces/goods'
mallBuyGoods import { wxPay, aliPay, ebPay } from '@/apis/interfaces/order'
} from '@/apis/interfaces/goods'
import {
wxPay,
aliPay,
ebPay
} from '@/apis/interfaces/order'
export default { export default {
name: 'OrderInfo', name: 'OrderInfo',
components: { components: {
@@ -106,23 +100,19 @@
}, },
data() { data() {
return { return {
// box: { amount : 0,
// min: 1, account : {},
// max: 100 total : 0,
// }, shop : {}, // 店铺信息
amount: 0, info : {}, // 商品详情
account: {}, showCouponList : false, // 默认false不显示优惠券弹窗列表
total: 0, coupon_grant_id : '', // 默认没有选择任何一个优惠券
shop: {}, // 店铺信息 list : [], // 优惠券列表
info: {}, // 商品详情 params : {}, // 上个页面携带过来的参数
showCouponList: false, // 默认false不显示优惠券弹窗列表 remark : '', // 备注
coupon_grant_id: '', // 默认没有选择任何一个优惠券 order_no : '', // 下单成功的id
list: [], // 优惠券列表 selectTypeId : '2', // 微信支付2 支付宝支付3
params: {}, // 上个页面携带过来的参数 coupon_price : '' // 代驾券显示金额,提货券显示什么呢
remark: '', // 备注
order_no: '', // 下单成功的id
selectTypeId: '2', // 微信支付2 支付宝支付3
coupon_price: '' // 代驾券显示金额,提货券显示什么呢
}; };
}, },
@@ -138,22 +128,21 @@
params.coupon_grant_id = this.coupon_grant_id params.coupon_grant_id = this.coupon_grant_id
mallBuyGoods(params, method).then(res => { mallBuyGoods(params, method).then(res => {
if (method === 'get') { if (method === 'get') {
this.amount = res.amount this.amount = res.amount
this.account = res.account this.account = res.account
this.total = res.total this.total = res.total
this.list = res.coupons this.list = res.coupons
this.shop = res.detail[0].shop this.shop = res.detail[0].shop
this.info = res.detail[0].items[0] this.info = res.detail[0].items[0]
this.coupon_price = res.coupon_price this.coupon_price = res.coupon_price
} else { } else {
this.order_no = res.order_no this.order_no = res.order_no
this.nowPay() this.nowPay()
} }
}).catch(err => { }).catch(err => {
this.$refs.uToast.show({ uni.showToast({
title: err.message, title: err.message,
type: 'primary', icon : 'none'
duration: 3000
}) })
}) })
}, },
@@ -268,8 +257,9 @@
if (this.info.is_change) { if (this.info.is_change) {
this.selectTypeId = id this.selectTypeId = id
} else { } else {
this.$refs.uToast.show({ uni.showToast({
title: '当前商品不支持EB支付' title: '当前商品不支持EB支付',
icon : 'none'
}) })
} }
} else if (id === '2') { } else if (id === '2') {

View File

@@ -6,7 +6,7 @@
<view class="content"> <view class="content">
<view class="title nowrap">数字权证</view> <view class="title nowrap">数字权证</view>
<view class="text nowrap">锚定商品{{info.goods.goods_name}}</view> <view class="text nowrap">锚定商品{{info.goods.goods_name}}</view>
<view class="text nowrap">提供企业{{info.company.name}}</view> <view class="text nowrap">供应商{{info.company.name}}</view>
<view class="text nav-goods nowrap" @click="onGoods">查看锚定商品信息<uni-icons type="arrowright" size="12" color="#8b64fd"></uni-icons></view> <view class="text nav-goods nowrap" @click="onGoods">查看锚定商品信息<uni-icons type="arrowright" size="12" color="#8b64fd"></uni-icons></view>
</view> </view>
<view class="info"> <view class="info">

View File

@@ -16,7 +16,7 @@
<view class="content"> <view class="content">
<view class="title nowrap">数字权证<text>{{item.surplus}}/{{item.stock}}</text></view> <view class="title nowrap">数字权证<text>{{item.surplus}}/{{item.stock}}</text></view>
<view class="text nowrap">锚定商品{{item.goods.goods_name}}</view> <view class="text nowrap">锚定商品{{item.goods.goods_name}}</view>
<view class="text nowrap">提供企业{{item.company.name}}</view> <view class="text nowrap">供应商{{item.company.name}}</view>
<view class="text nowrap">转让用户{{item.user.nickname}}</view> <view class="text nowrap">转让用户{{item.user.nickname}}</view>
</view> </view>
<view class="price">{{item.price}}/</view> <view class="price">{{item.price}}/</view>

View File

@@ -1,53 +1,45 @@
<template> <template>
<view class="NumberWeight"> <view class="NumberWeight">
<!-- 订单分类 --> <!-- 订单分类 -->
<view class="nav" > <view class="nav">
<view :class="['nav-item' ,selectNavId === item.id?'nav-item-selected':'']" v-for="(item,index) in navList" <view :class="['nav-item', selectNavId === item.id ? 'nav-item-selected' : '']" v-for="(item, index) in navList" :key="index" @click="selectNav(item.id)">
:key="index" @click="selectNav(item.id)"> {{ item.name }} {{ item.id === 'signed' && count.signed > 0 ? '(' + count.signed + ')' : '' }}
{{item.name}} {{ item.id === 'completed' && count.completed > 0 ? '(' + count.completed + ')' : '' }} {{ item.id === 'init' && count.init > 0 ? '(' + count.init + ')' : '' }}
{{item.id ==='signed' && count.signed >0 ? '('+count.signed + ')':''}} {{ item.id === 'delivered' && count.delivered > 0 ? '(' + count.delivered + ')' : '' }}
{{item.id ==='completed' && count.completed >0 ?'('+count.completed + ')':''}} </view>
{{item.id ==='init' && count.init >0 ?'('+count.init + ')':''}}
{{item.id ==='delivered' && count.delivered >0 ?'('+count.delivered + ')':''}}
</view> </view>
</view> <!-- 有订单列表 -->
<block v-if="lists.length > 0">
<!-- 订单列表 --> <!-- 订单列表 -->
<block v-if="lists.length > 0"> <view class="order-list" v-for="(item, index) in lists" :key="index">
<!-- 订单列表 --> <MallShipmentsTemplate :item="item" />
<view class="order-list" v-for="(item,index) in lists" :key="index"> <view class="actions"><view class="nowPay" @click="goDetail(item.shipment_no)">查看详情</view></view>
<MallShipmentsTemplate :item="item" /> </view>
<view class="actions"> </block>
<view class="nowPay" @click="goDetail(item.shipment_no)" >查看详情</view> <!-- 没有订单列表 -->
</view> <no-list v-if="lists.length === 0" name="no-order" txt="暂无数据~" />
</view> <u-toast ref="uToast" />
</block> </view>
<!-- 没有订单列表 -->
<no-list v-if="lists.length === 0" name='no-order' txt="暂无数据~" />
<!-- <u-toast ref="uToast" /> -->
<u-toast ref="uToast" />
</view>
</template> </template>
<script> <script>
import MallShipmentsTemplate from '@/components/mall-shipments-template/mall-shipments-template' import MallShipmentsTemplate from '@/components/mall-shipments-template/mall-shipments-template';
import { mallShipmentsPostShop , mallShipmentsSign , mallShipmentsCancel } from '@/apis/interfaces/numberWeight' import { mallShipmentsPostShop, mallShipmentsSign, mallShipmentsCancel } from '@/apis/interfaces/numberWeight';
export default { export default {
components: { components: {
MallShipmentsTemplate MallShipmentsTemplate
}, },
data() { data() {
return { return {
lists: [], lists : [],
page:1, page : 1,
total:0, total : 0,
navList: [], navList : [],
type:'',// post 快递单 空为自提单 type : '', // post 快递单 空为自提单
selectNavId: 'signed', selectNavId : 'signed',
count:{},// 订单数量 count : {} // 订单数量
}; };
}, },
onLoad(e) { onLoad(e) {
this.navList = [ this.navList = [
{ {
@@ -58,178 +50,180 @@
name: '已完成', name: '已完成',
id: 'completed' id: 'completed'
} }
] ];
this.selectNavId = 'signed' this.selectNavId = 'signed';
this.getList() this.getList();
}, },
onShow(){ onShow() {
if(uni.getStorageSync('refresh')){ if (uni.getStorageSync('refresh')) {
this.reset() this.reset();
} }
}, },
onUnload() { onUnload() {
uni.setStorageSync('refresh',false) uni.setStorageSync('refresh', false);
}, },
onReachBottom() { onReachBottom() {
if(this.total>this.lists.length){ if (this.total > this.lists.length) {
this.page = this.page + 1 this.page = this.page + 1;
this.getList() this.getList();
}else{ } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '吼吼吼~我是有底的~', title: '吼吼吼~我是有底的~',
duration: 3000 duration: 3000
}) });
} }
}, },
methods: { methods: {
reset(){ reset() {
this.page =1 this.page = 1;
this.total = 0 this.total = 0;
this.lists = [] this.lists = [];
this.getList() this.getList();
uni.setStorageSync('refresh',false) uni.setStorageSync('refresh', false);
}, },
// 选择订单 // 选择订单
selectNav(id) { selectNav(id) {
if (this.selectNavId !== id) { if (this.selectNavId !== id) {
this.selectNavId = id this.selectNavId = id;
this.reset() this.reset();
} }
}, },
// 获取订单列表 // 获取订单列表
getList(){ getList() {
let data = { let data = {
pageSize:4, pageSize: 4,
page:this.page, page: this.page,
state:this.selectNavId state: this.selectNavId
} };
let apiUrl = '' let apiUrl = '';
apiUrl = 'mall/shipments/service' apiUrl = 'mall/shipments/service';
data.channel = 'app' data.channel = 'app';
mallShipmentsPostShop(apiUrl,data).then(res=>{ mallShipmentsPostShop(apiUrl, data)
this.count = res.count .then(res => {
this.lists = this.lists.concat(res.lists.data) this.count = res.count;
this.total = res.lists.page.total this.lists = this.lists.concat(res.lists.data);
}).catch(err=>{ this.total = res.lists.page.total;
this.$refs.uToast.show({
title: err.message,
duration: 3000
}) })
}) .catch(err => {
this.$refs.uToast.show({
title: err.message,
duration: 3000
});
});
}, },
// 查看详情 // 查看详情
goDetail(no){ goDetail(no) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/property/order/servicesOrderInfo?no='+no url: '/pages/property/order/servicesOrderInfo?no=' + no
}) });
} }
} }
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page { page {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.NumberWeight { .NumberWeight {
width: 100%; width: 100%;
min-height: 100vh; min-height: 100vh;
box-sizing: border-box; box-sizing: border-box;
background-color: #F7F7F7; background-color: #f7f7f7;
// 订单nav // 订单nav
.nav { .nav {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
box-sizing: border-box; box-sizing: border-box;
font-size: $title-size*0.95; font-size: $title-size * 0.95;
padding: 0 30rpx; padding: 0 30rpx;
background-color: #fff; background-color: #fff;
color: #666; color: #666;
border-top: solid 20rpx #f7f7f7; border-top: solid 20rpx #f7f7f7;
position: sticky; position: sticky;
top: 0rpx; top: 0rpx;
z-index: 10000; z-index: 10000;
.nav-item { .nav-item {
border-bottom: solid 4rpx #fff; border-bottom: solid 4rpx #fff;
padding: 30rpx 10rpx; padding: 30rpx 10rpx;
} }
.nav-item-selected { .nav-item-selected {
border-bottom: solid 4rpx $mian-color; border-bottom: solid 4rpx $mian-color;
color: $mian-color; color: $mian-color;
} }
} }
// 订单列表 // 订单列表
.order-list { .order-list {
background-color: #fff; background-color: #fff;
border-radius: 20rpx; border-radius: 20rpx;
min-height: 300rpx; min-height: 300rpx;
margin: 30rpx 20rpx 0 20rpx; margin: 30rpx 20rpx 0 20rpx;
padding:30rpx 30rpx 20rpx 30rpx ; padding: 30rpx 30rpx 20rpx 30rpx;
// border-top: solid 4rpx #cacaca; // border-top: solid 4rpx #cacaca;
// 操作信息 // 操作信息
.actions { .actions {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
box-sizing: border-box; box-sizing: border-box;
flex-wrap: wrap; flex-wrap: wrap;
flex: 1; flex: 1;
font-size: 28rpx; font-size: 28rpx;
color: #fff; color: #fff;
border-top: solid 1rpx #EFF4F2; border-top: solid 1rpx #eff4f2;
.nowPay { .nowPay {
padding: 4rpx 20rpx; padding: 4rpx 20rpx;
border-radius: 40rpx; border-radius: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
// background-color: $mian-color; // background-color: $mian-color;
color: #999; color: #999;
border:solid 1rpx #cacaca; border: solid 1rpx #cacaca;
} }
.cancelOrder { .cancelOrder {
padding: 10rpx 30rpx; padding: 10rpx 30rpx;
border-radius: 40rpx; border-radius: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
background-color: #DD524D; background-color: #dd524d;
} }
.logistics { .logistics {
background-color: $mian-color; background-color: $mian-color;
padding: 10rpx 30rpx; padding: 10rpx 30rpx;
border-radius: 40rpx; border-radius: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.sign { .sign {
background-color: #DD524D; background-color: #dd524d;
padding: 10rpx 30rpx; padding: 10rpx 30rpx;
border-radius: 40rpx; border-radius: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.evaluate { .evaluate {
background-color: $mian-color; background-color: $mian-color;
padding: 10rpx 30rpx; padding: 10rpx 30rpx;
border-radius: 40rpx; border-radius: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
} }
} }
} }
</style> </style>

View File

@@ -12,17 +12,14 @@
<image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image> <image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
<view class="partner-cont"> <view class="partner-cont">
<view class="partner-name"> <view class="partner-name">
<view class="partner-nickname"> <view class="partner-nickname">{{item.nickname}}</view>
{{item.nickname}}
</view>
<image v-if="item.identity" class="partner-identity" :src="item.identity.cover" mode="widthFix"></image> <image v-if="item.identity" class="partner-identity" :src="item.identity.cover" mode="widthFix"></image>
</view> </view>
<view class="partner-tel"> <view class="partner-tel">{{item.username}}</view>
{{item.username}}
</view>
</view> </view>
</view> </view>
</view> </view>
<uni-load-more :status="pageMore"></uni-load-more>
</block> </block>
<block v-else> <block v-else>
<view class="list-null"> <view class="list-null">
@@ -40,7 +37,8 @@
return { return {
larer : '', larer : '',
lists : [], lists : [],
pages : {} pageMore : 'more',
page : 1
}; };
}, },
onShow() { onShow() {
@@ -48,20 +46,31 @@
// 获取伙伴列表 // 获取伙伴列表
this.getPartner() this.getPartner()
}, },
onReachBottom(){
if(this.pageMore === 'more'){
this.pageMore = 'loading'
this.page++
this.getPartner()
}
},
methods: { methods: {
// 伙伴列表 // 伙伴列表
getPartner() { getPartner() {
userPartne({ userPartne({
larer: this.larer larer: this.larer,
page : this.page
}).then(res => { }).then(res => {
this.lists = res.users if(this.page === 1) this.lists = []
this.lists = this.lists.concat(res.users.data)
this.page = res.users.page.current
this.pageMore = res.users.page.has_more ? 'more': 'noMore'
}) })
}, },
// tabs // tabs
onTabs(value){ onTabs(value){
if(value == this.larer) return if(value == this.larer) return
this.lists = [] this.page = 1
this.larer = value this.larer = value
this.getPartner() this.getPartner()
} }
@@ -118,6 +127,7 @@
padding: 15rpx 0; padding: 15rpx 0;
font-size: $title-size-lg; font-size: $title-size-lg;
color: $text-gray; color: $text-gray;
box-shadow: 0 0 5rpx 5rpx rgba($color: $border-color, $alpha: .2);
.item{ .item{
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
@@ -130,53 +140,46 @@
// 列表 // 列表
.partner-list{ .partner-list{
margin: calc(#{$padding} - 10rpx);
display: flex;
flex-wrap: wrap;
background-color: #FFFFFF;
.partner-label { .partner-label {
padding: 20rpx; padding: ($padding - 10) $padding;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
border-radius: 4rpx; border-radius: $radius;
width: 100%; margin: $margin;
&::after { background-color: white;
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 100%;
height: 1rpx;
background-color: #f8f8f8;
}
&:last-child::after {
display: none;
}
.partner-avatar { .partner-avatar {
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
border-radius: 50%; border-radius: 50%;
vertical-align: top;
} }
.partner-cont { .partner-cont {
position: absolute; position: absolute;
width: 100%; width: 100%;
left: 0; left: 0;
top: 0; top: 0;
padding: 22rpx 20rpx 20rpx 150rpx; padding: ($padding - 10) $padding ($padding - 10) 150rpx;
box-sizing: border-box; box-sizing: border-box;
.partner-name { .partner-name {
display: flex; padding-top: 10rpx;
margin-bottom: 15rpx; display: flex;
.partner-nickname { line-height: 40rpx;
font-size: 30rpx; .partner-nickname {
font-weight: 600; font-size: 30rpx;
margin-right: 10rpx; font-weight: 600;
} margin-right: 10rpx;
.partner-identity { }
width: 84rpx; .partner-identity {
margin-top: 4rpx; width: 84rpx;
} margin-top: 5rpx;
} margin-left: 5rpx;
vertical-align: middle;
}
}
.partner-tel{
line-height: 40rpx;
color: $text-gray;
}
} }
} }
} }

File diff suppressed because one or more lines are too long