|
@@ -3,11 +3,15 @@
|
|
|
|
|
|
|
|
<view class="c_header" :class="myClass">
|
|
<view class="c_header" :class="myClass">
|
|
|
<view class="header_inside">
|
|
<view class="header_inside">
|
|
|
- <image :src="ghsInfo.avatar"></image>
|
|
|
|
|
|
|
+ <image :src="shopImg"></image>
|
|
|
<view class="shop_info">
|
|
<view class="shop_info">
|
|
|
- <view class="shop_title" @click="pageTo({url:'/pagesPurchase/level?id=1'})"> 国兰花尚 </view>
|
|
|
|
|
|
|
+ <view class="shop_title">{{shopName}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="nav">
|
|
|
|
|
+ <text class="selected" @click="pageTo({url:'/pages/item/item?account='+option.account,type:2})">鲜花散花</text>
|
|
|
|
|
+ <text class="not-selected" @click="pageTo({url:'/pages/home/category?account='+option.account,type:2})">花束花礼</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="input-wrap" >
|
|
<view class="input-wrap" >
|
|
@@ -137,6 +141,7 @@ import ModalModule from "@/components/item/plugin/modal";
|
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
import productMins from "@/mixins/cgProduct";
|
|
import productMins from "@/mixins/cgProduct";
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
|
|
+import { getInfo } from "@/api/shop";
|
|
|
export default {
|
|
export default {
|
|
|
name: "item",
|
|
name: "item",
|
|
|
components: {
|
|
components: {
|
|
@@ -175,13 +180,6 @@ export default {
|
|
|
showSubmitModel: false,
|
|
showSubmitModel: false,
|
|
|
hdShopAdminId:0,
|
|
hdShopAdminId:0,
|
|
|
fromGhsId:0,
|
|
fromGhsId:0,
|
|
|
- ghsInfo: {
|
|
|
|
|
- avatar:'',
|
|
|
|
|
- name:' ',
|
|
|
|
|
- mobile:'',
|
|
|
|
|
- expendAmount:'0.00',
|
|
|
|
|
- debtAmount:'0.00'
|
|
|
|
|
- },
|
|
|
|
|
myClass: 'fadeIn',
|
|
myClass: 'fadeIn',
|
|
|
shopId:0,
|
|
shopId:0,
|
|
|
infoData:{},
|
|
infoData:{},
|
|
@@ -191,9 +189,10 @@ export default {
|
|
|
ghsId:0,
|
|
ghsId:0,
|
|
|
newCustomGift:{xrFlAmount:0},
|
|
newCustomGift:{xrFlAmount:0},
|
|
|
isNewCustom:false,
|
|
isNewCustom:false,
|
|
|
- //0没有登录 1有登录
|
|
|
|
|
loginStatus :0,
|
|
loginStatus :0,
|
|
|
- cartItemShow:false
|
|
|
|
|
|
|
+ cartItemShow:false,
|
|
|
|
|
+ shopName:'',
|
|
|
|
|
+ shopImg:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -218,9 +217,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
|
- console.log("pages/item/item?account="+this.option.account)
|
|
|
|
|
return {
|
|
return {
|
|
|
- title: '鲜花',
|
|
|
|
|
|
|
+ title: '鲜花散花',
|
|
|
desc: "",
|
|
desc: "",
|
|
|
path: "pages/item/item?account="+this.option.account,
|
|
path: "pages/item/item?account="+this.option.account,
|
|
|
}
|
|
}
|
|
@@ -324,6 +322,18 @@ export default {
|
|
|
this.init = false
|
|
this.init = false
|
|
|
const shopId = uni.getStorageSync('account')
|
|
const shopId = uni.getStorageSync('account')
|
|
|
this.option.shopId = shopId
|
|
this.option.shopId = shopId
|
|
|
|
|
+
|
|
|
|
|
+ getInfo().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ if(res.data.info && res.data.info.merchantName){
|
|
|
|
|
+ let sjName = res.data.info.merchantName
|
|
|
|
|
+ let shopName = res.data.info.shopName ? res.data.info.shopName : '首店'
|
|
|
|
|
+ let name = shopName == '首店' ? sjName : sjName+' '+shopName
|
|
|
|
|
+ this.shopName = name
|
|
|
|
|
+ this.shopImg = res.data.info.avatar
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
scroll_detail(options){
|
|
scroll_detail(options){
|
|
|
// if(options.detail.scrollTop > 20) {
|
|
// if(options.detail.scrollTop > 20) {
|
|
@@ -500,6 +510,33 @@ export default {
|
|
|
padding: 0 15upx;
|
|
padding: 0 15upx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
background: linear-gradient(to bottom,#3385FF, #fff);
|
|
background: linear-gradient(to bottom,#3385FF, #fff);
|
|
|
|
|
+ .nav{
|
|
|
|
|
+ position:absolute;
|
|
|
|
|
+ top:155upx;
|
|
|
|
|
+ .selected{
|
|
|
|
|
+ width:auto;
|
|
|
|
|
+ height:60upx;
|
|
|
|
|
+ line-height:60upx;
|
|
|
|
|
+ display:inline-block;
|
|
|
|
|
+ font-weight:bold;
|
|
|
|
|
+ font-size:38upx;
|
|
|
|
|
+ border-bottom:1upx solid red;
|
|
|
|
|
+ margin-left:20upx;
|
|
|
|
|
+ text-align:left;
|
|
|
|
|
+ color:red;
|
|
|
|
|
+ }
|
|
|
|
|
+ .not-selected{
|
|
|
|
|
+ width:auto;
|
|
|
|
|
+ height:60upx;
|
|
|
|
|
+ line-height:60upx;
|
|
|
|
|
+ display:inline-block;
|
|
|
|
|
+ font-weight:bold;
|
|
|
|
|
+ font-size:38upx;
|
|
|
|
|
+ margin-left:40upx;
|
|
|
|
|
+ text-align:left;
|
|
|
|
|
+ color:#2F4F4F;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
&>.header_inside{
|
|
&>.header_inside{
|
|
|
position: relative;
|
|
position: relative;
|
|
|
height: 124upx;
|
|
height: 124upx;
|
|
@@ -510,8 +547,8 @@ export default {
|
|
|
padding: 35upx 30upx 30upx 30upx;
|
|
padding: 35upx 30upx 30upx 30upx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
&>image{
|
|
&>image{
|
|
|
- height: 62upx;
|
|
|
|
|
- width: 62upx;
|
|
|
|
|
|
|
+ height: 60upx;
|
|
|
|
|
+ width: 60upx;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
border-radius: 10upx;
|
|
border-radius: 10upx;
|
|
|
background-color: #eee;
|
|
background-color: #eee;
|
|
@@ -524,7 +561,7 @@ export default {
|
|
|
margin-left: 20upx;
|
|
margin-left: 20upx;
|
|
|
&>.shop_title{
|
|
&>.shop_title{
|
|
|
margin-top:0upx;
|
|
margin-top:0upx;
|
|
|
- font-size: 38upx;
|
|
|
|
|
|
|
+ font-size:40upx;
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
color: #060606;
|
|
color: #060606;
|
|
|
width: 580upx;
|
|
width: 580upx;
|
|
@@ -714,7 +751,7 @@ export default {
|
|
|
animation-duration:.3s;
|
|
animation-duration:.3s;
|
|
|
}
|
|
}
|
|
|
.fadeIn{
|
|
.fadeIn{
|
|
|
- height: 150upx;
|
|
|
|
|
|
|
+ height: 220upx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
animation-name: fadeInFrames;
|
|
animation-name: fadeInFrames;
|
|
|
animation-duration:.3s;
|
|
animation-duration:.3s;
|