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

1

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