|
@@ -1,16 +1,9 @@
|
|
|
<template>
|
|
|
<view class="kaihuiLink">
|
|
|
- <view class="imgBox">
|
|
|
- <image src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/g4F5r34OhLD99e4277ef0139b36812fdd75a8d3b4aad.png/1.png" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="btn">
|
|
|
- <view class="kaihuiBtn" @click="handleBtn">立即下单</view>
|
|
|
- </view>
|
|
|
- <view class="kaihuiRule">
|
|
|
- <view class="title">
|
|
|
- <image src="../static/kaihuifuli.png" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="text">*仅限本平台会员中国移动用户专享</view>
|
|
|
+ <view class="imgBox" @click="handleBtn">
|
|
|
+ <image
|
|
|
+ src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/ltefe2iGqNPa7eeb7ab61a1b713835d0587ee595b211.jpg/1.jpg"
|
|
|
+ mode="widthFix"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -29,100 +22,66 @@
|
|
|
},
|
|
|
methods: {
|
|
|
handleBtn() {
|
|
|
- if(uni.getStorageSync('token')){
|
|
|
- if(JSON.parse(uni.getStorageSync('userInfo')).setMealCode != 0&&JSON.parse(uni.getStorageSync('userInfo')).setMealCode){
|
|
|
+ if (uni.getStorageSync('token')) {
|
|
|
+ if (JSON.parse(uni.getStorageSync('userInfo')).setMealCode != 0 && JSON.parse(uni.getStorageSync(
|
|
|
+ 'userInfo')).setMealCode) {
|
|
|
uni.navigateToMiniProgram({
|
|
|
- appId:'wx57a08b407511613d',
|
|
|
- path:'//凯辉/首页/YWUe2IrfXEryMkw'
|
|
|
+ appId: 'wx57a08b407511613d',
|
|
|
+ path: '//凯辉/首页/YWUe2IrfXEryMkw'
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showModal({
|
|
|
- title:'此权益需要开通会员才可使用',
|
|
|
- cancelText:'下次再说',
|
|
|
- confirmText:'立即开通',
|
|
|
+ title: '此权益需要开通会员才可使用',
|
|
|
+ cancelText: '下次再说',
|
|
|
+ confirmText: '立即开通',
|
|
|
success(res) {
|
|
|
- if(res.confirm){
|
|
|
+ if (res.confirm) {
|
|
|
uni.navigateTo({
|
|
|
- url:'/my/memberCenter/index'
|
|
|
+ url: '/my/memberCenter/index'
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
- }else{
|
|
|
+
|
|
|
+ } else {
|
|
|
return uni.showModal({
|
|
|
- title:'请登录',
|
|
|
- confirmText:'去登录',
|
|
|
- success(res){
|
|
|
- if(res.confirm){
|
|
|
+ title: '请登录',
|
|
|
+ confirmText: '去登录',
|
|
|
+ success(res) {
|
|
|
+ if (res.confirm) {
|
|
|
uni.navigateTo({
|
|
|
- url:'/login/login/login?redirect=/special/water'
|
|
|
+ url: '/login/login/login?redirect=/special/water'
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- loadedPage(){
|
|
|
+ loadedPage() {
|
|
|
uni.hideLoading()
|
|
|
},
|
|
|
- onmessage(val){
|
|
|
+ onmessage(val) {
|
|
|
console.log(val);
|
|
|
}
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {},
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.kaihuiLink {
|
|
|
- .imgBox {
|
|
|
- &>image {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ overflow-x: hidden;
|
|
|
|
|
|
- .btn {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
+ .imgBox {
|
|
|
+ height: 100vh;
|
|
|
position: relative;
|
|
|
|
|
|
- .kaihuiBtn {
|
|
|
- position: absolute;
|
|
|
- width: 360rpx;
|
|
|
- height: 80rpx;
|
|
|
- border-radius: 40rpx;
|
|
|
- background-color: #EE4320;
|
|
|
- color: white;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .kaihuiRule {
|
|
|
- margin-top: 60rpx;
|
|
|
- width: 100%;
|
|
|
- position: relative;
|
|
|
- .title{
|
|
|
- position: absolute;
|
|
|
- left:200rpx;
|
|
|
- &>image{
|
|
|
- width: 350rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- .text{
|
|
|
- position: absolute;
|
|
|
- top: 40rpx;
|
|
|
- font-size: 26rpx;
|
|
|
- margin-top: 20rpx;
|
|
|
- margin-left: 20rpx;
|
|
|
+ &>image {
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|