头像点击修改
This commit is contained in:
parent
0810b43ff8
commit
aa3e8e8b6b
|
@ -4,16 +4,15 @@
|
|||
<view class="content-tops">
|
||||
<view class="content-top_img" v-if="Object.keys(userInfoData).length>0">
|
||||
<image :src="userInfoData.mer_info.mer_avatar"
|
||||
v-if="userInfoData.mer_info&&userInfoData.mer_info.mer_avatar" mode="aspectFill"
|
||||
@click="logout">
|
||||
v-if="userInfoData.mer_info&&userInfoData.mer_info.mer_avatar" mode="aspectFill" @click="byset">
|
||||
</image>
|
||||
<image src="@/static/images/f.png" v-else mode="aspectFit" @click="logout"></image>
|
||||
<image src="@/static/images/f.png" v-else mode="aspectFit" @click="byset"></image>
|
||||
</view>
|
||||
<view class="content-top_img" v-else @click="login">
|
||||
<image src="@/static/images/f.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view v-if="Object.keys(userInfoData).length>0">
|
||||
<view class="content-top-title" @click="shopp" v-if="Object.keys(userInfoData).length>0">
|
||||
<view class="content-top-title" @click="byset" v-if="Object.keys(userInfoData).length>0">
|
||||
<view class="top-titlea">
|
||||
{{userInfoData.mer_info.mer_name?userInfoData.mer_info.mer_name:'暂无信息'}}
|
||||
</view>
|
||||
|
@ -871,8 +870,7 @@
|
|||
}, 10)
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
},
|
||||
onReady() {},
|
||||
|
||||
onShow() {
|
||||
if (this.loadEndFlag) {
|
||||
|
@ -1130,7 +1128,6 @@
|
|||
},
|
||||
//关闭弹窗
|
||||
recuo() {
|
||||
|
||||
if (this.num > 0) {
|
||||
this.num = 15
|
||||
this.isFshow = false
|
||||
|
@ -1259,6 +1256,11 @@
|
|||
|
||||
//商家设置
|
||||
byset() {
|
||||
// #ifdef H5
|
||||
this.$refs.popup1.open()
|
||||
// #endif
|
||||
|
||||
// #ifndef H5
|
||||
if (this.userid) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/product/basicSet?mer_id=' + this.userInfoData.service.mer_id
|
||||
|
@ -1267,6 +1269,7 @@
|
|||
this.isAuto = true;
|
||||
this.isShowAuth = true
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
|
||||
//个人详情
|
||||
|
|
|
@ -288,7 +288,6 @@
|
|||
productCreate,
|
||||
productUpdate,
|
||||
productDetail
|
||||
|
||||
} from '@/api/product.js';
|
||||
import uploadImgVideo from "../addGood/components/uploadImgVideo.vue"
|
||||
import form from "../../../uni_modules/uview-ui/libs/config/props/form";
|
||||
|
@ -318,9 +317,7 @@
|
|||
store_info: "",
|
||||
product_id: "",
|
||||
"store_name": "",
|
||||
"imageList": [
|
||||
|
||||
],
|
||||
"imageList": [],
|
||||
attr: [{
|
||||
detail: [{
|
||||
attr: 'name'
|
||||
|
@ -328,9 +325,7 @@
|
|||
value: " "
|
||||
}, ],
|
||||
"attrValue": [{
|
||||
detail: {
|
||||
|
||||
},
|
||||
detail: {},
|
||||
"price": "",
|
||||
"unit_name": "",
|
||||
"wholesale_unit_name": "",
|
||||
|
@ -351,24 +346,17 @@
|
|||
"cate_name": "",
|
||||
"unit_name": "",
|
||||
"cate_id": '',
|
||||
"mer_cate_id": [
|
||||
|
||||
],
|
||||
"mer_cate_id": [],
|
||||
"mer_cate_name": "",
|
||||
"spec_type": "",
|
||||
|
||||
"specifica": "",
|
||||
"delivery_way": [
|
||||
|
||||
],
|
||||
"delivery_way": [],
|
||||
"delivery_free": "1",
|
||||
"temp_id": "",
|
||||
"tempName": "",
|
||||
"once_min_count": "",
|
||||
"image": "",
|
||||
"slider_image": [
|
||||
""
|
||||
],
|
||||
"slider_image": [""],
|
||||
"is_good": 0,
|
||||
"is_gift_bag": 0,
|
||||
"sort": "",
|
||||
|
@ -388,7 +376,6 @@
|
|||
value: ''
|
||||
}]
|
||||
}
|
||||
|
||||
},
|
||||
mer_id: "",
|
||||
maxLength: 30,
|
||||
|
@ -405,16 +392,13 @@
|
|||
range: [{
|
||||
value: 0,
|
||||
text: "篮球"
|
||||
},
|
||||
{
|
||||
}, {
|
||||
value: 1,
|
||||
text: "足球"
|
||||
},
|
||||
{
|
||||
}, {
|
||||
value: 2,
|
||||
text: "游泳"
|
||||
},
|
||||
],
|
||||
}],
|
||||
text: "",
|
||||
text1: "",
|
||||
value1: "",
|
||||
|
@ -422,12 +406,10 @@
|
|||
checkboxList1: [{
|
||||
name: '到店核销',
|
||||
value: '1',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
name: '快递配送',
|
||||
value: '2',
|
||||
}
|
||||
],
|
||||
}],
|
||||
attrRules: {
|
||||
price: '单价不能为空',
|
||||
unit_name: '计量单位不能为空',
|
||||
|
@ -462,7 +444,6 @@
|
|||
message: '请填写完整商品规格',
|
||||
trigger: ['change', 'blur'],
|
||||
}],
|
||||
|
||||
'store_name': {
|
||||
type: 'string',
|
||||
required: true,
|
||||
|
@ -491,8 +472,6 @@
|
|||
message: '请上传商品详情图',
|
||||
trigger: ['blur', 'change']
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
radio: '',
|
||||
switchVal: false
|
||||
|
@ -509,10 +488,6 @@
|
|||
},
|
||||
|
||||
methods: {
|
||||
test(index) {
|
||||
// this.formData.imageList.splice(index, 1)
|
||||
console.log(this.formData, index)
|
||||
},
|
||||
preViewImg(url) {
|
||||
let that = this
|
||||
uni.previewImage({
|
||||
|
|
|
@ -7,14 +7,9 @@
|
|||
:clearabled="false" @clickIcon="scanQRcodes"></u-search>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<u-tabs @touchend.stop :current='current' :list="tabList" @click="selectMenu" type='primary'
|
||||
lineColor='#32BB3B'></u-tabs>
|
||||
|
||||
|
||||
|
||||
|
||||
<view class="wrapper" style="background-color: #F1F1F1;">
|
||||
<view class='product_list' v-if="productList && productList.length > 0">
|
||||
<view v-for="(item,index) in productList" :key="index" class="card">
|
||||
|
@ -35,16 +30,18 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;">
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;"
|
||||
v-if="isWholeSale == 0 || isWholeSale == 2">
|
||||
<text style="color:#989898" v-if='isWholeSale'>零售:</text> <text
|
||||
style="font-size: 22rpx;">¥</text><text>{{item.price}}</text><text
|
||||
style="color: #828282;">/{{item.unit_name}}</text>
|
||||
</view>
|
||||
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;" v-if='isWholeSale'>
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;"
|
||||
v-if="isWholeSale == 1 || isWholeSale == 2">
|
||||
<text style="color:#989898">批发:</text> <text
|
||||
style="font-size: 22rpx;">¥</text><text>{{item.attrValue[0].wholesale_price}}</text><text
|
||||
style="color: #828282;">/{{item.attrValue[0].wholesale_unit_name}}</text>
|
||||
style="font-size: 22rpx;">¥</text><text>{{item.wholesale_price}}</text><text
|
||||
style="color: #828282;">/{{item.wholesale_unit_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -277,7 +274,7 @@
|
|||
sjList: [2, 4],
|
||||
xjItem: "",
|
||||
showOverly: false,
|
||||
isWholeSale: false,
|
||||
isWholeSale: '',
|
||||
status: 'loadmore',
|
||||
current: "",
|
||||
where: {
|
||||
|
@ -336,7 +333,8 @@
|
|||
this.newUser = Boolean(options.diver)
|
||||
this.getUserInfo()
|
||||
this.getCategoryList();
|
||||
this.isWholeSale = this.$store.state.app.userInfo?.mer_info?.wholesale == 2;
|
||||
this.isWholeSale = this.$store.state.app.userInfo?.mer_info?.wholesale;
|
||||
|
||||
if (options.type) {
|
||||
this.where.type = options.type
|
||||
}
|
||||
|
|
|
@ -18,10 +18,13 @@
|
|||
库存: {{attrvalueStock}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;">
|
||||
<text
|
||||
style="font-size: 22rpx;">¥</text><text>{{short.attrValue && short.attrValue[0].price}}</text><text
|
||||
style="color: #828282;">/{{short.attrValue && short.attrValue[0].unit_name}}</text>
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;" v-if="isWholeSale == 0 || isWholeSale ==2">
|
||||
<text style="font-size: 22rpx;">¥</text><text>{{short.price }}</text><text
|
||||
style="color: #828282;">/{{short.unit_name }}</text>
|
||||
</view>
|
||||
<view class="" style="color: #FC452F;font-size: 24rpx;" v-if="isWholeSale == 1 || isWholeSale ==2">
|
||||
<text style="font-size: 22rpx;">¥</text><text>{{short.wholesale_price }}</text><text
|
||||
style="color: #828282;">/{{short.wholesale_unit_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -100,6 +103,7 @@
|
|||
product_id: ''
|
||||
},
|
||||
attrvalueStock: 0,
|
||||
isWholeSale: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -108,6 +112,8 @@
|
|||
if (typeof userInfo == 'string') userInfo = JSON.parse(userInfo);
|
||||
this.mer_id = userInfo.service.mer_id;
|
||||
this.initInfo();
|
||||
|
||||
this.isWholeSale = userInfo?.mer_info?.wholesale;
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue