'首页改版'

dev
sxq 11 months ago
parent de283ee0fd
commit 984a4daf33
  1. 10
      api/newFun.js
  2. 5
      pages.json
  3. 2
      pages/activity/newGoods.vue
  4. 45
      pages/invite/index.vue
  5. 151
      pages/invite/list.vue
  6. 5
      pages/login/index.vue
  7. 29
      pages/news/user/invite.vue
  8. 3
      pages/news3/updatePrice.vue
  9. 2
      project.config.json

@ -1,5 +1,15 @@
import request from '@/utils/request' import request from '@/utils/request'
// 邀请有礼 记录
export const inviteGetList = (param) => {
return request.post('invite/getList', param)
}
// 邀请有礼
export const inviteInit = (param) => {
return request.post('invite/index', param)
}
// 足迹列表 删除 // 足迹列表 删除
export const goodsBrowseDel = (param) => { export const goodsBrowseDel = (param) => {
return request.get('goods/browseDel', param) return request.get('goods/browseDel', param)

@ -94,6 +94,11 @@
"navigationBarBackgroundColor": "#FF5554", "navigationBarBackgroundColor": "#FF5554",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
},{
"path": "pages/invite/list",
"style": {
"navigationBarTitleText": "邀请记录"
}
}, },
{ {
"path": "pages/custom/index", "path": "pages/custom/index",

@ -45,7 +45,7 @@
</template> </template>
<script> <script>
import img from "@/static/member/head.png" import img from "https://www.saas.njrenzhou.com/static/member/head.png"
import * as Api from '@/api/activity' import * as Api from '@/api/activity'
import { import {
getEmptyPaginateObj, getEmptyPaginateObj,

@ -4,7 +4,7 @@
<u-notice-bar mode="horizontal" :list="list" color="#fff" bg-color="rgba(255,255,255,0.22)"></u-notice-bar> <u-notice-bar mode="horizontal" :list="list" color="#fff" bg-color="rgba(255,255,255,0.22)"></u-notice-bar>
</view> </view>
<view class="invite-hd"> <view class="invite-hd">
<image src="@/static/news/invite-bg.png"></image> <image src="https://www.saas.njrenzhou.com/static/news/invite-bg.png"></image>
<view class="btn"></view> <view class="btn"></view>
<view class="rule"></view> <view class="rule"></view>
</view> </view>
@ -13,11 +13,11 @@
<view class="a"> <view class="a">
<view class="l"> <view class="l">
累计邀请好友( 累计邀请好友(
<view class="p">224</view> <view class="p">{{info.count_people}}</view>
</view> </view>
<view class="l"> <view class="l">
累计现金奖励( 累计现金奖励(
<view class="p">224</view> <view class="p">{{info.money}}</view>
</view> </view>
</view> </view>
<view class="b" @click="openPage(1)"> <view class="b" @click="openPage(1)">
@ -28,35 +28,35 @@
</view> </view>
</view> </view>
<view class="invite-bd-b"> <view class="invite-bd-b">
<image src="@/static/news/invite-bg2.png"></image> <image src="https://www.saas.njrenzhou.com/static/news/invite-bg2.png"></image>
<view class="a"> <view class="a">
<view class="l"> <view class="l">
可得288积分<br />188元优惠券 可得{{info.integral}}积分<br />{{info.coupon_name}}
</view> </view>
<view class="l"> <view class="l">
可返现3% 可返现{{info.one_order_rate}}%
</view> </view>
<view class="l"> <view class="l">
188元优惠券 {{info.one_order_rate}}{{info.coupon_name}}
</view> </view>
</view> </view>
</view> </view>
<view class="invite-bd-c"> <view class="invite-bd-c">
<image src="@/static/news/invite-bg3.png"></image> <image src="https://www.saas.njrenzhou.com/static/news/invite-bg3.png"></image>
<view class="a"> <view class="a">
<view class="l"> <view class="l">
188优惠券 {{info.one_order_rate}}{{info.coupon_name}}
</view> </view>
<view class="l"> <view class="l">
288积分 {{info.integral}}积分
</view> </view>
<view class="l"> <view class="l">
首单返3% 首单返{{info.one_order_rate}}%
</view> </view>
</view> </view>
</view> </view>
<view class="invite-bd-d"> <view class="invite-bd-d">
<image src="@/static/news/invite-bg4.png"></image> <image src="https://www.saas.njrenzhou.com/static/news/invite-bg4.png"></image>
<view class="p">立即邀请</view> <view class="p">立即邀请</view>
</view> </view>
</view> </view>
@ -64,12 +64,14 @@
</template> </template>
<script> <script>
import * as newFunApi from '@/api/newFun'
export default{ export default{
data(){ data(){
return{ return{
backgroundBg: { backgroundBg: {
"background": "rgba(255,255,255,0.22)" "background": "rgba(255,255,255,0.22)"
}, },
info: {},
list: [ list: [
'寒雨连江夜入吴', '寒雨连江夜入吴',
'平明送客楚山孤', '平明送客楚山孤',
@ -78,7 +80,21 @@
] ]
} }
}, },
onReady() {
this.getList();
},
methods: { methods: {
async getList() {
uni.showLoading({
title:"加载中"
})
const {status, data} = await newFunApi.inviteInit({});
if(status == 200){
uni.hideLoading();
this.info = data;
console.log(this.info)
}
},
openPage(index){ openPage(index){
if(index == 1){ if(index == 1){
uni.navigateTo({ uni.navigateTo({
@ -188,7 +204,7 @@
} }
.a{ .a{
width: 100%; width: 100%;
bottom: 50rpx; bottom: 40rpx;
padding: 0 25rpx; padding: 0 25rpx;
box-sizing: border-box; box-sizing: border-box;
z-index: 1; z-index: 1;
@ -217,7 +233,7 @@
} }
.a{ .a{
width: 260rpx; width: 260rpx;
bottom: 0; bottom: -60rpx;
box-sizing: border-box; box-sizing: border-box;
z-index: 1; z-index: 1;
right: 0; right: 0;
@ -230,7 +246,6 @@
text-align: center; text-align: center;
font-size: 22rpx; font-size: 22rpx;
font-weight: 500; font-weight: 500;
line-height: 150rpx;
color: #414141; color: #414141;
} }
} }

@ -1,90 +1,101 @@
<template> <template>
<view class="member"> <view class="user">
<view > <view class="user-bd">
<u-navbar title="邀请记录" back-icon-color="#fff" :border-bottom="false" title-color="#333" :background="background"></u-navbar> <view class="li" v-for="(a,i) in list" :key="i">
</view> <view class="l">
<view class="tab"> <image src="@/static/news/avater.png"></image>
<view class="tabList"> </view>
<view v-for="(item,index) in tabList" :key="index" class="tabItem"> <view class="m">
<view class="name" :style="{'color':item.value==chosed?'#FF4C4B':'#7A7A7A'}"> <view class="n">AUIIO</view>
{{item.name}} <view class="t">2023-02-12 10:00</view>
</view> </view>
<view class="line" v-if="item.value==chosed"> <view class="r">
+<text>18</text>
</view>
</view> </view>
</view> </view>
</view> </view>
<u-empty text="暂无信息" v-if="total == 0" mode="list"></u-empty>
</view> </view>
</template> </template>
<script> <script>
import img from "@/static/member/top.png" import * as newFunApi from '@/api/newFun'
export default{ export default {
data(){ data() {
return{ return {
background: { list: [],
background: 'url('+ img+') center top no-repeat', total: 1
backgroundSize: '100% auto', };
}, },
chosed:'0', onLoad() {
tabList:[ this.getList();
{ },
name:'待完成', methods: {
value:'0' async getList() {
},{ uni.showLoading({
name:'已完成', title:"加载中"
value:'1' })
},{ const {status, data} = await newFunApi.inviteGetList({});
name:'已完成', if(status == 200){
value:'2' uni.hideLoading();
} this.list = data.list.data;
] this.total = data.list.total
} console.log(this.total)
}
},
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.member{ .user{
width: 100%; padding: 0 0 130rpx;
background: url('../../static/member/merBack.png') 100% no-repeat; overflow: hidden;
background-size: 100% 100%; &-bd{
position:relative; padding: 0 20rpx 0 60rpx;;
} background-color: #FFFFFF;
.tab{ overflow: hidden;
width: 682rpx; margin-top: 20rpx;
height: 692rpx; .li{
background: #FFFFFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
opacity: 1;
margin: 48rpx 0 0 42rpx;
padding-top: 20rpx;
.tabList{
display: flex; display: flex;
justify-content: space-around; align-items: flex-start;
align-items: center; justify-content: space-between;
.tabItem{ padding: 35rpx 0;
.name{ border-bottom: 1px solid #F2F2F2;
width: 96rpx; .l{
height: 60rpx; width: 86rpx;
font-size: 32rpx; height: 86rpx;
font-family: PingFang SC, PingFang SC; margin-right: 25rpx;
font-weight: 600; image{
line-height: 44rpx; width: 100%;
height: 100%;
border-radius: 50%;
}
}
.m{
flex: 1;
max-width: 400rpx;
margin-right: 20rpx;
.n{
font-size: 28rpx;
font-weight: 400;
color: #545454;
} }
.t{
.line{
width: 48rpx;
height: 6rpx;
background: #FF4C4B;
border-radius: 56rpx 56rpx 56rpx 56rpx;
opacity: 1;
margin-top: 10rpx; margin-top: 10rpx;
margin-left: 24rpx; font-size: 28rpx;
font-weight: 400;
color: #A7A7A7;
}
}
.r{
font-size: 28rpx;
color: #FF4C4B;
text{
font-size: 36rpx;
} }
} }
} }
} }
</style> }
</style>

@ -27,7 +27,6 @@
<script> <script>
import * as UserApi from '@/api/user' import * as UserApi from '@/api/user'
import img from "@/static/news/login-bg.png";
import * as CaptchaApi from '@/api/captcha'; import * as CaptchaApi from '@/api/captcha';
import mpWeiXinMobile from './components/mp-weixin-mobile.vue' import mpWeiXinMobile from './components/mp-weixin-mobile.vue'
import store from '@/store'; import store from '@/store';
@ -43,7 +42,7 @@
showCountDown: false, showCountDown: false,
currentIndex: 0, currentIndex: 0,
background: { background: {
background: 'url(' + img + ') center top no-repeat', background: 'url(https://www.saas.njrenzhou.com/static/news/login-bg.png) center top no-repeat',
backgroundSize: '100%', backgroundSize: '100%',
}, },
phoneNum: '', phoneNum: '',
@ -152,7 +151,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.login { .login {
width: 100%; width: 100%;
background: #fffafb url(@/static/news/login-bg.png) center top no-repeat; background: #fffafb url(https://www.saas.njrenzhou.com/static/news/login-bg.png) center top no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
background-size: 100% auto; background-size: 100% auto;
min-height: 100vh; min-height: 100vh;

@ -1,7 +1,7 @@
<template> <template>
<view class="user"> <view class="user">
<view class="user-bd"> <view class="user-bd">
<view class="li" v-for="i in 2" :key="i"> <view class="li" v-for="(a,i) in list" :key="i">
<view class="l"> <view class="l">
<image src="@/static/news/avater.png"></image> <image src="@/static/news/avater.png"></image>
</view> </view>
@ -13,19 +13,36 @@
+<text>18</text> +<text>18</text>
</view> </view>
</view> </view>
</view> </view>
<u-empty text="暂无信息" v-if="total == 0" mode="list"></u-empty>
</view> </view>
</template> </template>
<script> <script>
import * as newFunApi from '@/api/newFun'
export default { export default {
data() { data() {
return { return {
list: [],
total: 1
}; };
}, },
onLoad() {
this.getList();
},
methods: { methods: {
async getList() {
uni.showLoading({
title:"加载中"
})
const {status, data} = await newFunApi.inviteGetList({});
if(status == 200){
uni.hideLoading();
this.list = data.list.data;
this.total = data.list.total
console.log(this.total)
}
},
} }
} }
</script> </script>
@ -35,7 +52,7 @@
padding: 0 0 130rpx; padding: 0 0 130rpx;
overflow: hidden; overflow: hidden;
&-bd{ &-bd{
padding: 0 0 0 60rpx;; padding: 0 20rpx 0 60rpx;;
background-color: #FFFFFF; background-color: #FFFFFF;
overflow: hidden; overflow: hidden;
margin-top: 20rpx; margin-top: 20rpx;

@ -117,8 +117,9 @@ export default{
} }
} }
let {status, message, data} = await newFunApi.updatePrice({ let {status, message, data} = await newFunApi.updatePrice({
uni.navigateBack({delta:1})
}); });
uni.navigateBack({delta:1})
} }
}, },
onLoad(option){ onLoad(option){

@ -1,5 +1,5 @@
{ {
"appid": "wxdcf7d5820d7530cd", "appid": "wx68d198de972a9e9d",
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.3.3", "libVersion": "3.3.3",
"packOptions": { "packOptions": {

Loading…
Cancel
Save