瀏覽代碼

添加tips

xiaohaizhao 1 年之前
父節點
當前提交
adfda5587c
共有 3 個文件被更改,包括 17 次插入2 次删除
  1. 1 1
      cloud/winningNews/detail.vue
  2. 15 0
      store/deliveryAddress/index.vue
  3. 1 1
      store/lottery/modules/sudoku.vue

+ 1 - 1
cloud/winningNews/detail.vue

@@ -68,7 +68,7 @@ export default {
         toEdit() {
             let that = this;
             uni.navigateTo({
-                url: '/store/deliveryAddress/index'
+                url: '/store/deliveryAddress/index?tips=奖项根据收货信息发放,请选择并提交收货地址'
             })
             that.$Http.selectAddress = (item) => {
                 uni.showModal({

+ 15 - 0
store/deliveryAddress/index.vue

@@ -3,6 +3,9 @@
         <view class="My_search-box">
             <My_search :value="content.where.condition" @onSearch="onSearch" />
         </view>
+        <view class="tips" v-if="tips">
+            {{ tips }}
+        </view>
         <My_listbox ref="List" @getlist="getList" bottomHeight="70">
             <view class="item" v-for="(item, index) in list" :key="item.contactsid">
                 <view class="head" hover-class="navigator-hover" @click="onClick(item)">
@@ -59,12 +62,14 @@ export default {
                 }
             },
             list: [],
+            tips: "",
         }
     },
     onLoad(options) {
         uni.setNavigationBarTitle({
             title: options.title || '收货地址',
         });
+        this.tips = options.tips || '';
         this.getList(true)
     },
     onShow() {
@@ -80,6 +85,7 @@ export default {
                 console.log("收货地址列表", res)
                 this.$refs.List.RefreshToComplete()
                 if (this.cutoff(res.msg)) return;
+                this.$refs.List.setHeight()
                 this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
                 this.content = this.$refs.List.paging(this.content, res)
             })
@@ -173,6 +179,15 @@ export default {
     box-sizing: border-box;
 }
 
+.tips {
+    line-height: 17px;
+    font-family: Source Han Sans SC, Source Han Sans SC;
+    font-size: 12px;
+    color: #666666;
+    margin-top: 10px;
+    padding-left: 10px;
+}
+
 .item {
     margin-top: 10px;
     width: 100vw;

+ 1 - 1
store/lottery/modules/sudoku.vue

@@ -177,7 +177,7 @@ export default {
                 success: function ({ confirm }) {
                     if (confirm) {
                         uni.navigateTo({
-                            url: '/store/deliveryAddress/index'
+                            url: '/store/deliveryAddress/index?tips=奖项根据收货信息发放,请选择并提交收货地址'
                         })
                         that.$Http.selectAddress = (item) => {
                             uni.showModal({