Commit 6c0d235b authored by 罗超's avatar 罗超

1

parent 396f5baa
This diff is collapsed.
<template>
<div class="mynav" :style="{ background: bg }">
<swiper :autoplay="false" :style="{ height: height + 'rpx' }">
<swiper :autoplay="false" :style="{ Height: height + 'rpx' }">
<swiper-item v-for="(item, index) in cols" :key="index">
<view :style="[formatStyle]">
<!-- #ifdef MP-WEIXIN -->
......@@ -65,6 +65,7 @@ export default {
created() {
let tempArray = [];
this.height = this.navs.rows * this.height;
console.log(66, this.height);
this.navs.navs.forEach((x, i) => {
tempArray.push(x);
if (
......
{
"name" : "mallapp",
"appid" : "",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"name": "mallapp",
"appid": "",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
/* 5+App特有相关 */
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules" : {
"Share" : {}
"modules": {
"Share": {}
},
/* 应用发布信息 */
"distribute" : {
"distribute": {
/* android打包配置 */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
......@@ -50,58 +50,66 @@
]
},
/* ios打包配置 */
"ios" : {},
"ios": {},
/* SDK配置 */
"sdkConfigs" : {
"share" : {
"weixin" : {
"appid" : "wxbb033190e0ffa5db",
"UniversalLinks" : ""
"sdkConfigs": {
"share": {
"weixin": {
"appid": "wxbb033190e0ffa5db",
"UniversalLinks": ""
}
}
}
}
},
/* 快应用特有相关 */
"quickapp" : {},
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxcf0727a7c78b501e",
"setting" : {
"urlCheck" : false,
"minified" : false
"mp-weixin": {
"appid": "wxcf0727a7c78b501e",
"setting": {
"urlCheck": false,
"minified": false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
},
"mp-alipay" : {
"usingComponents" : true
"mp-alipay": {
"component2": true,
"usingComponents": true,
"appid": "2021002181628809",
"plugins": { // 使用到的插件
"subscribeMsg": { // 订阅消息插件
"version": "*", // 目前只支持设置 * 拉取当前上架最新版本
"provider": "2021001155639035" // 消息订阅插件 appid
}
}
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"h5" : {
"router" : {
"mode" : "history",
"base" : "/h5/"
"h5": {
"router": {
"mode": "history",
"base": "/h5/"
},
"template" : "h5.html",
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
"template": "h5.html",
"sdkConfigs": {
"maps": {
"qqmap": {
"key": "ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
}
}
}
}
}
}
\ No newline at end of file
......@@ -356,7 +356,11 @@
"pages": [{
"path": "index",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"mp-alipay": {
"transparentTitle": "always",
"titlePenetrate": "YES"
}
}
}, {
"path": "pickcarcity"
......@@ -693,7 +697,14 @@
"path": "policyDetail" //政策详情
},
{
"path": "fillOrder" //填写订单
"path": "fillOrder", //填写订单
"usingComponents": { // 引用小程序插件
// #ifdef MP-ALIPAY
"subscribe-msg": "plugin://subscribeMsg/subscribe-msg"
// #endif
}
},
{
"path": "addGuest" //新增旅客
......@@ -711,5 +722,6 @@
"titleNView": false
//#endif
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -254,7 +254,11 @@ export default {
this.end = this.setDefaultDate(this.getDefaultDate(1));
},
});
// #ifdef MP-ALIPAY
uni.setNavigationBarTitle({
title: "",
});
// #endif
//如果需要日期的价格,-1为无房,其他价格代表正常
// if (option && option.request) {
// uni.request({
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -680,7 +680,7 @@ export default {
color: #ffffff;
text-align: center;
line-height: 78rpx;
margin: 20rpx auto 80rpx;
margin: 20rpx auto;
}
.restaurant-detail {
......
<template>
<view class="calendar">
<view class="calenHead-tradition" v-if="mode == '2'">
<!-- #ifdef MP-WEIXIN -->
<picker
class="dateBox"
mode="multiSelector"
......@@ -8,13 +9,19 @@
:value="pickerData.indexList"
@change="bindPickerChange"
>
<view>
<text class="font-big">{{ nowMonth.month }}</text>
<text class="font-small">{{ nowMonth.year }}</text>
<uni-icons type="arrowdown" size="10"></uni-icons>
</view>
<text class="font-big">{{ nowMonth.month }}</text>
<text class="font-small">{{ nowMonth.year }}</text>
<uni-icons type="arrowdown" size="10"></uni-icons>
</picker>
<!-- <text class="reset" @tap="reset">重置</text> -->
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<view class="dateBox" @click="changeDate">
<text class="font-big">{{ nowMonth.month }}</text>
<text class="font-small">{{ nowMonth.year }}</text>
<uni-icons type="arrowdown" size="10"></uni-icons>
</view>
<!-- #endif -->
</view>
<scroll-view class="calenHead" scroll-x v-if="mode == '1'">
<view
......@@ -82,7 +89,9 @@ export default {
},
datePrice: {
type: Array,
default: () => [],
default: function () {
return [];
},
},
howManyMonth: {
//包含当月共显示几个月
......@@ -110,11 +119,6 @@ export default {
space: 0, //周几占位个数 例如 周二占位2个
};
},
watch: {
defaultSelect(val) {
// this.getDefaultData(val)
},
},
mounted() {
this.today = new Date();
this.nowMonth = {
......@@ -203,6 +207,30 @@ export default {
},
},
methods: {
// #ifdef MP-ALIPAY
changeDate() {
let now = new Date().getFullYear();
let that = this;
let curDate = "";
if (that.nowMonth.year && that.nowMonth.month) {
curDate = that.nowMonth.year + "-" + that.nowMonth.month;
} else {
curDate = new Date();
}
my.datePicker({
format: "yyyy-MM",
currentDate: curDate,
startDate: now - 10 + "-01",
endDate: now + 10 + "-12",
success: (res) => {
let arr = res.date.split("-");
that.nowMonth.year = arr[0];
that.nowMonth.month = arr[1];
this.$emit("changeMonth", that.nowMonth);
},
});
},
// #endif
headItemTap(index, month) {
this.current = index;
this.$emit("changeMonth", momth);
......
This diff is collapsed.
function calcContentHeight(chaliang) {
let contentHeight = 0
uni.getSystemInfo({
success(res) {
contentHeight = res.windowHeight - 40 - chaliang
}
})
return contentHeight
let contentHeight = 0
uni.getSystemInfo({
success(res) {
contentHeight = res.windowHeight - 40 - chaliang
}
})
return contentHeight
}
function SystemInfo(){//获取屏幕宽高
function SystemInfo() {//获取屏幕宽高
let SystemInfo = {}
uni.getSystemInfo({
success(res) {
......@@ -17,30 +17,45 @@ function SystemInfo(){//获取屏幕宽高
})
return SystemInfo
}
function getRect(selector){//获取元素的信息
return new Promise((resolve) => {
let view = uni.createSelectorQuery().select(selector);
view.fields({
size: true,
rect: true,
scrollOffset:true
}, (res) => {
resolve(res);
}).exec();
})
}
function getretailer(){//判断是否是分销商
let isdistributor = false
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):{};
if(mall_UserInfo.IsDistrbutorUser && mall_UserInfo.IsDistrbutorUser ==1){
function getRect(selector) {//获取元素的信息
return new Promise((resolve) => {
let view = uni.createSelectorQuery().select(selector);
view.fields({
size: true,
rect: true,
scrollOffset: true
}, (res) => {
resolve(res);
}).exec();
})
}
function getretailer() {//判断是否是分销商
let isdistributor = false
let mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo") : {};
if (mall_UserInfo.IsDistrbutorUser && mall_UserInfo.IsDistrbutorUser == 1) {
isdistributor = true
}
return isdistributor
}
// #ifdef MP-ALIPAY
// 引入消息模板方法
const { requestSubscribeMessage } = requirePlugin("subscribeMsg");
function SubscribeMsgAli(ids, cb) {//支付宝小程序订阅消息
requestSubscribeMessage({ // 触发消息订阅弹框
entityIds: ids, // 模板消息id,
callback(res) {
cb()
}
})
}
// #endif
export default {
calcContentHeight,
calcContentHeight,
SystemInfo,
getRect,
getretailer
getretailer,
// #ifdef MP-ALIPAY
SubscribeMsgAli
// #endif
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment