liudan 1 year ago
commit b273787882
  1. 10
      api/newFun.js
  2. 13
      manifest.json
  3. 11
      pages.json
  4. 9
      pages/activity/intimate.vue
  5. 3
      pages/activity/newGoods.vue
  6. 6
      pages/activity/presaleRule.vue
  7. 32
      pages/category/index.vue
  8. 690
      pages/index/index.vue
  9. 37
      pages/invite/index.vue
  10. 150
      pages/invite/list.vue
  11. 8
      pages/login/index.vue
  12. 37
      pages/news/consult/about.vue
  13. 15
      pages/news/consult/comment.vue
  14. 25
      pages/news/consult/index.vue
  15. 18
      pages/news/consult/store.vue
  16. 25
      pages/news/park/index.vue
  17. 25
      pages/news/user/invite.vue
  18. 3
      pages/news3/updatePrice.vue
  19. 96
      pages/serve/index.vue
  20. 17
      pages/user/vip/goods.vue

@ -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)

@ -1,9 +1,9 @@
{ {
"name" : "萤火商城2.0", "name" : "惠云商",
"appid" : "__UNI__1D774AF", "appid" : "__UNI__1D774AF",
"description" : "萤火商城V2.0,是全新推出的一款轻量级、高性能、前后端分离的电商系统,让您快速搭建个性化独立商城", "description" : "慧云商是一款提供家电,3C数码,家装建材为一体的批发采购平台,一站式解决找货方案,简化采购流程",
"versionName" : "2.3.12", "versionName" : "1.0.0",
"versionCode" : 235, "versionCode" : 1,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
@ -98,7 +98,7 @@
// TLS // TLS
"urlCheck" : true, "urlCheck" : true,
// es6es5 // es6es5
"es6" : false, "es6" : true,
// //
"minified" : true, "minified" : true,
// wxml shadow-root // wxml shadow-root
@ -107,7 +107,8 @@
"minifyWXSS" : true, "minifyWXSS" : true,
// wxml // wxml
// uniapppwxml, , , false // uniapppwxml, , , false
"minifyWXML" : false "minifyWXML" : false,
"postcss" : true
}, },
"usingComponents" : true, "usingComponents" : true,
"lazyCodeLoading" : "requiredComponents", "lazyCodeLoading" : "requiredComponents",

@ -36,14 +36,14 @@
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/serve/index", "path": "pages/serve/index",
"style": { "style": {
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"navigationBarTitleText": "服务" "navigationBarTitleText": "服务"
} }
}, },
@ -63,7 +63,7 @@
"path": "pages/user/index", "path": "pages/user/index",
"style": { "style": {
"navigationBarTitleText": "个人中心", "navigationBarTitleText": "个人中心",
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"navigationStyle": "custom", "navigationStyle": "custom",
"mp-alipay": { "mp-alipay": {
"defaultTitle": "", "defaultTitle": "",
@ -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",

@ -4,9 +4,9 @@
<u-navbar title="贴心服务" :border-bottom="false" :background="isScroll?background:background1"></u-navbar> <u-navbar title="贴心服务" :border-bottom="false" :background="isScroll?background:background1"></u-navbar>
</view> </view>
<view class="intimate-hd" @click="openPage(1)"> <view class="intimate-hd" @click="openPage(1)">
<image :src="storeInfo.image_url"></image> <image :src="storeInfo.imageList?storeInfo.imageList[0]:''"></image>
<view class="a">{{storeInfo.store_name}}<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon></view> <view class="a">{{storeInfo.shop_name}}<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon></view>
<view class="b">{{storeInfo.describe}}</view> <view class="b">{{storeInfo.summary}}</view>
</view> </view>
<!-- <scroll-view scroll-x class="intimate-menu"> <!-- <scroll-view scroll-x class="intimate-menu">
<view class="item" @click="tabItem1(i)" v-for="i in 10" :key="i" :class="tabIndex1==i?'item-on':''"> <view class="item" @click="tabItem1(i)" v-for="i in 10" :key="i" :class="tabIndex1==i?'item-on':''">
@ -50,7 +50,6 @@
<script> <script>
import * as newFunApi from '@/api/newFun' import * as newFunApi from '@/api/newFun'
// import img from "@/static/news/refund-bg1.png"
export default { export default {
data() { data() {
return { return {
@ -76,7 +75,7 @@
onLoad(o) { onLoad(o) {
this.tabIndex = o.index?(o.index): -1 this.tabIndex = o.index?(o.index): -1
this.getList(); this.getList();
this.storeInfo = uni.getStorageSync("Store").storeInfo this.storeInfo = uni.getStorageSync("cityInfo")
}, },
onPageScroll(e){ onPageScroll(e){
if(e.scrollTop <= 44){ if(e.scrollTop <= 44){

@ -45,7 +45,6 @@
</template> </template>
<script> <script>
// import img from "@/static/member/head.png"
import * as Api from '@/api/activity' import * as Api from '@/api/activity'
import { import {
getEmptyPaginateObj, getEmptyPaginateObj,
@ -57,7 +56,7 @@
return { return {
background: { background: {
background: 'url(' + img + ') center top no-repeat', background: 'url(' + img + ') center top no-repeat',
backgroundSize: '100%', backgroundSize: '100% auto',
}, },
backgroundImg: '', backgroundImg: '',

@ -1,6 +1,8 @@
<template> <template>
<view class="presale"> <view class="presale">
<view class="p" v-html="content"></view> <view class="p">
<image :src="content"></image>
</view>
</view> </view>
</template> </template>
@ -29,7 +31,7 @@
type: type type: type
}) })
.then(result => { .then(result => {
this.content = result.data.content[0] this.content = result.data.imgurl[0]
}) })
.finally(() => app.isLoading = false) .finally(() => app.isLoading = false)
}, },

@ -63,7 +63,7 @@
console.log(item) console.log(item)
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/goods/detail?goodsId=' + item.category_id url: '/pages/goods/list?categoryId=' + item.category_id
}) })
}, },
goSearch() { goSearch() {
@ -95,11 +95,6 @@
// //
console.log(res, '分类数据') console.log(res, '分类数据')
that.tabbar = res.data.list; that.tabbar = res.data.list;
// that.isChose = that.menuList[0].category_id;
// that.secondMenu = that.menuList[0].children;
// that.secondChose = that.secondMenu[0].category_id
// that.getSonList(that.secondChose)
// that.hotList = that.menuList[0].
}) })
.catch(reject) .catch(reject)
}) })
@ -141,14 +136,15 @@
}, },
// //
async leftMenuStatus(index) { async leftMenuStatus(index) {
this.current = index;
// 0 // 0
if (this.menuHeight == 0 || this.menuItemHeight == 0) { if (this.menuHeight == 0 || this.menuItemHeight == 0) {
await this.getElRect('menu-scroll-view', 'menuHeight'); await this.getElRect('menu-scroll-view', 'menuHeight');
await this.getElRect('u-tab-item', 'menuItemHeight'); await this.getElRect('u-tab-item', 'menuItemHeight');
} }
this.current = index;
// item // item
this.scrollTop = index * this.menuItemHeight + this.menuItemHeight / 2 - this.menuHeight / 2; this.scrollTop = index * this.menuItemHeight + this.menuItemHeight / 2 - this.menuHeight / 2;
}, },
// item // item
getMenuItemTop() { getMenuItemTop() {
@ -183,7 +179,7 @@
setTimeout(() => { // setTimeout(() => { //
this.timer = null; this.timer = null;
// scrollHeight // scrollHeight
let scrollHeight = e.detail.scrollTop + this.menuHeight / 2; let scrollHeight = e.detail.scrollTop;
for (let i = 0; i < this.arr.length; i++) { for (let i = 0; i < this.arr.length; i++) {
let height1 = this.arr[i]; let height1 = this.arr[i];
let height2 = this.arr[i + 1]; let height2 = this.arr[i + 1];
@ -240,12 +236,11 @@
.u-tab-item { .u-tab-item {
height: 110rpx; height: 110rpx;
background: #f6f6f6;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 26rpx; font-size: 28rpx;
color: #444; color: #444;
font-weight: 400; font-weight: 400;
line-height: 1; line-height: 1;
@ -254,10 +249,8 @@
.u-tab-item-active { .u-tab-item-active {
position: relative; position: relative;
color: #F21A1C; color: #F21A1C;
font-size: 30rpx;
font-weight: 600; font-weight: 600;
background: #fff; // background: #fff;
} }
// .u-tab-item-active::before { // .u-tab-item-active::before {
@ -278,13 +271,14 @@
} }
.page-view { .page-view {
padding: 16rpx; padding: 0 16rpx 16rpx;
overflow: hidden;
} }
.class-item { .class-item {
margin-bottom: 30rpx; margin-bottom: 12rpx;
background-color: #fff; background-color: #fff;
padding: 16rpx; padding: 20rpx;
border-radius: 8rpx; border-radius: 8rpx;
} }
@ -293,14 +287,15 @@
} }
.item-title { .item-title {
font-size: 26rpx; font-size: 28rpx;
color: $u-main-color; color: $u-main-color;
font-weight: bold; font-weight: bold;
padding: 10rpx;
} }
.item-menu-name { .item-menu-name {
font-weight: normal; font-weight: normal;
font-size: 24rpx; font-size: 28rpx;
color: $u-main-color; color: $u-main-color;
} }
@ -321,5 +316,6 @@
.item-menu-image { .item-menu-image {
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
margin-bottom: 10rpx;
} }
</style> </style>

File diff suppressed because it is too large Load Diff

@ -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)">
@ -31,13 +31,13 @@
<image :src="$picUrl+'static/news/invite-bg2.png'"></image> <image :src="$picUrl+'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>
@ -45,13 +45,13 @@
<image :src="$picUrl+'static/news/invite-bg3.png'"></image> <image :src="$picUrl+'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>
@ -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,91 +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="$picUrl+'/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() {
let img = 'https://www.saas.njrenzhou.com/static/member/top.png' return {
return{ list: [],
background: { total: 1
background: 'url('+ img+') center top no-repeat', };
backgroundSize: '100% auto', },
}, onLoad() {
chosed:'0', this.getList();
tabList:[ },
{ methods: {
name:'待完成', async getList() {
value:'0' uni.showLoading({
},{ title:"加载中"
name:'已完成', })
value:'1' const {status, data} = await newFunApi.inviteGetList({});
},{ if(status == 200){
name:'已完成', uni.hideLoading();
value:'2' 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('https://www.saas.njrenzhou.com/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%;
} }
}
.line{ .m{
width: 48rpx; flex: 1;
height: 6rpx; max-width: 400rpx;
background: #FF4C4B; margin-right: 20rpx;
border-radius: 56rpx 56rpx 56rpx 56rpx; .n{
opacity: 1; font-size: 28rpx;
font-weight: 400;
color: #545454;
}
.t{
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,10 +42,8 @@
showCountDown: false, showCountDown: false,
currentIndex: 0, currentIndex: 0,
background: { background: {
// background: 'url(' + img + ') center top no-repeat',
background: `url(${this.$picUrl}/static/news/login-bg.png) center top no-repeat`, background: `url(${this.$picUrl}/static/news/login-bg.png) center top no-repeat`,
// background: "url(' + this.$picUrl+'/static/news/login-bg.png'+')' center top no-repeat, backgroundSize: '100% auto',
backgroundSize: '100%',
}, },
phoneNum: '', phoneNum: '',
semCode: '', semCode: '',
@ -154,8 +151,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.login { .login {
width: 100%; width: 100%;
background: #fffafb url(`https://www.saas.njrenzhou.com/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% auto; background-size: 100% auto;
min-height: 100vh; min-height: 100vh;

@ -4,21 +4,21 @@
<u-navbar title="联系我们" :border-bottom="false" :background="background"></u-navbar> <u-navbar title="联系我们" :border-bottom="false" :background="background"></u-navbar>
</view> </view>
<view class="park-hd"> <view class="park-hd">
<image :src="$picUrl+'/static/home/phone.jpg'"></image> <image :src="cityInfo.imageList?cityInfo.imageList[0]:''"></image>
<view class="a">昆明湖店·YN_k121</view> <view class="a">{{cityInfo.shop_name}}</view>
<view class="b"><u-icon name="map" style="margin-right: 10rpx; margin-top: 10rpx;"></u-icon>2线2600m</view> <view class="b" @click="openMap()"><u-icon name="map" style="margin-right: 10rpx; margin-top: 10rpx;"></u-icon>{{cityInfo.address}}</view>
</view> </view>
<view class="park-bd"> <view class="park-bd">
<view class="a">联系电话</view> <view class="a">联系电话</view>
<view class="b">18020890980<image :src="$picUrl+'/static/news/tel.png'"></image></view> <view class="b">{{cityInfo.phone}}<image :src="$picUrl+'/static/news/tel.png'" @click="callPhone()"></image></view>
</view> </view>
<view class="park-fd"> <view class="park-fd">
<image :src="$picUrl+'/static/home/phone.jpg'"></image> <image :src="cityInfo.wechat"></image>
<view class="txt">长按识别二维码</view> <view class="txt">长按识别二维码</view>
<view class="txt">添加我的微信</view> <view class="txt">添加我的微信</view>
</view> </view>
<view class="park-btn"> <view class="park-btn" v-if="userInfo.user_type==40">
<view class="btn">编辑信息</view> <view class="btn" @click="toEdit">编辑信息</view>
</view> </view>
</view> </view>
</template> </template>
@ -34,10 +34,31 @@
// background: 'url('+ img+') center top no-repeat', // background: 'url('+ img+') center top no-repeat',
backgroundSize: '100%', backgroundSize: '100%',
}, },
cityInfo: {},
userInfo: {}
} }
}, },
onLoad() {
this.cityInfo = uni.getStorageSync("cityInfo");
this.userInfo = uni.getStorageSync("userInfo");
},
methods: { methods: {
callPhone() {
uni.makePhoneCall({
phoneNumber: this.cityInfo.phone
})
},
openMap() {
uni.openLocation({
latitude: Number(this.cityInfo.latitude),
longitude: Number(this.cityInfo.longitude)
})
},
toEdit() {
uni.navigateTo({
url: "/pages/news/park/personal"
})
},
} }
} }
</script> </script>

@ -1,13 +1,13 @@
<template> <template>
<view class="comment"> <view class="comment">
<view class="item" v-for="i in 10" :key="i"> <view class="item" v-for="(a,i) in cityInfo.evaluate">
<view class="avater"> <view class="avater">
<image :src="$picUrl+'/static/news/avater.png'"></image> <image :src="a.image"></image>
</view> </view>
<view class="info"> <view class="info">
<view class="a">Shark特<text>10分钟前</text></view> <view class="a">{{a.nickname}}<text v-if="false">10分钟前</text></view>
<view class="b">非常棒讲解细致下次还来</view> <view class="b">{{a.content}}</view>
<view class="c"> <view class="c" v-if="false">
<image v-for="o in 3" :key="o" :src="$picUrl+'/static/home/phone.jpg'"></image> <image v-for="o in 3" :key="o" :src="$picUrl+'/static/home/phone.jpg'"></image>
</view> </view>
</view> </view>
@ -19,8 +19,11 @@
export default { export default {
data() { data() {
return { return {
cityInfo: {}
}; };
},
onLoad() {
this.cityInfo = uni.getStorageSync("cityInfo")
} }
} }
</script> </script>

@ -4,17 +4,17 @@
<u-navbar title="咨询" :border-bottom="false" :background="background"></u-navbar> <u-navbar title="咨询" :border-bottom="false" :background="background"></u-navbar>
</view> </view>
<view class="park-hd"> <view class="park-hd">
<image :src="$picUrl+'/static/home/phone.jpg'"></image> <image :src="cityInfo.imageList?cityInfo.imageList[0]:''"></image>
<view class="a">昆明湖店·YN_k121</view> <view class="a">{{cityInfo.shop_name}}</view>
<view class="b"><u-icon name="map" style="margin-right: 10rpx; margin-top: 10rpx;"></u-icon>2线2600m</view> <view class="b" @click="openMap()"><u-icon name="map" style="margin-right: 10rpx; margin-top: 10rpx;"></u-icon>{{cityInfo.address}}</view>
</view> </view>
<view class="park-bd"> <view class="park-bd">
<view class="item"><text>1406</text>服务总时长</view> <view class="item"><text>{{cityInfo.fuwu_hours}}</text>服务总时长</view>
<view class="item"><text>7606</text>服务总数</view> <view class="item"><text>{{cityInfo.fuwu_num}}</text>服务总数</view>
<view class="item"><text>0</text>为我服务次数</view> <view class="item"><text>{{cityInfo.star}}</text>为我服务次数</view>
</view> </view>
<view class="park-fd"> <view class="park-fd">
<image :src="$picUrl+'/static/home/phone.jpg'"></image> <image :src="cityInfo.wechat"></image>
<view class="txt">长按识别二维码</view> <view class="txt">长按识别二维码</view>
<view class="txt">添加我的微信</view> <view class="txt">添加我的微信</view>
</view> </view>
@ -32,10 +32,19 @@
// background: 'url('+ img+') center top no-repeat', // background: 'url('+ img+') center top no-repeat',
backgroundSize: '100%', backgroundSize: '100%',
}, },
cityInfo: {},
} }
}, },
onLoad() {
this.cityInfo = uni.getStorageSync("cityInfo")
},
methods: { methods: {
openMap() {
uni.openLocation({
latitude: Number(this.cityInfo.latitude),
longitude: Number(this.cityInfo.longitude)
})
},
} }
} }
</script> </script>

