|
@@ -1,113 +1,90 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="latest-content_box">
|
|
<view class="latest-content_box">
|
|
|
- <view class="shop-list_box" v-if="showGlInfo == 0">
|
|
|
|
|
|
|
+ <view class="shop-list_box" v-if="showGlInfo == 0">
|
|
|
|
|
|
|
|
- <block v-if="globalLoginStyle == 0">
|
|
|
|
|
- <view style="width:100vw;height:500upx;display:flex;align-items:center;justify-content:center;">
|
|
|
|
|
- <button class="admin-button-com big blue" style="border:none;" @click="pageTo({url:'/pages/login/index'})">点我登录</button>
|
|
|
|
|
- </view>
|
|
|
|
|
- </block>
|
|
|
|
|
- <block v-else>
|
|
|
|
|
-
|
|
|
|
|
- <view class="ghs_list_page flex-col" v-if="!$util.isEmpty(list)">
|
|
|
|
|
-
|
|
|
|
|
- <view style="background-color:white;margin-bottom:20upx;display: flex;justify-content: space-around;">
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">修改密码</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">提建议</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">我的地址</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">采购统计</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="logout()">退出</button>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="ghs_list_area flex-col justify-end">
|
|
|
|
|
|
|
+ <block v-if="loginStyle == 0">
|
|
|
|
|
+ <view style="width:100vw;height:500upx;display:flex;align-items:center;justify-content:center;">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="border:none;" @click="pageTo({url:'/pages/login/index'})">点我登录</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block v-else>
|
|
|
|
|
|
|
|
- <view class="ghs_box flex-col justify-end" v-for="item in list" :key="item.id">
|
|
|
|
|
- <view class="image-text_7 flex-row justify-between" @click.stop="bug(item)">
|
|
|
|
|
- <view class="section_1 flex-col">
|
|
|
|
|
- <image class="logo" :src="item.smallAvatar" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="text-group_7 flex-col justify-between">
|
|
|
|
|
- <text class="text_8">{{item.name}}</text>
|
|
|
|
|
- <text class="text_9">{{item.address}}{{item.floor}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="box_4 flex-col"></view>
|
|
|
|
|
- <view class="box_9">
|
|
|
|
|
- <view class="tag_2" @click="showTip()"> <text>待结订单</text> </view>
|
|
|
|
|
- <view class="tag_2" @click="showTip()"> <text>结账记录</text> </view>
|
|
|
|
|
- <view class="tag_2" @click="getBuyList()"> <text>买花记录</text> </view>
|
|
|
|
|
- <view class="tag_2" @click="getMore(item)"> <text>更多</text> </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
- <block v-if="Number(item.balance)>0">
|
|
|
|
|
- <view class="box_6 flex-row">
|
|
|
|
|
- <view class="show_clear_area flex-row justify-between">
|
|
|
|
|
- <text class="waite_clear_order" style="color:#3385ff;">
|
|
|
|
|
- <text>可用余额 ¥{{ item.balance ? parseFloat(item.balance) : 0 }}</text>
|
|
|
|
|
- </text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </block>
|
|
|
|
|
|
|
+ <view class="ghs_list_page flex-col" v-if="!$util.isEmpty(list)">
|
|
|
|
|
|
|
|
- <view class="button_4 flex-col" @click.stop="bug(item)"><text class="text_13">买花</text></view>
|
|
|
|
|
- <view class="button_6 flex-col" @click.stop="recharge(item)" v-if="item.rechargeWeal != 0"><text class="text_13">充值</text></view>
|
|
|
|
|
|
|
+ <view style="background-color:white;margin-bottom:20upx;">
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:4upx;padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">修改密码</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:4upx;padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">改进建议</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:4upx;padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">我的地址</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:4upx;padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="">采购统计</button>
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:4upx;padding-top:18upx;padding-bottom:18upx;border:none;margin-top:10upx;" @click="logout()">退出登录</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="ghs_list_area flex-col justify-end">
|
|
|
|
|
|
|
|
|
|
+ <view class="ghs_box flex-col justify-end" v-for="item in list" :key="item.id">
|
|
|
|
|
+ <view class="image-text_7 flex-row justify-between" @click.stop="bug(item)">
|
|
|
|
|
+ <view class="section_1 flex-col">
|
|
|
|
|
+ <image class="logo" :src="item.smallAvatar" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="text-group_7 flex-col justify-between">
|
|
|
|
|
+ <text class="text_8">{{item.name}}</text>
|
|
|
|
|
+ <text class="text_9">{{item.address}}{{item.floor}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else>
|
|
|
|
|
- <text style="margin-top:200upx;margin-left:80upx;font-size:30upx;font-weight:bold;">暂无花店</text>
|
|
|
|
|
|
|
+ <view class="box_4 flex-col"></view>
|
|
|
|
|
+ <view class="box_9">
|
|
|
|
|
+ <view class="tag_2" @click="showTip()"> <text>待结订单</text> </view>
|
|
|
|
|
+ <view class="tag_2" @click="showTip()"> <text>结账记录</text> </view>
|
|
|
|
|
+ <view class="tag_2" @click="getBuyList()"> <text>买花记录</text> </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="button_4 flex-col" @click.stop="bug(item)"><text class="text_13">买花</text></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- </block>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="app-main app-content" v-else>
|
|
|
|
|
- <app-swiper :list="ad" />
|
|
|
|
|
- <view class="shop-wrap">
|
|
|
|
|
- <view class="shop-tit">花卉宝</view>
|
|
|
|
|
- <view>厦门市中花汇信息有限公司,成立于2015年,目前旗下有销花宝、花卉宝和花掌柜三个品牌,公司致力于帮助花店更轻松高效管理花店。</view>
|
|
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <text style="margin-top:200upx;margin-left:80upx;font-size:30upx;font-weight:bold;">暂无花店</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="list-content">
|
|
|
|
|
- <tui-list-view class="tui-list-view">
|
|
|
|
|
- <tui-list-cell :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
- <view class="list-wrap">
|
|
|
|
|
- <view class="list-label">营业时间</view>
|
|
|
|
|
- <view class="list-val">{{ shop.openTime || '08:00-22:00' }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
- <tui-list-cell @click="phoneCall" :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
- <view class="list-wrap">
|
|
|
|
|
- <view class="list-label">联系电话</view>
|
|
|
|
|
- <view class="list-val">{{ shop.telephone || '15280215347' }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="list-icon">
|
|
|
|
|
- <i class="iconfont iconditu" style="font-size:36upx;" ></i>
|
|
|
|
|
- </view>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
- <tui-list-cell @click="goNavBtn" :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
- <view class="list-wrap">
|
|
|
|
|
- <view class="list-label">公司地址</view>
|
|
|
|
|
- <view class="list-val">厦门市软件园二期夜光汇2号楼521室</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="list-icon">
|
|
|
|
|
- <i class="iconfont icondianhua" style="font-size:36upx;" ></i>
|
|
|
|
|
- </view>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
- </tui-list-view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
- <uni-popup ref="toShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
|
|
|
|
|
- <view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
|
|
- <view style="width:94vw;margin-top:8upx;"><button @click="rechargeChange()">充值记录</button></view>
|
|
|
|
|
- <view style="width:94vw;margin-top:8upx;"><button @click="balanceChange()">余额变动记录</button></view>
|
|
|
|
|
- <view style="width:94vw;margin-top:8upx;"><button @click="bpSj()">等级变动记录</button></view>
|
|
|
|
|
- <view style="width:94vw;margin-top:50upx;"><button @click="closeToShow()">取消</button></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </uni-popup>
|
|
|
|
|
|
|
+ </block>
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="app-main app-content" v-else>
|
|
|
|
|
+ <app-swiper :list="ad" />
|
|
|
|
|
+ <view class="shop-wrap">
|
|
|
|
|
+ <view class="shop-tit">花卉宝</view>
|
|
|
|
|
+ <view>厦门市中花汇信息有限公司,成立于2015年,目前旗下有销花宝、花卉宝和花掌柜三个品牌,公司致力于帮助花店更轻松高效管理花店。</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="list-content">
|
|
|
|
|
+ <tui-list-view class="tui-list-view">
|
|
|
|
|
+ <tui-list-cell :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
+ <view class="list-wrap">
|
|
|
|
|
+ <view class="list-label">营业时间</view>
|
|
|
|
|
+ <view class="list-val">{{ shop.openTime || '08:00-22:00' }}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+ <tui-list-cell @click="phoneCall" :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
+ <view class="list-wrap">
|
|
|
|
|
+ <view class="list-label">联系电话</view>
|
|
|
|
|
+ <view class="list-val">{{ shop.telephone || '15280215347' }}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="list-icon">
|
|
|
|
|
+ <i class="iconfont iconditu" style="font-size:36upx;" ></i>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+ <tui-list-cell @click="goNavBtn" :lineLeft="false" :lineRight="false" class="tui-list" >
|
|
|
|
|
+ <view class="list-wrap">
|
|
|
|
|
+ <view class="list-label">公司地址</view>
|
|
|
|
|
+ <view class="list-val">厦门市软件园二期夜光汇2号楼521室</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="list-icon">
|
|
|
|
|
+ <i class="iconfont icondianhua" style="font-size:36upx;" ></i>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+ </tui-list-view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -129,7 +106,8 @@ export default {
|
|
|
list: [],
|
|
list: [],
|
|
|
showGlInfo: 0,
|
|
showGlInfo: 0,
|
|
|
ad:[{"img":`${this.$constant.imgUrl}/logo2.jpg?v=5`}],
|
|
ad:[{"img":`${this.$constant.imgUrl}/logo2.jpg?v=5`}],
|
|
|
- currentHd:{}
|
|
|
|
|
|
|
+ //0没有登录 1有登录
|
|
|
|
|
+ loginStyle :0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -138,30 +116,23 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
loginInfo(newVal) {
|
|
loginInfo(newVal) {
|
|
|
if(!this.$util.isEmpty(newVal)){
|
|
if(!this.$util.isEmpty(newVal)){
|
|
|
- this.globalLoginStyle = 1
|
|
|
|
|
|
|
+ this.loginStyle = 1
|
|
|
}else{
|
|
}else{
|
|
|
- this.globalLoginStyle = 0
|
|
|
|
|
|
|
+ this.loginStyle = 0
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShow () {
|
|
onShow () {
|
|
|
if(!this.$util.isEmpty(this.loginInfo)){
|
|
if(!this.$util.isEmpty(this.loginInfo)){
|
|
|
- this.globalLoginStyle = 1
|
|
|
|
|
|
|
+ this.loginStyle = 1
|
|
|
}else{
|
|
}else{
|
|
|
- this.globalLoginStyle = 0
|
|
|
|
|
|
|
+ this.loginStyle = 0
|
|
|
}
|
|
}
|
|
|
this.getShopList()
|
|
this.getShopList()
|
|
|
},
|
|
},
|
|
|
onLoad () {
|
|
onLoad () {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- closeToShow(){
|
|
|
|
|
- this.$refs.toShowMore.close()
|
|
|
|
|
- },
|
|
|
|
|
- getMore(info){
|
|
|
|
|
- this.currentHd = info
|
|
|
|
|
- this.$refs.toShowMore.open('top')
|
|
|
|
|
- },
|
|
|
|
|
logout(){
|
|
logout(){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认退出?'},() => {
|
|
that.$util.confirmModal({content:'确认退出?'},() => {
|
|
@@ -188,10 +159,7 @@ export default {
|
|
|
this.$msg('开发中')
|
|
this.$msg('开发中')
|
|
|
},
|
|
},
|
|
|
bug(item){
|
|
bug(item){
|
|
|
- this.pageTo({ url:'/pages/item/item?account='+item.shopId+'&hdId='+item.id})
|
|
|
|
|
- },
|
|
|
|
|
- recharge(item){
|
|
|
|
|
- this.pageTo({ url:'/pages/member/recharge?account='+item.shopId+'&id='+item.id+'&salt='+item.salt})
|
|
|
|
|
|
|
+ this.pageTo({ url:'/pages/item/item?account='+item.shopId})
|
|
|
},
|
|
},
|
|
|
init () {
|
|
init () {
|
|
|
this.getShopList()
|
|
this.getShopList()
|
|
@@ -367,19 +335,19 @@ export default {
|
|
|
margin-top: 40upx;
|
|
margin-top: 40upx;
|
|
|
}
|
|
}
|
|
|
.box_9 {
|
|
.box_9 {
|
|
|
- height: 70upx;
|
|
|
|
|
- padding: 23upx 0 22upx 0upx;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: space-around;
|
|
|
|
|
|
|
+ height: 65upx;
|
|
|
|
|
+ padding: 23upx 0 22upx 30upx;
|
|
|
.tag_2 {
|
|
.tag_2 {
|
|
|
background-color: rgba(255, 255, 255, 1);
|
|
background-color: rgba(255, 255, 255, 1);
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
- height: 65upx;
|
|
|
|
|
- line-height:65upx;
|
|
|
|
|
|
|
+ height: 60upx;
|
|
|
|
|
+ line-height:60upx;
|
|
|
border: 2px solid rgba(221, 221, 221, 1);
|
|
border: 2px solid rgba(221, 221, 221, 1);
|
|
|
color: rgba(51, 51, 51, 1);
|
|
color: rgba(51, 51, 51, 1);
|
|
|
font-size: 30upx;
|
|
font-size: 30upx;
|
|
|
|
|
+ margin:0 50upx 0 0;
|
|
|
text-align:center;
|
|
text-align:center;
|
|
|
|
|
+ float:left;
|
|
|
padding-left:20upx;
|
|
padding-left:20upx;
|
|
|
padding-right:20upx;
|
|
padding-right:20upx;
|
|
|
}
|
|
}
|
|
@@ -470,15 +438,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.button_4 {
|
|
.button_4 {
|
|
|
- height: 95upx;
|
|
|
|
|
- line-height:95upx;
|
|
|
|
|
|
|
+ height: 80upx;
|
|
|
|
|
+ line-height:80upx;
|
|
|
text-align:center;
|
|
text-align:center;
|
|
|
background-color:#FF2842;
|
|
background-color:#FF2842;
|
|
|
background-size: 137upx 137upx;
|
|
background-size: 137upx 137upx;
|
|
|
width: 130upx;
|
|
width: 130upx;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
left: 570upx;
|
|
left: 570upx;
|
|
|
- top:100upx;
|
|
|
|
|
|
|
+ top:90upx;
|
|
|
border-radius:20upx;
|
|
border-radius:20upx;
|
|
|
.text_13 {
|
|
.text_13 {
|
|
|
color: rgba(255, 255, 255, 1);
|
|
color: rgba(255, 255, 255, 1);
|
|
@@ -503,23 +471,6 @@ export default {
|
|
|
font-weight:bold;
|
|
font-weight:bold;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .button_6 {
|
|
|
|
|
- height: 95upx;
|
|
|
|
|
- line-height:95upx;
|
|
|
|
|
- text-align:center;
|
|
|
|
|
- background-color:#FF2842;
|
|
|
|
|
- background-size: 137upx 137upx;
|
|
|
|
|
- width: 130upx;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- left: 380upx;
|
|
|
|
|
- top:100upx;
|
|
|
|
|
- border-radius:20upx;
|
|
|
|
|
- .text_13 {
|
|
|
|
|
- color: rgba(255, 255, 255, 1);
|
|
|
|
|
- font-size: 30upx;
|
|
|
|
|
- font-weight:bold;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|