123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <view>
- <view v-if="list.length > 0">
- <view class="display" v-for="(item,index) in list">
- <view class="store-content" @click="handleClick(item)">
- <image :src="image(item.goodsPic)" mode="" class="store-image"></image>
- <view class="text-content">
- <view class="font-thirty-two font-color2">
- {{item.goodsName}}
- </view>
- <view class="font-twenty font-color5" style="margin-top: 20rpx;">
- 类别:商品信息修改
- </view>
- </view>
- </view>
- </view>
- </view>
- <view v-else style="padding-top: 200rpx;">
- <u-empty text="暂无数据" mode="list"></u-empty>
- </view>
- <u-toast ref="uToast" />
- </view>
- </template>
- <script>
- import server from "@/api/index";
- import http from '@/common/http.js'
- export default {
- data() {
- return {
- id: null,
- list: [],
- userInfo: {}
- }
- },
- mounted() {
- this.userInfo = uni.getStorageSync('userInfo');
- this.getList();
- },
- methods: {
- showMOdel(){
- this.userInfo = uni.getStorageSync('userInfo');
- this.getList();
- },
- image(e) {
- return http.webUrl + e
- },
- getList(){
- console.log('===',this.userInfo)
- server.getShenGoodsList({goodsStatus :'1', shopsId: this.userInfo.nickName}).then(res =>{
- this.list = [];
- if(res){
- this.list = res
- }
- })
- },
- handleClick(item){
- uni.navigateTo({
- url: '/pages/manage/modifyInfo/addToOrder?id=' + item.goodsId + '&flag="false"'
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .display {
- margin: 30rpx 30rpx 0;
- padding: 30rpx;
- background: #FFFFFF;
- opacity: 1;
- border-radius: 8rpx;
- .store-content {
- display: flex;
- align-items: center;
- padding-bottom: 30rpx;
- border-bottom: 2rpx solid #DEDEDE;
- .store-image {
- width: 220rpx;
- height: 150rpx;
- }
- .text-content {
- margin-left: 30rpx;
- }
- }
- }
- </style>
|