zhouzhenyuan 10 months ago
parent af98d83b3c
commit d731f72890
  1. 25
      api/member/index.js
  2. 1
      pages.json
  3. 47
      pages/goods/detail.vue
  4. 7
      pages/member/index.vue
  5. 69
      pages/memberInfo/index.vue
  6. 68
      pages/news1/help.vue
  7. 16
      pages/user/index.vue
  8. BIN
      static/user/hygl.png
  9. BIN
      static/user/jq.png
  10. BIN
      static/user/sj.png

@ -2,26 +2,33 @@ import request from '@/utils/request'
// api地址
const api = {
info: 'identity/userPriceList',
submit:'identity/submit',
dealerPriceList:'identity/dealerPriceList',
userOpenCardLog:'identity/userOpenCardLog'
info: 'identity/userPriceList',
submit: 'identity/submit',
dealerPriceList: 'identity/dealerPriceList',
userOpenCardLog: 'identity/userOpenCardLog',
dealerOpenCardLog: 'identity/dealerOpenCardLog'
}
// 会员信息
export const info = (param) => {
return request.post(api.info, param)
return request.post(api.info, param)
}
// 分销会员信息
export const dealerPriceList = (param) => {
return request.post(api.dealerPriceList, param)
return request.post(api.dealerPriceList, param)
}
// 会员信息
export const submit = (param) => {
return request.post(api.submit, param)
return request.post(api.submit, param)
}
//
// 会员开卡记录
export const userOpenCardLog = (param) => {
return request.post(api.userOpenCardLog, param)
return request.post(api.userOpenCardLog, param)
}
// 分销开卡记录
export const dealerOpenCardLog = (param) => {
return request.post(api.dealerOpenCardLog, param)
}

