diff --git a/components/certifiedCj/certifiedCj.vue b/components/certifiedCj/certifiedCj.vue
index 428243c..6adf96e 100644
--- a/components/certifiedCj/certifiedCj.vue
+++ b/components/certifiedCj/certifiedCj.vue
@@ -1,7 +1,7 @@
-
+
@@ -22,42 +22,13 @@
export default {
data() {
return {
- cjsList: [
-
- // {
- // src: '/static/report/zhanwei_xf(1).png',
- // title: '西安兴沃丰餐饮管理有限责任公司',
- // tags: [{
- // tag: '咖啡'
- // },
- // {
- // tag: '饮品'
- // }
- // ]
- // },
- // {
- // src: '/static/report/zhanwei_xf(1).png',
- // title: '福建省海纳川食品有限公司',
- // tags: [{
- // tag: '活冻鲍鱼'
- // },
- // {
- // tag: '鲍鱼罐头'
- // },
- // {
- // tag: '佛跳墙'
- // },
- // {
- // tag: '海螺片'
- // }
-
- // ]
- // },
- ]
+ cjsList: [],
+ imgUrl: '',
}
},
created() {
this.getCertifiedCj()
+ this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
// 获取认证厂家列表
diff --git a/components/myAvatar/myAvatar.vue b/components/myAvatar/myAvatar.vue
index 5636e89..cd99e74 100644
--- a/components/myAvatar/myAvatar.vue
+++ b/components/myAvatar/myAvatar.vue
@@ -1,21 +1,20 @@
-
+
-
+
-
+
- 顾发航
+ {{nickname}}
-
@@ -30,9 +29,10 @@
},
data() {
return {
- show: false,
+ member: false,
showEdit: true,
- avatar: 'https://cdn.uviewui.com/uview/album/2.jpg',
+ avatar: '',
+ nickname: '',
normal: '/static/my/wo_icon_pthy.png',
VIP: '/static/my/wo_icon_vip.png',
};
@@ -41,6 +41,7 @@
if (this.center != false) {
this.showEdit = false
}
+ this.getUser()
},
methods: {
//修改头像
@@ -48,11 +49,17 @@
uni.navigateTo({
url: '../../packageMy/changeAvatar/changeAvatar'
})
+ },
+ //获取普通会员和VIP会员
+ getUser() {
+ this.$apiServe.getUser().then(res => {
+ // console.log('个人信息==', res.data.data);
+ var data = res.data.data
+ this.avatar = data.avatar
+ this.nickname = data.nickname
+ this.member = data.member
+ }).finally(_ => {})
}
}
}
-
-
diff --git a/components/myForm/myForm.vue b/components/myForm/myForm.vue
index 7b50066..feb7b95 100644
--- a/components/myForm/myForm.vue
+++ b/components/myForm/myForm.vue
@@ -21,8 +21,8 @@
return {
model: {
userInfo: {
- name: '',
- phone: '',
+ name: '姓名',
+ phone: '2342233',
},
},
};
diff --git a/components/news/news.vue b/components/news/news.vue
index 9ef6be4..04c5dfe 100644
--- a/components/news/news.vue
+++ b/components/news/news.vue
@@ -1,7 +1,7 @@
-
+
@@ -9,7 +9,7 @@
- {{item.pub_time}}
+ {{item.pub_time_str}}
{{item.pub_name}}
@@ -21,38 +21,27 @@
+
+
diff --git a/packageMy/bindCompany/bindCompany.vue b/packageMy/bindCompany/bindCompany.vue
new file mode 100644
index 0000000..b004335
--- /dev/null
+++ b/packageMy/bindCompany/bindCompany.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/packageMy/bindCompony/bindCompony.vue b/packageMy/bindCompony/bindCompony.vue
deleted file mode 100644
index a8b567a..0000000
--- a/packageMy/bindCompony/bindCompony.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/packageMy/browseHistory/browseHistory.vue b/packageMy/browseHistory/browseHistory.vue
index 7cb58e7..07e859c 100644
--- a/packageMy/browseHistory/browseHistory.vue
+++ b/packageMy/browseHistory/browseHistory.vue
@@ -1,43 +1,6 @@
-
-
-
-
-
-
-
-
-
- {{item.img_tag}}
-
-
-
- {{item.title}}
-
-
-
-
- {{item.desc}}
-
-
-
-
- 发布日期:
- {{item.time}}
-
-
-
-
-
-
-
-
-
-
+
@@ -45,202 +8,8 @@
export default {
data() {
return {
- showM: false,
- content: '您确定移除吗?',
- type: '',
- productList: [{
- src: '/static/products/zhanwei_dg.png',
- title: '锅巴',
- tag: '无添加剂',
- img_tag: '零食铺子',
- desc: '糯米蟹黄锅巴散装,非油炸绿色健康食品',
- time: '2022-12-04'
- },
- {
- src: '/static/products/zhanwei_dg.png',
- title: '干吃汤圆',
- tag: '天然原料',
- img_tag: '糕点卷酥',
- desc: '休闲食品厂家甜品糯米食品零食闽南特产宵夜好吃糍粑',
- time: '2022-12-04'
- },
- {
- src: '/static/products/zhanwei_dg.png',
- title: '紫薯魔芋人参魔芋人参魔芋人参…',
- tag: '天然原料',
- img_tag: '健康创新',
- desc: '紫薯魔芋人参代餐粉 冲调饮品贴牌加工 五谷杂粮粉代餐',
- time: '2022-12-04'
- },
- {
- src: '/static/products/zhanwei_dg.png',
- title: '焦糖饼干',
- tag: '无防腐剂',
- img_tag: '饼干曲奇',
- desc: '比利时风味焦糖饼干代餐小吃零食品',
- time: '2022-12-04'
- }
- ]
- }
- },
- onLoad(options) {
- this.type = options.id
- },
- methods: {
- //移除按钮
- showModal() {
- this.showM = true
- },
- confirm() {
-
- },
- cancel() {
- this.showM = false
- },
- close() {
- this.showM = false
+ type: ''
}
}
}
-
-
diff --git a/packageMy/memberCenter/memberCenter.vue b/packageMy/memberCenter/memberCenter.vue
index ac0b352..1e77072 100644
--- a/packageMy/memberCenter/memberCenter.vue
+++ b/packageMy/memberCenter/memberCenter.vue
@@ -4,11 +4,11 @@
-
+
+
{{commitment}}
-
@@ -20,6 +20,8 @@
export default {
data() {
return {
+ name: '',
+ phone: '',
showM: false,
//会员中心的用户名旁边不显示edit图标
show: false,
@@ -28,6 +30,10 @@
commitment: '承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置承诺声明预留文字位置'
}
},
+ onLoad() {
+ this.name = this.$refs.nameAndphone.model.userInfo.name
+ this.phone = this.$refs.nameAndphone.model.userInfo.phone
+ },
methods: {
// 联系客服模态框
showModal() {
@@ -35,6 +41,14 @@
},
confirm() {
this.showM = false
+ this.$apiServe.bindComponyAndUpdate({
+ uid: 1,
+ type: 2,
+ companyPhone: this.phone,
+ companyName: this.name
+ }).then(res => {
+ console.log('升级VIP', res);
+ }).finally(_ => {})
},
cancel() {
this.showM = false
@@ -63,30 +77,8 @@
border-radius: 20rpx !important;
}
- .u-modal {
- width: 472rpx !important;
- }
-
.u-modal__content {
padding: 43rpx 104rpx !important;
text-indent: 14rpx;
}
-
- .u-modal__content__text {
- font-size: 32rpx !important;
- font-weight: 400;
- color: #252421 !important;
- }
-
- .u-modal__button-group__wrapper--hover {
- background: #0EBB5B !important;
- }
-
- .u-modal__button-group__wrapper--confirm {
- background: #0EBB5B;
-
- .u-modal__button-group__wrapper__text {
- color: #fff !important;
- }
- }
diff --git a/packageMy/myCollection/myCollection.vue b/packageMy/myCollection/myCollection.vue
new file mode 100644
index 0000000..96dc571
--- /dev/null
+++ b/packageMy/myCollection/myCollection.vue
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
diff --git a/packageMy/myRelease/myRelease.vue b/packageMy/myRelease/myRelease.vue
index 7c5f86d..621ece6 100644
--- a/packageMy/myRelease/myRelease.vue
+++ b/packageMy/myRelease/myRelease.vue
@@ -59,6 +59,7 @@
showM: false,
content: '您确定删除吗?',
tabCurrent: 0,
+ type: '',
tabsList: [{
name: '需求发布'
}, {
@@ -84,10 +85,27 @@
}
},
+ onLoad() {
+ if (this.tabCurrent == 0) {
+ this.type = 2
+ } else if (this.tabCurrent == 1) {
+ this.type = 1
+ }
+ this.getIdeasAndNeeds()
+ },
methods: {
+ //获取创意发布
+ getIdeasAndNeeds() {
+ this.$apiServe.getIdeasAndNeeds(this.type).then(res => {
+ console.log('获取创意发布&需求发布', res.data);
+ // this.productList = data
+ }).finally(_ => {
+
+ })
+ },
tabChange(data) {
this.tabCurrent = data.index
- this.needsPublishForm = {}
+ this.getIdeasAndNeeds()
},
//删除按钮
showModal() {
@@ -113,7 +131,6 @@
editIdeas() {
console.log('修改创意');
uni.reLaunch({
- // id=' + ideaId + '&
url: '/pages/ideasAndNeeds/ideasAndNeeds?index=' + 1
})
}
@@ -122,39 +139,11 @@
\ No newline at end of file
+
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 21bc1ac..345513f 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -24,27 +24,29 @@
-
+
+ {{phone}}
+ 是否拨打客服电话
+