小程序bug
This commit is contained in:
@@ -16,10 +16,10 @@ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
|
|||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// #ifdef APP || MP-WEIXIN
|
// #ifdef APP || MP-WEIXIN
|
||||||
// const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上、、
|
const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上、、
|
||||||
// const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上
|
const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上
|
||||||
const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
|
// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
|
||||||
const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/
|
// const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// import VConsole from "./vConsole.js"
|
// import VConsole from "./vConsole.js"
|
||||||
|
|||||||
@@ -200,6 +200,13 @@
|
|||||||
// "navigationBarTextStyle": "black"
|
// "navigationBarTextStyle": "black"
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
|
{
|
||||||
|
"path": "pages/chooseasong/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "歌曲列表",
|
||||||
|
"navigationBarTextStyle": "black"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/user/address/index",
|
"path": "pages/user/address/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
36
pages/chooseasong/index.vue
Normal file
36
pages/chooseasong/index.vue
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<view class="search flex-between">
|
||||||
|
<view class="">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<image src="@/static/avatar.png" mode="aspectFill"></image>
|
||||||
|
</view>
|
||||||
|
<view class="contentclass">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
onLoad() {},
|
||||||
|
computed: {},
|
||||||
|
mounted() {},
|
||||||
|
onShow() {},
|
||||||
|
methods: {}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.content {
|
||||||
|
.search{
|
||||||
|
width: 100%;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<indexs v-if="!showindex" :usershopUserinfo='usershopUserinfo'></indexs>
|
<indexs v-if="!showindex" :usershopUserinfo='usershopUserinfo' :userInfo='userInfo'></indexs>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -252,6 +252,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showindex: false,
|
showindex: false,
|
||||||
|
userInfo:'',//个人信息
|
||||||
NAME: uni.cache.get('NAME'),
|
NAME: uni.cache.get('NAME'),
|
||||||
timersetInterval: '0', //定时器
|
timersetInterval: '0', //定时器
|
||||||
isFixedTop: false, //吸顶是否显示
|
isFixedTop: false, //吸顶是否显示
|
||||||
@@ -340,6 +341,7 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.usershopUserinfo = res.data
|
this.usershopUserinfo = res.data
|
||||||
}
|
}
|
||||||
|
this.loginwxuserInfo() //个人信息接口
|
||||||
} else {
|
} else {
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: 'wgs84',
|
type: 'wgs84',
|
||||||
@@ -391,6 +393,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 个人信息
|
||||||
|
async loginwxuserInfo() {
|
||||||
|
let res = await this.api.loginwxuserInfo({
|
||||||
|
userId: uni.cache.get('userInfo').id
|
||||||
|
})
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.cache.set('userInfo', res.data);
|
||||||
|
this.userInfo = uni.cache.get('userInfo')
|
||||||
|
}
|
||||||
|
},
|
||||||
closeproductlist() {
|
closeproductlist() {
|
||||||
this.showproductlist = false
|
this.showproductlist = false
|
||||||
// console.log('close');
|
// console.log('close');
|
||||||
|
|||||||
@@ -33,12 +33,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="towcontentitem flex-colum" @click="scanCodehandle(1)">
|
<view class="towcontentitem flex-colum" @click="scanCodehandle(1)">
|
||||||
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/takeaway.png" mode="widthFix"
|
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/takeaway.png" mode="widthFix"
|
||||||
style="width: 128.05rpx; height: 120.41rpx;"></image>
|
style="width: 164rpx; height: 164rpx"></image>
|
||||||
<text class="towcontentitemtext">点个外卖</text>
|
<text class="towcontentitemtext">会员充值</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer-banner">
|
<view class="footer-banner">
|
||||||
<!-- <u-swiper :list="footerBanners" radius="20" height="274" :indicator="banners.length > 1"
|
<!-- <u-swiper :list="footerBanners" radius="20" height="274" :indicator="banners.length > 1"
|
||||||
imgMode="widthFix"></u-swiper> -->
|
imgMode="widthFix"></u-swiper> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -52,7 +52,6 @@
|
|||||||
return {
|
return {
|
||||||
banners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/banner1.png'],
|
banners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/banner1.png'],
|
||||||
footerBanners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/footer_banner1.png'],
|
footerBanners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/footer_banner1.png'],
|
||||||
userInfo: uni.cache.get('userInfo'),
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -60,11 +59,17 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default () {
|
default () {
|
||||||
return {
|
return {
|
||||||
amount:'',
|
amount: '',
|
||||||
shopName: ""
|
shopName: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
userInfo: {
|
||||||
|
type: Object,
|
||||||
|
default () {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
scanCodehandle(i) {
|
scanCodehandle(i) {
|
||||||
@@ -88,9 +93,13 @@
|
|||||||
// url:'/pages/order_food/order_food'
|
// url:'/pages/order_food/order_food'
|
||||||
// })
|
// })
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
// uni.pro.navigateTo('pay_code/pay_code?shopInfo=', {
|
||||||
title: '此店铺暂未开通外卖',
|
// shopName: this.usershopUserinfo.shopName,
|
||||||
icon: 'none'
|
// amount: this.usershopUserinfo.amount,
|
||||||
|
// shopId: uni.cache.get('shopUser')
|
||||||
|
// })
|
||||||
|
uni.pro.navigateTo('member/memberdetails', {
|
||||||
|
shopId_id: uni.cache.get('shopUser'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -167,7 +176,7 @@
|
|||||||
|
|
||||||
.after {
|
.after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:46rpx;
|
top: 46rpx;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<view class="towcontentitemone flex-start">
|
<view class="towcontentitemone flex-start">
|
||||||
<image class="towcontentitemoneimage" :src="userInfo.logo" mode="aspectFill"></image>
|
<image class="towcontentitemoneimage" :src="userInfo.logo" mode="aspectFill"></image>
|
||||||
<view class="towcontentitemonetext flex-colum-start">
|
<view class="towcontentitemonetext flex-colum-start">
|
||||||
<text class="towcontentitemonetextone">{{userInfo.chainName || '暂无昵称'}}</text>
|
<text class="towcontentitemonetextone">{{userInfo.shopName || '暂无昵称'}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="towcontentitemthere flex-start">
|
<view class="towcontentitemthere flex-start">
|
||||||
|
|||||||
Reference in New Issue
Block a user