MrShi
12 小时以前 fbc074229fd4736f1ae2793c9daebf04726188b2
small-program/pages/evaluate/evaluate.vue
@@ -20,9 +20,9 @@
            </view>
         </view>
         <view class="divider"></view>
         <view class="divider" v-if="showDriver"></view>
         <view class="rate-block">
         <view class="rate-block" v-if="showDriver">
            <view class="title-row">
               <text class="title-label">配送司机:</text>
               <text class="title-value">{{info.driverName || ''}}</text>
@@ -40,11 +40,11 @@
               <text class="rate-text">{{ form.driverScore }}星</text>
            </view>
         </view>
         <view class="divider"></view>
         <view class="rate-block" v-if="info.type ===1 && info.takeShopId ">
         <view class="divider" v-if="showTakeShop"></view>
         <view class="rate-block" v-if="showTakeShop">
            <view class="title-row">
               <text class="title-label">收件门店:</text>
               <text class="title-value">{{info.takeShopName || 0}}</text>
               <text class="title-value">{{info.takeShopName || ''}}</text>
            </view>
            <view class="star-row">
               <view class="star-list">
@@ -93,6 +93,10 @@
      data() {
         return {
            id:null,
            type:null,
            takeShopId:null,
            showDriver: false,
            showTakeShop: false,
            info:{},
            form:{
               content: "",
@@ -108,21 +112,49 @@
            ]
         }
      },
      onShow() {
         this.info={}
         this.getUserDetail()
      },
      // onShow() {
      //    this.info={}
      // },
      onLoad(options) {
         this.id = options.id
         this.type = Number(options.type)
         this.takeShopId = options.takeShopId
         this.photoList=[]
         this.form={
            content: "",
            depositScore: 5,
            driverScore: 5,
            orderId: this.id,
            takeScore: 5,
            images:[]
         if (this.type === 1) {
            this.showDriver = true
            if (this.takeShopId) {
               this.showTakeShop = true
               this.form = {
                  content: "",
                  depositScore: 5,
                  driverScore: 5,
                  orderId: this.id,
                  takeScore: 5,
                  images: []
               }
            } else {
               this.form = {
                  content: "",
                  depositScore: 5,
                  driverScore: 5,
                  orderId: this.id,
                  images: []
               }
            }
         } else {
            this.showDriver = false
            this.showTakeShop = false
            this.form={
               content: "",
               depositScore: 5,
               orderId: this.id,
               images:[]
            }
         }
         this.getUserDetail()
      },
      methods:{
         deleteImage(index) {