|
@@ -17,6 +17,8 @@
|
|
|
|
|
|
|
|
<view class="w100 gap"></view>
|
|
<view class="w100 gap"></view>
|
|
|
|
|
|
|
|
|
|
+ <official-account @binderror="handleOAerror" @bindload="handleOAload"></official-account>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<view class="menu-content w100">
|
|
<view class="menu-content w100">
|
|
|
<uv-grid :border="false" :col="4">
|
|
<uv-grid :border="false" :col="4">
|
|
@@ -36,14 +38,16 @@
|
|
|
</template>
|
|
</template>
|
|
|
<uv-empty v-else mode="order" text="请先登录" :marginTop="100"></uv-empty>
|
|
<uv-empty v-else mode="order" text="请先登录" :marginTop="100"></uv-empty>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+<!--
|
|
|
<movable-area class="mov-area">
|
|
<movable-area class="mov-area">
|
|
|
- <movable-view :x="state.screenWidth" :y="300" direction="all" @change="onChange" class="customer-service">
|
|
|
|
|
|
|
+ <movable-view :x="state.screenWidth" :y="state.screenHeight-100" direction="all" @change="onChange" class="customer-service">
|
|
|
<button open-type="contact" @contact="handleContact" class="contact" send-message-title="YesWash洗车客服">在线客服</button>
|
|
<button open-type="contact" @contact="handleContact" class="contact" send-message-title="YesWash洗车客服">在线客服</button>
|
|
|
<image class="cs" src="/static/iconfont/cs.svg"/>
|
|
<image class="cs" src="/static/iconfont/cs.svg"/>
|
|
|
</movable-view>
|
|
</movable-view>
|
|
|
- </movable-area>
|
|
|
|
|
|
|
+ </movable-area>-->
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <custom-service></custom-service>
|
|
|
<!-- 站点清单 end-->
|
|
<!-- 站点清单 end-->
|
|
|
|
|
|
|
|
|
|
|
|
@@ -51,7 +55,7 @@
|
|
|
<uv-popup ref="parking_popup_ref">
|
|
<uv-popup ref="parking_popup_ref">
|
|
|
<view class="parking_box">
|
|
<view class="parking_box">
|
|
|
<text>长按识别二维码获取停车优惠</text>
|
|
<text>长按识别二维码获取停车优惠</text>
|
|
|
- <image show-menu-by-longpress src="/static/parking-qrcode.png"/>
|
|
|
|
|
|
|
+ <image show-menu-by-longpress src="/static/parking-qrcode.jpg"/>
|
|
|
</view>
|
|
</view>
|
|
|
</uv-popup>
|
|
</uv-popup>
|
|
|
|
|
|
|
@@ -121,7 +125,8 @@ const initState = () => ({
|
|
|
position: "fixed",
|
|
position: "fixed",
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- screenWidth: 350
|
|
|
|
|
|
|
+ screenWidth: 350,
|
|
|
|
|
+ screenHeight: 1200
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const state = reactive(initState())
|
|
const state = reactive(initState())
|
|
@@ -130,6 +135,7 @@ onLoad((e: any) => {
|
|
|
let height = uni.getWindowInfo().windowHeight;
|
|
let height = uni.getWindowInfo().windowHeight;
|
|
|
// console.log(height, width, "screen")
|
|
// console.log(height, width, "screen")
|
|
|
state.screenWidth = uni.getWindowInfo().windowWidth;
|
|
state.screenWidth = uni.getWindowInfo().windowWidth;
|
|
|
|
|
+ state.screenHeight = uni.getWindowInfo().windowHeight;
|
|
|
// const bound = uni.getMenuButtonBoundingClientRect();
|
|
// const bound = uni.getMenuButtonBoundingClientRect();
|
|
|
// width: 100%;height:170px;
|
|
// width: 100%;height:170px;
|
|
|
state.customStyle = {
|
|
state.customStyle = {
|
|
@@ -203,7 +209,7 @@ onShow(() => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
onHide(() => {
|
|
onHide(() => {
|
|
|
- Object.assign(state, initState());
|
|
|
|
|
|
|
+ // Object.assign(state, initState());
|
|
|
removeListener();
|
|
removeListener();
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -345,13 +351,14 @@ const handleNavStation = (station: any) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-const handleContact = (e: any) => {
|
|
|
|
|
- // console.log("handleContact", e)
|
|
|
|
|
|
|
+
|
|
|
|
|
+const handleOAerror = (e) => {
|
|
|
|
|
+ console.log("handleOAerror official-account",e)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-const onChange = (e) => {
|
|
|
|
|
- // console.log(e)
|
|
|
|
|
|
|
+const handleOAload = (e) => {
|
|
|
|
|
+ console.log("handleOAload official-account",e)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|