优化页面
This commit is contained in:
parent
a3ad6533e9
commit
f0a69d616a
@ -64,11 +64,15 @@
|
||||
mixins: [MescrollMixin, MescrollMoreItemMixin],
|
||||
data() {
|
||||
return {
|
||||
downOption: {
|
||||
auto: false
|
||||
},
|
||||
upOption: {
|
||||
noMoreSize: 4, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
|
||||
auto: false,
|
||||
noMoreSize: 4,
|
||||
empty: {
|
||||
icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/order_null.png',
|
||||
tip: '暂无商品', // 提示
|
||||
icon: `${this.$aliOSS}uniapp/order_null.png`,
|
||||
tip: '暂无订单~',
|
||||
fixed: true
|
||||
}
|
||||
},
|
||||
@ -88,14 +92,14 @@
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
created() {
|
||||
uni.$on("refresh_local_shop_list", () => {
|
||||
this.refresh()
|
||||
})
|
||||
},
|
||||
destroyed() {
|
||||
uni.$off("refresh_local_shop_list")
|
||||
},
|
||||
// created() {
|
||||
// uni.$on("refresh_local_shop_list", () => {
|
||||
// this.refresh()
|
||||
// })
|
||||
// },
|
||||
// destroyed() {
|
||||
// uni.$off("refresh_local_shop_list")
|
||||
// },
|
||||
methods: {
|
||||
// 排序
|
||||
sortChange(i) {
|
||||
|
||||
@ -500,7 +500,7 @@
|
||||
this.successPopup = !this.successPopup
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/bundle_b/pages/subsidy_shop/subsidy_shop'
|
||||
url: '/bundle_b/pages/subsidy_shop/subsidy_shop?user_id=' + this.user_id
|
||||
})
|
||||
}, 500)
|
||||
},
|
||||
|
||||
@ -57,7 +57,11 @@
|
||||
},
|
||||
current: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
userId: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -106,7 +110,8 @@
|
||||
page_size: pageSize,
|
||||
page_no: pageNum,
|
||||
type: orderType,
|
||||
state: this.index
|
||||
state: this.index,
|
||||
user_id: this.userId
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
<view class="unreadBlock" style="position: relative;">
|
||||
<tabs :current="active" @change="changeShow" bar-width="60" :is-scroll="false">
|
||||
<tab v-for="(item, index) in order" :key="index" :name="item.name" :num="item.num">
|
||||
<subsidy-list :i="index" :index="active" :current="currentTab" @changeUnreadBillions="changeUnreadBillions"></subsidy-list>
|
||||
<subsidy-list :i="index" :index="active" :current="currentTab" :userId="userId" @changeUnreadBillions="changeUnreadBillions"></subsidy-list>
|
||||
</tab>
|
||||
</tabs>
|
||||
</view>
|
||||
@ -162,10 +162,15 @@
|
||||
payInfo: '',
|
||||
payMoney: '',
|
||||
isWithdrawl: false,
|
||||
withdrawlBillionId: 0
|
||||
withdrawlBillionId: 0,
|
||||
userId: 0
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if(options?.user_id) {
|
||||
this.userId = options.user_id
|
||||
}
|
||||
|
||||
this.changeShow(0);
|
||||
this.getBillionsWithdrawConfigFun();
|
||||
uni.$on('refreshBillionsWithdrawConfigFun', this.getBillionsWithdrawConfigFun)
|
||||
@ -332,13 +337,15 @@
|
||||
})
|
||||
|
||||
data.money = data.withdrawl_money
|
||||
|
||||
let result = ''
|
||||
if (this.isWithdrawl) {
|
||||
const result = await advance({
|
||||
result = await advance({
|
||||
billions_id: this.withdrawlBillionId,
|
||||
money: data.money
|
||||
});
|
||||
} else {
|
||||
const result = await applyBillionsWithdrawl(data);
|
||||
result = await applyBillionsWithdrawl(data);
|
||||
}
|
||||
|
||||
if (result.code == 1) {
|
||||
|
||||
@ -17,7 +17,7 @@ const IS_H5 = false
|
||||
/** S API BaseURL **/
|
||||
const baseURLMap = {
|
||||
// 开发环境
|
||||
development: 'https://dlh.hainings.com',
|
||||
development: 'https://dlh.stnav.com',
|
||||
// 生产环境
|
||||
production: IS_H5 ? location.origin : 'https://dlh.hainings.com',
|
||||
//app https://dlh.zjeloong.com
|
||||
|
||||
@ -1010,7 +1010,7 @@
|
||||
"navigationBarTitleText": "我的返补"
|
||||
},
|
||||
"meta": {
|
||||
"auth": true
|
||||
"auth": false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -316,7 +316,7 @@
|
||||
}
|
||||
.capsule-tips::after {
|
||||
content: '';
|
||||
border-bottom: 14rpx solid rgba(0, 0, 0, 0.7);
|
||||
border-bottom: 14rpx solid rgba(0, 0, 0, .7);
|
||||
border-right: 14rpx solid transparent;
|
||||
border-left: 14rpx solid transparent;
|
||||
position: absolute;
|
||||
@ -327,7 +327,7 @@
|
||||
.cate-btn {
|
||||
padding: 12rpx 16rpx 12rpx 20rpx;
|
||||
border-radius: 60rpx 0 0 60rpx;
|
||||
background-color: rgba(256, 256, 256, .4);
|
||||
background-color: rgba(0, 0, 0, .4);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user