|
@@ -1,31 +1,82 @@
|
|
|
<template>
|
|
<template>
|
|
|
<appResult title="注册成功">
|
|
<appResult title="注册成功">
|
|
|
- <view>
|
|
|
|
|
- <button class="admin-button-com blue big" @click="beginBuy()" >去买花</button>
|
|
|
|
|
|
|
+ <view class="dec"></view>
|
|
|
|
|
+ <view v-if="fromCg == 1">
|
|
|
|
|
+ <button class="admin-button-com blue big" @click="beginCg()" >开始购买</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <button class="admin-button-com blue big" v-if="scene==''" @click="goIndex()" style="padding-left:80upx;padding-right:80upx;">进入首页</button>
|
|
|
|
|
+ <button class="admin-button-com blue big" v-else @click="beginCg()" >开始购买</button>
|
|
|
</view>
|
|
</view>
|
|
|
</appResult>
|
|
</appResult>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import appResult from '@/components/app-result'
|
|
import appResult from '@/components/app-result'
|
|
|
export default {
|
|
export default {
|
|
|
- name: "result",
|
|
|
|
|
|
|
+ name: "ApplyResult",
|
|
|
components:{
|
|
components:{
|
|
|
appResult
|
|
appResult
|
|
|
},
|
|
},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
- scene:''
|
|
|
|
|
|
|
+ scene:'',
|
|
|
|
|
+ fromCg:0
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ onUnload() {
|
|
|
|
|
+ },
|
|
|
|
|
+ onLoad () {
|
|
|
|
|
+ //供货商打开小程序分享给客户,客户需要采购进来
|
|
|
|
|
+ let ghsCgOption = uni.getStorageSync('ghsCgOption')
|
|
|
|
|
+ if(ghsCgOption.fromCg){
|
|
|
|
|
+ this.fromCg = ghsCgOption.fromCg
|
|
|
|
|
+ }
|
|
|
|
|
+ //供货商打开太阳码分享给客户,客户需要采购进来
|
|
|
|
|
+ let scene = uni.getStorageSync('ghsCgScene')
|
|
|
|
|
+ if(scene){
|
|
|
|
|
+ this.scene = scene
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
init(){
|
|
init(){
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
- beginBuy(){
|
|
|
|
|
|
|
+ goIndex(){
|
|
|
this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
|
|
|
+ },
|
|
|
|
|
+ beginCg(){
|
|
|
|
|
+ if(this.fromCg == 1){
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
|
|
+ let ghsCgOption = uni.getStorageSync('ghsCgOption')
|
|
|
|
|
+ this.$util.pageTo({url: "/pagesPurchase/ghsProduct", query:ghsCgOption, type:2})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ }else{
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ this.$util.pageTo({url: "/admin/home/workbench", type:3})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
|
|
+ this.$util.pageTo({url: "/pagesPurchase/ghsProduct",query: {scene:this.scene},type:2})
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ goBack() {
|
|
|
|
|
+ uni.navigateBack()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
|
|
|
|
+ .dec {
|
|
|
|
|
+ color: #666666;
|
|
|
|
|
+ font-size: 28upx;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ margin-bottom: 30upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ .admin-button-com {
|
|
|
|
|
+ margin-bottom: 20upx;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|