@ -1,7 +1,7 @@
<template> <template>
<view class="comment"> <view class="comment">
<view class="item" v-for="i in 20" :key="i"> <view class="item" v-for="(a,i) in cityInfo.imageList" :key="i" @click="previewImage(i)">
<image :src="$picUrl+'/static/home/ranking.png'"></image> <image :src="a"></image>
</view> </view>
</view> </view>
</template> </template>
@ -10,8 +10,20 @@
export default { export default {
data() { data() {
return { return {
cityInfo: {},
}; };
},
onLoad() {
this.cityInfo = uni.getStorageSync("cityInfo")
},
methods: {
//
previewImage(i){
uni.previewImage({
current: this.cityInfo.imageList[i],
urls: this.cityInfo.imageList
})
},
} }
} }
</script> </script>

@ -4,20 +4,16 @@
<u-navbar title="停车指引" :border-bottom="false" :background="background"></u-navbar> <u-navbar title="停车指引" :border-bottom="false" :background="background"></u-navbar>
</view> </view>
<view class="park-hd"> <view class="park-hd">
<view class="a">昆明湖店·YN_k121</view> <view class="a">{{cityInfo.shop_name}}</view>
<view class="b"><u-icon name="map" style="margin-right: 10rpx;"></u-icon>2线2600m</view> <view class="b"><u-icon name="map" style="margin-right: 10rpx;"></u-icon>{{cityInfo.address}}</view>
</view> </view>
<view class="park-bd"> <view class="park-bd">
<view class="a">停车攻略</view> <view class="a">停车攻略</view>
<view class="b"> <view class="b">
<view class="store">昆明湖店广场地下停车场<text>推荐</text></view> <view class="store">{{cityInfo.parking_name}}<text>推荐</text></view>
<view class="btn">导航</view> <view class="btn" @click="openMap()">导航</view>
</view>
<view class="c">
<view class="p"><text>价格:</text>购物免费停车2小时超出部份收取3元/小时</view>
<view class="p"><text>特点:</text>长时间停留推荐相对安全可享免费停车两小时</view>
<view class="p"><text>详细:</text>佰腾数码广场楼下有地下停车场停车场车位不少且出门即可乘坐电梯至门店但节假日等高峰期车位较为紧张</view>
</view> </view>
<view class="c" v-html="cityInfo.parking_desc"></view>
</view> </view>
</view> </view>
</template> </template>
@ -33,10 +29,19 @@
// background: 'url('+ img+') center top no-repeat', // background: 'url('+ img+') center top no-repeat',
backgroundSize: '100%', backgroundSize: '100%',
}, },
cityInfo: {},
} }
}, },
onLoad() {
this.cityInfo = uni.getStorageSync("cityInfo");
},
methods: { methods: {
openMap() {
uni.openLocation({
latitude: Number(this.cityInfo.latitude),
longitude: Number(this.cityInfo.longitude)
})
},
} }
} }
</script> </script>

