This commit is contained in:
cun-nan 2024-09-25 16:56:41 +08:00
parent cfb12b40e0
commit c56a065fa1
3 changed files with 12 additions and 9 deletions

View File

@ -8,7 +8,7 @@
</view> </view>
<!-- 顶部区域 --> <!-- 顶部区域 -->
<view class="box-xianze" v-for="(item,index) in dataList" :key="index"> <view class="box-xianze" v-for="(item,index) in dataList" :key="index">
<view class=""> <view class="" @click="choose(item)">
<view style="display: flex;align-items: center;margin-bottom: 5px;"> <view style="display: flex;align-items: center;margin-bottom: 5px;">
<view class="">{{item.name || '--'}}</view> <view class="">{{item.name || '--'}}</view>
<view style="margin: 0 10px;" v-if="item.sex==0"> 先生</view> <view style="margin: 0 10px;" v-if="item.sex==0"> 先生</view>
@ -97,7 +97,6 @@
if (item.ifDefault == 1) { if (item.ifDefault == 1) {
item.checked = true item.checked = true
} }
this.$set(item, 'checked', item.checked); //
}) })
console.log(res, this.dataList, 98); console.log(res, this.dataList, 98);
this.$forceUpdate() this.$forceUpdate()

View File

@ -9,7 +9,8 @@
<view class="f-box" v-for="(item,index) in integralGiftList" :key="index" @click="goDetails(item)"> <view class="f-box" v-for="(item,index) in integralGiftList" :key="index" @click="goDetails(item)">
<view class="f-top">{{item.storeName}}可用</view> <view class="f-top">{{item.storeName}}可用</view>
<view class="f-bs"> <view class="f-bs">
<image v-if="item.coverImage" :src="baseUrl+item.coverImage" mode="aspectFit" style="width: 60px; height: 60px; "></image> <image v-if="item.coverImage" :src="baseUrl+item.coverImage" mode="aspectFit"
style="width: 60px; height: 60px; "></image>
<image v-else src="../../static/logo.png" style="width: 60px; height: 60px; "></image> <image v-else src="../../static/logo.png" style="width: 60px; height: 60px; "></image>
<view class="r-box"> <view class="r-box">
<view class=""> <view class="">
@ -18,7 +19,9 @@
<view class="q_">兑换券</view> <view class="q_">兑换券</view>
</view> </view>
<view class=""> <view class="">
<view class="an_">100积分</view> <view class="an_">
{{item.exchangePoints}}积分
</view>
<u-line-progress :percentage="50" :showText="false" height="6" <u-line-progress :percentage="50" :showText="false" height="6"
activeColor="#FA6400"></u-line-progress> activeColor="#FA6400"></u-line-progress>
<view class="hui_">券已领70%</view> <view class="hui_">券已领70%</view>
@ -59,8 +62,8 @@
page: 1, page: 1,
pageSize: 30 pageSize: 30
}, },
integralGiftList:[], integralGiftList: [],
total:0 total: 0
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -106,7 +109,7 @@
if (res.code == 200) { if (res.code == 200) {
this.integralGiftList = res.data.records this.integralGiftList = res.data.records
this.total = res.data.total this.total = res.data.total
console.log(res,100); console.log(res, 100);
} }
}) })
}, },

View File

@ -132,7 +132,7 @@
allAmout: 0, allAmout: 0,
orderInfo: {}, orderInfo: {},
addrInfo: { addrInfo: {
address: '' name:''
}, },
appltType: uni.getStorageSync("appltType"), appltType: uni.getStorageSync("appltType"),
shippingType: '', shippingType: '',
@ -168,13 +168,14 @@
}, },
onShow() { onShow() {
uni.$on('chooseAddr', (data) => { uni.$on('chooseAddr', (data) => {
this.addrInfo = data this.addrInfo = data
}) })
uni.$emit('unChooseAddr') uni.$emit('unChooseAddr')
// //
if (!this.addrInfo) { if (!this.addrInfo.name ) {
// //
this.getAddress() this.getAddress()
} }