doum
3 天以前 daa9adbc0e2fded884ea9e51fbe44cd22f6756a1
mini-program/pages/details/details.vue
@@ -50,6 +50,7 @@
         </view>
         <view style="width: 100%; height: env(safe-area-inset-bottom);"></view>
      </view>
      <Login ref="login" />
   </view>
</template>
@@ -80,6 +81,10 @@
      },
      methods: {
         shoucang() {
            if (!this.userInfo) {
               this.$refs.login.open()
               return
            }
            if (this.info.collectStatus === 1) {
               this.$u.api.cancelbatch({ ids: this.info.id })
                  .then(res => {
@@ -97,6 +102,10 @@
            }
         },
         submit() {
            if (!this.userInfo) {
               this.$refs.login.open()
               return
            }
            let shop = [
               {
                  goodsNum: 1,
@@ -109,6 +118,10 @@
            })
         },
         addCard(e) {
            if (!this.userInfo) {
               this.$refs.login.open()
               return
            }
            this.$u.api.addCart({
               goodsId: e.id,
               goodsSkuId: e.skuResponsesList[0].id,
@@ -121,6 +134,10 @@
            })
         },
         toCard() {
            if (!this.userInfo) {
               this.$refs.login.open()
               return
            }
            uni.navigateTo({
               url: '/pages/shopping-cart/shopping-cart'
            })