@ -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="$picUrl+'/static/news/avater.png'"></image> <image :src="$picUrl+'/static/news/avater.png'"></image>
</view> </view>
@ -14,18 +14,35 @@
</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){

@ -5,11 +5,11 @@
<view class="group"> <view class="group">
<image :src="$picUrl+'/static/serve/right.png'" class="tip tipImg"></image> <image :src="$picUrl+'/static/serve/right.png'" class="tip tipImg"></image>
<text lines="1" class="groupText">不满意重做</text> <text lines="1" class="groupText">不满意重做</text>
<image :src="$picUrl+'/static/serve/right.png'" class="tip"></image> <image :src="$picUrl+'/static/serve/right1.png'" class="tip"></image>
<text lines="1" class="groupText">7x24小时服务</text> <text lines="1" class="groupText">7x24小时服务</text>
<image :src="$picUrl+'/static/serve/right.png'" class="tip"></image> <image :src="$picUrl+'/static/serve/right2.png'" class="tip"></image>
<text lines="1" class="groupText">全场保障</text> <text lines="1" class="groupText">全场保障</text>
<image :src="$picUrl+'/static/serve/right.png'" class="tip"></image> <image :src="$picUrl+'/static/serve/right3.png'" class="tip"></image>
<text lines="1" class="groupText">专业服务</text> <text lines="1" class="groupText">专业服务</text>
</view> </view>
</view> </view>
@ -41,7 +41,7 @@
<text class="listText">支付订单</text> <text class="listText">支付订单</text>
<text class="listText">服务评价</text> <text class="listText">服务评价</text>
</view> </view>
<view class="member" @click="goMember" v-if="userInfo.grade_id == 0"> <view class="member" @click="goMember" v-if="!userInfo == false || userInfo.grade_id == 0">
<view class="memberCenter"> <view class="memberCenter">
会员中心 会员中心
</view> </view>
@ -72,7 +72,7 @@
this.getList(); this.getList();
}, },
onShow() { onShow() {
this.userInfo = uni.getStorageSync("userInfo")?uni.getStorageSync("userInfo"):{} this.userInfo = uni.getStorageSync("userInfo")?uni.getStorageSync("userInfo"): ""
}, },
methods:{ methods:{
openPage1(){ openPage1(){
@ -110,35 +110,38 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.serve { .serve {
height: 100%;
width: 100%; width: 100%;
background-color: #F7F8FA; padding-bottom: 30rpx;
overflow: hidden;
.heade { .heade {
width: 100%; width: 100%;
height: 360rpx; height: 396rpx;
background-color: #fff; background-color: #fff;
padding-top: 28rpx;
box-sizing: border-box;
.headImage { .headImage {
width: 690rpx; width: 690rpx;
height: 264rpx; height: 264rpx;
margin: 28rpx 0 0 34rpx; display: block;
margin: 0 auto 0;
} }
.group { .group {
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 28rpx;
.tip { .tip {
width: 42rpx; width: 40rpx;
height: 42rpx; height: 40rpx;
} margin-left: 10rpx;
.tipImg{ margin-right: 10rpx;
margin-left: 24rpx; &:first-child{
margin-left: 20rpx;
}
} }
.groupText { .groupText {
height: 34rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #444444; color: #444444;
line-height: 34rpx; line-height: 34rpx;
@ -151,7 +154,6 @@
height: 246rpx; height: 246rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx; border-radius: 8rpx 8rpx 8rpx 8rpx;
opacity: 1;
left: 0; left: 0;
right: 0; right: 0;
margin: auto; margin: auto;
@ -160,7 +162,6 @@
.serveTitle { .serveTitle {
height: 40rpx; height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #000000; color: #000000;
line-height: 40rpx; line-height: 40rpx;
@ -171,28 +172,28 @@
white-space: nowrap; white-space: nowrap;
.listItem { .listItem {
width: 100rpx; width: 100rpx;
height: 100rpx;
display: inline-block; display: inline-block;
text-align: center; text-align: center;
align-items: center; align-items: center;
margin-left: 20rpx; margin-left: 20rpx;
text-align: center;
&:first-child{ &:first-child{
margin-left: 0; margin-left: 0;
} }
.itemImage { .itemImage {
width: 56rpx; width: 56rpx;
height: 56rpx; height: 56rpx;
margin-bottom: 16rpx; margin: 0 auto 16rpx;
} }
.itemText { .itemText {
width: 100rpx; width: 100rpx;
height: 34rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #565656; color: #565656;
line-height: 34rpx; line-height: 34rpx;
white-space: nowrap;
overflow: hidden;
} }
} }
} }
@ -200,7 +201,7 @@
.flowPath { .flowPath {
width: 704rpx; width: 704rpx;
height: 534rpx; max-height: 534rpx;
left: 0; left: 0;
right: 0; right: 0;
margin: auto; margin: auto;
@ -208,32 +209,28 @@
border-radius: 8rpx 8rpx 8rpx 8rpx; border-radius: 8rpx 8rpx 8rpx 8rpx;
opacity: 1; opacity: 1;
margin-top: 14rpx; margin-top: 14rpx;
padding-top: 24rpx; padding: 24rpx;
box-sizing: border-box;
.flowTitle { .flowTitle {
margin: 0 0 0 26rpx;
height: 40rpx; height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #000000; color: #000000;
line-height: 40rpx; line-height: 40rpx;
.services { .services {
margin-left: 14rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #565656; color: #565656;
} }
} }
.flowImage { .flowImage {
margin-top: 42rpx;
width: 592rpx; width: 592rpx;
height: 74rpx; height: 74rpx;
margin-left: 60rpx; display: block;
margin: 0 auto;
margin-top: 42rpx;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -241,16 +238,14 @@
} }
.flowList { .flowList {
;
width: 678rpx; width: 678rpx;
height: 34rpx; height: 34rpx;
line-height: 34rpx; line-height: 34rpx;
left: 0; left: 0;
right: 0; right: 0;
margin: auto; margin: auto;
margin-left: 54rpx;
display: flex; display: flex;
// justify-content: space-around; justify-content: center;
margin-top: 18rpx; margin-top: 18rpx;
.listText { .listText {
@ -267,57 +262,46 @@
height: 214rpx; height: 214rpx;
background-image: url('https://www.saas.njrenzhou.com/static/serve/member.png'); background-image: url('https://www.saas.njrenzhou.com/static/serve/member.png');
background-size: 100% 100%; background-size: 100% 100%;
margin: 50rpx 0 0 36rpx; padding: 28rpx;
padding-top: 28rpx; margin-top: 50rpx;
.memberCenter { .memberCenter {
height: 40rpx; height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 600; font-weight: 600;
color: #966542; color: #966542;
line-height: 40rpx; line-height: 50rpx;
margin: 0 0 0 32rpx;
} }
.power { .power {
margin: 4rpx 0 0 32rpx; margin-top: 4rpx;
height: 28rpx;
font-size: 20rpx; font-size: 20rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #966542; color: #966542;
line-height: 28rpx; line-height: 40rpx;
} }
.opera { .opera {
margin: 24rpx 0 0 32rpx; margin-top: 14rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #9F744D; color: #9F744D;
line-height: 28rpx;
display: flex; display: flex;
align-items: center;
.number { .number {
font-size: 52rpx; font-size: 52rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 600; font-weight: 600;
color: #9C714A; color: #9C714A;
line-height: 61rpx; line-height: 61rpx;
} }
.operaBtn { .operaBtn {
margin-left: 14rpx; margin-left: 14rpx;
width: 138rpx; width: 138rpx;
height: 60rpx; height: 60rpx;
background: #9F744D; background: #9F744D;
border-radius: 82rpx 82rpx 82rpx 82rpx; border-radius: 82rpx;
opacity: 1;
text-align: center; text-align: center;
line-height: 54rpx; line-height: 60rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
} }

@ -10,8 +10,8 @@
</view> </view>
<scroll-view scroll-x class="goods-menu"> <scroll-view scroll-x class="goods-menu">
<view class="item" @click="tabItem1(item,index)" v-for="(item,index) in categoryList" :key="index" <view class="item" @click="tabItem1(item,index)" v-for="(item,index) in categoryList" :key="index"
:class="tabIndex1==item?'item-on':''"> :class="tabIndex1==index?'item-on':''">
<image v-if="item.image" :src="item.image.external_url"></image> <image :src="item.image?item.image.external_url:''"></image>
<view class="p">{{item.name}}</view> <view class="p">{{item.name}}</view>
</view> </view>
</scroll-view> </scroll-view>
@ -59,7 +59,7 @@
}, },
// //
isLoading: true, isLoading: true,
tabIndex1: 1, tabIndex1: 0,
tabIndex: 0, tabIndex: 0,
filterIndex: 0, filterIndex: 0,
keyword: "", keyword: "",
@ -114,7 +114,16 @@
} }
Api.brandList(pamars) Api.brandList(pamars)
.then(result => { .then(result => {
app.list = result.data.data; let arr = result.data.data;
if(arr && arr.length > 0){
arr.map(a=>{
a.goods_price_min = Number(a.goods_price_min)
a.goods_price_max = Number(a.goods_price_max)
a.line_price_min = Number(a.line_price_min)
a.line_price_max = Number(a.line_price_max)
})
}
app.list = arr
}) })
.finally(() => app.isLoading = false) .finally(() => app.isLoading = false)
}, },

Loading…
Cancel
Save