| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <appResult title="注册成功">
- <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="goBack()" >返回</button>
- <button class="admin-button-com blue big" v-else @click="beginCg()" >开始买花</button>
- </view>
- </appResult>
- </template>
- <script>
- import appResult from '@/components/app-result'
- export default {
- name: "applyResult",
- components:{
- appResult
- },
- data(){
- return {
- 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:{
- beginCg(){
- if(this.fromCg == 1){
- let ghsCgOption = uni.getStorageSync('ghsCgOption')
- this.$util.pageTo({url: "/pagesPurchase/ghsProduct", query:ghsCgOption, type:2})
- }else{
- this.$util.pageTo({url: "/pagesPurchase/ghsProduct",query: {scene:this.scene},type:2})
- }
- },
- goBack() {
- uni.navigateBack()
- }
- }
- };
- </script>
- <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>
|