| | |
| | | </u-input>
|
| | | </view>
|
| | | </view>
|
| | | <view class="info-brand m-t-12" v-if="shopid">
|
| | | <view class="info-brand m-t-12" v-if="id">
|
| | | <view class="flex">
|
| | | <image class="store-logo"></image>
|
| | | <view>
|
| | |
| | | <view class="store-address">云南省-昆明市-官渡区</view>
|
| | | </view>
|
| | | <view class="store-sc m-l-a m-r-0">
|
| | | <image src="../../../static/icon-gz-1.png" class="icon" v-if="dto.gz" @click="updateGz(false)"></image>
|
| | | <image src="../../../static/icon-gz-0.png" class="icon" v-if="!dto.gz" @click="updateGz(true)"></image>
|
| | | <image src="../../../static/icon-gz-1.png" class="icon" v-if="dto.followed"
|
| | | @click="updateGz(false)"></image>
|
| | | <image src="../../../static/icon-gz-0.png" class="icon" v-if="!dto.followed"
|
| | | @click="updateGz(true)"></image>
|
| | | 关注
|
| | | </view>
|
| | | </view>
|
| | |
| | | <view v-if="flg==='0'" class="brand-info-0">
|
| | | <view class="component-filter-container" style="padding-top: 12rpx;">
|
| | | <view class="flex1">
|
| | | 排序<image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | 排序
|
| | | <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | </view>
|
| | | <view class="flex1">
|
| | | 等级<image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | 等级
|
| | | <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | </view>
|
| | | <view class="flex1">
|
| | | 参数<image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | 参数
|
| | | <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image>
|
| | | </view>
|
| | | </view>
|
| | | <view class="top-title">
|
| | |
| | |
|
| | | <script>
|
| | | import trade from '@/sub_pages/customer/trade/trade.vue'
|
| | |
|
| | | export default {
|
| | | components: {
|
| | | trade,
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | shopid: 'test',
|
| | | search_flow: '',
|
| | | flg: '0',
|
| | | tabs: [{
|
| | |
| | | },
|
| | | ],
|
| | | dto: {},
|
| | | list: [{}, {}]
|
| | | list: [{}, {}],
|
| | | id: '',
|
| | | }
|
| | | },
|
| | | onLoad(options) {
|
| | | this.id = options.id || ''
|
| | | if (this.id) {
|
| | | this.getDetail()
|
| | | }
|
| | | },
|
| | | methods: {
|
| | | async getDetail() {
|
| | | this.$message.showLoading()
|
| | | const {
|
| | | code,
|
| | | data
|
| | | } = await this.$http.request('get', `/api/pub/supplier/detail/${this.id}`, {
|
| | | params: {}
|
| | | })
|
| | | if (code === 0) {
|
| | | this.dto = {
|
| | | ...data,
|
| | | }
|
| | | }
|
| | |
|
| | | this.$message.hideLoading()
|
| | |
|
| | | },
|
| | | //update 关注
|
| | | async updateGz(type){
|
| | | this.$message.showLoading()
|
| | | // var res;
|
| | | // if(type){
|
| | | // res = await this.$http.request('post',`/api/follow/add`,{
|
| | | // data:{
|
| | | // supplierId:this.dto.supplierId || this.dto.id
|
| | | // }
|
| | | // })
|
| | | // }else{
|
| | | // res = await this.$http.request('get',`/api/follow/add`,{
|
| | | // data:{
|
| | | // supplierId:this.dto.supplierId || this.dto.id
|
| | | // }
|
| | | // })
|
| | | // }
|
| | | const {code} = await this.$http.request(type ? 'post' : 'get', `/api/follow/${type ? 'add' : 'delete'}`, {
|
| | | data: {
|
| | | supplierId: this.dto.supplierId || this.dto.id
|
| | | },
|
| | | params: {
|
| | | supplierId: this.dto.supplierId || this.dto.id
|
| | | }
|
| | | })
|
| | | this.$message.hideLoading()
|
| | | if(code===0){
|
| | | this.dto.gz = !this.dto.gz
|
| | | this.dto.followed = !this.dto.followed
|
| | | await this.$store.dispatch('sign_add', 'follow')
|
| | | }
|
| | |
|
| | |
| | |
|
| | | .tj-info{
|
| | | display: flex;
|
| | |
|
| | | .form-item{
|
| | | flex: 1;
|
| | | text-align: center;
|
| | |
|
| | | .label{
|
| | | font-weight: 400;
|
| | | font-size: 32rpx;
|
| | | color: #FFFFFF;
|
| | | line-height: 44rpx;
|
| | | }
|
| | |
|
| | | .value{
|
| | | font-weight: 600;
|
| | | font-size: 48rpx;
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | .search-container {
|
| | | display: flex;
|
| | | margin: 12rpx 0rpx 20rpx 0rpx;
|