代客下单问题修复,积分上传问题修复
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!-- 账单明细 -->
|
||||
<view style="padding-bottom: 40rpx;">
|
||||
<up-navbar bgColor="transparent" title="明细" @leftClick="back"></up-navbar>
|
||||
<view class="bild" >
|
||||
<view class="bild">
|
||||
<view class="bg">
|
||||
<image class="image" src="/static/czzx_header_bg.png" mode=""></image>
|
||||
</view>
|
||||
@@ -12,7 +12,7 @@
|
||||
</view>
|
||||
<view class="bildRight">
|
||||
<text>我的积分</text>
|
||||
<view>{{shopUserInfo.accountPoints||0}}</view>
|
||||
<view>{{shopUserInfo.pointsUser?shopUserInfo.pointsUser.pointBalance:0}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
@@ -70,7 +70,7 @@
|
||||
<view v-else>
|
||||
{{item.content}}
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="listStyle_left">
|
||||
<view class="listrigth color-333 font-14">
|
||||
@@ -107,9 +107,10 @@
|
||||
reactive,
|
||||
onMounted
|
||||
} from 'vue'
|
||||
|
||||
|
||||
import {
|
||||
onReachBottom,onLoad
|
||||
onReachBottom,
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app'
|
||||
|
||||
import {
|
||||
@@ -120,8 +121,8 @@
|
||||
APIusershopInfodetail,
|
||||
APIshopUserInfo
|
||||
} from '@/common/api/member.js'
|
||||
|
||||
function back(){
|
||||
|
||||
function back() {
|
||||
uni.navigateBack()
|
||||
}
|
||||
const formData = reactive({
|
||||
@@ -154,7 +155,7 @@
|
||||
size: formData.form.size,
|
||||
// status: formData.form.status,
|
||||
shopId: formData.shopId,
|
||||
id:formData.id
|
||||
id: formData.id
|
||||
})
|
||||
}
|
||||
if (res.totalPage == 0 || res.totalPage == 1 && res.totalRow <= 10) {
|
||||
@@ -200,28 +201,29 @@
|
||||
onReachBottom(() => {
|
||||
getlist()
|
||||
})
|
||||
|
||||
const shopUserInfo=reactive({})
|
||||
async function getShopUserInfo(){
|
||||
const res=await APIshopUserInfo({
|
||||
|
||||
const shopUserInfo = reactive({})
|
||||
async function getShopUserInfo() {
|
||||
const res = await APIshopUserInfo({
|
||||
shopId: options.shopId
|
||||
})
|
||||
if(res){
|
||||
Object.assign(shopUserInfo,res)
|
||||
if (res) {
|
||||
Object.assign(shopUserInfo, res)
|
||||
formData.id =res.pointsUser?res.pointsUser.id:''
|
||||
formData.shopId =res.pointsUser?res.pointsUser.shopId:''
|
||||
}
|
||||
}
|
||||
const options=reactive({})
|
||||
onLoad((opt)=>{
|
||||
Object.assign(options,opt)
|
||||
console.log('options',options);
|
||||
const options = reactive({})
|
||||
onLoad(async (opt) => {
|
||||
Object.assign(options, opt)
|
||||
console.log('options', options);
|
||||
formData.shopId = options.shopId
|
||||
formData.active = options.type
|
||||
formData.id=options.id||''
|
||||
formData.id = options.id || ''
|
||||
console.log(formData.info)
|
||||
await getShopUserInfo()
|
||||
getlist()
|
||||
getShopUserInfo()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@@ -231,19 +233,22 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
position:relative;
|
||||
.bg{
|
||||
position:absolute;
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
bottom:0;
|
||||
z-index:-1;
|
||||
.image{
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
|
||||
.bg {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.bildLeft,
|
||||
.bildRight {
|
||||
font-weight: 400;
|
||||
@@ -261,18 +266,20 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
|
||||
.bottom {
|
||||
background-color: rgba(255, 255, 255, .3);
|
||||
padding: 40rpx 28rpx 0 28rpx;
|
||||
transform: translateY(-140rpx);
|
||||
border-radius: 74rpx 74rpx 0 0;
|
||||
}
|
||||
|
||||
.navTop {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
color: #333;
|
||||
|
||||
|
||||
font-size: 28rpx;
|
||||
|
||||
.fonts {
|
||||
|
||||
Reference in New Issue
Block a user