Pārlūkot izejas kodu

add route to rating page

StephenArk30 6 gadi atpakaļ
vecāks
revīzija
d3ef827745

+ 32 - 1
sourcecode/h5app/vue/src/connector/simple-demo.js

@@ -154,7 +154,38 @@ BasicFunction.get_data("数据接口名称/list?条件1=数据1&条件2=数据2&
 
 新建货品:
 smartGoods/saveBatch
-[{"goodid":"","name":"萌犬毛绒抱枕","goodsNo":"A2","modelId":"1","ownerId":"18","goodFirstKind":"1000","goodSecondKind":"2000","sellPrice":"0.0","marketPrice":"0.0","costPrice":"0.0","upTime":"2018-12-10 01:01:01","downTime":"2018-12-10 01:01:01","createTime":"2018-12-10 01:01:01","storeNums":"1","img":"attachment/simple/acsac089e1nnsaxx72190dm.jpg","isDel":"0","content":"none","keywords":"none","description":"绒毛玩具或填充玩具,中国大陆较常用“毛绒玩具”、香港为“毛公仔”,是以毛绒面料及其他纺织材料包裹各种填充物而制成的,具有软绵绵、毛绒绒可爱造形的填充玩具。通常做成动物的形象,但也有人形的绒毛玩具。 动画、卡通和漫画人物都是受欢迎的题材。泰迪熊可能被视为是一种绒毛玩具,但因制造材质而异并不是所有的泰迪熊都是绒毛玩具","searchWords":"毛绒,玩具","weight":"0.4","point":"4","unit":"10","brandId":"1","visit":"1","favorite":"1","sort":"1","listImg":"attachment/simple/acsac089e1nnsaxx72190dm.jpg","smallImg":"attachment/simple/bicno912nounx7xsg28d1nidx.jpg","specArray":"{}","exp":"0"}]' --compressed
+[{
+"goodid":"", // 货品id
+"name":"萌犬毛绒抱枕", // 货品名
+"goodsNo":"A2",
+"modelId":"1",
+"ownerId":"18", // 货品所有者id
+"goodFirstKind":"1000", // 前14位是tag,15位是性别
+"goodSecondKind":"2000",
+"sellPrice":"0.0",
+"marketPrice":"0.0",
+"costPrice":"0.0",
+"upTime":"2018-12-10 01:01:01",
+"downTime":"2018-12-10 01:01:01",
+"createTime":"2018-12-10 01:01:01",
+"storeNums":"1",
+"img":"attachment/simple/acsac089e1nnsaxx72190dm.jpg",
+"isDel":"0",
+"content":"none",
+"keywords":"none",
+"description":"绒毛玩具或填充玩具,中国大陆较常用“毛绒玩具”、香港为“毛公仔”,是",
+"searchWords":"毛绒,玩具",
+"weight":"0.4",
+"point":"4",
+"unit":"10",
+"brandId":"1",
+"visit":"1",
+"favorite":"1",
+"sort":"1", // 货品状态 0: 审核中, 1: 匹配中, 2: 匹配成功, 3: 交换成功, 4: 审核失败
+"listImg":"attachment/simple/acsac089e1nnsaxx72190dm.jpg",
+"smallImg":"attachment/simple/bicno912nounx7xsg28d1nidx.jpg",
+"specArray":"{}","exp":"0"
+}]
 
 
 新建货品审核单

+ 4 - 0
sourcecode/h5app/vue/src/views/giftDetail.vue

@@ -39,6 +39,7 @@
             <van-button
                     type="primary" size="large"
                     style="background-color: #fd6740; border-color: #fd6740; width: 85%;"
+                    @click="toWriteComment"
             >确认交换成功</van-button>
             <p>交换成功可以开始接收对方发来的感谢信哦</p>
         </div>
@@ -122,6 +123,9 @@
                     // on cancel
                 });
             },
+            toWriteComment: function () {
+                this.$router.push('assess');
+            }
         },
         created: function () {
             if (!localStorage.getItem('frontend-userid')) {

+ 1 - 1
sourcecode/h5app/vue/src/views/index.vue

@@ -110,7 +110,7 @@
                         else temp.desc = gift.description;
                         temp.desc_long = gift.description;
                         temp.time = gift.createTime.substring(0, 9);
-                        temp.status = 0;
+                        temp.status = gift.sort;
                         temp.gender_tags = gift.goodFirstKind.toString(2);
                         presentList.push(temp);
                     });