|
|
|
@ -2,12 +2,12 @@ |
|
|
|
<view class="warpper"> |
|
|
|
<uni-nav-bar> |
|
|
|
<view slot="left" class="left-title">纸商城</view> |
|
|
|
<view slot="right" class="right-title">分享</view> |
|
|
|
</uni-nav-bar> |
|
|
|
<view class="top-box"> |
|
|
|
<view class=""><image class="image" src="https://qncloud.oss-cn-shenzhen.aliyuncs.com/ztb_pic/testPic.jfif" mode=""></image></view> |
|
|
|
<view class="center"> |
|
|
|
<view class="title">东莞市隆兴纸业有限公司</view> |
|
|
|
<view slot="right" class="right-title" @tap="shareTap">分享</view> |
|
|
|
</uni-nav-bar> |
|
|
|
<view class="top-box"> |
|
|
|
<view class=""><image class="image" src="https://qncloud.oss-cn-shenzhen.aliyuncs.com/ztb_pic/testPic.jfif" mode=""></image></view> |
|
|
|
<view class="center"> |
|
|
|
<view class="title">{{ storeInformation.name }}</view> |
|
|
|
<view class="desc">全部商品 39 | 上新 9</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
@ -59,7 +59,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import uGap from '@/components/u-gap/u-gap.vue' |
|
|
|
import { back, go2, loginG2 } from '@/utils/hook.js' |
|
|
|
import { back, go2, loginGo2 } from '@/utils/hook.js' |
|
|
|
import { SupplierList, productStatus } from '@/apis/add-paper.js' |
|
|
|
import noData from './no-data.vue' |
|
|
|
export default { |
|
|
|
@ -67,6 +67,10 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pageShow: true, |
|
|
|
storeInformation: { |
|
|
|
supplierId: null, |
|
|
|
name: null |
|
|
|
}, |
|
|
|
option: { |
|
|
|
size: 10, |
|
|
|
auto: true, |
|
|
|
@ -92,6 +96,12 @@ export default { |
|
|
|
listData: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.storeInformation = { |
|
|
|
supplierId: this.$store.state.supplierInfo.supplierId, |
|
|
|
name: this.$store.state.supplierInfo.name |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.quertData() |
|
|
|
}, |
|
|
|
@ -143,7 +153,7 @@ export default { |
|
|
|
}, |
|
|
|
// 切换商城按钮 |
|
|
|
checkMall() { |
|
|
|
go2('switching-mall') |
|
|
|
go2('switching-mall', { supplierId: this.storeInformation.supplierId }) |
|
|
|
}, |
|
|
|
// 按钮点击事件 |
|
|
|
nativeTo() { |
|
|
|
@ -166,7 +176,7 @@ export default { |
|
|
|
}, |
|
|
|
// 详情点击事件 |
|
|
|
detailInfo(item) { |
|
|
|
go2('paper-detail', item) |
|
|
|
loginGo2('paper-detail', item) |
|
|
|
}, |
|
|
|
// 上下架事件 |
|
|
|
productStatusChange(item) { |
|
|
|
@ -188,6 +198,24 @@ export default { |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 分享 |
|
|
|
shareTap() { |
|
|
|
uni.share({ |
|
|
|
provider: "weixin", |
|
|
|
scene: "WXSceneSession", |
|
|
|
type: 0, |
|
|
|
href: "http://uniapp.dcloud.io/", |
|
|
|
title: "uni-app分享", |
|
|
|
summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!", |
|
|
|
imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png", |
|
|
|
success: function (res) { |
|
|
|
console.log("success:" + JSON.stringify(res)); |
|
|
|
}, |
|
|
|
fail: function (err) { |
|
|
|
console.log("fail:" + JSON.stringify(err)); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|