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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ @@ -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 @@ + + + + + \ 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 @@ @@ -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 @@