Commit f0fe0ab6 authored by lijiongliang's avatar lijiongliang

样式修改

parent ca9b2b6e
......@@ -76,6 +76,7 @@
<script>
import util from '@/pages/login/util.js'
let plugin = requirePlugin("loginPlugin");
export default {
data() {
return {
......@@ -87,7 +88,8 @@
freeCode: {},
carList:[], // 爱车列表
pooupCoupon:false,
timerNum:3
timerNum:3,
timer:null
};
},
methods: {
......@@ -134,25 +136,32 @@
// }
// });
this.pooupCoupon = true
let timer = setInterval(()=>{
if(this.timerNum > 0){
this.timerNum --
}else{
this.pooupCoupon = false
this.timerNum = 3
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {
// 打开成功
// util.h5Init(); //
plugin.getLoginToken().then((res={})=>{
//res.err_code 0 res.token_key
//tokenB
if(res.token_key){
this.timer = setInterval(()=>{
if(this.timerNum > 0){
this.timerNum --
}else{
this.pooupCoupon = false
this.timerNum = 3
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {
// 打开成功
}
})
clearInterval(this.timer)
}
})
clearInterval(timer)
},1000)
}
},1000)
})
} else {
//跳转到领取优惠卷页面
// uni.navigateTo({
......@@ -174,9 +183,16 @@
extraData: { // 需要携带的参数
},
success(res) {
success:(res)=> {
// 打开成功
this.pooupCoupon = false
this.timerNum = 3
clearInterval(this.timer)
},
fail:()=>{
this.pooupCoupon = false
this.timerNum = 3
clearInterval(this.timer)
}
})
},
......
......@@ -20,19 +20,19 @@ export let config = {
author: true,
hiddenLoginType: '2',
//隐藏按钮 1为 帐密方式;2为微信手机号快捷登录
loginConfig: {
jdLoginBtnStyle: 'color:red',
// 登录/注册按钮样式
wxBtnStyle: 'color:red',
// 微信快捷登录按钮样式
userPlaceholder: '',
// 帐密登录的 placeholder
loginBtnStyle: 'color:#fff',
// 帐密登录界面登录按钮样式
tabStyle: 'color:green',
//帐密和手机号登录tab样式
currentTabStyle: 'border-color:green' //帐密和手机号登录tab选中
} // selfTips: [{ //无特殊需求不需要配置
// loginConfig: {
// jdLoginBtnStyle: 'color:red',
// // 登录/注册按钮样式
// wxBtnStyle: 'color:red',
// // 微信快捷登录按钮样式
// userPlaceholder: '',
// // 帐密登录的 placeholder
// loginBtnStyle: 'color:#fff',
// // 帐密登录界面登录按钮样式
// tabStyle: 'color:green',
// //帐密和手机号登录tab样式
// currentTabStyle: 'border-color:green' //帐密和手机号登录tab选中
// } // selfTips: [{ //无特殊需求不需要配置
// tip:'我是测试1',
// url: 'm.jd.com'
// }, {
......
......@@ -71,7 +71,8 @@ export default {
menu: [{
icon: require("@/static/my/my01.png"),
title: "我的订单",
url: "/pagesD/pages/personal/myJdOrder"
url: "",
type:"jd"
},
// {
// icon: require("@/static/my/my12.png"),
......@@ -171,6 +172,19 @@ export default {
})
return;
}
if(vo.type == "jd"){
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: '', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {
// 打开成功
}
})
return;
}
if (vo.title != '微信通知设置') {
uni.navigateTo({
url: vo.url
......
......@@ -155,15 +155,35 @@ export default {
})
},
goDetail(id,link) {
if(link){
let token = uni.getStorageSync('userToken');
if(!token){
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
url: '/pages/login/index/index'
})
return;
}
if(link){
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// })
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: '', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {// 打开成功
}
})
return
}
uni.navigateTo({
url: '/pagesC/pages/shop/detail?id=' + id
})
uni.showToast({
title: "该商品再无链接!",
icon: 'none',
duration: 1500,
});
// uni.navigateTo({
// url: '/pagesC/pages/shop/detail?id=' + id
// })
},
getMallList() {
let opts = {
......
......@@ -41,11 +41,13 @@
</template>
<script>
let plugin = requirePlugin("loginPlugin");
export default {
data() {
return {
pooupSuccess: false,
timerNum: 3
timerNum: 3,
timer:null
}
},
methods: {
......@@ -54,70 +56,95 @@
url: '/app/user/send/coupon',
method: 'post'
};
// this.http.httpTokenRequest(opts, {}).then(res => {
// console.log(res.data, 1111111)
// if (res.data.code == 200) {
// uni.showToast({
// title: "领取成功!",
// icon: 'none',
// });
// this.pooupSuccess = true
// let timer = setInterval(() => {
// if (this.timerNum > 0) {
// this.timerNum--
// } else {
// this.pooupSuccess = false
// this.timerNum = 3
// uni.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
// path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
// extraData: { // 需要携带的参数
// },
// success(res) {
// // 打开成功
// }
// })
// clearInterval(timer)
// }
// }, 1000)
// }
// })
this.http.httpTokenRequest(opts, {}).then(res => {
console.log(res.data, 1111111)
if (res.data.code == 200) {
uni.showToast({
title: "领取成功!",
icon: 'none',
});
this.pooupSuccess = true
// let timer = setInterval(() => {
// if (this.timerNum > 0) {
// this.timerNum--
// } else {
// this.pooupSuccess = false
// this.timerNum = 3
// uni.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
// path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
// extraData: { // 需要携带的参数
// },
// success(res) {
// // 打开成功
// }
// })
// clearInterval(timer)
// }
// }, 1000)
}else{
// uni.showToast({
// title: "您已领取优惠券!",
// icon: 'none',
// duration:1500,
// success() {
// uni.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
// path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
// extraData: { // 需要携带的参数
// },
// success(res) {
// // 打开成功
// }
// })
// }
// });
}
})
// uni.showToast({
// title: "领取成功!",
// icon: 'none',
// });
this.pooupSuccess = true
let timer = setInterval(() => {
if (this.timerNum > 0) {
this.timerNum--
} else {
this.pooupSuccess = false
this.timerNum = 3
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {
// 打开成功
}
})
clearInterval(timer)
}
}, 1000)
// this.pooupSuccess = true
// let timer = setInterval(()=>{
// if(this.timerNum > 0){
// this.timerNum --
// }else{
// this.pooupSuccess = false
// this.timerNum = 3
// uni.navigateToMiniProgram({
// appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
// path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
// extraData: { // 需要携带的参数
// },
// success(res) {
// // 打开成功
// }
// })
// clearInterval(timer)
// }
// },1000)
},
goUseCoupon() {
uni.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74', // 跳转目标小程序的id
path: 'pages/item/detail/detail?sku=100023585323', // 目标小程序的页面路径
extraData: { // 需要携带的参数
},
success(res) {
success:(res)=> {
// 打开成功
this.pooupSuccess = false
this.pooupSuccess = false;
this.timerNum = 3;
clearInterval(this.timer);
},
fail:()=> {
this.pooupSuccess = false;
this.timerNum = 3;
clearInterval(this.timer);
}
})
}
......@@ -132,8 +159,8 @@
display: flex;
align-items: center;
justify-content: center;
.box {
.box {
width: 584rpx;
height: 664rpx;
position: relative;
......
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