diff --git a/App.vue b/App.vue
index 1f7b077..83e2dff 100644
--- a/App.vue
+++ b/App.vue
@@ -1,6 +1,6 @@
-
+
+
\ No newline at end of file
diff --git a/libs/components/demo-title.vue b/libs/components/demo-title.vue
new file mode 100644
index 0000000..1386ff8
--- /dev/null
+++ b/libs/components/demo-title.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/components/dynamic-demo-template.vue b/libs/components/dynamic-demo-template.vue
new file mode 100644
index 0000000..2bafebe
--- /dev/null
+++ b/libs/components/dynamic-demo-template.vue
@@ -0,0 +1,689 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ section_btn }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/components/multiple-options-demo.vue b/libs/components/multiple-options-demo.vue
new file mode 100644
index 0000000..f3644b6
--- /dev/null
+++ b/libs/components/multiple-options-demo.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/components/nav-index-button.vue b/libs/components/nav-index-button.vue
new file mode 100644
index 0000000..8301940
--- /dev/null
+++ b/libs/components/nav-index-button.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/mixin/dynamic_demo_mixin.js b/libs/mixin/dynamic_demo_mixin.js
new file mode 100644
index 0000000..66ff992
--- /dev/null
+++ b/libs/mixin/dynamic_demo_mixin.js
@@ -0,0 +1,52 @@
+/**
+ * 动态参数演示mixin
+ */
+module.exports = {
+ data() {
+ return {
+ // 效果显示框top的值
+ contentContainerTop: '0px',
+ contentContainerIsTop: false,
+
+ // 参数显示框top的值
+ sectionContainerTop: '0px'
+ }
+ },
+ onReady() {
+ this.updateSectionContainerTop()
+ },
+ methods: {
+ // 处理演示效果框的位置
+ async _handleContentConatinerPosition() {
+ // 获取效果演示框的节点信息
+ const contentContainer = await this._tGetRect('#content_container')
+ // 获取参数框的节点信息
+ this._tGetRect('#section_container').then((res) => {
+ // 判断参数框是否在移动,如果是则更新效果框的位置
+ // 如果效果框的顶部已经触控到顶部导航栏就停止跟随
+ if (res.top - contentContainer.bottom != 15) {
+ const newTop = res.top - (contentContainer.height + uni.upx2px(20))
+ const minTop = this.vuex_custom_bar_height + 1
+ if (newTop < minTop) {
+ this.contentContainerTop = minTop + 'px'
+ this.contentContainerIsTop = true
+ } else {
+ this.contentContainerTop = newTop + 'px'
+ this.contentContainerIsTop = false
+ }
+ }
+ })
+ },
+ // 更新状态切换栏位置信息
+ updateSectionContainerTop() {
+ this._tGetRect('#content_container').then((res) => {
+ this.contentContainerTop = (this.vuex_custom_bar_height + 148) + 'px'
+ this.sectionContainerTop = (res.height + 20) + 'px'
+ })
+ }
+ },
+ // 监听页面滚动
+ onPageScroll() {
+ this._handleContentConatinerPosition()
+ }
+}
diff --git a/libs/mixin/template_page_mixin.js b/libs/mixin/template_page_mixin.js
new file mode 100644
index 0000000..3a46196
--- /dev/null
+++ b/libs/mixin/template_page_mixin.js
@@ -0,0 +1,60 @@
+/**
+ * 演示页面mixin
+ */
+module.exports = {
+ data() {
+ return {
+
+ }
+ },
+ onLoad() {
+ // 更新顶部导航栏信息
+ this.updateCustomBarInfo()
+ },
+ methods: {
+ // 点击左上角返回按钮时触发事件
+ goBack() {
+ // 通过判断当前页面的页面栈信息,是否有上一页进行返回,如果没有则跳转到首页
+ const pages = getCurrentPages()
+ if (pages && pages.length > 0) {
+ const firstPage = pages[0]
+ if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index')) {
+ uni.reLaunch({
+ url: '/pages/index'
+ })
+ } else {
+ uni.navigateBack({
+ delta: 1
+ })
+ }
+ } else {
+ uni.reLaunch({
+ url: '/pages/index'
+ })
+ }
+ },
+ // 更新顶部导航栏信息
+ async updateCustomBarInfo() {
+ // 获取vuex中的自定义顶栏的高度
+ let customBarHeight = this.vuex_custom_bar_height
+ let statusBarHeight = this.vuex_status_bar_height
+ // 如果获取失败则重新获取
+ if (!customBarHeight) {
+ try {
+ const navBarInfo = await this.$t.updateCustomBar()
+ customBarHeight = navBarInfo.customBarHeight
+ statusBarHeight = navBarInfo.statusBarHeight
+ } catch(e) {
+ setTimeout(() => {
+ this.updateCustomBarInfo()
+ }, 10)
+ return
+ }
+ }
+
+ // 更新vuex中的导航栏信息
+ this.$t.vuex('vuex_status_bar_height', statusBarHeight)
+ this.$t.vuex('vuex_custom_bar_height', customBarHeight)
+ }
+ }
+}
\ No newline at end of file
diff --git a/libs/navigation/navigation.js b/libs/navigation/navigation.js
new file mode 100644
index 0000000..ec62a40
--- /dev/null
+++ b/libs/navigation/navigation.js
@@ -0,0 +1,330 @@
+/**
+ * 页面展示列表数据
+ */
+export default {
+ data: [{
+ title: '图鸟首页',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [{
+ icon: 'code',
+ title: '关于我们',
+ url: '/homePages/about',
+ author: '图鸟北北'
+ },{
+ icon: 'code',
+ title: '全局搜索',
+ url: '/homePages/search',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '今日热榜',
+ url: '/homePages/hot',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '前端业务',
+ url: '/homePages/profession',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '加载效果',
+ url: '/homePages/loading',
+ author: '图鸟北北'
+ }
+ ]
+ },
+ {
+ title: '酷炫圈子',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [{
+ icon: 'code',
+ title: '博主_Me',
+ url: '/circlePages/blogger',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '博主_Ta',
+ url: '/circlePages/blogger_other',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '编辑发布',
+ url: '/circlePages/edit',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '广告页',
+ url: '/circlePages/advertise',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '资讯详情',
+ url: '/circlePages/news',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '名片王者',
+ url: '/circlePages/king',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '智能名片',
+ url: '/circlePages/business',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '精选圈子',
+ url: '/circlePages/group',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '积分排行',
+ url: '/circlePages/ranking',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '圈子详情',
+ url: '/circlePages/details',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '预约接龙',
+ url: '/circlePages/reserve',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '活动创建',
+ url: '/circlePages/create',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '打造圈子',
+ url: '/circlePages/build',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '一起群聊',
+ url: '/circlePages/chat',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '对话聊天',
+ url: '/circlePages/chatting',
+ author: '图鸟北北'
+ }
+ ]
+ },
+ {
+ title: '活动广场',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [{
+ icon: 'code',
+ title: '地图打卡',
+ url: '/activityPages/map',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '快速答题',
+ url: '/activityPages/topic',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '课程学习',
+ url: '/activityPages/study',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '开源项目',
+ url: '/activityPages/project',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '活动星球',
+ url: '/activityPages/planet',
+ author: '图鸟北北'
+ }
+ ]
+ },
+ {
+ title: '商品优选',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [{
+ icon: 'code',
+ title: '优质商家',
+ url: '/preferredPages/shop',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '商品详情',
+ url: '/preferredPages/product',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '历史订单',
+ url: '/preferredPages/order',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '商品分类',
+ url: '/preferredPages/classify',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '商家相册',
+ url: '/preferredPages/photo',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '品牌官网',
+ url: '/preferredPages/website',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '积分兑换',
+ url: '/preferredPages/redeem',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '免单活动',
+ url: '/preferredPages/award',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '免单获取',
+ url: '/preferredPages/awardget',
+ author: '图鸟北北'
+ }
+ ]
+ },
+ {
+ title: '关于我的',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [{
+ icon: 'code',
+ title: '使用协议',
+ url: '/minePages/protocol',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '授权登录',
+ url: '/minePages/login',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '消息通知',
+ url: '/minePages/message',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '全局设置',
+ url: '/minePages/set',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '立即体验',
+ url: '/minePages/start',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '感谢名单',
+ url: '/minePages/thanks',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '版本更新',
+ url: '/minePages/version',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '帮助中心',
+ url: '/minePages/help',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '头像上传',
+ url: '/minePages/avatar',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '积分明细',
+ url: '/minePages/integral',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '积分签到',
+ url: '/minePages/signed',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '好物收藏',
+ url: '/minePages/collect',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '账号安全',
+ url: '/minePages/safety',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '赞赏支持',
+ url: '/minePages/reward',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '缺省页',
+ url: '/minePages/default',
+ author: '图鸟北北'
+ },
+ {
+ icon: 'code',
+ title: '富文本',
+ url: '/minePages/content',
+ author: '图鸟北北'
+ }
+ ]
+ }
+ ]
+}
diff --git a/main.js b/main.js
index 74b2cd9..c1a0d4c 100644
--- a/main.js
+++ b/main.js
@@ -1,10 +1,10 @@
-import Vue from 'vue'
import App from './App'
-
-
+import store from './store'
+import Vue from 'vue'
import HttpRequest from './common/httpRequest'
import HttpCache from './common/cache'
import queue from './common/queue'
+import TuniaoUI from 'tuniao-ui'
Vue.config.productionTip = false
Vue.prototype.$Request = HttpRequest;
@@ -12,7 +12,6 @@ Vue.prototype.$queue = queue;
Vue.prototype.$Sysconf = HttpRequest.config;
Vue.prototype.$SysCache = HttpCache;
-
App.mpType = 'app'
// 引入全局uView
@@ -21,13 +20,17 @@ Vue.use(uView);
const app = new Vue({
+ store,
...App
})
// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)
-
+Vue.use(TuniaoUI)
+// 引入TuniaoUI提供的vuex简写方法
+let vuexStore = require('@/store/$t.mixin.js')
+Vue.mixin(vuexStore)
// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
diff --git a/manifest.json b/manifest.json
index 5e15b72..2f0fa3a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
- "versionName" : "1.0.7",
- "versionCode" : 107,
+ "versionName" : "1.0.8",
+ "versionCode" : 108,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/me/balance/index.vue b/me/balance/index.vue
index c4142b2..714f61a 100644
--- a/me/balance/index.vue
+++ b/me/balance/index.vue
@@ -20,8 +20,8 @@
-
@@ -80,7 +80,7 @@
},
onShow() {
this.getAmount()
- this.getList()
+ this.getUserBalanceList()
},
onPullDownRefresh() {
this.getAmount()
@@ -93,7 +93,7 @@
getAmount() {
this.$Request.getT('app/moneyDetails/selectUserMoney').then(res => {
uni.stopPullDownRefresh()
- if (res.code == 0) {
+ if (res.code === 0) {
this.amount = res.data.amount || 0
} else {
this.amount = '0.00'
@@ -106,7 +106,7 @@
}
this.$Request.getT('app/cash/withdraw', params).then(res => {
console.log(res)
- if (res.code == 0) {
+ if (res.code === 0) {
// this.amount = res.data.amount
} else {
// this.amount = '0.00'
@@ -120,7 +120,7 @@
/**
* 获取余额明细
*/
- getList() {
+ getUserBalanceList() {
let data = {
page: this.page,
limit: this.limit
@@ -129,14 +129,14 @@
setTimeout(() => {
this.refresherTriggered = false
}, 1500)
- if (res.code == 0) {
+ if (res.code === 0) {
this.pages = res.data.pages
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
- if (this.page == 1) {
+ if (this.page === 1) {
this.list = res.data.records
} else {
this.list = [...this.list, ...res.data.records]
@@ -150,17 +150,17 @@
})
},
//上拉刷新
- scrolltoupper() {
+ scrollToUpper() {
this.page = 1
this.refresherTriggered = true
- this.getList()
+ this.getUserBalanceList()
},
//加载更多
- scrolltolower() {
+ scrollToLower() {
if (this.page < this.pages) {
this.status = 'loading'
this.page += 1
- this.getList()
+ this.getUserBalanceList()
} else {
this.status = 'nomore'
}
diff --git a/me/choujiang/choujiang.vue b/me/choujiang/choujiang.vue
index 97c8d26..892ef20 100644
--- a/me/choujiang/choujiang.vue
+++ b/me/choujiang/choujiang.vue
@@ -96,6 +96,10 @@
},
data() {
return {
+ // 1 订单拉起抽奖
+ // 2 周任务拉起抽奖
+ // 3 月任务拉起抽奖
+ source:1,
background:{
background:'transparent'
},
@@ -237,7 +241,7 @@
// 注意这里返回的是一个 Promise
// 大哥,这里只是模拟,别告诉我你不会对接自己的接口
async requestApiGetPrizeList() {
- const res = await this.$Request.getT('/app/discSpinning/selectDiscSpinning')
+ const res = await this.$Request.getT('/app/discSpinning/selectDiscSpinning',{source:this.source})
if (res.code == 0) {
return {
ok: true,
@@ -434,7 +438,7 @@
async remoteGetPrizeIndex() {
this.result=''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
- const res = await this.$Request.getT('app/discSpinning/draw')
+ const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source})
this.freeNum--
// this.getCount()
console.log(res);
@@ -539,7 +543,7 @@
}
},
async getCount(){
- const res=await this.$Request.getT('app/discSpinning/drawCount')
+ const res=await this.$Request.getT('app/discSpinning/drawCount',{source:this.source})
if(res.code==0){
this.freeNum=res.count||0
this.freeNumDay=res.sum||0
@@ -555,6 +559,9 @@
},
onLoad(opt) {
this.option = opt
+ if(opt.source){
+ this.source=opt.source
+ }
this.prizeList = []
this.getCount()
this.getRedPack()
diff --git a/me/collect/index.vue b/me/collect/index.vue
index 19044b7..e3d3a25 100644
--- a/me/collect/index.vue
+++ b/me/collect/index.vue
@@ -47,8 +47,8 @@
limit: this.limit,
}
this.$u.api.collectList(data).then(res => {
- if(res.code == 0) {
- if( this.page == 1) {
+ if(res.code === 0) {
+ if( this.page === 1) {
this.collectList = res.data.records
uni.stopPullDownRefresh();
return
diff --git a/me/course/index.vue b/me/course/index.vue
index 8ecc805..3480e4b 100644
--- a/me/course/index.vue
+++ b/me/course/index.vue
@@ -69,13 +69,13 @@
limit: this.limit,
}
this.$u.api.selectCourse(data).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
res.data.list.forEach(ret => {
if (ret.avatar) {
ret.avatar = ret.avatar.split(',')
}
})
- if (this.page == 1) {
+ if (this.page === 1) {
this.courseList = res.data.list
uni.stopPullDownRefresh();
return
diff --git a/me/detail/detailIOS.nvue b/me/detail/detailIOS.nvue
index 7ba91fe..2decad5 100644
--- a/me/detail/detailIOS.nvue
+++ b/me/detail/detailIOS.nvue
@@ -5,7 +5,7 @@
-
-
+
@@ -57,7 +57,7 @@
-
+
@@ -188,7 +188,7 @@
-
@@ -390,7 +390,6 @@
}
},
onShow() {
- console.log("走了iOS播放器。。。。。。。。。。。。。。。");
//当应用从后台进入前台时自动播放
if (this.videoContext) {
this.videoContext.play()
@@ -398,7 +397,7 @@
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
let that = this
uni.$on('back', (data) => {
- if (data.flag == true) {
+ if (data.flag) {
that.showPay = false
that.getDataList(that.courseId, that.courseDetailsId, true);
that.getMyLoveStatus()
@@ -468,14 +467,14 @@
// #endif
this.$nextTick(() => {
- this.closePopusPay()
+ this.closePopupPay()
})
if (this.courseId) {
this.getDataList(this.courseId, this.courseDetailsId);
}
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.getRedEnvelopeTips = res.data
}
})
@@ -494,7 +493,7 @@
console.log('this bottom padding = ' + this.paddingBottom);
httpsRequest.getT("app/common/type/919", {}).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
@@ -535,7 +534,7 @@
*/
getScale() {
httpsRequest.getT("app/common/type/914", {}).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.scale = Number(res.data.value)
}
});
@@ -574,7 +573,7 @@
},
//选集弹窗的回调
changeXj(e) {
- if (e.show == false) {
+ if (!e.show) {
//关闭弹窗的时候重置scrollIntoViews,防止关闭后第二次点就不能自动滑动到当前集的位置
this.scrollIntoViews = 'video0'
}
@@ -615,7 +614,7 @@
});
},
isCheckPay(status, name, order) {
- if (status == 0) {
+ if (status === 0) {
this.setPayment(name, order);
} else {
uni.hideLoading();
@@ -625,7 +624,7 @@
});
}
},
- iphonepay() {
+ iphonePay() {
let that = this
plus.payment.getChannels((res) => {
let channel = res.find(i => i.id === 'appleiap')
@@ -681,7 +680,7 @@
httpsRequest.postT('/app/ios/isoPayApp?receipt=' + receipt + '&ordersId=' + that.iosPayId).then(
res => {
uni.hideLoading();
- if (res.status == 0) {
+ if (res.status === 0) {
uni.showToast({
title: '支付成功',
duration: 2000,
@@ -693,7 +692,7 @@
},
// 充值
pay() {
- if (this.checked == false) {
+ if (!this.checked) {
uni.showToast({
title: '请阅读并同意《付费须知说明》',
icon: 'none'
@@ -704,7 +703,7 @@
uni.showLoading({
title: '支付中...'
})
- if (this.openWay == 2) {
+ if (this.openWay === 2) {
// 微信APP支付 根据订单id获取支付信息
httpsRequest.postT("/app/wxPay/payMoney", {
classify: 1,
@@ -712,7 +711,7 @@
}).then(ret => {
this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
- } else if (this.openWay == 1) {
+ } else if (this.openWay === 1) {
let paytype = 'h5'
// #ifdef APP
paytype = 'app'
@@ -725,7 +724,7 @@
});
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
- } else if (this.openWay == 3) {
+ } else if (this.openWay === 3) {
let userId = uni.getStorageSync('userId');
let data = {
payClassifyId: this.wallet[this.wallCurr].payClassifyId,
@@ -742,7 +741,7 @@
});
}
});
- } else if (this.openWay == 4) {
+ } else if (this.openWay === 4) {
let userId = uni.getStorageSync('userId');
let data = {
// money: this.wallet[this.current].price
@@ -772,7 +771,7 @@
getMyMoney() {
if (uni.getStorageSync('token')) {
httpsRequest.getT('/app/moneyDetails/selectUserMoney').then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.moneyNum = res.data.money
}
})
@@ -826,7 +825,7 @@
*/
getMoneyList() {
httpsRequest.getT('/app/payClassify/selectPayClassifyList').then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
let priceObj = this.findMinMaxPricesWithIndexes(res.data)
this.wallet = res.data
this.wallet[priceObj.minPriceIndex].remarks = '特惠'
@@ -843,7 +842,7 @@
this.wallet = arr
}
// #ifdef APP
- this.iphonepay()
+ this.iphonePay()
// #endif
} else {
uni.showToast({
@@ -854,11 +853,11 @@
})
},
//关闭支付弹窗
- closePopusPay() {
+ closePopupPay() {
this.$refs.popuppay.close()
},
//打开支付弹窗
- openPopusPay() {
+ openPopupPay() {
this.$refs.popuppay.open('bottom')
},
// 获取收藏状态
@@ -878,7 +877,7 @@
})
},
//显示/隐藏适配控制器的回调
- controlstoggles(e) {
+ controlStoggles(e) {
this.showControls = e.detail.show
this.showBack = this.showControls
console.log(e.detail.show, '显示/隐藏控制栏')
@@ -962,16 +961,16 @@
data.courseDetailsId = this.videoList[this.current].courseDetailsId
httpsRequest.getT('/app/order/insertCourseOrders', data).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.ordersId = res.data.orders.ordersId //记录订单id
this.payMoney = res.data.orders.payMoney //记录订单价格
- if (type == 1) { //金币
+ if (type === 1) { //金币
this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
- } else if (type == 2) { //支付宝
+ } else if (type === 2) { //支付宝
this.closePay() //关闭购买选择弹窗
this.payPrice = res.data.orders.payMoney //需要支付的价格
- this.openPopusPay() //显示充值弹窗
+ this.openPopupPay() //显示充值弹窗
}
@@ -989,13 +988,13 @@
httpsRequest.postT("/app/order/payOrders", {
orderId: orderId,
}).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
uni.hideLoading()
uni.showToast({
title: '已成功解锁',
icon: 'none'
})
- this.closePopusPay()
+ this.closePopupPay()
this.closePay()
that.showPay = false
that.showMoney = false
@@ -1037,7 +1036,7 @@
this.videoList = [...this.videoList, ...this.meunList.slice(index + 1, index + 3)]
}
//只剩一条数据
- if (lengths == 1) {
+ if (lengths === 1) {
//把剩下的一条给放进去
this.videoList = [
//选中的那条
@@ -1049,7 +1048,7 @@
]
}
//选择的就是最后一条数据
- if (lengths == 0) {
+ if (lengths === 0) {
//后两条拿总数组的前两条就可以了
this.videoList = [...this.videoList, ...this.meunList.slice(0, 2)]
}
@@ -1062,7 +1061,7 @@
// const index = this.meunList.findIndex(menu => menu.courseDetailsId === item.courseDetailsId);
// this.videoList = [this.meunList[index]]
this.current = index
- if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
+ if (this.videoList[this.current].videoUrl === '' && this.videoList[this.current].price <= 0 && !type) {
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
return;
}
@@ -1104,7 +1103,7 @@
this.$refs.popup.close()
},
//收藏
- shoucang() {
+ collectVideo() {
if (uni.getStorageSync('token')) {
let data = {
courseId: this.courseId,
@@ -1112,7 +1111,7 @@
type: this.isCollect == false ? 1 : 0
}
httpsRequest.postJson('/app/courseCollect/insertCourseCollect', data).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.getMyLoveStatus()
}
})
diff --git a/me/feedbackIndex/feedbackIndex.vue b/me/feedbackIndex/feedbackIndex.vue
index 07cec3c..9d1f23b 100644
--- a/me/feedbackIndex/feedbackIndex.vue
+++ b/me/feedbackIndex/feedbackIndex.vue
@@ -59,7 +59,7 @@
types:1
}
this.$u.api.help(data).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.helpClassifyList = res.data
for (var i = 0; i < this.helpClassifyList.length; i++) {
this.helpClassifyList[i].parentId = 1
diff --git a/me/integral/index.vue b/me/integral/index.vue
index 4c8a185..3da208b 100644
--- a/me/integral/index.vue
+++ b/me/integral/index.vue
@@ -48,7 +48,7 @@
methods: {
getIntegral() {
this.$u.api.integral().then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.integralNum = res.data.integralNum
}else {
uni.showToast({
diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue
index d2b38cc..4f04ce3 100644
--- a/me/invite/cashDetail.vue
+++ b/me/invite/cashDetail.vue
@@ -1,530 +1,532 @@
-
-
- 可提现总额
- ¥ {{mayMoney}}
+
+
+ 可提现总额
+ ¥ {{ mayMoney }}
-
-
- 提现金额
-
-
-
-
-
- ¥
-
-
-
- 全部
+
+
+ 提现金额
+
+
+
+
+
+ ¥
+
+
+
+ 全部
+
-
-
+
+
-
-
-
- 提现
-
+
+
+
+ 提现
+
-
-
- 提现账号
-
-
- 红包明细
-
-
-
+
+
+ 提现账号
+
+
+ 红包明细
+
+
+
-
-
-
-
- 提现成功
- 提现中
-
- 提现失败
-
+
+
+
+
+ 提现成功
+ 提现中
+
+ 提现失败
+
+
-
- 收款人账号:{{item.zhifubao}}
- 收款人姓名:{{item.zhifubaoName}}
- 发起时间:{{item.createAt}}
- 成功时间 {{item.outAt}}
-
- 失败原因:{{item.refund}}
-
+
+ 收款人账号:{{ item.zhifubao }}
+ 收款人姓名:{{ item.zhifubaoName }}
+ 发起时间:{{ item.createAt }}
+ 成功时间 {{ item.outAt }}
+
+ 失败原因:{{ item.refund }}
+
-
-
- ¥{{item.money}}
-
-
-
-
+
+
+ ¥{{ item.money }}
+
+
+
+
-
-
-
-
- 暂无记录
-
-
-
+
+
+
+
+ 暂无记录
+
+
+
-
+
-
-
+
+
\ No newline at end of file
diff --git a/me/invite/cashList.vue b/me/invite/cashList.vue
index fe0950d..599c795 100644
--- a/me/invite/cashList.vue
+++ b/me/invite/cashList.vue
@@ -1,133 +1,133 @@
-
-
-
-
- 提现成功
- 提现中
- 提现失败
-
+
+
+
+
+ 提现成功
+ 提现中
+ 提现失败
+
-
- 收款人账号:{{item.zhifubao}}
- 收款人姓名:{{item.zhifubaoName}}
- 发起时间:{{item.createAt}}
- 成功时间 {{item.outAt}}
- {{item.refund}}
+
+ 收款人账号:{{ item.zhifubao }}
+ 收款人姓名:{{ item.zhifubaoName }}
+ 发起时间:{{ item.createAt }}
+ 成功时间 {{ item.outAt }}
+ {{ item.refund }}
-
-
- ¥{{item.money}}
-
-
-
-
+
+
+ ¥{{ item.money }}
+
+
+
+
-
-
-
-
- 暂无记录
-
-
-
+
+
+
+
+ 暂无记录
+
+
+
-
+
\ No newline at end of file
diff --git a/me/invite/index.vue b/me/invite/index.vue
index 5e3cf6c..56e8c6d 100644
--- a/me/invite/index.vue
+++ b/me/invite/index.vue
@@ -21,7 +21,7 @@
-
+
@@ -809,7 +809,7 @@
background: #F3F4F8;
}
- .invite-box {
+ .inviteBox {
position: relative;
margin-top: -240rpx;
background-color: #fff;
diff --git a/me/invite/inviteDet.vue b/me/invite/inviteDet.vue
index 5345977..267b8ae 100644
--- a/me/invite/inviteDet.vue
+++ b/me/invite/inviteDet.vue
@@ -7,7 +7,7 @@
-
+
@@ -33,7 +33,7 @@
style="width: 80rpx;height:80rpx;border-radius: 50rpx;">
{{item.userName}}
- 二级好友
+ 二级好友
一级好友
@@ -45,7 +45,7 @@
-
+
@@ -84,7 +84,7 @@
limit: this.limit
}
this.$u.api.queryInviter(data).then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
this.inviterRecord = res.data.inviteMoney.money
} else {
uni.showToast({
@@ -102,8 +102,8 @@
userType:1
}
this.$u.api.inviter(data).then(res => {
- if (res.code == 0) {
- if (this.page == 1) {
+ if (res.code === 0) {
+ if (this.page === 1) {
this.userList = res.data.list
} else {
this.userList = [...this.userList, ...res.data.list]
@@ -128,7 +128,7 @@
\ No newline at end of file
diff --git a/other/blogger/blogger.vue b/other/blogger/blogger.vue
new file mode 100644
index 0000000..f2708d4
--- /dev/null
+++ b/other/blogger/blogger.vue
@@ -0,0 +1,1206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ userInfo.username }}
+ {{ userInfo.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tipsDataMessage.messageCount }} 条新消息
+
+
+
+
+
+
+ {{ $t.number.formatNumberAddPriceUnit(tipsDataMessage.likeCount) }}
+
+
+
+ 点赞
+
+
+
+
+
+
+ {{ $t.number.formatNumberAddPriceUnit(tipsDataMessage.hotReviewsCount) }}
+
+
+
+ 分享
+
+
+
+
+
+
+ {{ $t.number.formatNumberAddPriceUnit(tipsDataMessage.fansCount) }}
+
+
+
+ 排名
+
+
+
+
+
+
+ {{ $t.number.formatNumberAddPriceUnit(tipsDataMessage.focusCount) }}
+
+
+
+ 追剧
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.userName }}
+ {{ item.date }}
+
+
+
+
+
+
+
+
+
+
+
+ #
+ {{ label_item }}
+
+
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.collectionCount }}
+
+ {{ item.commentCount }}
+
+ {{ item.likeCount }}
+
+
+
+
+
+
+ {{ item.viewUser.viewUserCount }}人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.userName }}
+ {{ item.date }}
+
+
+
+
+
+
+
+
+
+
+
+ #
+ {{ label_item }}
+
+
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.collectionCount }}
+
+ {{ item.commentCount }}
+
+ {{ item.likeCount }}
+
+
+
+
+
+
+ {{ item.viewUser.viewUserCount }}人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/other/blogger/details.vue b/other/blogger/details.vue
new file mode 100644
index 0000000..089c384
--- /dev/null
+++ b/other/blogger/details.vue
@@ -0,0 +1,800 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.userName }}
+ {{ item.date }}
+
+
+
+
+
+
+ + 关注
+
+
+
+
+
+ #
+ {{ label_item }}
+
+
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.viewUser.viewUserCount }}人
+
+
+
+
+ {{ item.collectionCount }}
+
+ {{ item.commentCount }}
+
+ {{ item.likeCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点 赞
+
+
+
+
+
+ 分 享
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 抓住那只高产母猪
+
+
+ 2024年5月26日
+
+
+
+
+
+
+
+
+
+ 26
+
+
+
+
+
+ 求打卡地点
+
+
+ 博主回复:
+ 保密
+
+
+ 2024年5月26日
+
+
+ 16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 北染陌人
+
+
+ 2024年5月25日
+
+
+
+
+
+
+
+
+
+ 68
+
+
+
+
+
+ 求摄影师微信,谢谢
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 原来是吖释鸭
+
+
+ 2024年5月25日
+
+
+
+
+
+
+
+
+
+ 43
+
+
+
+
+
+ 吃瓜群众到此一游,阿巴阿巴
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/other/index/index.vue b/other/index/index.vue
new file mode 100644
index 0000000..17e014b
--- /dev/null
+++ b/other/index/index.vue
@@ -0,0 +1,1042 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.name}}
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 抢 / 先 / 体 / 验
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+ {{ item.value }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 活 / 跃 / 用 / 户
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.name}}
+
+
+
+
+ {{item.hot}}
+
+
+
+ 活跃度
+
+
+
+
+
+
+ {{item.share}}
+
+
+
+ 分享
+
+
+
+
+
+
+ {{item.love}}
+
+
+
+ 点赞
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/other/slotMachine/components/pop-ling-qu.vue b/other/slotMachine/components/pop-ling-qu.vue
new file mode 100644
index 0000000..3daa8e1
--- /dev/null
+++ b/other/slotMachine/components/pop-ling-qu.vue
@@ -0,0 +1,163 @@
+
+
+
+
+ 恭喜您获得
+
+
+
+
+
+
+ {{result.name}}
+
+
+
+
+ {{result.number}}
+ 元
+
+
+ 现金红包
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/other/slotMachine/slotMachine.vue b/other/slotMachine/slotMachine.vue
index a45b726..47c622b 100644
--- a/other/slotMachine/slotMachine.vue
+++ b/other/slotMachine/slotMachine.vue
@@ -1,33 +1,73 @@
-
-
+
+
开 始
+
+
-
+
\ No newline at end of file
diff --git a/other/static/ad.png b/other/static/ad.png
new file mode 100644
index 0000000..7ebd0e1
Binary files /dev/null and b/other/static/ad.png differ
diff --git a/other/static/avatar/5.png b/other/static/avatar/5.png
new file mode 100644
index 0000000..f179988
Binary files /dev/null and b/other/static/avatar/5.png differ
diff --git a/other/static/avatar/6.png b/other/static/avatar/6.png
new file mode 100644
index 0000000..4808c25
Binary files /dev/null and b/other/static/avatar/6.png differ
diff --git a/other/static/avatar/7.png b/other/static/avatar/7.png
new file mode 100644
index 0000000..31a3d75
Binary files /dev/null and b/other/static/avatar/7.png differ
diff --git a/other/tools/tools.vue b/other/tools/tools.vue
new file mode 100644
index 0000000..2fb9c1f
--- /dev/null
+++ b/other/tools/tools.vue
@@ -0,0 +1,779 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 工 / 具 / 集 / 合
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.join }} 人参与
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 友 / 情 / 链 / 接
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.join }} 人查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/other/topic/reserve.vue b/other/topic/reserve.vue
new file mode 100644
index 0000000..6b59b66
--- /dev/null
+++ b/other/topic/reserve.vue
@@ -0,0 +1,570 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 活动详情
+
+
+
+
+
+ #
+ 常回家看看
+
+
+
+ 可爱的校友,让我们相约华软,来一场说看就看的木棉雨;通知将于活动前一晚送达,请查收!!
+
+
+
+
+
+
+
+ 集合时间:2024年12月20日 12:00:00
+
+
+ 集合地点:喷泉广场
+
+
+
+
+
+
+
+ 活动参与者
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/other/topic/topic.vue b/other/topic/topic.vue
new file mode 100644
index 0000000..a5e54d7
--- /dev/null
+++ b/other/topic/topic.vue
@@ -0,0 +1,1287 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+ {{ item.viewUser.viewUserCount }} 人参与
+
+
+
+
+ # {{ label_item }}
+
+
+
+ {{ item.collectionCount }}
+
+ {{ item.likeCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发布动态
+
+
+
+
+
+
+
+
+
+ 发起活动
+
+
+
+
+
+
+
+
+
+ 创建圈子
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 35dca2f..97caa44 100644
--- a/pages.json
+++ b/pages.json
@@ -1,6 +1,7 @@
{
"easycom": {
- "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
+ "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue",
+ "^tn-(.*)": "@/tuniao-ui/components/tn-$1/tn-$1.vue"
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
@@ -565,14 +566,14 @@
}
}, {
- "path": "wallet/mingxi",
+ "path": "wallet/wallet_detail",
"style": {
"navigationBarTitleText": "金币明细",
"enablePullDownRefresh": true
}
}, {
- "path": "jilu/jilu",
+ "path": "jilu/record",
"style": {
"navigationBarTitleText": "最近观看",
"enablePullDownRefresh": true
@@ -705,7 +706,13 @@
},
{
"root": "other",
- "pages": [
+ "pages": [{
+ "path": "index/index",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "更多"
+ }
+ },
{
"path": "about/about",
"style": {
@@ -713,33 +720,68 @@
}
},
{
- "path" : "coup/coup",
- "style" :
- {
- "navigationBarTitleText" : "卡包"
+ "path": "coup/coup",
+ "style": {
+ "navigationBarTitleText": "卡包"
}
},
{
- "path" : "address/address",
- "style" :
- {
- "navigationBarTitleText" : "收货地址"
+ "path": "address/address",
+ "style": {
+ "navigationBarTitleText": "收货地址"
}
},
{
- "path" : "pay/pay",
- "style" :
- {
- "navigationBarTitleText" : "发红包"
+ "path": "pay/pay",
+ "style": {
+ "navigationBarTitleText": "发红包"
}
},
{
- "path" : "slotMachine/slotMachine",
- "style" :
- {
- "navigationBarTitleText" : "抽奖",
+ "path": "slotMachine/slotMachine",
+ "style": {
+ "navigationBarTitleText": "抽奖",
+ "navigationStyle": "custom"
+
+ }
+ },
+ {
+ "path" : "blogger/blogger",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "blogger/details",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "topic/topic",
+ "style" :
+ {
+ "navigationBarTitleText" : "话题"
+ }
+ },
+ {
+ "path" : "topic/reserve",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "tools/tools",
+ "style" :
+ {
+ "navigationBarTitleText" : "",
"navigationStyle": "custom"
-
}
}
diff --git a/pages/chasingDrama/chasingDrama.vue b/pages/chasingDrama/chasingDrama.vue
index e0d6da0..5baafbd 100644
--- a/pages/chasingDrama/chasingDrama.vue
+++ b/pages/chasingDrama/chasingDrama.vue
@@ -51,7 +51,7 @@
最近观看
-
+
更多
diff --git a/pages/learn/index.vue b/pages/learn/index.vue
index f66961c..fe63579 100644
--- a/pages/learn/index.vue
+++ b/pages/learn/index.vue
@@ -4,20 +4,20 @@
-
{{item.name}}
-
-
-
+
+
-
@@ -71,7 +71,7 @@
-
+
-
+
@@ -57,7 +57,7 @@
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {
this.$Request.get('/app/common/type/49').then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
if (res.data && res.data.value) {
if (this.openShare) {
let ua = navigator.userAgent.toLowerCase();
@@ -97,7 +97,7 @@
} else {
this.$Request.get('/app/common/type/50').then(res => {
- if (res.code == 0) {
+ if (res.code === 0) {
if (res.data && res.data.value) {
if (this.openShares) {
let ua = navigator.userAgent.toLowerCase();
@@ -151,7 +151,7 @@
width: 100%;
height: 100%;
}
- .containers {
+ .containersView {
width: 100%;
height: 100%;
}
diff --git a/pages/login/bind.vue b/pages/login/bind.vue
index 383040f..f3dd44c 100644
--- a/pages/login/bind.vue
+++ b/pages/login/bind.vue
@@ -1,5 +1,5 @@
-
+
手机号
@@ -11,11 +11,10 @@
验证码
-
+
-
-
+
@@ -29,8 +28,8 @@
return {
mobile: '',
code: '',
- logining: false,
- sending: false,
+ loginIng: false,
+ sendIng: false,
sendTime: '获取验证码',
count: 60,
type: '',
@@ -55,11 +54,11 @@
} = this;
if (count === 1) {
this.count = 60;
- this.sending = false;
+ this.sendIng = false;
this.sendTime = '获取验证码'
} else {
this.count = count - 1;
- this.sending = true;
+ this.sendIng = true;
this.sendTime = count - 1 + '秒后重新获取';
setTimeout(this.countDown.bind(this), 1000);
}
@@ -76,7 +75,7 @@
this.$queue.showLoading("正在发送验证码...");
this.$Request.getT('/app/Login/sendMsg/' + mobile + '/gzg').then(res => {
if (res.code === 0) {
- this.sending = true;
+ this.sendIng = true;
this.$queue.showToast('验证码发送成功请注意查收');
this.countDown();
uni.hideLoading();
@@ -162,7 +161,7 @@
background: #557EFD;
}
- .container1 {
+ .containerView {
top: 0;
padding-top: 32upx;
position: relative;
diff --git a/pages/login/forgetPwd.vue b/pages/login/forgetPwd.vue
index d002eac..a7446ae 100644
--- a/pages/login/forgetPwd.vue
+++ b/pages/login/forgetPwd.vue
@@ -13,7 +13,7 @@
验证码
-
+
@@ -34,10 +34,10 @@
code: '',
mobile: '',
password: '',
- sending: false,
+ sendIng: false,
sendTime: '获取验证码',
count: 60,
- logining: false
+ loginIng: false
}
},
@@ -64,7 +64,7 @@
})
this.$u.get('/app/Login/sendMsg/' + mobile + '/forget').then(res => {
if (res.code === 0) {
- this.sending = true;
+ this.sendIng = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
@@ -89,12 +89,12 @@
} = this;
if (count === 1) {
this.count = 60;
- this.sending = false;
+ this.sendIng = false;
this.sendTime = '获取验证码'
} else {
this.count = count - 1;
- this.sending = true;
- this.sendTime = count - 1 + '秒后重新获取';
+ this.sendIng = true;
+ this.sendTime = count - 1 + '秒后获取';
setTimeout(this.countDown.bind(this), 1000);
}
},
@@ -140,7 +140,7 @@
duration: 1000
})
} else {
- this.logining = true;
+ this.loginIng = true;
// this.$queue.showLoading("正在修改密码中...");
uni.showLoading({
title: '正在修改密码中...'
diff --git a/pages/login/register.vue b/pages/login/register.vue
index f722530..3febca8 100644
--- a/pages/login/register.vue
+++ b/pages/login/register.vue
@@ -37,7 +37,7 @@
-