多门店首页更改

main
LGX 6 months ago
parent 99518a47e3
commit 3c72bfe84f
  1. 10
      api/user.js
  2. 9
      pages/goods_cate/template/template3.vue
  3. 15
      pages/index/components/goodList.vue
  4. 31
      pages/index/index.vue

@ -780,4 +780,12 @@ export function recordList() {
*/
export function articleStarApi(id, data) {
return request.get(`article/like/${id}`, data);
}
}
/**
* 手机号绑定上级
*
*/
export function bindshangji(data) {
return request.post(`user/bindshangji`, data);
}

@ -72,9 +72,11 @@
</view>
<view class="flex-between-center mt-20">
<view class="flex items-baseline">
<baseMoney :money="item.price" symbolSize="28" integerSize="44"
<baseMoney :money="item.vip_price" symbolSize="28" integerSize="44"
decimalSize="28" incolor="var(--primary-theme-con)" weight>
</baseMoney>
<text class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text>
<text class="px-8 fs-22">¥{{item.price}}</text>
<text class="fs-22 text--w111-8e8e8e pl-12">已售{{item.sales}}</text>
</view>
<view
@ -128,9 +130,12 @@
<text class="fs-24 text--w111-8e8e8e pl-12">已售{{item.sales}}</text>
<view class="flex-between-center pl-12">
<view class="flex items-baseline">
<baseMoney :money="item.price" symbolSize="24" integerSize="40"
<text style="background: linear-gradient(90deg, #484643 0%, #1F1B17 100%);color:#FDDAA4;border-radius: 14rpx 0 8rpx 14rpx;" class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text>
<baseMoney :money="item.vip_price" symbolSize="24" integerSize="40"
decimalSize="24" weight color='#D64D22'>
</baseMoney>
<text class="px-8 fs-22">¥{{item.price}}</text>
</view>
<view class="flex-center w-48 h-48 rd-30rpx colorhui1"
@tap.stop="goCartDuo(item)" v-if="item.spec_type">

@ -124,11 +124,11 @@
</view>
<view v-else>
<view class="flex-y-center mt-8">
<baseMoney :money="item.price" symbolSize="24" integerSize="40" decimalSize="24" weight
<text class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text>
<baseMoney :money="item.vip_price" symbolSize="24" integerSize="40" decimalSize="24" weight
:color="priceColor" v-if="checkboxInfo.includes(2)"></baseMoney>
<view v-if="Number(item.vip_price) > 0 && item.is_vip && checkboxInfo.includes(5)">
<!-- <text class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text> -->
<text style="text-decoration-line: line-through;margin-left: 15rpx;font-size: 24rpx;color: #7B7A7F;">¥{{item.vip_price}}</text>
<text class="px-8 fs-22">¥{{item.price}}</text>
</view>
</view>
<view class="flex-between-center mt-20">
@ -196,11 +196,12 @@
</view>
<view v-else>
<view class="flex-y-center mt-8">
<baseMoney :money="item.price" symbolSize="24" integerSize="40" decimalSize="24" weight
<text class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text>
<baseMoney :money="item.vip_price" symbolSize="24" integerSize="40" decimalSize="24" weight
:color="priceColor" v-if="checkboxInfo.includes(2)"></baseMoney>
<view class="inline-block h-26 lh-28rpx rd-14rpx bg--w111-F7E9CD fs-22 ml-8" v-if="Number(item.vip_price) > 0 && item.is_vip && checkboxInfo.includes(5)">
<text class="inline-block h-26 lh-28rpx svip_rd fs-18 bg--w111-484643 text--w111-FDDAA4 px-8">SVIP</text>
<text class="px-8 fs-22">¥{{item.vip_price}}</text>
<view v-if="Number(item.vip_price) > 0 && item.is_vip && checkboxInfo.includes(5)">
<text class="px-8 fs-22">¥{{item.price}}</text>
</view>
</view>
<view class="flex-between-center mt-20">

@ -132,16 +132,21 @@
<uni-popup ref="popup" type="center">
<view class="popupbox">
<text style="float: right;" class="iconfont iconfont icon-ic_close fs-44 colorhui1" @click="close"></text>
<view class="neir" v-if='userInfo.overdue_day>0'>
<view class="neir" v-if='userInfo.overdue_day>0 && !userInfo.yaoqing_status'>
您的会员卡 <text v-if="userInfo.overdue_day>0">还有{{userInfo.overdue_day}}日到期</text>
<text v-else>已到期</text>
<br />
请尽快续费哦~
</view>
<view class="neir" v-else-if='userInfo.yaoqing_status'>
请通过邀请码扫码分享邀请人手机号进入办理九号笙活会员享受折扣
<input style="border: 1px solid;height: 35px;border-radius: 15px;" type="text" placeholder="请输入邀请手机号" @input="onInput" />
</view>
<view class="neir" v-else>
购买会员享优惠
</view>
<view class="huiyuanbtn" @click="chuiyuan" v-if='userInfo.overdue_day>0'>立即续费</view>
<view class="huiyuanbtn" @click="chuiyuan" v-if='userInfo.overdue_day>0 && !userInfo.yaoqing_status'>立即续费</view>
<view class="huiyuanbtn" @click="bangdingshangji" v-else-if='userInfo.yaoqing_status'>立即绑定</view>
<view class="huiyuanbtn" @click="chuiyuan" v-else>
立即购买
</view>
@ -160,6 +165,9 @@
getCouponNewUser,
copyRight
} from '@/api/api.js';
import {
bindshangji
} from '@/api/user.js';
import {
getShare
} from '@/api/public.js';
@ -357,6 +365,7 @@
positionTop: 0,
isFooter: false,
pdHeight: 0, //
bdphone:'',
contentmendian: {
//
latitude:'',
@ -498,6 +507,9 @@
// url:'/pages/store/table_code/index?store_id=1&qrcode_id=3'
// })
// },
onInput(e){
this.bdphone = e.target.value;
},
getLocation(){
var that=this
uni.getLocation({
@ -507,6 +519,8 @@
console.log('当前位置的纬度:' + res.latitude);
that.contentmendian.longitude=res.longitude
that.contentmendian.latitude=res.latitude
uni.setStorageSync('user_latitude',res.latitude)
uni.setStorageSync('user_longitude',res.longitude)
getList(that.contentmendian).then(res => {
console.log(585,uni.getStorageSync('mdnane'));
if(uni.getStorageSync('mdnane')==''){
@ -543,6 +557,17 @@
url:'/pages/annex/vip_paid/index'
})
},
bangdingshangji(){
let phone = this.bdphone;
let parambd = {phone:phone};
bindshangji(parambd).then(res => {
this.close()
}).catch(err => {
return this.$util.Tips({
title: err
});
});
},
close(){
this.$refs.popup.close('center')
},
@ -1013,7 +1038,7 @@
<style lang="scss" scoped>
.popupbox{
width: 600rpx;
height: 350rpx;
min-height: 350rpx;
background: #1C1A1F;
box-shadow: 0rpx 5rpx 16rpx 0rpx rgba(6,3,14,0.39);
border-radius: 20rpx;

Loading…
Cancel
Save