问题修复
This commit is contained in:
64
pages/user/member/czzx-shop-list.vue
Normal file
64
pages/user/member/czzx-shop-list.vue
Normal file
@@ -0,0 +1,64 @@
|
||||
<template>
|
||||
<view class="box">
|
||||
<up-search v-model="query.shopName" @search="getData" @custom="getData"></up-search>
|
||||
<view class="u-m-t-32">
|
||||
<view class="u-flex list-item" v-for="(item,index) in list" :key="index">
|
||||
<up-avatar size="84rpx" shape="square" round="16rpx" :src="item.logo"></up-avatar>
|
||||
<view class=" u-p-l-16 color-333 font-14">{{item.shopName}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
shopList
|
||||
} from '@/common/api/market/recharge.js'
|
||||
import {
|
||||
onMounted,
|
||||
reactive,
|
||||
ref
|
||||
} from 'vue';
|
||||
|
||||
const list = ref([])
|
||||
const query = reactive({
|
||||
shopName: ''
|
||||
})
|
||||
async function getData() {
|
||||
const res = await shopList(query)
|
||||
if (res) {
|
||||
list.value = res || []
|
||||
}
|
||||
}
|
||||
|
||||
function toDuihuan() {
|
||||
uni.showToast({
|
||||
title: '待开放!',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
function toDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/member/billDetails?type=2&shopId=' + item.shopId
|
||||
})
|
||||
}
|
||||
onMounted(getData)
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
padding: 32rpx 28rpx;
|
||||
}
|
||||
|
||||
.color-1 {
|
||||
color: #FF6300;
|
||||
}
|
||||
|
||||
.list-item {
|
||||
align-items: center;
|
||||
padding: 36rpx 0;
|
||||
border-bottom: 1px solid #EDEDED;
|
||||
}
|
||||
</style>
|
||||
@@ -85,7 +85,7 @@
|
||||
<view>充值说明</view>
|
||||
<view class="u-m-t-16">
|
||||
<text>适用门店</text>
|
||||
<text class="color2 u-m-l-28">全国门店通用 {{'>'}} </text>
|
||||
<text class="color2 u-m-l-28" @click="toShopList">全国门店通用 {{'>'}} </text>
|
||||
</view>
|
||||
<view class="u-m-t-16">
|
||||
<text>有效期限</text>
|
||||
@@ -138,6 +138,12 @@
|
||||
import {
|
||||
pay
|
||||
} from '@/utils/pay.js'
|
||||
|
||||
function toShopList(){
|
||||
uni.navigateTo({
|
||||
url:'/pages/user/member/czzx-shop-list'
|
||||
})
|
||||
}
|
||||
|
||||
function couponNum(list) {
|
||||
return list.reduce((prve, cur) => {
|
||||
|
||||
Reference in New Issue
Block a user