Commit 839ce0cd authored by 李俊赕's avatar 李俊赕

修改小程序指引

parent 075a9a7a
......@@ -7,6 +7,12 @@
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "下单"
}
},{
"path": "pages/settle/index",
"style": {
"navigationBarTitleText": "充电桩安装招募"
......@@ -36,12 +42,6 @@
"navigationBarTitleText": "考试"
}
},{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "下单"
}
},
......@@ -284,6 +284,10 @@
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "入驻首页", //模式名称
"path": "pages/settle/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},{
"name": "考试", //模式名称
"path": "pages/exam/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
......
......@@ -2,11 +2,15 @@
<view class="back_view">
<image class="theme_image" :src="theme_url" mode="aspectFill"></image>
<view class="bottom_view">
<view :class="isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@click="applyClick()">
<button :class="isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' " @click="$u.debounce(applyClick, 500)">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</button>
<!-- <view :class="isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@click="$u.deapplyClick">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</view>
</view> -->
</view>
</view>
</template>
......@@ -21,15 +25,16 @@
isStop:false,
settledInfo:null,
status:'',
saving:true
}
},
onLoad(e) {
this.startCounting()
},
onShow(){
if(!this.settledInfo){
this.getBaseInfo()
}
// if(!this.settledInfo){
// this.getBaseInfo()
// }
},
methods: {
async getBaseInfo(){
......@@ -63,22 +68,31 @@
},
applyClick: function () {
applyClick: async function () {
if(!this.isStop){
return
}
this.saving = true
if(!this.settledInfo){
await this.getBaseInfo()
this.jumpJudge()
this.saving = false
return
}
this.jumpJudge()
},
jumpJudge(){
if(this.status>0){
uni.navigateTo({
url:'/pages/settle/prompt'
})
return
}
uni.navigateTo({
url:'/pages/settle/base'
})
},
}
}
}
......
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