@ -881,7 +881,6 @@
"navigationBarTitleText": "商家入驻"
}
}
]
},
{

@ -4,7 +4,6 @@
<u-navbar title="" :border-bottom="false" title-color="#fff"></u-navbar>
</view>
<view class="head">
<view class="search">
<image src="/static/tabbar/home.png" mode="" class="icon" @click="goHome"></image>
<view class="searInput" @click="goSearch">
@ -68,8 +67,8 @@
{{goods.goods_name}}
</view>
<view class="goodsOpera">
<view class="goodsNum">
<text>100999080000</text>
<view class="goodsNum" @click="copyNum(item.skuList[0].goods_sku_id)">
<text>{{item.skuList[0].goods_sku_id}}</text>
<image src="/static/detail/copy.png" mode=""></image>
</view>
<view class="operaImg">
@ -134,15 +133,15 @@
</view>
</view>
<view class="goodsList">
<view class="goodsItem" v-for="(item,index) in 6" :key="index">
<view class="goodsItem" v-for="(item,index) in suggestGoodsList" :key="index">
<view class="img">
<image src="/static/detail/tv.png" mode="" class="goodsImg"></image>
<image :src="item.goods_image" mode="" class="goodsImg"></image>
</view>
<view class="goodsName">
夏普4T-M70H7DA 70
<view class="goodsName ">
{{item.goods_name}}
</view>
<view class="price">
2220
{{item.goods_price_min}}
</view>
</view>
</view>
@ -294,25 +293,39 @@
setPrice: false,
openDialog: false,
goodsId: '',
goods:{},
goods: {},
suggestGoodsList: []
}
},
onLoad(options) {
this.isPre = options.isPre
this.getGoodsDetail(options.goodsId)
},
onShow() {
this.getSuggestGoods()
},
methods: {
//
getGoodsDetail(val) {
getGoodsDetail() {
const that = this
return new Promise((resolve, reject) => {
GoodsApi.detail(val)
GoodsApi.detail('10001')
.then(result => {
that.goods = result.data.detail
})
.catch(reject)
})
},
getSuggestGoods() {
//
const that = this
GoodsApi.recommended()
.then(result => {
console.log(result, '获取推荐商品列表')
that.suggestGoodsList = result.data.goodsList
})
.catch(reject)
},
goHome() {
uni.navigateTo({
url: '/pages/index/index'
@ -610,6 +623,7 @@
color: #000000;
line-height: 33rpx;
margin: 28rpx 0 0 28rpx;
}
.goodsOpera {
@ -786,7 +800,7 @@
.about {
width: 720rpx;
height: 730rpx;
// height: 730rpx;
background: #FFFFFF;
border-radius: 6rpx 6rpx 6rpx 6rpx;
opacity: 1;
@ -854,7 +868,14 @@
font-weight: 400;
color: #000000;
line-height: 33rpx;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal !important;
word-wrap: break-word;
-webkit-box-orient: vertical;
-webkit-box-align: start;
-webkit-box-pack: center;
}
.price {

@ -103,7 +103,8 @@
<view class="limitPrice" v-if="index==0">
限时活动价
</view>
<view class="timeLong" :style="{'marginTop':isChose!=index?'62rpx':0}">
<!-- :style="{'marginTop':isChose!=index?'62rpx':0}" -->
<view class="timeLong" >
{{item.month}}个月
</view>
<view class="firPrice">
@ -138,7 +139,7 @@
<view class="footer">
<view class="fLeft">
<view class="ys">
<view class="ys" v-if="choseItem.cheap_price!=0">
已省 <text>{{choseItem.cheap_price}}</text>
</view>
<view class="yj">
@ -220,7 +221,7 @@
},
goBuyInfo() {
uni.navigateTo({
url: '/pages/memberInfo/index'
url: '/pages/memberInfo/index?userInfo=' + JSON.stringify(this.userInfo)
})
},
chosePayType(item, index) {

@ -9,14 +9,14 @@
<view class="meInfo">
<view class="info">
<view class="name">
Deioio
{{userInfo.nick_name}}
</view>
<view class="hy">
v月卡会员
{{userInfo.user_type_text}}
</view>
</view>
<view class="time">
有效期至2024.01.21
有效期至{{userInfo.effective_time}}
</view>
</view>
</view>
@ -24,43 +24,26 @@
<view class="mTitle">
月卡订单记录
</view>
<view class="card">
<view class="card" v-for="(item,index) in list" :key="index">
<view class="tp">
<view class="info">
生效中
<text v-if="item.is_valid">生效中</text>
<text v-if="!item.is_valid">已过期</text>
</view>
</view>
<view class="detail">
<view class="topLine">
<view class="send">
省钱月卡1个月
</view>
<view class="btn">
活动赠送
{{item.name}}
</view>
</view>
<view class="time">
2023.12.22-2024.01.21
{{item.start_time}}-{{item.end_time}}
</view>
</view>
</view>
<view class="showInfo">
已展示近18个月省钱月卡订单
</view>
</view>
<view class="footer">
<view class="fLeft">
<view class="ys">
已省 <text>3.2</text>
</view>
<view class="yj">
原价 30
</view>
</view>
<view class="btn">
<text>36</text>开卡3个月
</view>
</view>
</view>
</template>
@ -70,6 +53,7 @@
export default {
data() {
return {
userInfo:{},
payTypeChose:true,
isChose: 0,
isVip: false,
@ -77,21 +61,37 @@
background: 'url(' + img + ') center top no-repeat',
backgroundSize: '100% auto',
},
list:[],
}
},
onLoad(options){
this.userInfo = JSON.parse(options.userInfo)
},
onShow(){
this.getListInfo()
},
methods:{
getListInfo(){
const that = this
member.info()
.then(res => {
if (res.status == 200) {
}
})
.finally(() => that.isLoading = false)
that.list = []
if(that.userInfo.user_type==30){
member.dealerOpenCardLog()
.then(res => {
if (res.status == 200) {
that.list = res.data
}
})
.finally(() => that.isLoading = false)
}else if(that.userInfo.user_type==20){
member.userOpenCardLog()
.then(res => {
if (res.status == 200) {
that.list = res.data
}
})
.finally(() => that.isLoading = false)
}
},
},
}
@ -121,6 +121,7 @@
height: 114rpx;
margin-right: 30rpx;
margin-top: 12rpx;
border-radius: 50%;
}
.meInfo {
@ -206,7 +207,7 @@
background: #FFF4F4;
border-radius: 8rpx 8rpx 8rpx 8rpx;
opacity: 1;
margin: 26rpx 0 0 38rpx;
margin: 26rpx 0 16rpx 38rpx;
display: flex;
.tp {

@ -12,14 +12,22 @@
</view>
</view>
<view class="mainItem">
<view class="itemText" v-for="(p,i) in item.child" :key="i">{{p.title}}</view>
<view class="itemText" v-for="(p,i) in item.child" :key="i" @click="openContent(p)">{{p.title}}
</view>
</view>
</view>
</view>
<view class="footer">
<view class="btn">
<image src="/static/news1/n7.png" mode="widthFix"></image>
<text>在线客服9:00-22:00</text>
<button type="default" open-type="contact" class="infoBtn">
<image src="/static/news1/n7.png" mode="widthFix"></image>在线客服9:00-22:00
</button>
</view>
</view>
<view class="dialog" v-if="dialog" @click="dialog=false">
<view class="content">
<rich-text :nodes="strings"></rich-text>
</view>
</view>
</view>
@ -31,7 +39,8 @@
data() {
return {
itemList: [],
strings: '',
dialog: false,
}
},
onShow() {
@ -49,6 +58,10 @@
})
.finally(() => that.isLoading = false)
},
openContent(item) {
this.strings = item.content
this.dialog = true
},
}
}
</script>
@ -135,21 +148,23 @@
height: 90upx;
line-height: 90upx;
padding: 0 10upx;
border-bottom: 1px solid #dfdbdb;
}
:first-child {
border-right: 1px solid #dfdbdb;
}
:nth-child(2n) {
// border-bottom:1px solid #dfdbdb;
border-left: 1px solid #dfdbdb;
// border-right:1px solid #dfdbdb;
}
:last-child {
border-top: 1px solid #dfdbdb;
// border-left:1px solid #dfdbdb;
border-left: 1px solid #dfdbdb;
}
:nth-child(3) {
border-top: 1px solid #dfdbdb;
border-right: 1px solid #dfdbdb;
}
}
}
@ -186,7 +201,42 @@
margin-left: 100upx;
}
.infoBtn{
image {
width: 54upx;
height: auto;
}
text-align: center;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
background: #FE6048;
border-radius: 28px 28px 28px 28px;
color: #FFFFFF;
}
}
}
}
.dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.8);
color: #fff;
.content {
height: 60%;
width: 80%;
overflow: auto;
}
}
</style>

