Commit 58cae99b authored by Mac's avatar Mac

1

parent 33888f71
<template>
<view class="Sbox"
:style="{ 'background-image': 'url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1597636248000_978.png)', backgroundSize: '100% 80px' }"
>
<view style="display: flex;flex-direction: row;align-items: center;">
<u-avatar :src="shopData.Logo" size="100" slot="addBtn"></u-avatar>
<view class="shopbox_l_text">
<text style=" font-size: 30rpx;color: #111111;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{shopData.Name}}</text>
<text style=" font-size: 24rpx;color: #878787;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{shopData.Notice}}</text>
</view>
</view>
<button class="fx" open-type="share">
<image
mode="aspectFit"
src="../../static/images/icon/img-share-status.png"
@click="clickHandler(item.link.url)"
style="height:100%;width: 100%;"
/>
</button>
</view>
</template>
<script>
export default {
props: ["ad"],
data() {
return {
shopData:{}
}
},
created() {
this.getSmallShopById()
},
methods:{
getSmallShopById(){
let Id = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserSmallShopId: 0;
this.request2(
{
url: '/api/AppletUser/GetSmallShopById',
data: {
// Id: Id
Id: 5
}
},
res => {
if (res.resultCode == 1) {
this.shopData = res.data
}
}
);
}
},
}
</script>
<style>
.Sbox{
width: 100%;
height: 80px;
padding: 0 30px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.Sbox .shopbox_l_text{
display: flex;
flex-direction: column;
justify-content: space-around;
width: 180px;
height: 100rpx;
margin-left: 10px;
}
.Sbox .fx{
width: 65px;
height: 27px;
border: none;
outline: none;
padding: 0;
margin: 0;
line-height: unset;
}
</style>
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
<addialog v-if="d.id == 'modal' && d.data.opened" :ads="d.data" :key="di"></addialog> <addialog v-if="d.id == 'modal' && d.data.opened" :ads="d.data" :key="di"></addialog>
<quicknav v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" :navs="d.data" :key="di"></quicknav> <quicknav v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" :navs="d.data" :key="di"></quicknav>
<pingtuan v-if="d.id == 'pintuan'" :goods="d.data" :key="di"></pingtuan> <pingtuan v-if="d.id == 'pintuan'" :goods="d.data" :key="di"></pingtuan>
<shopinfo v-if="d.id == 'shop-info' " :goods="d.data" :key="di"></shopinfo>
<!-- <shopinfo v-if='di==1' :goods="d.data" :key="di"></shopinfo> -->
</template> </template>
</view> </view>
</template> </template>
...@@ -102,7 +105,9 @@ import addialog from "@/components/addialog/index"; ...@@ -102,7 +105,9 @@ import addialog from "@/components/addialog/index";
import quicknav from "@/components/quicknav/index"; import quicknav from "@/components/quicknav/index";
import coupon from "@/components/coupons/coupons"; import coupon from "@/components/coupons/coupons";
import pingtuan from "@/components/pingtuan/index"; import pingtuan from "@/components/pingtuan/index";
import shopinfo from "@/components/shopinfo/shopinfo";
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
export default { export default {
data() { data() {
return { return {
...@@ -147,6 +152,7 @@ export default { ...@@ -147,6 +152,7 @@ export default {
quicknav, quicknav,
coupon, coupon,
pingtuan, pingtuan,
shopinfo,
auth auth
}, },
onLoad(options) { onLoad(options) {
......
...@@ -118,7 +118,12 @@ ...@@ -118,7 +118,12 @@
</view> </view>
</view> </view>
<view style="width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background-image: linear-gradient( to right,#FF8585,#ED4353);text-align: center;line-height: 30px;" <view style="width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background-image: linear-gradient( to right,#FF8585,#ED4353);text-align: center;line-height: 30px;"
@click="goUrl('/pages/microShop/wdCase')" @click="goUrl('/pages/microShop/wdCase')" v-if="SmallShops.UserInfo.CommissionWithdrawal>0"
>
<Text>{{SmallShops.CustomModel.WithdrawalText}}</Text>
</view>
<view style="width: 60px;height: 30px;border-radius: 15px;color: #fff; margin-right: -30px;background: #ababab;text-align: center;line-height: 30px;"
v-if="SmallShops.UserInfo.CommissionWithdrawal<=0"
> >
<Text>{{SmallShops.CustomModel.WithdrawalText}}</Text> <Text>{{SmallShops.CustomModel.WithdrawalText}}</Text>
</view> </view>
......
...@@ -190,6 +190,7 @@ export default { ...@@ -190,6 +190,7 @@ export default {
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.userinfo();
}, },
onLoad() { onLoad() {
this.navHeight = this.$navHeight - 2; this.navHeight = this.$navHeight - 2;
...@@ -229,7 +230,7 @@ export default { ...@@ -229,7 +230,7 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '用户中心' title: '用户中心'
}); });
this.userinfo();
}, },
onShow() { onShow() {
this.userinfo(); this.userinfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment