diff --git a/components/active-card/address-list.vue b/components/active-card/address-list.vue
new file mode 100644
index 0000000..8a584e9
--- /dev/null
+++ b/components/active-card/address-list.vue
@@ -0,0 +1,145 @@
+
+
+ 【{{item.name}}】
+
+ 【电话】{{item.phone}}
+
+
+ 【地址】{{item.region}}
+
+
+ 【详细地址】{{item.detailAddress}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/active-card/order-list.vue b/components/active-card/order-list.vue
new file mode 100644
index 0000000..6e7a38d
--- /dev/null
+++ b/components/active-card/order-list.vue
@@ -0,0 +1,159 @@
+
+
+ 【{{item.title}}】
+
+ 【商品】{{item.shopName}}
+
+
+ 【地址】{{item.addressText}}
+
+
+ 【价格】{{item.price}}
+
+
+ 【数量】{{item.num}}
+
+
+ 【类型】微信订单
+
+
+ 【类型】积分订单
+
+
+
+ 【下单时间】{{item.createTime}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/jianghua-card/shop-card.vue b/components/jianghua-card/shop-card.vue
new file mode 100644
index 0000000..453d3ce
--- /dev/null
+++ b/components/jianghua-card/shop-card.vue
@@ -0,0 +1,93 @@
+
+
+
+ {{item.title}}
+ 原价:{{item.oldPrice}}元
+ {{item.price}}
+ {{item.intgerPrice}}/积分可兑换
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/jianghua-card/xuanchuan-card.vue b/components/jianghua-card/xuanchuan-card.vue
new file mode 100644
index 0000000..b45f532
--- /dev/null
+++ b/components/jianghua-card/xuanchuan-card.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+ {{item.title}}
+ {{item.createTime}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/new-card/index.vue b/components/new-card/index.vue
index 34a3e57..70d0fa2 100644
--- a/components/new-card/index.vue
+++ b/components/new-card/index.vue
@@ -1,11 +1,13 @@
- {{item.title}}
- {{item.createTime}}
+ {{item.title}}/{{item.payType}}
+ {{item.titleText}}
+ {{item.address}}
+ {{item.price}}/月
-
+
@@ -32,9 +34,12 @@
\ No newline at end of file
diff --git a/components/user-card/index-price.vue b/components/user-card/index-price.vue
new file mode 100644
index 0000000..6e2482f
--- /dev/null
+++ b/components/user-card/index-price.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+ {{item.name}} - {{item.price}}
+ {{item.name}} + {{item.price}}
+ {{item.createTime}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 1b63fa9..b40c752 100644
--- a/pages.json
+++ b/pages.json
@@ -8,19 +8,21 @@
"path": "pages/home/index",
"name": "home",
"style": {
- "navigationBarTitleText": "兼兼街"
+ "navigationBarTitleText": "兼兼街",
+ "enablePullDownRefresh": true
}
},
{
- "path": "pages/car/index",
+ "path": "pages/jianhua/index",
"style": {
- "navigationBarTitleText": "江华信息"
+ "navigationBarTitleText": "便民江华",
+ "enablePullDownRefresh": true
}
},
{
"path": "pages/news/index",
"style": {
- "navigationBarTitleText": "大学家教",
+ "navigationBarTitleText": "长沙租房",
"enablePullDownRefresh": true
}
},
@@ -42,12 +44,47 @@
"navigationBarTitleText": "详情"
}
},
+
+ {
+ "path": "pages/my/my-order-list",
+ "style": {
+ "navigationBarTitleText": "订单列表"
+ }
+ },
+ {
+ "path": "pages/my/my-address-list",
+ "style": {
+ "navigationBarTitleText": "地址信息"
+ }
+ },
+ {
+ "path": "pages/my/my-addre",
+ "style": {
+ "navigationBarTitleText": "增加地址"
+ }
+ },
+
{
"path": "pages/my/list-fensi",
"style": {
"navigationBarTitleText": "我的粉丝"
}
},
+
+ {
+ "path": "pages/my/list-price",
+ "style": {
+ "navigationBarTitleText": "我的余额"
+ }
+ },
+
+ {
+ "path": "pages/my/list-integer",
+ "style": {
+ "navigationBarTitleText": "我的积分"
+ }
+ },
+
{
"path": "pages/my/list-renzhen",
"style": {
@@ -129,11 +166,20 @@
},
{
- "path": "pages/car/course-detial",
+ "path": "pages/jianhua/course-detial",
"style": {
"navigationBarTitleText": "信息详情"
}
}
+ ,{
+ "path" : "components/jianghua-card/xuanchuan-card",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
@@ -163,15 +209,15 @@
"text": "最新兼职"
},
{
- "pagePath": "pages/car/index",
+ "pagePath": "pages/jianhua/index",
"iconPath": "static/img/tabbar/icon-new.png",
"selectedIconPath": "static/img/tabbar/icon-new-active.png",
- "text": "江华信息"
+ "text": "便民江华"
}, {
"pagePath": "pages/news/index",
"iconPath": "static/img/tabbar/zxq.png",
"selectedIconPath": "static/img/tabbar/zx.png",
- "text": "大学家教"
+ "text": "长沙租房"
}, {
"pagePath": "pages/my/index",
"iconPath": "static/img/tabbar/icon-my.png",
diff --git a/pages/car/index.vue b/pages/car/index.vue
deleted file mode 100644
index 699e5eb..0000000
--- a/pages/car/index.vue
+++ /dev/null
@@ -1,269 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 027b871..ca5e12a 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -4,7 +4,7 @@
:list="swpList"
keyName="image"
indicator
- height="220"
+ height="250"
indicatorActiveColor="#FFFFFF"
indicatorMode="dot"
circular
@@ -50,7 +50,7 @@
return{
params:{
pageNo:1,
- labelClass:'1616491855729131521',
+ labelClass:'1636755993901731841',
pageSize:10,
total: null,
isLock: true
@@ -80,7 +80,8 @@
this.params.pageNo = 1;
this.params.total = null;
this.params.isLock = true;
- this.getstudy()
+ this.getstudy();
+ uni.stopPullDownRefresh();
},
onReachBottom() {
if(this.params.isLock){
@@ -102,7 +103,7 @@
},
getbannerList(){
- this.$api('bannerList')
+ this.$api('bannerList',{state:'0'})
.then(res=>{
if(res.code == 200){
this.swpList = res.result
@@ -118,11 +119,12 @@
})
},
getstudy(){//学习列表
- if(this.pageNo>1){
- uni.showLoading({})
- }
+
+ uni.showLoading()
+
this.$api('JobList',this.params)
.then(res=>{
+ uni.hideLoading();
if(res.code == 200){
if(this.params.total== null) {
this.params.total = res.result.total
diff --git a/pages/home/new-detail.vue b/pages/home/new-detail.vue
index 4ef5c17..a5b84bb 100644
--- a/pages/home/new-detail.vue
+++ b/pages/home/new-detail.vue
@@ -1,8 +1,12 @@
- {{informData.title}}
+ {{informData.title}}/{{informData.payType}}
+ {{informData.price}}/月
+ {{informData.titleText}}
{{informData.createTime}}
-
+ 出租地址: {{informData.address}}
+ 联系人: {{informData.homeName}} / {{informData.homePhone}}
+
@@ -23,7 +27,7 @@
methods:{
getinformFindById(id){
uni.showLoading()
- this.$api('informFindById',{id})
+ this.$api('getHouseById',{id})
.then(res=>{
uni.hideLoading()
if(res.code == 200){
@@ -44,6 +48,32 @@
color: #000000;
font-weight: 700;
}
+ .price{
+ font-size: 34rpx;
+ color: #FF0000;
+ margin: 40rpx 0;
+
+ }
+ .titleText{
+ font-size: 24rpx;
+ color: #000000;
+ margin: 40rpx 0;
+ }
+ .homePhone{
+ font-size: 28rpx;
+ color: #000000;
+ margin: 40rpx 0;
+ }
+ .homeName{
+ font-size: 28rpx;
+ color: #000000;
+ margin: 40rpx 0;
+ }
+ .address{
+ font-size: 22rpx;
+ color: #000000;
+ margin: 20rpx 0;
+ }
.time {
font-size: 22rpx;
color: #C8C8C8;
diff --git a/pages/car/course-detial.vue b/pages/jianhua/course-detial.vue
similarity index 95%
rename from pages/car/course-detial.vue
rename to pages/jianhua/course-detial.vue
index 34efe9f..20a7ad0 100644
--- a/pages/car/course-detial.vue
+++ b/pages/jianhua/course-detial.vue
@@ -45,7 +45,7 @@
@click="getCreteClick">立即购买({{dataInfo.price}})
积分兑换({{dataInfo.intgerPrice}})
+ @click="getCreteClickJf">积分兑换({{dataInfo.intgerPrice}})
@@ -164,22 +164,24 @@
getCreteClick() {
let that = this;
- this.$api('carClick', {
- newId: this.dataInfo.id
+ this.$api('createShopOrder', {
+ id: this.dataInfo.id
})
.then(res => {
+ // if (res.code == 200) {
+ // that.erop = true;
+ // }
if (res.code == 200) {
- that.erop = true;
- }
- if (res.code == 500) {
that.$api('create', {
- id: that.dataInfo.id
+ id: res.result.id
})
.then(res => {
+
+ console.log(res)
that.$jweixin.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
- appId: 'wxdabccf5a0110cfab', // 必填,公众号的唯一标识
+ appId: 'wx6fb4a17b28186d58', // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.noncestr, // 必填,生成签名的随机串
signature: res.result.sgture, // 必填,签名
@@ -190,7 +192,7 @@
});
that.$jweixin.chooseWXPay({
- appId: 'wxdabccf5a0110cfab',
+ appId: 'wx6fb4a17b28186d58',
timestamp: res.result
.timeStamp, // 支付签名时间戳,注意微信 jssdk 中的所有使用 timestamp 字段均为小写。但最新版的支付后台生成签名使用的 timeStamp 字段名需大写其中的 S 字符
nonceStr: res.result.nonceStr, // 支付签名随机串,不长于 32 位
@@ -211,7 +213,19 @@
})
},
-
+ getCreteClickJf(){
+ this.$api('createIntegerOrder', {
+ id: this.dataInfo.id
+ })
+ .then(res => {
+ this.$Toast('购买成功')
+ setTimeout(() => {
+ uni.navigateTo({
+ url: '/pages/my/my-order-list'
+ })
+ }, 1000)
+ })
+ },
diff --git a/pages/jianhua/index.vue b/pages/jianhua/index.vue
new file mode 100644
index 0000000..cf9dd88
--- /dev/null
+++ b/pages/jianhua/index.vue
@@ -0,0 +1,318 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/index.vue b/pages/my/index.vue
index 51ad62f..dd3a800 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -1,11 +1,11 @@
-
-
- {{userInfo?userInfo.nickName : '未登录'}}
- {{userInfo?'余额:'+userInfo.price : ''}}
- {{userInfo?'积分:'+userInfo.integerPrice : ''}}
+
+
+ {{userInfo?userInfo.nickName : '未登录'}}
+
+ {{userInfo?'积分:'+userInfo.integerPrice : ''}}
@@ -50,17 +50,34 @@
},
{
name:'我要发布',
- src:require('@/static/img/tabbar/fabu-xuan.png'),
+ src:require('@/static/img/tabbar/add.png'),
role:'0',
pages:'/pages/my/my-fabujianzhi'
},
{
name:'发布信息',
- src:require('@/static/img/tabbar/fabu-xuan.png'),
+ src:require('@/static/img/tabbar/xinxi.png'),
role:'0',
pages:'/pages/my/my-fabujianzhi-list'
},
-
+ {
+ name:'订单列表',
+ src:require('@/static/img/tabbar/order.png'),
+ role:'0',
+ pages:'/pages/my/my-order-list'
+ },
+ {
+ name:'地址列表',
+ src:require('@/static/img/tabbar/address.png'),
+ role:'0',
+ pages:'/pages/my/my-address-list'
+ },
+ {
+ name:'增加地址',
+ src:require('@/static/img/tabbar/fabu-xuan.png'),
+ role:'0',
+ pages:'/pages/my/my-addre'
+ }
]
}
@@ -112,6 +129,17 @@
}
})
},
+
+ toPrice(){
+ uni.navigateTo({
+ url:'/pages/my/list-price'
+ })
+ },
+ toInteger(){
+ uni.navigateTo({
+ url:'/pages/my/list-integer'
+ })
+ },
toUrl(url,name){
this.$api('myInfo')
@@ -194,7 +222,7 @@
.kefu-box {
position: absolute;
- bottom: 50rpx;
+ bottom: 1px;
.kefu{
width: 100vw;
@@ -217,8 +245,8 @@
color: #5E5E5E;
}
.image-img {
- width: 147rpx;
- height: 147rpx;
+ width: 130rpx;
+ height: 130rpx;
}
}
diff --git a/pages/my/list-integer.vue b/pages/my/list-integer.vue
new file mode 100644
index 0000000..fa4a8f9
--- /dev/null
+++ b/pages/my/list-integer.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+ {{userInfo?userInfo.nickName : '点击登录'}}
+ 积分余额:{{userInfo.integerPrice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/list-price.vue b/pages/my/list-price.vue
new file mode 100644
index 0000000..8e96de0
--- /dev/null
+++ b/pages/my/list-price.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+ {{userInfo?userInfo.nickName : '点击登录'}}
+ 我的余额:{{userInfo.price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/login-kehu.vue b/pages/my/login-kehu.vue
index d225cb2..54e57bf 100644
--- a/pages/my/login-kehu.vue
+++ b/pages/my/login-kehu.vue
@@ -72,8 +72,8 @@
})
},
logionClick(){
- let actoken ="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTAxNzI3NjAsInVzZXJuYW1lIjoib2ROdHc2dEJVNmMxenlnU1lmb2d4ZWdTX2xxbyJ9.btUCZf5Jhx6XZIDLqI8TVTa00edZ989sxzNXe0V0eiw";
- this.$store.commit('set_userToken', actoken);
+ let actoken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTA4NjAxNjgsInVzZXJuYW1lIjoib2ROdHc2dEJVNmMxenlnU1lmb2d4ZWdTX2xxbyJ9.OfGbI5WQJYA_wMUUz-BlGHunkLTO0aNoTyOgEdyt8UQ";
+ this.$store.commit('set_userToken',actoken);
uni.switchTab({
url:'/pages/my/index'
})
diff --git a/pages/my/my-addre.vue b/pages/my/my-addre.vue
new file mode 100644
index 0000000..190a524
--- /dev/null
+++ b/pages/my/my-addre.vue
@@ -0,0 +1,157 @@
+
+
+
+
+ 姓名:
+
+
+
+ 电话:
+
+
+
+ 地址:
+
+
+
+ 详细地址:
+
+
+
+
+ 提交地址信息
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/my-address-list.vue b/pages/my/my-address-list.vue
new file mode 100644
index 0000000..a9fb98f
--- /dev/null
+++ b/pages/my/my-address-list.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/my/my-order-list.vue b/pages/my/my-order-list.vue
new file mode 100644
index 0000000..e05f053
--- /dev/null
+++ b/pages/my/my-order-list.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/news/index.vue b/pages/news/index.vue
index 3bd2e00..648f53e 100644
--- a/pages/news/index.vue
+++ b/pages/news/index.vue
@@ -1,6 +1,17 @@
-
+
+
+
-
-
-
-
-
+
+
@@ -33,28 +41,19 @@