version/0412
fanfan 1 year ago
parent a39b47554b
commit 36c78c8915
  1. 4
      pages/activity/newPeople.vue
  2. 18
      pages/cart/index.vue
  3. 2972
      pages/goods/detail.vue
  4. 4
      pages/goods/list.vue
  5. 4
      pages/index/index.vue
  6. 47
      pages/news/consult/storeEdit.vue
  7. 9
      pages/news3/sendOutGoods.vue
  8. 11
      pages/news3/shopOrder.vue
  9. 6
      pages/news3/updateAddr.vue
  10. 9
      pages/news3/updatePrice.vue
  11. 56
      pages/user/index.vue
  12. 4
      pages/user/vip/goods.vue

@ -34,9 +34,9 @@
<view class="n"><text>{{item.goods_price_min}}</text>到手价</view>
<view class="o">{{item.goods_price_min}}</view>
</view>
<view class="desc">
<!-- <view class="desc">
{{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率
</view>
</view> -->
</view>
</view>
</view>

@ -83,10 +83,10 @@
<text style="font-size: 20rpx;margin-left:10rpx;">到手价</text>
<text style="color: #949494;font-size: 22rpx;text-decoration: line-through;">{{item.line_price_max}}</text>
</view>
<view class="comment">
<!-- <view class="comment">
<text>{{item.goods_sales}}条评论</text>
<text style="margin-left:20rpx;">{{item.remaizhishu}}%好评率</text>
</view>
</view> -->
</view>
</view>
</view>
@ -325,10 +325,10 @@
// app.$navTo('pages/checkout/index', {
// mode: 'cart',
// cartIds
// })
app.$navTo('pages/sureOrder/index', {
mode: 'cart',
cartIds
// })
app.$navTo('pages/sureOrder/index', {
mode: 'cart',
cartIds
})
}
},
@ -593,14 +593,14 @@
}
}
.stepper {
.stepper {
flex: 1;
display: flex;
// width: 154rpx;
height: 56rpx;
background: #FFFFFF;
border-radius: 76rpx 76rpx 76rpx 76rpx;
opacity: 1;
opacity: 1;
margin-right: 20rpx;
// border: 2rpx solid #E6E6E6;
@ -685,7 +685,7 @@
justify-content: flex-end;
padding-right: 30rpx;
.goods-price {
.goods-price {
flex: 1;
vertical-align: bottom;
color: $main-bg;

File diff suppressed because it is too large Load Diff

@ -115,9 +115,9 @@
<text v-if="item.line_price_min > 0"
class="line-price col-9 f-24">{{ item.line_price_min }}</text>
</view>
<view class="evaluate">
<!-- <view class="evaluate">
200+条评论 99%好评率
</view>
</view> -->
</view>
</view>
</view>

@ -221,10 +221,10 @@
<text style="font-size: 20rpx;margin-left:10rpx;">到手价</text>
<text style="color: #949494;font-size: 22rpx;text-decoration: line-through;">{{item.line_price_max}}</text>
</view>
<view class="comment">
<!-- <view class="comment">
<text>{{item.goods_sales}}条评论</text>
<text style="margin-left:20rpx;">{{item.remaizhishu}}%好评率</text>
</view>
</view> -->
</view>
</view>
</view>

@ -29,6 +29,20 @@
</u-upload>
</view>
</view>
<view class="items" style="margin-top: 20rpx;">
<view class="a">店铺Logo<text></text></view>
<view class="c">
<u-upload :action="action" :header="header" @on-remove="onRemoveLogo" @on-uploaded="successLogo" width="160"
height="160" :file-list="fileLogoList" :custom-btn="true" max-count="1">
<template v-slot:addBtn>
<view class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
<image :src="$picUrl + '/static/news/icon-upload.png'"></image>
<view class="1">上传图片</view>
</view>
</template>
</u-upload>
</view>
</view>
</view>
<view class="addressList-fd" @click="onSaveSubmit">
<view class="btn">保存</view>
@ -46,6 +60,8 @@ export default {
header: {},
fileList: [],
image_id: '',
logo_image_id:'',
fileLogoList:[]
};
},
onReady() {
@ -72,16 +88,40 @@ export default {
}
}
},
//
successLogo(list) {
if (list.length > 0) {
const { response } = list[0];
if (response.status == 200) {
uni.showToast({
title: "上传成功"
})
this.logo_image_id = response.data.fileInfo.file_id
}
}
},
onRemoveLogo() {
this.logo_image_id = ''
this.fileLogoList = []
},
onSaveSubmit() {
if (!this.image_id) {
uni.showToast({
title: '请先上传图片!',
title: '请先上传店铺分享图片!',
icon: 'none',
duration: 2000
})
return
}
help.storeSet({ group_share_img_id: this.image_id })
if (!this.logo_image_id) {
uni.showToast({
title: '请先上传店铺Logo图片!',
icon: 'none',
duration: 2000
})
return
}
help.storeSet({ group_share_img_id: this.image_id,logo_image_id:this.logo_image_id })
.then(res => {
if (res.status) {
uni.showToast({
@ -104,6 +144,9 @@ export default {
this.fileList = [{
url: res.data.group_share_img
}]
this.fileLogoList = [{
url: res.data.logo_image
}]
this.image_id = res.data.group_share_img_id
}
})

@ -132,10 +132,11 @@
title: this.source == 1 ? '修改成功' : '发货成功',
icon: 'none'
})
uni.$emit('refreshData');
uni.navigateBack({
delta: 1
})
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1000)
}
},
async getWuliuList() {

@ -281,18 +281,15 @@
}
},
onLoad(option) {
this.classifyShow=option.dataType
this.classifyShow = option.dataType
this.delivery_type = option.delivery_type || '';
this.user_id = option.user_id || '';
this.getList()
},
onShow() {
let that = this
uni.$on('refreshData', function(res) {
that.pageNum = 1
that.goodShopsList = [];
that.getList()
})
that.pageNum = 1
that.goodShopsList = [];
that.getList()
},
onUnload() {
//

@ -234,10 +234,10 @@
.then(result => {
that.$toast(result.message)
setTimeout(() => {
uni.$emit('refreshData');
uni.navigateBack()
uni.navigateBack({
delta: 1
})
}, 1000)
})
.finally(() => {

@ -121,10 +121,11 @@
title: '修改价格成功',
icon: 'none'
})
uni.$emit('refreshData');
uni.navigateBack({
delta: 1
})
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1000)
}
},
onLoad(option) {

@ -12,11 +12,11 @@
<view class="image-text_1" v-if="!isLogin" @click="goLogin()">
未登录
</view>
<view v-else class="image-text_1">
<button class="avatar-wrapper" v-else @click="onChooseAvatar">
<text lines="1" class="text-group_1">{{userInfo.nick_name}}</text>
<image :src="$picUrl+'/static/user/weChat.png'" class="thumbnail_1"></image>
</view>
<view class="text-wrapper_1" v-if="isLogin">
</button>
<view class="text-wrapper_1" v-if="isLogin" @click="wechatLogin">
<text lines="1" class="text_1" v-if="userInfo.user_type==40">店长</text>
<text lines="1" class="text_1" v-else-if="userInfo.user_type==30">分销</text>
<text lines="1" class="text_1" v-else-if="userInfo.user_type==20">Plus会员</text>
@ -35,7 +35,7 @@
<text lines="1" class="text_3">会员码</text>
</view>
<!-- -->
<view class="group_5" @click="lookMemberCode('3')" v-if="userInfo.user_type == 30">
<view class="group_5" @click="lookMemberCode('3')" v-if="userInfo.user_type == 30">
<image :src="$picUrl+'/static/user/code.png'" class="thumbnail_3"></image>
<text lines="1" class="text_4">分销码</text>
</view>
@ -170,8 +170,7 @@
<view class="goodsManage">
<view class="manageTitle">
<text lines="1" class="text_5 titleLeft">商品订单</text>
<text lines="1" class="text_6 titleRight"
@click="goGoodsOrder('all')">查看全部</text>
<text lines="1" class="text_6 titleRight" @click="goGoodsOrder('all')">查看全部</text>
<u-icon style="margin-left: 5rpx; color: #909090; margin-top: -5rpx;" name="arrow-right"></u-icon>
</view>
<view class="grounding goodsOrder">
@ -535,10 +534,10 @@
<text
style="color: #949494;font-size: 22rpx;text-decoration: line-through;">{{item.line_price_max}}</text>
</view>
<view class="comment">
<!-- <view class="comment">
<text>{{item.goods_sales}}条评论</text>
<text style="margin-left:20rpx;">{{item.remaizhishu}}%好评率</text>
</view>
</view> -->
</view>
</view>
</view>
@ -611,9 +610,20 @@
}
},
methods: {
goShopOrderList(){
onChooseAvatar(e) {
uni.getUserProfile({
desc: 'Wexin', //
success: res => {
let rawData = JSON.parse(res.rawData)
this.userInfo.avatar_url = rawData.avatarUrl;
this.userInfo.nick_name = rawData.nickName;
console.log("用户信息", JSON.parse(res.rawData))
}
})
},
goShopOrderList() {
uni.navigateTo({
url:'/pages/news3/shopOrder?delivery_type=10'
url: '/pages/news3/shopOrder?delivery_type=10'
})
},
goDealer(type) {
@ -657,19 +667,19 @@
})
.then(result => {
let data = result.data.userInfo
console.log("data.user_id",data.user_id)
console.log("data.user_id", data.user_id)
// data.qrcode = createQrCodeImg(data.user_id.toString(), {
// 'size': 500
// });
console.log(data)
that.userInfo = data
that.getOrderInfo();
that.getActionCountsInfo();
uni.setStorageSync('userInfo', that.userInfo)
if(data.user_type == 20){
if (data.user_type == 20) {
that.getMembershipInviteQrcode()
}else if(data.user_type == 30){
} else if (data.user_type == 30) {
that.getDealerInviteQrcode()
}
// that.getMembershipInviteQrcode()
@ -845,7 +855,7 @@
return;
}
this.lookMemberType = val;
this.qrcode = val ==2?this.inviteQrcode:this.dealerInviteQrcode;
this.qrcode = val == 2 ? this.inviteQrcode : this.dealerInviteQrcode;
this.memberCode = true;
},
@ -867,7 +877,7 @@
//
if (this.userInfo.user_type == 40) {
uni.navigateTo({
url: '/pages/news3/shopOrder?dataType='+val
url: '/pages/news3/shopOrder?dataType=' + val
})
} else {
uni.navigateTo({
@ -1080,8 +1090,20 @@
align-items: center;
}
.avatar-wrapper {
width: 286rpx;
height: 50rpx;
margin-left: 2rpx;
display: flex;
align-items: center;
background: none;
padding: 0;
margin: 0;
border: none;
}
.text-group_1 {
width: 232rpx;
// width: 232rpx;
height: 50rpx;
overflow-wrap: break-word;
color: rgba(0, 0, 0, 1);

@ -38,9 +38,9 @@
<view class="n"><text>{{item.goods_price_min}}</text>到手价</view>
<view class="o">{{item.line_price_min}}</view>
</view>
<view class="desc">
<!-- <view class="desc">
{{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率
</view>
</view> -->
</view>
<u-empty text="暂无数据显示哦~" v-else mode="list"></u-empty>
</scroll-view>

Loading…
Cancel
Save