@ -84,7 +84,7 @@
</view>
</view>
</view>
<view class="goodsManage" v-if="userInfo.user_type==40">
<view class="goodsManage" v-if="userInfo.user_type==40&&userInfo">
<view class="manageTitle">
<text lines="1" class="text_5 titleLeft">商品管理</text>
<text lines="1" class="text_6 titleRight">查看全部</text>
@ -385,26 +385,26 @@
</view>
</view>
<view class="serveIcon" @click="goPage('/pages/news1/huoyuan')">
<image src="/static/user/help.png" mode="" class="icons"></image>
<image src="/static/user/retail.png" mode="" class="icons"></image>
<view class="serveInfo">
我要找货
</view>
</view>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20">
<image src="/static/user/help.png" mode="" class="icons"></image>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30">
<image src="/static/user/sj.png" mode="" class="icons"></image>
<view class="serveInfo">
数据统计
</view>
</view>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20">
<image src="/static/user/help.png" mode="" class="icons"></image>
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30">
<image src="/static/user/hygl.png" mode="" class="icons"></image>
<view class="serveInfo">
会员管理
</view>
</view>
<view class="serveIcon" @click="goPage('/pages/news1/jinqun')"
v-if="userInfo.user_type!=10&&userInfo.user_type!=20">
<image src="/static/user/help.png" mode="" class="icons"></image>
v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30">
<image src="/static/user/jq.png" mode="" class="icons"></image>
<view class="serveInfo">
进群有礼
</view>

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save