liudan 8 months ago
parent 51246f48dd
commit d929b6cd0b
  1. 5
      App.vue
  2. 4
      api/user.js
  3. 6
      components/Authorize.vue
  4. 12
      pages.json
  5. 4
      pages/goods_details/index.vue
  6. 60
      pages/goods_details/notice.vue
  7. 33
      pages/goods_details/noticeItem.vue
  8. 10
      pages/index/component/headerSerch.vue
  9. 1
      pages/index/index.vue
  10. 9
      pages/user/index.vue
  11. 2
      pages/users/user_integral/index.vue

@ -64,6 +64,7 @@
...uni.getStorageSync('GLOBAL_DATA') || {} ...uni.getStorageSync('GLOBAL_DATA') || {}
}, },
onLaunch: function(option) { onLaunch: function(option) {
this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
this.globalData.uid = this.$store.state.app.uid this.globalData.uid = this.$store.state.app.uid
let that = this; let that = this;
@ -97,6 +98,10 @@
break; break;
} }
} }
if(option.query.hasOwnProperty('spread')){
that.globalData.spid = option.query.spread
}
console.log(that.globalData.spid,"分享者的uid")
// #endif // #endif
// //
uni.getSystemInfo({ uni.getSystemInfo({

@ -712,3 +712,7 @@ export function jifenToShare(data) {
export function getUserGroup(data) { export function getUserGroup(data) {
return request.get(`user/group`,data) return request.get(`user/group`,data)
} }
// 获取列表
export function getNoticeList() {
return request.get(`notice/list`)
}

@ -191,6 +191,12 @@
userInfo.code = this.code; userInfo.code = this.code;
userInfo.spread = app.globalData.spid; //广ID userInfo.spread = app.globalData.spid; //广ID
userInfo.spread_code = app.globalData.code; //广ID userInfo.spread_code = app.globalData.code; //广ID
console.log({
auth: {
type:'routine',
auth: userInfo
}
},"参数")
commonAuth({ commonAuth({
auth: { auth: {
type:'routine', type:'routine',

@ -104,6 +104,18 @@
"navigationBarBackgroundColor": "#F2F2F2" "navigationBarBackgroundColor": "#F2F2F2"
// #endif // #endif
} }
},
{
"path": "notice",
"style": {
"navigationBarTitleText": "公告列表"
}
},
{
"path": "noticeItem",
"style": {
"navigationBarTitleText": "公告详情"
}
} }
] ]
}, },

@ -341,10 +341,10 @@
<view class="iconfont icon-haibao"></view> <view class="iconfont icon-haibao"></view>
<view class="">生成海报</view> <view class="">生成海报</view>
</button> </button>
<button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' @click="copyPwd"> <!-- <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' @click="copyPwd">
<view class="iconfont icon-fuzhikouling1"></view> <view class="iconfont icon-fuzhikouling1"></view>
<view>生成口令</view> <view>生成口令</view>
</button> </button> -->
</view> </view>
<view class="mask" v-if="posters" @click="listenerActionClose"></view> <view class="mask" v-if="posters" @click="listenerActionClose"></view>
<!--口令复制结果--> <!--口令复制结果-->

@ -0,0 +1,60 @@
<template>
<div class="notice">
<div v-for="(item,index) in list" class="noticeItem" @click="getNoticeItem(item)">
<div class="noticeTitle">{{item.notice_title}}</div>
<div class="time">{{item.create_time}}</div>
</div>
</div>
</template>
<script>
import { getNoticeList } from '@/api/user.js';
export default{
data(){
return{
list:[]
}
},
methods:{
getNoticeList(){
getNoticeList().then(res=>{
this.list= res.data.list
})
},
getNoticeItem(item){
uni.navigateTo({
url:'/pages/goods_details/noticeItem?id='+item.notice_id
})
}
},
onLoad() {
this.getNoticeList()
}
}
</script>
<style lang="scss" scoped>
.notice{
min-height:calc(100vh);
.noticeItem{
padding:39rpx 29rpx;
background: #fff;
border-radius: 10px;
margin:24rpx;
.noticeTitle{
font-weight: 400;
font-size: 30rpx;
color: #333333;
}
.time{
font-weight: 400;
font-size: 24rpx;
color: #999999;
margin-top: 26rpx;
}
}
}
</style>

@ -0,0 +1,33 @@
<template>
<div>
<u-parse :content="content"></u-parse>
</div>
</template>
<script>
import { getNoticeList } from '@/api/user.js';
export default{
data(){
return{
content:'',
}
},
onLoad(option) {
console.log(option);
getNoticeList().then(res=>{
let list= res.data.list;
list.forEach(item=>{
if(item.notice_id==option.id){
this.content = item.notice_content
}
})
})
}
}
</script>
<style lang="scss" scoped>
</style>

@ -34,7 +34,7 @@
<view class="indexTitle"> <view class="indexTitle">
惠通商城 惠通商城
</view> </view>
<image src="/static/images/xiaoxi.png" mode="" class="xiaoxi"></image> <image src="/static/images/xiaoxi.png" mode="" @click="goChat" class="xiaoxi"></image>
</view> </view>
<view class="serch-box skeleton-rect" style="height: 110rpx;"> <view class="serch-box skeleton-rect" style="height: 110rpx;">
<view class="serch-wrapper flex"> <view class="serch-wrapper flex">
@ -111,7 +111,13 @@
}, 300) }, 300)
// #endif // #endif
}, },
methods: {} methods: {
goChat(){
uni.navigateTo({
url:"/pages/goods_details/notice"
})
}
}
} }
</script> </script>

