Răsfoiți Sursa

供货商模拟数据

jiangfeng 5 ani în urmă
părinte
comite
f030328d6e
1 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 6 6
      ghsApp/src/admin/ghs/shop.vue

+ 6 - 6
ghsApp/src/admin/ghs/shop.vue

@@ -37,11 +37,11 @@
 <template>
 	<div class="app-content">
 			<view class="list-box">
-				<view class="flex list">
-						<image src="https://img.hzghd.com/ghs/home/kd.png"></image>
+				<view class="flex list" v-for="res in list">
+						<image :src="res.img"></image>
 					<view class="list-msg">
-							<view>花卉名称</view>
-							<text>累积消费2000</text>
+							<view>{{res.name}}</view>
+							<text>累积消费{{res.money}}</text>
 					</view>
 				</view>
 			</view>
@@ -54,7 +54,7 @@
 		name: 'ghs-shop',
 		data() {
 			return {
-				
+				list:[],
 			}
 		},
 		onLoad() {
@@ -65,7 +65,7 @@
 		methods: {
 			_getList(){
 				getList({ type: 0 }).then(res => {
-					console.log(res);
+					this.list = res
 				});
 			},
 		}