diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue
index d53355f..12c017a 100644
--- a/components/DropDown/DropDown.vue
+++ b/components/DropDown/DropDown.vue
@@ -55,7 +55,8 @@
}
},
created() {
- this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
+ this.postlist[0]=JSON.parse(uni.getStorageSync('classList'))
+ // this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
},
methods: {
changeActiveIndex(index) {
diff --git a/components/InputAndSwiper/InputAndSwiper.vue b/components/InputAndSwiper/InputAndSwiper.vue
index 0b1ba5f..478d6b2 100644
--- a/components/InputAndSwiper/InputAndSwiper.vue
+++ b/components/InputAndSwiper/InputAndSwiper.vue
@@ -13,7 +13,8 @@
-
+ currentNum = e.current"
+ @click="handleSwiperList(currentNum==''?0:currentNum,bannerURL)" />
@@ -38,19 +39,23 @@
},
data() {
return {
- position: uni.getStorageSync('city')+uni.getStorageSync('district').slice(0, 2)
+ position: uni.getStorageSync('city') + uni.getStorageSync('district').slice(0, 2),
+ currentNum: ''
};
},
options: {
styleIsolation: 'shared', // 解除样式隔离
},
created() {
- if (this.type !== '0') {
- // this.open()
- }
},
methods: {
-
+ //点击轮播图
+ handleSwiperList(currentNum, bannerURL) {
+ const item=bannerURL[currentNum]
+ uni.navigateTo({
+ url: item.link+`?id=${item.param}&type=${item.type}`
+ })
+ },
}
}
diff --git a/components/ShowShopList/ShowShopList.vue b/components/ShowShopList/ShowShopList.vue
index 414c90a..8c28097 100644
--- a/components/ShowShopList/ShowShopList.vue
+++ b/components/ShowShopList/ShowShopList.vue
@@ -5,6 +5,7 @@
:key="shopid"
:shopInfo="item"
:is-adshow="isADshow"
+ :adlinkPath="adlinkPath"
:show-style="showStyle"
:is-edit="isEdit"
@delItem="handleDel"
@@ -39,52 +40,98 @@
return true
}
},
+ adlinkPath: {
+ type: String,
+ default() {
+ return ''
+ }
+ },
isEdit: {
type: Boolean,
default() {
return false
}
},
+ //获取列表类型传递参数部分
+ listType:{
+ type: Number,
+ default() {
+ return 1
+ }
+ },
+ pageSize: {
+ type: Number,
+ default() {
+ return 5
+ }
+ },
+ pageNum: {
+ type: Number,
+ default() {
+ return 1
+ }
+ },
shopInfoList: {
type: Array,
default() {
return [
{
+ id: 1,
+ type: 1,
shopid: 1,
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
title: '琴行铺面转让',
promotionNum: 23,
- price: 6000,
+ price: 5000,
date: '2023-11-02',
pos: '锦江区',
exactPos: '锦江区-汇源南路366号',
sqr: 100,
- zrfText: "转让费:20万",
+ zrfText: "转让费:20000万",
category: '餐饮美食',
uname: "张先生",
phoneNum: 13348946108,
},
{
- shopid: 2,
- imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
- title: '琴行铺面转让',
- promotionNum: 28,
- price: 5000,
- date: '2023-11-02',
- pos: '锦江区',
- exactPos: '锦江区-汇源南路366号',
- sqr: 200,
- zrfText: "转让费:30万",
- category: '餐饮美食',
- uname: "王先生",
- phoneNum: 13348946108,
+ "id": "1",
+ "pic": "3",
+ "tt": "333",
+ "type": "0",
+ "adress": "",
+ "trade1": "啊",
+ "trade2": "餐馆",
+ "btype1": "",
+ "btype2": "",
+ "area1": "青羊区",
+ "area2": "",
+ "mianji": "33",
+ "zhuanrangfei": "44",
+ "zujin": "44",
+ "hits": "0",
+ "58url": "",
+ "personurl": "",
+ "kw": "",
+ "remark": "",
+ "content": "44vv",
+ "pics": "",
+ "user_level_id": "1",
+ "lianxiren": "3333",
+ "mobile": "44444",
+ "status": "1",
+ "shangpulx": "1",
+ "zhuangtai": "1",
+ "lng": "2222.00000000",
+ "lat": "3333.00000000",
+ "pub_time": "0",
+ "create_time": "1699973131",
+ "update_time": "1699973131",
+ "delete_time": "0",
+ "userid": "1",
+ "success": "2"
}
]
}
}
- },
- computed: {
-
},
methods: {
handleDel(shopid){
@@ -93,7 +140,21 @@
// TODO:不能直接修改
// if(delindex !== -1) this.shopInfoList = this.shopInfoList.slice(delindex,1)
// console.log(this.shopInfoList);
+ },
+ getList() {
+ const query = this.$u.queryParams({
+ type: this.listType,
+ pageSize: this.pageSize,
+ pageNum: this.pageNum
+ })
+ this.$api.getShopList(query).then(res => {
+ console.log("shoplist",res.data.data);
+
+ })
}
+ },
+ created() {
+ this.getList()
}
}
diff --git a/components/ShowShopListItem/ShowShopListItem.vue b/components/ShowShopListItem/ShowShopListItem.vue
index 2c7c0e6..4392766 100644
--- a/components/ShowShopListItem/ShowShopListItem.vue
+++ b/components/ShowShopListItem/ShowShopListItem.vue
@@ -2,7 +2,7 @@
-
+
{{shopInfo.title}}
@@ -11,13 +11,13 @@
- {{shopInfo.pos}}
+ {{shopInfo.area1}}
- {{shopInfo.sqr}}m2
+ {{shopInfo.mianji}}m2
@@ -25,41 +25,41 @@
- {{shopInfo.exactPos}}
+ {{shopInfo.area2}}
- 租金:{{shopInfo.price}}元/月
- 发布日期:{{shopInfo.date}}
- {{shopInfo.zrfText}}
+ 租金:{{shopInfo.zujin}}元/月
+ 发布日期:{{shopInfo.create_time}}
+ 转让费:{{shopInfo.zhuanrangfei}}
-
+
- {{shopInfo.sqr}}m2
+ {{shopInfo.mianji}}m2
- {{shopInfo.category}}
+ {{shopInfo.trade1}}
- {{shopInfo.uname}}
+ {{shopInfo.lianxiren}}
- {{shopInfo.phoneNum}}
+ {{shopInfo.mobile}}
@@ -67,7 +67,7 @@
v-if="isADShow"
class="list-ads bottom-common"
style="font-size: 11px;"
- @click="handleAD()"
+ @click="handleAD"
>
已将该店推给
@@ -78,11 +78,11 @@
-
+
编辑
-
+
删除
@@ -95,7 +95,8 @@
* @property {Object} shopInfo 传入商铺对象数据
* @property {Number} showStyle 展示商铺的样式类型(0为首页默认)
* @property {Boolean} isADshow 是否显示推广广告
- * @property {Boolean} isEdit 是否显示编辑和删除
+ * @property {Boolean} isEdit 是否显示编辑和删除
+ * @property {String} adlinkPath 推广广告链接
*/
export default {
props: {
@@ -107,24 +108,35 @@
}
}
},
+ // 展示商铺的样式类型
showStyle:{
type: Number,
default() {
return 0
}
},
+ // 是否展示推广广告
isADShow: {
type: Boolean,
default() {
return true
}
},
+ // 推广广告链接
+ adlinkPath: {
+ type: String,
+ default() {
+ return ''
+ }
+ },
+ // 是否可编辑
isEdit: {
type: Boolean,
default() {
return false
}
- }
+ },
+
},
data() {
@@ -142,19 +154,34 @@
console.log("点击了编辑ID为",shopid);
},
handleDel(shopid) {
+ // 需完善删除请求
this.$emit('delItem', shopid)
},
enterDetail(){
+ // console.log("进入详情页面");
+ const query=this.$u.queryParams({
+ id: this.shopInfo.id,
+ type: this.shopInfo.type
+ })
+ // console.log("query",query);
uni.navigateTo({
- url: '/pages/detail/detail'
+ url: '/pages/detail/detail' + `${query}`
})
},
handleAD(){
- uni.navigateTo({
- url: '/pages/publish/publishTransfer/publishTransfer'
- })
+ // TODO 完成页面跳转
+ if (this.adlinkPath) {
+ uni.navigateTo({
+ url: this.adlinkPath
+ })
+ }else {
+ uni.navigateTo({
+ url: '/pages/publish/publishTransfer/publishTransfer'
+ })
+ }
}
- }
+ },
+
}
diff --git a/pages.json b/pages.json
index db52186..8e4147a 100644
--- a/pages.json
+++ b/pages.json
@@ -125,6 +125,8 @@
"path": "pages/index/NavBarPages/zrxx/zrxx",
"style": {
"navigationBarTitleText": "转让信息",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
}
},
@@ -132,6 +134,8 @@
"path": "pages/index/NavBarPages/zdxx/zdxx",
"style": {
"navigationBarTitleText": "找店信息",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
}
},
@@ -139,6 +143,8 @@
"path": "pages/index/NavBarPages/czxx/czxx",
"style": {
"navigationBarTitleText": "出租信息",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
}
},
@@ -146,6 +152,8 @@
"path": "pages/index/NavBarPages/xmzs/xmzs",
"style": {
"navigationBarTitleText": "项目招商",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
}
},
@@ -153,6 +161,8 @@
"path": "pages/index/NavBarPages/cjal/cjal",
"style": {
"navigationBarTitleText": "成交案例",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
}
},
@@ -162,17 +172,17 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
+ }, {
+ "path": "pages/my/edit/edit",
+ "style": {
+ "navigationBarTitleText": "修改个人信息",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#339967",
+ "enablePullDownRefresh": false
+ }
+
}
- ,{
- "path" : "pages/my/edit/edit",
- "style" :
- {
- "navigationBarTitleText": "修改个人信息",
- "enablePullDownRefresh": false
- }
-
- }
- ],
+ ],
"tabBar": {
"color": "#CCCCCC",
"borderStyle": "white",
diff --git a/pages/Partnerships/Partnerships.vue b/pages/Partnerships/Partnerships.vue
index 9c1d2eb..e9c6783 100644
--- a/pages/Partnerships/Partnerships.vue
+++ b/pages/Partnerships/Partnerships.vue
@@ -29,15 +29,25 @@
+
+
+ .u-button {
+ width: 644rpx !important;
+ height: 86rpx !important;
+ background: #0EBB5B;
+ border-radius: 20rpx !important;
+ }
+
\ No newline at end of file
diff --git a/pages/my/my.vue b/pages/my/my.vue
index bbb5e5d..5fbf821 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -4,11 +4,13 @@
-
+
{{username}}
- 账号:{{account}}
-
+ 账号:{{account}}
+
+
+
@@ -54,8 +56,7 @@
return
}
this.isLoad = true
- this.$data.account = wx.getStorageSync('account')
- this.$data.username = wx.getStorageSync('nickname')
+ this.getInfo()
},
methods: {
reOnLoad() {
@@ -65,6 +66,9 @@
return
}
this.isLoad = true
+ if (this.isLoad) {
+ this.getInfo()
+ }
},
failToLoad() {
uni.reLaunch({
@@ -86,17 +90,22 @@
url: '/pages/Partnerships/Partnerships'
})
},
- toEdit(){
+ toEdit() {
uni.navigateTo({
- url:'/pages/my/edit/edit'
+ url: '/pages/my/edit/edit'
+ })
+ },
+ //---------页面调用接口示例------------
+ getInfo() {
+ this.$api.getUser().then(res => {
+ var data = res.data.data
+ if (data) {
+ this.src = this.$api.imgUrl + data.avatar
+ this.username = data.nickname
+ this.account = data.sn
+ }
})
}
- //---------页面调用接口示例------------
- // getInfo() {
- // this.$api.getUserInfo().then(res => {
- // console.log('userInfo', res);
- // })
- // }
}
}
@@ -134,9 +143,8 @@
font-weight: 1rpx;
display: flex;
}
- .edit-icon{
-
- }
+
+ .edit-icon {}
}
\ No newline at end of file
diff --git a/pages/publish/publishAddress/publishAddress.vue b/pages/publish/publishAddress/publishAddress.vue
index edb7c1f..309985f 100644
--- a/pages/publish/publishAddress/publishAddress.vue
+++ b/pages/publish/publishAddress/publishAddress.vue
@@ -1,46 +1,60 @@
-
-
-
-
- 请选择所属区域
-
-
-
-
-
-
- 请选择行业业态
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{form.region}}
+ 请选择所属区域
-
-
- 发布
-
+
+
+
+
+
+
+ {{form.trade}}
+ 请选择行业
+
+
+
+
+
+
+ {{form.karma}}
+ 请选择业态
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -48,53 +62,183 @@
export default {
data() {
return {
- regionColumns:[JSON.parse(uni.getStorageSync('regionList'))]||[],
- ShopInfomation:{
- city:'',
- area:'',
- count:0,
-
+ regionColumns: [JSON.parse(uni.getStorageSync('regionList'))] || [],
+ ShopInfomation: {
+ city: '',
+ area: '',
+ count: 0,
+
},
-
- form:{
- title:''
+
+ form: {
+ title: '',
+ region: '',
+ place: '',
+ trade: '',
+ karma: '',
+ size: '',
+ rent: '',
+ sell: '',
+ name: '',
+ call: '',
+ introduce: ''
+ },
+ Classcolumns: [],
+ ClassCheckId:'',
+ Karmacolumns: [],
+ pid:[],
+ show1: false,
+ show2: false,
+ show3: false,
+ rules: {
+ 'title': [{
+ required: true,
+ message: '请输入标题',
+ trigger: ['change', 'blur']
+ }],
+ 'trade': [{
+ required: true,
+ message: '请选择行业',
+ trigger: ['change', 'blur']
+ }],
+ 'region': [{
+ required: true,
+ message: '请选择地区',
+ trigger: ['change', 'blur']
+ }],
+ 'karma': [{
+ required: true,
+ message: '请选择业态',
+ trigger: ['change', 'blur']
+ }],
+ 'name': [{
+ required: true,
+ message: '请输入姓名',
+ trigger: ['change', 'blur']
+ }],
+ 'sell': [{
+ required: true,
+ message: '请输入转让金',
+ trigger: ['change', 'blur']
+ }],
+ 'introduce': [{
+ required: true,
+ message: '请输入介绍',
+ trigger: ['change', 'blur']
+ }],
+ 'size': [{
+ required: true,
+ message: '请输入面积',
+ trigger: ['change', 'blur']
+ }],
+ 'rent': [{
+ required: true,
+ message: '请输入租金',
+ trigger: ['change', 'blur']
+ }],
+ 'place': [{
+ required: true,
+ message: '请输入地址',
+ trigger: ['change', 'blur']
+ }],
+ 'call':[{
+ required: true,
+ message: '请输入电话号码',
+ },
+ {
+ validator: (rule, value, callback) => {
+ if(value) {
+ return this.$u.test.mobile(value);
+ } else {
+ return true
+ }
+ },
+ message: '号码不正确',
+ trigger: ['change','blur'],
+ }]
+
},
- columns:[
- ],
- show1:false,
- show2:false,
- show3:false,
}
-
},
methods: {
- confirmArea(e) {
- this.ShopInfomation.city = e.value[0]
- this.ShopInfomation.area = e.value[1]
- this.show1 = false
- },
- submit(){
- console.log('提交');
+ handleSearchAddress() {
+ uni.navigateTo({
+ url: '/pages/publish/chooseAddress/chooseAddress'
+ })
+ },
+ submit() {
+ this.$refs.uForm.validate().then(res => {
+ console.log("提交表单信息:" + JSON.stringify(this.form))
+ uni.$u.toast('发布成功')
+ // 调用服务端入表接口W
+ }).catch(errors => {
+ console.log("失败信息:" + JSON.stringify(errors))
+ // uni.$u.toast('校验失败')
+ })
+ },
+ tradeConfirm(e){
+ this.show2 = false
+ this.form.trade = e.value[0]
+ this.ClassCheckId = this.pid[e.indexs[0]]
+ this.$api.getClassList(this.ClassCheckId).then(res => {
+ // console.log(res);
+ this.Karmacolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ })
+ },
+ karmaConfirm(e){
+ this.show3 = false
+ this.form.karma = e.value[0]
+ },
+ regionConfirm(e){
+ this.show1 = false
+ this.form.region = e.value[0]
+ },
+ },
+ onReady() {
+ this.$refs.uForm.setRules(this.rules)
+
+ },
+ onLoad() {
+ this.$api.getClassList().then(res =>{
+ // console.log(res.data.data.length);
+ this.Classcolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ this.pid = res.data.data.map((item) => {
+ return item = item.id
+ })
+
+ })
+ },
+ computed:{
+ isChecked(index){
+ if(index.length > 0)
+ return true;
+ else
+ return false;
}
}
}
+
\ No newline at end of file
diff --git a/pages/publish/publishInvestment/publishInvestment.vue b/pages/publish/publishInvestment/publishInvestment.vue
index 81cfadd..6160647 100644
--- a/pages/publish/publishInvestment/publishInvestment.vue
+++ b/pages/publish/publishInvestment/publishInvestment.vue
@@ -3,50 +3,57 @@
- 发布项目图片({{ShopInfomation.count}}/5)
+ 发布房源图片({{ShopInfomation.count}}/5)
+
+
+
+
+
+
+
+ {{form.region}}
+ 请选择所属区域
-
-
-
-
- 请选择所属区域
-
-
-
-
-
-
-
-
-
- 请选择行业类型
-
-
-
-
-
-
- 请选择行业业态
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 发布
-
+
+
+
+
+
+
+ {{form.trade}}
+ 请选择行业
+
+
+
+
+
+
+ {{form.karma}}
+ 请选择业态
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布
+
@@ -54,53 +61,202 @@
export default {
data() {
return {
- regionColumns:[JSON.parse(uni.getStorageSync('regionList'))]||[],
- ShopInfomation:{
- city:'',
- area:'',
- count:0,
-
+ regionColumns: [JSON.parse(uni.getStorageSync('regionList'))] || [],
+ ShopInfomation: {
+ city: '',
+ area: '',
+ count: 0,
+
},
-
- form:{
- title:''
+
+ form: {
+ title: '',
+ region: '',
+ place: '',
+ trade: '',
+ karma: '',
+ size: '',
+ rent: '',
+ sell: '',
+ name: '',
+ call: '',
+ introduce: ''
+ },
+ Classcolumns: [],
+ ClassCheckId:'',
+ Karmacolumns: [],
+ pid:[],
+ show1: false,
+ show2: false,
+ show3: false,
+ rules: {
+ 'title': [{
+ required: true,
+ message: '请输入标题',
+ trigger: ['change', 'blur']
+ }],
+ 'trade': [{
+ required: true,
+ message: '请选择行业',
+ trigger: ['change', 'blur']
+ }],
+ 'region': [{
+ required: true,
+ message: '请选择地区',
+ trigger: ['change', 'blur']
+ }],
+ 'karma': [{
+ required: true,
+ message: '请选择业态',
+ trigger: ['change', 'blur']
+ }],
+ 'name': [{
+ required: true,
+ message: '请输入姓名',
+ trigger: ['change', 'blur']
+ }],
+ 'sell': [{
+ required: true,
+ message: '请输入转让金',
+ trigger: ['change', 'blur']
+ }],
+ 'introduce': [{
+ required: true,
+ message: '请输入介绍',
+ trigger: ['change', 'blur']
+ }],
+ 'size': [{
+ required: true,
+ message: '请输入面积',
+ trigger: ['change', 'blur']
+ }],
+ 'rent': [{
+ required: true,
+ message: '请输入租金',
+ trigger: ['change', 'blur']
+ }],
+ 'place': [{
+ required: true,
+ message: '请输入地址',
+ trigger: ['change', 'blur']
+ }],
+ 'call':[{
+ required: true,
+ message: '请输入电话号码',
+ },
+ {
+ validator: (rule, value, callback) => {
+ if(value) {
+ return this.$u.test.mobile(value);
+ } else {
+ return true
+ }
+ },
+ message: '号码不正确',
+ trigger: ['change','blur'],
+ }]
+
},
- columns:[
- ],
- show1:false,
- show2:false,
- show3:false,
}
-
},
methods: {
- confirmArea(e) {
- this.ShopInfomation.city = e.value[0]
- this.ShopInfomation.area = e.value[1]
- this.show1 = false
- },
- submit(){
- console.log('提交');
+ handleSearchAddress() {
+ uni.navigateTo({
+ url: '/pages/publish/chooseAddress/chooseAddress'
+ })
+ },
+ changeAddress(e) {
+ // console.log('changeAddress', e);
+ this.getAddressList(e)
+ },
+ getAddressList(value) {
+ var that = this
+ uni.request({
+ url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + value + '&key=' +
+ that.$api.key,
+ success(res) {
+ console.log('diz', res.data.result.location);
+ console.log('lat', res.data.result.location.lat);
+ console.log('lng', res.data.result.location.lng);
+ },
+ fail(err) {
+ console.log('请求区域失败:', err);
+ }
+ })
+ },
+ submit() {
+ this.$refs.uForm.validate().then(res => {
+ console.log("提交表单信息:" + JSON.stringify(this.form))
+ uni.$u.toast('发布成功')
+ // 调用服务端入表接口W
+ }).catch(errors => {
+ console.log("失败信息:" + JSON.stringify(errors))
+ // uni.$u.toast('校验失败')
+ })
+ },
+ tradeConfirm(e){
+ this.show2 = false
+ this.form.trade = e.value[0]
+ this.ClassCheckId = this.pid[e.indexs[0]]
+ this.$api.getClassList(this.ClassCheckId).then(res => {
+ // console.log(res);
+ this.Karmacolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ })
+ },
+ karmaConfirm(e){
+ this.show3 = false
+ this.form.karma = e.value[0]
+ },
+ regionConfirm(e){
+ this.show1 = false
+ this.form.region = e.value[0]
+ },
+ },
+ onReady() {
+ this.$refs.uForm.setRules(this.rules)
+
+ },
+ onLoad() {
+ this.$api.getClassList().then(res =>{
+ // console.log(res.data.data.length);
+ this.Classcolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ this.pid = res.data.data.map((item) => {
+ return item = item.id
+ })
+
+ })
+ },
+ computed:{
+ isChecked(index){
+ if(index.length > 0)
+ return true;
+ else
+ return false;
}
}
}
+
\ No newline at end of file
diff --git a/pages/publish/publishRent/publishRent.vue b/pages/publish/publishRent/publishRent.vue
index 425d647..6670fde 100644
--- a/pages/publish/publishRent/publishRent.vue
+++ b/pages/publish/publishRent/publishRent.vue
@@ -6,40 +6,45 @@
发布店铺图片({{ShopInfomation.count}}/5)
-
-
+
+
-
- 请选择所属区域
+
+ {{form.region}}
+ 请选择所属区域
+
-
+
-
+
-
-
+
+
-
- 请选择行业类型
+
+ {{form.trade}}
+ 请选择店铺行业
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
@@ -60,14 +65,79 @@
},
- form:{
- title:''
+ form: {
+ title: '',
+ region: '',
+ place: '',
+ trade: '',
+ size: '',
+ rent: '',
+ name: '',
+ call: '',
+ introduce: ''
},
- columns:[
- ],
+ Classcolumns:[],
show1:false,
show2:false,
show3:false,
+ rules: {
+ 'title': [{
+ required: true,
+ message: '请输入标题',
+ trigger: ['change', 'blur']
+ }],
+ 'trade': [{
+ required: true,
+ message: '请选择行业',
+ trigger: ['change', 'blur']
+ }],
+ 'region': [{
+ required: true,
+ message: '请选择地区',
+ trigger: ['change', 'blur']
+ }],
+ 'name': [{
+ required: true,
+ message: '请输入姓名',
+ trigger: ['change', 'blur']
+ }],
+ 'introduce': [{
+ required: true,
+ message: '请输入介绍',
+ trigger: ['change', 'blur']
+ }],
+ 'size': [{
+ required: true,
+ message: '请输入面积',
+ trigger: ['change', 'blur']
+ }],
+ 'rent': [{
+ required: true,
+ message: '请输入租金',
+ trigger: ['change', 'blur']
+ }],
+ 'place': [{
+ required: true,
+ message: '请输入地址',
+ trigger: ['change', 'blur']
+ }],
+ 'call':[{
+ required: true,
+ message: '请输入电话号码',
+ },
+ {
+ validator: (rule, value, callback) => {
+ if(value) {
+ return this.$u.test.mobile(value);
+ } else {
+ return true
+ }
+ },
+ message: '号码不正确',
+ trigger: ['change','blur'],
+ }]
+
+ },
}
},
@@ -77,10 +147,37 @@
this.ShopInfomation.area = e.value[1]
this.show1 = false
},
- submit(){
- console.log('提交');
+ submit() {
+ this.$refs.uForm.validate().then(res => {
+ console.log("提交表单信息:" + JSON.stringify(this.form))
+ uni.$u.toast('发布成功')
+ // 调用服务端入表接口W
+ }).catch(errors => {
+ console.log("失败信息:" + JSON.stringify(errors))
+ // uni.$u.toast('校验失败')
+ })
+ },
+ tradeConfirm(e){
+ this.show2 = false
+ this.form.trade = e.value[0]
+ },
+ regionConfirm(e){
+ this.show1 = false
+ this.form.region = e.value[0]
}
- }
+ },
+ onLoad() {
+ this.$api.getClassList().then(res =>{
+ // console.log(res.data.data.length);
+ this.Classcolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ })
+ },
+ onReady() {
+ this.$refs.uForm.setRules(this.rules)
+
+ },
}
@@ -123,7 +220,12 @@
font-weight:1px;
color: #c1c4c7;
}
-
+ .checkedtext{
+ margin-top: 5rpx;
+ font-size: 28rpx;
+ font-weight: 1px;
+ border-style: none;
+ }
.picker{
display: flex;
justify-content: space-between;
diff --git a/pages/publish/publishTransfer/publishTransfer.vue b/pages/publish/publishTransfer/publishTransfer.vue
index 757e576..c9154cf 100644
--- a/pages/publish/publishTransfer/publishTransfer.vue
+++ b/pages/publish/publishTransfer/publishTransfer.vue
@@ -1,60 +1,62 @@
-
发布房源图片({{ShopInfomation.count}}/5)
-
-
+
+
-
- 请选择所属区域
+
+ {{form.region}}
+ 请选择所属区域
+
-
+
+ v-model="form.region" @confirm="regionConfirm">
-
+
-
- 请选择行业类型
+
+ {{form.trade}}
+ 请选择店铺行业
-
+
-
+
-
- 请选择行业业态
+
+ {{form.karma}}
+ 请选择店铺业态
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -90,25 +92,79 @@
call: '',
introduce: ''
},
- columns: [
-
- ],
+ Classcolumns: [],
+ ClassCheckId:'',
+ Karmacolumns: [],
+ pid:[],
show1: false,
show2: false,
show3: false,
rules: {
'title': [{
- type: 'string',
- require: true,
+ required: true,
+ message: '请输入标题',
+ trigger: ['change', 'blur']
+ }],
+ 'trade': [{
+ required: true,
+ message: '请选择行业',
+ trigger: ['change', 'blur']
+ }],
+ 'region': [{
+ required: true,
+ message: '请选择地区',
+ trigger: ['change', 'blur']
+ }],
+ 'karma': [{
+ required: true,
+ message: '请选择业态',
+ trigger: ['change', 'blur']
+ }],
+ 'name': [{
+ required: true,
message: '请输入姓名',
trigger: ['change', 'blur']
}],
+ 'sell': [{
+ required: true,
+ message: '请输入转让金',
+ trigger: ['change', 'blur']
+ }],
+ 'introduce': [{
+ required: true,
+ message: '请输入介绍',
+ trigger: ['change', 'blur']
+ }],
+ 'size': [{
+ required: true,
+ message: '请输入面积',
+ trigger: ['change', 'blur']
+ }],
+ 'rent': [{
+ required: true,
+ message: '请输入租金',
+ trigger: ['change', 'blur']
+ }],
'place': [{
- type: 'string',
- require: true,
+ required: true,
message: '请输入地址',
trigger: ['change', 'blur']
}],
+ 'call':[{
+ required: true,
+ message: '请输入电话号码',
+ },
+ {
+ validator: (rule, value, callback) => {
+ if(value) {
+ return this.$u.test.mobile(value);
+ } else {
+ return true
+ }
+ },
+ message: '号码不正确',
+ trigger: ['change','blur'],
+ }]
},
}
@@ -119,11 +175,6 @@
url: '/pages/publish/chooseAddress/chooseAddress'
})
},
- confirmArea(e) {
- this.ShopInfomation.city = e.value[0]
- this.ShopInfomation.area = e.value[1]
- this.show1 = false
- },
submit() {
this.$refs.uForm.validate().then(res => {
console.log("提交表单信息:" + JSON.stringify(this.form))
@@ -135,8 +186,8 @@
})
},
changeAddress(e) {
- console.log('changeAddress', e);
- // this.getAddressList(e)
+ // console.log('changeAddress', e);
+ this.getAddressList(e)
},
getAddressList(value) {
var that = this
@@ -153,9 +204,49 @@
}
})
},
+ tradeConfirm(e){
+ this.show2 = false
+ this.form.trade = e.value[0]
+ this.ClassCheckId = this.pid[e.indexs[0]]
+ this.$api.getClassList(this.ClassCheckId).then(res => {
+ // console.log(res);
+ this.Karmacolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ })
+ },
+ karmaConfirm(e){
+ this.show3 = false
+ this.form.karma = e.value[0]
+ },
+ regionConfirm(e){
+ this.show1 = false
+ this.form.region = e.value[0]
+ },
},
onReady() {
this.$refs.uForm.setRules(this.rules)
+
+ },
+ onLoad() {
+ this.$api.getClassList().then(res =>{
+ // console.log(res.data.data.length);
+ this.Classcolumns = res.data.data.map((item) => {
+ return item = item.name
+ })
+ this.pid = res.data.data.map((item) => {
+ return item = item.id
+ })
+
+ })
+ },
+ computed:{
+ isChecked(index){
+ if(index.length > 0)
+ return true;
+ else
+ return false;
+ }
}
}
@@ -203,7 +294,12 @@
font-weight: 1px;
color: #c1c4c7;
}
-
+ .checkedtext{
+ margin-top: 5rpx;
+ font-size: 28rpx;
+ font-weight: 1px;
+ border-style: none;
+ }
.picker {
display: flex;
justify-content: space-between;
diff --git a/pages/published/published.vue b/pages/published/published.vue
index fa4fba3..099a485 100644
--- a/pages/published/published.vue
+++ b/pages/published/published.vue
@@ -7,11 +7,13 @@
-
-
-
-
-
+
+
+
+
+
+
+
@@ -20,10 +22,17 @@
data() {
return {
titletext:'',
- listId:''
+ listId:'',
+ matchList:[]
}
},
methods: {
+ getMatch(){
+ this.$api.getMyMatch().then(res => {
+ this.macthList = res.data.data
+ console.log(res);
+ })
+ }
},
onLoad: function (option) {
@@ -44,9 +53,10 @@
if(this.titletext == '发布的店铺出租'){
this.listId = 3
}
- if(this.titletext == '我的匹配')
+ if(this.titletext == '我的匹配'){
this.listId = 4
-
+ this.getMatch()
+ }
},
computed:{
@@ -87,4 +97,8 @@
page{
background-color: #F8F8F8;
}
+
+ .content{
+ margin: 0 10px;
+ }
diff --git a/service/request.js b/service/request.js
index 7686aca..727a26b 100644
--- a/service/request.js
+++ b/service/request.js
@@ -1,4 +1,4 @@
-const serverHost = 'https://spsp.feashow.com/api/' //http://xx.xxx.xx
+const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx
const service = {
get(url, data) {
@@ -128,9 +128,9 @@ const toast = {
}
const apiService = {
serverHost,
- imgUrl:'https://spsp.feashow.com/',
- key:'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB',
- uploadImgUrl: serverHost + `/upload/image/`,
+ imgUrl: 'https://spsp.feashow.com/',
+ key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB',
+ uploadImgUrl: serverHost + '/upload/image/',
//登录接口
login(data) {
const url = '/login/mnpLogin'
@@ -145,6 +145,13 @@ const apiService = {
resolve(service.post(url, data))
})
},
+ //地图
+ getMap(data) {
+ const url = '/home/map'
+ return new Promise((resolve, reject) => {
+ resolve(service.post(url, data))
+ })
+ },
// 获取客服电话
getCsTel() {
const url = '/center/cfg?key=kf_phone'
@@ -153,10 +160,10 @@ const apiService = {
})
},
// 获取详情
- getProductDetail(id) {
- const url = `/home/pdetail/?productId=${id}`
+ getShopDetail(type,id) {
+ const url = `/home/adetail/?type=${type}&id=${id}`
return new Promise((resolve, reject) => {
- resolve(service.get(url, id))
+ resolve(service.get(url))
})
},
//修改
@@ -197,17 +204,55 @@ const apiService = {
resolve(service.get(url))
})
},
+ //获取首页分析数据
getStat() {
const url = `/home/stat`
return new Promise((resolve, reject) => {
resolve(service.get(url))
})
},
- editPersonInfo(data){
+ //获取个人信息
+ getUser() {
+ const url = '/center/userinfo'
+ return new Promise((resolve, reject) => {
+ resolve(service.get(url))
+ })
+ },
+ //修改个人信息
+ editPersonInfo(data) {
const url = `/center/userupdate`
+ return new Promise((resolve, reject) => {
+ resolve(service.post(url, data))
+ })
+ },
+ //获取我的匹配
+ getMyMatch() {
+ const url = `/center/match/`
+ return new Promise((resolve, reject) => {
+ resolve(service.get(url))
+ })
+ },
+ //获取行业和业态
+ getClassList(pid) {
+ const url = `/home/classlist/?pid=${pid}`
+ return new Promise((resolve, reject) => {
+ resolve(service.post(url))
+ })
+ },
+ //招募合伙
+ toBePartner(data){
+ const url = `/center/partner`
return new Promise((resolve,reject) => {
+ console.log(data);
resolve(service.post(url,data))
})
+ },
+ //获取商铺列表
+ getShopList(query){
+ const url = `/shop/alllist${query}`
+ return new Promise((resolve,reject) => {
+ resolve(service.get(url))
+ })
}
}
export {
diff --git a/static/shoplist/service.png b/static/shoplist/service.png
new file mode 100644
index 0000000..86c4b6b
Binary files /dev/null and b/static/shoplist/service.png differ
diff --git a/static/shoplist/share.png b/static/shoplist/share.png
new file mode 100644
index 0000000..780dd85
Binary files /dev/null and b/static/shoplist/share.png differ