@ -505,6 +505,7 @@ export default {
}, },
// #endif // #endif
onLoad(options) { onLoad(options) {
console.log(options,"liudan")
let that = this let that = this
this._options = options; this._options = options;
// #ifdef APP-PLUS // #ifdef APP-PLUS

@ -44,7 +44,10 @@
</view> </view>
<!--#endif--> <!--#endif-->
<view class="name" v-if="userInfo.uid"> <view class="name" v-if="userInfo.uid">
{{userInfo.nickname}}<text style="font-size: 24rpx;border-radius: 5px;background: #E53623;padding: 5rpx 10rpx;margin-left: 20rpx;" v-show="userInfo.group_name">{{userInfo.group_name?userInfo.group_name:''}}</text><image v-if="member_status" class="level_icon" :src="userInfo.member_icon" alt=""> {{userInfo.nickname}}
<text style="font-size: 24rpx;border-radius: 5px;border: 1px solid #fff;padding: 5rpx 10rpx;margin-left: 20rpx;" v-show="userInfo.group_name">{{userInfo.group_name?userInfo.group_name:''}}</text>
<text style="font-size: 24rpx;border-radius: 5px;border: 1px solid #fff;padding: 5rpx 10rpx;margin-left: 20rpx;" v-show="userInfo.agent_district_id">{{userInfo.agent_district_id?'区域经理':''}}</text>
<image v-if="member_status" class="level_icon" :src="userInfo.member_icon" alt="">
<view class="vip" v-if="userInfo.is_svip > 0 && svip_switch_status == 1"> <view class="vip" v-if="userInfo.is_svip > 0 && svip_switch_status == 1">
<image src="/static/images/svip.png"></image> <image src="/static/images/svip.png"></image>
</view> </view>
@ -445,11 +448,11 @@
}, 500) }, 500)
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
console.log(this.userInfo) console.log(this.userInfo.uid,"999")
//console.log('onShareAppMessage',res); //console.log('onShareAppMessage',res);
return { return {
title: '惠通商城', title: '惠通商城',
path: '/pages/index/index?spread=' + this.userInfo.uid path: '/pages/index/index?spread='+this.userInfo.uid
} }
}, },
methods: { methods: {

@ -36,7 +36,7 @@
@click='nav(index)'><text class='iconfont' :class="item.icon"></text>{{item.name}}</view> @click='nav(index)'><text class='iconfont' :class="item.icon"></text>{{item.name}}</view>
</view> --> </view> -->
<view class="zhuanrang"> <view class="zhuanrang">
<text>惠通宝兑换消费积分</text> <text>消费积分兑换分红点</text>
<view class="zhuanrangBtn" @click="show1 = true"> <view class="zhuanrangBtn" @click="show1 = true">
立即兑换 立即兑换
</view> </view>

Loading…
Cancel
Save