| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <template>
- <view>
- <back></back>
- <u-image @load="load" :src="src"
- mode="widthFix"></u-image>
- <view v-if="show" class="bottom-bar" style="background-color: #5034c5;margin-top: -30rpx;">
- <button class="cu-btn round text-bold"
- style="width: 100%;height: 100upx;font-size: 36upx;background-color: #f9b12b;color: #5034C6;"
- @click="nav">加入代理</button>
- </view>
- <loading ref="loading" type="3" />
- </view>
- </template>
- <script>
- import back from "../../comps/back.vue"
- export default {
- components: {
- back
- },
- data() {
- return {
- src:'',
- show: false
- }
- },
- onLoad(options) {
- this.$refs.loading.showLoading()
- this.fetchDetail()
- if (this.$isNotEmpty(options.scene)) {
- let salesmanId = decodeURIComponent(options.scene)
- salesmanId && this.$cache.put('salesmanId', salesmanId)
- }
- },
- methods: {
- async fetchDetail() {
- let params = {
- paramKey: 'agent_detail' || '-1'
- }
- let res=await this.$api.wxApp.appParams(params)
- if (this.$isNotEmpty(res.data)) {
- this.src=res.data.paramValue
- }else{
- this.src="https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/db833cc4148149058b185efdfb5f6e6e-pQIwdxWHG6XR5e5284ccb535e82d8cb8a3bc669323ac.png"
- }
- },
- nav() {
- uni.navigateTo({
- url: "agent"
- })
- },
- load() {
- this.show = true
- this.$refs.loading.hide()
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|