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

修改小程序指引

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